
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void __gmpf_sub_ui(mpf_ptr sum,mpf_srcptr u,ulong v)

{
  int iVar1;
  int in_GS_OFFSET;
  mp_limb_t vl;
  __mpf_struct vv;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (v == 0) {
    __gmpf_set(sum,u);
  }
  else {
    vl = v;
    vv._mp_d = &vl;
    vv._mp_size = 1;
    vv._mp_exp = 1;
    __gmpf_sub(sum,u,&vv);
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



void __gmpf_sub_ui(undefined4 param_1,int param_2)

{
  int in_GS_OFFSET;
  undefined4 unaff_retaddr;
  int local_28;
  undefined1 local_24 [4];
  undefined4 local_20;
  undefined4 local_1c;
  int *local_18;
  int local_14;
  undefined4 uStack_c;
  
  uStack_c = 0x20727;
  entry();
  local_14 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_2 == 0) {
    __gmpf_set(unaff_retaddr,param_1);
  }
  else {
    local_28 = param_2;
    local_18 = &local_28;
    local_20 = 1;
    local_1c = 1;
    __gmpf_sub(unaff_retaddr,param_1,local_24);
  }
  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0007ebe0();
}


PUSH ESI
PUSH EBX
CALL 0x0001c340
ADD EBX,0x7d8d9
SUB ESP,0x24
MOV ESI,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x1c],ESI
XOR ESI,ESI
MOV EAX,dword ptr [ESP + 0x38]
MOV EDX,dword ptr [ESP + 0x30]
MOV ECX,dword ptr [ESP + 0x34]
TEST EAX,EAX
JZ 0x00020790
MOV dword ptr [ESP + 0x8],EAX
LEA EAX,[ESP + 0x8]
SUB ESP,0x4
MOV dword ptr [ESP + 0x14],0x1
MOV dword ptr [ESP + 0x1c],EAX
MOV dword ptr [ESP + 0x18],0x1
LEA EAX,[ESP + 0x10]
PUSH EAX
PUSH ECX
PUSH EDX
CALL 0x0001bcf0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x1c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x0002079f
ADD ESP,0x24
POP EBX
POP ESI
RET
SUB ESP,0x8
PUSH ECX
PUSH EDX
CALL 0x0001b280
ADD ESP,0x10
JMP 0x0002077b
CALL 0x0007ebe0
(translation_unit "void __gmpf_sub_ui(undefined4 param_1,int param_2)\n\n{\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  int local_28;\n  undefined1 local_24 [4];\n  undefined4 local_20;\n  undefined4 local_1c;\n  int *local_18;\n  int local_14;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x20727;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    __gmpf_set(unaff_retaddr,param_1);\n  }\n  else {\n    local_28 = param_2;\n    local_18 = &local_28;\n    local_20 = 1;\n    local_1c = 1;\n    __gmpf_sub(unaff_retaddr,param_1,local_24);\n  }\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0007ebe0();\n}\n\n" (function_definition "void __gmpf_sub_ui(undefined4 param_1,int param_2)\n\n{\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  int local_28;\n  undefined1 local_24 [4];\n  undefined4 local_20;\n  undefined4 local_1c;\n  int *local_18;\n  int local_14;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x20727;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    __gmpf_set(unaff_retaddr,param_1);\n  }\n  else {\n    local_28 = param_2;\n    local_18 = &local_28;\n    local_20 = 1;\n    local_1c = 1;\n    __gmpf_sub(unaff_retaddr,param_1,local_24);\n  }\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0007ebe0();\n}" primitive_type (function_declarator "__gmpf_sub_ui(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  int local_28;\n  undefined1 local_24 [4];\n  undefined4 local_20;\n  undefined4 local_1c;\n  int *local_18;\n  int local_14;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x20727;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    __gmpf_set(unaff_retaddr,param_1);\n  }\n  else {\n    local_28 = param_2;\n    local_18 = &local_28;\n    local_20 = 1;\n    local_1c = 1;\n    __gmpf_sub(unaff_retaddr,param_1,local_24);\n  }\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0007ebe0();\n}" { (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 unaff_retaddr;" type_identifier identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "undefined1 local_24 [4];" type_identifier (array_declarator "local_24 [4]" identifier [ number_literal ]) ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "undefined4 local_1c;" type_identifier identifier ;) (declaration "int *local_18;" primitive_type (pointer_declarator "*local_18" * identifier) ;) (declaration "int local_14;" primitive_type identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x20727;" (assignment_expression "uStack_c = 0x20727" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_14 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_14 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_2 == 0) {\n    __gmpf_set(unaff_retaddr,param_1);\n  }\n  else {\n    local_28 = param_2;\n    local_18 = &local_28;\n    local_20 = 1;\n    local_1c = 1;\n    __gmpf_sub(unaff_retaddr,param_1,local_24);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    __gmpf_set(unaff_retaddr,param_1);\n  }" { (expression_statement "__gmpf_set(unaff_retaddr,param_1);" (call_expression "__gmpf_set(unaff_retaddr,param_1)" identifier (argument_list "(unaff_retaddr,param_1)" ( identifier , identifier ))) ;) }) (else_clause "else {\n    local_28 = param_2;\n    local_18 = &local_28;\n    local_20 = 1;\n    local_1c = 1;\n    __gmpf_sub(unaff_retaddr,param_1,local_24);\n  }" else (compound_statement "{\n    local_28 = param_2;\n    local_18 = &local_28;\n    local_20 = 1;\n    local_1c = 1;\n    __gmpf_sub(unaff_retaddr,param_1,local_24);\n  }" { (expression_statement "local_28 = param_2;" (assignment_expression "local_28 = param_2" identifier = identifier) ;) (expression_statement "local_18 = &local_28;" (assignment_expression "local_18 = &local_28" identifier = (pointer_expression "&local_28" & identifier)) ;) (expression_statement "local_20 = 1;" (assignment_expression "local_20 = 1" identifier = number_literal) ;) (expression_statement "local_1c = 1;" (assignment_expression "local_1c = 1" identifier = number_literal) ;) (expression_statement "__gmpf_sub(unaff_retaddr,param_1,local_24);" (call_expression "__gmpf_sub(unaff_retaddr,param_1,local_24)" identifier (argument_list "(unaff_retaddr,param_1,local_24)" ( identifier , identifier , identifier ))) ;) }))) (if_statement "if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_14 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_14 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_0007ebe0();" (call_expression "FUN_0007ebe0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid __gmpf_sub_ui(mpf_ptr sum,mpf_srcptr u,ulong v)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  mp_limb_t vl;\n  __mpf_struct vv;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (v == 0) {\n    __gmpf_set(sum,u);\n  }\n  else {\n    vl = v;\n    vv._mp_d = &vl;\n    vv._mp_size = 1;\n    vv._mp_exp = 1;\n    __gmpf_sub(sum,u,&vv);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "void __gmpf_sub_ui(mpf_ptr sum,mpf_srcptr u,ulong v)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  mp_limb_t vl;\n  __mpf_struct vv;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (v == 0) {\n    __gmpf_set(sum,u);\n  }\n  else {\n    vl = v;\n    vv._mp_d = &vl;\n    vv._mp_size = 1;\n    vv._mp_exp = 1;\n    __gmpf_sub(sum,u,&vv);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "__gmpf_sub_ui(mpf_ptr sum,mpf_srcptr u,ulong v)" identifier (parameter_list "(mpf_ptr sum,mpf_srcptr u,ulong v)" ( (parameter_declaration "mpf_ptr sum" type_identifier identifier) , (parameter_declaration "mpf_srcptr u" type_identifier identifier) , (parameter_declaration "ulong v" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  mp_limb_t vl;\n  __mpf_struct vv;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (v == 0) {\n    __gmpf_set(sum,u);\n  }\n  else {\n    vl = v;\n    vv._mp_d = &vl;\n    vv._mp_size = 1;\n    vv._mp_exp = 1;\n    __gmpf_sub(sum,u,&vv);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "mp_limb_t vl;" type_identifier identifier ;) (declaration "__mpf_struct vv;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (v == 0) {\n    __gmpf_set(sum,u);\n  }\n  else {\n    vl = v;\n    vv._mp_d = &vl;\n    vv._mp_size = 1;\n    vv._mp_exp = 1;\n    __gmpf_sub(sum,u,&vv);\n  }" if (parenthesized_expression "(v == 0)" ( (binary_expression "v == 0" identifier == number_literal) )) (compound_statement "{\n    __gmpf_set(sum,u);\n  }" { (expression_statement "__gmpf_set(sum,u);" (call_expression "__gmpf_set(sum,u)" identifier (argument_list "(sum,u)" ( identifier , identifier ))) ;) }) (else_clause "else {\n    vl = v;\n    vv._mp_d = &vl;\n    vv._mp_size = 1;\n    vv._mp_exp = 1;\n    __gmpf_sub(sum,u,&vv);\n  }" else (compound_statement "{\n    vl = v;\n    vv._mp_d = &vl;\n    vv._mp_size = 1;\n    vv._mp_exp = 1;\n    __gmpf_sub(sum,u,&vv);\n  }" { (expression_statement "vl = v;" (assignment_expression "vl = v" identifier = identifier) ;) (expression_statement "vv._mp_d = &vl;" (assignment_expression "vv._mp_d = &vl" (field_expression "vv._mp_d" identifier . field_identifier) = (pointer_expression "&vl" & identifier)) ;) (expression_statement "vv._mp_size = 1;" (assignment_expression "vv._mp_size = 1" (field_expression "vv._mp_size" identifier . field_identifier) = number_literal) ;) (expression_statement "vv._mp_exp = 1;" (assignment_expression "vv._mp_exp = 1" (field_expression "vv._mp_exp" identifier . field_identifier) = number_literal) ;) (expression_statement "__gmpf_sub(sum,u,&vv);" (call_expression "__gmpf_sub(sum,u,&vv)" identifier (argument_list "(sum,u,&vv)" ( identifier , identifier , (pointer_expression "&vv" & identifier) ))) ;) }))) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void __gmpf_sub_ui(undefined4 param_1,int param_2)\n\n{\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  int local_28;\n  undefined1 local_24 [4];\n  undefined4 local_20;\n  undefined4 local_1c;\n  int *local_18;\n  int local_14;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x20727;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    __gmpf_set(unaff_retaddr,param_1);\n  }\n  else {\n    local_28 = param_2;\n    local_18 = &local_28;\n    local_20 = 1;\n    local_1c = 1;\n    __gmpf_sub(unaff_retaddr,param_1,local_24);\n  }\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0007ebe0();\n}\n\n" (function_definition "void __gmpf_sub_ui(undefined4 param_1,int param_2)\n\n{\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  int local_28;\n  undefined1 local_24 [4];\n  undefined4 local_20;\n  undefined4 local_1c;\n  int *local_18;\n  int local_14;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x20727;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    __gmpf_set(unaff_retaddr,param_1);\n  }\n  else {\n    local_28 = param_2;\n    local_18 = &local_28;\n    local_20 = 1;\n    local_1c = 1;\n    __gmpf_sub(unaff_retaddr,param_1,local_24);\n  }\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0007ebe0();\n}" primitive_type (function_declarator "__gmpf_sub_ui(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  int local_28;\n  undefined1 local_24 [4];\n  undefined4 local_20;\n  undefined4 local_1c;\n  int *local_18;\n  int local_14;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x20727;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    __gmpf_set(unaff_retaddr,param_1);\n  }\n  else {\n    local_28 = param_2;\n    local_18 = &local_28;\n    local_20 = 1;\n    local_1c = 1;\n    __gmpf_sub(unaff_retaddr,param_1,local_24);\n  }\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0007ebe0();\n}" { (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 unaff_retaddr;" type_identifier identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "undefined1 local_24 [4];" type_identifier (array_declarator "local_24 [4]" identifier [ number_literal ]) ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "undefined4 local_1c;" type_identifier identifier ;) (declaration "int *local_18;" primitive_type (pointer_declarator "*local_18" * identifier) ;) (declaration "int local_14;" primitive_type identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x20727;" (assignment_expression "uStack_c = 0x20727" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_14 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_14 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_2 == 0) {\n    __gmpf_set(unaff_retaddr,param_1);\n  }\n  else {\n    local_28 = param_2;\n    local_18 = &local_28;\n    local_20 = 1;\n    local_1c = 1;\n    __gmpf_sub(unaff_retaddr,param_1,local_24);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    __gmpf_set(unaff_retaddr,param_1);\n  }" { (expression_statement "__gmpf_set(unaff_retaddr,param_1);" (call_expression "__gmpf_set(unaff_retaddr,param_1)" identifier (argument_list "(unaff_retaddr,param_1)" ( identifier , identifier ))) ;) }) (else_clause "else {\n    local_28 = param_2;\n    local_18 = &local_28;\n    local_20 = 1;\n    local_1c = 1;\n    __gmpf_sub(unaff_retaddr,param_1,local_24);\n  }" else (compound_statement "{\n    local_28 = param_2;\n    local_18 = &local_28;\n    local_20 = 1;\n    local_1c = 1;\n    __gmpf_sub(unaff_retaddr,param_1,local_24);\n  }" { (expression_statement "local_28 = param_2;" (assignment_expression "local_28 = param_2" identifier = identifier) ;) (expression_statement "local_18 = &local_28;" (assignment_expression "local_18 = &local_28" identifier = (pointer_expression "&local_28" & identifier)) ;) (expression_statement "local_20 = 1;" (assignment_expression "local_20 = 1" identifier = number_literal) ;) (expression_statement "local_1c = 1;" (assignment_expression "local_1c = 1" identifier = number_literal) ;) (expression_statement "__gmpf_sub(unaff_retaddr,param_1,local_24);" (call_expression "__gmpf_sub(unaff_retaddr,param_1,local_24)" identifier (argument_list "(unaff_retaddr,param_1,local_24)" ( identifier , identifier , identifier ))) ;) }))) (if_statement "if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_14 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_14 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_0007ebe0();" (call_expression "FUN_0007ebe0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void __gmpf_sub_ui(undefined4 param_1,int param_2)\n\n{\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  int local_28;\n  undefined1 local_24 [4];\n  undefined4 local_20;\n  undefined4 local_1c;\n  int *local_18;\n  int local_14;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x20727;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    __gmpf_set(unaff_retaddr,param_1);\n  }\n  else {\n    local_28 = param_2;\n    local_18 = &local_28;\n    local_20 = 1;\n    local_1c = 1;\n    __gmpf_sub(unaff_retaddr,param_1,local_24);\n  }\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0007ebe0();\n}" (primitive_type "void") (function_declarator "__gmpf_sub_ui(undefined4 param_1,int param_2)" (identifier "__gmpf_sub_ui") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  int local_28;\n  undefined1 local_24 [4];\n  undefined4 local_20;\n  undefined4 local_1c;\n  int *local_18;\n  int local_14;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x20727;\n  entry();\n  local_14 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == 0) {\n    __gmpf_set(unaff_retaddr,param_1);\n  }\n  else {\n    local_28 = param_2;\n    local_18 = &local_28;\n    local_20 = 1;\n    local_1c = 1;\n    __gmpf_sub(unaff_retaddr,param_1,local_24);\n  }\n  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0007ebe0();\n}" ({ "{") (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 unaff_retaddr;" (type_identifier "undefined4") (identifier "unaff_retaddr") (; ";")) (declaration "int local_28;" (primitive_type "int") (identifier "local_28") (; ";")) (declaration "undefined1 local_24 [4];" (type_identifier "undefined1") (array_declarator "local_24 [4]" (identifier "local_24") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "undefined4 local_20;" (type_identifier "undefined4") (identifier "local_20") (; ";")) (declaration "undefined4 local_1c;" (type_identifier "undefined4") (identifier "local_1c") (; ";")) (declaration "int *local_18;" (primitive_type "int") (pointer_declarator "*local_18" (* "*") (identifier "local_18")) (; ";")) (declaration "int local_14;" (primitive_type "int") (identifier "local_14") (; ";")) (declaration "undefined4 uStack_c;" (type_identifier "undefined4") (identifier "uStack_c") (; ";")) (expression_statement "uStack_c = 0x20727;" (assignment_expression "uStack_c = 0x20727" (identifier "uStack_c") (= "=") (number_literal "0x20727")) (; ";")) (expression_statement "entry();" (call_expression "entry()" (identifier "entry") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "local_14 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_14 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_14") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (param_2 == 0) {\n    __gmpf_set(unaff_retaddr,param_1);\n  }\n  else {\n    local_28 = param_2;\n    local_18 = &local_28;\n    local_20 = 1;\n    local_1c = 1;\n    __gmpf_sub(unaff_retaddr,param_1,local_24);\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    __gmpf_set(unaff_retaddr,param_1);\n  }" ({ "{") (expression_statement "__gmpf_set(unaff_retaddr,param_1);" (call_expression "__gmpf_set(unaff_retaddr,param_1)" (identifier "__gmpf_set") (argument_list "(unaff_retaddr,param_1)" (( "(") (identifier "unaff_retaddr") (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    local_28 = param_2;\n    local_18 = &local_28;\n    local_20 = 1;\n    local_1c = 1;\n    __gmpf_sub(unaff_retaddr,param_1,local_24);\n  }" (else "else") (compound_statement "{\n    local_28 = param_2;\n    local_18 = &local_28;\n    local_20 = 1;\n    local_1c = 1;\n    __gmpf_sub(unaff_retaddr,param_1,local_24);\n  }" ({ "{") (expression_statement "local_28 = param_2;" (assignment_expression "local_28 = param_2" (identifier "local_28") (= "=") (identifier "param_2")) (; ";")) (expression_statement "local_18 = &local_28;" (assignment_expression "local_18 = &local_28" (identifier "local_18") (= "=") (pointer_expression "&local_28" (& "&") (identifier "local_28"))) (; ";")) (expression_statement "local_20 = 1;" (assignment_expression "local_20 = 1" (identifier "local_20") (= "=") (number_literal "1")) (; ";")) (expression_statement "local_1c = 1;" (assignment_expression "local_1c = 1" (identifier "local_1c") (= "=") (number_literal "1")) (; ";")) (expression_statement "__gmpf_sub(unaff_retaddr,param_1,local_24);" (call_expression "__gmpf_sub(unaff_retaddr,param_1,local_24)" (identifier "__gmpf_sub") (argument_list "(unaff_retaddr,param_1,local_24)" (( "(") (identifier "unaff_retaddr") (, ",") (identifier "param_1") (, ",") (identifier "local_24") () ")"))) (; ";")) (} "}")))) (if_statement "if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_14 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_14 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_14") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0007ebe0();" (call_expression "FUN_0007ebe0()" (identifier "FUN_0007ebe0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void function_1(type_1 sum,type_2 u,type_3 var_2)

{
  int var_5;
  int var_1;
  type_4 vl;
  type_5 vv;
  
  var_5 = *(int *)(var_1 + 0x14);
  if (var_2 == 0) {
    var_3(sum,u);
  }
  else {
    vl = var_2;
    vv._mp_d = &vl;
    vv._mp_size = 1;
    vv._mp_exp = 1;
    var_4(sum,u,&vv);
  }
  if (var_5 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_6();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

void MASKED(undefined4 param_1,int param_2)

{
  int in_GS_OFFSET;
  undefined4 unaff_retaddr;
  int local_28;
  undefined1 local_24 [4];
  undefined4 local_20;
  undefined4 local_1c;
  int *local_18;
  int local_14;
  undefined4 uStack_c;
  
  uStack_c = 0x20727;
  entry();
  local_14 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_2 == 0) {
    __gmpf_set(unaff_retaddr,param_1);
  }
  else {
    local_28 = param_2;
    local_18 = &local_28;
    local_20 = 1;
    local_1c = 1;
    __gmpf_sub(unaff_retaddr,param_1,local_24);
  }
  if (local_14 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0007ebe0();
}

