
/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */
/* WARNING: Unknown calling convention */

void __gmpf_init_set_si(mpf_ptr r,long val)

{
  int iVar1;
  undefined *puVar2;
  mp_limb_t *pmVar3;
  
  puVar2 = PTR___gmp_allocate_func_0009dd9c;
  iVar1 = *(int *)PTR___gmp_default_fp_limb_precision_0009decc;
  r->_mp_prec = iVar1;
  pmVar3 = (mp_limb_t *)(**(code **)puVar2)(iVar1 * 4 + 4);
  r->_mp_d = pmVar3;
  if (-1 < val) {
    *pmVar3 = val;
    r->_mp_exp = (uint)(val != 0);
    r->_mp_size = (uint)(val != 0);
    return;
  }
  *pmVar3 = -val;
  r->_mp_exp = 1;
  r->_mp_size = -1;
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

void __gmpf_init_set_si(int *param_1,int param_2)

{
  int iVar1;
  undefined *puVar2;
  int *piVar3;
  
  puVar2 = PTR___gmp_allocate_func_0009dd9c;
  iVar1 = *(int *)PTR___gmp_default_fp_limb_precision_0009decc;
  *param_1 = iVar1;
  piVar3 = (int *)(**(code **)puVar2)(iVar1 * 4 + 4);
  param_1[3] = (int)piVar3;
  if (-1 < param_2) {
    *piVar3 = param_2;
    param_1[2] = (uint)(param_2 != 0);
    param_1[1] = (uint)(param_2 != 0);
    return;
  }
  *piVar3 = -param_2;
  param_1[2] = 1;
  param_1[1] = -1;
  return;
}


CALL 0x0001c475
ADD EDX,0x8022b
PUSH ESI
PUSH EBX
SUB ESP,0x10
MOV EBX,dword ptr [ESP + 0x1c]
MOV ESI,dword ptr [ESP + 0x20]
MOV EAX,dword ptr [EDX + 0xfffffecc]
MOV EDX,dword ptr [EDX + 0xfffffd9c]
MOV EAX,dword ptr [EAX]
MOV dword ptr [EBX],EAX
LEA EAX,[EAX*0x4 + 0x4]
PUSH EAX
CALL dword ptr [EDX]
MOV dword ptr [EBX + 0xc],EAX
ADD ESP,0x10
TEST ESI,ESI
JS 0x0001de20
MOV dword ptr [EAX],ESI
SETNZ AL
MOVZX EAX,AL
MOV dword ptr [EBX + 0x8],EAX
MOV dword ptr [EBX + 0x4],EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
NEG ESI
MOV dword ptr [EAX],ESI
MOV EAX,0xffffffff
MOV dword ptr [EBX + 0x8],0x1
MOV dword ptr [EBX + 0x4],EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nvoid __gmpf_init_set_si(int *param_1,int param_2)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  int *piVar3;\n  \n  puVar2 = PTR___gmp_allocate_func_0009dd9c;\n  iVar1 = *(int *)PTR___gmp_default_fp_limb_precision_0009decc;\n  *param_1 = iVar1;\n  piVar3 = (int *)(**(code **)puVar2)(iVar1 * 4 + 4);\n  param_1[3] = (int)piVar3;\n  if (-1 < param_2) {\n    *piVar3 = param_2;\n    param_1[2] = (uint)(param_2 != 0);\n    param_1[1] = (uint)(param_2 != 0);\n    return;\n  }\n  *piVar3 = -param_2;\n  param_1[2] = 1;\n  param_1[1] = -1;\n  return;\n}\n\n" comment (function_definition "void __gmpf_init_set_si(int *param_1,int param_2)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  int *piVar3;\n  \n  puVar2 = PTR___gmp_allocate_func_0009dd9c;\n  iVar1 = *(int *)PTR___gmp_default_fp_limb_precision_0009decc;\n  *param_1 = iVar1;\n  piVar3 = (int *)(**(code **)puVar2)(iVar1 * 4 + 4);\n  param_1[3] = (int)piVar3;\n  if (-1 < param_2) {\n    *piVar3 = param_2;\n    param_1[2] = (uint)(param_2 != 0);\n    param_1[1] = (uint)(param_2 != 0);\n    return;\n  }\n  *piVar3 = -param_2;\n  param_1[2] = 1;\n  param_1[1] = -1;\n  return;\n}" primitive_type (function_declarator "__gmpf_init_set_si(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  int *piVar3;\n  \n  puVar2 = PTR___gmp_allocate_func_0009dd9c;\n  iVar1 = *(int *)PTR___gmp_default_fp_limb_precision_0009decc;\n  *param_1 = iVar1;\n  piVar3 = (int *)(**(code **)puVar2)(iVar1 * 4 + 4);\n  param_1[3] = (int)piVar3;\n  if (-1 < param_2) {\n    *piVar3 = param_2;\n    param_1[2] = (uint)(param_2 != 0);\n    param_1[1] = (uint)(param_2 != 0);\n    return;\n  }\n  *piVar3 = -param_2;\n  param_1[2] = 1;\n  param_1[1] = -1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "puVar2 = PTR___gmp_allocate_func_0009dd9c;" (assignment_expression "puVar2 = PTR___gmp_allocate_func_0009dd9c" identifier = identifier) ;) (expression_statement "iVar1 = *(int *)PTR___gmp_default_fp_limb_precision_0009decc;" (assignment_expression "iVar1 = *(int *)PTR___gmp_default_fp_limb_precision_0009decc" identifier = (pointer_expression "*(int *)PTR___gmp_default_fp_limb_precision_0009decc" * (cast_expression "(int *)PTR___gmp_default_fp_limb_precision_0009decc" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "piVar3 = (int *)(**(code **)puVar2)(iVar1 * 4 + 4);" (assignment_expression "piVar3 = (int *)(**(code **)puVar2)(iVar1 * 4 + 4)" identifier = (cast_expression "(int *)(**(code **)puVar2)(iVar1 * 4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)puVar2)(iVar1 * 4 + 4)" (parenthesized_expression "(**(code **)puVar2)" ( (pointer_expression "**(code **)puVar2" * (pointer_expression "*(code **)puVar2" * (cast_expression "(code **)puVar2" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(iVar1 * 4 + 4)" ( (binary_expression "iVar1 * 4 + 4" (binary_expression "iVar1 * 4" identifier * number_literal) + number_literal) ))))) ;) (expression_statement "param_1[3] = (int)piVar3;" (assignment_expression "param_1[3] = (int)piVar3" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (cast_expression "(int)piVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (-1 < param_2) {\n    *piVar3 = param_2;\n    param_1[2] = (uint)(param_2 != 0);\n    param_1[1] = (uint)(param_2 != 0);\n    return;\n  }" if (parenthesized_expression "(-1 < param_2)" ( (binary_expression "-1 < param_2" number_literal < identifier) )) (compound_statement "{\n    *piVar3 = param_2;\n    param_1[2] = (uint)(param_2 != 0);\n    param_1[1] = (uint)(param_2 != 0);\n    return;\n  }" { (expression_statement "*piVar3 = param_2;" (assignment_expression "*piVar3 = param_2" (pointer_expression "*piVar3" * identifier) = identifier) ;) (expression_statement "param_1[2] = (uint)(param_2 != 0);" (assignment_expression "param_1[2] = (uint)(param_2 != 0)" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (call_expression "(uint)(param_2 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )))) ;) (expression_statement "param_1[1] = (uint)(param_2 != 0);" (assignment_expression "param_1[1] = (uint)(param_2 != 0)" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (call_expression "(uint)(param_2 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )))) ;) (return_statement "return;" return ;) })) (expression_statement "*piVar3 = -param_2;" (assignment_expression "*piVar3 = -param_2" (pointer_expression "*piVar3" * identifier) = (unary_expression "-param_2" - identifier)) ;) (expression_statement "param_1[2] = 1;" (assignment_expression "param_1[2] = 1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = -1;" (assignment_expression "param_1[1] = -1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n/* WARNING: Unknown calling convention */\n\nvoid __gmpf_init_set_si(mpf_ptr r,long val)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  mp_limb_t *pmVar3;\n  \n  puVar2 = PTR___gmp_allocate_func_0009dd9c;\n  iVar1 = *(int *)PTR___gmp_default_fp_limb_precision_0009decc;\n  r->_mp_prec = iVar1;\n  pmVar3 = (mp_limb_t *)(**(code **)puVar2)(iVar1 * 4 + 4);\n  r->_mp_d = pmVar3;\n  if (-1 < val) {\n    *pmVar3 = val;\n    r->_mp_exp = (uint)(val != 0);\n    r->_mp_size = (uint)(val != 0);\n    return;\n  }\n  *pmVar3 = -val;\n  r->_mp_exp = 1;\n  r->_mp_size = -1;\n  return;\n}\n\n" comment comment (function_definition "void __gmpf_init_set_si(mpf_ptr r,long val)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  mp_limb_t *pmVar3;\n  \n  puVar2 = PTR___gmp_allocate_func_0009dd9c;\n  iVar1 = *(int *)PTR___gmp_default_fp_limb_precision_0009decc;\n  r->_mp_prec = iVar1;\n  pmVar3 = (mp_limb_t *)(**(code **)puVar2)(iVar1 * 4 + 4);\n  r->_mp_d = pmVar3;\n  if (-1 < val) {\n    *pmVar3 = val;\n    r->_mp_exp = (uint)(val != 0);\n    r->_mp_size = (uint)(val != 0);\n    return;\n  }\n  *pmVar3 = -val;\n  r->_mp_exp = 1;\n  r->_mp_size = -1;\n  return;\n}" primitive_type (function_declarator "__gmpf_init_set_si(mpf_ptr r,long val)" identifier (parameter_list "(mpf_ptr r,long val)" ( (parameter_declaration "mpf_ptr r" type_identifier identifier) , (parameter_declaration "long val" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  mp_limb_t *pmVar3;\n  \n  puVar2 = PTR___gmp_allocate_func_0009dd9c;\n  iVar1 = *(int *)PTR___gmp_default_fp_limb_precision_0009decc;\n  r->_mp_prec = iVar1;\n  pmVar3 = (mp_limb_t *)(**(code **)puVar2)(iVar1 * 4 + 4);\n  r->_mp_d = pmVar3;\n  if (-1 < val) {\n    *pmVar3 = val;\n    r->_mp_exp = (uint)(val != 0);\n    r->_mp_size = (uint)(val != 0);\n    return;\n  }\n  *pmVar3 = -val;\n  r->_mp_exp = 1;\n  r->_mp_size = -1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "mp_limb_t *pmVar3;" type_identifier (pointer_declarator "*pmVar3" * identifier) ;) (expression_statement "puVar2 = PTR___gmp_allocate_func_0009dd9c;" (assignment_expression "puVar2 = PTR___gmp_allocate_func_0009dd9c" identifier = identifier) ;) (expression_statement "iVar1 = *(int *)PTR___gmp_default_fp_limb_precision_0009decc;" (assignment_expression "iVar1 = *(int *)PTR___gmp_default_fp_limb_precision_0009decc" identifier = (pointer_expression "*(int *)PTR___gmp_default_fp_limb_precision_0009decc" * (cast_expression "(int *)PTR___gmp_default_fp_limb_precision_0009decc" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "r->_mp_prec = iVar1;" (assignment_expression "r->_mp_prec = iVar1" (field_expression "r->_mp_prec" identifier -> field_identifier) = identifier) ;) (expression_statement "pmVar3 = (mp_limb_t *)(**(code **)puVar2)(iVar1 * 4 + 4);" (assignment_expression "pmVar3 = (mp_limb_t *)(**(code **)puVar2)(iVar1 * 4 + 4)" identifier = (cast_expression "(mp_limb_t *)(**(code **)puVar2)(iVar1 * 4 + 4)" ( (type_descriptor "mp_limb_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)puVar2)(iVar1 * 4 + 4)" (parenthesized_expression "(**(code **)puVar2)" ( (pointer_expression "**(code **)puVar2" * (pointer_expression "*(code **)puVar2" * (cast_expression "(code **)puVar2" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(iVar1 * 4 + 4)" ( (binary_expression "iVar1 * 4 + 4" (binary_expression "iVar1 * 4" identifier * number_literal) + number_literal) ))))) ;) (expression_statement "r->_mp_d = pmVar3;" (assignment_expression "r->_mp_d = pmVar3" (field_expression "r->_mp_d" identifier -> field_identifier) = identifier) ;) (if_statement "if (-1 < val) {\n    *pmVar3 = val;\n    r->_mp_exp = (uint)(val != 0);\n    r->_mp_size = (uint)(val != 0);\n    return;\n  }" if (parenthesized_expression "(-1 < val)" ( (binary_expression "-1 < val" number_literal < identifier) )) (compound_statement "{\n    *pmVar3 = val;\n    r->_mp_exp = (uint)(val != 0);\n    r->_mp_size = (uint)(val != 0);\n    return;\n  }" { (expression_statement "*pmVar3 = val;" (assignment_expression "*pmVar3 = val" (pointer_expression "*pmVar3" * identifier) = identifier) ;) (expression_statement "r->_mp_exp = (uint)(val != 0);" (assignment_expression "r->_mp_exp = (uint)(val != 0)" (field_expression "r->_mp_exp" identifier -> field_identifier) = (call_expression "(uint)(val != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(val != 0)" ( (binary_expression "val != 0" identifier != number_literal) )))) ;) (expression_statement "r->_mp_size = (uint)(val != 0);" (assignment_expression "r->_mp_size = (uint)(val != 0)" (field_expression "r->_mp_size" identifier -> field_identifier) = (call_expression "(uint)(val != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(val != 0)" ( (binary_expression "val != 0" identifier != number_literal) )))) ;) (return_statement "return;" return ;) })) (expression_statement "*pmVar3 = -val;" (assignment_expression "*pmVar3 = -val" (pointer_expression "*pmVar3" * identifier) = (unary_expression "-val" - identifier)) ;) (expression_statement "r->_mp_exp = 1;" (assignment_expression "r->_mp_exp = 1" (field_expression "r->_mp_exp" identifier -> field_identifier) = number_literal) ;) (expression_statement "r->_mp_size = -1;" (assignment_expression "r->_mp_size = -1" (field_expression "r->_mp_size" identifier -> field_identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void __gmpf_init_set_si(int *param_1,int param_2)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  int *piVar3;\n  \n  puVar2 = PTR___gmp_allocate_func_0009dd9c;\n  iVar1 = *(int *)PTR___gmp_default_fp_limb_precision_0009decc;\n  *param_1 = iVar1;\n  piVar3 = (int *)(**(code **)puVar2)(iVar1 * 4 + 4);\n  param_1[3] = (int)piVar3;\n  if (-1 < param_2) {\n    *piVar3 = param_2;\n    param_1[2] = (uint)(param_2 != 0);\n    param_1[1] = (uint)(param_2 != 0);\n    return;\n  }\n  *piVar3 = -param_2;\n  param_1[2] = 1;\n  param_1[1] = -1;\n  return;\n}\n\n" (function_definition "void __gmpf_init_set_si(int *param_1,int param_2)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  int *piVar3;\n  \n  puVar2 = PTR___gmp_allocate_func_0009dd9c;\n  iVar1 = *(int *)PTR___gmp_default_fp_limb_precision_0009decc;\n  *param_1 = iVar1;\n  piVar3 = (int *)(**(code **)puVar2)(iVar1 * 4 + 4);\n  param_1[3] = (int)piVar3;\n  if (-1 < param_2) {\n    *piVar3 = param_2;\n    param_1[2] = (uint)(param_2 != 0);\n    param_1[1] = (uint)(param_2 != 0);\n    return;\n  }\n  *piVar3 = -param_2;\n  param_1[2] = 1;\n  param_1[1] = -1;\n  return;\n}" primitive_type (function_declarator "__gmpf_init_set_si(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  int *piVar3;\n  \n  puVar2 = PTR___gmp_allocate_func_0009dd9c;\n  iVar1 = *(int *)PTR___gmp_default_fp_limb_precision_0009decc;\n  *param_1 = iVar1;\n  piVar3 = (int *)(**(code **)puVar2)(iVar1 * 4 + 4);\n  param_1[3] = (int)piVar3;\n  if (-1 < param_2) {\n    *piVar3 = param_2;\n    param_1[2] = (uint)(param_2 != 0);\n    param_1[1] = (uint)(param_2 != 0);\n    return;\n  }\n  *piVar3 = -param_2;\n  param_1[2] = 1;\n  param_1[1] = -1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "puVar2 = PTR___gmp_allocate_func_0009dd9c;" (assignment_expression "puVar2 = PTR___gmp_allocate_func_0009dd9c" identifier = identifier) ;) (expression_statement "iVar1 = *(int *)PTR___gmp_default_fp_limb_precision_0009decc;" (assignment_expression "iVar1 = *(int *)PTR___gmp_default_fp_limb_precision_0009decc" identifier = (pointer_expression "*(int *)PTR___gmp_default_fp_limb_precision_0009decc" * (cast_expression "(int *)PTR___gmp_default_fp_limb_precision_0009decc" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "piVar3 = (int *)(**(code **)puVar2)(iVar1 * 4 + 4);" (assignment_expression "piVar3 = (int *)(**(code **)puVar2)(iVar1 * 4 + 4)" identifier = (cast_expression "(int *)(**(code **)puVar2)(iVar1 * 4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)puVar2)(iVar1 * 4 + 4)" (parenthesized_expression "(**(code **)puVar2)" ( (pointer_expression "**(code **)puVar2" * (pointer_expression "*(code **)puVar2" * (cast_expression "(code **)puVar2" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(iVar1 * 4 + 4)" ( (binary_expression "iVar1 * 4 + 4" (binary_expression "iVar1 * 4" identifier * number_literal) + number_literal) ))))) ;) (expression_statement "param_1[3] = (int)piVar3;" (assignment_expression "param_1[3] = (int)piVar3" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (cast_expression "(int)piVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (-1 < param_2) {\n    *piVar3 = param_2;\n    param_1[2] = (uint)(param_2 != 0);\n    param_1[1] = (uint)(param_2 != 0);\n    return;\n  }" if (parenthesized_expression "(-1 < param_2)" ( (binary_expression "-1 < param_2" number_literal < identifier) )) (compound_statement "{\n    *piVar3 = param_2;\n    param_1[2] = (uint)(param_2 != 0);\n    param_1[1] = (uint)(param_2 != 0);\n    return;\n  }" { (expression_statement "*piVar3 = param_2;" (assignment_expression "*piVar3 = param_2" (pointer_expression "*piVar3" * identifier) = identifier) ;) (expression_statement "param_1[2] = (uint)(param_2 != 0);" (assignment_expression "param_1[2] = (uint)(param_2 != 0)" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (call_expression "(uint)(param_2 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )))) ;) (expression_statement "param_1[1] = (uint)(param_2 != 0);" (assignment_expression "param_1[1] = (uint)(param_2 != 0)" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (call_expression "(uint)(param_2 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )))) ;) (return_statement "return;" return ;) })) (expression_statement "*piVar3 = -param_2;" (assignment_expression "*piVar3 = -param_2" (pointer_expression "*piVar3" * identifier) = (unary_expression "-param_2" - identifier)) ;) (expression_statement "param_1[2] = 1;" (assignment_expression "param_1[2] = 1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = -1;" (assignment_expression "param_1[1] = -1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (argument_list ( (binary_expression (binary_expression IDENT * LIT) + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != LIT) )))) ;) (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (unary_expression - IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return ;) })))
(function_definition "void __gmpf_init_set_si(int *param_1,int param_2)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  int *piVar3;\n  \n  puVar2 = PTR___gmp_allocate_func_0009dd9c;\n  iVar1 = *(int *)PTR___gmp_default_fp_limb_precision_0009decc;\n  *param_1 = iVar1;\n  piVar3 = (int *)(**(code **)puVar2)(iVar1 * 4 + 4);\n  param_1[3] = (int)piVar3;\n  if (-1 < param_2) {\n    *piVar3 = param_2;\n    param_1[2] = (uint)(param_2 != 0);\n    param_1[1] = (uint)(param_2 != 0);\n    return;\n  }\n  *piVar3 = -param_2;\n  param_1[2] = 1;\n  param_1[1] = -1;\n  return;\n}" (primitive_type "void") (function_declarator "__gmpf_init_set_si(int *param_1,int param_2)" (identifier "__gmpf_init_set_si") (parameter_list "(int *param_1,int param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  int *piVar3;\n  \n  puVar2 = PTR___gmp_allocate_func_0009dd9c;\n  iVar1 = *(int *)PTR___gmp_default_fp_limb_precision_0009decc;\n  *param_1 = iVar1;\n  piVar3 = (int *)(**(code **)puVar2)(iVar1 * 4 + 4);\n  param_1[3] = (int)piVar3;\n  if (-1 < param_2) {\n    *piVar3 = param_2;\n    param_1[2] = (uint)(param_2 != 0);\n    param_1[1] = (uint)(param_2 != 0);\n    return;\n  }\n  *piVar3 = -param_2;\n  param_1[2] = 1;\n  param_1[1] = -1;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (expression_statement "puVar2 = PTR___gmp_allocate_func_0009dd9c;" (assignment_expression "puVar2 = PTR___gmp_allocate_func_0009dd9c" (identifier "puVar2") (= "=") (identifier "PTR___gmp_allocate_func_0009dd9c")) (; ";")) (expression_statement "iVar1 = *(int *)PTR___gmp_default_fp_limb_precision_0009decc;" (assignment_expression "iVar1 = *(int *)PTR___gmp_default_fp_limb_precision_0009decc" (identifier "iVar1") (= "=") (pointer_expression "*(int *)PTR___gmp_default_fp_limb_precision_0009decc" (* "*") (cast_expression "(int *)PTR___gmp_default_fp_limb_precision_0009decc" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___gmp_default_fp_limb_precision_0009decc")))) (; ";")) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "piVar3 = (int *)(**(code **)puVar2)(iVar1 * 4 + 4);" (assignment_expression "piVar3 = (int *)(**(code **)puVar2)(iVar1 * 4 + 4)" (identifier "piVar3") (= "=") (cast_expression "(int *)(**(code **)puVar2)(iVar1 * 4 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)puVar2)(iVar1 * 4 + 4)" (parenthesized_expression "(**(code **)puVar2)" (( "(") (pointer_expression "**(code **)puVar2" (* "*") (pointer_expression "*(code **)puVar2" (* "*") (cast_expression "(code **)puVar2" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar2")))) () ")")) (argument_list "(iVar1 * 4 + 4)" (( "(") (binary_expression "iVar1 * 4 + 4" (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4")) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "param_1[3] = (int)piVar3;" (assignment_expression "param_1[3] = (int)piVar3" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (cast_expression "(int)piVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar3"))) (; ";")) (if_statement "if (-1 < param_2) {\n    *piVar3 = param_2;\n    param_1[2] = (uint)(param_2 != 0);\n    param_1[1] = (uint)(param_2 != 0);\n    return;\n  }" (if "if") (parenthesized_expression "(-1 < param_2)" (( "(") (binary_expression "-1 < param_2" (number_literal "-1") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n    *piVar3 = param_2;\n    param_1[2] = (uint)(param_2 != 0);\n    param_1[1] = (uint)(param_2 != 0);\n    return;\n  }" ({ "{") (expression_statement "*piVar3 = param_2;" (assignment_expression "*piVar3 = param_2" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "param_1[2] = (uint)(param_2 != 0);" (assignment_expression "param_1[2] = (uint)(param_2 != 0)" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (call_expression "(uint)(param_2 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")))) (; ";")) (expression_statement "param_1[1] = (uint)(param_2 != 0);" (assignment_expression "param_1[1] = (uint)(param_2 != 0)" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (call_expression "(uint)(param_2 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*piVar3 = -param_2;" (assignment_expression "*piVar3 = -param_2" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (unary_expression "-param_2" (- "-") (identifier "param_2"))) (; ";")) (expression_statement "param_1[2] = 1;" (assignment_expression "param_1[2] = 1" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "param_1[1] = -1;" (assignment_expression "param_1[1] = -1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "-1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */
/* WARNING: Unknown calling convention */

void function_1(type_1 r,long var_2)

{
  int var_1;
  type_2 *puVar2;
  type_3 *pmVar3;
  
  puVar2 = PTR___gmp_allocate_func_0009dd9c;
  var_1 = *(int *)PTR___gmp_default_fp_limb_precision_0009decc;
  r->_mp_prec = var_1;
  pmVar3 = (type_3 *)(**(type_4 **)puVar2)(var_1 * 4 + 4);
  r->_mp_d = pmVar3;
  if (-1 < var_2) {
    *pmVar3 = var_2;
    r->_mp_exp = (uint)(var_2 != 0);
    r->_mp_size = (uint)(var_2 != 0);
    return;
  }
  *pmVar3 = -var_2;
  r->_mp_exp = 1;
  r->_mp_size = -1;
  return;
}


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

/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

void MASKED(int *param_1,int param_2)

{
  int iVar1;
  undefined *puVar2;
  int *piVar3;
  
  puVar2 = PTR___gmp_allocate_func_0009dd9c;
  iVar1 = *(int *)PTR___gmp_default_fp_limb_precision_0009decc;
  *param_1 = iVar1;
  piVar3 = (int *)(**(code **)puVar2)(iVar1 * 4 + 4);
  param_1[3] = (int)piVar3;
  if (-1 < param_2) {
    *piVar3 = param_2;
    param_1[2] = (uint)(param_2 != 0);
    param_1[1] = (uint)(param_2 != 0);
    return;
  }
  *piVar3 = -param_2;
  param_1[2] = 1;
  param_1[1] = -1;
  return;
}

