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

void __regparm3 tostring(VALUE *v)

{
  int iVar1;
  
  if (v->type == integer) {
    iVar1 = __gmpz_get_str(0,10,&v->u);
    __gmpz_clear(&v->u);
    (v->u).i[0]._mp_alloc = iVar1;
    v->type = string;
  }
  else if (v->type != string) {
                    /* WARNING: Subroutine does not return */
    abort();
  }
  return;
}



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

void __regparm3 FUN_00011aa0(int *param_1)

{
  int iVar1;
  
  if (*param_1 == 0) {
    iVar1 = __gmpz_get_str(0,10,param_1 + 1);
    __gmpz_clear(param_1 + 1);
    param_1[1] = iVar1;
    *param_1 = 1;
  }
  else if (*param_1 != 1) {
                    /* WARNING: Subroutine does not return */
    abort();
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x000116e0
ADD EBX,0x1d555
SUB ESP,0xc
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JNZ 0x00011af0
SUB ESP,0x4
LEA EDI,[ESI + 0x4]
PUSH EDI
PUSH 0xa
PUSH 0x0
CALL 0x00011150
MOV dword ptr [ESP],EDI
MOV EBP,EAX
CALL 0x000112d0
MOV dword ptr [ESI + 0x4],EBP
ADD ESP,0x10
MOV dword ptr [ESI],0x1
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP EAX,0x1
JZ 0x00011ae0
CALL 0x00011430
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00011aa0(int *param_1)\n\n{\n  int iVar1;\n  \n  if (*param_1 == 0) {\n    iVar1 = __gmpz_get_str(0,10,param_1 + 1);\n    __gmpz_clear(param_1 + 1);\n    param_1[1] = iVar1;\n    *param_1 = 1;\n  }\n  else if (*param_1 != 1) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00011aa0(int *param_1)\n\n{\n  int iVar1;\n  \n  if (*param_1 == 0) {\n    iVar1 = __gmpz_get_str(0,10,param_1 + 1);\n    __gmpz_clear(param_1 + 1);\n    param_1[1] = iVar1;\n    *param_1 = 1;\n  }\n  else if (*param_1 != 1) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00011aa0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*param_1 == 0) {\n    iVar1 = __gmpz_get_str(0,10,param_1 + 1);\n    __gmpz_clear(param_1 + 1);\n    param_1[1] = iVar1;\n    *param_1 = 1;\n  }\n  else if (*param_1 != 1) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*param_1 == 0) {\n    iVar1 = __gmpz_get_str(0,10,param_1 + 1);\n    __gmpz_clear(param_1 + 1);\n    param_1[1] = iVar1;\n    *param_1 = 1;\n  }\n  else if (*param_1 != 1) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n    iVar1 = __gmpz_get_str(0,10,param_1 + 1);\n    __gmpz_clear(param_1 + 1);\n    param_1[1] = iVar1;\n    *param_1 = 1;\n  }" { (expression_statement "iVar1 = __gmpz_get_str(0,10,param_1 + 1);" (assignment_expression "iVar1 = __gmpz_get_str(0,10,param_1 + 1)" identifier = (call_expression "__gmpz_get_str(0,10,param_1 + 1)" identifier (argument_list "(0,10,param_1 + 1)" ( number_literal , number_literal , (binary_expression "param_1 + 1" identifier + number_literal) )))) ;) (expression_statement "__gmpz_clear(param_1 + 1);" (call_expression "__gmpz_clear(param_1 + 1)" identifier (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) ;) (expression_statement "param_1[1] = iVar1;" (assignment_expression "param_1[1] = iVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_1 = 1;" (assignment_expression "*param_1 = 1" (pointer_expression "*param_1" * identifier) = number_literal) ;) }) (else_clause "else if (*param_1 != 1) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" else (if_statement "if (*param_1 != 1) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" if (parenthesized_expression "(*param_1 != 1)" ( (binary_expression "*param_1 != 1" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" { comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })))) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 tostring(VALUE *v)\n\n{\n  int iVar1;\n  \n  if (v->type == integer) {\n    iVar1 = __gmpz_get_str(0,10,&v->u);\n    __gmpz_clear(&v->u);\n    (v->u).i[0]._mp_alloc = iVar1;\n    v->type = string;\n  }\n  else if (v->type != string) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 tostring(VALUE *v)\n\n{\n  int iVar1;\n  \n  if (v->type == integer) {\n    iVar1 = __gmpz_get_str(0,10,&v->u);\n    __gmpz_clear(&v->u);\n    (v->u).i[0]._mp_alloc = iVar1;\n    v->type = string;\n  }\n  else if (v->type != string) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "tostring(VALUE *v)" identifier (parameter_list "(VALUE *v)" ( (parameter_declaration "VALUE *v" type_identifier (pointer_declarator "*v" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (v->type == integer) {\n    iVar1 = __gmpz_get_str(0,10,&v->u);\n    __gmpz_clear(&v->u);\n    (v->u).i[0]._mp_alloc = iVar1;\n    v->type = string;\n  }\n  else if (v->type != string) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (v->type == integer) {\n    iVar1 = __gmpz_get_str(0,10,&v->u);\n    __gmpz_clear(&v->u);\n    (v->u).i[0]._mp_alloc = iVar1;\n    v->type = string;\n  }\n  else if (v->type != string) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" if (parenthesized_expression "(v->type == integer)" ( (binary_expression "v->type == integer" (field_expression "v->type" identifier -> field_identifier) == identifier) )) (compound_statement "{\n    iVar1 = __gmpz_get_str(0,10,&v->u);\n    __gmpz_clear(&v->u);\n    (v->u).i[0]._mp_alloc = iVar1;\n    v->type = string;\n  }" { (expression_statement "iVar1 = __gmpz_get_str(0,10,&v->u);" (assignment_expression "iVar1 = __gmpz_get_str(0,10,&v->u)" identifier = (call_expression "__gmpz_get_str(0,10,&v->u)" identifier (argument_list "(0,10,&v->u)" ( number_literal , number_literal , (pointer_expression "&v->u" & (field_expression "v->u" identifier -> field_identifier)) )))) ;) (expression_statement "__gmpz_clear(&v->u);" (call_expression "__gmpz_clear(&v->u)" identifier (argument_list "(&v->u)" ( (pointer_expression "&v->u" & (field_expression "v->u" identifier -> field_identifier)) ))) ;) (expression_statement "(v->u).i[0]._mp_alloc = iVar1;" (assignment_expression "(v->u).i[0]._mp_alloc = iVar1" (field_expression "(v->u).i[0]._mp_alloc" (subscript_expression "(v->u).i[0]" (field_expression "(v->u).i" (parenthesized_expression "(v->u)" ( (field_expression "v->u" identifier -> field_identifier) )) . field_identifier) [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "v->type = string;" (assignment_expression "v->type = string" (field_expression "v->type" identifier -> field_identifier) = identifier) ;) }) (else_clause "else if (v->type != string) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" else (if_statement "if (v->type != string) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" if (parenthesized_expression "(v->type != string)" ( (binary_expression "v->type != string" (field_expression "v->type" identifier -> field_identifier) != identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" { comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })))) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00011aa0(int *param_1)\n\n{\n  int iVar1;\n  \n  if (*param_1 == 0) {\n    iVar1 = __gmpz_get_str(0,10,param_1 + 1);\n    __gmpz_clear(param_1 + 1);\n    param_1[1] = iVar1;\n    *param_1 = 1;\n  }\n  else if (*param_1 != 1) {\n                    \n    abort();\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00011aa0(int *param_1)\n\n{\n  int iVar1;\n  \n  if (*param_1 == 0) {\n    iVar1 = __gmpz_get_str(0,10,param_1 + 1);\n    __gmpz_clear(param_1 + 1);\n    param_1[1] = iVar1;\n    *param_1 = 1;\n  }\n  else if (*param_1 != 1) {\n                    \n    abort();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00011aa0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*param_1 == 0) {\n    iVar1 = __gmpz_get_str(0,10,param_1 + 1);\n    __gmpz_clear(param_1 + 1);\n    param_1[1] = iVar1;\n    *param_1 = 1;\n  }\n  else if (*param_1 != 1) {\n                    \n    abort();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*param_1 == 0) {\n    iVar1 = __gmpz_get_str(0,10,param_1 + 1);\n    __gmpz_clear(param_1 + 1);\n    param_1[1] = iVar1;\n    *param_1 = 1;\n  }\n  else if (*param_1 != 1) {\n                    \n    abort();\n  }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n    iVar1 = __gmpz_get_str(0,10,param_1 + 1);\n    __gmpz_clear(param_1 + 1);\n    param_1[1] = iVar1;\n    *param_1 = 1;\n  }" { (expression_statement "iVar1 = __gmpz_get_str(0,10,param_1 + 1);" (assignment_expression "iVar1 = __gmpz_get_str(0,10,param_1 + 1)" identifier = (call_expression "__gmpz_get_str(0,10,param_1 + 1)" identifier (argument_list "(0,10,param_1 + 1)" ( number_literal , number_literal , (binary_expression "param_1 + 1" identifier + number_literal) )))) ;) (expression_statement "__gmpz_clear(param_1 + 1);" (call_expression "__gmpz_clear(param_1 + 1)" identifier (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) ;) (expression_statement "param_1[1] = iVar1;" (assignment_expression "param_1[1] = iVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_1 = 1;" (assignment_expression "*param_1 = 1" (pointer_expression "*param_1" * identifier) = number_literal) ;) }) (else_clause "else if (*param_1 != 1) {\n                    \n    abort();\n  }" else (if_statement "if (*param_1 != 1) {\n                    \n    abort();\n  }" if (parenthesized_expression "(*param_1 != 1)" ( (binary_expression "*param_1 != 1" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n                    \n    abort();\n  }" { (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT , (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00011aa0(int *param_1)\n\n{\n  int iVar1;\n  \n  if (*param_1 == 0) {\n    iVar1 = __gmpz_get_str(0,10,param_1 + 1);\n    __gmpz_clear(param_1 + 1);\n    param_1[1] = iVar1;\n    *param_1 = 1;\n  }\n  else if (*param_1 != 1) {\n                    \n    abort();\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00011aa0(int *param_1)" (identifier "FUN_00011aa0") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (*param_1 == 0) {\n    iVar1 = __gmpz_get_str(0,10,param_1 + 1);\n    __gmpz_clear(param_1 + 1);\n    param_1[1] = iVar1;\n    *param_1 = 1;\n  }\n  else if (*param_1 != 1) {\n                    \n    abort();\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (*param_1 == 0) {\n    iVar1 = __gmpz_get_str(0,10,param_1 + 1);\n    __gmpz_clear(param_1 + 1);\n    param_1[1] = iVar1;\n    *param_1 = 1;\n  }\n  else if (*param_1 != 1) {\n                    \n    abort();\n  }" (if "if") (parenthesized_expression "(*param_1 == 0)" (( "(") (binary_expression "*param_1 == 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = __gmpz_get_str(0,10,param_1 + 1);\n    __gmpz_clear(param_1 + 1);\n    param_1[1] = iVar1;\n    *param_1 = 1;\n  }" ({ "{") (expression_statement "iVar1 = __gmpz_get_str(0,10,param_1 + 1);" (assignment_expression "iVar1 = __gmpz_get_str(0,10,param_1 + 1)" (identifier "iVar1") (= "=") (call_expression "__gmpz_get_str(0,10,param_1 + 1)" (identifier "__gmpz_get_str") (argument_list "(0,10,param_1 + 1)" (( "(") (number_literal "0") (, ",") (number_literal "10") (, ",") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "__gmpz_clear(param_1 + 1);" (call_expression "__gmpz_clear(param_1 + 1)" (identifier "__gmpz_clear") (argument_list "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")"))) (; ";")) (expression_statement "param_1[1] = iVar1;" (assignment_expression "param_1[1] = iVar1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "*param_1 = 1;" (assignment_expression "*param_1 = 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else if (*param_1 != 1) {\n                    \n    abort();\n  }" (else "else") (if_statement "if (*param_1 != 1) {\n                    \n    abort();\n  }" (if "if") (parenthesized_expression "(*param_1 != 1)" (( "(") (binary_expression "*param_1 != 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n                    \n    abort();\n  }" ({ "{") (expression_statement "abort();" (call_expression "abort()" (identifier "abort") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *v)

{
  int iVar1;
  
  if (v->type == var_1) {
    iVar1 = var_2(0,10,&v->u);
    var_3(&v->u);
    (v->u).i[0]._mp_alloc = iVar1;
    v->type = var_4;
  }
  else if (v->type != var_4) {
                    /* WARNING: Subroutine does not return */
    var_5();
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal) (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))) (return_statement))))

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

void __regparm3 MASKED(int *param_1)

{
  int iVar1;
  
  if (*param_1 == 0) {
    iVar1 = __gmpz_get_str(0,10,param_1 + 1);
    __gmpz_clear(param_1 + 1);
    param_1[1] = iVar1;
    *param_1 = 1;
  }
  else if (*param_1 != 1) {
                    /* WARNING: Subroutine does not return */
    abort();
  }
  return;
}

