
ostream * __gmp_doprnt_integer_ostream(ostream *o,doprnt_params_t *p,char *s)

{
  char cVar1;
  long lVar2;
  ostream *poVar3;
  ulong uVar4;
  char *pcVar5;
  long in_FS_OFFSET;
  byte bVar6;
  char *result;
  gmp_asprintf_t d;
  
  bVar6 = 0;
  lVar2 = *(long *)(in_FS_OFFSET + 0x28);
  p->prec = -1;
  d.result = &result;
  d.alloc = 0x100;
  d.buf = (char *)(**(code **)PTR___gmp_allocate_func_00107fb0)(0x100);
  d.size = 0;
  __gmp_doprnt_integer(PTR___gmp_asprintf_funs_noformat_00107fc8,&d,p,s);
  __gmp_asprintf_final(&d);
  uVar4 = 0xffffffffffffffff;
  pcVar5 = s;
  do {
    if (uVar4 == 0) break;
    uVar4 = uVar4 - 1;
    cVar1 = *pcVar5;
    pcVar5 = pcVar5 + (ulong)bVar6 * -2 + 1;
  } while (cVar1 != '\0');
  (**(code **)PTR___gmp_free_func_00107fc0)(s,~uVar4);
  uVar4 = 0xffffffffffffffff;
  pcVar5 = result;
  do {
    if (uVar4 == 0) break;
    uVar4 = uVar4 - 1;
    cVar1 = *pcVar5;
    pcVar5 = pcVar5 + (ulong)bVar6 * -2 + 1;
  } while (cVar1 != '\0');
                    /* try { // try from 00104e94 to 00104e98 has its CatchHandler @ 00104eca */
  poVar3 = (ostream *)std::ostream::write((char *)o,(long)result);
  (**(code **)PTR___gmp_free_func_00107fc0)(result,~uVar4);
  if (lVar2 == *(long *)(in_FS_OFFSET + 0x28)) {
    return poVar3;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



/* __gmp_doprnt_integer_ostream(std::ostream&, doprnt_params_t*, char*) */

undefined8 __gmp_doprnt_integer_ostream(ostream *param_1,doprnt_params_t *param_2,char *param_3)

{
  char cVar1;
  undefined8 uVar2;
  ulong uVar3;
  char *pcVar4;
  long in_FS_OFFSET;
  byte bVar5;
  char *local_60;
  char **local_58;
  undefined8 local_50;
  undefined8 local_48;
  undefined8 local_40;
  long local_30;
  
  bVar5 = 0;
  local_30 = *(long *)(in_FS_OFFSET + 0x28);
  *(undefined4 *)(param_2 + 0x1c) = 0xffffffff;
  local_58 = &local_60;
  local_40 = 0x100;
  local_50 = (**(code **)PTR___gmp_allocate_func_00107fb0)(0x100);
  local_48 = 0;
  __gmp_doprnt_integer(PTR___gmp_asprintf_funs_noformat_00107fc8,&local_58,param_2,param_3);
  __gmp_asprintf_final(&local_58);
  uVar3 = 0xffffffffffffffff;
  pcVar4 = param_3;
  do {
    if (uVar3 == 0) break;
    uVar3 = uVar3 - 1;
    cVar1 = *pcVar4;
    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;
  } while (cVar1 != '\0');
  (**(code **)PTR___gmp_free_func_00107fc0)(param_3,~uVar3);
  uVar3 = 0xffffffffffffffff;
  pcVar4 = local_60;
  do {
    if (uVar3 == 0) break;
    uVar3 = uVar3 - 1;
    cVar1 = *pcVar4;
    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;
  } while (cVar1 != '\0');
                    /* try { // try from 00104e94 to 00104e98 has its CatchHandler @ 00104eca */
  uVar2 = std::ostream::write((char *)param_1,(long)local_60);
  (**(code **)PTR___gmp_free_func_00107fc0)(local_60,~uVar3);
  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x48
MOV R12,RDI
MOV R13,RSI
MOV RBP,RDX
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x38],RAX
XOR EAX,EAX
MOV dword ptr [RSI + 0x1c],0xffffffff
LEA RAX,[RSP + 0x8]
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0x28],0x100
MOV EDI,0x100
MOV RAX,qword ptr [0x00107fb0]
CALL qword ptr [RAX]
MOV qword ptr [RSP + 0x18],RAX
MOV qword ptr [RSP + 0x20],0x0
LEA RBX,[RSP + 0x10]
MOV RCX,RBP
MOV RDX,R13
MOV RSI,RBX
MOV RDI,qword ptr [0x00107fc8]
CALL 0x00104080
MOV RDI,RBX
CALL 0x001040e0
MOV R13,-0x1
MOV EBX,0x0
MOV RCX,R13
MOV RDI,RBP
MOV EAX,EBX
SCASB.REPNE RDI
NOT RCX
MOV RSI,RCX
MOV RDI,RBP
MOV RAX,qword ptr [0x00107fc0]
CALL qword ptr [RAX]
MOV RBP,qword ptr [RSP + 0x8]
MOV RCX,R13
MOV RDI,RBP
MOV EAX,EBX
SCASB.REPNE RDI
MOV RBX,RCX
NOT RBX
ADD RBX,R13
MOV RDX,RBX
MOV RSI,RBP
MOV RDI,R12
CALL 0x00104180
MOV R12,RAX
LEA RSI,[RBX + 0x1]
MOV RDI,RBP
MOV RAX,qword ptr [0x00107fc0]
CALL qword ptr [RAX]
MOV RAX,R12
MOV RDX,qword ptr [RSP + 0x38]
XOR RDX,qword ptr FS:[0x28]
JNZ 0x00104ee5
ADD RSP,0x48
POP RBX
POP RBP
POP R12
POP R13
RET
CALL 0x00104130
(translation_unit "/* __gmp_doprnt_integer_ostream(std::ostream&, doprnt_params_t*, char*) */\n\nundefined8 __gmp_doprnt_integer_ostream(ostream *param_1,doprnt_params_t *param_2,char *param_3)\n\n{\n  char cVar1;\n  undefined8 uVar2;\n  ulong uVar3;\n  char *pcVar4;\n  long in_FS_OFFSET;\n  byte bVar5;\n  char *local_60;\n  char **local_58;\n  undefined8 local_50;\n  undefined8 local_48;\n  undefined8 local_40;\n  long local_30;\n  \n  bVar5 = 0;\n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  *(undefined4 *)(param_2 + 0x1c) = 0xffffffff;\n  local_58 = &local_60;\n  local_40 = 0x100;\n  local_50 = (**(code **)PTR___gmp_allocate_func_00107fb0)(0x100);\n  local_48 = 0;\n  __gmp_doprnt_integer(PTR___gmp_asprintf_funs_noformat_00107fc8,&local_58,param_2,param_3);\n  __gmp_asprintf_final(&local_58);\n  uVar3 = 0xffffffffffffffff;\n  pcVar4 = param_3;\n  do {\n    if (uVar3 == 0) break;\n    uVar3 = uVar3 - 1;\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n  } while (cVar1 != '\0');\n  (**(code **)PTR___gmp_free_func_00107fc0)(param_3,~uVar3);\n  uVar3 = 0xffffffffffffffff;\n  pcVar4 = local_60;\n  do {\n    if (uVar3 == 0) break;\n    uVar3 = uVar3 - 1;\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n  } while (cVar1 != '\0');\n                    /* try { // try from 00104e94 to 00104e98 has its CatchHandler @ 00104eca */\n  uVar2 = std::ostream::write((char *)param_1,(long)local_60);\n  (**(code **)PTR___gmp_free_func_00107fc0)(local_60,~uVar3);\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" comment (function_definition "undefined8 __gmp_doprnt_integer_ostream(ostream *param_1,doprnt_params_t *param_2,char *param_3)\n\n{\n  char cVar1;\n  undefined8 uVar2;\n  ulong uVar3;\n  char *pcVar4;\n  long in_FS_OFFSET;\n  byte bVar5;\n  char *local_60;\n  char **local_58;\n  undefined8 local_50;\n  undefined8 local_48;\n  undefined8 local_40;\n  long local_30;\n  \n  bVar5 = 0;\n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  *(undefined4 *)(param_2 + 0x1c) = 0xffffffff;\n  local_58 = &local_60;\n  local_40 = 0x100;\n  local_50 = (**(code **)PTR___gmp_allocate_func_00107fb0)(0x100);\n  local_48 = 0;\n  __gmp_doprnt_integer(PTR___gmp_asprintf_funs_noformat_00107fc8,&local_58,param_2,param_3);\n  __gmp_asprintf_final(&local_58);\n  uVar3 = 0xffffffffffffffff;\n  pcVar4 = param_3;\n  do {\n    if (uVar3 == 0) break;\n    uVar3 = uVar3 - 1;\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n  } while (cVar1 != '\0');\n  (**(code **)PTR___gmp_free_func_00107fc0)(param_3,~uVar3);\n  uVar3 = 0xffffffffffffffff;\n  pcVar4 = local_60;\n  do {\n    if (uVar3 == 0) break;\n    uVar3 = uVar3 - 1;\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n  } while (cVar1 != '\0');\n                    /* try { // try from 00104e94 to 00104e98 has its CatchHandler @ 00104eca */\n  uVar2 = std::ostream::write((char *)param_1,(long)local_60);\n  (**(code **)PTR___gmp_free_func_00107fc0)(local_60,~uVar3);\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" type_identifier (function_declarator "__gmp_doprnt_integer_ostream(ostream *param_1,doprnt_params_t *param_2,char *param_3)" identifier (parameter_list "(ostream *param_1,doprnt_params_t *param_2,char *param_3)" ( (parameter_declaration "ostream *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "doprnt_params_t *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  undefined8 uVar2;\n  ulong uVar3;\n  char *pcVar4;\n  long in_FS_OFFSET;\n  byte bVar5;\n  char *local_60;\n  char **local_58;\n  undefined8 local_50;\n  undefined8 local_48;\n  undefined8 local_40;\n  long local_30;\n  \n  bVar5 = 0;\n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  *(undefined4 *)(param_2 + 0x1c) = 0xffffffff;\n  local_58 = &local_60;\n  local_40 = 0x100;\n  local_50 = (**(code **)PTR___gmp_allocate_func_00107fb0)(0x100);\n  local_48 = 0;\n  __gmp_doprnt_integer(PTR___gmp_asprintf_funs_noformat_00107fc8,&local_58,param_2,param_3);\n  __gmp_asprintf_final(&local_58);\n  uVar3 = 0xffffffffffffffff;\n  pcVar4 = param_3;\n  do {\n    if (uVar3 == 0) break;\n    uVar3 = uVar3 - 1;\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n  } while (cVar1 != '\0');\n  (**(code **)PTR___gmp_free_func_00107fc0)(param_3,~uVar3);\n  uVar3 = 0xffffffffffffffff;\n  pcVar4 = local_60;\n  do {\n    if (uVar3 == 0) break;\n    uVar3 = uVar3 - 1;\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n  } while (cVar1 != '\0');\n                    /* try { // try from 00104e94 to 00104e98 has its CatchHandler @ 00104eca */\n  uVar2 = std::ostream::write((char *)param_1,(long)local_60);\n  (**(code **)PTR___gmp_free_func_00107fc0)(local_60,~uVar3);\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "byte bVar5;" type_identifier identifier ;) (declaration "char *local_60;" primitive_type (pointer_declarator "*local_60" * identifier) ;) (declaration "char **local_58;" primitive_type (pointer_declarator "**local_58" * (pointer_declarator "*local_58" * identifier)) ;) (declaration "undefined8 local_50;" type_identifier identifier ;) (declaration "undefined8 local_48;" type_identifier identifier ;) (declaration "undefined8 local_40;" type_identifier identifier ;) (declaration "long local_30;" (sized_type_specifier "long" long) identifier ;) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" identifier = number_literal) ;) (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 "*(undefined4 *)(param_2 + 0x1c) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_2 + 0x1c) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_2 + 0x1c)" * (cast_expression "(undefined4 *)(param_2 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "local_58 = &local_60;" (assignment_expression "local_58 = &local_60" identifier = (pointer_expression "&local_60" & identifier)) ;) (expression_statement "local_40 = 0x100;" (assignment_expression "local_40 = 0x100" identifier = number_literal) ;) (expression_statement "local_50 = (**(code **)PTR___gmp_allocate_func_00107fb0)(0x100);" (assignment_expression "local_50 = (**(code **)PTR___gmp_allocate_func_00107fb0)(0x100)" identifier = (call_expression "(**(code **)PTR___gmp_allocate_func_00107fb0)(0x100)" (parenthesized_expression "(**(code **)PTR___gmp_allocate_func_00107fb0)" ( (pointer_expression "**(code **)PTR___gmp_allocate_func_00107fb0" * (pointer_expression "*(code **)PTR___gmp_allocate_func_00107fb0" * (cast_expression "(code **)PTR___gmp_allocate_func_00107fb0" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(0x100)" ( number_literal )))) ;) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" identifier = number_literal) ;) (expression_statement "__gmp_doprnt_integer(PTR___gmp_asprintf_funs_noformat_00107fc8,&local_58,param_2,param_3);" (call_expression "__gmp_doprnt_integer(PTR___gmp_asprintf_funs_noformat_00107fc8,&local_58,param_2,param_3)" identifier (argument_list "(PTR___gmp_asprintf_funs_noformat_00107fc8,&local_58,param_2,param_3)" ( identifier , (pointer_expression "&local_58" & identifier) , identifier , identifier ))) ;) (expression_statement "__gmp_asprintf_final(&local_58);" (call_expression "__gmp_asprintf_final(&local_58)" identifier (argument_list "(&local_58)" ( (pointer_expression "&local_58" & identifier) ))) ;) (expression_statement "uVar3 = 0xffffffffffffffff;" (assignment_expression "uVar3 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar4 = param_3;" (assignment_expression "pcVar4 = param_3" identifier = identifier) ;) (do_statement "do {\n    if (uVar3 == 0) break;\n    uVar3 = uVar3 - 1;\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n  } while (cVar1 != '\0');" do (compound_statement "{\n    if (uVar3 == 0) break;\n    uVar3 = uVar3 - 1;\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n  }" { (if_statement "if (uVar3 == 0) break;" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar3 = uVar3 - 1;" (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar4;" (assignment_expression "cVar1 = *pcVar4" identifier = (pointer_expression "*pcVar4" * identifier)) ;) (expression_statement "pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;" (assignment_expression "pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1" identifier = (binary_expression "pcVar4 + (ulong)bVar5 * -2 + 1" (binary_expression "pcVar4 + (ulong)bVar5 * -2" identifier + (binary_expression "(ulong)bVar5 * -2" (cast_expression "(ulong)bVar5" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "(**(code **)PTR___gmp_free_func_00107fc0)(param_3,~uVar3);" (call_expression "(**(code **)PTR___gmp_free_func_00107fc0)(param_3,~uVar3)" (parenthesized_expression "(**(code **)PTR___gmp_free_func_00107fc0)" ( (pointer_expression "**(code **)PTR___gmp_free_func_00107fc0" * (pointer_expression "*(code **)PTR___gmp_free_func_00107fc0" * (cast_expression "(code **)PTR___gmp_free_func_00107fc0" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(param_3,~uVar3)" ( identifier , (unary_expression "~uVar3" ~ identifier) ))) ;) (expression_statement "uVar3 = 0xffffffffffffffff;" (assignment_expression "uVar3 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar4 = local_60;" (assignment_expression "pcVar4 = local_60" identifier = identifier) ;) (do_statement "do {\n    if (uVar3 == 0) break;\n    uVar3 = uVar3 - 1;\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n  } while (cVar1 != '\0');" do (compound_statement "{\n    if (uVar3 == 0) break;\n    uVar3 = uVar3 - 1;\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n  }" { (if_statement "if (uVar3 == 0) break;" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar3 = uVar3 - 1;" (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar4;" (assignment_expression "cVar1 = *pcVar4" identifier = (pointer_expression "*pcVar4" * identifier)) ;) (expression_statement "pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;" (assignment_expression "pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1" identifier = (binary_expression "pcVar4 + (ulong)bVar5 * -2 + 1" (binary_expression "pcVar4 + (ulong)bVar5 * -2" identifier + (binary_expression "(ulong)bVar5 * -2" (cast_expression "(ulong)bVar5" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) comment (ERROR "uVar2 = std::" (assignment_expression "uVar2 = std" identifier = identifier) : :) (labeled_statement "ostream::write((char *)param_1,(long)local_60);" statement_identifier : (ERROR ":" :) (expression_statement "write((char *)param_1,(long)local_60);" (call_expression "write((char *)param_1,(long)local_60)" identifier (argument_list "((char *)param_1,(long)local_60)" ( (cast_expression "(char *)param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(long)local_60" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) ))) ;)) (expression_statement "(**(code **)PTR___gmp_free_func_00107fc0)(local_60,~uVar3);" (call_expression "(**(code **)PTR___gmp_free_func_00107fc0)(local_60,~uVar3)" (parenthesized_expression "(**(code **)PTR___gmp_free_func_00107fc0)" ( (pointer_expression "**(code **)PTR___gmp_free_func_00107fc0" * (pointer_expression "*(code **)PTR___gmp_free_func_00107fc0" * (cast_expression "(code **)PTR___gmp_free_func_00107fc0" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(local_60,~uVar3)" ( identifier , (unary_expression "~uVar3" ~ identifier) ))) ;) (if_statement "if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\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 uVar2;\n  }" { (return_statement "return uVar2;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "ostream * __gmp_doprnt_integer_ostream(ostream *o,doprnt_params_t *p,char *s)\n\n{\n  char cVar1;\n  long lVar2;\n  ostream *poVar3;\n  ulong uVar4;\n  char *pcVar5;\n  long in_FS_OFFSET;\n  byte bVar6;\n  char *result;\n  gmp_asprintf_t d;\n  \n  bVar6 = 0;\n  lVar2 = *(long *)(in_FS_OFFSET + 0x28);\n  p->prec = -1;\n  d.result = &result;\n  d.alloc = 0x100;\n  d.buf = (char *)(**(code **)PTR___gmp_allocate_func_00107fb0)(0x100);\n  d.size = 0;\n  __gmp_doprnt_integer(PTR___gmp_asprintf_funs_noformat_00107fc8,&d,p,s);\n  __gmp_asprintf_final(&d);\n  uVar4 = 0xffffffffffffffff;\n  pcVar5 = s;\n  do {\n    if (uVar4 == 0) break;\n    uVar4 = uVar4 - 1;\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + (ulong)bVar6 * -2 + 1;\n  } while (cVar1 != '\0');\n  (**(code **)PTR___gmp_free_func_00107fc0)(s,~uVar4);\n  uVar4 = 0xffffffffffffffff;\n  pcVar5 = result;\n  do {\n    if (uVar4 == 0) break;\n    uVar4 = uVar4 - 1;\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + (ulong)bVar6 * -2 + 1;\n  } while (cVar1 != '\0');\n                    /* try { // try from 00104e94 to 00104e98 has its CatchHandler @ 00104eca */\n  poVar3 = (ostream *)std::ostream::write((char *)o,(long)result);\n  (**(code **)PTR___gmp_free_func_00107fc0)(result,~uVar4);\n  if (lVar2 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return poVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "ostream * __gmp_doprnt_integer_ostream(ostream *o,doprnt_params_t *p,char *s)\n\n{\n  char cVar1;\n  long lVar2;\n  ostream *poVar3;\n  ulong uVar4;\n  char *pcVar5;\n  long in_FS_OFFSET;\n  byte bVar6;\n  char *result;\n  gmp_asprintf_t d;\n  \n  bVar6 = 0;\n  lVar2 = *(long *)(in_FS_OFFSET + 0x28);\n  p->prec = -1;\n  d.result = &result;\n  d.alloc = 0x100;\n  d.buf = (char *)(**(code **)PTR___gmp_allocate_func_00107fb0)(0x100);\n  d.size = 0;\n  __gmp_doprnt_integer(PTR___gmp_asprintf_funs_noformat_00107fc8,&d,p,s);\n  __gmp_asprintf_final(&d);\n  uVar4 = 0xffffffffffffffff;\n  pcVar5 = s;\n  do {\n    if (uVar4 == 0) break;\n    uVar4 = uVar4 - 1;\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + (ulong)bVar6 * -2 + 1;\n  } while (cVar1 != '\0');\n  (**(code **)PTR___gmp_free_func_00107fc0)(s,~uVar4);\n  uVar4 = 0xffffffffffffffff;\n  pcVar5 = result;\n  do {\n    if (uVar4 == 0) break;\n    uVar4 = uVar4 - 1;\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + (ulong)bVar6 * -2 + 1;\n  } while (cVar1 != '\0');\n                    /* try { // try from 00104e94 to 00104e98 has its CatchHandler @ 00104eca */\n  poVar3 = (ostream *)std::ostream::write((char *)o,(long)result);\n  (**(code **)PTR___gmp_free_func_00107fc0)(result,~uVar4);\n  if (lVar2 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return poVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" type_identifier (pointer_declarator "* __gmp_doprnt_integer_ostream(ostream *o,doprnt_params_t *p,char *s)" * (function_declarator "__gmp_doprnt_integer_ostream(ostream *o,doprnt_params_t *p,char *s)" identifier (parameter_list "(ostream *o,doprnt_params_t *p,char *s)" ( (parameter_declaration "ostream *o" type_identifier (pointer_declarator "*o" * identifier)) , (parameter_declaration "doprnt_params_t *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "char *s" primitive_type (pointer_declarator "*s" * identifier)) )))) (compound_statement "{\n  char cVar1;\n  long lVar2;\n  ostream *poVar3;\n  ulong uVar4;\n  char *pcVar5;\n  long in_FS_OFFSET;\n  byte bVar6;\n  char *result;\n  gmp_asprintf_t d;\n  \n  bVar6 = 0;\n  lVar2 = *(long *)(in_FS_OFFSET + 0x28);\n  p->prec = -1;\n  d.result = &result;\n  d.alloc = 0x100;\n  d.buf = (char *)(**(code **)PTR___gmp_allocate_func_00107fb0)(0x100);\n  d.size = 0;\n  __gmp_doprnt_integer(PTR___gmp_asprintf_funs_noformat_00107fc8,&d,p,s);\n  __gmp_asprintf_final(&d);\n  uVar4 = 0xffffffffffffffff;\n  pcVar5 = s;\n  do {\n    if (uVar4 == 0) break;\n    uVar4 = uVar4 - 1;\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + (ulong)bVar6 * -2 + 1;\n  } while (cVar1 != '\0');\n  (**(code **)PTR___gmp_free_func_00107fc0)(s,~uVar4);\n  uVar4 = 0xffffffffffffffff;\n  pcVar5 = result;\n  do {\n    if (uVar4 == 0) break;\n    uVar4 = uVar4 - 1;\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + (ulong)bVar6 * -2 + 1;\n  } while (cVar1 != '\0');\n                    /* try { // try from 00104e94 to 00104e98 has its CatchHandler @ 00104eca */\n  poVar3 = (ostream *)std::ostream::write((char *)o,(long)result);\n  (**(code **)PTR___gmp_free_func_00107fc0)(result,~uVar4);\n  if (lVar2 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return poVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "ostream *poVar3;" type_identifier (pointer_declarator "*poVar3" * identifier) ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "byte bVar6;" type_identifier identifier ;) (declaration "char *result;" primitive_type (pointer_declarator "*result" * identifier) ;) (declaration "gmp_asprintf_t d;" type_identifier identifier ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (expression_statement "lVar2 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar2 = *(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 "p->prec = -1;" (assignment_expression "p->prec = -1" (field_expression "p->prec" identifier -> field_identifier) = number_literal) ;) (expression_statement "d.result = &result;" (assignment_expression "d.result = &result" (field_expression "d.result" identifier . field_identifier) = (pointer_expression "&result" & identifier)) ;) (expression_statement "d.alloc = 0x100;" (assignment_expression "d.alloc = 0x100" (field_expression "d.alloc" identifier . field_identifier) = number_literal) ;) (expression_statement "d.buf = (char *)(**(code **)PTR___gmp_allocate_func_00107fb0)(0x100);" (assignment_expression "d.buf = (char *)(**(code **)PTR___gmp_allocate_func_00107fb0)(0x100)" (field_expression "d.buf" identifier . field_identifier) = (cast_expression "(char *)(**(code **)PTR___gmp_allocate_func_00107fb0)(0x100)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)PTR___gmp_allocate_func_00107fb0)(0x100)" (parenthesized_expression "(**(code **)PTR___gmp_allocate_func_00107fb0)" ( (pointer_expression "**(code **)PTR___gmp_allocate_func_00107fb0" * (pointer_expression "*(code **)PTR___gmp_allocate_func_00107fb0" * (cast_expression "(code **)PTR___gmp_allocate_func_00107fb0" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(0x100)" ( number_literal ))))) ;) (expression_statement "d.size = 0;" (assignment_expression "d.size = 0" (field_expression "d.size" identifier . field_identifier) = number_literal) ;) (expression_statement "__gmp_doprnt_integer(PTR___gmp_asprintf_funs_noformat_00107fc8,&d,p,s);" (call_expression "__gmp_doprnt_integer(PTR___gmp_asprintf_funs_noformat_00107fc8,&d,p,s)" identifier (argument_list "(PTR___gmp_asprintf_funs_noformat_00107fc8,&d,p,s)" ( identifier , (pointer_expression "&d" & identifier) , identifier , identifier ))) ;) (expression_statement "__gmp_asprintf_final(&d);" (call_expression "__gmp_asprintf_final(&d)" identifier (argument_list "(&d)" ( (pointer_expression "&d" & identifier) ))) ;) (expression_statement "uVar4 = 0xffffffffffffffff;" (assignment_expression "uVar4 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar5 = s;" (assignment_expression "pcVar5 = s" identifier = identifier) ;) (do_statement "do {\n    if (uVar4 == 0) break;\n    uVar4 = uVar4 - 1;\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + (ulong)bVar6 * -2 + 1;\n  } while (cVar1 != '\0');" do (compound_statement "{\n    if (uVar4 == 0) break;\n    uVar4 = uVar4 - 1;\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + (ulong)bVar6 * -2 + 1;\n  }" { (if_statement "if (uVar4 == 0) break;" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar4 = uVar4 - 1;" (assignment_expression "uVar4 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar5;" (assignment_expression "cVar1 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) (expression_statement "pcVar5 = pcVar5 + (ulong)bVar6 * -2 + 1;" (assignment_expression "pcVar5 = pcVar5 + (ulong)bVar6 * -2 + 1" identifier = (binary_expression "pcVar5 + (ulong)bVar6 * -2 + 1" (binary_expression "pcVar5 + (ulong)bVar6 * -2" identifier + (binary_expression "(ulong)bVar6 * -2" (cast_expression "(ulong)bVar6" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "(**(code **)PTR___gmp_free_func_00107fc0)(s,~uVar4);" (call_expression "(**(code **)PTR___gmp_free_func_00107fc0)(s,~uVar4)" (parenthesized_expression "(**(code **)PTR___gmp_free_func_00107fc0)" ( (pointer_expression "**(code **)PTR___gmp_free_func_00107fc0" * (pointer_expression "*(code **)PTR___gmp_free_func_00107fc0" * (cast_expression "(code **)PTR___gmp_free_func_00107fc0" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(s,~uVar4)" ( identifier , (unary_expression "~uVar4" ~ identifier) ))) ;) (expression_statement "uVar4 = 0xffffffffffffffff;" (assignment_expression "uVar4 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar5 = result;" (assignment_expression "pcVar5 = result" identifier = identifier) ;) (do_statement "do {\n    if (uVar4 == 0) break;\n    uVar4 = uVar4 - 1;\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + (ulong)bVar6 * -2 + 1;\n  } while (cVar1 != '\0');" do (compound_statement "{\n    if (uVar4 == 0) break;\n    uVar4 = uVar4 - 1;\n    cVar1 = *pcVar5;\n    pcVar5 = pcVar5 + (ulong)bVar6 * -2 + 1;\n  }" { (if_statement "if (uVar4 == 0) break;" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar4 = uVar4 - 1;" (assignment_expression "uVar4 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar5;" (assignment_expression "cVar1 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) (expression_statement "pcVar5 = pcVar5 + (ulong)bVar6 * -2 + 1;" (assignment_expression "pcVar5 = pcVar5 + (ulong)bVar6 * -2 + 1" identifier = (binary_expression "pcVar5 + (ulong)bVar6 * -2 + 1" (binary_expression "pcVar5 + (ulong)bVar6 * -2" identifier + (binary_expression "(ulong)bVar6 * -2" (cast_expression "(ulong)bVar6" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) comment (ERROR "poVar3 = (ostream *)std::" (assignment_expression "poVar3 = (ostream *)std" identifier = (cast_expression "(ostream *)std" ( (type_descriptor "ostream *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) : :) (labeled_statement "ostream::write((char *)o,(long)result);" statement_identifier : (ERROR ":" :) (expression_statement "write((char *)o,(long)result);" (call_expression "write((char *)o,(long)result)" identifier (argument_list "((char *)o,(long)result)" ( (cast_expression "(char *)o" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(long)result" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) ))) ;)) (expression_statement "(**(code **)PTR___gmp_free_func_00107fc0)(result,~uVar4);" (call_expression "(**(code **)PTR___gmp_free_func_00107fc0)(result,~uVar4)" (parenthesized_expression "(**(code **)PTR___gmp_free_func_00107fc0)" ( (pointer_expression "**(code **)PTR___gmp_free_func_00107fc0" * (pointer_expression "*(code **)PTR___gmp_free_func_00107fc0" * (cast_expression "(code **)PTR___gmp_free_func_00107fc0" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(result,~uVar4)" ( identifier , (unary_expression "~uVar4" ~ identifier) ))) ;) (if_statement "if (lVar2 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return poVar3;\n  }" if (parenthesized_expression "(lVar2 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar2 == *(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 poVar3;\n  }" { (return_statement "return poVar3;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined8 __gmp_doprnt_integer_ostream(ostream *param_1,doprnt_params_t *param_2,char *param_3)\n\n{\n  char cVar1;\n  undefined8 uVar2;\n  ulong uVar3;\n  char *pcVar4;\n  long in_FS_OFFSET;\n  byte bVar5;\n  char *local_60;\n  char **local_58;\n  undefined8 local_50;\n  undefined8 local_48;\n  undefined8 local_40;\n  long local_30;\n  \n  bVar5 = 0;\n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  *(undefined4 *)(param_2 + 0x1c) = 0xffffffff;\n  local_58 = &local_60;\n  local_40 = 0x100;\n  local_50 = (**(code **)PTR___gmp_allocate_func_00107fb0)(0x100);\n  local_48 = 0;\n  __gmp_doprnt_integer(PTR___gmp_asprintf_funs_noformat_00107fc8,&local_58,param_2,param_3);\n  __gmp_asprintf_final(&local_58);\n  uVar3 = 0xffffffffffffffff;\n  pcVar4 = param_3;\n  do {\n    if (uVar3 == 0) break;\n    uVar3 = uVar3 - 1;\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n  } while (cVar1 != '\0');\n  (**(code **)PTR___gmp_free_func_00107fc0)(param_3,~uVar3);\n  uVar3 = 0xffffffffffffffff;\n  pcVar4 = local_60;\n  do {\n    if (uVar3 == 0) break;\n    uVar3 = uVar3 - 1;\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n  } while (cVar1 != '\0');\n                    \n  uVar2 = std::ostream::write((char *)param_1,(long)local_60);\n  (**(code **)PTR___gmp_free_func_00107fc0)(local_60,~uVar3);\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "undefined8 __gmp_doprnt_integer_ostream(ostream *param_1,doprnt_params_t *param_2,char *param_3)\n\n{\n  char cVar1;\n  undefined8 uVar2;\n  ulong uVar3;\n  char *pcVar4;\n  long in_FS_OFFSET;\n  byte bVar5;\n  char *local_60;\n  char **local_58;\n  undefined8 local_50;\n  undefined8 local_48;\n  undefined8 local_40;\n  long local_30;\n  \n  bVar5 = 0;\n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  *(undefined4 *)(param_2 + 0x1c) = 0xffffffff;\n  local_58 = &local_60;\n  local_40 = 0x100;\n  local_50 = (**(code **)PTR___gmp_allocate_func_00107fb0)(0x100);\n  local_48 = 0;\n  __gmp_doprnt_integer(PTR___gmp_asprintf_funs_noformat_00107fc8,&local_58,param_2,param_3);\n  __gmp_asprintf_final(&local_58);\n  uVar3 = 0xffffffffffffffff;\n  pcVar4 = param_3;\n  do {\n    if (uVar3 == 0) break;\n    uVar3 = uVar3 - 1;\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n  } while (cVar1 != '\0');\n  (**(code **)PTR___gmp_free_func_00107fc0)(param_3,~uVar3);\n  uVar3 = 0xffffffffffffffff;\n  pcVar4 = local_60;\n  do {\n    if (uVar3 == 0) break;\n    uVar3 = uVar3 - 1;\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n  } while (cVar1 != '\0');\n                    \n  uVar2 = std::ostream::write((char *)param_1,(long)local_60);\n  (**(code **)PTR___gmp_free_func_00107fc0)(local_60,~uVar3);\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }\n                    \n  __stack_chk_fail();\n}" type_identifier (function_declarator "__gmp_doprnt_integer_ostream(ostream *param_1,doprnt_params_t *param_2,char *param_3)" identifier (parameter_list "(ostream *param_1,doprnt_params_t *param_2,char *param_3)" ( (parameter_declaration "ostream *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "doprnt_params_t *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  undefined8 uVar2;\n  ulong uVar3;\n  char *pcVar4;\n  long in_FS_OFFSET;\n  byte bVar5;\n  char *local_60;\n  char **local_58;\n  undefined8 local_50;\n  undefined8 local_48;\n  undefined8 local_40;\n  long local_30;\n  \n  bVar5 = 0;\n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  *(undefined4 *)(param_2 + 0x1c) = 0xffffffff;\n  local_58 = &local_60;\n  local_40 = 0x100;\n  local_50 = (**(code **)PTR___gmp_allocate_func_00107fb0)(0x100);\n  local_48 = 0;\n  __gmp_doprnt_integer(PTR___gmp_asprintf_funs_noformat_00107fc8,&local_58,param_2,param_3);\n  __gmp_asprintf_final(&local_58);\n  uVar3 = 0xffffffffffffffff;\n  pcVar4 = param_3;\n  do {\n    if (uVar3 == 0) break;\n    uVar3 = uVar3 - 1;\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n  } while (cVar1 != '\0');\n  (**(code **)PTR___gmp_free_func_00107fc0)(param_3,~uVar3);\n  uVar3 = 0xffffffffffffffff;\n  pcVar4 = local_60;\n  do {\n    if (uVar3 == 0) break;\n    uVar3 = uVar3 - 1;\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n  } while (cVar1 != '\0');\n                    \n  uVar2 = std::ostream::write((char *)param_1,(long)local_60);\n  (**(code **)PTR___gmp_free_func_00107fc0)(local_60,~uVar3);\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "byte bVar5;" type_identifier identifier ;) (declaration "char *local_60;" primitive_type (pointer_declarator "*local_60" * identifier) ;) (declaration "char **local_58;" primitive_type (pointer_declarator "**local_58" * (pointer_declarator "*local_58" * identifier)) ;) (declaration "undefined8 local_50;" type_identifier identifier ;) (declaration "undefined8 local_48;" type_identifier identifier ;) (declaration "undefined8 local_40;" type_identifier identifier ;) (declaration "long local_30;" (sized_type_specifier "long" long) identifier ;) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" identifier = number_literal) ;) (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 "*(undefined4 *)(param_2 + 0x1c) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_2 + 0x1c) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_2 + 0x1c)" * (cast_expression "(undefined4 *)(param_2 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "local_58 = &local_60;" (assignment_expression "local_58 = &local_60" identifier = (pointer_expression "&local_60" & identifier)) ;) (expression_statement "local_40 = 0x100;" (assignment_expression "local_40 = 0x100" identifier = number_literal) ;) (expression_statement "local_50 = (**(code **)PTR___gmp_allocate_func_00107fb0)(0x100);" (assignment_expression "local_50 = (**(code **)PTR___gmp_allocate_func_00107fb0)(0x100)" identifier = (call_expression "(**(code **)PTR___gmp_allocate_func_00107fb0)(0x100)" (parenthesized_expression "(**(code **)PTR___gmp_allocate_func_00107fb0)" ( (pointer_expression "**(code **)PTR___gmp_allocate_func_00107fb0" * (pointer_expression "*(code **)PTR___gmp_allocate_func_00107fb0" * (cast_expression "(code **)PTR___gmp_allocate_func_00107fb0" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(0x100)" ( number_literal )))) ;) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" identifier = number_literal) ;) (expression_statement "__gmp_doprnt_integer(PTR___gmp_asprintf_funs_noformat_00107fc8,&local_58,param_2,param_3);" (call_expression "__gmp_doprnt_integer(PTR___gmp_asprintf_funs_noformat_00107fc8,&local_58,param_2,param_3)" identifier (argument_list "(PTR___gmp_asprintf_funs_noformat_00107fc8,&local_58,param_2,param_3)" ( identifier , (pointer_expression "&local_58" & identifier) , identifier , identifier ))) ;) (expression_statement "__gmp_asprintf_final(&local_58);" (call_expression "__gmp_asprintf_final(&local_58)" identifier (argument_list "(&local_58)" ( (pointer_expression "&local_58" & identifier) ))) ;) (expression_statement "uVar3 = 0xffffffffffffffff;" (assignment_expression "uVar3 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar4 = param_3;" (assignment_expression "pcVar4 = param_3" identifier = identifier) ;) (do_statement "do {\n    if (uVar3 == 0) break;\n    uVar3 = uVar3 - 1;\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n  } while (cVar1 != '\0');" do (compound_statement "{\n    if (uVar3 == 0) break;\n    uVar3 = uVar3 - 1;\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n  }" { (if_statement "if (uVar3 == 0) break;" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar3 = uVar3 - 1;" (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar4;" (assignment_expression "cVar1 = *pcVar4" identifier = (pointer_expression "*pcVar4" * identifier)) ;) (expression_statement "pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;" (assignment_expression "pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1" identifier = (binary_expression "pcVar4 + (ulong)bVar5 * -2 + 1" (binary_expression "pcVar4 + (ulong)bVar5 * -2" identifier + (binary_expression "(ulong)bVar5 * -2" (cast_expression "(ulong)bVar5" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "(**(code **)PTR___gmp_free_func_00107fc0)(param_3,~uVar3);" (call_expression "(**(code **)PTR___gmp_free_func_00107fc0)(param_3,~uVar3)" (parenthesized_expression "(**(code **)PTR___gmp_free_func_00107fc0)" ( (pointer_expression "**(code **)PTR___gmp_free_func_00107fc0" * (pointer_expression "*(code **)PTR___gmp_free_func_00107fc0" * (cast_expression "(code **)PTR___gmp_free_func_00107fc0" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(param_3,~uVar3)" ( identifier , (unary_expression "~uVar3" ~ identifier) ))) ;) (expression_statement "uVar3 = 0xffffffffffffffff;" (assignment_expression "uVar3 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar4 = local_60;" (assignment_expression "pcVar4 = local_60" identifier = identifier) ;) (do_statement "do {\n    if (uVar3 == 0) break;\n    uVar3 = uVar3 - 1;\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n  } while (cVar1 != '\0');" do (compound_statement "{\n    if (uVar3 == 0) break;\n    uVar3 = uVar3 - 1;\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n  }" { (if_statement "if (uVar3 == 0) break;" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar3 = uVar3 - 1;" (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar4;" (assignment_expression "cVar1 = *pcVar4" identifier = (pointer_expression "*pcVar4" * identifier)) ;) (expression_statement "pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;" (assignment_expression "pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1" identifier = (binary_expression "pcVar4 + (ulong)bVar5 * -2 + 1" (binary_expression "pcVar4 + (ulong)bVar5 * -2" identifier + (binary_expression "(ulong)bVar5 * -2" (cast_expression "(ulong)bVar5" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (ERROR "uVar2 = std::" (assignment_expression "uVar2 = std" identifier = identifier) : :) (labeled_statement "ostream::write((char *)param_1,(long)local_60);" statement_identifier : (ERROR ":" :) (expression_statement "write((char *)param_1,(long)local_60);" (call_expression "write((char *)param_1,(long)local_60)" identifier (argument_list "((char *)param_1,(long)local_60)" ( (cast_expression "(char *)param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(long)local_60" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) ))) ;)) (expression_statement "(**(code **)PTR___gmp_free_func_00107fc0)(local_60,~uVar3);" (call_expression "(**(code **)PTR___gmp_free_func_00107fc0)(local_60,~uVar3)" (parenthesized_expression "(**(code **)PTR___gmp_free_func_00107fc0)" ( (pointer_expression "**(code **)PTR___gmp_free_func_00107fc0" * (pointer_expression "*(code **)PTR___gmp_free_func_00107fc0" * (cast_expression "(code **)PTR___gmp_free_func_00107fc0" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(local_60,~uVar3)" ( identifier , (unary_expression "~uVar3" ~ identifier) ))) ;) (if_statement "if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\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 uVar2;\n  }" { (return_statement "return uVar2;" return identifier ;) })) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (argument_list ( IDENT , (unary_expression ~ IDENT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (ERROR (assignment_expression IDENT = IDENT) : :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) ))) ;)) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (argument_list ( IDENT , (unary_expression ~ IDENT) ))) ;) (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 IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined8 __gmp_doprnt_integer_ostream(ostream *param_1,doprnt_params_t *param_2,char *param_3)\n\n{\n  char cVar1;\n  undefined8 uVar2;\n  ulong uVar3;\n  char *pcVar4;\n  long in_FS_OFFSET;\n  byte bVar5;\n  char *local_60;\n  char **local_58;\n  undefined8 local_50;\n  undefined8 local_48;\n  undefined8 local_40;\n  long local_30;\n  \n  bVar5 = 0;\n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  *(undefined4 *)(param_2 + 0x1c) = 0xffffffff;\n  local_58 = &local_60;\n  local_40 = 0x100;\n  local_50 = (**(code **)PTR___gmp_allocate_func_00107fb0)(0x100);\n  local_48 = 0;\n  __gmp_doprnt_integer(PTR___gmp_asprintf_funs_noformat_00107fc8,&local_58,param_2,param_3);\n  __gmp_asprintf_final(&local_58);\n  uVar3 = 0xffffffffffffffff;\n  pcVar4 = param_3;\n  do {\n    if (uVar3 == 0) break;\n    uVar3 = uVar3 - 1;\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n  } while (cVar1 != '\0');\n  (**(code **)PTR___gmp_free_func_00107fc0)(param_3,~uVar3);\n  uVar3 = 0xffffffffffffffff;\n  pcVar4 = local_60;\n  do {\n    if (uVar3 == 0) break;\n    uVar3 = uVar3 - 1;\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n  } while (cVar1 != '\0');\n                    \n  uVar2 = std::ostream::write((char *)param_1,(long)local_60);\n  (**(code **)PTR___gmp_free_func_00107fc0)(local_60,~uVar3);\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }\n                    \n  __stack_chk_fail();\n}" (type_identifier "undefined8") (function_declarator "__gmp_doprnt_integer_ostream(ostream *param_1,doprnt_params_t *param_2,char *param_3)" (identifier "__gmp_doprnt_integer_ostream") (parameter_list "(ostream *param_1,doprnt_params_t *param_2,char *param_3)" (( "(") (parameter_declaration "ostream *param_1" (type_identifier "ostream") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "doprnt_params_t *param_2" (type_identifier "doprnt_params_t") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  char cVar1;\n  undefined8 uVar2;\n  ulong uVar3;\n  char *pcVar4;\n  long in_FS_OFFSET;\n  byte bVar5;\n  char *local_60;\n  char **local_58;\n  undefined8 local_50;\n  undefined8 local_48;\n  undefined8 local_40;\n  long local_30;\n  \n  bVar5 = 0;\n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  *(undefined4 *)(param_2 + 0x1c) = 0xffffffff;\n  local_58 = &local_60;\n  local_40 = 0x100;\n  local_50 = (**(code **)PTR___gmp_allocate_func_00107fb0)(0x100);\n  local_48 = 0;\n  __gmp_doprnt_integer(PTR___gmp_asprintf_funs_noformat_00107fc8,&local_58,param_2,param_3);\n  __gmp_asprintf_final(&local_58);\n  uVar3 = 0xffffffffffffffff;\n  pcVar4 = param_3;\n  do {\n    if (uVar3 == 0) break;\n    uVar3 = uVar3 - 1;\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n  } while (cVar1 != '\0');\n  (**(code **)PTR___gmp_free_func_00107fc0)(param_3,~uVar3);\n  uVar3 = 0xffffffffffffffff;\n  pcVar4 = local_60;\n  do {\n    if (uVar3 == 0) break;\n    uVar3 = uVar3 - 1;\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n  } while (cVar1 != '\0');\n                    \n  uVar2 = std::ostream::write((char *)param_1,(long)local_60);\n  (**(code **)PTR___gmp_free_func_00107fc0)(local_60,~uVar3);\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (declaration "ulong uVar3;" (type_identifier "ulong") (identifier "uVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "byte bVar5;" (type_identifier "byte") (identifier "bVar5") (; ";")) (declaration "char *local_60;" (primitive_type "char") (pointer_declarator "*local_60" (* "*") (identifier "local_60")) (; ";")) (declaration "char **local_58;" (primitive_type "char") (pointer_declarator "**local_58" (* "*") (pointer_declarator "*local_58" (* "*") (identifier "local_58"))) (; ";")) (declaration "undefined8 local_50;" (type_identifier "undefined8") (identifier "local_50") (; ";")) (declaration "undefined8 local_48;" (type_identifier "undefined8") (identifier "local_48") (; ";")) (declaration "undefined8 local_40;" (type_identifier "undefined8") (identifier "local_40") (; ";")) (declaration "long local_30;" (sized_type_specifier "long" (long "long")) (identifier "local_30") (; ";")) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" (identifier "bVar5") (= "=") (number_literal "0")) (; ";")) (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 "*(undefined4 *)(param_2 + 0x1c) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_2 + 0x1c) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_2 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "local_58 = &local_60;" (assignment_expression "local_58 = &local_60" (identifier "local_58") (= "=") (pointer_expression "&local_60" (& "&") (identifier "local_60"))) (; ";")) (expression_statement "local_40 = 0x100;" (assignment_expression "local_40 = 0x100" (identifier "local_40") (= "=") (number_literal "0x100")) (; ";")) (expression_statement "local_50 = (**(code **)PTR___gmp_allocate_func_00107fb0)(0x100);" (assignment_expression "local_50 = (**(code **)PTR___gmp_allocate_func_00107fb0)(0x100)" (identifier "local_50") (= "=") (call_expression "(**(code **)PTR___gmp_allocate_func_00107fb0)(0x100)" (parenthesized_expression "(**(code **)PTR___gmp_allocate_func_00107fb0)" (( "(") (pointer_expression "**(code **)PTR___gmp_allocate_func_00107fb0" (* "*") (pointer_expression "*(code **)PTR___gmp_allocate_func_00107fb0" (* "*") (cast_expression "(code **)PTR___gmp_allocate_func_00107fb0" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR___gmp_allocate_func_00107fb0")))) () ")")) (argument_list "(0x100)" (( "(") (number_literal "0x100") () ")")))) (; ";")) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" (identifier "local_48") (= "=") (number_literal "0")) (; ";")) (expression_statement "__gmp_doprnt_integer(PTR___gmp_asprintf_funs_noformat_00107fc8,&local_58,param_2,param_3);" (call_expression "__gmp_doprnt_integer(PTR___gmp_asprintf_funs_noformat_00107fc8,&local_58,param_2,param_3)" (identifier "__gmp_doprnt_integer") (argument_list "(PTR___gmp_asprintf_funs_noformat_00107fc8,&local_58,param_2,param_3)" (( "(") (identifier "PTR___gmp_asprintf_funs_noformat_00107fc8") (, ",") (pointer_expression "&local_58" (& "&") (identifier "local_58")) (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "__gmp_asprintf_final(&local_58);" (call_expression "__gmp_asprintf_final(&local_58)" (identifier "__gmp_asprintf_final") (argument_list "(&local_58)" (( "(") (pointer_expression "&local_58" (& "&") (identifier "local_58")) () ")"))) (; ";")) (expression_statement "uVar3 = 0xffffffffffffffff;" (assignment_expression "uVar3 = 0xffffffffffffffff" (identifier "uVar3") (= "=") (number_literal "0xffffffffffffffff")) (; ";")) (expression_statement "pcVar4 = param_3;" (assignment_expression "pcVar4 = param_3" (identifier "pcVar4") (= "=") (identifier "param_3")) (; ";")) (do_statement "do {\n    if (uVar3 == 0) break;\n    uVar3 = uVar3 - 1;\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n  } while (cVar1 != '\0');" (do "do") (compound_statement "{\n    if (uVar3 == 0) break;\n    uVar3 = uVar3 - 1;\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n  }" ({ "{") (if_statement "if (uVar3 == 0) break;" (if "if") (parenthesized_expression "(uVar3 == 0)" (( "(") (binary_expression "uVar3 == 0" (identifier "uVar3") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar3 = uVar3 - 1;" (assignment_expression "uVar3 = uVar3 - 1" (identifier "uVar3") (= "=") (binary_expression "uVar3 - 1" (identifier "uVar3") (- "-") (number_literal "1"))) (; ";")) (expression_statement "cVar1 = *pcVar4;" (assignment_expression "cVar1 = *pcVar4" (identifier "cVar1") (= "=") (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4"))) (; ";")) (expression_statement "pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;" (assignment_expression "pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1" (identifier "pcVar4") (= "=") (binary_expression "pcVar4 + (ulong)bVar5 * -2 + 1" (binary_expression "pcVar4 + (ulong)bVar5 * -2" (identifier "pcVar4") (+ "+") (binary_expression "(ulong)bVar5 * -2" (cast_expression "(ulong)bVar5" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar5")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "(**(code **)PTR___gmp_free_func_00107fc0)(param_3,~uVar3);" (call_expression "(**(code **)PTR___gmp_free_func_00107fc0)(param_3,~uVar3)" (parenthesized_expression "(**(code **)PTR___gmp_free_func_00107fc0)" (( "(") (pointer_expression "**(code **)PTR___gmp_free_func_00107fc0" (* "*") (pointer_expression "*(code **)PTR___gmp_free_func_00107fc0" (* "*") (cast_expression "(code **)PTR___gmp_free_func_00107fc0" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR___gmp_free_func_00107fc0")))) () ")")) (argument_list "(param_3,~uVar3)" (( "(") (identifier "param_3") (, ",") (unary_expression "~uVar3" (~ "~") (identifier "uVar3")) () ")"))) (; ";")) (expression_statement "uVar3 = 0xffffffffffffffff;" (assignment_expression "uVar3 = 0xffffffffffffffff" (identifier "uVar3") (= "=") (number_literal "0xffffffffffffffff")) (; ";")) (expression_statement "pcVar4 = local_60;" (assignment_expression "pcVar4 = local_60" (identifier "pcVar4") (= "=") (identifier "local_60")) (; ";")) (do_statement "do {\n    if (uVar3 == 0) break;\n    uVar3 = uVar3 - 1;\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n  } while (cVar1 != '\0');" (do "do") (compound_statement "{\n    if (uVar3 == 0) break;\n    uVar3 = uVar3 - 1;\n    cVar1 = *pcVar4;\n    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;\n  }" ({ "{") (if_statement "if (uVar3 == 0) break;" (if "if") (parenthesized_expression "(uVar3 == 0)" (( "(") (binary_expression "uVar3 == 0" (identifier "uVar3") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar3 = uVar3 - 1;" (assignment_expression "uVar3 = uVar3 - 1" (identifier "uVar3") (= "=") (binary_expression "uVar3 - 1" (identifier "uVar3") (- "-") (number_literal "1"))) (; ";")) (expression_statement "cVar1 = *pcVar4;" (assignment_expression "cVar1 = *pcVar4" (identifier "cVar1") (= "=") (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4"))) (; ";")) (expression_statement "pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;" (assignment_expression "pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1" (identifier "pcVar4") (= "=") (binary_expression "pcVar4 + (ulong)bVar5 * -2 + 1" (binary_expression "pcVar4 + (ulong)bVar5 * -2" (identifier "pcVar4") (+ "+") (binary_expression "(ulong)bVar5 * -2" (cast_expression "(ulong)bVar5" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar5")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (ERROR "uVar2 = std::" (assignment_expression "uVar2 = std" (identifier "uVar2") (= "=") (identifier "std")) (: ":") (: ":")) (labeled_statement "ostream::write((char *)param_1,(long)local_60);" (statement_identifier "ostream") (: ":") (ERROR ":" (: ":")) (expression_statement "write((char *)param_1,(long)local_60);" (call_expression "write((char *)param_1,(long)local_60)" (identifier "write") (argument_list "((char *)param_1,(long)local_60)" (( "(") (cast_expression "(char *)param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1")) (, ",") (cast_expression "(long)local_60" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "local_60")) () ")"))) (; ";"))) (expression_statement "(**(code **)PTR___gmp_free_func_00107fc0)(local_60,~uVar3);" (call_expression "(**(code **)PTR___gmp_free_func_00107fc0)(local_60,~uVar3)" (parenthesized_expression "(**(code **)PTR___gmp_free_func_00107fc0)" (( "(") (pointer_expression "**(code **)PTR___gmp_free_func_00107fc0" (* "*") (pointer_expression "*(code **)PTR___gmp_free_func_00107fc0" (* "*") (cast_expression "(code **)PTR___gmp_free_func_00107fc0" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR___gmp_free_func_00107fc0")))) () ")")) (argument_list "(local_60,~uVar3)" (( "(") (identifier "local_60") (, ",") (unary_expression "~uVar3" (~ "~") (identifier "uVar3")) () ")"))) (; ";")) (if_statement "if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\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 uVar2;\n  }" ({ "{") (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

type_1 * function_1(type_1 *o,type_2 *p,char *s)

{
  char var_6;
  long var_8;
  type_1 *poVar3;
  type_3 var_4;
  char *var_5;
  long var_1;
  type_4 bVar6;
  char *result;
  type_5 d;
  
  bVar6 = 0;
  var_8 = *(long *)(var_1 + 0x28);
  p->prec = -1;
  d.result = &result;
  d.alloc = 0x100;
  d.buf = (char *)(**(type_6 **)PTR___gmp_allocate_func_00107fb0)(0x100);
  d.size = 0;
  var_2(PTR___gmp_asprintf_funs_noformat_00107fc8,&d,p,s);
  var_3(&d);
  var_4 = 0xffffffffffffffff;
  var_5 = s;
  do {
    if (var_4 == 0) break;
    var_4 = var_4 - 1;
    var_6 = *var_5;
    var_5 = var_5 + (type_3)bVar6 * -2 + 1;
  } while (var_6 != '\0');
  (**(type_6 **)PTR___gmp_free_func_00107fc0)(s,~var_4);
  var_4 = 0xffffffffffffffff;
  var_5 = result;
  do {
    if (var_4 == 0) break;
    var_4 = var_4 - 1;
    var_6 = *var_5;
    var_5 = var_5 + (type_3)bVar6 * -2 + 1;
  } while (var_6 != '\0');
                    /* try { // try from 00104e94 to 00104e98 has its CatchHandler @ 00104eca */
  poVar3 = (type_1 *)std::ostream::var_7((char *)o,(long)result);
  (**(type_6 **)PTR___gmp_free_func_00107fc0)(result,~var_4);
  if (var_8 == *(long *)(var_1 + 0x28)) {
    return poVar3;
  }
                    /* WARNING: Subroutine does not return */
  var_9();
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (pointer_declarator declarator: (identifier)))) (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)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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: (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 (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) arguments: (argument_list (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) arguments: (argument_list (identifier) (unary_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence))))) (ERROR (assignment_expression left: (identifier) right: (identifier))) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier)) (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) arguments: (argument_list (identifier) (unary_expression argument: (identifier))))) (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 (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

/* MASKED(std::ostream&, doprnt_params_t*, char*) */

undefined8 MASKED(ostream *param_1,doprnt_params_t *param_2,char *param_3)

{
  char cVar1;
  undefined8 uVar2;
  ulong uVar3;
  char *pcVar4;
  long in_FS_OFFSET;
  byte bVar5;
  char *local_60;
  char **local_58;
  undefined8 local_50;
  undefined8 local_48;
  undefined8 local_40;
  long local_30;
  
  bVar5 = 0;
  local_30 = *(long *)(in_FS_OFFSET + 0x28);
  *(undefined4 *)(param_2 + 0x1c) = 0xffffffff;
  local_58 = &local_60;
  local_40 = 0x100;
  local_50 = (**(code **)PTR___gmp_allocate_func_00107fb0)(0x100);
  local_48 = 0;
  __gmp_doprnt_integer(PTR___gmp_asprintf_funs_noformat_00107fc8,&local_58,param_2,param_3);
  __gmp_asprintf_final(&local_58);
  uVar3 = 0xffffffffffffffff;
  pcVar4 = param_3;
  do {
    if (uVar3 == 0) break;
    uVar3 = uVar3 - 1;
    cVar1 = *pcVar4;
    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;
  } while (cVar1 != '\0');
  (**(code **)PTR___gmp_free_func_00107fc0)(param_3,~uVar3);
  uVar3 = 0xffffffffffffffff;
  pcVar4 = local_60;
  do {
    if (uVar3 == 0) break;
    uVar3 = uVar3 - 1;
    cVar1 = *pcVar4;
    pcVar4 = pcVar4 + (ulong)bVar5 * -2 + 1;
  } while (cVar1 != '\0');
                    /* try { // try from 00104e94 to 00104e98 has its CatchHandler @ 00104eca */
  uVar2 = std::ostream::write((char *)param_1,(long)local_60);
  (**(code **)PTR___gmp_free_func_00107fc0)(local_60,~uVar3);
  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

