
void __gmpz_fdiv_q(mpz_ptr quot,mpz_srcptr dividend,mpz_srcptr divisor)

{
  uint uVar1;
  uint uVar2;
  long lVar3;
  tmp_reentrant_t *mark;
  ulong uVar4;
  undefined1 *puVar5;
  long lVar6;
  size_t size;
  long in_FS_OFFSET;
  undefined1 auStack_68 [8];
  tmp_reentrant_t *__tmp_marker;
  mpz_t rem;
  
  puVar5 = auStack_68;
  lVar3 = *(long *)(in_FS_OFFSET + 0x28);
  uVar1 = dividend->_mp_size;
  uVar2 = divisor->_mp_size;
  __tmp_marker = (tmp_reentrant_t *)0x0;
  uVar4 = (long)(int)uVar2 >> 0x3f;
  lVar6 = ((long)(int)uVar2 ^ uVar4) - uVar4;
  rem[0]._mp_alloc = (int)lVar6;
  size = lVar6 * 8;
  if (size < 0x7f01) {
    lVar6 = -(size + 0x17 & 0xfffffffffffffff0);
    puVar5 = auStack_68 + lVar6;
    rem[0]._mp_d = (mp_limb_t *)((long)rem + lVar6 + -8);
  }
  else {
    rem[0]._mp_d = (mp_limb_t *)__gmp_tmp_reentrant_alloc(&__tmp_marker,size);
  }
  *(undefined8 *)(puVar5 + -8) = 0x117fe5;
  __gmpz_tdiv_qr(quot,rem,dividend,divisor);
  if (((int)(uVar1 ^ uVar2) < 0) && (rem[0]._mp_size != 0)) {
    *(undefined8 *)(puVar5 + -8) = 0x118032;
    __gmpz_sub_ui(quot,quot,1);
  }
  mark = __tmp_marker;
  if (__tmp_marker != (tmp_reentrant_t *)0x0) {
    *(undefined8 *)(puVar5 + -8) = 0x118039;
    __gmp_tmp_reentrant_free(mark);
  }
  if (lVar3 == *(long *)(in_FS_OFFSET + 0x28)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  *(code **)(puVar5 + -8) = __gmpz_fdiv_ui;
  __stack_chk_fail();
}



void __gmpz_fdiv_q(undefined8 param_1,long param_2,long param_3)

{
  uint uVar1;
  uint uVar2;
  ulong uVar3;
  undefined1 *puVar4;
  long lVar5;
  long in_FS_OFFSET;
  undefined1 auStack_68 [8];
  long local_60;
  undefined4 local_58;
  int local_54;
  long local_50;
  long local_40;
  
  puVar4 = auStack_68;
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  uVar1 = *(uint *)(param_2 + 4);
  uVar2 = *(uint *)(param_3 + 4);
  local_60 = 0;
  uVar3 = (long)(int)uVar2 >> 0x3f;
  lVar5 = ((long)(int)uVar2 ^ uVar3) - uVar3;
  local_58 = (undefined4)lVar5;
  uVar3 = lVar5 * 8;
  if (uVar3 < 0x7f01) {
    local_50 = -(uVar3 + 0x17 & 0xfffffffffffffff0);
    puVar4 = auStack_68 + local_50;
    local_50 = (long)&local_60 + local_50;
  }
  else {
    local_50 = __gmp_tmp_reentrant_alloc(&local_60);
  }
  *(undefined8 *)(puVar4 + -8) = 0x117fe5;
  __gmpz_tdiv_qr(param_1,&local_58,param_2,param_3);
  if (((int)(uVar1 ^ uVar2) < 0) && (local_54 != 0)) {
    *(undefined8 *)(puVar4 + -8) = 0x118032;
    __gmpz_sub_ui(param_1,param_1,1);
  }
  if (local_60 != 0) {
    *(undefined8 *)(puVar4 + -8) = 0x118039;
    __gmp_tmp_reentrant_free();
  }
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  *(code **)(puVar4 + -8) = __gmpz_fdiv_ui;
  __stack_chk_fail();
}


PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV R14,RDI
MOV R12,RSI
MOV R13,RDX
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x38],RAX
XOR EAX,EAX
MOV R15D,dword ptr [RSI + 0x4]
MOV EBX,dword ptr [RDX + 0x4]
MOV qword ptr [RBP + -0x58],0x0
MOVSXD RSI,EBX
MOV RAX,RSI
SAR RAX,0x3f
XOR RSI,RAX
SUB RSI,RAX
MOV dword ptr [RBP + -0x50],ESI
SHL RSI,0x3
CMP RSI,0x7f00
JA 0x00118011
ADD RSI,0x17
AND RSI,-0x10
SUB RSP,RSI
LEA RAX,[RSP + 0xf]
AND RAX,-0x10
MOV qword ptr [RBP + -0x48],RAX
LEA RSI,[RBP + -0x50]
MOV RCX,R13
MOV RDX,R12
MOV RDI,R14
CALL 0x0010b150
XOR R15D,EBX
JS 0x0011801c
MOV RDI,qword ptr [RBP + -0x58]
TEST RDI,RDI
JNZ 0x00118034
MOV RAX,qword ptr [RBP + -0x38]
XOR RAX,qword ptr FS:[0x28]
JNZ 0x0011803b
LEA RSP,[RBP + -0x28]
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LEA RDI,[RBP + -0x58]
CALL 0x0010bca0
JMP 0x00117fcf
CMP dword ptr [RBP + -0x4c],0x0
JZ 0x00117fea
MOV EDX,0x1
MOV RSI,R14
MOV RDI,R14
CALL 0x0010b2a0
JMP 0x00117fea
CALL 0x0010b040
JMP 0x00117ff3
CALL 0x0010b520
(translation_unit "void __gmpz_fdiv_q(undefined8 param_1,long param_2,long param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  ulong uVar3;\n  undefined1 *puVar4;\n  long lVar5;\n  long in_FS_OFFSET;\n  undefined1 auStack_68 [8];\n  long local_60;\n  undefined4 local_58;\n  int local_54;\n  long local_50;\n  long local_40;\n  \n  puVar4 = auStack_68;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = *(uint *)(param_2 + 4);\n  uVar2 = *(uint *)(param_3 + 4);\n  local_60 = 0;\n  uVar3 = (long)(int)uVar2 >> 0x3f;\n  lVar5 = ((long)(int)uVar2 ^ uVar3) - uVar3;\n  local_58 = (undefined4)lVar5;\n  uVar3 = lVar5 * 8;\n  if (uVar3 < 0x7f01) {\n    local_50 = -(uVar3 + 0x17 & 0xfffffffffffffff0);\n    puVar4 = auStack_68 + local_50;\n    local_50 = (long)&local_60 + local_50;\n  }\n  else {\n    local_50 = __gmp_tmp_reentrant_alloc(&local_60);\n  }\n  *(undefined8 *)(puVar4 + -8) = 0x117fe5;\n  __gmpz_tdiv_qr(param_1,&local_58,param_2,param_3);\n  if (((int)(uVar1 ^ uVar2) < 0) && (local_54 != 0)) {\n    *(undefined8 *)(puVar4 + -8) = 0x118032;\n    __gmpz_sub_ui(param_1,param_1,1);\n  }\n  if (local_60 != 0) {\n    *(undefined8 *)(puVar4 + -8) = 0x118039;\n    __gmp_tmp_reentrant_free();\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(code **)(puVar4 + -8) = __gmpz_fdiv_ui;\n  __stack_chk_fail();\n}\n\n" (function_definition "void __gmpz_fdiv_q(undefined8 param_1,long param_2,long param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  ulong uVar3;\n  undefined1 *puVar4;\n  long lVar5;\n  long in_FS_OFFSET;\n  undefined1 auStack_68 [8];\n  long local_60;\n  undefined4 local_58;\n  int local_54;\n  long local_50;\n  long local_40;\n  \n  puVar4 = auStack_68;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = *(uint *)(param_2 + 4);\n  uVar2 = *(uint *)(param_3 + 4);\n  local_60 = 0;\n  uVar3 = (long)(int)uVar2 >> 0x3f;\n  lVar5 = ((long)(int)uVar2 ^ uVar3) - uVar3;\n  local_58 = (undefined4)lVar5;\n  uVar3 = lVar5 * 8;\n  if (uVar3 < 0x7f01) {\n    local_50 = -(uVar3 + 0x17 & 0xfffffffffffffff0);\n    puVar4 = auStack_68 + local_50;\n    local_50 = (long)&local_60 + local_50;\n  }\n  else {\n    local_50 = __gmp_tmp_reentrant_alloc(&local_60);\n  }\n  *(undefined8 *)(puVar4 + -8) = 0x117fe5;\n  __gmpz_tdiv_qr(param_1,&local_58,param_2,param_3);\n  if (((int)(uVar1 ^ uVar2) < 0) && (local_54 != 0)) {\n    *(undefined8 *)(puVar4 + -8) = 0x118032;\n    __gmpz_sub_ui(param_1,param_1,1);\n  }\n  if (local_60 != 0) {\n    *(undefined8 *)(puVar4 + -8) = 0x118039;\n    __gmp_tmp_reentrant_free();\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(code **)(puVar4 + -8) = __gmpz_fdiv_ui;\n  __stack_chk_fail();\n}" primitive_type (function_declarator "__gmpz_fdiv_q(undefined8 param_1,long param_2,long param_3)" identifier (parameter_list "(undefined8 param_1,long param_2,long param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  ulong uVar3;\n  undefined1 *puVar4;\n  long lVar5;\n  long in_FS_OFFSET;\n  undefined1 auStack_68 [8];\n  long local_60;\n  undefined4 local_58;\n  int local_54;\n  long local_50;\n  long local_40;\n  \n  puVar4 = auStack_68;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = *(uint *)(param_2 + 4);\n  uVar2 = *(uint *)(param_3 + 4);\n  local_60 = 0;\n  uVar3 = (long)(int)uVar2 >> 0x3f;\n  lVar5 = ((long)(int)uVar2 ^ uVar3) - uVar3;\n  local_58 = (undefined4)lVar5;\n  uVar3 = lVar5 * 8;\n  if (uVar3 < 0x7f01) {\n    local_50 = -(uVar3 + 0x17 & 0xfffffffffffffff0);\n    puVar4 = auStack_68 + local_50;\n    local_50 = (long)&local_60 + local_50;\n  }\n  else {\n    local_50 = __gmp_tmp_reentrant_alloc(&local_60);\n  }\n  *(undefined8 *)(puVar4 + -8) = 0x117fe5;\n  __gmpz_tdiv_qr(param_1,&local_58,param_2,param_3);\n  if (((int)(uVar1 ^ uVar2) < 0) && (local_54 != 0)) {\n    *(undefined8 *)(puVar4 + -8) = 0x118032;\n    __gmpz_sub_ui(param_1,param_1,1);\n  }\n  if (local_60 != 0) {\n    *(undefined8 *)(puVar4 + -8) = 0x118039;\n    __gmp_tmp_reentrant_free();\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(code **)(puVar4 + -8) = __gmpz_fdiv_ui;\n  __stack_chk_fail();\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 auStack_68 [8];" type_identifier (array_declarator "auStack_68 [8]" identifier [ number_literal ]) ;) (declaration "long local_60;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined4 local_58;" type_identifier identifier ;) (declaration "int local_54;" primitive_type identifier ;) (declaration "long local_50;" (sized_type_specifier "long" long) identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "puVar4 = auStack_68;" (assignment_expression "puVar4 = auStack_68" identifier = identifier) ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = *(uint *)(param_2 + 4);" (assignment_expression "uVar1 = *(uint *)(param_2 + 4)" identifier = (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(uint *)(param_3 + 4);" (assignment_expression "uVar2 = *(uint *)(param_3 + 4)" identifier = (pointer_expression "*(uint *)(param_3 + 4)" * (cast_expression "(uint *)(param_3 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) ))))) ;) (expression_statement "local_60 = 0;" (assignment_expression "local_60 = 0" identifier = number_literal) ;) (expression_statement "uVar3 = (long)(int)uVar2 >> 0x3f;" (assignment_expression "uVar3 = (long)(int)uVar2 >> 0x3f" identifier = (binary_expression "(long)(int)uVar2 >> 0x3f" (cast_expression "(long)(int)uVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ;) (expression_statement "lVar5 = ((long)(int)uVar2 ^ uVar3) - uVar3;" (assignment_expression "lVar5 = ((long)(int)uVar2 ^ uVar3) - uVar3" identifier = (binary_expression "((long)(int)uVar2 ^ uVar3) - uVar3" (parenthesized_expression "((long)(int)uVar2 ^ uVar3)" ( (binary_expression "(long)(int)uVar2 ^ uVar3" (cast_expression "(long)(int)uVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ^ identifier) )) - identifier)) ;) (expression_statement "local_58 = (undefined4)lVar5;" (assignment_expression "local_58 = (undefined4)lVar5" identifier = (cast_expression "(undefined4)lVar5" ( (type_descriptor "undefined4" type_identifier) ) identifier)) ;) (expression_statement "uVar3 = lVar5 * 8;" (assignment_expression "uVar3 = lVar5 * 8" identifier = (binary_expression "lVar5 * 8" identifier * number_literal)) ;) (if_statement "if (uVar3 < 0x7f01) {\n    local_50 = -(uVar3 + 0x17 & 0xfffffffffffffff0);\n    puVar4 = auStack_68 + local_50;\n    local_50 = (long)&local_60 + local_50;\n  }\n  else {\n    local_50 = __gmp_tmp_reentrant_alloc(&local_60);\n  }" if (parenthesized_expression "(uVar3 < 0x7f01)" ( (binary_expression "uVar3 < 0x7f01" identifier < number_literal) )) (compound_statement "{\n    local_50 = -(uVar3 + 0x17 & 0xfffffffffffffff0);\n    puVar4 = auStack_68 + local_50;\n    local_50 = (long)&local_60 + local_50;\n  }" { (expression_statement "local_50 = -(uVar3 + 0x17 & 0xfffffffffffffff0);" (assignment_expression "local_50 = -(uVar3 + 0x17 & 0xfffffffffffffff0)" identifier = (unary_expression "-(uVar3 + 0x17 & 0xfffffffffffffff0)" - (parenthesized_expression "(uVar3 + 0x17 & 0xfffffffffffffff0)" ( (binary_expression "uVar3 + 0x17 & 0xfffffffffffffff0" (binary_expression "uVar3 + 0x17" identifier + number_literal) & number_literal) )))) ;) (expression_statement "puVar4 = auStack_68 + local_50;" (assignment_expression "puVar4 = auStack_68 + local_50" identifier = (binary_expression "auStack_68 + local_50" identifier + identifier)) ;) (expression_statement "local_50 = (long)&local_60 + local_50;" (assignment_expression "local_50 = (long)&local_60 + local_50" identifier = (binary_expression "(long)&local_60 + local_50" (cast_expression "(long)&local_60" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&local_60" & identifier)) + identifier)) ;) }) (else_clause "else {\n    local_50 = __gmp_tmp_reentrant_alloc(&local_60);\n  }" else (compound_statement "{\n    local_50 = __gmp_tmp_reentrant_alloc(&local_60);\n  }" { (expression_statement "local_50 = __gmp_tmp_reentrant_alloc(&local_60);" (assignment_expression "local_50 = __gmp_tmp_reentrant_alloc(&local_60)" identifier = (call_expression "__gmp_tmp_reentrant_alloc(&local_60)" identifier (argument_list "(&local_60)" ( (pointer_expression "&local_60" & identifier) )))) ;) }))) (expression_statement "*(undefined8 *)(puVar4 + -8) = 0x117fe5;" (assignment_expression "*(undefined8 *)(puVar4 + -8) = 0x117fe5" (pointer_expression "*(undefined8 *)(puVar4 + -8)" * (cast_expression "(undefined8 *)(puVar4 + -8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -8)" ( (binary_expression "puVar4 + -8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "__gmpz_tdiv_qr(param_1,&local_58,param_2,param_3);" (call_expression "__gmpz_tdiv_qr(param_1,&local_58,param_2,param_3)" identifier (argument_list "(param_1,&local_58,param_2,param_3)" ( identifier , (pointer_expression "&local_58" & identifier) , identifier , identifier ))) ;) (if_statement "if (((int)(uVar1 ^ uVar2) < 0) && (local_54 != 0)) {\n    *(undefined8 *)(puVar4 + -8) = 0x118032;\n    __gmpz_sub_ui(param_1,param_1,1);\n  }" if (parenthesized_expression "(((int)(uVar1 ^ uVar2) < 0) && (local_54 != 0))" ( (binary_expression "((int)(uVar1 ^ uVar2) < 0) && (local_54 != 0)" (parenthesized_expression "((int)(uVar1 ^ uVar2) < 0)" ( (binary_expression "(int)(uVar1 ^ uVar2) < 0" (cast_expression "(int)(uVar1 ^ uVar2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar1 ^ uVar2)" ( (binary_expression "uVar1 ^ uVar2" identifier ^ identifier) ))) < number_literal) )) && (parenthesized_expression "(local_54 != 0)" ( (binary_expression "local_54 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    *(undefined8 *)(puVar4 + -8) = 0x118032;\n    __gmpz_sub_ui(param_1,param_1,1);\n  }" { (expression_statement "*(undefined8 *)(puVar4 + -8) = 0x118032;" (assignment_expression "*(undefined8 *)(puVar4 + -8) = 0x118032" (pointer_expression "*(undefined8 *)(puVar4 + -8)" * (cast_expression "(undefined8 *)(puVar4 + -8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -8)" ( (binary_expression "puVar4 + -8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "__gmpz_sub_ui(param_1,param_1,1);" (call_expression "__gmpz_sub_ui(param_1,param_1,1)" identifier (argument_list "(param_1,param_1,1)" ( identifier , identifier , number_literal ))) ;) })) (if_statement "if (local_60 != 0) {\n    *(undefined8 *)(puVar4 + -8) = 0x118039;\n    __gmp_tmp_reentrant_free();\n  }" if (parenthesized_expression "(local_60 != 0)" ( (binary_expression "local_60 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined8 *)(puVar4 + -8) = 0x118039;\n    __gmp_tmp_reentrant_free();\n  }" { (expression_statement "*(undefined8 *)(puVar4 + -8) = 0x118039;" (assignment_expression "*(undefined8 *)(puVar4 + -8) = 0x118039" (pointer_expression "*(undefined8 *)(puVar4 + -8)" * (cast_expression "(undefined8 *)(puVar4 + -8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -8)" ( (binary_expression "puVar4 + -8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "__gmp_tmp_reentrant_free();" (call_expression "__gmp_tmp_reentrant_free()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }" if (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "*(code **)(puVar4 + -8) = __gmpz_fdiv_ui;" (assignment_expression "*(code **)(puVar4 + -8) = __gmpz_fdiv_ui" (pointer_expression "*(code **)(puVar4 + -8)" * (cast_expression "(code **)(puVar4 + -8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + -8)" ( (binary_expression "puVar4 + -8" identifier + number_literal) )))) = identifier) ;) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void __gmpz_fdiv_q(mpz_ptr quot,mpz_srcptr dividend,mpz_srcptr divisor)\n\n{\n  uint uVar1;\n  uint uVar2;\n  long lVar3;\n  tmp_reentrant_t *mark;\n  ulong uVar4;\n  undefined1 *puVar5;\n  long lVar6;\n  size_t size;\n  long in_FS_OFFSET;\n  undefined1 auStack_68 [8];\n  tmp_reentrant_t *__tmp_marker;\n  mpz_t rem;\n  \n  puVar5 = auStack_68;\n  lVar3 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = dividend->_mp_size;\n  uVar2 = divisor->_mp_size;\n  __tmp_marker = (tmp_reentrant_t *)0x0;\n  uVar4 = (long)(int)uVar2 >> 0x3f;\n  lVar6 = ((long)(int)uVar2 ^ uVar4) - uVar4;\n  rem[0]._mp_alloc = (int)lVar6;\n  size = lVar6 * 8;\n  if (size < 0x7f01) {\n    lVar6 = -(size + 0x17 & 0xfffffffffffffff0);\n    puVar5 = auStack_68 + lVar6;\n    rem[0]._mp_d = (mp_limb_t *)((long)rem + lVar6 + -8);\n  }\n  else {\n    rem[0]._mp_d = (mp_limb_t *)__gmp_tmp_reentrant_alloc(&__tmp_marker,size);\n  }\n  *(undefined8 *)(puVar5 + -8) = 0x117fe5;\n  __gmpz_tdiv_qr(quot,rem,dividend,divisor);\n  if (((int)(uVar1 ^ uVar2) < 0) && (rem[0]._mp_size != 0)) {\n    *(undefined8 *)(puVar5 + -8) = 0x118032;\n    __gmpz_sub_ui(quot,quot,1);\n  }\n  mark = __tmp_marker;\n  if (__tmp_marker != (tmp_reentrant_t *)0x0) {\n    *(undefined8 *)(puVar5 + -8) = 0x118039;\n    __gmp_tmp_reentrant_free(mark);\n  }\n  if (lVar3 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(code **)(puVar5 + -8) = __gmpz_fdiv_ui;\n  __stack_chk_fail();\n}\n\n" (function_definition "void __gmpz_fdiv_q(mpz_ptr quot,mpz_srcptr dividend,mpz_srcptr divisor)\n\n{\n  uint uVar1;\n  uint uVar2;\n  long lVar3;\n  tmp_reentrant_t *mark;\n  ulong uVar4;\n  undefined1 *puVar5;\n  long lVar6;\n  size_t size;\n  long in_FS_OFFSET;\n  undefined1 auStack_68 [8];\n  tmp_reentrant_t *__tmp_marker;\n  mpz_t rem;\n  \n  puVar5 = auStack_68;\n  lVar3 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = dividend->_mp_size;\n  uVar2 = divisor->_mp_size;\n  __tmp_marker = (tmp_reentrant_t *)0x0;\n  uVar4 = (long)(int)uVar2 >> 0x3f;\n  lVar6 = ((long)(int)uVar2 ^ uVar4) - uVar4;\n  rem[0]._mp_alloc = (int)lVar6;\n  size = lVar6 * 8;\n  if (size < 0x7f01) {\n    lVar6 = -(size + 0x17 & 0xfffffffffffffff0);\n    puVar5 = auStack_68 + lVar6;\n    rem[0]._mp_d = (mp_limb_t *)((long)rem + lVar6 + -8);\n  }\n  else {\n    rem[0]._mp_d = (mp_limb_t *)__gmp_tmp_reentrant_alloc(&__tmp_marker,size);\n  }\n  *(undefined8 *)(puVar5 + -8) = 0x117fe5;\n  __gmpz_tdiv_qr(quot,rem,dividend,divisor);\n  if (((int)(uVar1 ^ uVar2) < 0) && (rem[0]._mp_size != 0)) {\n    *(undefined8 *)(puVar5 + -8) = 0x118032;\n    __gmpz_sub_ui(quot,quot,1);\n  }\n  mark = __tmp_marker;\n  if (__tmp_marker != (tmp_reentrant_t *)0x0) {\n    *(undefined8 *)(puVar5 + -8) = 0x118039;\n    __gmp_tmp_reentrant_free(mark);\n  }\n  if (lVar3 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(code **)(puVar5 + -8) = __gmpz_fdiv_ui;\n  __stack_chk_fail();\n}" primitive_type (function_declarator "__gmpz_fdiv_q(mpz_ptr quot,mpz_srcptr dividend,mpz_srcptr divisor)" identifier (parameter_list "(mpz_ptr quot,mpz_srcptr dividend,mpz_srcptr divisor)" ( (parameter_declaration "mpz_ptr quot" type_identifier identifier) , (parameter_declaration "mpz_srcptr dividend" type_identifier identifier) , (parameter_declaration "mpz_srcptr divisor" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  long lVar3;\n  tmp_reentrant_t *mark;\n  ulong uVar4;\n  undefined1 *puVar5;\n  long lVar6;\n  size_t size;\n  long in_FS_OFFSET;\n  undefined1 auStack_68 [8];\n  tmp_reentrant_t *__tmp_marker;\n  mpz_t rem;\n  \n  puVar5 = auStack_68;\n  lVar3 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = dividend->_mp_size;\n  uVar2 = divisor->_mp_size;\n  __tmp_marker = (tmp_reentrant_t *)0x0;\n  uVar4 = (long)(int)uVar2 >> 0x3f;\n  lVar6 = ((long)(int)uVar2 ^ uVar4) - uVar4;\n  rem[0]._mp_alloc = (int)lVar6;\n  size = lVar6 * 8;\n  if (size < 0x7f01) {\n    lVar6 = -(size + 0x17 & 0xfffffffffffffff0);\n    puVar5 = auStack_68 + lVar6;\n    rem[0]._mp_d = (mp_limb_t *)((long)rem + lVar6 + -8);\n  }\n  else {\n    rem[0]._mp_d = (mp_limb_t *)__gmp_tmp_reentrant_alloc(&__tmp_marker,size);\n  }\n  *(undefined8 *)(puVar5 + -8) = 0x117fe5;\n  __gmpz_tdiv_qr(quot,rem,dividend,divisor);\n  if (((int)(uVar1 ^ uVar2) < 0) && (rem[0]._mp_size != 0)) {\n    *(undefined8 *)(puVar5 + -8) = 0x118032;\n    __gmpz_sub_ui(quot,quot,1);\n  }\n  mark = __tmp_marker;\n  if (__tmp_marker != (tmp_reentrant_t *)0x0) {\n    *(undefined8 *)(puVar5 + -8) = 0x118039;\n    __gmp_tmp_reentrant_free(mark);\n  }\n  if (lVar3 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(code **)(puVar5 + -8) = __gmpz_fdiv_ui;\n  __stack_chk_fail();\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "tmp_reentrant_t *mark;" type_identifier (pointer_declarator "*mark" * identifier) ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "size_t size;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 auStack_68 [8];" type_identifier (array_declarator "auStack_68 [8]" identifier [ number_literal ]) ;) (declaration "tmp_reentrant_t *__tmp_marker;" type_identifier (pointer_declarator "*__tmp_marker" * identifier) ;) (declaration "mpz_t rem;" type_identifier identifier ;) (expression_statement "puVar5 = auStack_68;" (assignment_expression "puVar5 = auStack_68" identifier = identifier) ;) (expression_statement "lVar3 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar3 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = dividend->_mp_size;" (assignment_expression "uVar1 = dividend->_mp_size" identifier = (field_expression "dividend->_mp_size" identifier -> field_identifier)) ;) (expression_statement "uVar2 = divisor->_mp_size;" (assignment_expression "uVar2 = divisor->_mp_size" identifier = (field_expression "divisor->_mp_size" identifier -> field_identifier)) ;) (expression_statement "__tmp_marker = (tmp_reentrant_t *)0x0;" (assignment_expression "__tmp_marker = (tmp_reentrant_t *)0x0" identifier = (cast_expression "(tmp_reentrant_t *)0x0" ( (type_descriptor "tmp_reentrant_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "uVar4 = (long)(int)uVar2 >> 0x3f;" (assignment_expression "uVar4 = (long)(int)uVar2 >> 0x3f" identifier = (binary_expression "(long)(int)uVar2 >> 0x3f" (cast_expression "(long)(int)uVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ;) (expression_statement "lVar6 = ((long)(int)uVar2 ^ uVar4) - uVar4;" (assignment_expression "lVar6 = ((long)(int)uVar2 ^ uVar4) - uVar4" identifier = (binary_expression "((long)(int)uVar2 ^ uVar4) - uVar4" (parenthesized_expression "((long)(int)uVar2 ^ uVar4)" ( (binary_expression "(long)(int)uVar2 ^ uVar4" (cast_expression "(long)(int)uVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ^ identifier) )) - identifier)) ;) (expression_statement "rem[0]._mp_alloc = (int)lVar6;" (assignment_expression "rem[0]._mp_alloc = (int)lVar6" (field_expression "rem[0]._mp_alloc" (subscript_expression "rem[0]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(int)lVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "size = lVar6 * 8;" (assignment_expression "size = lVar6 * 8" identifier = (binary_expression "lVar6 * 8" identifier * number_literal)) ;) (if_statement "if (size < 0x7f01) {\n    lVar6 = -(size + 0x17 & 0xfffffffffffffff0);\n    puVar5 = auStack_68 + lVar6;\n    rem[0]._mp_d = (mp_limb_t *)((long)rem + lVar6 + -8);\n  }\n  else {\n    rem[0]._mp_d = (mp_limb_t *)__gmp_tmp_reentrant_alloc(&__tmp_marker,size);\n  }" if (parenthesized_expression "(size < 0x7f01)" ( (binary_expression "size < 0x7f01" identifier < number_literal) )) (compound_statement "{\n    lVar6 = -(size + 0x17 & 0xfffffffffffffff0);\n    puVar5 = auStack_68 + lVar6;\n    rem[0]._mp_d = (mp_limb_t *)((long)rem + lVar6 + -8);\n  }" { (expression_statement "lVar6 = -(size + 0x17 & 0xfffffffffffffff0);" (assignment_expression "lVar6 = -(size + 0x17 & 0xfffffffffffffff0)" identifier = (unary_expression "-(size + 0x17 & 0xfffffffffffffff0)" - (parenthesized_expression "(size + 0x17 & 0xfffffffffffffff0)" ( (binary_expression "size + 0x17 & 0xfffffffffffffff0" (binary_expression "size + 0x17" identifier + number_literal) & number_literal) )))) ;) (expression_statement "puVar5 = auStack_68 + lVar6;" (assignment_expression "puVar5 = auStack_68 + lVar6" identifier = (binary_expression "auStack_68 + lVar6" identifier + identifier)) ;) (expression_statement "rem[0]._mp_d = (mp_limb_t *)((long)rem + lVar6 + -8);" (assignment_expression "rem[0]._mp_d = (mp_limb_t *)((long)rem + lVar6 + -8)" (field_expression "rem[0]._mp_d" (subscript_expression "rem[0]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(mp_limb_t *)((long)rem + lVar6 + -8)" ( (type_descriptor "mp_limb_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)rem + lVar6 + -8)" ( (binary_expression "(long)rem + lVar6 + -8" (binary_expression "(long)rem + lVar6" (cast_expression "(long)rem" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) + number_literal) )))) ;) }) (else_clause "else {\n    rem[0]._mp_d = (mp_limb_t *)__gmp_tmp_reentrant_alloc(&__tmp_marker,size);\n  }" else (compound_statement "{\n    rem[0]._mp_d = (mp_limb_t *)__gmp_tmp_reentrant_alloc(&__tmp_marker,size);\n  }" { (expression_statement "rem[0]._mp_d = (mp_limb_t *)__gmp_tmp_reentrant_alloc(&__tmp_marker,size);" (assignment_expression "rem[0]._mp_d = (mp_limb_t *)__gmp_tmp_reentrant_alloc(&__tmp_marker,size)" (field_expression "rem[0]._mp_d" (subscript_expression "rem[0]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(mp_limb_t *)__gmp_tmp_reentrant_alloc(&__tmp_marker,size)" ( (type_descriptor "mp_limb_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "__gmp_tmp_reentrant_alloc(&__tmp_marker,size)" identifier (argument_list "(&__tmp_marker,size)" ( (pointer_expression "&__tmp_marker" & identifier) , identifier ))))) ;) }))) (expression_statement "*(undefined8 *)(puVar5 + -8) = 0x117fe5;" (assignment_expression "*(undefined8 *)(puVar5 + -8) = 0x117fe5" (pointer_expression "*(undefined8 *)(puVar5 + -8)" * (cast_expression "(undefined8 *)(puVar5 + -8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + -8)" ( (binary_expression "puVar5 + -8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "__gmpz_tdiv_qr(quot,rem,dividend,divisor);" (call_expression "__gmpz_tdiv_qr(quot,rem,dividend,divisor)" identifier (argument_list "(quot,rem,dividend,divisor)" ( identifier , identifier , identifier , identifier ))) ;) (if_statement "if (((int)(uVar1 ^ uVar2) < 0) && (rem[0]._mp_size != 0)) {\n    *(undefined8 *)(puVar5 + -8) = 0x118032;\n    __gmpz_sub_ui(quot,quot,1);\n  }" if (parenthesized_expression "(((int)(uVar1 ^ uVar2) < 0) && (rem[0]._mp_size != 0))" ( (binary_expression "((int)(uVar1 ^ uVar2) < 0) && (rem[0]._mp_size != 0)" (parenthesized_expression "((int)(uVar1 ^ uVar2) < 0)" ( (binary_expression "(int)(uVar1 ^ uVar2) < 0" (cast_expression "(int)(uVar1 ^ uVar2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar1 ^ uVar2)" ( (binary_expression "uVar1 ^ uVar2" identifier ^ identifier) ))) < number_literal) )) && (parenthesized_expression "(rem[0]._mp_size != 0)" ( (binary_expression "rem[0]._mp_size != 0" (field_expression "rem[0]._mp_size" (subscript_expression "rem[0]" identifier [ number_literal ]) . field_identifier) != number_literal) ))) )) (compound_statement "{\n    *(undefined8 *)(puVar5 + -8) = 0x118032;\n    __gmpz_sub_ui(quot,quot,1);\n  }" { (expression_statement "*(undefined8 *)(puVar5 + -8) = 0x118032;" (assignment_expression "*(undefined8 *)(puVar5 + -8) = 0x118032" (pointer_expression "*(undefined8 *)(puVar5 + -8)" * (cast_expression "(undefined8 *)(puVar5 + -8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + -8)" ( (binary_expression "puVar5 + -8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "__gmpz_sub_ui(quot,quot,1);" (call_expression "__gmpz_sub_ui(quot,quot,1)" identifier (argument_list "(quot,quot,1)" ( identifier , identifier , number_literal ))) ;) })) (expression_statement "mark = __tmp_marker;" (assignment_expression "mark = __tmp_marker" identifier = identifier) ;) (if_statement "if (__tmp_marker != (tmp_reentrant_t *)0x0) {\n    *(undefined8 *)(puVar5 + -8) = 0x118039;\n    __gmp_tmp_reentrant_free(mark);\n  }" if (parenthesized_expression "(__tmp_marker != (tmp_reentrant_t *)0x0)" ( (binary_expression "__tmp_marker != (tmp_reentrant_t *)0x0" identifier != (cast_expression "(tmp_reentrant_t *)0x0" ( (type_descriptor "tmp_reentrant_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *(undefined8 *)(puVar5 + -8) = 0x118039;\n    __gmp_tmp_reentrant_free(mark);\n  }" { (expression_statement "*(undefined8 *)(puVar5 + -8) = 0x118039;" (assignment_expression "*(undefined8 *)(puVar5 + -8) = 0x118039" (pointer_expression "*(undefined8 *)(puVar5 + -8)" * (cast_expression "(undefined8 *)(puVar5 + -8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + -8)" ( (binary_expression "puVar5 + -8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "__gmp_tmp_reentrant_free(mark);" (call_expression "__gmp_tmp_reentrant_free(mark)" identifier (argument_list "(mark)" ( identifier ))) ;) })) (if_statement "if (lVar3 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }" if (parenthesized_expression "(lVar3 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar3 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "*(code **)(puVar5 + -8) = __gmpz_fdiv_ui;" (assignment_expression "*(code **)(puVar5 + -8) = __gmpz_fdiv_ui" (pointer_expression "*(code **)(puVar5 + -8)" * (cast_expression "(code **)(puVar5 + -8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + -8)" ( (binary_expression "puVar5 + -8" identifier + number_literal) )))) = identifier) ;) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void __gmpz_fdiv_q(undefined8 param_1,long param_2,long param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  ulong uVar3;\n  undefined1 *puVar4;\n  long lVar5;\n  long in_FS_OFFSET;\n  undefined1 auStack_68 [8];\n  long local_60;\n  undefined4 local_58;\n  int local_54;\n  long local_50;\n  long local_40;\n  \n  puVar4 = auStack_68;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = *(uint *)(param_2 + 4);\n  uVar2 = *(uint *)(param_3 + 4);\n  local_60 = 0;\n  uVar3 = (long)(int)uVar2 >> 0x3f;\n  lVar5 = ((long)(int)uVar2 ^ uVar3) - uVar3;\n  local_58 = (undefined4)lVar5;\n  uVar3 = lVar5 * 8;\n  if (uVar3 < 0x7f01) {\n    local_50 = -(uVar3 + 0x17 & 0xfffffffffffffff0);\n    puVar4 = auStack_68 + local_50;\n    local_50 = (long)&local_60 + local_50;\n  }\n  else {\n    local_50 = __gmp_tmp_reentrant_alloc(&local_60);\n  }\n  *(undefined8 *)(puVar4 + -8) = 0x117fe5;\n  __gmpz_tdiv_qr(param_1,&local_58,param_2,param_3);\n  if (((int)(uVar1 ^ uVar2) < 0) && (local_54 != 0)) {\n    *(undefined8 *)(puVar4 + -8) = 0x118032;\n    __gmpz_sub_ui(param_1,param_1,1);\n  }\n  if (local_60 != 0) {\n    *(undefined8 *)(puVar4 + -8) = 0x118039;\n    __gmp_tmp_reentrant_free();\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  *(code **)(puVar4 + -8) = __gmpz_fdiv_ui;\n  __stack_chk_fail();\n}\n\n" (function_definition "void __gmpz_fdiv_q(undefined8 param_1,long param_2,long param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  ulong uVar3;\n  undefined1 *puVar4;\n  long lVar5;\n  long in_FS_OFFSET;\n  undefined1 auStack_68 [8];\n  long local_60;\n  undefined4 local_58;\n  int local_54;\n  long local_50;\n  long local_40;\n  \n  puVar4 = auStack_68;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = *(uint *)(param_2 + 4);\n  uVar2 = *(uint *)(param_3 + 4);\n  local_60 = 0;\n  uVar3 = (long)(int)uVar2 >> 0x3f;\n  lVar5 = ((long)(int)uVar2 ^ uVar3) - uVar3;\n  local_58 = (undefined4)lVar5;\n  uVar3 = lVar5 * 8;\n  if (uVar3 < 0x7f01) {\n    local_50 = -(uVar3 + 0x17 & 0xfffffffffffffff0);\n    puVar4 = auStack_68 + local_50;\n    local_50 = (long)&local_60 + local_50;\n  }\n  else {\n    local_50 = __gmp_tmp_reentrant_alloc(&local_60);\n  }\n  *(undefined8 *)(puVar4 + -8) = 0x117fe5;\n  __gmpz_tdiv_qr(param_1,&local_58,param_2,param_3);\n  if (((int)(uVar1 ^ uVar2) < 0) && (local_54 != 0)) {\n    *(undefined8 *)(puVar4 + -8) = 0x118032;\n    __gmpz_sub_ui(param_1,param_1,1);\n  }\n  if (local_60 != 0) {\n    *(undefined8 *)(puVar4 + -8) = 0x118039;\n    __gmp_tmp_reentrant_free();\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  *(code **)(puVar4 + -8) = __gmpz_fdiv_ui;\n  __stack_chk_fail();\n}" primitive_type (function_declarator "__gmpz_fdiv_q(undefined8 param_1,long param_2,long param_3)" identifier (parameter_list "(undefined8 param_1,long param_2,long param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  ulong uVar3;\n  undefined1 *puVar4;\n  long lVar5;\n  long in_FS_OFFSET;\n  undefined1 auStack_68 [8];\n  long local_60;\n  undefined4 local_58;\n  int local_54;\n  long local_50;\n  long local_40;\n  \n  puVar4 = auStack_68;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = *(uint *)(param_2 + 4);\n  uVar2 = *(uint *)(param_3 + 4);\n  local_60 = 0;\n  uVar3 = (long)(int)uVar2 >> 0x3f;\n  lVar5 = ((long)(int)uVar2 ^ uVar3) - uVar3;\n  local_58 = (undefined4)lVar5;\n  uVar3 = lVar5 * 8;\n  if (uVar3 < 0x7f01) {\n    local_50 = -(uVar3 + 0x17 & 0xfffffffffffffff0);\n    puVar4 = auStack_68 + local_50;\n    local_50 = (long)&local_60 + local_50;\n  }\n  else {\n    local_50 = __gmp_tmp_reentrant_alloc(&local_60);\n  }\n  *(undefined8 *)(puVar4 + -8) = 0x117fe5;\n  __gmpz_tdiv_qr(param_1,&local_58,param_2,param_3);\n  if (((int)(uVar1 ^ uVar2) < 0) && (local_54 != 0)) {\n    *(undefined8 *)(puVar4 + -8) = 0x118032;\n    __gmpz_sub_ui(param_1,param_1,1);\n  }\n  if (local_60 != 0) {\n    *(undefined8 *)(puVar4 + -8) = 0x118039;\n    __gmp_tmp_reentrant_free();\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  *(code **)(puVar4 + -8) = __gmpz_fdiv_ui;\n  __stack_chk_fail();\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 auStack_68 [8];" type_identifier (array_declarator "auStack_68 [8]" identifier [ number_literal ]) ;) (declaration "long local_60;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined4 local_58;" type_identifier identifier ;) (declaration "int local_54;" primitive_type identifier ;) (declaration "long local_50;" (sized_type_specifier "long" long) identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "puVar4 = auStack_68;" (assignment_expression "puVar4 = auStack_68" identifier = identifier) ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = *(uint *)(param_2 + 4);" (assignment_expression "uVar1 = *(uint *)(param_2 + 4)" identifier = (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(uint *)(param_3 + 4);" (assignment_expression "uVar2 = *(uint *)(param_3 + 4)" identifier = (pointer_expression "*(uint *)(param_3 + 4)" * (cast_expression "(uint *)(param_3 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) ))))) ;) (expression_statement "local_60 = 0;" (assignment_expression "local_60 = 0" identifier = number_literal) ;) (expression_statement "uVar3 = (long)(int)uVar2 >> 0x3f;" (assignment_expression "uVar3 = (long)(int)uVar2 >> 0x3f" identifier = (binary_expression "(long)(int)uVar2 >> 0x3f" (cast_expression "(long)(int)uVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ;) (expression_statement "lVar5 = ((long)(int)uVar2 ^ uVar3) - uVar3;" (assignment_expression "lVar5 = ((long)(int)uVar2 ^ uVar3) - uVar3" identifier = (binary_expression "((long)(int)uVar2 ^ uVar3) - uVar3" (parenthesized_expression "((long)(int)uVar2 ^ uVar3)" ( (binary_expression "(long)(int)uVar2 ^ uVar3" (cast_expression "(long)(int)uVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ^ identifier) )) - identifier)) ;) (expression_statement "local_58 = (undefined4)lVar5;" (assignment_expression "local_58 = (undefined4)lVar5" identifier = (cast_expression "(undefined4)lVar5" ( (type_descriptor "undefined4" type_identifier) ) identifier)) ;) (expression_statement "uVar3 = lVar5 * 8;" (assignment_expression "uVar3 = lVar5 * 8" identifier = (binary_expression "lVar5 * 8" identifier * number_literal)) ;) (if_statement "if (uVar3 < 0x7f01) {\n    local_50 = -(uVar3 + 0x17 & 0xfffffffffffffff0);\n    puVar4 = auStack_68 + local_50;\n    local_50 = (long)&local_60 + local_50;\n  }\n  else {\n    local_50 = __gmp_tmp_reentrant_alloc(&local_60);\n  }" if (parenthesized_expression "(uVar3 < 0x7f01)" ( (binary_expression "uVar3 < 0x7f01" identifier < number_literal) )) (compound_statement "{\n    local_50 = -(uVar3 + 0x17 & 0xfffffffffffffff0);\n    puVar4 = auStack_68 + local_50;\n    local_50 = (long)&local_60 + local_50;\n  }" { (expression_statement "local_50 = -(uVar3 + 0x17 & 0xfffffffffffffff0);" (assignment_expression "local_50 = -(uVar3 + 0x17 & 0xfffffffffffffff0)" identifier = (unary_expression "-(uVar3 + 0x17 & 0xfffffffffffffff0)" - (parenthesized_expression "(uVar3 + 0x17 & 0xfffffffffffffff0)" ( (binary_expression "uVar3 + 0x17 & 0xfffffffffffffff0" (binary_expression "uVar3 + 0x17" identifier + number_literal) & number_literal) )))) ;) (expression_statement "puVar4 = auStack_68 + local_50;" (assignment_expression "puVar4 = auStack_68 + local_50" identifier = (binary_expression "auStack_68 + local_50" identifier + identifier)) ;) (expression_statement "local_50 = (long)&local_60 + local_50;" (assignment_expression "local_50 = (long)&local_60 + local_50" identifier = (binary_expression "(long)&local_60 + local_50" (cast_expression "(long)&local_60" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&local_60" & identifier)) + identifier)) ;) }) (else_clause "else {\n    local_50 = __gmp_tmp_reentrant_alloc(&local_60);\n  }" else (compound_statement "{\n    local_50 = __gmp_tmp_reentrant_alloc(&local_60);\n  }" { (expression_statement "local_50 = __gmp_tmp_reentrant_alloc(&local_60);" (assignment_expression "local_50 = __gmp_tmp_reentrant_alloc(&local_60)" identifier = (call_expression "__gmp_tmp_reentrant_alloc(&local_60)" identifier (argument_list "(&local_60)" ( (pointer_expression "&local_60" & identifier) )))) ;) }))) (expression_statement "*(undefined8 *)(puVar4 + -8) = 0x117fe5;" (assignment_expression "*(undefined8 *)(puVar4 + -8) = 0x117fe5" (pointer_expression "*(undefined8 *)(puVar4 + -8)" * (cast_expression "(undefined8 *)(puVar4 + -8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -8)" ( (binary_expression "puVar4 + -8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "__gmpz_tdiv_qr(param_1,&local_58,param_2,param_3);" (call_expression "__gmpz_tdiv_qr(param_1,&local_58,param_2,param_3)" identifier (argument_list "(param_1,&local_58,param_2,param_3)" ( identifier , (pointer_expression "&local_58" & identifier) , identifier , identifier ))) ;) (if_statement "if (((int)(uVar1 ^ uVar2) < 0) && (local_54 != 0)) {\n    *(undefined8 *)(puVar4 + -8) = 0x118032;\n    __gmpz_sub_ui(param_1,param_1,1);\n  }" if (parenthesized_expression "(((int)(uVar1 ^ uVar2) < 0) && (local_54 != 0))" ( (binary_expression "((int)(uVar1 ^ uVar2) < 0) && (local_54 != 0)" (parenthesized_expression "((int)(uVar1 ^ uVar2) < 0)" ( (binary_expression "(int)(uVar1 ^ uVar2) < 0" (cast_expression "(int)(uVar1 ^ uVar2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar1 ^ uVar2)" ( (binary_expression "uVar1 ^ uVar2" identifier ^ identifier) ))) < number_literal) )) && (parenthesized_expression "(local_54 != 0)" ( (binary_expression "local_54 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    *(undefined8 *)(puVar4 + -8) = 0x118032;\n    __gmpz_sub_ui(param_1,param_1,1);\n  }" { (expression_statement "*(undefined8 *)(puVar4 + -8) = 0x118032;" (assignment_expression "*(undefined8 *)(puVar4 + -8) = 0x118032" (pointer_expression "*(undefined8 *)(puVar4 + -8)" * (cast_expression "(undefined8 *)(puVar4 + -8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -8)" ( (binary_expression "puVar4 + -8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "__gmpz_sub_ui(param_1,param_1,1);" (call_expression "__gmpz_sub_ui(param_1,param_1,1)" identifier (argument_list "(param_1,param_1,1)" ( identifier , identifier , number_literal ))) ;) })) (if_statement "if (local_60 != 0) {\n    *(undefined8 *)(puVar4 + -8) = 0x118039;\n    __gmp_tmp_reentrant_free();\n  }" if (parenthesized_expression "(local_60 != 0)" ( (binary_expression "local_60 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined8 *)(puVar4 + -8) = 0x118039;\n    __gmp_tmp_reentrant_free();\n  }" { (expression_statement "*(undefined8 *)(puVar4 + -8) = 0x118039;" (assignment_expression "*(undefined8 *)(puVar4 + -8) = 0x118039" (pointer_expression "*(undefined8 *)(puVar4 + -8)" * (cast_expression "(undefined8 *)(puVar4 + -8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -8)" ( (binary_expression "puVar4 + -8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "__gmp_tmp_reentrant_free();" (call_expression "__gmp_tmp_reentrant_free()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }" if (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "*(code **)(puVar4 + -8) = __gmpz_fdiv_ui;" (assignment_expression "*(code **)(puVar4 + -8) = __gmpz_fdiv_ui" (pointer_expression "*(code **)(puVar4 + -8)" * (cast_expression "(code **)(puVar4 + -8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + -8)" ( (binary_expression "puVar4 + -8" identifier + number_literal) )))) = identifier) ;) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (cast_expression ( (type_descriptor TYPE) ) IDENT)) >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (cast_expression ( (type_descriptor TYPE) ) IDENT)) ^ IDENT) )) - IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (unary_expression - (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) & LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (pointer_expression & IDENT)) + IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT ^ IDENT) ))) < LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void __gmpz_fdiv_q(undefined8 param_1,long param_2,long param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  ulong uVar3;\n  undefined1 *puVar4;\n  long lVar5;\n  long in_FS_OFFSET;\n  undefined1 auStack_68 [8];\n  long local_60;\n  undefined4 local_58;\n  int local_54;\n  long local_50;\n  long local_40;\n  \n  puVar4 = auStack_68;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = *(uint *)(param_2 + 4);\n  uVar2 = *(uint *)(param_3 + 4);\n  local_60 = 0;\n  uVar3 = (long)(int)uVar2 >> 0x3f;\n  lVar5 = ((long)(int)uVar2 ^ uVar3) - uVar3;\n  local_58 = (undefined4)lVar5;\n  uVar3 = lVar5 * 8;\n  if (uVar3 < 0x7f01) {\n    local_50 = -(uVar3 + 0x17 & 0xfffffffffffffff0);\n    puVar4 = auStack_68 + local_50;\n    local_50 = (long)&local_60 + local_50;\n  }\n  else {\n    local_50 = __gmp_tmp_reentrant_alloc(&local_60);\n  }\n  *(undefined8 *)(puVar4 + -8) = 0x117fe5;\n  __gmpz_tdiv_qr(param_1,&local_58,param_2,param_3);\n  if (((int)(uVar1 ^ uVar2) < 0) && (local_54 != 0)) {\n    *(undefined8 *)(puVar4 + -8) = 0x118032;\n    __gmpz_sub_ui(param_1,param_1,1);\n  }\n  if (local_60 != 0) {\n    *(undefined8 *)(puVar4 + -8) = 0x118039;\n    __gmp_tmp_reentrant_free();\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  *(code **)(puVar4 + -8) = __gmpz_fdiv_ui;\n  __stack_chk_fail();\n}" (primitive_type "void") (function_declarator "__gmpz_fdiv_q(undefined8 param_1,long param_2,long param_3)" (identifier "__gmpz_fdiv_q") (parameter_list "(undefined8 param_1,long param_2,long param_3)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  ulong uVar3;\n  undefined1 *puVar4;\n  long lVar5;\n  long in_FS_OFFSET;\n  undefined1 auStack_68 [8];\n  long local_60;\n  undefined4 local_58;\n  int local_54;\n  long local_50;\n  long local_40;\n  \n  puVar4 = auStack_68;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = *(uint *)(param_2 + 4);\n  uVar2 = *(uint *)(param_3 + 4);\n  local_60 = 0;\n  uVar3 = (long)(int)uVar2 >> 0x3f;\n  lVar5 = ((long)(int)uVar2 ^ uVar3) - uVar3;\n  local_58 = (undefined4)lVar5;\n  uVar3 = lVar5 * 8;\n  if (uVar3 < 0x7f01) {\n    local_50 = -(uVar3 + 0x17 & 0xfffffffffffffff0);\n    puVar4 = auStack_68 + local_50;\n    local_50 = (long)&local_60 + local_50;\n  }\n  else {\n    local_50 = __gmp_tmp_reentrant_alloc(&local_60);\n  }\n  *(undefined8 *)(puVar4 + -8) = 0x117fe5;\n  __gmpz_tdiv_qr(param_1,&local_58,param_2,param_3);\n  if (((int)(uVar1 ^ uVar2) < 0) && (local_54 != 0)) {\n    *(undefined8 *)(puVar4 + -8) = 0x118032;\n    __gmpz_sub_ui(param_1,param_1,1);\n  }\n  if (local_60 != 0) {\n    *(undefined8 *)(puVar4 + -8) = 0x118039;\n    __gmp_tmp_reentrant_free();\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  *(code **)(puVar4 + -8) = __gmpz_fdiv_ui;\n  __stack_chk_fail();\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "ulong uVar3;" (type_identifier "ulong") (identifier "uVar3") (; ";")) (declaration "undefined1 *puVar4;" (type_identifier "undefined1") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "long lVar5;" (sized_type_specifier "long" (long "long")) (identifier "lVar5") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined1 auStack_68 [8];" (type_identifier "undefined1") (array_declarator "auStack_68 [8]" (identifier "auStack_68") ([ "[") (number_literal "8") (] "]")) (; ";")) (declaration "long local_60;" (sized_type_specifier "long" (long "long")) (identifier "local_60") (; ";")) (declaration "undefined4 local_58;" (type_identifier "undefined4") (identifier "local_58") (; ";")) (declaration "int local_54;" (primitive_type "int") (identifier "local_54") (; ";")) (declaration "long local_50;" (sized_type_specifier "long" (long "long")) (identifier "local_50") (; ";")) (declaration "long local_40;" (sized_type_specifier "long" (long "long")) (identifier "local_40") (; ";")) (expression_statement "puVar4 = auStack_68;" (assignment_expression "puVar4 = auStack_68" (identifier "puVar4") (= "=") (identifier "auStack_68")) (; ";")) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "uVar1 = *(uint *)(param_2 + 4);" (assignment_expression "uVar1 = *(uint *)(param_2 + 4)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(param_2 + 4)" (* "*") (cast_expression "(uint *)(param_2 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "uVar2 = *(uint *)(param_3 + 4);" (assignment_expression "uVar2 = *(uint *)(param_3 + 4)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(param_3 + 4)" (* "*") (cast_expression "(uint *)(param_3 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "local_60 = 0;" (assignment_expression "local_60 = 0" (identifier "local_60") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = (long)(int)uVar2 >> 0x3f;" (assignment_expression "uVar3 = (long)(int)uVar2 >> 0x3f" (identifier "uVar3") (= "=") (binary_expression "(long)(int)uVar2 >> 0x3f" (cast_expression "(long)(int)uVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2"))) (>> ">>") (number_literal "0x3f"))) (; ";")) (expression_statement "lVar5 = ((long)(int)uVar2 ^ uVar3) - uVar3;" (assignment_expression "lVar5 = ((long)(int)uVar2 ^ uVar3) - uVar3" (identifier "lVar5") (= "=") (binary_expression "((long)(int)uVar2 ^ uVar3) - uVar3" (parenthesized_expression "((long)(int)uVar2 ^ uVar3)" (( "(") (binary_expression "(long)(int)uVar2 ^ uVar3" (cast_expression "(long)(int)uVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2"))) (^ "^") (identifier "uVar3")) () ")")) (- "-") (identifier "uVar3"))) (; ";")) (expression_statement "local_58 = (undefined4)lVar5;" (assignment_expression "local_58 = (undefined4)lVar5" (identifier "local_58") (= "=") (cast_expression "(undefined4)lVar5" (( "(") (type_descriptor "undefined4" (type_identifier "undefined4")) () ")") (identifier "lVar5"))) (; ";")) (expression_statement "uVar3 = lVar5 * 8;" (assignment_expression "uVar3 = lVar5 * 8" (identifier "uVar3") (= "=") (binary_expression "lVar5 * 8" (identifier "lVar5") (* "*") (number_literal "8"))) (; ";")) (if_statement "if (uVar3 < 0x7f01) {\n    local_50 = -(uVar3 + 0x17 & 0xfffffffffffffff0);\n    puVar4 = auStack_68 + local_50;\n    local_50 = (long)&local_60 + local_50;\n  }\n  else {\n    local_50 = __gmp_tmp_reentrant_alloc(&local_60);\n  }" (if "if") (parenthesized_expression "(uVar3 < 0x7f01)" (( "(") (binary_expression "uVar3 < 0x7f01" (identifier "uVar3") (< "<") (number_literal "0x7f01")) () ")")) (compound_statement "{\n    local_50 = -(uVar3 + 0x17 & 0xfffffffffffffff0);\n    puVar4 = auStack_68 + local_50;\n    local_50 = (long)&local_60 + local_50;\n  }" ({ "{") (expression_statement "local_50 = -(uVar3 + 0x17 & 0xfffffffffffffff0);" (assignment_expression "local_50 = -(uVar3 + 0x17 & 0xfffffffffffffff0)" (identifier "local_50") (= "=") (unary_expression "-(uVar3 + 0x17 & 0xfffffffffffffff0)" (- "-") (parenthesized_expression "(uVar3 + 0x17 & 0xfffffffffffffff0)" (( "(") (binary_expression "uVar3 + 0x17 & 0xfffffffffffffff0" (binary_expression "uVar3 + 0x17" (identifier "uVar3") (+ "+") (number_literal "0x17")) (& "&") (number_literal "0xfffffffffffffff0")) () ")")))) (; ";")) (expression_statement "puVar4 = auStack_68 + local_50;" (assignment_expression "puVar4 = auStack_68 + local_50" (identifier "puVar4") (= "=") (binary_expression "auStack_68 + local_50" (identifier "auStack_68") (+ "+") (identifier "local_50"))) (; ";")) (expression_statement "local_50 = (long)&local_60 + local_50;" (assignment_expression "local_50 = (long)&local_60 + local_50" (identifier "local_50") (= "=") (binary_expression "(long)&local_60 + local_50" (cast_expression "(long)&local_60" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "&local_60" (& "&") (identifier "local_60"))) (+ "+") (identifier "local_50"))) (; ";")) (} "}")) (else_clause "else {\n    local_50 = __gmp_tmp_reentrant_alloc(&local_60);\n  }" (else "else") (compound_statement "{\n    local_50 = __gmp_tmp_reentrant_alloc(&local_60);\n  }" ({ "{") (expression_statement "local_50 = __gmp_tmp_reentrant_alloc(&local_60);" (assignment_expression "local_50 = __gmp_tmp_reentrant_alloc(&local_60)" (identifier "local_50") (= "=") (call_expression "__gmp_tmp_reentrant_alloc(&local_60)" (identifier "__gmp_tmp_reentrant_alloc") (argument_list "(&local_60)" (( "(") (pointer_expression "&local_60" (& "&") (identifier "local_60")) () ")")))) (; ";")) (} "}")))) (expression_statement "*(undefined8 *)(puVar4 + -8) = 0x117fe5;" (assignment_expression "*(undefined8 *)(puVar4 + -8) = 0x117fe5" (pointer_expression "*(undefined8 *)(puVar4 + -8)" (* "*") (cast_expression "(undefined8 *)(puVar4 + -8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + -8)" (( "(") (binary_expression "puVar4 + -8" (identifier "puVar4") (+ "+") (number_literal "-8")) () ")")))) (= "=") (number_literal "0x117fe5")) (; ";")) (expression_statement "__gmpz_tdiv_qr(param_1,&local_58,param_2,param_3);" (call_expression "__gmpz_tdiv_qr(param_1,&local_58,param_2,param_3)" (identifier "__gmpz_tdiv_qr") (argument_list "(param_1,&local_58,param_2,param_3)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_58" (& "&") (identifier "local_58")) (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (if_statement "if (((int)(uVar1 ^ uVar2) < 0) && (local_54 != 0)) {\n    *(undefined8 *)(puVar4 + -8) = 0x118032;\n    __gmpz_sub_ui(param_1,param_1,1);\n  }" (if "if") (parenthesized_expression "(((int)(uVar1 ^ uVar2) < 0) && (local_54 != 0))" (( "(") (binary_expression "((int)(uVar1 ^ uVar2) < 0) && (local_54 != 0)" (parenthesized_expression "((int)(uVar1 ^ uVar2) < 0)" (( "(") (binary_expression "(int)(uVar1 ^ uVar2) < 0" (cast_expression "(int)(uVar1 ^ uVar2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uVar1 ^ uVar2)" (( "(") (binary_expression "uVar1 ^ uVar2" (identifier "uVar1") (^ "^") (identifier "uVar2")) () ")"))) (< "<") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(local_54 != 0)" (( "(") (binary_expression "local_54 != 0" (identifier "local_54") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    *(undefined8 *)(puVar4 + -8) = 0x118032;\n    __gmpz_sub_ui(param_1,param_1,1);\n  }" ({ "{") (expression_statement "*(undefined8 *)(puVar4 + -8) = 0x118032;" (assignment_expression "*(undefined8 *)(puVar4 + -8) = 0x118032" (pointer_expression "*(undefined8 *)(puVar4 + -8)" (* "*") (cast_expression "(undefined8 *)(puVar4 + -8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + -8)" (( "(") (binary_expression "puVar4 + -8" (identifier "puVar4") (+ "+") (number_literal "-8")) () ")")))) (= "=") (number_literal "0x118032")) (; ";")) (expression_statement "__gmpz_sub_ui(param_1,param_1,1);" (call_expression "__gmpz_sub_ui(param_1,param_1,1)" (identifier "__gmpz_sub_ui") (argument_list "(param_1,param_1,1)" (( "(") (identifier "param_1") (, ",") (identifier "param_1") (, ",") (number_literal "1") () ")"))) (; ";")) (} "}"))) (if_statement "if (local_60 != 0) {\n    *(undefined8 *)(puVar4 + -8) = 0x118039;\n    __gmp_tmp_reentrant_free();\n  }" (if "if") (parenthesized_expression "(local_60 != 0)" (( "(") (binary_expression "local_60 != 0" (identifier "local_60") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined8 *)(puVar4 + -8) = 0x118039;\n    __gmp_tmp_reentrant_free();\n  }" ({ "{") (expression_statement "*(undefined8 *)(puVar4 + -8) = 0x118039;" (assignment_expression "*(undefined8 *)(puVar4 + -8) = 0x118039" (pointer_expression "*(undefined8 *)(puVar4 + -8)" (* "*") (cast_expression "(undefined8 *)(puVar4 + -8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + -8)" (( "(") (binary_expression "puVar4 + -8" (identifier "puVar4") (+ "+") (number_literal "-8")) () ")")))) (= "=") (number_literal "0x118039")) (; ";")) (expression_statement "__gmp_tmp_reentrant_free();" (call_expression "__gmp_tmp_reentrant_free()" (identifier "__gmp_tmp_reentrant_free") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (== "==") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(code **)(puVar4 + -8) = __gmpz_fdiv_ui;" (assignment_expression "*(code **)(puVar4 + -8) = __gmpz_fdiv_ui" (pointer_expression "*(code **)(puVar4 + -8)" (* "*") (cast_expression "(code **)(puVar4 + -8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar4 + -8)" (( "(") (binary_expression "puVar4 + -8" (identifier "puVar4") (+ "+") (number_literal "-8")) () ")")))) (= "=") (identifier "__gmpz_fdiv_ui")) (; ";")) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

void function_1(type_1 quot,type_2 dividend,type_2 divisor)

{
  type_3 var_9;
  type_3 var_10;
  long var_14;
  type_4 *mark;
  type_5 var_2;
  type_6 *var_7;
  long var_3;
  size_t var_4;
  long var_1;
  type_6 var_5 [8];
  type_4 *var_12;
  type_7 rem;
  
  var_7 = var_5;
  var_14 = *(long *)(var_1 + 0x28);
  var_9 = dividend->_mp_size;
  var_10 = divisor->_mp_size;
  var_12 = (type_4 *)0x0;
  var_2 = (long)(int)var_10 >> 0x3f;
  var_3 = ((long)(int)var_10 ^ var_2) - var_2;
  rem[0]._mp_alloc = (int)var_3;
  var_4 = var_3 * 8;
  if (var_4 < 0x7f01) {
    var_3 = -(var_4 + 0x17 & 0xfffffffffffffff0);
    var_7 = var_5 + var_3;
    rem[0]._mp_d = (type_8 *)((long)rem + var_3 + -8);
  }
  else {
    rem[0]._mp_d = (type_8 *)var_6(&var_12,var_4);
  }
  *(type_9 *)(var_7 + -8) = 0x117fe5;
  var_8(quot,rem,dividend,divisor);
  if (((int)(var_9 ^ var_10) < 0) && (rem[0]._mp_size != 0)) {
    *(type_9 *)(var_7 + -8) = 0x118032;
    var_11(quot,quot,1);
  }
  mark = var_12;
  if (var_12 != (type_4 *)0x0) {
    *(type_9 *)(var_7 + -8) = 0x118039;
    var_13(mark);
  }
  if (var_14 == *(long *)(var_1 + 0x28)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  *(type_10 **)(var_7 + -8) = __gmpz_fdiv_ui;
  var_15();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) 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: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (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))))))) (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))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))) right: (identifier))) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (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: (unary_expression argument: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (pointer_expression argument: (identifier))) right: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))))))) (expression_statement (assignment_expression left: (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))))) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (identifier) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (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))))) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (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))))) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (if_statement condition: (parenthesized_expression (binary_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))))))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

void MASKED(undefined8 param_1,long param_2,long param_3)

{
  uint uVar1;
  uint uVar2;
  ulong uVar3;
  undefined1 *puVar4;
  long lVar5;
  long in_FS_OFFSET;
  undefined1 auStack_68 [8];
  long local_60;
  undefined4 local_58;
  int local_54;
  long local_50;
  long local_40;
  
  puVar4 = auStack_68;
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  uVar1 = *(uint *)(param_2 + 4);
  uVar2 = *(uint *)(param_3 + 4);
  local_60 = 0;
  uVar3 = (long)(int)uVar2 >> 0x3f;
  lVar5 = ((long)(int)uVar2 ^ uVar3) - uVar3;
  local_58 = (undefined4)lVar5;
  uVar3 = lVar5 * 8;
  if (uVar3 < 0x7f01) {
    local_50 = -(uVar3 + 0x17 & 0xfffffffffffffff0);
    puVar4 = auStack_68 + local_50;
    local_50 = (long)&local_60 + local_50;
  }
  else {
    local_50 = __gmp_tmp_reentrant_alloc(&local_60);
  }
  *(undefined8 *)(puVar4 + -8) = 0x117fe5;
  __gmpz_tdiv_qr(param_1,&local_58,param_2,param_3);
  if (((int)(uVar1 ^ uVar2) < 0) && (local_54 != 0)) {
    *(undefined8 *)(puVar4 + -8) = 0x118032;
    __gmpz_sub_ui(param_1,param_1,1);
  }
  if (local_60 != 0) {
    *(undefined8 *)(puVar4 + -8) = 0x118039;
    __gmp_tmp_reentrant_free();
  }
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  *(code **)(puVar4 + -8) = __gmpz_fdiv_ui;
  __stack_chk_fail();
}

