
void __gmpz_mod(mpz_ptr rem,mpz_srcptr dividend,mpz_srcptr divisor)

{
  ulong size;
  long lVar1;
  mp_limb_t *pmVar2;
  long lVar3;
  tmp_reentrant_t *mark;
  uint uVar4;
  mp_limb_t *pmVar5;
  undefined1 *puVar6;
  int iVar7;
  long in_FS_OFFSET;
  undefined1 auStack_68 [8];
  mpz_srcptr local_60 [2];
  tmp_reentrant_t *__tmp_marker;
  mpz_t temp_divisor;
  
  puVar6 = auStack_68;
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  __tmp_marker = (tmp_reentrant_t *)0x0;
  uVar4 = divisor->_mp_size >> 0x1f;
  iVar7 = (divisor->_mp_size ^ uVar4) - uVar4;
  if (divisor == rem) {
    size = (long)iVar7 * 8;
    if (size < 0x7f01) {
      lVar3 = -(size + 0x17 & 0xfffffffffffffff0);
      puVar6 = auStack_68 + lVar3;
      pmVar5 = (mp_limb_t *)((long)local_60 + lVar3);
    }
    else {
      local_60[0] = divisor;
      pmVar5 = (mp_limb_t *)__gmp_tmp_reentrant_alloc(&__tmp_marker,size);
      divisor = local_60[0];
    }
    pmVar2 = divisor->_mp_d;
    temp_divisor[0]._mp_d = pmVar5;
    *(undefined8 *)(puVar6 + -8) = 0x11f188;
    __gmpn_copyi(pmVar5,pmVar2,(long)iVar7);
  }
  else {
    temp_divisor[0]._mp_d = divisor->_mp_d;
    puVar6 = auStack_68;
  }
  temp_divisor[0]._mp_size = iVar7;
  *(undefined8 *)(puVar6 + -8) = 0x11f11f;
  __gmpz_tdiv_r(rem,dividend,temp_divisor);
  mark = __tmp_marker;
  if (rem->_mp_size < 0) {
    *(undefined8 *)(puVar6 + -8) = 0x11f19e;
    __gmpz_add(rem,rem,temp_divisor);
    mark = __tmp_marker;
  }
  __tmp_marker = mark;
  if (mark != (tmp_reentrant_t *)0x0) {
    *(undefined8 *)(puVar6 + -8) = 0x11f1ac;
    __gmp_tmp_reentrant_free(mark);
  }
  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  *(undefined8 *)(puVar6 + -8) = 0x11f1cb;
  __stack_chk_fail();
}



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

{
  ulong uVar1;
  undefined8 uVar2;
  uint uVar3;
  long lVar4;
  undefined1 *puVar5;
  int iVar6;
  long in_FS_OFFSET;
  undefined1 auStack_68 [8];
  long local_60 [2];
  long local_50;
  undefined1 local_48 [4];
  int local_44;
  long local_40;
  long local_30;
  
  puVar5 = auStack_68;
  local_30 = *(long *)(in_FS_OFFSET + 0x28);
  local_50 = 0;
  uVar3 = *(int *)(param_3 + 4) >> 0x1f;
  iVar6 = (*(uint *)(param_3 + 4) ^ uVar3) - uVar3;
  if (param_3 == param_1) {
    uVar1 = (long)iVar6 * 8;
    if (uVar1 < 0x7f01) {
      lVar4 = -(uVar1 + 0x17 & 0xfffffffffffffff0);
      puVar5 = auStack_68 + lVar4;
      lVar4 = (long)local_60 + lVar4;
    }
    else {
      local_60[0] = param_3;
      lVar4 = __gmp_tmp_reentrant_alloc(&local_50);
      param_3 = local_60[0];
    }
    uVar2 = *(undefined8 *)(param_3 + 8);
    local_40 = lVar4;
    *(undefined8 *)(puVar5 + -8) = 0x11f188;
    __gmpn_copyi(lVar4,uVar2,(long)iVar6);
  }
  else {
    local_40 = *(long *)(param_3 + 8);
    puVar5 = auStack_68;
  }
  local_44 = iVar6;
  *(undefined8 *)(puVar5 + -8) = 0x11f11f;
  __gmpz_tdiv_r(param_1,param_2,local_48);
  if (*(int *)(param_1 + 4) < 0) {
    *(undefined8 *)(puVar5 + -8) = 0x11f19e;
    __gmpz_add(param_1,param_1,local_48);
  }
  if (local_50 != 0) {
    *(undefined8 *)(puVar5 + -8) = 0x11f1ac;
    __gmp_tmp_reentrant_free();
  }
  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  *(undefined8 *)(puVar5 + -8) = 0x11f1cb;
  __stack_chk_fail();
}


PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH R13
MOV R13,RSI
PUSH R12
PUSH RBX
MOV RBX,RDI
SUB RSP,0x40
MOV R12D,dword ptr [RDX + 0x4]
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x28],RAX
XOR EAX,EAX
MOV EAX,dword ptr [RDX + 0x4]
MOV qword ptr [RBP + -0x48],0x0
SAR EAX,0x1f
XOR R12D,EAX
SUB R12D,EAX
CMP RDX,RDI
JZ 0x0011f150
MOV RAX,qword ptr [RDX + 0x8]
MOV qword ptr [RBP + -0x38],RAX
MOV dword ptr [RBP + -0x3c],R12D
LEA R12,[RBP + -0x40]
MOV RSI,R13
MOV RDI,RBX
MOV RDX,R12
CALL 0x0010bba0
MOV EAX,dword ptr [RBX + 0x4]
TEST EAX,EAX
JS 0x0011f190
MOV RDI,qword ptr [RBP + -0x48]
TEST RDI,RDI
JNZ 0x0011f1a7
MOV RAX,qword ptr [RBP + -0x28]
XOR RAX,qword ptr FS:[0x28]
JNZ 0x0011f1c6
LEA RSP,[RBP + -0x20]
POP RBX
POP R12
POP R13
POP R14
POP RBP
RET
MOVSXD R14,R12D
LEA RSI,[R14*0x8]
CMP RSI,0x7f00
JA 0x0011f1b0
ADD RSI,0x17
AND RSI,-0x10
SUB RSP,RSI
LEA RDI,[RSP + 0xf]
AND RDI,-0x10
MOV RSI,qword ptr [RDX + 0x8]
MOV RDX,R14
MOV qword ptr [RBP + -0x38],RDI
CALL 0x0010bb80
JMP 0x0011f109
MOV RDI,RBX
MOV RDX,R12
MOV RSI,RBX
CALL 0x0010c5c8
MOV RDI,qword ptr [RBP + -0x48]
TEST RDI,RDI
JZ 0x0011f12f
CALL 0x0010b040
JMP 0x0011f12f
LEA RDI,[RBP + -0x48]
MOV qword ptr [RBP + -0x58],RDX
CALL 0x0010bcb0
MOV RDX,qword ptr [RBP + -0x58]
MOV RDI,RAX
JMP 0x0011f178
CALL 0x0010b530
(translation_unit "void __gmpz_mod(long param_1,undefined8 param_2,long param_3)\n\n{\n  ulong uVar1;\n  undefined8 uVar2;\n  uint uVar3;\n  long lVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  long in_FS_OFFSET;\n  undefined1 auStack_68 [8];\n  long local_60 [2];\n  long local_50;\n  undefined1 local_48 [4];\n  int local_44;\n  long local_40;\n  long local_30;\n  \n  puVar5 = auStack_68;\n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_50 = 0;\n  uVar3 = *(int *)(param_3 + 4) >> 0x1f;\n  iVar6 = (*(uint *)(param_3 + 4) ^ uVar3) - uVar3;\n  if (param_3 == param_1) {\n    uVar1 = (long)iVar6 * 8;\n    if (uVar1 < 0x7f01) {\n      lVar4 = -(uVar1 + 0x17 & 0xfffffffffffffff0);\n      puVar5 = auStack_68 + lVar4;\n      lVar4 = (long)local_60 + lVar4;\n    }\n    else {\n      local_60[0] = param_3;\n      lVar4 = __gmp_tmp_reentrant_alloc(&local_50);\n      param_3 = local_60[0];\n    }\n    uVar2 = *(undefined8 *)(param_3 + 8);\n    local_40 = lVar4;\n    *(undefined8 *)(puVar5 + -8) = 0x11f188;\n    __gmpn_copyi(lVar4,uVar2,(long)iVar6);\n  }\n  else {\n    local_40 = *(long *)(param_3 + 8);\n    puVar5 = auStack_68;\n  }\n  local_44 = iVar6;\n  *(undefined8 *)(puVar5 + -8) = 0x11f11f;\n  __gmpz_tdiv_r(param_1,param_2,local_48);\n  if (*(int *)(param_1 + 4) < 0) {\n    *(undefined8 *)(puVar5 + -8) = 0x11f19e;\n    __gmpz_add(param_1,param_1,local_48);\n  }\n  if (local_50 != 0) {\n    *(undefined8 *)(puVar5 + -8) = 0x11f1ac;\n    __gmp_tmp_reentrant_free();\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(undefined8 *)(puVar5 + -8) = 0x11f1cb;\n  __stack_chk_fail();\n}\n\n" (function_definition "void __gmpz_mod(long param_1,undefined8 param_2,long param_3)\n\n{\n  ulong uVar1;\n  undefined8 uVar2;\n  uint uVar3;\n  long lVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  long in_FS_OFFSET;\n  undefined1 auStack_68 [8];\n  long local_60 [2];\n  long local_50;\n  undefined1 local_48 [4];\n  int local_44;\n  long local_40;\n  long local_30;\n  \n  puVar5 = auStack_68;\n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_50 = 0;\n  uVar3 = *(int *)(param_3 + 4) >> 0x1f;\n  iVar6 = (*(uint *)(param_3 + 4) ^ uVar3) - uVar3;\n  if (param_3 == param_1) {\n    uVar1 = (long)iVar6 * 8;\n    if (uVar1 < 0x7f01) {\n      lVar4 = -(uVar1 + 0x17 & 0xfffffffffffffff0);\n      puVar5 = auStack_68 + lVar4;\n      lVar4 = (long)local_60 + lVar4;\n    }\n    else {\n      local_60[0] = param_3;\n      lVar4 = __gmp_tmp_reentrant_alloc(&local_50);\n      param_3 = local_60[0];\n    }\n    uVar2 = *(undefined8 *)(param_3 + 8);\n    local_40 = lVar4;\n    *(undefined8 *)(puVar5 + -8) = 0x11f188;\n    __gmpn_copyi(lVar4,uVar2,(long)iVar6);\n  }\n  else {\n    local_40 = *(long *)(param_3 + 8);\n    puVar5 = auStack_68;\n  }\n  local_44 = iVar6;\n  *(undefined8 *)(puVar5 + -8) = 0x11f11f;\n  __gmpz_tdiv_r(param_1,param_2,local_48);\n  if (*(int *)(param_1 + 4) < 0) {\n    *(undefined8 *)(puVar5 + -8) = 0x11f19e;\n    __gmpz_add(param_1,param_1,local_48);\n  }\n  if (local_50 != 0) {\n    *(undefined8 *)(puVar5 + -8) = 0x11f1ac;\n    __gmp_tmp_reentrant_free();\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(undefined8 *)(puVar5 + -8) = 0x11f1cb;\n  __stack_chk_fail();\n}" primitive_type (function_declarator "__gmpz_mod(long param_1,undefined8 param_2,long param_3)" identifier (parameter_list "(long param_1,undefined8 param_2,long param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  ulong uVar1;\n  undefined8 uVar2;\n  uint uVar3;\n  long lVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  long in_FS_OFFSET;\n  undefined1 auStack_68 [8];\n  long local_60 [2];\n  long local_50;\n  undefined1 local_48 [4];\n  int local_44;\n  long local_40;\n  long local_30;\n  \n  puVar5 = auStack_68;\n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_50 = 0;\n  uVar3 = *(int *)(param_3 + 4) >> 0x1f;\n  iVar6 = (*(uint *)(param_3 + 4) ^ uVar3) - uVar3;\n  if (param_3 == param_1) {\n    uVar1 = (long)iVar6 * 8;\n    if (uVar1 < 0x7f01) {\n      lVar4 = -(uVar1 + 0x17 & 0xfffffffffffffff0);\n      puVar5 = auStack_68 + lVar4;\n      lVar4 = (long)local_60 + lVar4;\n    }\n    else {\n      local_60[0] = param_3;\n      lVar4 = __gmp_tmp_reentrant_alloc(&local_50);\n      param_3 = local_60[0];\n    }\n    uVar2 = *(undefined8 *)(param_3 + 8);\n    local_40 = lVar4;\n    *(undefined8 *)(puVar5 + -8) = 0x11f188;\n    __gmpn_copyi(lVar4,uVar2,(long)iVar6);\n  }\n  else {\n    local_40 = *(long *)(param_3 + 8);\n    puVar5 = auStack_68;\n  }\n  local_44 = iVar6;\n  *(undefined8 *)(puVar5 + -8) = 0x11f11f;\n  __gmpz_tdiv_r(param_1,param_2,local_48);\n  if (*(int *)(param_1 + 4) < 0) {\n    *(undefined8 *)(puVar5 + -8) = 0x11f19e;\n    __gmpz_add(param_1,param_1,local_48);\n  }\n  if (local_50 != 0) {\n    *(undefined8 *)(puVar5 + -8) = 0x11f1ac;\n    __gmp_tmp_reentrant_free();\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(undefined8 *)(puVar5 + -8) = 0x11f1cb;\n  __stack_chk_fail();\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" 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 "long local_60 [2];" (sized_type_specifier "long" long) (array_declarator "local_60 [2]" identifier [ number_literal ]) ;) (declaration "long local_50;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 local_48 [4];" type_identifier (array_declarator "local_48 [4]" identifier [ number_literal ]) ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (declaration "long local_30;" (sized_type_specifier "long" long) identifier ;) (expression_statement "puVar5 = auStack_68;" (assignment_expression "puVar5 = auStack_68" identifier = identifier) ;) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(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 "local_50 = 0;" (assignment_expression "local_50 = 0" identifier = number_literal) ;) (expression_statement "uVar3 = *(int *)(param_3 + 4) >> 0x1f;" (assignment_expression "uVar3 = *(int *)(param_3 + 4) >> 0x1f" identifier = (binary_expression "*(int *)(param_3 + 4) >> 0x1f" (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) >> number_literal)) ;) (expression_statement "iVar6 = (*(uint *)(param_3 + 4) ^ uVar3) - uVar3;" (assignment_expression "iVar6 = (*(uint *)(param_3 + 4) ^ uVar3) - uVar3" identifier = (binary_expression "(*(uint *)(param_3 + 4) ^ uVar3) - uVar3" (parenthesized_expression "(*(uint *)(param_3 + 4) ^ uVar3)" ( (binary_expression "*(uint *)(param_3 + 4) ^ uVar3" (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) )))) ^ identifier) )) - identifier)) ;) (if_statement "if (param_3 == param_1) {\n    uVar1 = (long)iVar6 * 8;\n    if (uVar1 < 0x7f01) {\n      lVar4 = -(uVar1 + 0x17 & 0xfffffffffffffff0);\n      puVar5 = auStack_68 + lVar4;\n      lVar4 = (long)local_60 + lVar4;\n    }\n    else {\n      local_60[0] = param_3;\n      lVar4 = __gmp_tmp_reentrant_alloc(&local_50);\n      param_3 = local_60[0];\n    }\n    uVar2 = *(undefined8 *)(param_3 + 8);\n    local_40 = lVar4;\n    *(undefined8 *)(puVar5 + -8) = 0x11f188;\n    __gmpn_copyi(lVar4,uVar2,(long)iVar6);\n  }\n  else {\n    local_40 = *(long *)(param_3 + 8);\n    puVar5 = auStack_68;\n  }" if (parenthesized_expression "(param_3 == param_1)" ( (binary_expression "param_3 == param_1" identifier == identifier) )) (compound_statement "{\n    uVar1 = (long)iVar6 * 8;\n    if (uVar1 < 0x7f01) {\n      lVar4 = -(uVar1 + 0x17 & 0xfffffffffffffff0);\n      puVar5 = auStack_68 + lVar4;\n      lVar4 = (long)local_60 + lVar4;\n    }\n    else {\n      local_60[0] = param_3;\n      lVar4 = __gmp_tmp_reentrant_alloc(&local_50);\n      param_3 = local_60[0];\n    }\n    uVar2 = *(undefined8 *)(param_3 + 8);\n    local_40 = lVar4;\n    *(undefined8 *)(puVar5 + -8) = 0x11f188;\n    __gmpn_copyi(lVar4,uVar2,(long)iVar6);\n  }" { (expression_statement "uVar1 = (long)iVar6 * 8;" (assignment_expression "uVar1 = (long)iVar6 * 8" identifier = (binary_expression "(long)iVar6 * 8" (cast_expression "(long)iVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) ;) (if_statement "if (uVar1 < 0x7f01) {\n      lVar4 = -(uVar1 + 0x17 & 0xfffffffffffffff0);\n      puVar5 = auStack_68 + lVar4;\n      lVar4 = (long)local_60 + lVar4;\n    }\n    else {\n      local_60[0] = param_3;\n      lVar4 = __gmp_tmp_reentrant_alloc(&local_50);\n      param_3 = local_60[0];\n    }" if (parenthesized_expression "(uVar1 < 0x7f01)" ( (binary_expression "uVar1 < 0x7f01" identifier < number_literal) )) (compound_statement "{\n      lVar4 = -(uVar1 + 0x17 & 0xfffffffffffffff0);\n      puVar5 = auStack_68 + lVar4;\n      lVar4 = (long)local_60 + lVar4;\n    }" { (expression_statement "lVar4 = -(uVar1 + 0x17 & 0xfffffffffffffff0);" (assignment_expression "lVar4 = -(uVar1 + 0x17 & 0xfffffffffffffff0)" identifier = (unary_expression "-(uVar1 + 0x17 & 0xfffffffffffffff0)" - (parenthesized_expression "(uVar1 + 0x17 & 0xfffffffffffffff0)" ( (binary_expression "uVar1 + 0x17 & 0xfffffffffffffff0" (binary_expression "uVar1 + 0x17" identifier + number_literal) & number_literal) )))) ;) (expression_statement "puVar5 = auStack_68 + lVar4;" (assignment_expression "puVar5 = auStack_68 + lVar4" identifier = (binary_expression "auStack_68 + lVar4" identifier + identifier)) ;) (expression_statement "lVar4 = (long)local_60 + lVar4;" (assignment_expression "lVar4 = (long)local_60 + lVar4" identifier = (binary_expression "(long)local_60 + lVar4" (cast_expression "(long)local_60" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier)) ;) }) (else_clause "else {\n      local_60[0] = param_3;\n      lVar4 = __gmp_tmp_reentrant_alloc(&local_50);\n      param_3 = local_60[0];\n    }" else (compound_statement "{\n      local_60[0] = param_3;\n      lVar4 = __gmp_tmp_reentrant_alloc(&local_50);\n      param_3 = local_60[0];\n    }" { (expression_statement "local_60[0] = param_3;" (assignment_expression "local_60[0] = param_3" (subscript_expression "local_60[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "lVar4 = __gmp_tmp_reentrant_alloc(&local_50);" (assignment_expression "lVar4 = __gmp_tmp_reentrant_alloc(&local_50)" identifier = (call_expression "__gmp_tmp_reentrant_alloc(&local_50)" identifier (argument_list "(&local_50)" ( (pointer_expression "&local_50" & identifier) )))) ;) (expression_statement "param_3 = local_60[0];" (assignment_expression "param_3 = local_60[0]" identifier = (subscript_expression "local_60[0]" identifier [ number_literal ])) ;) }))) (expression_statement "uVar2 = *(undefined8 *)(param_3 + 8);" (assignment_expression "uVar2 = *(undefined8 *)(param_3 + 8)" identifier = (pointer_expression "*(undefined8 *)(param_3 + 8)" * (cast_expression "(undefined8 *)(param_3 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) ))))) ;) (expression_statement "local_40 = lVar4;" (assignment_expression "local_40 = lVar4" identifier = identifier) ;) (expression_statement "*(undefined8 *)(puVar5 + -8) = 0x11f188;" (assignment_expression "*(undefined8 *)(puVar5 + -8) = 0x11f188" (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 "__gmpn_copyi(lVar4,uVar2,(long)iVar6);" (call_expression "__gmpn_copyi(lVar4,uVar2,(long)iVar6)" identifier (argument_list "(lVar4,uVar2,(long)iVar6)" ( identifier , identifier , (cast_expression "(long)iVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) ))) ;) }) (else_clause "else {\n    local_40 = *(long *)(param_3 + 8);\n    puVar5 = auStack_68;\n  }" else (compound_statement "{\n    local_40 = *(long *)(param_3 + 8);\n    puVar5 = auStack_68;\n  }" { (expression_statement "local_40 = *(long *)(param_3 + 8);" (assignment_expression "local_40 = *(long *)(param_3 + 8)" identifier = (pointer_expression "*(long *)(param_3 + 8)" * (cast_expression "(long *)(param_3 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) ))))) ;) (expression_statement "puVar5 = auStack_68;" (assignment_expression "puVar5 = auStack_68" identifier = identifier) ;) }))) (expression_statement "local_44 = iVar6;" (assignment_expression "local_44 = iVar6" identifier = identifier) ;) (expression_statement "*(undefined8 *)(puVar5 + -8) = 0x11f11f;" (assignment_expression "*(undefined8 *)(puVar5 + -8) = 0x11f11f" (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_r(param_1,param_2,local_48);" (call_expression "__gmpz_tdiv_r(param_1,param_2,local_48)" identifier (argument_list "(param_1,param_2,local_48)" ( identifier , identifier , identifier ))) ;) (if_statement "if (*(int *)(param_1 + 4) < 0) {\n    *(undefined8 *)(puVar5 + -8) = 0x11f19e;\n    __gmpz_add(param_1,param_1,local_48);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 4) < 0)" ( (binary_expression "*(int *)(param_1 + 4) < 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n    *(undefined8 *)(puVar5 + -8) = 0x11f19e;\n    __gmpz_add(param_1,param_1,local_48);\n  }" { (expression_statement "*(undefined8 *)(puVar5 + -8) = 0x11f19e;" (assignment_expression "*(undefined8 *)(puVar5 + -8) = 0x11f19e" (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_add(param_1,param_1,local_48);" (call_expression "__gmpz_add(param_1,param_1,local_48)" identifier (argument_list "(param_1,param_1,local_48)" ( identifier , identifier , identifier ))) ;) })) (if_statement "if (local_50 != 0) {\n    *(undefined8 *)(puVar5 + -8) = 0x11f1ac;\n    __gmp_tmp_reentrant_free();\n  }" if (parenthesized_expression "(local_50 != 0)" ( (binary_expression "local_50 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined8 *)(puVar5 + -8) = 0x11f1ac;\n    __gmp_tmp_reentrant_free();\n  }" { (expression_statement "*(undefined8 *)(puVar5 + -8) = 0x11f1ac;" (assignment_expression "*(undefined8 *)(puVar5 + -8) = 0x11f1ac" (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();" (call_expression "__gmp_tmp_reentrant_free()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }" if (parenthesized_expression "(local_30 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_30 == *(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 "*(undefined8 *)(puVar5 + -8) = 0x11f1cb;" (assignment_expression "*(undefined8 *)(puVar5 + -8) = 0x11f1cb" (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 "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void __gmpz_mod(mpz_ptr rem,mpz_srcptr dividend,mpz_srcptr divisor)\n\n{\n  ulong size;\n  long lVar1;\n  mp_limb_t *pmVar2;\n  long lVar3;\n  tmp_reentrant_t *mark;\n  uint uVar4;\n  mp_limb_t *pmVar5;\n  undefined1 *puVar6;\n  int iVar7;\n  long in_FS_OFFSET;\n  undefined1 auStack_68 [8];\n  mpz_srcptr local_60 [2];\n  tmp_reentrant_t *__tmp_marker;\n  mpz_t temp_divisor;\n  \n  puVar6 = auStack_68;\n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  __tmp_marker = (tmp_reentrant_t *)0x0;\n  uVar4 = divisor->_mp_size >> 0x1f;\n  iVar7 = (divisor->_mp_size ^ uVar4) - uVar4;\n  if (divisor == rem) {\n    size = (long)iVar7 * 8;\n    if (size < 0x7f01) {\n      lVar3 = -(size + 0x17 & 0xfffffffffffffff0);\n      puVar6 = auStack_68 + lVar3;\n      pmVar5 = (mp_limb_t *)((long)local_60 + lVar3);\n    }\n    else {\n      local_60[0] = divisor;\n      pmVar5 = (mp_limb_t *)__gmp_tmp_reentrant_alloc(&__tmp_marker,size);\n      divisor = local_60[0];\n    }\n    pmVar2 = divisor->_mp_d;\n    temp_divisor[0]._mp_d = pmVar5;\n    *(undefined8 *)(puVar6 + -8) = 0x11f188;\n    __gmpn_copyi(pmVar5,pmVar2,(long)iVar7);\n  }\n  else {\n    temp_divisor[0]._mp_d = divisor->_mp_d;\n    puVar6 = auStack_68;\n  }\n  temp_divisor[0]._mp_size = iVar7;\n  *(undefined8 *)(puVar6 + -8) = 0x11f11f;\n  __gmpz_tdiv_r(rem,dividend,temp_divisor);\n  mark = __tmp_marker;\n  if (rem->_mp_size < 0) {\n    *(undefined8 *)(puVar6 + -8) = 0x11f19e;\n    __gmpz_add(rem,rem,temp_divisor);\n    mark = __tmp_marker;\n  }\n  __tmp_marker = mark;\n  if (mark != (tmp_reentrant_t *)0x0) {\n    *(undefined8 *)(puVar6 + -8) = 0x11f1ac;\n    __gmp_tmp_reentrant_free(mark);\n  }\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(undefined8 *)(puVar6 + -8) = 0x11f1cb;\n  __stack_chk_fail();\n}\n\n" (function_definition "void __gmpz_mod(mpz_ptr rem,mpz_srcptr dividend,mpz_srcptr divisor)\n\n{\n  ulong size;\n  long lVar1;\n  mp_limb_t *pmVar2;\n  long lVar3;\n  tmp_reentrant_t *mark;\n  uint uVar4;\n  mp_limb_t *pmVar5;\n  undefined1 *puVar6;\n  int iVar7;\n  long in_FS_OFFSET;\n  undefined1 auStack_68 [8];\n  mpz_srcptr local_60 [2];\n  tmp_reentrant_t *__tmp_marker;\n  mpz_t temp_divisor;\n  \n  puVar6 = auStack_68;\n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  __tmp_marker = (tmp_reentrant_t *)0x0;\n  uVar4 = divisor->_mp_size >> 0x1f;\n  iVar7 = (divisor->_mp_size ^ uVar4) - uVar4;\n  if (divisor == rem) {\n    size = (long)iVar7 * 8;\n    if (size < 0x7f01) {\n      lVar3 = -(size + 0x17 & 0xfffffffffffffff0);\n      puVar6 = auStack_68 + lVar3;\n      pmVar5 = (mp_limb_t *)((long)local_60 + lVar3);\n    }\n    else {\n      local_60[0] = divisor;\n      pmVar5 = (mp_limb_t *)__gmp_tmp_reentrant_alloc(&__tmp_marker,size);\n      divisor = local_60[0];\n    }\n    pmVar2 = divisor->_mp_d;\n    temp_divisor[0]._mp_d = pmVar5;\n    *(undefined8 *)(puVar6 + -8) = 0x11f188;\n    __gmpn_copyi(pmVar5,pmVar2,(long)iVar7);\n  }\n  else {\n    temp_divisor[0]._mp_d = divisor->_mp_d;\n    puVar6 = auStack_68;\n  }\n  temp_divisor[0]._mp_size = iVar7;\n  *(undefined8 *)(puVar6 + -8) = 0x11f11f;\n  __gmpz_tdiv_r(rem,dividend,temp_divisor);\n  mark = __tmp_marker;\n  if (rem->_mp_size < 0) {\n    *(undefined8 *)(puVar6 + -8) = 0x11f19e;\n    __gmpz_add(rem,rem,temp_divisor);\n    mark = __tmp_marker;\n  }\n  __tmp_marker = mark;\n  if (mark != (tmp_reentrant_t *)0x0) {\n    *(undefined8 *)(puVar6 + -8) = 0x11f1ac;\n    __gmp_tmp_reentrant_free(mark);\n  }\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(undefined8 *)(puVar6 + -8) = 0x11f1cb;\n  __stack_chk_fail();\n}" primitive_type (function_declarator "__gmpz_mod(mpz_ptr rem,mpz_srcptr dividend,mpz_srcptr divisor)" identifier (parameter_list "(mpz_ptr rem,mpz_srcptr dividend,mpz_srcptr divisor)" ( (parameter_declaration "mpz_ptr rem" type_identifier identifier) , (parameter_declaration "mpz_srcptr dividend" type_identifier identifier) , (parameter_declaration "mpz_srcptr divisor" type_identifier identifier) ))) (compound_statement "{\n  ulong size;\n  long lVar1;\n  mp_limb_t *pmVar2;\n  long lVar3;\n  tmp_reentrant_t *mark;\n  uint uVar4;\n  mp_limb_t *pmVar5;\n  undefined1 *puVar6;\n  int iVar7;\n  long in_FS_OFFSET;\n  undefined1 auStack_68 [8];\n  mpz_srcptr local_60 [2];\n  tmp_reentrant_t *__tmp_marker;\n  mpz_t temp_divisor;\n  \n  puVar6 = auStack_68;\n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  __tmp_marker = (tmp_reentrant_t *)0x0;\n  uVar4 = divisor->_mp_size >> 0x1f;\n  iVar7 = (divisor->_mp_size ^ uVar4) - uVar4;\n  if (divisor == rem) {\n    size = (long)iVar7 * 8;\n    if (size < 0x7f01) {\n      lVar3 = -(size + 0x17 & 0xfffffffffffffff0);\n      puVar6 = auStack_68 + lVar3;\n      pmVar5 = (mp_limb_t *)((long)local_60 + lVar3);\n    }\n    else {\n      local_60[0] = divisor;\n      pmVar5 = (mp_limb_t *)__gmp_tmp_reentrant_alloc(&__tmp_marker,size);\n      divisor = local_60[0];\n    }\n    pmVar2 = divisor->_mp_d;\n    temp_divisor[0]._mp_d = pmVar5;\n    *(undefined8 *)(puVar6 + -8) = 0x11f188;\n    __gmpn_copyi(pmVar5,pmVar2,(long)iVar7);\n  }\n  else {\n    temp_divisor[0]._mp_d = divisor->_mp_d;\n    puVar6 = auStack_68;\n  }\n  temp_divisor[0]._mp_size = iVar7;\n  *(undefined8 *)(puVar6 + -8) = 0x11f11f;\n  __gmpz_tdiv_r(rem,dividend,temp_divisor);\n  mark = __tmp_marker;\n  if (rem->_mp_size < 0) {\n    *(undefined8 *)(puVar6 + -8) = 0x11f19e;\n    __gmpz_add(rem,rem,temp_divisor);\n    mark = __tmp_marker;\n  }\n  __tmp_marker = mark;\n  if (mark != (tmp_reentrant_t *)0x0) {\n    *(undefined8 *)(puVar6 + -8) = 0x11f1ac;\n    __gmp_tmp_reentrant_free(mark);\n  }\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(undefined8 *)(puVar6 + -8) = 0x11f1cb;\n  __stack_chk_fail();\n}" { (declaration "ulong size;" type_identifier identifier ;) (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "mp_limb_t *pmVar2;" type_identifier (pointer_declarator "*pmVar2" * identifier) ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "tmp_reentrant_t *mark;" type_identifier (pointer_declarator "*mark" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "mp_limb_t *pmVar5;" type_identifier (pointer_declarator "*pmVar5" * identifier) ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" 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 "mpz_srcptr local_60 [2];" type_identifier (array_declarator "local_60 [2]" identifier [ number_literal ]) ;) (declaration "tmp_reentrant_t *__tmp_marker;" type_identifier (pointer_declarator "*__tmp_marker" * identifier) ;) (declaration "mpz_t temp_divisor;" type_identifier identifier ;) (expression_statement "puVar6 = auStack_68;" (assignment_expression "puVar6 = auStack_68" identifier = identifier) ;) (expression_statement "lVar1 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar1 = *(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 "__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 = divisor->_mp_size >> 0x1f;" (assignment_expression "uVar4 = divisor->_mp_size >> 0x1f" identifier = (binary_expression "divisor->_mp_size >> 0x1f" (field_expression "divisor->_mp_size" identifier -> field_identifier) >> number_literal)) ;) (expression_statement "iVar7 = (divisor->_mp_size ^ uVar4) - uVar4;" (assignment_expression "iVar7 = (divisor->_mp_size ^ uVar4) - uVar4" identifier = (binary_expression "(divisor->_mp_size ^ uVar4) - uVar4" (parenthesized_expression "(divisor->_mp_size ^ uVar4)" ( (binary_expression "divisor->_mp_size ^ uVar4" (field_expression "divisor->_mp_size" identifier -> field_identifier) ^ identifier) )) - identifier)) ;) (if_statement "if (divisor == rem) {\n    size = (long)iVar7 * 8;\n    if (size < 0x7f01) {\n      lVar3 = -(size + 0x17 & 0xfffffffffffffff0);\n      puVar6 = auStack_68 + lVar3;\n      pmVar5 = (mp_limb_t *)((long)local_60 + lVar3);\n    }\n    else {\n      local_60[0] = divisor;\n      pmVar5 = (mp_limb_t *)__gmp_tmp_reentrant_alloc(&__tmp_marker,size);\n      divisor = local_60[0];\n    }\n    pmVar2 = divisor->_mp_d;\n    temp_divisor[0]._mp_d = pmVar5;\n    *(undefined8 *)(puVar6 + -8) = 0x11f188;\n    __gmpn_copyi(pmVar5,pmVar2,(long)iVar7);\n  }\n  else {\n    temp_divisor[0]._mp_d = divisor->_mp_d;\n    puVar6 = auStack_68;\n  }" if (parenthesized_expression "(divisor == rem)" ( (binary_expression "divisor == rem" identifier == identifier) )) (compound_statement "{\n    size = (long)iVar7 * 8;\n    if (size < 0x7f01) {\n      lVar3 = -(size + 0x17 & 0xfffffffffffffff0);\n      puVar6 = auStack_68 + lVar3;\n      pmVar5 = (mp_limb_t *)((long)local_60 + lVar3);\n    }\n    else {\n      local_60[0] = divisor;\n      pmVar5 = (mp_limb_t *)__gmp_tmp_reentrant_alloc(&__tmp_marker,size);\n      divisor = local_60[0];\n    }\n    pmVar2 = divisor->_mp_d;\n    temp_divisor[0]._mp_d = pmVar5;\n    *(undefined8 *)(puVar6 + -8) = 0x11f188;\n    __gmpn_copyi(pmVar5,pmVar2,(long)iVar7);\n  }" { (expression_statement "size = (long)iVar7 * 8;" (assignment_expression "size = (long)iVar7 * 8" identifier = (binary_expression "(long)iVar7 * 8" (cast_expression "(long)iVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) ;) (if_statement "if (size < 0x7f01) {\n      lVar3 = -(size + 0x17 & 0xfffffffffffffff0);\n      puVar6 = auStack_68 + lVar3;\n      pmVar5 = (mp_limb_t *)((long)local_60 + lVar3);\n    }\n    else {\n      local_60[0] = divisor;\n      pmVar5 = (mp_limb_t *)__gmp_tmp_reentrant_alloc(&__tmp_marker,size);\n      divisor = local_60[0];\n    }" if (parenthesized_expression "(size < 0x7f01)" ( (binary_expression "size < 0x7f01" identifier < number_literal) )) (compound_statement "{\n      lVar3 = -(size + 0x17 & 0xfffffffffffffff0);\n      puVar6 = auStack_68 + lVar3;\n      pmVar5 = (mp_limb_t *)((long)local_60 + lVar3);\n    }" { (expression_statement "lVar3 = -(size + 0x17 & 0xfffffffffffffff0);" (assignment_expression "lVar3 = -(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 "puVar6 = auStack_68 + lVar3;" (assignment_expression "puVar6 = auStack_68 + lVar3" identifier = (binary_expression "auStack_68 + lVar3" identifier + identifier)) ;) (expression_statement "pmVar5 = (mp_limb_t *)((long)local_60 + lVar3);" (assignment_expression "pmVar5 = (mp_limb_t *)((long)local_60 + lVar3)" identifier = (cast_expression "(mp_limb_t *)((long)local_60 + lVar3)" ( (type_descriptor "mp_limb_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)local_60 + lVar3)" ( (binary_expression "(long)local_60 + lVar3" (cast_expression "(long)local_60" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) ;) }) (else_clause "else {\n      local_60[0] = divisor;\n      pmVar5 = (mp_limb_t *)__gmp_tmp_reentrant_alloc(&__tmp_marker,size);\n      divisor = local_60[0];\n    }" else (compound_statement "{\n      local_60[0] = divisor;\n      pmVar5 = (mp_limb_t *)__gmp_tmp_reentrant_alloc(&__tmp_marker,size);\n      divisor = local_60[0];\n    }" { (expression_statement "local_60[0] = divisor;" (assignment_expression "local_60[0] = divisor" (subscript_expression "local_60[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pmVar5 = (mp_limb_t *)__gmp_tmp_reentrant_alloc(&__tmp_marker,size);" (assignment_expression "pmVar5 = (mp_limb_t *)__gmp_tmp_reentrant_alloc(&__tmp_marker,size)" 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 "divisor = local_60[0];" (assignment_expression "divisor = local_60[0]" identifier = (subscript_expression "local_60[0]" identifier [ number_literal ])) ;) }))) (expression_statement "pmVar2 = divisor->_mp_d;" (assignment_expression "pmVar2 = divisor->_mp_d" identifier = (field_expression "divisor->_mp_d" identifier -> field_identifier)) ;) (expression_statement "temp_divisor[0]._mp_d = pmVar5;" (assignment_expression "temp_divisor[0]._mp_d = pmVar5" (field_expression "temp_divisor[0]._mp_d" (subscript_expression "temp_divisor[0]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "*(undefined8 *)(puVar6 + -8) = 0x11f188;" (assignment_expression "*(undefined8 *)(puVar6 + -8) = 0x11f188" (pointer_expression "*(undefined8 *)(puVar6 + -8)" * (cast_expression "(undefined8 *)(puVar6 + -8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + -8)" ( (binary_expression "puVar6 + -8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "__gmpn_copyi(pmVar5,pmVar2,(long)iVar7);" (call_expression "__gmpn_copyi(pmVar5,pmVar2,(long)iVar7)" identifier (argument_list "(pmVar5,pmVar2,(long)iVar7)" ( identifier , identifier , (cast_expression "(long)iVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) ))) ;) }) (else_clause "else {\n    temp_divisor[0]._mp_d = divisor->_mp_d;\n    puVar6 = auStack_68;\n  }" else (compound_statement "{\n    temp_divisor[0]._mp_d = divisor->_mp_d;\n    puVar6 = auStack_68;\n  }" { (expression_statement "temp_divisor[0]._mp_d = divisor->_mp_d;" (assignment_expression "temp_divisor[0]._mp_d = divisor->_mp_d" (field_expression "temp_divisor[0]._mp_d" (subscript_expression "temp_divisor[0]" identifier [ number_literal ]) . field_identifier) = (field_expression "divisor->_mp_d" identifier -> field_identifier)) ;) (expression_statement "puVar6 = auStack_68;" (assignment_expression "puVar6 = auStack_68" identifier = identifier) ;) }))) (expression_statement "temp_divisor[0]._mp_size = iVar7;" (assignment_expression "temp_divisor[0]._mp_size = iVar7" (field_expression "temp_divisor[0]._mp_size" (subscript_expression "temp_divisor[0]" identifier [ number_literal ]) . field_identifier) = identifier) ;) (expression_statement "*(undefined8 *)(puVar6 + -8) = 0x11f11f;" (assignment_expression "*(undefined8 *)(puVar6 + -8) = 0x11f11f" (pointer_expression "*(undefined8 *)(puVar6 + -8)" * (cast_expression "(undefined8 *)(puVar6 + -8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + -8)" ( (binary_expression "puVar6 + -8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "__gmpz_tdiv_r(rem,dividend,temp_divisor);" (call_expression "__gmpz_tdiv_r(rem,dividend,temp_divisor)" identifier (argument_list "(rem,dividend,temp_divisor)" ( identifier , identifier , identifier ))) ;) (expression_statement "mark = __tmp_marker;" (assignment_expression "mark = __tmp_marker" identifier = identifier) ;) (if_statement "if (rem->_mp_size < 0) {\n    *(undefined8 *)(puVar6 + -8) = 0x11f19e;\n    __gmpz_add(rem,rem,temp_divisor);\n    mark = __tmp_marker;\n  }" if (parenthesized_expression "(rem->_mp_size < 0)" ( (binary_expression "rem->_mp_size < 0" (field_expression "rem->_mp_size" identifier -> field_identifier) < number_literal) )) (compound_statement "{\n    *(undefined8 *)(puVar6 + -8) = 0x11f19e;\n    __gmpz_add(rem,rem,temp_divisor);\n    mark = __tmp_marker;\n  }" { (expression_statement "*(undefined8 *)(puVar6 + -8) = 0x11f19e;" (assignment_expression "*(undefined8 *)(puVar6 + -8) = 0x11f19e" (pointer_expression "*(undefined8 *)(puVar6 + -8)" * (cast_expression "(undefined8 *)(puVar6 + -8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + -8)" ( (binary_expression "puVar6 + -8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "__gmpz_add(rem,rem,temp_divisor);" (call_expression "__gmpz_add(rem,rem,temp_divisor)" identifier (argument_list "(rem,rem,temp_divisor)" ( identifier , identifier , identifier ))) ;) (expression_statement "mark = __tmp_marker;" (assignment_expression "mark = __tmp_marker" identifier = identifier) ;) })) (expression_statement "__tmp_marker = mark;" (assignment_expression "__tmp_marker = mark" identifier = identifier) ;) (if_statement "if (mark != (tmp_reentrant_t *)0x0) {\n    *(undefined8 *)(puVar6 + -8) = 0x11f1ac;\n    __gmp_tmp_reentrant_free(mark);\n  }" if (parenthesized_expression "(mark != (tmp_reentrant_t *)0x0)" ( (binary_expression "mark != (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 *)(puVar6 + -8) = 0x11f1ac;\n    __gmp_tmp_reentrant_free(mark);\n  }" { (expression_statement "*(undefined8 *)(puVar6 + -8) = 0x11f1ac;" (assignment_expression "*(undefined8 *)(puVar6 + -8) = 0x11f1ac" (pointer_expression "*(undefined8 *)(puVar6 + -8)" * (cast_expression "(undefined8 *)(puVar6 + -8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + -8)" ( (binary_expression "puVar6 + -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 (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }" if (parenthesized_expression "(lVar1 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar1 == *(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 "*(undefined8 *)(puVar6 + -8) = 0x11f1cb;" (assignment_expression "*(undefined8 *)(puVar6 + -8) = 0x11f1cb" (pointer_expression "*(undefined8 *)(puVar6 + -8)" * (cast_expression "(undefined8 *)(puVar6 + -8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + -8)" ( (binary_expression "puVar6 + -8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void __gmpz_mod(long param_1,undefined8 param_2,long param_3)\n\n{\n  ulong uVar1;\n  undefined8 uVar2;\n  uint uVar3;\n  long lVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  long in_FS_OFFSET;\n  undefined1 auStack_68 [8];\n  long local_60 [2];\n  long local_50;\n  undefined1 local_48 [4];\n  int local_44;\n  long local_40;\n  long local_30;\n  \n  puVar5 = auStack_68;\n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_50 = 0;\n  uVar3 = *(int *)(param_3 + 4) >> 0x1f;\n  iVar6 = (*(uint *)(param_3 + 4) ^ uVar3) - uVar3;\n  if (param_3 == param_1) {\n    uVar1 = (long)iVar6 * 8;\n    if (uVar1 < 0x7f01) {\n      lVar4 = -(uVar1 + 0x17 & 0xfffffffffffffff0);\n      puVar5 = auStack_68 + lVar4;\n      lVar4 = (long)local_60 + lVar4;\n    }\n    else {\n      local_60[0] = param_3;\n      lVar4 = __gmp_tmp_reentrant_alloc(&local_50);\n      param_3 = local_60[0];\n    }\n    uVar2 = *(undefined8 *)(param_3 + 8);\n    local_40 = lVar4;\n    *(undefined8 *)(puVar5 + -8) = 0x11f188;\n    __gmpn_copyi(lVar4,uVar2,(long)iVar6);\n  }\n  else {\n    local_40 = *(long *)(param_3 + 8);\n    puVar5 = auStack_68;\n  }\n  local_44 = iVar6;\n  *(undefined8 *)(puVar5 + -8) = 0x11f11f;\n  __gmpz_tdiv_r(param_1,param_2,local_48);\n  if (*(int *)(param_1 + 4) < 0) {\n    *(undefined8 *)(puVar5 + -8) = 0x11f19e;\n    __gmpz_add(param_1,param_1,local_48);\n  }\n  if (local_50 != 0) {\n    *(undefined8 *)(puVar5 + -8) = 0x11f1ac;\n    __gmp_tmp_reentrant_free();\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  *(undefined8 *)(puVar5 + -8) = 0x11f1cb;\n  __stack_chk_fail();\n}\n\n" (function_definition "void __gmpz_mod(long param_1,undefined8 param_2,long param_3)\n\n{\n  ulong uVar1;\n  undefined8 uVar2;\n  uint uVar3;\n  long lVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  long in_FS_OFFSET;\n  undefined1 auStack_68 [8];\n  long local_60 [2];\n  long local_50;\n  undefined1 local_48 [4];\n  int local_44;\n  long local_40;\n  long local_30;\n  \n  puVar5 = auStack_68;\n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_50 = 0;\n  uVar3 = *(int *)(param_3 + 4) >> 0x1f;\n  iVar6 = (*(uint *)(param_3 + 4) ^ uVar3) - uVar3;\n  if (param_3 == param_1) {\n    uVar1 = (long)iVar6 * 8;\n    if (uVar1 < 0x7f01) {\n      lVar4 = -(uVar1 + 0x17 & 0xfffffffffffffff0);\n      puVar5 = auStack_68 + lVar4;\n      lVar4 = (long)local_60 + lVar4;\n    }\n    else {\n      local_60[0] = param_3;\n      lVar4 = __gmp_tmp_reentrant_alloc(&local_50);\n      param_3 = local_60[0];\n    }\n    uVar2 = *(undefined8 *)(param_3 + 8);\n    local_40 = lVar4;\n    *(undefined8 *)(puVar5 + -8) = 0x11f188;\n    __gmpn_copyi(lVar4,uVar2,(long)iVar6);\n  }\n  else {\n    local_40 = *(long *)(param_3 + 8);\n    puVar5 = auStack_68;\n  }\n  local_44 = iVar6;\n  *(undefined8 *)(puVar5 + -8) = 0x11f11f;\n  __gmpz_tdiv_r(param_1,param_2,local_48);\n  if (*(int *)(param_1 + 4) < 0) {\n    *(undefined8 *)(puVar5 + -8) = 0x11f19e;\n    __gmpz_add(param_1,param_1,local_48);\n  }\n  if (local_50 != 0) {\n    *(undefined8 *)(puVar5 + -8) = 0x11f1ac;\n    __gmp_tmp_reentrant_free();\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  *(undefined8 *)(puVar5 + -8) = 0x11f1cb;\n  __stack_chk_fail();\n}" primitive_type (function_declarator "__gmpz_mod(long param_1,undefined8 param_2,long param_3)" identifier (parameter_list "(long param_1,undefined8 param_2,long param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  ulong uVar1;\n  undefined8 uVar2;\n  uint uVar3;\n  long lVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  long in_FS_OFFSET;\n  undefined1 auStack_68 [8];\n  long local_60 [2];\n  long local_50;\n  undefined1 local_48 [4];\n  int local_44;\n  long local_40;\n  long local_30;\n  \n  puVar5 = auStack_68;\n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_50 = 0;\n  uVar3 = *(int *)(param_3 + 4) >> 0x1f;\n  iVar6 = (*(uint *)(param_3 + 4) ^ uVar3) - uVar3;\n  if (param_3 == param_1) {\n    uVar1 = (long)iVar6 * 8;\n    if (uVar1 < 0x7f01) {\n      lVar4 = -(uVar1 + 0x17 & 0xfffffffffffffff0);\n      puVar5 = auStack_68 + lVar4;\n      lVar4 = (long)local_60 + lVar4;\n    }\n    else {\n      local_60[0] = param_3;\n      lVar4 = __gmp_tmp_reentrant_alloc(&local_50);\n      param_3 = local_60[0];\n    }\n    uVar2 = *(undefined8 *)(param_3 + 8);\n    local_40 = lVar4;\n    *(undefined8 *)(puVar5 + -8) = 0x11f188;\n    __gmpn_copyi(lVar4,uVar2,(long)iVar6);\n  }\n  else {\n    local_40 = *(long *)(param_3 + 8);\n    puVar5 = auStack_68;\n  }\n  local_44 = iVar6;\n  *(undefined8 *)(puVar5 + -8) = 0x11f11f;\n  __gmpz_tdiv_r(param_1,param_2,local_48);\n  if (*(int *)(param_1 + 4) < 0) {\n    *(undefined8 *)(puVar5 + -8) = 0x11f19e;\n    __gmpz_add(param_1,param_1,local_48);\n  }\n  if (local_50 != 0) {\n    *(undefined8 *)(puVar5 + -8) = 0x11f1ac;\n    __gmp_tmp_reentrant_free();\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  *(undefined8 *)(puVar5 + -8) = 0x11f1cb;\n  __stack_chk_fail();\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" 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 "long local_60 [2];" (sized_type_specifier "long" long) (array_declarator "local_60 [2]" identifier [ number_literal ]) ;) (declaration "long local_50;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 local_48 [4];" type_identifier (array_declarator "local_48 [4]" identifier [ number_literal ]) ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (declaration "long local_30;" (sized_type_specifier "long" long) identifier ;) (expression_statement "puVar5 = auStack_68;" (assignment_expression "puVar5 = auStack_68" identifier = identifier) ;) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(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 "local_50 = 0;" (assignment_expression "local_50 = 0" identifier = number_literal) ;) (expression_statement "uVar3 = *(int *)(param_3 + 4) >> 0x1f;" (assignment_expression "uVar3 = *(int *)(param_3 + 4) >> 0x1f" identifier = (binary_expression "*(int *)(param_3 + 4) >> 0x1f" (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) >> number_literal)) ;) (expression_statement "iVar6 = (*(uint *)(param_3 + 4) ^ uVar3) - uVar3;" (assignment_expression "iVar6 = (*(uint *)(param_3 + 4) ^ uVar3) - uVar3" identifier = (binary_expression "(*(uint *)(param_3 + 4) ^ uVar3) - uVar3" (parenthesized_expression "(*(uint *)(param_3 + 4) ^ uVar3)" ( (binary_expression "*(uint *)(param_3 + 4) ^ uVar3" (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) )))) ^ identifier) )) - identifier)) ;) (if_statement "if (param_3 == param_1) {\n    uVar1 = (long)iVar6 * 8;\n    if (uVar1 < 0x7f01) {\n      lVar4 = -(uVar1 + 0x17 & 0xfffffffffffffff0);\n      puVar5 = auStack_68 + lVar4;\n      lVar4 = (long)local_60 + lVar4;\n    }\n    else {\n      local_60[0] = param_3;\n      lVar4 = __gmp_tmp_reentrant_alloc(&local_50);\n      param_3 = local_60[0];\n    }\n    uVar2 = *(undefined8 *)(param_3 + 8);\n    local_40 = lVar4;\n    *(undefined8 *)(puVar5 + -8) = 0x11f188;\n    __gmpn_copyi(lVar4,uVar2,(long)iVar6);\n  }\n  else {\n    local_40 = *(long *)(param_3 + 8);\n    puVar5 = auStack_68;\n  }" if (parenthesized_expression "(param_3 == param_1)" ( (binary_expression "param_3 == param_1" identifier == identifier) )) (compound_statement "{\n    uVar1 = (long)iVar6 * 8;\n    if (uVar1 < 0x7f01) {\n      lVar4 = -(uVar1 + 0x17 & 0xfffffffffffffff0);\n      puVar5 = auStack_68 + lVar4;\n      lVar4 = (long)local_60 + lVar4;\n    }\n    else {\n      local_60[0] = param_3;\n      lVar4 = __gmp_tmp_reentrant_alloc(&local_50);\n      param_3 = local_60[0];\n    }\n    uVar2 = *(undefined8 *)(param_3 + 8);\n    local_40 = lVar4;\n    *(undefined8 *)(puVar5 + -8) = 0x11f188;\n    __gmpn_copyi(lVar4,uVar2,(long)iVar6);\n  }" { (expression_statement "uVar1 = (long)iVar6 * 8;" (assignment_expression "uVar1 = (long)iVar6 * 8" identifier = (binary_expression "(long)iVar6 * 8" (cast_expression "(long)iVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) ;) (if_statement "if (uVar1 < 0x7f01) {\n      lVar4 = -(uVar1 + 0x17 & 0xfffffffffffffff0);\n      puVar5 = auStack_68 + lVar4;\n      lVar4 = (long)local_60 + lVar4;\n    }\n    else {\n      local_60[0] = param_3;\n      lVar4 = __gmp_tmp_reentrant_alloc(&local_50);\n      param_3 = local_60[0];\n    }" if (parenthesized_expression "(uVar1 < 0x7f01)" ( (binary_expression "uVar1 < 0x7f01" identifier < number_literal) )) (compound_statement "{\n      lVar4 = -(uVar1 + 0x17 & 0xfffffffffffffff0);\n      puVar5 = auStack_68 + lVar4;\n      lVar4 = (long)local_60 + lVar4;\n    }" { (expression_statement "lVar4 = -(uVar1 + 0x17 & 0xfffffffffffffff0);" (assignment_expression "lVar4 = -(uVar1 + 0x17 & 0xfffffffffffffff0)" identifier = (unary_expression "-(uVar1 + 0x17 & 0xfffffffffffffff0)" - (parenthesized_expression "(uVar1 + 0x17 & 0xfffffffffffffff0)" ( (binary_expression "uVar1 + 0x17 & 0xfffffffffffffff0" (binary_expression "uVar1 + 0x17" identifier + number_literal) & number_literal) )))) ;) (expression_statement "puVar5 = auStack_68 + lVar4;" (assignment_expression "puVar5 = auStack_68 + lVar4" identifier = (binary_expression "auStack_68 + lVar4" identifier + identifier)) ;) (expression_statement "lVar4 = (long)local_60 + lVar4;" (assignment_expression "lVar4 = (long)local_60 + lVar4" identifier = (binary_expression "(long)local_60 + lVar4" (cast_expression "(long)local_60" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier)) ;) }) (else_clause "else {\n      local_60[0] = param_3;\n      lVar4 = __gmp_tmp_reentrant_alloc(&local_50);\n      param_3 = local_60[0];\n    }" else (compound_statement "{\n      local_60[0] = param_3;\n      lVar4 = __gmp_tmp_reentrant_alloc(&local_50);\n      param_3 = local_60[0];\n    }" { (expression_statement "local_60[0] = param_3;" (assignment_expression "local_60[0] = param_3" (subscript_expression "local_60[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "lVar4 = __gmp_tmp_reentrant_alloc(&local_50);" (assignment_expression "lVar4 = __gmp_tmp_reentrant_alloc(&local_50)" identifier = (call_expression "__gmp_tmp_reentrant_alloc(&local_50)" identifier (argument_list "(&local_50)" ( (pointer_expression "&local_50" & identifier) )))) ;) (expression_statement "param_3 = local_60[0];" (assignment_expression "param_3 = local_60[0]" identifier = (subscript_expression "local_60[0]" identifier [ number_literal ])) ;) }))) (expression_statement "uVar2 = *(undefined8 *)(param_3 + 8);" (assignment_expression "uVar2 = *(undefined8 *)(param_3 + 8)" identifier = (pointer_expression "*(undefined8 *)(param_3 + 8)" * (cast_expression "(undefined8 *)(param_3 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) ))))) ;) (expression_statement "local_40 = lVar4;" (assignment_expression "local_40 = lVar4" identifier = identifier) ;) (expression_statement "*(undefined8 *)(puVar5 + -8) = 0x11f188;" (assignment_expression "*(undefined8 *)(puVar5 + -8) = 0x11f188" (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 "__gmpn_copyi(lVar4,uVar2,(long)iVar6);" (call_expression "__gmpn_copyi(lVar4,uVar2,(long)iVar6)" identifier (argument_list "(lVar4,uVar2,(long)iVar6)" ( identifier , identifier , (cast_expression "(long)iVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) ))) ;) }) (else_clause "else {\n    local_40 = *(long *)(param_3 + 8);\n    puVar5 = auStack_68;\n  }" else (compound_statement "{\n    local_40 = *(long *)(param_3 + 8);\n    puVar5 = auStack_68;\n  }" { (expression_statement "local_40 = *(long *)(param_3 + 8);" (assignment_expression "local_40 = *(long *)(param_3 + 8)" identifier = (pointer_expression "*(long *)(param_3 + 8)" * (cast_expression "(long *)(param_3 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) ))))) ;) (expression_statement "puVar5 = auStack_68;" (assignment_expression "puVar5 = auStack_68" identifier = identifier) ;) }))) (expression_statement "local_44 = iVar6;" (assignment_expression "local_44 = iVar6" identifier = identifier) ;) (expression_statement "*(undefined8 *)(puVar5 + -8) = 0x11f11f;" (assignment_expression "*(undefined8 *)(puVar5 + -8) = 0x11f11f" (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_r(param_1,param_2,local_48);" (call_expression "__gmpz_tdiv_r(param_1,param_2,local_48)" identifier (argument_list "(param_1,param_2,local_48)" ( identifier , identifier , identifier ))) ;) (if_statement "if (*(int *)(param_1 + 4) < 0) {\n    *(undefined8 *)(puVar5 + -8) = 0x11f19e;\n    __gmpz_add(param_1,param_1,local_48);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 4) < 0)" ( (binary_expression "*(int *)(param_1 + 4) < 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n    *(undefined8 *)(puVar5 + -8) = 0x11f19e;\n    __gmpz_add(param_1,param_1,local_48);\n  }" { (expression_statement "*(undefined8 *)(puVar5 + -8) = 0x11f19e;" (assignment_expression "*(undefined8 *)(puVar5 + -8) = 0x11f19e" (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_add(param_1,param_1,local_48);" (call_expression "__gmpz_add(param_1,param_1,local_48)" identifier (argument_list "(param_1,param_1,local_48)" ( identifier , identifier , identifier ))) ;) })) (if_statement "if (local_50 != 0) {\n    *(undefined8 *)(puVar5 + -8) = 0x11f1ac;\n    __gmp_tmp_reentrant_free();\n  }" if (parenthesized_expression "(local_50 != 0)" ( (binary_expression "local_50 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined8 *)(puVar5 + -8) = 0x11f1ac;\n    __gmp_tmp_reentrant_free();\n  }" { (expression_statement "*(undefined8 *)(puVar5 + -8) = 0x11f1ac;" (assignment_expression "*(undefined8 *)(puVar5 + -8) = 0x11f1ac" (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();" (call_expression "__gmp_tmp_reentrant_free()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }" if (parenthesized_expression "(local_30 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_30 == *(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 "*(undefined8 *)(puVar5 + -8) = 0x11f1cb;" (assignment_expression "*(undefined8 *)(puVar5 + -8) = 0x11f1cb" (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 "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration (sized_type_specifier long) (array_declarator IDENT [ LIT ]) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (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 = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ^ IDENT) )) - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) 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)) ) IDENT) + IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (subscript_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 = 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 , IDENT , (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) ))) ;) }) (else_clause else (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 = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = 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 , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < 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 , IDENT ))) ;) })) (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 *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void __gmpz_mod(long param_1,undefined8 param_2,long param_3)\n\n{\n  ulong uVar1;\n  undefined8 uVar2;\n  uint uVar3;\n  long lVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  long in_FS_OFFSET;\n  undefined1 auStack_68 [8];\n  long local_60 [2];\n  long local_50;\n  undefined1 local_48 [4];\n  int local_44;\n  long local_40;\n  long local_30;\n  \n  puVar5 = auStack_68;\n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_50 = 0;\n  uVar3 = *(int *)(param_3 + 4) >> 0x1f;\n  iVar6 = (*(uint *)(param_3 + 4) ^ uVar3) - uVar3;\n  if (param_3 == param_1) {\n    uVar1 = (long)iVar6 * 8;\n    if (uVar1 < 0x7f01) {\n      lVar4 = -(uVar1 + 0x17 & 0xfffffffffffffff0);\n      puVar5 = auStack_68 + lVar4;\n      lVar4 = (long)local_60 + lVar4;\n    }\n    else {\n      local_60[0] = param_3;\n      lVar4 = __gmp_tmp_reentrant_alloc(&local_50);\n      param_3 = local_60[0];\n    }\n    uVar2 = *(undefined8 *)(param_3 + 8);\n    local_40 = lVar4;\n    *(undefined8 *)(puVar5 + -8) = 0x11f188;\n    __gmpn_copyi(lVar4,uVar2,(long)iVar6);\n  }\n  else {\n    local_40 = *(long *)(param_3 + 8);\n    puVar5 = auStack_68;\n  }\n  local_44 = iVar6;\n  *(undefined8 *)(puVar5 + -8) = 0x11f11f;\n  __gmpz_tdiv_r(param_1,param_2,local_48);\n  if (*(int *)(param_1 + 4) < 0) {\n    *(undefined8 *)(puVar5 + -8) = 0x11f19e;\n    __gmpz_add(param_1,param_1,local_48);\n  }\n  if (local_50 != 0) {\n    *(undefined8 *)(puVar5 + -8) = 0x11f1ac;\n    __gmp_tmp_reentrant_free();\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  *(undefined8 *)(puVar5 + -8) = 0x11f1cb;\n  __stack_chk_fail();\n}" (primitive_type "void") (function_declarator "__gmpz_mod(long param_1,undefined8 param_2,long param_3)" (identifier "__gmpz_mod") (parameter_list "(long param_1,undefined8 param_2,long param_3)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) () ")"))) (compound_statement "{\n  ulong uVar1;\n  undefined8 uVar2;\n  uint uVar3;\n  long lVar4;\n  undefined1 *puVar5;\n  int iVar6;\n  long in_FS_OFFSET;\n  undefined1 auStack_68 [8];\n  long local_60 [2];\n  long local_50;\n  undefined1 local_48 [4];\n  int local_44;\n  long local_40;\n  long local_30;\n  \n  puVar5 = auStack_68;\n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_50 = 0;\n  uVar3 = *(int *)(param_3 + 4) >> 0x1f;\n  iVar6 = (*(uint *)(param_3 + 4) ^ uVar3) - uVar3;\n  if (param_3 == param_1) {\n    uVar1 = (long)iVar6 * 8;\n    if (uVar1 < 0x7f01) {\n      lVar4 = -(uVar1 + 0x17 & 0xfffffffffffffff0);\n      puVar5 = auStack_68 + lVar4;\n      lVar4 = (long)local_60 + lVar4;\n    }\n    else {\n      local_60[0] = param_3;\n      lVar4 = __gmp_tmp_reentrant_alloc(&local_50);\n      param_3 = local_60[0];\n    }\n    uVar2 = *(undefined8 *)(param_3 + 8);\n    local_40 = lVar4;\n    *(undefined8 *)(puVar5 + -8) = 0x11f188;\n    __gmpn_copyi(lVar4,uVar2,(long)iVar6);\n  }\n  else {\n    local_40 = *(long *)(param_3 + 8);\n    puVar5 = auStack_68;\n  }\n  local_44 = iVar6;\n  *(undefined8 *)(puVar5 + -8) = 0x11f11f;\n  __gmpz_tdiv_r(param_1,param_2,local_48);\n  if (*(int *)(param_1 + 4) < 0) {\n    *(undefined8 *)(puVar5 + -8) = 0x11f19e;\n    __gmpz_add(param_1,param_1,local_48);\n  }\n  if (local_50 != 0) {\n    *(undefined8 *)(puVar5 + -8) = 0x11f1ac;\n    __gmp_tmp_reentrant_free();\n  }\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  *(undefined8 *)(puVar5 + -8) = 0x11f1cb;\n  __stack_chk_fail();\n}" ({ "{") (declaration "ulong uVar1;" (type_identifier "ulong") (identifier "uVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (declaration "undefined1 *puVar5;" (type_identifier "undefined1") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (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 [2];" (sized_type_specifier "long" (long "long")) (array_declarator "local_60 [2]" (identifier "local_60") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "long local_50;" (sized_type_specifier "long" (long "long")) (identifier "local_50") (; ";")) (declaration "undefined1 local_48 [4];" (type_identifier "undefined1") (array_declarator "local_48 [4]" (identifier "local_48") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "int local_44;" (primitive_type "int") (identifier "local_44") (; ";")) (declaration "long local_40;" (sized_type_specifier "long" (long "long")) (identifier "local_40") (; ";")) (declaration "long local_30;" (sized_type_specifier "long" (long "long")) (identifier "local_30") (; ";")) (expression_statement "puVar5 = auStack_68;" (assignment_expression "puVar5 = auStack_68" (identifier "puVar5") (= "=") (identifier "auStack_68")) (; ";")) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_30") (= "=") (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 "local_50 = 0;" (assignment_expression "local_50 = 0" (identifier "local_50") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = *(int *)(param_3 + 4) >> 0x1f;" (assignment_expression "uVar3 = *(int *)(param_3 + 4) >> 0x1f" (identifier "uVar3") (= "=") (binary_expression "*(int *)(param_3 + 4) >> 0x1f" (pointer_expression "*(int *)(param_3 + 4)" (* "*") (cast_expression "(int *)(param_3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")")))) (>> ">>") (number_literal "0x1f"))) (; ";")) (expression_statement "iVar6 = (*(uint *)(param_3 + 4) ^ uVar3) - uVar3;" (assignment_expression "iVar6 = (*(uint *)(param_3 + 4) ^ uVar3) - uVar3" (identifier "iVar6") (= "=") (binary_expression "(*(uint *)(param_3 + 4) ^ uVar3) - uVar3" (parenthesized_expression "(*(uint *)(param_3 + 4) ^ uVar3)" (( "(") (binary_expression "*(uint *)(param_3 + 4) ^ uVar3" (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")) () ")")))) (^ "^") (identifier "uVar3")) () ")")) (- "-") (identifier "uVar3"))) (; ";")) (if_statement "if (param_3 == param_1) {\n    uVar1 = (long)iVar6 * 8;\n    if (uVar1 < 0x7f01) {\n      lVar4 = -(uVar1 + 0x17 & 0xfffffffffffffff0);\n      puVar5 = auStack_68 + lVar4;\n      lVar4 = (long)local_60 + lVar4;\n    }\n    else {\n      local_60[0] = param_3;\n      lVar4 = __gmp_tmp_reentrant_alloc(&local_50);\n      param_3 = local_60[0];\n    }\n    uVar2 = *(undefined8 *)(param_3 + 8);\n    local_40 = lVar4;\n    *(undefined8 *)(puVar5 + -8) = 0x11f188;\n    __gmpn_copyi(lVar4,uVar2,(long)iVar6);\n  }\n  else {\n    local_40 = *(long *)(param_3 + 8);\n    puVar5 = auStack_68;\n  }" (if "if") (parenthesized_expression "(param_3 == param_1)" (( "(") (binary_expression "param_3 == param_1" (identifier "param_3") (== "==") (identifier "param_1")) () ")")) (compound_statement "{\n    uVar1 = (long)iVar6 * 8;\n    if (uVar1 < 0x7f01) {\n      lVar4 = -(uVar1 + 0x17 & 0xfffffffffffffff0);\n      puVar5 = auStack_68 + lVar4;\n      lVar4 = (long)local_60 + lVar4;\n    }\n    else {\n      local_60[0] = param_3;\n      lVar4 = __gmp_tmp_reentrant_alloc(&local_50);\n      param_3 = local_60[0];\n    }\n    uVar2 = *(undefined8 *)(param_3 + 8);\n    local_40 = lVar4;\n    *(undefined8 *)(puVar5 + -8) = 0x11f188;\n    __gmpn_copyi(lVar4,uVar2,(long)iVar6);\n  }" ({ "{") (expression_statement "uVar1 = (long)iVar6 * 8;" (assignment_expression "uVar1 = (long)iVar6 * 8" (identifier "uVar1") (= "=") (binary_expression "(long)iVar6 * 8" (cast_expression "(long)iVar6" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar6")) (* "*") (number_literal "8"))) (; ";")) (if_statement "if (uVar1 < 0x7f01) {\n      lVar4 = -(uVar1 + 0x17 & 0xfffffffffffffff0);\n      puVar5 = auStack_68 + lVar4;\n      lVar4 = (long)local_60 + lVar4;\n    }\n    else {\n      local_60[0] = param_3;\n      lVar4 = __gmp_tmp_reentrant_alloc(&local_50);\n      param_3 = local_60[0];\n    }" (if "if") (parenthesized_expression "(uVar1 < 0x7f01)" (( "(") (binary_expression "uVar1 < 0x7f01" (identifier "uVar1") (< "<") (number_literal "0x7f01")) () ")")) (compound_statement "{\n      lVar4 = -(uVar1 + 0x17 & 0xfffffffffffffff0);\n      puVar5 = auStack_68 + lVar4;\n      lVar4 = (long)local_60 + lVar4;\n    }" ({ "{") (expression_statement "lVar4 = -(uVar1 + 0x17 & 0xfffffffffffffff0);" (assignment_expression "lVar4 = -(uVar1 + 0x17 & 0xfffffffffffffff0)" (identifier "lVar4") (= "=") (unary_expression "-(uVar1 + 0x17 & 0xfffffffffffffff0)" (- "-") (parenthesized_expression "(uVar1 + 0x17 & 0xfffffffffffffff0)" (( "(") (binary_expression "uVar1 + 0x17 & 0xfffffffffffffff0" (binary_expression "uVar1 + 0x17" (identifier "uVar1") (+ "+") (number_literal "0x17")) (& "&") (number_literal "0xfffffffffffffff0")) () ")")))) (; ";")) (expression_statement "puVar5 = auStack_68 + lVar4;" (assignment_expression "puVar5 = auStack_68 + lVar4" (identifier "puVar5") (= "=") (binary_expression "auStack_68 + lVar4" (identifier "auStack_68") (+ "+") (identifier "lVar4"))) (; ";")) (expression_statement "lVar4 = (long)local_60 + lVar4;" (assignment_expression "lVar4 = (long)local_60 + lVar4" (identifier "lVar4") (= "=") (binary_expression "(long)local_60 + lVar4" (cast_expression "(long)local_60" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "local_60")) (+ "+") (identifier "lVar4"))) (; ";")) (} "}")) (else_clause "else {\n      local_60[0] = param_3;\n      lVar4 = __gmp_tmp_reentrant_alloc(&local_50);\n      param_3 = local_60[0];\n    }" (else "else") (compound_statement "{\n      local_60[0] = param_3;\n      lVar4 = __gmp_tmp_reentrant_alloc(&local_50);\n      param_3 = local_60[0];\n    }" ({ "{") (expression_statement "local_60[0] = param_3;" (assignment_expression "local_60[0] = param_3" (subscript_expression "local_60[0]" (identifier "local_60") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "lVar4 = __gmp_tmp_reentrant_alloc(&local_50);" (assignment_expression "lVar4 = __gmp_tmp_reentrant_alloc(&local_50)" (identifier "lVar4") (= "=") (call_expression "__gmp_tmp_reentrant_alloc(&local_50)" (identifier "__gmp_tmp_reentrant_alloc") (argument_list "(&local_50)" (( "(") (pointer_expression "&local_50" (& "&") (identifier "local_50")) () ")")))) (; ";")) (expression_statement "param_3 = local_60[0];" (assignment_expression "param_3 = local_60[0]" (identifier "param_3") (= "=") (subscript_expression "local_60[0]" (identifier "local_60") ([ "[") (number_literal "0") (] "]"))) (; ";")) (} "}")))) (expression_statement "uVar2 = *(undefined8 *)(param_3 + 8);" (assignment_expression "uVar2 = *(undefined8 *)(param_3 + 8)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined8 *)(param_3 + 8)" (* "*") (cast_expression "(undefined8 *)(param_3 + 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 8)" (( "(") (binary_expression "param_3 + 8" (identifier "param_3") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "local_40 = lVar4;" (assignment_expression "local_40 = lVar4" (identifier "local_40") (= "=") (identifier "lVar4")) (; ";")) (expression_statement "*(undefined8 *)(puVar5 + -8) = 0x11f188;" (assignment_expression "*(undefined8 *)(puVar5 + -8) = 0x11f188" (pointer_expression "*(undefined8 *)(puVar5 + -8)" (* "*") (cast_expression "(undefined8 *)(puVar5 + -8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + -8)" (( "(") (binary_expression "puVar5 + -8" (identifier "puVar5") (+ "+") (number_literal "-8")) () ")")))) (= "=") (number_literal "0x11f188")) (; ";")) (expression_statement "__gmpn_copyi(lVar4,uVar2,(long)iVar6);" (call_expression "__gmpn_copyi(lVar4,uVar2,(long)iVar6)" (identifier "__gmpn_copyi") (argument_list "(lVar4,uVar2,(long)iVar6)" (( "(") (identifier "lVar4") (, ",") (identifier "uVar2") (, ",") (cast_expression "(long)iVar6" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar6")) () ")"))) (; ";")) (} "}")) (else_clause "else {\n    local_40 = *(long *)(param_3 + 8);\n    puVar5 = auStack_68;\n  }" (else "else") (compound_statement "{\n    local_40 = *(long *)(param_3 + 8);\n    puVar5 = auStack_68;\n  }" ({ "{") (expression_statement "local_40 = *(long *)(param_3 + 8);" (assignment_expression "local_40 = *(long *)(param_3 + 8)" (identifier "local_40") (= "=") (pointer_expression "*(long *)(param_3 + 8)" (* "*") (cast_expression "(long *)(param_3 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 8)" (( "(") (binary_expression "param_3 + 8" (identifier "param_3") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "puVar5 = auStack_68;" (assignment_expression "puVar5 = auStack_68" (identifier "puVar5") (= "=") (identifier "auStack_68")) (; ";")) (} "}")))) (expression_statement "local_44 = iVar6;" (assignment_expression "local_44 = iVar6" (identifier "local_44") (= "=") (identifier "iVar6")) (; ";")) (expression_statement "*(undefined8 *)(puVar5 + -8) = 0x11f11f;" (assignment_expression "*(undefined8 *)(puVar5 + -8) = 0x11f11f" (pointer_expression "*(undefined8 *)(puVar5 + -8)" (* "*") (cast_expression "(undefined8 *)(puVar5 + -8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + -8)" (( "(") (binary_expression "puVar5 + -8" (identifier "puVar5") (+ "+") (number_literal "-8")) () ")")))) (= "=") (number_literal "0x11f11f")) (; ";")) (expression_statement "__gmpz_tdiv_r(param_1,param_2,local_48);" (call_expression "__gmpz_tdiv_r(param_1,param_2,local_48)" (identifier "__gmpz_tdiv_r") (argument_list "(param_1,param_2,local_48)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "local_48") () ")"))) (; ";")) (if_statement "if (*(int *)(param_1 + 4) < 0) {\n    *(undefined8 *)(puVar5 + -8) = 0x11f19e;\n    __gmpz_add(param_1,param_1,local_48);\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 4) < 0)" (( "(") (binary_expression "*(int *)(param_1 + 4) < 0" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined8 *)(puVar5 + -8) = 0x11f19e;\n    __gmpz_add(param_1,param_1,local_48);\n  }" ({ "{") (expression_statement "*(undefined8 *)(puVar5 + -8) = 0x11f19e;" (assignment_expression "*(undefined8 *)(puVar5 + -8) = 0x11f19e" (pointer_expression "*(undefined8 *)(puVar5 + -8)" (* "*") (cast_expression "(undefined8 *)(puVar5 + -8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + -8)" (( "(") (binary_expression "puVar5 + -8" (identifier "puVar5") (+ "+") (number_literal "-8")) () ")")))) (= "=") (number_literal "0x11f19e")) (; ";")) (expression_statement "__gmpz_add(param_1,param_1,local_48);" (call_expression "__gmpz_add(param_1,param_1,local_48)" (identifier "__gmpz_add") (argument_list "(param_1,param_1,local_48)" (( "(") (identifier "param_1") (, ",") (identifier "param_1") (, ",") (identifier "local_48") () ")"))) (; ";")) (} "}"))) (if_statement "if (local_50 != 0) {\n    *(undefined8 *)(puVar5 + -8) = 0x11f1ac;\n    __gmp_tmp_reentrant_free();\n  }" (if "if") (parenthesized_expression "(local_50 != 0)" (( "(") (binary_expression "local_50 != 0" (identifier "local_50") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined8 *)(puVar5 + -8) = 0x11f1ac;\n    __gmp_tmp_reentrant_free();\n  }" ({ "{") (expression_statement "*(undefined8 *)(puVar5 + -8) = 0x11f1ac;" (assignment_expression "*(undefined8 *)(puVar5 + -8) = 0x11f1ac" (pointer_expression "*(undefined8 *)(puVar5 + -8)" (* "*") (cast_expression "(undefined8 *)(puVar5 + -8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + -8)" (( "(") (binary_expression "puVar5 + -8" (identifier "puVar5") (+ "+") (number_literal "-8")) () ")")))) (= "=") (number_literal "0x11f1ac")) (; ";")) (expression_statement "__gmp_tmp_reentrant_free();" (call_expression "__gmp_tmp_reentrant_free()" (identifier "__gmp_tmp_reentrant_free") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_30 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_30 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_30") (== "==") (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 "*(undefined8 *)(puVar5 + -8) = 0x11f1cb;" (assignment_expression "*(undefined8 *)(puVar5 + -8) = 0x11f1cb" (pointer_expression "*(undefined8 *)(puVar5 + -8)" (* "*") (cast_expression "(undefined8 *)(puVar5 + -8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + -8)" (( "(") (binary_expression "puVar5 + -8" (identifier "puVar5") (+ "+") (number_literal "-8")) () ")")))) (= "=") (number_literal "0x11f1cb")) (; ";")) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

void function_1(type_1 var_4,type_2 dividend,type_2 var_3)

{
  type_3 var_5;
  long var_15;
  type_4 *pmVar2;
  long var_7;
  type_5 *var_13;
  type_6 var_2;
  type_4 *pmVar5;
  type_7 *var_9;
  int iVar7;
  long var_1;
  type_7 var_6 [8];
  type_2 local_60 [2];
  type_5 *__tmp_marker;
  type_8 temp_divisor;
  
  var_9 = var_6;
  var_15 = *(long *)(var_1 + 0x28);
  __tmp_marker = (type_5 *)0x0;
  var_2 = var_3->_mp_size >> 0x1f;
  iVar7 = (var_3->_mp_size ^ var_2) - var_2;
  if (var_3 == var_4) {
    var_5 = (long)iVar7 * 8;
    if (var_5 < 0x7f01) {
      var_7 = -(var_5 + 0x17 & 0xfffffffffffffff0);
      var_9 = var_6 + var_7;
      pmVar5 = (type_4 *)((long)local_60 + var_7);
    }
    else {
      local_60[0] = var_3;
      pmVar5 = (type_4 *)var_8(&__tmp_marker,var_5);
      var_3 = local_60[0];
    }
    pmVar2 = var_3->_mp_d;
    temp_divisor[0]._mp_d = pmVar5;
    *(type_9 *)(var_9 + -8) = 0x11f188;
    var_10(pmVar5,pmVar2,(long)iVar7);
  }
  else {
    temp_divisor[0]._mp_d = var_3->_mp_d;
    var_9 = var_6;
  }
  temp_divisor[0]._mp_size = iVar7;
  *(type_9 *)(var_9 + -8) = 0x11f11f;
  var_11(var_4,dividend,temp_divisor);
  var_13 = __tmp_marker;
  if (var_4->_mp_size < 0) {
    *(type_9 *)(var_9 + -8) = 0x11f19e;
    var_12(var_4,var_4,temp_divisor);
    var_13 = __tmp_marker;
  }
  __tmp_marker = var_13;
  if (var_13 != (type_5 *)0x0) {
    *(type_9 *)(var_9 + -8) = 0x11f1ac;
    var_14(var_13);
  }
  if (var_15 == *(long *)(var_1 + 0x28)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  *(type_9 *)(var_9 + -8) = 0x11f1cb;
  var_16();
}


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

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

{
  ulong uVar1;
  undefined8 uVar2;
  uint uVar3;
  long lVar4;
  undefined1 *puVar5;
  int iVar6;
  long in_FS_OFFSET;
  undefined1 auStack_68 [8];
  long local_60 [2];
  long local_50;
  undefined1 local_48 [4];
  int local_44;
  long local_40;
  long local_30;
  
  puVar5 = auStack_68;
  local_30 = *(long *)(in_FS_OFFSET + 0x28);
  local_50 = 0;
  uVar3 = *(int *)(param_3 + 4) >> 0x1f;
  iVar6 = (*(uint *)(param_3 + 4) ^ uVar3) - uVar3;
  if (param_3 == param_1) {
    uVar1 = (long)iVar6 * 8;
    if (uVar1 < 0x7f01) {
      lVar4 = -(uVar1 + 0x17 & 0xfffffffffffffff0);
      puVar5 = auStack_68 + lVar4;
      lVar4 = (long)local_60 + lVar4;
    }
    else {
      local_60[0] = param_3;
      lVar4 = __gmp_tmp_reentrant_alloc(&local_50);
      param_3 = local_60[0];
    }
    uVar2 = *(undefined8 *)(param_3 + 8);
    local_40 = lVar4;
    *(undefined8 *)(puVar5 + -8) = 0x11f188;
    __gmpn_copyi(lVar4,uVar2,(long)iVar6);
  }
  else {
    local_40 = *(long *)(param_3 + 8);
    puVar5 = auStack_68;
  }
  local_44 = iVar6;
  *(undefined8 *)(puVar5 + -8) = 0x11f11f;
  __gmpz_tdiv_r(param_1,param_2,local_48);
  if (*(int *)(param_1 + 4) < 0) {
    *(undefined8 *)(puVar5 + -8) = 0x11f19e;
    __gmpz_add(param_1,param_1,local_48);
  }
  if (local_50 != 0) {
    *(undefined8 *)(puVar5 + -8) = 0x11f1ac;
    __gmp_tmp_reentrant_free();
  }
  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  *(undefined8 *)(puVar5 + -8) = 0x11f1cb;
  __stack_chk_fail();
}

