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

double __gmpf_get_d(mpf_srcptr src)

{
  uint sign;
  int size;
  double dVar1;
  
  sign = src->_mp_size;
  if (sign != 0) {
    size = ((int)sign >> 0x1f ^ sign) - ((int)sign >> 0x1f);
    dVar1 = __gmpn_get_d(src->_mp_d,size,sign,(src->_mp_exp - size) * 0x20);
    return dVar1;
  }
  return 0.0;
}



longdouble __regparm3 __gmpf_get_d(undefined4 param_1,undefined4 param_2)

{
  uint uVar1;
  int iVar2;
  longdouble lVar3;
  int unaff_retaddr;
  
  entry(param_2,0x218c7);
  uVar1 = *(uint *)(unaff_retaddr + 4);
  if (uVar1 != 0) {
    iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);
    lVar3 = (longdouble)
            __gmpn_get_d(*(undefined4 *)(unaff_retaddr + 0xc),iVar2,uVar1,
                         (*(int *)(unaff_retaddr + 8) - iVar2) * 0x20);
    return lVar3;
  }
  return (longdouble)0;
}


PUSH ESI
PUSH EBX
CALL 0x0001c340
ADD EBX,0x77739
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [ESI + 0x4]
TEST EDX,EDX
JZ 0x00021908
MOV EAX,EDX
SAR EAX,0x1f
MOV ECX,EAX
XOR ECX,EDX
SUB ECX,EAX
MOV EAX,dword ptr [ESI + 0x8]
SUB EAX,ECX
SHL EAX,0x5
PUSH EAX
PUSH EDX
PUSH ECX
PUSH dword ptr [ESI + 0xc]
CALL 0x0001b0c0
ADD ESP,0x10
ADD ESP,0x4
POP EBX
POP ESI
RET
ADD ESP,0x4
FLDZ
POP EBX
POP ESI
RET
(translation_unit "longdouble __regparm3 __gmpf_get_d(undefined4 param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  longdouble lVar3;\n  int unaff_retaddr;\n  \n  entry(param_2,0x218c7);\n  uVar1 = *(uint *)(unaff_retaddr + 4);\n  if (uVar1 != 0) {\n    iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    lVar3 = (longdouble)\n            __gmpn_get_d(*(undefined4 *)(unaff_retaddr + 0xc),iVar2,uVar1,\n                         (*(int *)(unaff_retaddr + 8) - iVar2) * 0x20);\n    return lVar3;\n  }\n  return (longdouble)0;\n}\n\n" (function_definition "longdouble __regparm3 __gmpf_get_d(undefined4 param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  longdouble lVar3;\n  int unaff_retaddr;\n  \n  entry(param_2,0x218c7);\n  uVar1 = *(uint *)(unaff_retaddr + 4);\n  if (uVar1 != 0) {\n    iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    lVar3 = (longdouble)\n            __gmpn_get_d(*(undefined4 *)(unaff_retaddr + 0xc),iVar2,uVar1,\n                         (*(int *)(unaff_retaddr + 8) - iVar2) * 0x20);\n    return lVar3;\n  }\n  return (longdouble)0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "__gmpf_get_d(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  uint uVar1;\n  int iVar2;\n  longdouble lVar3;\n  int unaff_retaddr;\n  \n  entry(param_2,0x218c7);\n  uVar1 = *(uint *)(unaff_retaddr + 4);\n  if (uVar1 != 0) {\n    iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    lVar3 = (longdouble)\n            __gmpn_get_d(*(undefined4 *)(unaff_retaddr + 0xc),iVar2,uVar1,\n                         (*(int *)(unaff_retaddr + 8) - iVar2) * 0x20);\n    return lVar3;\n  }\n  return (longdouble)0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "longdouble lVar3;" type_identifier identifier ;) (declaration "int unaff_retaddr;" primitive_type identifier ;) (expression_statement "entry(param_2,0x218c7);" (call_expression "entry(param_2,0x218c7)" identifier (argument_list "(param_2,0x218c7)" ( identifier , number_literal ))) ;) (expression_statement "uVar1 = *(uint *)(unaff_retaddr + 4);" (assignment_expression "uVar1 = *(uint *)(unaff_retaddr + 4)" identifier = (pointer_expression "*(uint *)(unaff_retaddr + 4)" * (cast_expression "(uint *)(unaff_retaddr + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 4)" ( (binary_expression "unaff_retaddr + 4" identifier + number_literal) ))))) ;) (if_statement "if (uVar1 != 0) {\n    iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    lVar3 = (longdouble)\n            __gmpn_get_d(*(undefined4 *)(unaff_retaddr + 0xc),iVar2,uVar1,\n                         (*(int *)(unaff_retaddr + 8) - iVar2) * 0x20);\n    return lVar3;\n  }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    lVar3 = (longdouble)\n            __gmpn_get_d(*(undefined4 *)(unaff_retaddr + 0xc),iVar2,uVar1,\n                         (*(int *)(unaff_retaddr + 8) - iVar2) * 0x20);\n    return lVar3;\n  }" { (expression_statement "iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);" (assignment_expression "iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f)" identifier = (binary_expression "((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f)" (parenthesized_expression "((int)uVar1 >> 0x1f ^ uVar1)" ( (binary_expression "(int)uVar1 >> 0x1f ^ uVar1" (binary_expression "(int)uVar1 >> 0x1f" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ^ identifier) )) - (parenthesized_expression "((int)uVar1 >> 0x1f)" ( (binary_expression "(int)uVar1 >> 0x1f" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )))) ;) (expression_statement "lVar3 = (longdouble)\n            __gmpn_get_d(*(undefined4 *)(unaff_retaddr + 0xc),iVar2,uVar1,\n                         (*(int *)(unaff_retaddr + 8) - iVar2) * 0x20);" (assignment_expression "lVar3 = (longdouble)\n            __gmpn_get_d(*(undefined4 *)(unaff_retaddr + 0xc),iVar2,uVar1,\n                         (*(int *)(unaff_retaddr + 8) - iVar2) * 0x20)" identifier = (cast_expression "(longdouble)\n            __gmpn_get_d(*(undefined4 *)(unaff_retaddr + 0xc),iVar2,uVar1,\n                         (*(int *)(unaff_retaddr + 8) - iVar2) * 0x20)" ( (type_descriptor "longdouble" type_identifier) ) (call_expression "__gmpn_get_d(*(undefined4 *)(unaff_retaddr + 0xc),iVar2,uVar1,\n                         (*(int *)(unaff_retaddr + 8) - iVar2) * 0x20)" identifier (argument_list "(*(undefined4 *)(unaff_retaddr + 0xc),iVar2,uVar1,\n                         (*(int *)(unaff_retaddr + 8) - iVar2) * 0x20)" ( (pointer_expression "*(undefined4 *)(unaff_retaddr + 0xc)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0xc)" ( (binary_expression "unaff_retaddr + 0xc" identifier + number_literal) )))) , identifier , identifier , (binary_expression "(*(int *)(unaff_retaddr + 8) - iVar2) * 0x20" (parenthesized_expression "(*(int *)(unaff_retaddr + 8) - iVar2)" ( (binary_expression "*(int *)(unaff_retaddr + 8) - iVar2" (pointer_expression "*(int *)(unaff_retaddr + 8)" * (cast_expression "(int *)(unaff_retaddr + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 8)" ( (binary_expression "unaff_retaddr + 8" identifier + number_literal) )))) - identifier) )) * number_literal) ))))) ;) (return_statement "return lVar3;" return identifier ;) })) (return_statement "return (longdouble)0;" return (cast_expression "(longdouble)0" ( (type_descriptor "longdouble" type_identifier) ) number_literal) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\ndouble __gmpf_get_d(mpf_srcptr src)\n\n{\n  uint sign;\n  int size;\n  double dVar1;\n  \n  sign = src->_mp_size;\n  if (sign != 0) {\n    size = ((int)sign >> 0x1f ^ sign) - ((int)sign >> 0x1f);\n    dVar1 = __gmpn_get_d(src->_mp_d,size,sign,(src->_mp_exp - size) * 0x20);\n    return dVar1;\n  }\n  return 0.0;\n}\n\n" comment comment (function_definition "double __gmpf_get_d(mpf_srcptr src)\n\n{\n  uint sign;\n  int size;\n  double dVar1;\n  \n  sign = src->_mp_size;\n  if (sign != 0) {\n    size = ((int)sign >> 0x1f ^ sign) - ((int)sign >> 0x1f);\n    dVar1 = __gmpn_get_d(src->_mp_d,size,sign,(src->_mp_exp - size) * 0x20);\n    return dVar1;\n  }\n  return 0.0;\n}" primitive_type (function_declarator "__gmpf_get_d(mpf_srcptr src)" identifier (parameter_list "(mpf_srcptr src)" ( (parameter_declaration "mpf_srcptr src" type_identifier identifier) ))) (compound_statement "{\n  uint sign;\n  int size;\n  double dVar1;\n  \n  sign = src->_mp_size;\n  if (sign != 0) {\n    size = ((int)sign >> 0x1f ^ sign) - ((int)sign >> 0x1f);\n    dVar1 = __gmpn_get_d(src->_mp_d,size,sign,(src->_mp_exp - size) * 0x20);\n    return dVar1;\n  }\n  return 0.0;\n}" { (declaration "uint sign;" type_identifier identifier ;) (declaration "int size;" primitive_type identifier ;) (declaration "double dVar1;" primitive_type identifier ;) (expression_statement "sign = src->_mp_size;" (assignment_expression "sign = src->_mp_size" identifier = (field_expression "src->_mp_size" identifier -> field_identifier)) ;) (if_statement "if (sign != 0) {\n    size = ((int)sign >> 0x1f ^ sign) - ((int)sign >> 0x1f);\n    dVar1 = __gmpn_get_d(src->_mp_d,size,sign,(src->_mp_exp - size) * 0x20);\n    return dVar1;\n  }" if (parenthesized_expression "(sign != 0)" ( (binary_expression "sign != 0" identifier != number_literal) )) (compound_statement "{\n    size = ((int)sign >> 0x1f ^ sign) - ((int)sign >> 0x1f);\n    dVar1 = __gmpn_get_d(src->_mp_d,size,sign,(src->_mp_exp - size) * 0x20);\n    return dVar1;\n  }" { (expression_statement "size = ((int)sign >> 0x1f ^ sign) - ((int)sign >> 0x1f);" (assignment_expression "size = ((int)sign >> 0x1f ^ sign) - ((int)sign >> 0x1f)" identifier = (binary_expression "((int)sign >> 0x1f ^ sign) - ((int)sign >> 0x1f)" (parenthesized_expression "((int)sign >> 0x1f ^ sign)" ( (binary_expression "(int)sign >> 0x1f ^ sign" (binary_expression "(int)sign >> 0x1f" (cast_expression "(int)sign" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ^ identifier) )) - (parenthesized_expression "((int)sign >> 0x1f)" ( (binary_expression "(int)sign >> 0x1f" (cast_expression "(int)sign" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )))) ;) (expression_statement "dVar1 = __gmpn_get_d(src->_mp_d,size,sign,(src->_mp_exp - size) * 0x20);" (assignment_expression "dVar1 = __gmpn_get_d(src->_mp_d,size,sign,(src->_mp_exp - size) * 0x20)" identifier = (call_expression "__gmpn_get_d(src->_mp_d,size,sign,(src->_mp_exp - size) * 0x20)" identifier (argument_list "(src->_mp_d,size,sign,(src->_mp_exp - size) * 0x20)" ( (field_expression "src->_mp_d" identifier -> field_identifier) , identifier , identifier , (binary_expression "(src->_mp_exp - size) * 0x20" (parenthesized_expression "(src->_mp_exp - size)" ( (binary_expression "src->_mp_exp - size" (field_expression "src->_mp_exp" identifier -> field_identifier) - identifier) )) * number_literal) )))) ;) (return_statement "return dVar1;" return identifier ;) })) (return_statement "return 0.0;" return number_literal ;) })))
(translation_unit "longdouble __regparm3 __gmpf_get_d(undefined4 param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  longdouble lVar3;\n  int unaff_retaddr;\n  \n  entry(param_2,0x218c7);\n  uVar1 = *(uint *)(unaff_retaddr + 4);\n  if (uVar1 != 0) {\n    iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    lVar3 = (longdouble)\n            __gmpn_get_d(*(undefined4 *)(unaff_retaddr + 0xc),iVar2,uVar1,\n                         (*(int *)(unaff_retaddr + 8) - iVar2) * 0x20);\n    return lVar3;\n  }\n  return (longdouble)0;\n}\n\n" (function_definition "longdouble __regparm3 __gmpf_get_d(undefined4 param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  longdouble lVar3;\n  int unaff_retaddr;\n  \n  entry(param_2,0x218c7);\n  uVar1 = *(uint *)(unaff_retaddr + 4);\n  if (uVar1 != 0) {\n    iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    lVar3 = (longdouble)\n            __gmpn_get_d(*(undefined4 *)(unaff_retaddr + 0xc),iVar2,uVar1,\n                         (*(int *)(unaff_retaddr + 8) - iVar2) * 0x20);\n    return lVar3;\n  }\n  return (longdouble)0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "__gmpf_get_d(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  uint uVar1;\n  int iVar2;\n  longdouble lVar3;\n  int unaff_retaddr;\n  \n  entry(param_2,0x218c7);\n  uVar1 = *(uint *)(unaff_retaddr + 4);\n  if (uVar1 != 0) {\n    iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    lVar3 = (longdouble)\n            __gmpn_get_d(*(undefined4 *)(unaff_retaddr + 0xc),iVar2,uVar1,\n                         (*(int *)(unaff_retaddr + 8) - iVar2) * 0x20);\n    return lVar3;\n  }\n  return (longdouble)0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "longdouble lVar3;" type_identifier identifier ;) (declaration "int unaff_retaddr;" primitive_type identifier ;) (expression_statement "entry(param_2,0x218c7);" (call_expression "entry(param_2,0x218c7)" identifier (argument_list "(param_2,0x218c7)" ( identifier , number_literal ))) ;) (expression_statement "uVar1 = *(uint *)(unaff_retaddr + 4);" (assignment_expression "uVar1 = *(uint *)(unaff_retaddr + 4)" identifier = (pointer_expression "*(uint *)(unaff_retaddr + 4)" * (cast_expression "(uint *)(unaff_retaddr + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 4)" ( (binary_expression "unaff_retaddr + 4" identifier + number_literal) ))))) ;) (if_statement "if (uVar1 != 0) {\n    iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    lVar3 = (longdouble)\n            __gmpn_get_d(*(undefined4 *)(unaff_retaddr + 0xc),iVar2,uVar1,\n                         (*(int *)(unaff_retaddr + 8) - iVar2) * 0x20);\n    return lVar3;\n  }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    lVar3 = (longdouble)\n            __gmpn_get_d(*(undefined4 *)(unaff_retaddr + 0xc),iVar2,uVar1,\n                         (*(int *)(unaff_retaddr + 8) - iVar2) * 0x20);\n    return lVar3;\n  }" { (expression_statement "iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);" (assignment_expression "iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f)" identifier = (binary_expression "((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f)" (parenthesized_expression "((int)uVar1 >> 0x1f ^ uVar1)" ( (binary_expression "(int)uVar1 >> 0x1f ^ uVar1" (binary_expression "(int)uVar1 >> 0x1f" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ^ identifier) )) - (parenthesized_expression "((int)uVar1 >> 0x1f)" ( (binary_expression "(int)uVar1 >> 0x1f" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )))) ;) (expression_statement "lVar3 = (longdouble)\n            __gmpn_get_d(*(undefined4 *)(unaff_retaddr + 0xc),iVar2,uVar1,\n                         (*(int *)(unaff_retaddr + 8) - iVar2) * 0x20);" (assignment_expression "lVar3 = (longdouble)\n            __gmpn_get_d(*(undefined4 *)(unaff_retaddr + 0xc),iVar2,uVar1,\n                         (*(int *)(unaff_retaddr + 8) - iVar2) * 0x20)" identifier = (cast_expression "(longdouble)\n            __gmpn_get_d(*(undefined4 *)(unaff_retaddr + 0xc),iVar2,uVar1,\n                         (*(int *)(unaff_retaddr + 8) - iVar2) * 0x20)" ( (type_descriptor "longdouble" type_identifier) ) (call_expression "__gmpn_get_d(*(undefined4 *)(unaff_retaddr + 0xc),iVar2,uVar1,\n                         (*(int *)(unaff_retaddr + 8) - iVar2) * 0x20)" identifier (argument_list "(*(undefined4 *)(unaff_retaddr + 0xc),iVar2,uVar1,\n                         (*(int *)(unaff_retaddr + 8) - iVar2) * 0x20)" ( (pointer_expression "*(undefined4 *)(unaff_retaddr + 0xc)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0xc)" ( (binary_expression "unaff_retaddr + 0xc" identifier + number_literal) )))) , identifier , identifier , (binary_expression "(*(int *)(unaff_retaddr + 8) - iVar2) * 0x20" (parenthesized_expression "(*(int *)(unaff_retaddr + 8) - iVar2)" ( (binary_expression "*(int *)(unaff_retaddr + 8) - iVar2" (pointer_expression "*(int *)(unaff_retaddr + 8)" * (cast_expression "(int *)(unaff_retaddr + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 8)" ( (binary_expression "unaff_retaddr + 8" identifier + number_literal) )))) - identifier) )) * number_literal) ))))) ;) (return_statement "return lVar3;" return identifier ;) })) (return_statement "return (longdouble)0;" return (cast_expression "(longdouble)0" ( (type_descriptor "longdouble" type_identifier) ) number_literal) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (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 IDENT ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (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 (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ^ IDENT) )) - (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT , (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT) )) * LIT) ))))) ;) (return_statement return IDENT ;) })) (return_statement return (cast_expression ( (type_descriptor TYPE) ) LIT) ;) })))
(function_definition "longdouble __regparm3 __gmpf_get_d(undefined4 param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  longdouble lVar3;\n  int unaff_retaddr;\n  \n  entry(param_2,0x218c7);\n  uVar1 = *(uint *)(unaff_retaddr + 4);\n  if (uVar1 != 0) {\n    iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    lVar3 = (longdouble)\n            __gmpn_get_d(*(undefined4 *)(unaff_retaddr + 0xc),iVar2,uVar1,\n                         (*(int *)(unaff_retaddr + 8) - iVar2) * 0x20);\n    return lVar3;\n  }\n  return (longdouble)0;\n}" (type_identifier "longdouble") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "__gmpf_get_d(undefined4 param_1,undefined4 param_2)" (identifier "__gmpf_get_d") (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  uint uVar1;\n  int iVar2;\n  longdouble lVar3;\n  int unaff_retaddr;\n  \n  entry(param_2,0x218c7);\n  uVar1 = *(uint *)(unaff_retaddr + 4);\n  if (uVar1 != 0) {\n    iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    lVar3 = (longdouble)\n            __gmpn_get_d(*(undefined4 *)(unaff_retaddr + 0xc),iVar2,uVar1,\n                         (*(int *)(unaff_retaddr + 8) - iVar2) * 0x20);\n    return lVar3;\n  }\n  return (longdouble)0;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "longdouble lVar3;" (type_identifier "longdouble") (identifier "lVar3") (; ";")) (declaration "int unaff_retaddr;" (primitive_type "int") (identifier "unaff_retaddr") (; ";")) (expression_statement "entry(param_2,0x218c7);" (call_expression "entry(param_2,0x218c7)" (identifier "entry") (argument_list "(param_2,0x218c7)" (( "(") (identifier "param_2") (, ",") (number_literal "0x218c7") () ")"))) (; ";")) (expression_statement "uVar1 = *(uint *)(unaff_retaddr + 4);" (assignment_expression "uVar1 = *(uint *)(unaff_retaddr + 4)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(unaff_retaddr + 4)" (* "*") (cast_expression "(uint *)(unaff_retaddr + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 4)" (( "(") (binary_expression "unaff_retaddr + 4" (identifier "unaff_retaddr") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (uVar1 != 0) {\n    iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    lVar3 = (longdouble)\n            __gmpn_get_d(*(undefined4 *)(unaff_retaddr + 0xc),iVar2,uVar1,\n                         (*(int *)(unaff_retaddr + 8) - iVar2) * 0x20);\n    return lVar3;\n  }" (if "if") (parenthesized_expression "(uVar1 != 0)" (( "(") (binary_expression "uVar1 != 0" (identifier "uVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    lVar3 = (longdouble)\n            __gmpn_get_d(*(undefined4 *)(unaff_retaddr + 0xc),iVar2,uVar1,\n                         (*(int *)(unaff_retaddr + 8) - iVar2) * 0x20);\n    return lVar3;\n  }" ({ "{") (expression_statement "iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);" (assignment_expression "iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f)" (identifier "iVar2") (= "=") (binary_expression "((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f)" (parenthesized_expression "((int)uVar1 >> 0x1f ^ uVar1)" (( "(") (binary_expression "(int)uVar1 >> 0x1f ^ uVar1" (binary_expression "(int)uVar1 >> 0x1f" (cast_expression "(int)uVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar1")) (>> ">>") (number_literal "0x1f")) (^ "^") (identifier "uVar1")) () ")")) (- "-") (parenthesized_expression "((int)uVar1 >> 0x1f)" (( "(") (binary_expression "(int)uVar1 >> 0x1f" (cast_expression "(int)uVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar1")) (>> ">>") (number_literal "0x1f")) () ")")))) (; ";")) (expression_statement "lVar3 = (longdouble)\n            __gmpn_get_d(*(undefined4 *)(unaff_retaddr + 0xc),iVar2,uVar1,\n                         (*(int *)(unaff_retaddr + 8) - iVar2) * 0x20);" (assignment_expression "lVar3 = (longdouble)\n            __gmpn_get_d(*(undefined4 *)(unaff_retaddr + 0xc),iVar2,uVar1,\n                         (*(int *)(unaff_retaddr + 8) - iVar2) * 0x20)" (identifier "lVar3") (= "=") (cast_expression "(longdouble)\n            __gmpn_get_d(*(undefined4 *)(unaff_retaddr + 0xc),iVar2,uVar1,\n                         (*(int *)(unaff_retaddr + 8) - iVar2) * 0x20)" (( "(") (type_descriptor "longdouble" (type_identifier "longdouble")) () ")") (call_expression "__gmpn_get_d(*(undefined4 *)(unaff_retaddr + 0xc),iVar2,uVar1,\n                         (*(int *)(unaff_retaddr + 8) - iVar2) * 0x20)" (identifier "__gmpn_get_d") (argument_list "(*(undefined4 *)(unaff_retaddr + 0xc),iVar2,uVar1,\n                         (*(int *)(unaff_retaddr + 8) - iVar2) * 0x20)" (( "(") (pointer_expression "*(undefined4 *)(unaff_retaddr + 0xc)" (* "*") (cast_expression "(undefined4 *)(unaff_retaddr + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0xc)" (( "(") (binary_expression "unaff_retaddr + 0xc" (identifier "unaff_retaddr") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (identifier "iVar2") (, ",") (identifier "uVar1") (, ",") (binary_expression "(*(int *)(unaff_retaddr + 8) - iVar2) * 0x20" (parenthesized_expression "(*(int *)(unaff_retaddr + 8) - iVar2)" (( "(") (binary_expression "*(int *)(unaff_retaddr + 8) - iVar2" (pointer_expression "*(int *)(unaff_retaddr + 8)" (* "*") (cast_expression "(int *)(unaff_retaddr + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 8)" (( "(") (binary_expression "unaff_retaddr + 8" (identifier "unaff_retaddr") (+ "+") (number_literal "8")) () ")")))) (- "-") (identifier "iVar2")) () ")")) (* "*") (number_literal "0x20")) () ")"))))) (; ";")) (return_statement "return lVar3;" (return "return") (identifier "lVar3") (; ";")) (} "}"))) (return_statement "return (longdouble)0;" (return "return") (cast_expression "(longdouble)0" (( "(") (type_descriptor "longdouble" (type_identifier "longdouble")) () ")") (number_literal "0")) (; ";")) (} "}")))

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

double function_1(type_1 src)

{
  type_2 var_1;
  int var_3;
  double dVar1;
  
  var_1 = src->_mp_size;
  if (var_1 != 0) {
    var_3 = ((int)var_1 >> 0x1f ^ var_1) - ((int)var_1 >> 0x1f);
    dVar1 = var_2(src->_mp_d,var_3,var_1,(src->_mp_exp - var_3) * 0x20);
    return dVar1;
  }
  return 0.0;
}


(translation_unit (function_definition type: (type_identifier) (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: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) 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 (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)) right: (identifier))) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (identifier) (identifier) (binary_expression left: (parenthesized_expression (binary_expression left: (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))))) right: (identifier))) right: (number_literal))))))) (return_statement (identifier)))) (return_statement (cast_expression type: (type_descriptor type: (type_identifier)) value: (number_literal))))))

longdouble __regparm3 MASKED(undefined4 param_1,undefined4 param_2)

{
  uint uVar1;
  int iVar2;
  longdouble lVar3;
  int unaff_retaddr;
  
  entry(param_2,0x218c7);
  uVar1 = *(uint *)(unaff_retaddr + 4);
  if (uVar1 != 0) {
    iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);
    lVar3 = (longdouble)
            __gmpn_get_d(*(undefined4 *)(unaff_retaddr + 0xc),iVar2,uVar1,
                         (*(int *)(unaff_retaddr + 8) - iVar2) * 0x20);
    return lVar3;
  }
  return (longdouble)0;
}

