//
// This file was generated by the Retargetable Decompiler
// Website: https://retdec.com
// Copyright (c) 2019 Retargetable Decompiler <info@retdec.com>
//

#include <stdint.h>

// ---------------- Integer Types Definitions -----------------

typedef int8_t int3_t;

// ----------------- Float Types Definitions ------------------

typedef double float64_t;
typedef long double float80_t;

// ------------------- Function Prototypes --------------------

int32_t function_0(void);

// --------------------- Global Variables ---------------------

int32_t g1 = 0; // eax
int32_t g2 = 0; // edx

// ------------------------ Functions -------------------------

// Address range: 0x0 - 0x1d
int32_t function_0(void) {
    int32_t v1; // ebp
    int3_t v2; // fpu_stat_TOP
    float80_t v3; // st6
    int32_t v4;
    int32_t result;
    int3_t v5;
    int32_t v6; // bp+13
    float80_t v7; // bp+17
    int32_t v8; // bp+15
    int32_t v9; // bp+17
    float64_t v10;
    float64_t v11;
    // 0x0
    v4 = v1;
    v5 = v2;
    v10 = *(float64_t *)&g1;
    v11 = *(float64_t *)&g2;
    v3 = (float80_t)v11;
    v2 = v5 + -3;
    v6 = __asm_fpatan(v4);
    g1 = v6;
    v8 = g2;
    *(float64_t *)v8 = v10;
    v7 = v3;
    v9 = g1;
    *(float64_t *)v9 = (float64_t)v7;
    v2 = v5 + -1;
    result = g1;
    return result;
}

// --------------------- Meta-Information ---------------------

// Detected functions: 1
// Decompilation date: 2019-09-05 22:23:38
