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

void __gmpq_inits(mpq_ptr x,...)

{
  undefined1 *puVar1;
  
  if (x != (mpq_ptr)0x0) {
    puVar1 = &stack0x0000000c;
    do {
      __gmpq_init(x);
      x = *(mpq_ptr *)(puVar1 + -4);
      puVar1 = puVar1 + 4;
    } while (x != (__mpq_struct *)0x0);
  }
  return;
}



void __regparm3 __gmpq_inits(undefined4 param_1,undefined4 param_2)

{
  undefined1 *puVar1;
  int unaff_retaddr;
  
  entry(param_2,0x35fa7);
  if (unaff_retaddr != 0) {
    puVar1 = &stack0x00000008;
    do {
      __gmpq_init(unaff_retaddr);
      unaff_retaddr = *(int *)(puVar1 + -4);
      puVar1 = puVar1 + 4;
    } while (unaff_retaddr != 0);
  }
  return;
}


PUSH ESI
PUSH EBX
CALL 0x0001c340
ADD EBX,0x68059
SUB ESP,0x4
MOV EAX,dword ptr [ESP + 0x10]
TEST EAX,EAX
JZ 0x00035fd6
LEA ESI,[ESP + 0x18]
LEA ESI,[ESI]
SUB ESP,0xc
ADD ESI,0x4
PUSH EAX
CALL 0x0001bcb0
MOV EAX,dword ptr [ESI + -0x8]
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00035fc0
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "void __regparm3 __gmpq_inits(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined1 *puVar1;\n  int unaff_retaddr;\n  \n  entry(param_2,0x35fa7);\n  if (unaff_retaddr != 0) {\n    puVar1 = &stack0x00000008;\n    do {\n      __gmpq_init(unaff_retaddr);\n      unaff_retaddr = *(int *)(puVar1 + -4);\n      puVar1 = puVar1 + 4;\n    } while (unaff_retaddr != 0);\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 __gmpq_inits(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined1 *puVar1;\n  int unaff_retaddr;\n  \n  entry(param_2,0x35fa7);\n  if (unaff_retaddr != 0) {\n    puVar1 = &stack0x00000008;\n    do {\n      __gmpq_init(unaff_retaddr);\n      unaff_retaddr = *(int *)(puVar1 + -4);\n      puVar1 = puVar1 + 4;\n    } while (unaff_retaddr != 0);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "__gmpq_inits(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  int unaff_retaddr;\n  \n  entry(param_2,0x35fa7);\n  if (unaff_retaddr != 0) {\n    puVar1 = &stack0x00000008;\n    do {\n      __gmpq_init(unaff_retaddr);\n      unaff_retaddr = *(int *)(puVar1 + -4);\n      puVar1 = puVar1 + 4;\n    } while (unaff_retaddr != 0);\n  }\n  return;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int unaff_retaddr;" primitive_type identifier ;) (expression_statement "entry(param_2,0x35fa7);" (call_expression "entry(param_2,0x35fa7)" identifier (argument_list "(param_2,0x35fa7)" ( identifier , number_literal ))) ;) (if_statement "if (unaff_retaddr != 0) {\n    puVar1 = &stack0x00000008;\n    do {\n      __gmpq_init(unaff_retaddr);\n      unaff_retaddr = *(int *)(puVar1 + -4);\n      puVar1 = puVar1 + 4;\n    } while (unaff_retaddr != 0);\n  }" if (parenthesized_expression "(unaff_retaddr != 0)" ( (binary_expression "unaff_retaddr != 0" identifier != number_literal) )) (compound_statement "{\n    puVar1 = &stack0x00000008;\n    do {\n      __gmpq_init(unaff_retaddr);\n      unaff_retaddr = *(int *)(puVar1 + -4);\n      puVar1 = puVar1 + 4;\n    } while (unaff_retaddr != 0);\n  }" { (expression_statement "puVar1 = &stack0x00000008;" (assignment_expression "puVar1 = &stack0x00000008" identifier = (pointer_expression "&stack0x00000008" & identifier)) ;) (do_statement "do {\n      __gmpq_init(unaff_retaddr);\n      unaff_retaddr = *(int *)(puVar1 + -4);\n      puVar1 = puVar1 + 4;\n    } while (unaff_retaddr != 0);" do (compound_statement "{\n      __gmpq_init(unaff_retaddr);\n      unaff_retaddr = *(int *)(puVar1 + -4);\n      puVar1 = puVar1 + 4;\n    }" { (expression_statement "__gmpq_init(unaff_retaddr);" (call_expression "__gmpq_init(unaff_retaddr)" identifier (argument_list "(unaff_retaddr)" ( identifier ))) ;) (expression_statement "unaff_retaddr = *(int *)(puVar1 + -4);" (assignment_expression "unaff_retaddr = *(int *)(puVar1 + -4)" identifier = (pointer_expression "*(int *)(puVar1 + -4)" * (cast_expression "(int *)(puVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -4)" ( (binary_expression "puVar1 + -4" identifier + number_literal) ))))) ;) (expression_statement "puVar1 = puVar1 + 4;" (assignment_expression "puVar1 = puVar1 + 4" identifier = (binary_expression "puVar1 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(unaff_retaddr != 0)" ( (binary_expression "unaff_retaddr != 0" identifier != number_literal) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __gmpq_inits(mpq_ptr x,...)\n\n{\n  undefined1 *puVar1;\n  \n  if (x != (mpq_ptr)0x0) {\n    puVar1 = &stack0x0000000c;\n    do {\n      __gmpq_init(x);\n      x = *(mpq_ptr *)(puVar1 + -4);\n      puVar1 = puVar1 + 4;\n    } while (x != (__mpq_struct *)0x0);\n  }\n  return;\n}\n\n" comment (function_definition "void __gmpq_inits(mpq_ptr x,...)\n\n{\n  undefined1 *puVar1;\n  \n  if (x != (mpq_ptr)0x0) {\n    puVar1 = &stack0x0000000c;\n    do {\n      __gmpq_init(x);\n      x = *(mpq_ptr *)(puVar1 + -4);\n      puVar1 = puVar1 + 4;\n    } while (x != (__mpq_struct *)0x0);\n  }\n  return;\n}" primitive_type (function_declarator "__gmpq_inits(mpq_ptr x,...)" identifier (parameter_list "(mpq_ptr x,...)" ( (parameter_declaration "mpq_ptr x" type_identifier identifier) , (variadic_parameter "..." ...) ))) (compound_statement "{\n  undefined1 *puVar1;\n  \n  if (x != (mpq_ptr)0x0) {\n    puVar1 = &stack0x0000000c;\n    do {\n      __gmpq_init(x);\n      x = *(mpq_ptr *)(puVar1 + -4);\n      puVar1 = puVar1 + 4;\n    } while (x != (__mpq_struct *)0x0);\n  }\n  return;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (if_statement "if (x != (mpq_ptr)0x0) {\n    puVar1 = &stack0x0000000c;\n    do {\n      __gmpq_init(x);\n      x = *(mpq_ptr *)(puVar1 + -4);\n      puVar1 = puVar1 + 4;\n    } while (x != (__mpq_struct *)0x0);\n  }" if (parenthesized_expression "(x != (mpq_ptr)0x0)" ( (binary_expression "x != (mpq_ptr)0x0" identifier != (cast_expression "(mpq_ptr)0x0" ( (type_descriptor "mpq_ptr" type_identifier) ) number_literal)) )) (compound_statement "{\n    puVar1 = &stack0x0000000c;\n    do {\n      __gmpq_init(x);\n      x = *(mpq_ptr *)(puVar1 + -4);\n      puVar1 = puVar1 + 4;\n    } while (x != (__mpq_struct *)0x0);\n  }" { (expression_statement "puVar1 = &stack0x0000000c;" (assignment_expression "puVar1 = &stack0x0000000c" identifier = (pointer_expression "&stack0x0000000c" & identifier)) ;) (do_statement "do {\n      __gmpq_init(x);\n      x = *(mpq_ptr *)(puVar1 + -4);\n      puVar1 = puVar1 + 4;\n    } while (x != (__mpq_struct *)0x0);" do (compound_statement "{\n      __gmpq_init(x);\n      x = *(mpq_ptr *)(puVar1 + -4);\n      puVar1 = puVar1 + 4;\n    }" { (expression_statement "__gmpq_init(x);" (call_expression "__gmpq_init(x)" identifier (argument_list "(x)" ( identifier ))) ;) (expression_statement "x = *(mpq_ptr *)(puVar1 + -4);" (assignment_expression "x = *(mpq_ptr *)(puVar1 + -4)" identifier = (pointer_expression "*(mpq_ptr *)(puVar1 + -4)" * (cast_expression "(mpq_ptr *)(puVar1 + -4)" ( (type_descriptor "mpq_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -4)" ( (binary_expression "puVar1 + -4" identifier + number_literal) ))))) ;) (expression_statement "puVar1 = puVar1 + 4;" (assignment_expression "puVar1 = puVar1 + 4" identifier = (binary_expression "puVar1 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(x != (__mpq_struct *)0x0)" ( (binary_expression "x != (__mpq_struct *)0x0" identifier != (cast_expression "(__mpq_struct *)0x0" ( (type_descriptor "__mpq_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 __gmpq_inits(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined1 *puVar1;\n  int unaff_retaddr;\n  \n  entry(param_2,0x35fa7);\n  if (unaff_retaddr != 0) {\n    puVar1 = &stack0x00000008;\n    do {\n      __gmpq_init(unaff_retaddr);\n      unaff_retaddr = *(int *)(puVar1 + -4);\n      puVar1 = puVar1 + 4;\n    } while (unaff_retaddr != 0);\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 __gmpq_inits(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined1 *puVar1;\n  int unaff_retaddr;\n  \n  entry(param_2,0x35fa7);\n  if (unaff_retaddr != 0) {\n    puVar1 = &stack0x00000008;\n    do {\n      __gmpq_init(unaff_retaddr);\n      unaff_retaddr = *(int *)(puVar1 + -4);\n      puVar1 = puVar1 + 4;\n    } while (unaff_retaddr != 0);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "__gmpq_inits(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  int unaff_retaddr;\n  \n  entry(param_2,0x35fa7);\n  if (unaff_retaddr != 0) {\n    puVar1 = &stack0x00000008;\n    do {\n      __gmpq_init(unaff_retaddr);\n      unaff_retaddr = *(int *)(puVar1 + -4);\n      puVar1 = puVar1 + 4;\n    } while (unaff_retaddr != 0);\n  }\n  return;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int unaff_retaddr;" primitive_type identifier ;) (expression_statement "entry(param_2,0x35fa7);" (call_expression "entry(param_2,0x35fa7)" identifier (argument_list "(param_2,0x35fa7)" ( identifier , number_literal ))) ;) (if_statement "if (unaff_retaddr != 0) {\n    puVar1 = &stack0x00000008;\n    do {\n      __gmpq_init(unaff_retaddr);\n      unaff_retaddr = *(int *)(puVar1 + -4);\n      puVar1 = puVar1 + 4;\n    } while (unaff_retaddr != 0);\n  }" if (parenthesized_expression "(unaff_retaddr != 0)" ( (binary_expression "unaff_retaddr != 0" identifier != number_literal) )) (compound_statement "{\n    puVar1 = &stack0x00000008;\n    do {\n      __gmpq_init(unaff_retaddr);\n      unaff_retaddr = *(int *)(puVar1 + -4);\n      puVar1 = puVar1 + 4;\n    } while (unaff_retaddr != 0);\n  }" { (expression_statement "puVar1 = &stack0x00000008;" (assignment_expression "puVar1 = &stack0x00000008" identifier = (pointer_expression "&stack0x00000008" & identifier)) ;) (do_statement "do {\n      __gmpq_init(unaff_retaddr);\n      unaff_retaddr = *(int *)(puVar1 + -4);\n      puVar1 = puVar1 + 4;\n    } while (unaff_retaddr != 0);" do (compound_statement "{\n      __gmpq_init(unaff_retaddr);\n      unaff_retaddr = *(int *)(puVar1 + -4);\n      puVar1 = puVar1 + 4;\n    }" { (expression_statement "__gmpq_init(unaff_retaddr);" (call_expression "__gmpq_init(unaff_retaddr)" identifier (argument_list "(unaff_retaddr)" ( identifier ))) ;) (expression_statement "unaff_retaddr = *(int *)(puVar1 + -4);" (assignment_expression "unaff_retaddr = *(int *)(puVar1 + -4)" identifier = (pointer_expression "*(int *)(puVar1 + -4)" * (cast_expression "(int *)(puVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -4)" ( (binary_expression "puVar1 + -4" identifier + number_literal) ))))) ;) (expression_statement "puVar1 = puVar1 + 4;" (assignment_expression "puVar1 = puVar1 + 4" identifier = (binary_expression "puVar1 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(unaff_retaddr != 0)" ( (binary_expression "unaff_retaddr != 0" identifier != number_literal) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (do_statement do (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 __gmpq_inits(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined1 *puVar1;\n  int unaff_retaddr;\n  \n  entry(param_2,0x35fa7);\n  if (unaff_retaddr != 0) {\n    puVar1 = &stack0x00000008;\n    do {\n      __gmpq_init(unaff_retaddr);\n      unaff_retaddr = *(int *)(puVar1 + -4);\n      puVar1 = puVar1 + 4;\n    } while (unaff_retaddr != 0);\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "__gmpq_inits(undefined4 param_1,undefined4 param_2)" (identifier "__gmpq_inits") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined1 *puVar1;\n  int unaff_retaddr;\n  \n  entry(param_2,0x35fa7);\n  if (unaff_retaddr != 0) {\n    puVar1 = &stack0x00000008;\n    do {\n      __gmpq_init(unaff_retaddr);\n      unaff_retaddr = *(int *)(puVar1 + -4);\n      puVar1 = puVar1 + 4;\n    } while (unaff_retaddr != 0);\n  }\n  return;\n}" ({ "{") (declaration "undefined1 *puVar1;" (type_identifier "undefined1") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int unaff_retaddr;" (primitive_type "int") (identifier "unaff_retaddr") (; ";")) (expression_statement "entry(param_2,0x35fa7);" (call_expression "entry(param_2,0x35fa7)" (identifier "entry") (argument_list "(param_2,0x35fa7)" (( "(") (identifier "param_2") (, ",") (number_literal "0x35fa7") () ")"))) (; ";")) (if_statement "if (unaff_retaddr != 0) {\n    puVar1 = &stack0x00000008;\n    do {\n      __gmpq_init(unaff_retaddr);\n      unaff_retaddr = *(int *)(puVar1 + -4);\n      puVar1 = puVar1 + 4;\n    } while (unaff_retaddr != 0);\n  }" (if "if") (parenthesized_expression "(unaff_retaddr != 0)" (( "(") (binary_expression "unaff_retaddr != 0" (identifier "unaff_retaddr") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    puVar1 = &stack0x00000008;\n    do {\n      __gmpq_init(unaff_retaddr);\n      unaff_retaddr = *(int *)(puVar1 + -4);\n      puVar1 = puVar1 + 4;\n    } while (unaff_retaddr != 0);\n  }" ({ "{") (expression_statement "puVar1 = &stack0x00000008;" (assignment_expression "puVar1 = &stack0x00000008" (identifier "puVar1") (= "=") (pointer_expression "&stack0x00000008" (& "&") (identifier "stack0x00000008"))) (; ";")) (do_statement "do {\n      __gmpq_init(unaff_retaddr);\n      unaff_retaddr = *(int *)(puVar1 + -4);\n      puVar1 = puVar1 + 4;\n    } while (unaff_retaddr != 0);" (do "do") (compound_statement "{\n      __gmpq_init(unaff_retaddr);\n      unaff_retaddr = *(int *)(puVar1 + -4);\n      puVar1 = puVar1 + 4;\n    }" ({ "{") (expression_statement "__gmpq_init(unaff_retaddr);" (call_expression "__gmpq_init(unaff_retaddr)" (identifier "__gmpq_init") (argument_list "(unaff_retaddr)" (( "(") (identifier "unaff_retaddr") () ")"))) (; ";")) (expression_statement "unaff_retaddr = *(int *)(puVar1 + -4);" (assignment_expression "unaff_retaddr = *(int *)(puVar1 + -4)" (identifier "unaff_retaddr") (= "=") (pointer_expression "*(int *)(puVar1 + -4)" (* "*") (cast_expression "(int *)(puVar1 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -4)" (( "(") (binary_expression "puVar1 + -4" (identifier "puVar1") (+ "+") (number_literal "-4")) () ")"))))) (; ";")) (expression_statement "puVar1 = puVar1 + 4;" (assignment_expression "puVar1 = puVar1 + 4" (identifier "puVar1") (= "=") (binary_expression "puVar1 + 4" (identifier "puVar1") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(unaff_retaddr != 0)" (( "(") (binary_expression "unaff_retaddr != 0" (identifier "unaff_retaddr") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 var_1,...)

{
  type_2 *var_3;
  
  if (var_1 != (type_1)0x0) {
    var_3 = &stack0x0000000c;
    do {
      var_2(var_1);
      var_1 = *(type_1 *)(var_3 + -4);
      var_3 = var_3 + 4;
    } while (var_1 != (type_3 *)0x0);
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (do_statement body: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (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))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (return_statement))))

void __regparm3 MASKED(undefined4 param_1,undefined4 param_2)

{
  undefined1 *puVar1;
  int unaff_retaddr;
  
  entry(param_2,0x35fa7);
  if (unaff_retaddr != 0) {
    puVar1 = &stack0x00000008;
    do {
      __gmpq_init(unaff_retaddr);
      unaff_retaddr = *(int *)(puVar1 + -4);
      puVar1 = puVar1 + 4;
    } while (unaff_retaddr != 0);
  }
  return;
}

