
double __gmpf_get_d_2exp(long *exp2,mpf_srcptr src)

{
  mp_srcptr pmVar1;
  mp_srcptr up;
  ulong uVar2;
  long lVar3;
  long size;
  double dVar4;
  
  uVar2 = (ulong)src->_mp_size;
  if (uVar2 != 0) {
    up = src->_mp_d;
    size = (uVar2 ^ (long)uVar2 >> 0x3f) - ((long)uVar2 >> 0x3f);
    pmVar1 = up + size + -1;
    lVar3 = 0x3f;
    if (*pmVar1 != 0) {
      for (; *pmVar1 >> lVar3 == 0; lVar3 = lVar3 + -1) {
      }
    }
    lVar3 = (long)(int)((uint)lVar3 ^ 0x3f);
    *exp2 = src->_mp_exp * 0x40 - lVar3;
    dVar4 = __gmpn_get_d(up,size,0,lVar3 + size * -0x40);
    return dVar4;
  }
  *exp2 = 0;
  return 0.0;
}



undefined8 __gmpf_get_d_2exp(long *param_1,long param_2)

{
  ulong *puVar1;
  long lVar2;
  ulong uVar3;
  long lVar4;
  long lVar5;
  undefined8 uVar6;
  
  uVar3 = (ulong)*(int *)(param_2 + 4);
  if (uVar3 != 0) {
    lVar2 = *(long *)(param_2 + 0x10);
    lVar5 = (uVar3 ^ (long)uVar3 >> 0x3f) - ((long)uVar3 >> 0x3f);
    puVar1 = (ulong *)(lVar2 + -8 + lVar5 * 8);
    lVar4 = 0x3f;
    if (*puVar1 != 0) {
      for (; *puVar1 >> lVar4 == 0; lVar4 = lVar4 + -1) {
      }
    }
    lVar4 = (long)(int)((uint)lVar4 ^ 0x3f);
    *param_1 = *(long *)(param_2 + 8) * 0x40 - lVar4;
    uVar6 = __gmpn_get_d(lVar2,lVar5,0,lVar4 + lVar5 * -0x40);
    return uVar6;
  }
  *param_1 = 0;
  return 0;
}


MOVSXD RAX,dword ptr [RSI + 0x4]
TEST RAX,RAX
JZ 0x0011150f
SUB RSP,0x8
MOV RDX,RSI
MOV R8,RDI
MOV RDI,qword ptr [RSI + 0x10]
MOV RCX,RAX
SAR RCX,0x3f
XOR RAX,RCX
MOV RSI,RAX
SUB RSI,RCX
BSR RCX,qword ptr [RDI + RSI*0x8 + -0x8]
XOR ECX,0x3f
MOVSXD RCX,ECX
MOV RAX,qword ptr [RDX + 0x8]
SHL RAX,0x6
SUB RAX,RCX
MOV qword ptr [R8],RAX
MOV RAX,RSI
SHL RAX,0x6
SUB RCX,RAX
MOV EDX,0x0
CALL 0x0010b0a0
ADD RSP,0x8
RET
MOV qword ptr [RDI],0x0
PXOR XMM0,XMM0
RET
(translation_unit "undefined8 __gmpf_get_d_2exp(long *param_1,long param_2)\n\n{\n  ulong *puVar1;\n  long lVar2;\n  ulong uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 uVar6;\n  \n  uVar3 = (ulong)*(int *)(param_2 + 4);\n  if (uVar3 != 0) {\n    lVar2 = *(long *)(param_2 + 0x10);\n    lVar5 = (uVar3 ^ (long)uVar3 >> 0x3f) - ((long)uVar3 >> 0x3f);\n    puVar1 = (ulong *)(lVar2 + -8 + lVar5 * 8);\n    lVar4 = 0x3f;\n    if (*puVar1 != 0) {\n      for (; *puVar1 >> lVar4 == 0; lVar4 = lVar4 + -1) {\n      }\n    }\n    lVar4 = (long)(int)((uint)lVar4 ^ 0x3f);\n    *param_1 = *(long *)(param_2 + 8) * 0x40 - lVar4;\n    uVar6 = __gmpn_get_d(lVar2,lVar5,0,lVar4 + lVar5 * -0x40);\n    return uVar6;\n  }\n  *param_1 = 0;\n  return 0;\n}\n\n" (function_definition "undefined8 __gmpf_get_d_2exp(long *param_1,long param_2)\n\n{\n  ulong *puVar1;\n  long lVar2;\n  ulong uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 uVar6;\n  \n  uVar3 = (ulong)*(int *)(param_2 + 4);\n  if (uVar3 != 0) {\n    lVar2 = *(long *)(param_2 + 0x10);\n    lVar5 = (uVar3 ^ (long)uVar3 >> 0x3f) - ((long)uVar3 >> 0x3f);\n    puVar1 = (ulong *)(lVar2 + -8 + lVar5 * 8);\n    lVar4 = 0x3f;\n    if (*puVar1 != 0) {\n      for (; *puVar1 >> lVar4 == 0; lVar4 = lVar4 + -1) {\n      }\n    }\n    lVar4 = (long)(int)((uint)lVar4 ^ 0x3f);\n    *param_1 = *(long *)(param_2 + 8) * 0x40 - lVar4;\n    uVar6 = __gmpn_get_d(lVar2,lVar5,0,lVar4 + lVar5 * -0x40);\n    return uVar6;\n  }\n  *param_1 = 0;\n  return 0;\n}" type_identifier (function_declarator "__gmpf_get_d_2exp(long *param_1,long param_2)" identifier (parameter_list "(long *param_1,long param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  ulong *puVar1;\n  long lVar2;\n  ulong uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 uVar6;\n  \n  uVar3 = (ulong)*(int *)(param_2 + 4);\n  if (uVar3 != 0) {\n    lVar2 = *(long *)(param_2 + 0x10);\n    lVar5 = (uVar3 ^ (long)uVar3 >> 0x3f) - ((long)uVar3 >> 0x3f);\n    puVar1 = (ulong *)(lVar2 + -8 + lVar5 * 8);\n    lVar4 = 0x3f;\n    if (*puVar1 != 0) {\n      for (; *puVar1 >> lVar4 == 0; lVar4 = lVar4 + -1) {\n      }\n    }\n    lVar4 = (long)(int)((uint)lVar4 ^ 0x3f);\n    *param_1 = *(long *)(param_2 + 8) * 0x40 - lVar4;\n    uVar6 = __gmpn_get_d(lVar2,lVar5,0,lVar4 + lVar5 * -0x40);\n    return uVar6;\n  }\n  *param_1 = 0;\n  return 0;\n}" { (declaration "ulong *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (expression_statement "uVar3 = (ulong)*(int *)(param_2 + 4);" (assignment_expression "uVar3 = (ulong)*(int *)(param_2 + 4)" identifier = (binary_expression "(ulong)*(int *)(param_2 + 4)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (if_statement "if (uVar3 != 0) {\n    lVar2 = *(long *)(param_2 + 0x10);\n    lVar5 = (uVar3 ^ (long)uVar3 >> 0x3f) - ((long)uVar3 >> 0x3f);\n    puVar1 = (ulong *)(lVar2 + -8 + lVar5 * 8);\n    lVar4 = 0x3f;\n    if (*puVar1 != 0) {\n      for (; *puVar1 >> lVar4 == 0; lVar4 = lVar4 + -1) {\n      }\n    }\n    lVar4 = (long)(int)((uint)lVar4 ^ 0x3f);\n    *param_1 = *(long *)(param_2 + 8) * 0x40 - lVar4;\n    uVar6 = __gmpn_get_d(lVar2,lVar5,0,lVar4 + lVar5 * -0x40);\n    return uVar6;\n  }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    lVar2 = *(long *)(param_2 + 0x10);\n    lVar5 = (uVar3 ^ (long)uVar3 >> 0x3f) - ((long)uVar3 >> 0x3f);\n    puVar1 = (ulong *)(lVar2 + -8 + lVar5 * 8);\n    lVar4 = 0x3f;\n    if (*puVar1 != 0) {\n      for (; *puVar1 >> lVar4 == 0; lVar4 = lVar4 + -1) {\n      }\n    }\n    lVar4 = (long)(int)((uint)lVar4 ^ 0x3f);\n    *param_1 = *(long *)(param_2 + 8) * 0x40 - lVar4;\n    uVar6 = __gmpn_get_d(lVar2,lVar5,0,lVar4 + lVar5 * -0x40);\n    return uVar6;\n  }" { (expression_statement "lVar2 = *(long *)(param_2 + 0x10);" (assignment_expression "lVar2 = *(long *)(param_2 + 0x10)" identifier = (pointer_expression "*(long *)(param_2 + 0x10)" * (cast_expression "(long *)(param_2 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "lVar5 = (uVar3 ^ (long)uVar3 >> 0x3f) - ((long)uVar3 >> 0x3f);" (assignment_expression "lVar5 = (uVar3 ^ (long)uVar3 >> 0x3f) - ((long)uVar3 >> 0x3f)" identifier = (binary_expression "(uVar3 ^ (long)uVar3 >> 0x3f) - ((long)uVar3 >> 0x3f)" (parenthesized_expression "(uVar3 ^ (long)uVar3 >> 0x3f)" ( (binary_expression "uVar3 ^ (long)uVar3 >> 0x3f" identifier ^ (binary_expression "(long)uVar3 >> 0x3f" (cast_expression "(long)uVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) >> number_literal)) )) - (parenthesized_expression "((long)uVar3 >> 0x3f)" ( (binary_expression "(long)uVar3 >> 0x3f" (cast_expression "(long)uVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1 = (ulong *)(lVar2 + -8 + lVar5 * 8);" (assignment_expression "puVar1 = (ulong *)(lVar2 + -8 + lVar5 * 8)" identifier = (cast_expression "(ulong *)(lVar2 + -8 + lVar5 * 8)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -8 + lVar5 * 8)" ( (binary_expression "lVar2 + -8 + lVar5 * 8" (binary_expression "lVar2 + -8" identifier + number_literal) + (binary_expression "lVar5 * 8" identifier * number_literal)) )))) ;) (expression_statement "lVar4 = 0x3f;" (assignment_expression "lVar4 = 0x3f" identifier = number_literal) ;) (if_statement "if (*puVar1 != 0) {\n      for (; *puVar1 >> lVar4 == 0; lVar4 = lVar4 + -1) {\n      }\n    }" if (parenthesized_expression "(*puVar1 != 0)" ( (binary_expression "*puVar1 != 0" (pointer_expression "*puVar1" * identifier) != number_literal) )) (compound_statement "{\n      for (; *puVar1 >> lVar4 == 0; lVar4 = lVar4 + -1) {\n      }\n    }" { (for_statement "for (; *puVar1 >> lVar4 == 0; lVar4 = lVar4 + -1) {\n      }" for ( ; (binary_expression "*puVar1 >> lVar4 == 0" (binary_expression "*puVar1 >> lVar4" (pointer_expression "*puVar1" * identifier) >> identifier) == number_literal) ; (assignment_expression "lVar4 = lVar4 + -1" identifier = (binary_expression "lVar4 + -1" identifier + number_literal)) ) (compound_statement "{\n      }" { })) })) (expression_statement "lVar4 = (long)(int)((uint)lVar4 ^ 0x3f);" (assignment_expression "lVar4 = (long)(int)((uint)lVar4 ^ 0x3f)" identifier = (cast_expression "(long)(int)((uint)lVar4 ^ 0x3f)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)((uint)lVar4 ^ 0x3f)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)lVar4 ^ 0x3f)" ( (binary_expression "(uint)lVar4 ^ 0x3f" (cast_expression "(uint)lVar4" ( (type_descriptor "uint" type_identifier) ) identifier) ^ number_literal) ))))) ;) (expression_statement "*param_1 = *(long *)(param_2 + 8) * 0x40 - lVar4;" (assignment_expression "*param_1 = *(long *)(param_2 + 8) * 0x40 - lVar4" (pointer_expression "*param_1" * identifier) = (binary_expression "*(long *)(param_2 + 8) * 0x40 - lVar4" (binary_expression "*(long *)(param_2 + 8) * 0x40" (pointer_expression "*(long *)(param_2 + 8)" * (cast_expression "(long *)(param_2 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) * number_literal) - identifier)) ;) (expression_statement "uVar6 = __gmpn_get_d(lVar2,lVar5,0,lVar4 + lVar5 * -0x40);" (assignment_expression "uVar6 = __gmpn_get_d(lVar2,lVar5,0,lVar4 + lVar5 * -0x40)" identifier = (call_expression "__gmpn_get_d(lVar2,lVar5,0,lVar4 + lVar5 * -0x40)" identifier (argument_list "(lVar2,lVar5,0,lVar4 + lVar5 * -0x40)" ( identifier , identifier , number_literal , (binary_expression "lVar4 + lVar5 * -0x40" identifier + (binary_expression "lVar5 * -0x40" identifier * number_literal)) )))) ;) (return_statement "return uVar6;" return identifier ;) })) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "double __gmpf_get_d_2exp(long *exp2,mpf_srcptr src)\n\n{\n  mp_srcptr pmVar1;\n  mp_srcptr up;\n  ulong uVar2;\n  long lVar3;\n  long size;\n  double dVar4;\n  \n  uVar2 = (ulong)src->_mp_size;\n  if (uVar2 != 0) {\n    up = src->_mp_d;\n    size = (uVar2 ^ (long)uVar2 >> 0x3f) - ((long)uVar2 >> 0x3f);\n    pmVar1 = up + size + -1;\n    lVar3 = 0x3f;\n    if (*pmVar1 != 0) {\n      for (; *pmVar1 >> lVar3 == 0; lVar3 = lVar3 + -1) {\n      }\n    }\n    lVar3 = (long)(int)((uint)lVar3 ^ 0x3f);\n    *exp2 = src->_mp_exp * 0x40 - lVar3;\n    dVar4 = __gmpn_get_d(up,size,0,lVar3 + size * -0x40);\n    return dVar4;\n  }\n  *exp2 = 0;\n  return 0.0;\n}\n\n" (function_definition "double __gmpf_get_d_2exp(long *exp2,mpf_srcptr src)\n\n{\n  mp_srcptr pmVar1;\n  mp_srcptr up;\n  ulong uVar2;\n  long lVar3;\n  long size;\n  double dVar4;\n  \n  uVar2 = (ulong)src->_mp_size;\n  if (uVar2 != 0) {\n    up = src->_mp_d;\n    size = (uVar2 ^ (long)uVar2 >> 0x3f) - ((long)uVar2 >> 0x3f);\n    pmVar1 = up + size + -1;\n    lVar3 = 0x3f;\n    if (*pmVar1 != 0) {\n      for (; *pmVar1 >> lVar3 == 0; lVar3 = lVar3 + -1) {\n      }\n    }\n    lVar3 = (long)(int)((uint)lVar3 ^ 0x3f);\n    *exp2 = src->_mp_exp * 0x40 - lVar3;\n    dVar4 = __gmpn_get_d(up,size,0,lVar3 + size * -0x40);\n    return dVar4;\n  }\n  *exp2 = 0;\n  return 0.0;\n}" primitive_type (function_declarator "__gmpf_get_d_2exp(long *exp2,mpf_srcptr src)" identifier (parameter_list "(long *exp2,mpf_srcptr src)" ( (parameter_declaration "long *exp2" (sized_type_specifier "long" long) (pointer_declarator "*exp2" * identifier)) , (parameter_declaration "mpf_srcptr src" type_identifier identifier) ))) (compound_statement "{\n  mp_srcptr pmVar1;\n  mp_srcptr up;\n  ulong uVar2;\n  long lVar3;\n  long size;\n  double dVar4;\n  \n  uVar2 = (ulong)src->_mp_size;\n  if (uVar2 != 0) {\n    up = src->_mp_d;\n    size = (uVar2 ^ (long)uVar2 >> 0x3f) - ((long)uVar2 >> 0x3f);\n    pmVar1 = up + size + -1;\n    lVar3 = 0x3f;\n    if (*pmVar1 != 0) {\n      for (; *pmVar1 >> lVar3 == 0; lVar3 = lVar3 + -1) {\n      }\n    }\n    lVar3 = (long)(int)((uint)lVar3 ^ 0x3f);\n    *exp2 = src->_mp_exp * 0x40 - lVar3;\n    dVar4 = __gmpn_get_d(up,size,0,lVar3 + size * -0x40);\n    return dVar4;\n  }\n  *exp2 = 0;\n  return 0.0;\n}" { (declaration "mp_srcptr pmVar1;" type_identifier identifier ;) (declaration "mp_srcptr up;" type_identifier identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "long size;" (sized_type_specifier "long" long) identifier ;) (declaration "double dVar4;" primitive_type identifier ;) (expression_statement "uVar2 = (ulong)src->_mp_size;" (assignment_expression "uVar2 = (ulong)src->_mp_size" identifier = (cast_expression "(ulong)src->_mp_size" ( (type_descriptor "ulong" type_identifier) ) (field_expression "src->_mp_size" identifier -> field_identifier))) ;) (if_statement "if (uVar2 != 0) {\n    up = src->_mp_d;\n    size = (uVar2 ^ (long)uVar2 >> 0x3f) - ((long)uVar2 >> 0x3f);\n    pmVar1 = up + size + -1;\n    lVar3 = 0x3f;\n    if (*pmVar1 != 0) {\n      for (; *pmVar1 >> lVar3 == 0; lVar3 = lVar3 + -1) {\n      }\n    }\n    lVar3 = (long)(int)((uint)lVar3 ^ 0x3f);\n    *exp2 = src->_mp_exp * 0x40 - lVar3;\n    dVar4 = __gmpn_get_d(up,size,0,lVar3 + size * -0x40);\n    return dVar4;\n  }" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    up = src->_mp_d;\n    size = (uVar2 ^ (long)uVar2 >> 0x3f) - ((long)uVar2 >> 0x3f);\n    pmVar1 = up + size + -1;\n    lVar3 = 0x3f;\n    if (*pmVar1 != 0) {\n      for (; *pmVar1 >> lVar3 == 0; lVar3 = lVar3 + -1) {\n      }\n    }\n    lVar3 = (long)(int)((uint)lVar3 ^ 0x3f);\n    *exp2 = src->_mp_exp * 0x40 - lVar3;\n    dVar4 = __gmpn_get_d(up,size,0,lVar3 + size * -0x40);\n    return dVar4;\n  }" { (expression_statement "up = src->_mp_d;" (assignment_expression "up = src->_mp_d" identifier = (field_expression "src->_mp_d" identifier -> field_identifier)) ;) (expression_statement "size = (uVar2 ^ (long)uVar2 >> 0x3f) - ((long)uVar2 >> 0x3f);" (assignment_expression "size = (uVar2 ^ (long)uVar2 >> 0x3f) - ((long)uVar2 >> 0x3f)" identifier = (binary_expression "(uVar2 ^ (long)uVar2 >> 0x3f) - ((long)uVar2 >> 0x3f)" (parenthesized_expression "(uVar2 ^ (long)uVar2 >> 0x3f)" ( (binary_expression "uVar2 ^ (long)uVar2 >> 0x3f" identifier ^ (binary_expression "(long)uVar2 >> 0x3f" (cast_expression "(long)uVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) >> number_literal)) )) - (parenthesized_expression "((long)uVar2 >> 0x3f)" ( (binary_expression "(long)uVar2 >> 0x3f" (cast_expression "(long)uVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) >> number_literal) )))) ;) (expression_statement "pmVar1 = up + size + -1;" (assignment_expression "pmVar1 = up + size + -1" identifier = (binary_expression "up + size + -1" (binary_expression "up + size" identifier + identifier) + number_literal)) ;) (expression_statement "lVar3 = 0x3f;" (assignment_expression "lVar3 = 0x3f" identifier = number_literal) ;) (if_statement "if (*pmVar1 != 0) {\n      for (; *pmVar1 >> lVar3 == 0; lVar3 = lVar3 + -1) {\n      }\n    }" if (parenthesized_expression "(*pmVar1 != 0)" ( (binary_expression "*pmVar1 != 0" (pointer_expression "*pmVar1" * identifier) != number_literal) )) (compound_statement "{\n      for (; *pmVar1 >> lVar3 == 0; lVar3 = lVar3 + -1) {\n      }\n    }" { (for_statement "for (; *pmVar1 >> lVar3 == 0; lVar3 = lVar3 + -1) {\n      }" for ( ; (binary_expression "*pmVar1 >> lVar3 == 0" (binary_expression "*pmVar1 >> lVar3" (pointer_expression "*pmVar1" * identifier) >> identifier) == number_literal) ; (assignment_expression "lVar3 = lVar3 + -1" identifier = (binary_expression "lVar3 + -1" identifier + number_literal)) ) (compound_statement "{\n      }" { })) })) (expression_statement "lVar3 = (long)(int)((uint)lVar3 ^ 0x3f);" (assignment_expression "lVar3 = (long)(int)((uint)lVar3 ^ 0x3f)" identifier = (cast_expression "(long)(int)((uint)lVar3 ^ 0x3f)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)((uint)lVar3 ^ 0x3f)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)lVar3 ^ 0x3f)" ( (binary_expression "(uint)lVar3 ^ 0x3f" (cast_expression "(uint)lVar3" ( (type_descriptor "uint" type_identifier) ) identifier) ^ number_literal) ))))) ;) (expression_statement "*exp2 = src->_mp_exp * 0x40 - lVar3;" (assignment_expression "*exp2 = src->_mp_exp * 0x40 - lVar3" (pointer_expression "*exp2" * identifier) = (binary_expression "src->_mp_exp * 0x40 - lVar3" (binary_expression "src->_mp_exp * 0x40" (field_expression "src->_mp_exp" identifier -> field_identifier) * number_literal) - identifier)) ;) (expression_statement "dVar4 = __gmpn_get_d(up,size,0,lVar3 + size * -0x40);" (assignment_expression "dVar4 = __gmpn_get_d(up,size,0,lVar3 + size * -0x40)" identifier = (call_expression "__gmpn_get_d(up,size,0,lVar3 + size * -0x40)" identifier (argument_list "(up,size,0,lVar3 + size * -0x40)" ( identifier , identifier , number_literal , (binary_expression "lVar3 + size * -0x40" identifier + (binary_expression "size * -0x40" identifier * number_literal)) )))) ;) (return_statement "return dVar4;" return identifier ;) })) (expression_statement "*exp2 = 0;" (assignment_expression "*exp2 = 0" (pointer_expression "*exp2" * identifier) = number_literal) ;) (return_statement "return 0.0;" return number_literal ;) })))
(translation_unit "undefined8 __gmpf_get_d_2exp(long *param_1,long param_2)\n\n{\n  ulong *puVar1;\n  long lVar2;\n  ulong uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 uVar6;\n  \n  uVar3 = (ulong)*(int *)(param_2 + 4);\n  if (uVar3 != 0) {\n    lVar2 = *(long *)(param_2 + 0x10);\n    lVar5 = (uVar3 ^ (long)uVar3 >> 0x3f) - ((long)uVar3 >> 0x3f);\n    puVar1 = (ulong *)(lVar2 + -8 + lVar5 * 8);\n    lVar4 = 0x3f;\n    if (*puVar1 != 0) {\n      for (; *puVar1 >> lVar4 == 0; lVar4 = lVar4 + -1) {\n      }\n    }\n    lVar4 = (long)(int)((uint)lVar4 ^ 0x3f);\n    *param_1 = *(long *)(param_2 + 8) * 0x40 - lVar4;\n    uVar6 = __gmpn_get_d(lVar2,lVar5,0,lVar4 + lVar5 * -0x40);\n    return uVar6;\n  }\n  *param_1 = 0;\n  return 0;\n}\n\n" (function_definition "undefined8 __gmpf_get_d_2exp(long *param_1,long param_2)\n\n{\n  ulong *puVar1;\n  long lVar2;\n  ulong uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 uVar6;\n  \n  uVar3 = (ulong)*(int *)(param_2 + 4);\n  if (uVar3 != 0) {\n    lVar2 = *(long *)(param_2 + 0x10);\n    lVar5 = (uVar3 ^ (long)uVar3 >> 0x3f) - ((long)uVar3 >> 0x3f);\n    puVar1 = (ulong *)(lVar2 + -8 + lVar5 * 8);\n    lVar4 = 0x3f;\n    if (*puVar1 != 0) {\n      for (; *puVar1 >> lVar4 == 0; lVar4 = lVar4 + -1) {\n      }\n    }\n    lVar4 = (long)(int)((uint)lVar4 ^ 0x3f);\n    *param_1 = *(long *)(param_2 + 8) * 0x40 - lVar4;\n    uVar6 = __gmpn_get_d(lVar2,lVar5,0,lVar4 + lVar5 * -0x40);\n    return uVar6;\n  }\n  *param_1 = 0;\n  return 0;\n}" type_identifier (function_declarator "__gmpf_get_d_2exp(long *param_1,long param_2)" identifier (parameter_list "(long *param_1,long param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  ulong *puVar1;\n  long lVar2;\n  ulong uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 uVar6;\n  \n  uVar3 = (ulong)*(int *)(param_2 + 4);\n  if (uVar3 != 0) {\n    lVar2 = *(long *)(param_2 + 0x10);\n    lVar5 = (uVar3 ^ (long)uVar3 >> 0x3f) - ((long)uVar3 >> 0x3f);\n    puVar1 = (ulong *)(lVar2 + -8 + lVar5 * 8);\n    lVar4 = 0x3f;\n    if (*puVar1 != 0) {\n      for (; *puVar1 >> lVar4 == 0; lVar4 = lVar4 + -1) {\n      }\n    }\n    lVar4 = (long)(int)((uint)lVar4 ^ 0x3f);\n    *param_1 = *(long *)(param_2 + 8) * 0x40 - lVar4;\n    uVar6 = __gmpn_get_d(lVar2,lVar5,0,lVar4 + lVar5 * -0x40);\n    return uVar6;\n  }\n  *param_1 = 0;\n  return 0;\n}" { (declaration "ulong *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (expression_statement "uVar3 = (ulong)*(int *)(param_2 + 4);" (assignment_expression "uVar3 = (ulong)*(int *)(param_2 + 4)" identifier = (binary_expression "(ulong)*(int *)(param_2 + 4)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (if_statement "if (uVar3 != 0) {\n    lVar2 = *(long *)(param_2 + 0x10);\n    lVar5 = (uVar3 ^ (long)uVar3 >> 0x3f) - ((long)uVar3 >> 0x3f);\n    puVar1 = (ulong *)(lVar2 + -8 + lVar5 * 8);\n    lVar4 = 0x3f;\n    if (*puVar1 != 0) {\n      for (; *puVar1 >> lVar4 == 0; lVar4 = lVar4 + -1) {\n      }\n    }\n    lVar4 = (long)(int)((uint)lVar4 ^ 0x3f);\n    *param_1 = *(long *)(param_2 + 8) * 0x40 - lVar4;\n    uVar6 = __gmpn_get_d(lVar2,lVar5,0,lVar4 + lVar5 * -0x40);\n    return uVar6;\n  }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    lVar2 = *(long *)(param_2 + 0x10);\n    lVar5 = (uVar3 ^ (long)uVar3 >> 0x3f) - ((long)uVar3 >> 0x3f);\n    puVar1 = (ulong *)(lVar2 + -8 + lVar5 * 8);\n    lVar4 = 0x3f;\n    if (*puVar1 != 0) {\n      for (; *puVar1 >> lVar4 == 0; lVar4 = lVar4 + -1) {\n      }\n    }\n    lVar4 = (long)(int)((uint)lVar4 ^ 0x3f);\n    *param_1 = *(long *)(param_2 + 8) * 0x40 - lVar4;\n    uVar6 = __gmpn_get_d(lVar2,lVar5,0,lVar4 + lVar5 * -0x40);\n    return uVar6;\n  }" { (expression_statement "lVar2 = *(long *)(param_2 + 0x10);" (assignment_expression "lVar2 = *(long *)(param_2 + 0x10)" identifier = (pointer_expression "*(long *)(param_2 + 0x10)" * (cast_expression "(long *)(param_2 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "lVar5 = (uVar3 ^ (long)uVar3 >> 0x3f) - ((long)uVar3 >> 0x3f);" (assignment_expression "lVar5 = (uVar3 ^ (long)uVar3 >> 0x3f) - ((long)uVar3 >> 0x3f)" identifier = (binary_expression "(uVar3 ^ (long)uVar3 >> 0x3f) - ((long)uVar3 >> 0x3f)" (parenthesized_expression "(uVar3 ^ (long)uVar3 >> 0x3f)" ( (binary_expression "uVar3 ^ (long)uVar3 >> 0x3f" identifier ^ (binary_expression "(long)uVar3 >> 0x3f" (cast_expression "(long)uVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) >> number_literal)) )) - (parenthesized_expression "((long)uVar3 >> 0x3f)" ( (binary_expression "(long)uVar3 >> 0x3f" (cast_expression "(long)uVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1 = (ulong *)(lVar2 + -8 + lVar5 * 8);" (assignment_expression "puVar1 = (ulong *)(lVar2 + -8 + lVar5 * 8)" identifier = (cast_expression "(ulong *)(lVar2 + -8 + lVar5 * 8)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + -8 + lVar5 * 8)" ( (binary_expression "lVar2 + -8 + lVar5 * 8" (binary_expression "lVar2 + -8" identifier + number_literal) + (binary_expression "lVar5 * 8" identifier * number_literal)) )))) ;) (expression_statement "lVar4 = 0x3f;" (assignment_expression "lVar4 = 0x3f" identifier = number_literal) ;) (if_statement "if (*puVar1 != 0) {\n      for (; *puVar1 >> lVar4 == 0; lVar4 = lVar4 + -1) {\n      }\n    }" if (parenthesized_expression "(*puVar1 != 0)" ( (binary_expression "*puVar1 != 0" (pointer_expression "*puVar1" * identifier) != number_literal) )) (compound_statement "{\n      for (; *puVar1 >> lVar4 == 0; lVar4 = lVar4 + -1) {\n      }\n    }" { (for_statement "for (; *puVar1 >> lVar4 == 0; lVar4 = lVar4 + -1) {\n      }" for ( ; (binary_expression "*puVar1 >> lVar4 == 0" (binary_expression "*puVar1 >> lVar4" (pointer_expression "*puVar1" * identifier) >> identifier) == number_literal) ; (assignment_expression "lVar4 = lVar4 + -1" identifier = (binary_expression "lVar4 + -1" identifier + number_literal)) ) (compound_statement "{\n      }" { })) })) (expression_statement "lVar4 = (long)(int)((uint)lVar4 ^ 0x3f);" (assignment_expression "lVar4 = (long)(int)((uint)lVar4 ^ 0x3f)" identifier = (cast_expression "(long)(int)((uint)lVar4 ^ 0x3f)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)((uint)lVar4 ^ 0x3f)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)lVar4 ^ 0x3f)" ( (binary_expression "(uint)lVar4 ^ 0x3f" (cast_expression "(uint)lVar4" ( (type_descriptor "uint" type_identifier) ) identifier) ^ number_literal) ))))) ;) (expression_statement "*param_1 = *(long *)(param_2 + 8) * 0x40 - lVar4;" (assignment_expression "*param_1 = *(long *)(param_2 + 8) * 0x40 - lVar4" (pointer_expression "*param_1" * identifier) = (binary_expression "*(long *)(param_2 + 8) * 0x40 - lVar4" (binary_expression "*(long *)(param_2 + 8) * 0x40" (pointer_expression "*(long *)(param_2 + 8)" * (cast_expression "(long *)(param_2 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) * number_literal) - identifier)) ;) (expression_statement "uVar6 = __gmpn_get_d(lVar2,lVar5,0,lVar4 + lVar5 * -0x40);" (assignment_expression "uVar6 = __gmpn_get_d(lVar2,lVar5,0,lVar4 + lVar5 * -0x40)" identifier = (call_expression "__gmpn_get_d(lVar2,lVar5,0,lVar4 + lVar5 * -0x40)" identifier (argument_list "(lVar2,lVar5,0,lVar4 + lVar5 * -0x40)" ( identifier , identifier , number_literal , (binary_expression "lVar4 + lVar5 * -0x40" identifier + (binary_expression "lVar5 * -0x40" identifier * number_literal)) )))) ;) (return_statement "return uVar6;" return identifier ;) })) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (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 = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT ^ (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) >> LIT)) )) - (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (for_statement for ( ; (binary_expression (binary_expression (pointer_expression * IDENT) >> IDENT) == LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { })) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) ^ LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT) - IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })))
(function_definition "undefined8 __gmpf_get_d_2exp(long *param_1,long param_2)\n\n{\n  ulong *puVar1;\n  long lVar2;\n  ulong uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 uVar6;\n  \n  uVar3 = (ulong)*(int *)(param_2 + 4);\n  if (uVar3 != 0) {\n    lVar2 = *(long *)(param_2 + 0x10);\n    lVar5 = (uVar3 ^ (long)uVar3 >> 0x3f) - ((long)uVar3 >> 0x3f);\n    puVar1 = (ulong *)(lVar2 + -8 + lVar5 * 8);\n    lVar4 = 0x3f;\n    if (*puVar1 != 0) {\n      for (; *puVar1 >> lVar4 == 0; lVar4 = lVar4 + -1) {\n      }\n    }\n    lVar4 = (long)(int)((uint)lVar4 ^ 0x3f);\n    *param_1 = *(long *)(param_2 + 8) * 0x40 - lVar4;\n    uVar6 = __gmpn_get_d(lVar2,lVar5,0,lVar4 + lVar5 * -0x40);\n    return uVar6;\n  }\n  *param_1 = 0;\n  return 0;\n}" (type_identifier "undefined8") (function_declarator "__gmpf_get_d_2exp(long *param_1,long param_2)" (identifier "__gmpf_get_d_2exp") (parameter_list "(long *param_1,long param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) () ")"))) (compound_statement "{\n  ulong *puVar1;\n  long lVar2;\n  ulong uVar3;\n  long lVar4;\n  long lVar5;\n  undefined8 uVar6;\n  \n  uVar3 = (ulong)*(int *)(param_2 + 4);\n  if (uVar3 != 0) {\n    lVar2 = *(long *)(param_2 + 0x10);\n    lVar5 = (uVar3 ^ (long)uVar3 >> 0x3f) - ((long)uVar3 >> 0x3f);\n    puVar1 = (ulong *)(lVar2 + -8 + lVar5 * 8);\n    lVar4 = 0x3f;\n    if (*puVar1 != 0) {\n      for (; *puVar1 >> lVar4 == 0; lVar4 = lVar4 + -1) {\n      }\n    }\n    lVar4 = (long)(int)((uint)lVar4 ^ 0x3f);\n    *param_1 = *(long *)(param_2 + 8) * 0x40 - lVar4;\n    uVar6 = __gmpn_get_d(lVar2,lVar5,0,lVar4 + lVar5 * -0x40);\n    return uVar6;\n  }\n  *param_1 = 0;\n  return 0;\n}" ({ "{") (declaration "ulong *puVar1;" (type_identifier "ulong") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "ulong uVar3;" (type_identifier "ulong") (identifier "uVar3") (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (declaration "long lVar5;" (sized_type_specifier "long" (long "long")) (identifier "lVar5") (; ";")) (declaration "undefined8 uVar6;" (type_identifier "undefined8") (identifier "uVar6") (; ";")) (expression_statement "uVar3 = (ulong)*(int *)(param_2 + 4);" (assignment_expression "uVar3 = (ulong)*(int *)(param_2 + 4)" (identifier "uVar3") (= "=") (binary_expression "(ulong)*(int *)(param_2 + 4)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (uVar3 != 0) {\n    lVar2 = *(long *)(param_2 + 0x10);\n    lVar5 = (uVar3 ^ (long)uVar3 >> 0x3f) - ((long)uVar3 >> 0x3f);\n    puVar1 = (ulong *)(lVar2 + -8 + lVar5 * 8);\n    lVar4 = 0x3f;\n    if (*puVar1 != 0) {\n      for (; *puVar1 >> lVar4 == 0; lVar4 = lVar4 + -1) {\n      }\n    }\n    lVar4 = (long)(int)((uint)lVar4 ^ 0x3f);\n    *param_1 = *(long *)(param_2 + 8) * 0x40 - lVar4;\n    uVar6 = __gmpn_get_d(lVar2,lVar5,0,lVar4 + lVar5 * -0x40);\n    return uVar6;\n  }" (if "if") (parenthesized_expression "(uVar3 != 0)" (( "(") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    lVar2 = *(long *)(param_2 + 0x10);\n    lVar5 = (uVar3 ^ (long)uVar3 >> 0x3f) - ((long)uVar3 >> 0x3f);\n    puVar1 = (ulong *)(lVar2 + -8 + lVar5 * 8);\n    lVar4 = 0x3f;\n    if (*puVar1 != 0) {\n      for (; *puVar1 >> lVar4 == 0; lVar4 = lVar4 + -1) {\n      }\n    }\n    lVar4 = (long)(int)((uint)lVar4 ^ 0x3f);\n    *param_1 = *(long *)(param_2 + 8) * 0x40 - lVar4;\n    uVar6 = __gmpn_get_d(lVar2,lVar5,0,lVar4 + lVar5 * -0x40);\n    return uVar6;\n  }" ({ "{") (expression_statement "lVar2 = *(long *)(param_2 + 0x10);" (assignment_expression "lVar2 = *(long *)(param_2 + 0x10)" (identifier "lVar2") (= "=") (pointer_expression "*(long *)(param_2 + 0x10)" (* "*") (cast_expression "(long *)(param_2 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "lVar5 = (uVar3 ^ (long)uVar3 >> 0x3f) - ((long)uVar3 >> 0x3f);" (assignment_expression "lVar5 = (uVar3 ^ (long)uVar3 >> 0x3f) - ((long)uVar3 >> 0x3f)" (identifier "lVar5") (= "=") (binary_expression "(uVar3 ^ (long)uVar3 >> 0x3f) - ((long)uVar3 >> 0x3f)" (parenthesized_expression "(uVar3 ^ (long)uVar3 >> 0x3f)" (( "(") (binary_expression "uVar3 ^ (long)uVar3 >> 0x3f" (identifier "uVar3") (^ "^") (binary_expression "(long)uVar3 >> 0x3f" (cast_expression "(long)uVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "uVar3")) (>> ">>") (number_literal "0x3f"))) () ")")) (- "-") (parenthesized_expression "((long)uVar3 >> 0x3f)" (( "(") (binary_expression "(long)uVar3 >> 0x3f" (cast_expression "(long)uVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "uVar3")) (>> ">>") (number_literal "0x3f")) () ")")))) (; ";")) (expression_statement "puVar1 = (ulong *)(lVar2 + -8 + lVar5 * 8);" (assignment_expression "puVar1 = (ulong *)(lVar2 + -8 + lVar5 * 8)" (identifier "puVar1") (= "=") (cast_expression "(ulong *)(lVar2 + -8 + lVar5 * 8)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + -8 + lVar5 * 8)" (( "(") (binary_expression "lVar2 + -8 + lVar5 * 8" (binary_expression "lVar2 + -8" (identifier "lVar2") (+ "+") (number_literal "-8")) (+ "+") (binary_expression "lVar5 * 8" (identifier "lVar5") (* "*") (number_literal "8"))) () ")")))) (; ";")) (expression_statement "lVar4 = 0x3f;" (assignment_expression "lVar4 = 0x3f" (identifier "lVar4") (= "=") (number_literal "0x3f")) (; ";")) (if_statement "if (*puVar1 != 0) {\n      for (; *puVar1 >> lVar4 == 0; lVar4 = lVar4 + -1) {\n      }\n    }" (if "if") (parenthesized_expression "(*puVar1 != 0)" (( "(") (binary_expression "*puVar1 != 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      for (; *puVar1 >> lVar4 == 0; lVar4 = lVar4 + -1) {\n      }\n    }" ({ "{") (for_statement "for (; *puVar1 >> lVar4 == 0; lVar4 = lVar4 + -1) {\n      }" (for "for") (( "(") (; ";") (binary_expression "*puVar1 >> lVar4 == 0" (binary_expression "*puVar1 >> lVar4" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (>> ">>") (identifier "lVar4")) (== "==") (number_literal "0")) (; ";") (assignment_expression "lVar4 = lVar4 + -1" (identifier "lVar4") (= "=") (binary_expression "lVar4 + -1" (identifier "lVar4") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n      }" ({ "{") (} "}"))) (} "}"))) (expression_statement "lVar4 = (long)(int)((uint)lVar4 ^ 0x3f);" (assignment_expression "lVar4 = (long)(int)((uint)lVar4 ^ 0x3f)" (identifier "lVar4") (= "=") (cast_expression "(long)(int)((uint)lVar4 ^ 0x3f)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (cast_expression "(int)((uint)lVar4 ^ 0x3f)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((uint)lVar4 ^ 0x3f)" (( "(") (binary_expression "(uint)lVar4 ^ 0x3f" (cast_expression "(uint)lVar4" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "lVar4")) (^ "^") (number_literal "0x3f")) () ")"))))) (; ";")) (expression_statement "*param_1 = *(long *)(param_2 + 8) * 0x40 - lVar4;" (assignment_expression "*param_1 = *(long *)(param_2 + 8) * 0x40 - lVar4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "*(long *)(param_2 + 8) * 0x40 - lVar4" (binary_expression "*(long *)(param_2 + 8) * 0x40" (pointer_expression "*(long *)(param_2 + 8)" (* "*") (cast_expression "(long *)(param_2 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (* "*") (number_literal "0x40")) (- "-") (identifier "lVar4"))) (; ";")) (expression_statement "uVar6 = __gmpn_get_d(lVar2,lVar5,0,lVar4 + lVar5 * -0x40);" (assignment_expression "uVar6 = __gmpn_get_d(lVar2,lVar5,0,lVar4 + lVar5 * -0x40)" (identifier "uVar6") (= "=") (call_expression "__gmpn_get_d(lVar2,lVar5,0,lVar4 + lVar5 * -0x40)" (identifier "__gmpn_get_d") (argument_list "(lVar2,lVar5,0,lVar4 + lVar5 * -0x40)" (( "(") (identifier "lVar2") (, ",") (identifier "lVar5") (, ",") (number_literal "0") (, ",") (binary_expression "lVar4 + lVar5 * -0x40" (identifier "lVar4") (+ "+") (binary_expression "lVar5 * -0x40" (identifier "lVar5") (* "*") (number_literal "-0x40"))) () ")")))) (; ";")) (return_statement "return uVar6;" (return "return") (identifier "uVar6") (; ";")) (} "}"))) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

double function_1(long *exp2,type_1 src)

{
  type_2 pmVar1;
  type_2 var_2;
  type_3 var_1;
  long var_4;
  long var_3;
  double dVar4;
  
  var_1 = (type_3)src->_mp_size;
  if (var_1 != 0) {
    var_2 = src->_mp_d;
    var_3 = (var_1 ^ (long)var_1 >> 0x3f) - ((long)var_1 >> 0x3f);
    pmVar1 = var_2 + var_3 + -1;
    var_4 = 0x3f;
    if (*pmVar1 != 0) {
      for (; *pmVar1 >> var_4 == 0; var_4 = var_4 + -1) {
      }
    }
    var_4 = (long)(int)((type_4)var_4 ^ 0x3f);
    *exp2 = src->_mp_exp * 0x40 - var_4;
    dVar4 = var_5(var_2,var_3,0,var_4 + var_3 * -0x40);
    return dVar4;
  }
  *exp2 = 0;
  return 0.0;
}


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

undefined8 MASKED(long *param_1,long param_2)

{
  ulong *puVar1;
  long lVar2;
  ulong uVar3;
  long lVar4;
  long lVar5;
  undefined8 uVar6;
  
  uVar3 = (ulong)*(int *)(param_2 + 4);
  if (uVar3 != 0) {
    lVar2 = *(long *)(param_2 + 0x10);
    lVar5 = (uVar3 ^ (long)uVar3 >> 0x3f) - ((long)uVar3 >> 0x3f);
    puVar1 = (ulong *)(lVar2 + -8 + lVar5 * 8);
    lVar4 = 0x3f;
    if (*puVar1 != 0) {
      for (; *puVar1 >> lVar4 == 0; lVar4 = lVar4 + -1) {
      }
    }
    lVar4 = (long)(int)((uint)lVar4 ^ 0x3f);
    *param_1 = *(long *)(param_2 + 8) * 0x40 - lVar4;
    uVar6 = __gmpn_get_d(lVar2,lVar5,0,lVar4 + lVar5 * -0x40);
    return uVar6;
  }
  *param_1 = 0;
  return 0;
}

