
void _rl_errmsg(char *format,...)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  undefined4 in_a1;
  undefined4 uVar6;
  undefined4 in_a2;
  undefined4 in_a3;
  undefined *puVar7;
  undefined4 local_res4;
  undefined4 local_res8;
  undefined4 local_resc;
  va_list args;
  
  puVar1 = PTR_stderr_001585c8;
  puVar7 = PTR___stack_chk_guard_0015858c;
  iVar2 = *(int *)PTR___stack_chk_guard_0015858c;
  local_res4 = in_a1;
  local_res8 = in_a2;
  local_resc = in_a3;
  (*(code *)PTR_fwrite_001584ec)(PTR_DAT_001565b0 + -0x6e8,1,10,*(undefined4 *)PTR_stderr_001585c8);
  (*(code *)PTR___vfprintf_chk_001585f0)(*(undefined4 *)puVar1,1,format,&local_res4);
  uVar6 = *(undefined4 *)puVar1;
  (*(code *)PTR_fputc_00158360)(10,uVar6);
  iVar5 = *(int *)puVar1;
  (*(code *)PTR_fflush_001585d0)();
  if (iVar2 == *(int *)puVar7) {
    return;
  }
  puVar7 = PTR___stack_chk_fail_0015853c;
  (*(code *)PTR___stack_chk_fail_0015853c)();
  iVar2 = (**(code **)(puVar7 + 0x481b0))(uVar6);
  iVar3 = (**(code **)(puVar7 + 0x481b0))(iVar5);
  if (iVar2 <= iVar3) {
    iVar3 = iVar5 + iVar3;
    do {
      iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);
      if (iVar4 == 0) {
        return;
      }
      iVar5 = iVar5 + 1;
    } while (iVar2 <= iVar3 - iVar5);
  }
  return;
}



int _rl_errmsg(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  undefined4 uVar6;
  undefined *puVar7;
  undefined4 local_res4;
  undefined4 local_res8;
  undefined4 local_resc;
  
  puVar1 = PTR_stderr_001585c8;
  puVar7 = PTR___stack_chk_guard_0015858c;
  iVar2 = *(int *)PTR___stack_chk_guard_0015858c;
  local_res4 = param_2;
  local_res8 = param_3;
  local_resc = param_4;
  (*(code *)PTR_fwrite_001584ec)(PTR_DAT_001565b0 + -0x6e8,1,10,*(undefined4 *)PTR_stderr_001585c8);
  (*(code *)PTR___vfprintf_chk_001585f0)(*(undefined4 *)puVar1,1,param_1,&local_res4);
  uVar6 = *(undefined4 *)puVar1;
  (*(code *)PTR_fputc_00158360)(10,uVar6);
  iVar5 = *(int *)puVar1;
  (*(code *)PTR_fflush_001585d0)();
  if (iVar2 == *(int *)puVar7) {
    return *(int *)puVar7;
  }
  puVar7 = PTR___stack_chk_fail_0015853c;
  (*(code *)PTR___stack_chk_fail_0015853c)();
  iVar2 = (**(code **)(puVar7 + 0x481b0))(uVar6);
  iVar3 = (**(code **)(puVar7 + 0x481b0))(iVar5);
  if (iVar2 <= iVar3) {
    iVar3 = iVar5 + iVar3;
    do {
      iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);
      if (iVar4 == 0) {
        return iVar5;
      }
      iVar5 = iVar5 + 1;
    } while (iVar2 <= iVar3 - iVar5);
  }
  return 0;
}


lui gp,0x5
addiu gp,gp,-0x1c68
addu gp,gp,t9
addiu sp,sp,-0x30
sw ra,0x2c(sp)
sw s2,0x28(sp)
sw s1,0x24(sp)
sw s0,0x20(sp)
sw gp,0x10(sp)
or s2,a0,zero
sw a1,0x34(sp)
sw a2,0x38(sp)
sw a3,0x3c(sp)
lw s1,-0x5fb4(gp)
lw v0,0x0(s1)
sw v0,0x1c(sp)
addiu v0,sp,0x34
sw v0,0x18(sp)
lw s0,-0x5f78(gp)
lw a3,0x0(s0)
li a2,0xa
li a1,0x1
lw a0,-0x7f90(gp)
addiu a0,a0,-0x6e8
lw t9,-0x6054(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw a3,0x18(sp)
or a2,s2,zero
li a1,0x1
lw a0,0x0(s0)
lw t9,-0x5f50(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw a1,0x0(s0)
li a0,0xa
lw t9,-0x61e0(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw a0,0x0(s0)
lw t9,-0x5f70(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw v1,0x1c(sp)
lw v0,0x0(s1)
bne v1,v0,0x00110288
_lw ra,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x6004(gp)
jalr t9
_nop
(translation_unit "int _rl_errmsg(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined *puVar7;\n  undefined4 local_res4;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar1 = PTR_stderr_001585c8;\n  puVar7 = PTR___stack_chk_guard_0015858c;\n  iVar2 = *(int *)PTR___stack_chk_guard_0015858c;\n  local_res4 = param_2;\n  local_res8 = param_3;\n  local_resc = param_4;\n  (*(code *)PTR_fwrite_001584ec)(PTR_DAT_001565b0 + -0x6e8,1,10,*(undefined4 *)PTR_stderr_001585c8);\n  (*(code *)PTR___vfprintf_chk_001585f0)(*(undefined4 *)puVar1,1,param_1,&local_res4);\n  uVar6 = *(undefined4 *)puVar1;\n  (*(code *)PTR_fputc_00158360)(10,uVar6);\n  iVar5 = *(int *)puVar1;\n  (*(code *)PTR_fflush_001585d0)();\n  if (iVar2 == *(int *)puVar7) {\n    return *(int *)puVar7;\n  }\n  puVar7 = PTR___stack_chk_fail_0015853c;\n  (*(code *)PTR___stack_chk_fail_0015853c)();\n  iVar2 = (**(code **)(puVar7 + 0x481b0))(uVar6);\n  iVar3 = (**(code **)(puVar7 + 0x481b0))(iVar5);\n  if (iVar2 <= iVar3) {\n    iVar3 = iVar5 + iVar3;\n    do {\n      iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);\n      if (iVar4 == 0) {\n        return iVar5;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar2 <= iVar3 - iVar5);\n  }\n  return 0;\n}\n\n" (function_definition "int _rl_errmsg(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined *puVar7;\n  undefined4 local_res4;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar1 = PTR_stderr_001585c8;\n  puVar7 = PTR___stack_chk_guard_0015858c;\n  iVar2 = *(int *)PTR___stack_chk_guard_0015858c;\n  local_res4 = param_2;\n  local_res8 = param_3;\n  local_resc = param_4;\n  (*(code *)PTR_fwrite_001584ec)(PTR_DAT_001565b0 + -0x6e8,1,10,*(undefined4 *)PTR_stderr_001585c8);\n  (*(code *)PTR___vfprintf_chk_001585f0)(*(undefined4 *)puVar1,1,param_1,&local_res4);\n  uVar6 = *(undefined4 *)puVar1;\n  (*(code *)PTR_fputc_00158360)(10,uVar6);\n  iVar5 = *(int *)puVar1;\n  (*(code *)PTR_fflush_001585d0)();\n  if (iVar2 == *(int *)puVar7) {\n    return *(int *)puVar7;\n  }\n  puVar7 = PTR___stack_chk_fail_0015853c;\n  (*(code *)PTR___stack_chk_fail_0015853c)();\n  iVar2 = (**(code **)(puVar7 + 0x481b0))(uVar6);\n  iVar3 = (**(code **)(puVar7 + 0x481b0))(iVar5);\n  if (iVar2 <= iVar3) {\n    iVar3 = iVar5 + iVar3;\n    do {\n      iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);\n      if (iVar4 == 0) {\n        return iVar5;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar2 <= iVar3 - iVar5);\n  }\n  return 0;\n}" primitive_type (function_declarator "_rl_errmsg(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined *puVar7;\n  undefined4 local_res4;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar1 = PTR_stderr_001585c8;\n  puVar7 = PTR___stack_chk_guard_0015858c;\n  iVar2 = *(int *)PTR___stack_chk_guard_0015858c;\n  local_res4 = param_2;\n  local_res8 = param_3;\n  local_resc = param_4;\n  (*(code *)PTR_fwrite_001584ec)(PTR_DAT_001565b0 + -0x6e8,1,10,*(undefined4 *)PTR_stderr_001585c8);\n  (*(code *)PTR___vfprintf_chk_001585f0)(*(undefined4 *)puVar1,1,param_1,&local_res4);\n  uVar6 = *(undefined4 *)puVar1;\n  (*(code *)PTR_fputc_00158360)(10,uVar6);\n  iVar5 = *(int *)puVar1;\n  (*(code *)PTR_fflush_001585d0)();\n  if (iVar2 == *(int *)puVar7) {\n    return *(int *)puVar7;\n  }\n  puVar7 = PTR___stack_chk_fail_0015853c;\n  (*(code *)PTR___stack_chk_fail_0015853c)();\n  iVar2 = (**(code **)(puVar7 + 0x481b0))(uVar6);\n  iVar3 = (**(code **)(puVar7 + 0x481b0))(iVar5);\n  if (iVar2 <= iVar3) {\n    iVar3 = iVar5 + iVar3;\n    do {\n      iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);\n      if (iVar4 == 0) {\n        return iVar5;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar2 <= iVar3 - iVar5);\n  }\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 local_res4;" type_identifier identifier ;) (declaration "undefined4 local_res8;" type_identifier identifier ;) (declaration "undefined4 local_resc;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_stderr_001585c8;" (assignment_expression "puVar1 = PTR_stderr_001585c8" identifier = identifier) ;) (expression_statement "puVar7 = PTR___stack_chk_guard_0015858c;" (assignment_expression "puVar7 = PTR___stack_chk_guard_0015858c" identifier = identifier) ;) (expression_statement "iVar2 = *(int *)PTR___stack_chk_guard_0015858c;" (assignment_expression "iVar2 = *(int *)PTR___stack_chk_guard_0015858c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0015858c" * (cast_expression "(int *)PTR___stack_chk_guard_0015858c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_res4 = param_2;" (assignment_expression "local_res4 = param_2" identifier = identifier) ;) (expression_statement "local_res8 = param_3;" (assignment_expression "local_res8 = param_3" identifier = identifier) ;) (expression_statement "local_resc = param_4;" (assignment_expression "local_resc = param_4" identifier = identifier) ;) (expression_statement "(*(code *)PTR_fwrite_001584ec)(PTR_DAT_001565b0 + -0x6e8,1,10,*(undefined4 *)PTR_stderr_001585c8);" (call_expression "(*(code *)PTR_fwrite_001584ec)(PTR_DAT_001565b0 + -0x6e8,1,10,*(undefined4 *)PTR_stderr_001585c8)" (parenthesized_expression "(*(code *)PTR_fwrite_001584ec)" ( (pointer_expression "*(code *)PTR_fwrite_001584ec" * (cast_expression "(code *)PTR_fwrite_001584ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001565b0 + -0x6e8,1,10,*(undefined4 *)PTR_stderr_001585c8)" ( (binary_expression "PTR_DAT_001565b0 + -0x6e8" identifier + number_literal) , number_literal , number_literal , (pointer_expression "*(undefined4 *)PTR_stderr_001585c8" * (cast_expression "(undefined4 *)PTR_stderr_001585c8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "(*(code *)PTR___vfprintf_chk_001585f0)(*(undefined4 *)puVar1,1,param_1,&local_res4);" (call_expression "(*(code *)PTR___vfprintf_chk_001585f0)(*(undefined4 *)puVar1,1,param_1,&local_res4)" (parenthesized_expression "(*(code *)PTR___vfprintf_chk_001585f0)" ( (pointer_expression "*(code *)PTR___vfprintf_chk_001585f0" * (cast_expression "(code *)PTR___vfprintf_chk_001585f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)puVar1,1,param_1,&local_res4)" ( (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , identifier , (pointer_expression "&local_res4" & identifier) ))) ;) (expression_statement "uVar6 = *(undefined4 *)puVar1;" (assignment_expression "uVar6 = *(undefined4 *)puVar1" identifier = (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "(*(code *)PTR_fputc_00158360)(10,uVar6);" (call_expression "(*(code *)PTR_fputc_00158360)(10,uVar6)" (parenthesized_expression "(*(code *)PTR_fputc_00158360)" ( (pointer_expression "*(code *)PTR_fputc_00158360" * (cast_expression "(code *)PTR_fputc_00158360" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(10,uVar6)" ( number_literal , identifier ))) ;) (expression_statement "iVar5 = *(int *)puVar1;" (assignment_expression "iVar5 = *(int *)puVar1" identifier = (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "(*(code *)PTR_fflush_001585d0)();" (call_expression "(*(code *)PTR_fflush_001585d0)()" (parenthesized_expression "(*(code *)PTR_fflush_001585d0)" ( (pointer_expression "*(code *)PTR_fflush_001585d0" * (cast_expression "(code *)PTR_fflush_001585d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (iVar2 == *(int *)puVar7) {\n    return *(int *)puVar7;\n  }" if (parenthesized_expression "(iVar2 == *(int *)puVar7)" ( (binary_expression "iVar2 == *(int *)puVar7" identifier == (pointer_expression "*(int *)puVar7" * (cast_expression "(int *)puVar7" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return *(int *)puVar7;\n  }" { (return_statement "return *(int *)puVar7;" return (pointer_expression "*(int *)puVar7" * (cast_expression "(int *)puVar7" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "puVar7 = PTR___stack_chk_fail_0015853c;" (assignment_expression "puVar7 = PTR___stack_chk_fail_0015853c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0015853c)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015853c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015853c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0015853c" * (cast_expression "(code *)PTR___stack_chk_fail_0015853c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar2 = (**(code **)(puVar7 + 0x481b0))(uVar6);" (assignment_expression "iVar2 = (**(code **)(puVar7 + 0x481b0))(uVar6)" identifier = (call_expression "(**(code **)(puVar7 + 0x481b0))(uVar6)" (parenthesized_expression "(**(code **)(puVar7 + 0x481b0))" ( (pointer_expression "**(code **)(puVar7 + 0x481b0)" * (pointer_expression "*(code **)(puVar7 + 0x481b0)" * (cast_expression "(code **)(puVar7 + 0x481b0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x481b0)" ( (binary_expression "puVar7 + 0x481b0" identifier + number_literal) ))))) )) (argument_list "(uVar6)" ( identifier )))) ;) (expression_statement "iVar3 = (**(code **)(puVar7 + 0x481b0))(iVar5);" (assignment_expression "iVar3 = (**(code **)(puVar7 + 0x481b0))(iVar5)" identifier = (call_expression "(**(code **)(puVar7 + 0x481b0))(iVar5)" (parenthesized_expression "(**(code **)(puVar7 + 0x481b0))" ( (pointer_expression "**(code **)(puVar7 + 0x481b0)" * (pointer_expression "*(code **)(puVar7 + 0x481b0)" * (cast_expression "(code **)(puVar7 + 0x481b0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x481b0)" ( (binary_expression "puVar7 + 0x481b0" identifier + number_literal) ))))) )) (argument_list "(iVar5)" ( identifier )))) ;) (if_statement "if (iVar2 <= iVar3) {\n    iVar3 = iVar5 + iVar3;\n    do {\n      iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);\n      if (iVar4 == 0) {\n        return iVar5;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar2 <= iVar3 - iVar5);\n  }" if (parenthesized_expression "(iVar2 <= iVar3)" ( (binary_expression "iVar2 <= iVar3" identifier <= identifier) )) (compound_statement "{\n    iVar3 = iVar5 + iVar3;\n    do {\n      iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);\n      if (iVar4 == 0) {\n        return iVar5;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar2 <= iVar3 - iVar5);\n  }" { (expression_statement "iVar3 = iVar5 + iVar3;" (assignment_expression "iVar3 = iVar5 + iVar3" identifier = (binary_expression "iVar5 + iVar3" identifier + identifier)) ;) (do_statement "do {\n      iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);\n      if (iVar4 == 0) {\n        return iVar5;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar2 <= iVar3 - iVar5);" do (compound_statement "{\n      iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);\n      if (iVar4 == 0) {\n        return iVar5;\n      }\n      iVar5 = iVar5 + 1;\n    }" { (expression_statement "iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);" (assignment_expression "iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2)" identifier = (call_expression "(**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2)" (parenthesized_expression "(**(code **)(puVar7 + 0x48124))" ( (pointer_expression "**(code **)(puVar7 + 0x48124)" * (pointer_expression "*(code **)(puVar7 + 0x48124)" * (cast_expression "(code **)(puVar7 + 0x48124)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x48124)" ( (binary_expression "puVar7 + 0x48124" identifier + number_literal) ))))) )) (argument_list "(iVar5,uVar6,iVar2)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar4 == 0) {\n        return iVar5;\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        return iVar5;\n      }" { (return_statement "return iVar5;" return identifier ;) })) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 <= iVar3 - iVar5)" ( (binary_expression "iVar2 <= iVar3 - iVar5" identifier <= (binary_expression "iVar3 - iVar5" identifier - identifier)) )) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "void _rl_errmsg(char *format,...)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 in_a1;\n  undefined4 uVar6;\n  undefined4 in_a2;\n  undefined4 in_a3;\n  undefined *puVar7;\n  undefined4 local_res4;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  va_list args;\n  \n  puVar1 = PTR_stderr_001585c8;\n  puVar7 = PTR___stack_chk_guard_0015858c;\n  iVar2 = *(int *)PTR___stack_chk_guard_0015858c;\n  local_res4 = in_a1;\n  local_res8 = in_a2;\n  local_resc = in_a3;\n  (*(code *)PTR_fwrite_001584ec)(PTR_DAT_001565b0 + -0x6e8,1,10,*(undefined4 *)PTR_stderr_001585c8);\n  (*(code *)PTR___vfprintf_chk_001585f0)(*(undefined4 *)puVar1,1,format,&local_res4);\n  uVar6 = *(undefined4 *)puVar1;\n  (*(code *)PTR_fputc_00158360)(10,uVar6);\n  iVar5 = *(int *)puVar1;\n  (*(code *)PTR_fflush_001585d0)();\n  if (iVar2 == *(int *)puVar7) {\n    return;\n  }\n  puVar7 = PTR___stack_chk_fail_0015853c;\n  (*(code *)PTR___stack_chk_fail_0015853c)();\n  iVar2 = (**(code **)(puVar7 + 0x481b0))(uVar6);\n  iVar3 = (**(code **)(puVar7 + 0x481b0))(iVar5);\n  if (iVar2 <= iVar3) {\n    iVar3 = iVar5 + iVar3;\n    do {\n      iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);\n      if (iVar4 == 0) {\n        return;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar2 <= iVar3 - iVar5);\n  }\n  return;\n}\n\n" (function_definition "void _rl_errmsg(char *format,...)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 in_a1;\n  undefined4 uVar6;\n  undefined4 in_a2;\n  undefined4 in_a3;\n  undefined *puVar7;\n  undefined4 local_res4;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  va_list args;\n  \n  puVar1 = PTR_stderr_001585c8;\n  puVar7 = PTR___stack_chk_guard_0015858c;\n  iVar2 = *(int *)PTR___stack_chk_guard_0015858c;\n  local_res4 = in_a1;\n  local_res8 = in_a2;\n  local_resc = in_a3;\n  (*(code *)PTR_fwrite_001584ec)(PTR_DAT_001565b0 + -0x6e8,1,10,*(undefined4 *)PTR_stderr_001585c8);\n  (*(code *)PTR___vfprintf_chk_001585f0)(*(undefined4 *)puVar1,1,format,&local_res4);\n  uVar6 = *(undefined4 *)puVar1;\n  (*(code *)PTR_fputc_00158360)(10,uVar6);\n  iVar5 = *(int *)puVar1;\n  (*(code *)PTR_fflush_001585d0)();\n  if (iVar2 == *(int *)puVar7) {\n    return;\n  }\n  puVar7 = PTR___stack_chk_fail_0015853c;\n  (*(code *)PTR___stack_chk_fail_0015853c)();\n  iVar2 = (**(code **)(puVar7 + 0x481b0))(uVar6);\n  iVar3 = (**(code **)(puVar7 + 0x481b0))(iVar5);\n  if (iVar2 <= iVar3) {\n    iVar3 = iVar5 + iVar3;\n    do {\n      iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);\n      if (iVar4 == 0) {\n        return;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar2 <= iVar3 - iVar5);\n  }\n  return;\n}" primitive_type (function_declarator "_rl_errmsg(char *format,...)" identifier (parameter_list "(char *format,...)" ( (parameter_declaration "char *format" primitive_type (pointer_declarator "*format" * identifier)) , (variadic_parameter "..." ...) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 in_a1;\n  undefined4 uVar6;\n  undefined4 in_a2;\n  undefined4 in_a3;\n  undefined *puVar7;\n  undefined4 local_res4;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  va_list args;\n  \n  puVar1 = PTR_stderr_001585c8;\n  puVar7 = PTR___stack_chk_guard_0015858c;\n  iVar2 = *(int *)PTR___stack_chk_guard_0015858c;\n  local_res4 = in_a1;\n  local_res8 = in_a2;\n  local_resc = in_a3;\n  (*(code *)PTR_fwrite_001584ec)(PTR_DAT_001565b0 + -0x6e8,1,10,*(undefined4 *)PTR_stderr_001585c8);\n  (*(code *)PTR___vfprintf_chk_001585f0)(*(undefined4 *)puVar1,1,format,&local_res4);\n  uVar6 = *(undefined4 *)puVar1;\n  (*(code *)PTR_fputc_00158360)(10,uVar6);\n  iVar5 = *(int *)puVar1;\n  (*(code *)PTR_fflush_001585d0)();\n  if (iVar2 == *(int *)puVar7) {\n    return;\n  }\n  puVar7 = PTR___stack_chk_fail_0015853c;\n  (*(code *)PTR___stack_chk_fail_0015853c)();\n  iVar2 = (**(code **)(puVar7 + 0x481b0))(uVar6);\n  iVar3 = (**(code **)(puVar7 + 0x481b0))(iVar5);\n  if (iVar2 <= iVar3) {\n    iVar3 = iVar5 + iVar3;\n    do {\n      iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);\n      if (iVar4 == 0) {\n        return;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar2 <= iVar3 - iVar5);\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 in_a1;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 in_a2;" type_identifier identifier ;) (declaration "undefined4 in_a3;" type_identifier identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 local_res4;" type_identifier identifier ;) (declaration "undefined4 local_res8;" type_identifier identifier ;) (declaration "undefined4 local_resc;" type_identifier identifier ;) (declaration "va_list args;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_stderr_001585c8;" (assignment_expression "puVar1 = PTR_stderr_001585c8" identifier = identifier) ;) (expression_statement "puVar7 = PTR___stack_chk_guard_0015858c;" (assignment_expression "puVar7 = PTR___stack_chk_guard_0015858c" identifier = identifier) ;) (expression_statement "iVar2 = *(int *)PTR___stack_chk_guard_0015858c;" (assignment_expression "iVar2 = *(int *)PTR___stack_chk_guard_0015858c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0015858c" * (cast_expression "(int *)PTR___stack_chk_guard_0015858c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_res4 = in_a1;" (assignment_expression "local_res4 = in_a1" identifier = identifier) ;) (expression_statement "local_res8 = in_a2;" (assignment_expression "local_res8 = in_a2" identifier = identifier) ;) (expression_statement "local_resc = in_a3;" (assignment_expression "local_resc = in_a3" identifier = identifier) ;) (expression_statement "(*(code *)PTR_fwrite_001584ec)(PTR_DAT_001565b0 + -0x6e8,1,10,*(undefined4 *)PTR_stderr_001585c8);" (call_expression "(*(code *)PTR_fwrite_001584ec)(PTR_DAT_001565b0 + -0x6e8,1,10,*(undefined4 *)PTR_stderr_001585c8)" (parenthesized_expression "(*(code *)PTR_fwrite_001584ec)" ( (pointer_expression "*(code *)PTR_fwrite_001584ec" * (cast_expression "(code *)PTR_fwrite_001584ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001565b0 + -0x6e8,1,10,*(undefined4 *)PTR_stderr_001585c8)" ( (binary_expression "PTR_DAT_001565b0 + -0x6e8" identifier + number_literal) , number_literal , number_literal , (pointer_expression "*(undefined4 *)PTR_stderr_001585c8" * (cast_expression "(undefined4 *)PTR_stderr_001585c8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "(*(code *)PTR___vfprintf_chk_001585f0)(*(undefined4 *)puVar1,1,format,&local_res4);" (call_expression "(*(code *)PTR___vfprintf_chk_001585f0)(*(undefined4 *)puVar1,1,format,&local_res4)" (parenthesized_expression "(*(code *)PTR___vfprintf_chk_001585f0)" ( (pointer_expression "*(code *)PTR___vfprintf_chk_001585f0" * (cast_expression "(code *)PTR___vfprintf_chk_001585f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)puVar1,1,format,&local_res4)" ( (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , identifier , (pointer_expression "&local_res4" & identifier) ))) ;) (expression_statement "uVar6 = *(undefined4 *)puVar1;" (assignment_expression "uVar6 = *(undefined4 *)puVar1" identifier = (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "(*(code *)PTR_fputc_00158360)(10,uVar6);" (call_expression "(*(code *)PTR_fputc_00158360)(10,uVar6)" (parenthesized_expression "(*(code *)PTR_fputc_00158360)" ( (pointer_expression "*(code *)PTR_fputc_00158360" * (cast_expression "(code *)PTR_fputc_00158360" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(10,uVar6)" ( number_literal , identifier ))) ;) (expression_statement "iVar5 = *(int *)puVar1;" (assignment_expression "iVar5 = *(int *)puVar1" identifier = (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "(*(code *)PTR_fflush_001585d0)();" (call_expression "(*(code *)PTR_fflush_001585d0)()" (parenthesized_expression "(*(code *)PTR_fflush_001585d0)" ( (pointer_expression "*(code *)PTR_fflush_001585d0" * (cast_expression "(code *)PTR_fflush_001585d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (iVar2 == *(int *)puVar7) {\n    return;\n  }" if (parenthesized_expression "(iVar2 == *(int *)puVar7)" ( (binary_expression "iVar2 == *(int *)puVar7" identifier == (pointer_expression "*(int *)puVar7" * (cast_expression "(int *)puVar7" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar7 = PTR___stack_chk_fail_0015853c;" (assignment_expression "puVar7 = PTR___stack_chk_fail_0015853c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0015853c)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015853c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015853c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0015853c" * (cast_expression "(code *)PTR___stack_chk_fail_0015853c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar2 = (**(code **)(puVar7 + 0x481b0))(uVar6);" (assignment_expression "iVar2 = (**(code **)(puVar7 + 0x481b0))(uVar6)" identifier = (call_expression "(**(code **)(puVar7 + 0x481b0))(uVar6)" (parenthesized_expression "(**(code **)(puVar7 + 0x481b0))" ( (pointer_expression "**(code **)(puVar7 + 0x481b0)" * (pointer_expression "*(code **)(puVar7 + 0x481b0)" * (cast_expression "(code **)(puVar7 + 0x481b0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x481b0)" ( (binary_expression "puVar7 + 0x481b0" identifier + number_literal) ))))) )) (argument_list "(uVar6)" ( identifier )))) ;) (expression_statement "iVar3 = (**(code **)(puVar7 + 0x481b0))(iVar5);" (assignment_expression "iVar3 = (**(code **)(puVar7 + 0x481b0))(iVar5)" identifier = (call_expression "(**(code **)(puVar7 + 0x481b0))(iVar5)" (parenthesized_expression "(**(code **)(puVar7 + 0x481b0))" ( (pointer_expression "**(code **)(puVar7 + 0x481b0)" * (pointer_expression "*(code **)(puVar7 + 0x481b0)" * (cast_expression "(code **)(puVar7 + 0x481b0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x481b0)" ( (binary_expression "puVar7 + 0x481b0" identifier + number_literal) ))))) )) (argument_list "(iVar5)" ( identifier )))) ;) (if_statement "if (iVar2 <= iVar3) {\n    iVar3 = iVar5 + iVar3;\n    do {\n      iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);\n      if (iVar4 == 0) {\n        return;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar2 <= iVar3 - iVar5);\n  }" if (parenthesized_expression "(iVar2 <= iVar3)" ( (binary_expression "iVar2 <= iVar3" identifier <= identifier) )) (compound_statement "{\n    iVar3 = iVar5 + iVar3;\n    do {\n      iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);\n      if (iVar4 == 0) {\n        return;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar2 <= iVar3 - iVar5);\n  }" { (expression_statement "iVar3 = iVar5 + iVar3;" (assignment_expression "iVar3 = iVar5 + iVar3" identifier = (binary_expression "iVar5 + iVar3" identifier + identifier)) ;) (do_statement "do {\n      iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);\n      if (iVar4 == 0) {\n        return;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar2 <= iVar3 - iVar5);" do (compound_statement "{\n      iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);\n      if (iVar4 == 0) {\n        return;\n      }\n      iVar5 = iVar5 + 1;\n    }" { (expression_statement "iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);" (assignment_expression "iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2)" identifier = (call_expression "(**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2)" (parenthesized_expression "(**(code **)(puVar7 + 0x48124))" ( (pointer_expression "**(code **)(puVar7 + 0x48124)" * (pointer_expression "*(code **)(puVar7 + 0x48124)" * (cast_expression "(code **)(puVar7 + 0x48124)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x48124)" ( (binary_expression "puVar7 + 0x48124" identifier + number_literal) ))))) )) (argument_list "(iVar5,uVar6,iVar2)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar4 == 0) {\n        return;\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 <= iVar3 - iVar5)" ( (binary_expression "iVar2 <= iVar3 - iVar5" identifier <= (binary_expression "iVar3 - iVar5" identifier - identifier)) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "int _rl_errmsg(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined *puVar7;\n  undefined4 local_res4;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar1 = PTR_stderr_001585c8;\n  puVar7 = PTR___stack_chk_guard_0015858c;\n  iVar2 = *(int *)PTR___stack_chk_guard_0015858c;\n  local_res4 = param_2;\n  local_res8 = param_3;\n  local_resc = param_4;\n  (*(code *)PTR_fwrite_001584ec)(PTR_DAT_001565b0 + -0x6e8,1,10,*(undefined4 *)PTR_stderr_001585c8);\n  (*(code *)PTR___vfprintf_chk_001585f0)(*(undefined4 *)puVar1,1,param_1,&local_res4);\n  uVar6 = *(undefined4 *)puVar1;\n  (*(code *)PTR_fputc_00158360)(10,uVar6);\n  iVar5 = *(int *)puVar1;\n  (*(code *)PTR_fflush_001585d0)();\n  if (iVar2 == *(int *)puVar7) {\n    return *(int *)puVar7;\n  }\n  puVar7 = PTR___stack_chk_fail_0015853c;\n  (*(code *)PTR___stack_chk_fail_0015853c)();\n  iVar2 = (**(code **)(puVar7 + 0x481b0))(uVar6);\n  iVar3 = (**(code **)(puVar7 + 0x481b0))(iVar5);\n  if (iVar2 <= iVar3) {\n    iVar3 = iVar5 + iVar3;\n    do {\n      iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);\n      if (iVar4 == 0) {\n        return iVar5;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar2 <= iVar3 - iVar5);\n  }\n  return 0;\n}\n\n" (function_definition "int _rl_errmsg(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined *puVar7;\n  undefined4 local_res4;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar1 = PTR_stderr_001585c8;\n  puVar7 = PTR___stack_chk_guard_0015858c;\n  iVar2 = *(int *)PTR___stack_chk_guard_0015858c;\n  local_res4 = param_2;\n  local_res8 = param_3;\n  local_resc = param_4;\n  (*(code *)PTR_fwrite_001584ec)(PTR_DAT_001565b0 + -0x6e8,1,10,*(undefined4 *)PTR_stderr_001585c8);\n  (*(code *)PTR___vfprintf_chk_001585f0)(*(undefined4 *)puVar1,1,param_1,&local_res4);\n  uVar6 = *(undefined4 *)puVar1;\n  (*(code *)PTR_fputc_00158360)(10,uVar6);\n  iVar5 = *(int *)puVar1;\n  (*(code *)PTR_fflush_001585d0)();\n  if (iVar2 == *(int *)puVar7) {\n    return *(int *)puVar7;\n  }\n  puVar7 = PTR___stack_chk_fail_0015853c;\n  (*(code *)PTR___stack_chk_fail_0015853c)();\n  iVar2 = (**(code **)(puVar7 + 0x481b0))(uVar6);\n  iVar3 = (**(code **)(puVar7 + 0x481b0))(iVar5);\n  if (iVar2 <= iVar3) {\n    iVar3 = iVar5 + iVar3;\n    do {\n      iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);\n      if (iVar4 == 0) {\n        return iVar5;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar2 <= iVar3 - iVar5);\n  }\n  return 0;\n}" primitive_type (function_declarator "_rl_errmsg(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined *puVar7;\n  undefined4 local_res4;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar1 = PTR_stderr_001585c8;\n  puVar7 = PTR___stack_chk_guard_0015858c;\n  iVar2 = *(int *)PTR___stack_chk_guard_0015858c;\n  local_res4 = param_2;\n  local_res8 = param_3;\n  local_resc = param_4;\n  (*(code *)PTR_fwrite_001584ec)(PTR_DAT_001565b0 + -0x6e8,1,10,*(undefined4 *)PTR_stderr_001585c8);\n  (*(code *)PTR___vfprintf_chk_001585f0)(*(undefined4 *)puVar1,1,param_1,&local_res4);\n  uVar6 = *(undefined4 *)puVar1;\n  (*(code *)PTR_fputc_00158360)(10,uVar6);\n  iVar5 = *(int *)puVar1;\n  (*(code *)PTR_fflush_001585d0)();\n  if (iVar2 == *(int *)puVar7) {\n    return *(int *)puVar7;\n  }\n  puVar7 = PTR___stack_chk_fail_0015853c;\n  (*(code *)PTR___stack_chk_fail_0015853c)();\n  iVar2 = (**(code **)(puVar7 + 0x481b0))(uVar6);\n  iVar3 = (**(code **)(puVar7 + 0x481b0))(iVar5);\n  if (iVar2 <= iVar3) {\n    iVar3 = iVar5 + iVar3;\n    do {\n      iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);\n      if (iVar4 == 0) {\n        return iVar5;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar2 <= iVar3 - iVar5);\n  }\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 local_res4;" type_identifier identifier ;) (declaration "undefined4 local_res8;" type_identifier identifier ;) (declaration "undefined4 local_resc;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_stderr_001585c8;" (assignment_expression "puVar1 = PTR_stderr_001585c8" identifier = identifier) ;) (expression_statement "puVar7 = PTR___stack_chk_guard_0015858c;" (assignment_expression "puVar7 = PTR___stack_chk_guard_0015858c" identifier = identifier) ;) (expression_statement "iVar2 = *(int *)PTR___stack_chk_guard_0015858c;" (assignment_expression "iVar2 = *(int *)PTR___stack_chk_guard_0015858c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0015858c" * (cast_expression "(int *)PTR___stack_chk_guard_0015858c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_res4 = param_2;" (assignment_expression "local_res4 = param_2" identifier = identifier) ;) (expression_statement "local_res8 = param_3;" (assignment_expression "local_res8 = param_3" identifier = identifier) ;) (expression_statement "local_resc = param_4;" (assignment_expression "local_resc = param_4" identifier = identifier) ;) (expression_statement "(*(code *)PTR_fwrite_001584ec)(PTR_DAT_001565b0 + -0x6e8,1,10,*(undefined4 *)PTR_stderr_001585c8);" (call_expression "(*(code *)PTR_fwrite_001584ec)(PTR_DAT_001565b0 + -0x6e8,1,10,*(undefined4 *)PTR_stderr_001585c8)" (parenthesized_expression "(*(code *)PTR_fwrite_001584ec)" ( (pointer_expression "*(code *)PTR_fwrite_001584ec" * (cast_expression "(code *)PTR_fwrite_001584ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001565b0 + -0x6e8,1,10,*(undefined4 *)PTR_stderr_001585c8)" ( (binary_expression "PTR_DAT_001565b0 + -0x6e8" identifier + number_literal) , number_literal , number_literal , (pointer_expression "*(undefined4 *)PTR_stderr_001585c8" * (cast_expression "(undefined4 *)PTR_stderr_001585c8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "(*(code *)PTR___vfprintf_chk_001585f0)(*(undefined4 *)puVar1,1,param_1,&local_res4);" (call_expression "(*(code *)PTR___vfprintf_chk_001585f0)(*(undefined4 *)puVar1,1,param_1,&local_res4)" (parenthesized_expression "(*(code *)PTR___vfprintf_chk_001585f0)" ( (pointer_expression "*(code *)PTR___vfprintf_chk_001585f0" * (cast_expression "(code *)PTR___vfprintf_chk_001585f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)puVar1,1,param_1,&local_res4)" ( (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , identifier , (pointer_expression "&local_res4" & identifier) ))) ;) (expression_statement "uVar6 = *(undefined4 *)puVar1;" (assignment_expression "uVar6 = *(undefined4 *)puVar1" identifier = (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "(*(code *)PTR_fputc_00158360)(10,uVar6);" (call_expression "(*(code *)PTR_fputc_00158360)(10,uVar6)" (parenthesized_expression "(*(code *)PTR_fputc_00158360)" ( (pointer_expression "*(code *)PTR_fputc_00158360" * (cast_expression "(code *)PTR_fputc_00158360" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(10,uVar6)" ( number_literal , identifier ))) ;) (expression_statement "iVar5 = *(int *)puVar1;" (assignment_expression "iVar5 = *(int *)puVar1" identifier = (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "(*(code *)PTR_fflush_001585d0)();" (call_expression "(*(code *)PTR_fflush_001585d0)()" (parenthesized_expression "(*(code *)PTR_fflush_001585d0)" ( (pointer_expression "*(code *)PTR_fflush_001585d0" * (cast_expression "(code *)PTR_fflush_001585d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (iVar2 == *(int *)puVar7) {\n    return *(int *)puVar7;\n  }" if (parenthesized_expression "(iVar2 == *(int *)puVar7)" ( (binary_expression "iVar2 == *(int *)puVar7" identifier == (pointer_expression "*(int *)puVar7" * (cast_expression "(int *)puVar7" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return *(int *)puVar7;\n  }" { (return_statement "return *(int *)puVar7;" return (pointer_expression "*(int *)puVar7" * (cast_expression "(int *)puVar7" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "puVar7 = PTR___stack_chk_fail_0015853c;" (assignment_expression "puVar7 = PTR___stack_chk_fail_0015853c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0015853c)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015853c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015853c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0015853c" * (cast_expression "(code *)PTR___stack_chk_fail_0015853c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar2 = (**(code **)(puVar7 + 0x481b0))(uVar6);" (assignment_expression "iVar2 = (**(code **)(puVar7 + 0x481b0))(uVar6)" identifier = (call_expression "(**(code **)(puVar7 + 0x481b0))(uVar6)" (parenthesized_expression "(**(code **)(puVar7 + 0x481b0))" ( (pointer_expression "**(code **)(puVar7 + 0x481b0)" * (pointer_expression "*(code **)(puVar7 + 0x481b0)" * (cast_expression "(code **)(puVar7 + 0x481b0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x481b0)" ( (binary_expression "puVar7 + 0x481b0" identifier + number_literal) ))))) )) (argument_list "(uVar6)" ( identifier )))) ;) (expression_statement "iVar3 = (**(code **)(puVar7 + 0x481b0))(iVar5);" (assignment_expression "iVar3 = (**(code **)(puVar7 + 0x481b0))(iVar5)" identifier = (call_expression "(**(code **)(puVar7 + 0x481b0))(iVar5)" (parenthesized_expression "(**(code **)(puVar7 + 0x481b0))" ( (pointer_expression "**(code **)(puVar7 + 0x481b0)" * (pointer_expression "*(code **)(puVar7 + 0x481b0)" * (cast_expression "(code **)(puVar7 + 0x481b0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x481b0)" ( (binary_expression "puVar7 + 0x481b0" identifier + number_literal) ))))) )) (argument_list "(iVar5)" ( identifier )))) ;) (if_statement "if (iVar2 <= iVar3) {\n    iVar3 = iVar5 + iVar3;\n    do {\n      iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);\n      if (iVar4 == 0) {\n        return iVar5;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar2 <= iVar3 - iVar5);\n  }" if (parenthesized_expression "(iVar2 <= iVar3)" ( (binary_expression "iVar2 <= iVar3" identifier <= identifier) )) (compound_statement "{\n    iVar3 = iVar5 + iVar3;\n    do {\n      iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);\n      if (iVar4 == 0) {\n        return iVar5;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar2 <= iVar3 - iVar5);\n  }" { (expression_statement "iVar3 = iVar5 + iVar3;" (assignment_expression "iVar3 = iVar5 + iVar3" identifier = (binary_expression "iVar5 + iVar3" identifier + identifier)) ;) (do_statement "do {\n      iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);\n      if (iVar4 == 0) {\n        return iVar5;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar2 <= iVar3 - iVar5);" do (compound_statement "{\n      iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);\n      if (iVar4 == 0) {\n        return iVar5;\n      }\n      iVar5 = iVar5 + 1;\n    }" { (expression_statement "iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);" (assignment_expression "iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2)" identifier = (call_expression "(**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2)" (parenthesized_expression "(**(code **)(puVar7 + 0x48124))" ( (pointer_expression "**(code **)(puVar7 + 0x48124)" * (pointer_expression "*(code **)(puVar7 + 0x48124)" * (cast_expression "(code **)(puVar7 + 0x48124)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x48124)" ( (binary_expression "puVar7 + 0x48124" identifier + number_literal) ))))) )) (argument_list "(iVar5,uVar6,iVar2)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar4 == 0) {\n        return iVar5;\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        return iVar5;\n      }" { (return_statement "return iVar5;" return identifier ;) })) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 <= iVar3 - iVar5)" ( (binary_expression "iVar2 <= iVar3 - iVar5" identifier <= (binary_expression "iVar3 - iVar5" identifier - identifier)) )) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , LIT , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , LIT , IDENT , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT <= (binary_expression IDENT - IDENT)) )) ;) })) (return_statement return LIT ;) })))
(function_definition "int _rl_errmsg(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined *puVar7;\n  undefined4 local_res4;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar1 = PTR_stderr_001585c8;\n  puVar7 = PTR___stack_chk_guard_0015858c;\n  iVar2 = *(int *)PTR___stack_chk_guard_0015858c;\n  local_res4 = param_2;\n  local_res8 = param_3;\n  local_resc = param_4;\n  (*(code *)PTR_fwrite_001584ec)(PTR_DAT_001565b0 + -0x6e8,1,10,*(undefined4 *)PTR_stderr_001585c8);\n  (*(code *)PTR___vfprintf_chk_001585f0)(*(undefined4 *)puVar1,1,param_1,&local_res4);\n  uVar6 = *(undefined4 *)puVar1;\n  (*(code *)PTR_fputc_00158360)(10,uVar6);\n  iVar5 = *(int *)puVar1;\n  (*(code *)PTR_fflush_001585d0)();\n  if (iVar2 == *(int *)puVar7) {\n    return *(int *)puVar7;\n  }\n  puVar7 = PTR___stack_chk_fail_0015853c;\n  (*(code *)PTR___stack_chk_fail_0015853c)();\n  iVar2 = (**(code **)(puVar7 + 0x481b0))(uVar6);\n  iVar3 = (**(code **)(puVar7 + 0x481b0))(iVar5);\n  if (iVar2 <= iVar3) {\n    iVar3 = iVar5 + iVar3;\n    do {\n      iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);\n      if (iVar4 == 0) {\n        return iVar5;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar2 <= iVar3 - iVar5);\n  }\n  return 0;\n}" (primitive_type "int") (function_declarator "_rl_errmsg(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (identifier "_rl_errmsg") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  undefined *puVar7;\n  undefined4 local_res4;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar1 = PTR_stderr_001585c8;\n  puVar7 = PTR___stack_chk_guard_0015858c;\n  iVar2 = *(int *)PTR___stack_chk_guard_0015858c;\n  local_res4 = param_2;\n  local_res8 = param_3;\n  local_resc = param_4;\n  (*(code *)PTR_fwrite_001584ec)(PTR_DAT_001565b0 + -0x6e8,1,10,*(undefined4 *)PTR_stderr_001585c8);\n  (*(code *)PTR___vfprintf_chk_001585f0)(*(undefined4 *)puVar1,1,param_1,&local_res4);\n  uVar6 = *(undefined4 *)puVar1;\n  (*(code *)PTR_fputc_00158360)(10,uVar6);\n  iVar5 = *(int *)puVar1;\n  (*(code *)PTR_fflush_001585d0)();\n  if (iVar2 == *(int *)puVar7) {\n    return *(int *)puVar7;\n  }\n  puVar7 = PTR___stack_chk_fail_0015853c;\n  (*(code *)PTR___stack_chk_fail_0015853c)();\n  iVar2 = (**(code **)(puVar7 + 0x481b0))(uVar6);\n  iVar3 = (**(code **)(puVar7 + 0x481b0))(iVar5);\n  if (iVar2 <= iVar3) {\n    iVar3 = iVar5 + iVar3;\n    do {\n      iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);\n      if (iVar4 == 0) {\n        return iVar5;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar2 <= iVar3 - iVar5);\n  }\n  return 0;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "undefined *puVar7;" (type_identifier "undefined") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "undefined4 local_res4;" (type_identifier "undefined4") (identifier "local_res4") (; ";")) (declaration "undefined4 local_res8;" (type_identifier "undefined4") (identifier "local_res8") (; ";")) (declaration "undefined4 local_resc;" (type_identifier "undefined4") (identifier "local_resc") (; ";")) (expression_statement "puVar1 = PTR_stderr_001585c8;" (assignment_expression "puVar1 = PTR_stderr_001585c8" (identifier "puVar1") (= "=") (identifier "PTR_stderr_001585c8")) (; ";")) (expression_statement "puVar7 = PTR___stack_chk_guard_0015858c;" (assignment_expression "puVar7 = PTR___stack_chk_guard_0015858c" (identifier "puVar7") (= "=") (identifier "PTR___stack_chk_guard_0015858c")) (; ";")) (expression_statement "iVar2 = *(int *)PTR___stack_chk_guard_0015858c;" (assignment_expression "iVar2 = *(int *)PTR___stack_chk_guard_0015858c" (identifier "iVar2") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_0015858c" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_0015858c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0015858c")))) (; ";")) (expression_statement "local_res4 = param_2;" (assignment_expression "local_res4 = param_2" (identifier "local_res4") (= "=") (identifier "param_2")) (; ";")) (expression_statement "local_res8 = param_3;" (assignment_expression "local_res8 = param_3" (identifier "local_res8") (= "=") (identifier "param_3")) (; ";")) (expression_statement "local_resc = param_4;" (assignment_expression "local_resc = param_4" (identifier "local_resc") (= "=") (identifier "param_4")) (; ";")) (expression_statement "(*(code *)PTR_fwrite_001584ec)(PTR_DAT_001565b0 + -0x6e8,1,10,*(undefined4 *)PTR_stderr_001585c8);" (call_expression "(*(code *)PTR_fwrite_001584ec)(PTR_DAT_001565b0 + -0x6e8,1,10,*(undefined4 *)PTR_stderr_001585c8)" (parenthesized_expression "(*(code *)PTR_fwrite_001584ec)" (( "(") (pointer_expression "*(code *)PTR_fwrite_001584ec" (* "*") (cast_expression "(code *)PTR_fwrite_001584ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fwrite_001584ec"))) () ")")) (argument_list "(PTR_DAT_001565b0 + -0x6e8,1,10,*(undefined4 *)PTR_stderr_001585c8)" (( "(") (binary_expression "PTR_DAT_001565b0 + -0x6e8" (identifier "PTR_DAT_001565b0") (+ "+") (number_literal "-0x6e8")) (, ",") (number_literal "1") (, ",") (number_literal "10") (, ",") (pointer_expression "*(undefined4 *)PTR_stderr_001585c8" (* "*") (cast_expression "(undefined4 *)PTR_stderr_001585c8" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stderr_001585c8"))) () ")"))) (; ";")) (expression_statement "(*(code *)PTR___vfprintf_chk_001585f0)(*(undefined4 *)puVar1,1,param_1,&local_res4);" (call_expression "(*(code *)PTR___vfprintf_chk_001585f0)(*(undefined4 *)puVar1,1,param_1,&local_res4)" (parenthesized_expression "(*(code *)PTR___vfprintf_chk_001585f0)" (( "(") (pointer_expression "*(code *)PTR___vfprintf_chk_001585f0" (* "*") (cast_expression "(code *)PTR___vfprintf_chk_001585f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___vfprintf_chk_001585f0"))) () ")")) (argument_list "(*(undefined4 *)puVar1,1,param_1,&local_res4)" (( "(") (pointer_expression "*(undefined4 *)puVar1" (* "*") (cast_expression "(undefined4 *)puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) (, ",") (number_literal "1") (, ",") (identifier "param_1") (, ",") (pointer_expression "&local_res4" (& "&") (identifier "local_res4")) () ")"))) (; ";")) (expression_statement "uVar6 = *(undefined4 *)puVar1;" (assignment_expression "uVar6 = *(undefined4 *)puVar1" (identifier "uVar6") (= "=") (pointer_expression "*(undefined4 *)puVar1" (* "*") (cast_expression "(undefined4 *)puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) (; ";")) (expression_statement "(*(code *)PTR_fputc_00158360)(10,uVar6);" (call_expression "(*(code *)PTR_fputc_00158360)(10,uVar6)" (parenthesized_expression "(*(code *)PTR_fputc_00158360)" (( "(") (pointer_expression "*(code *)PTR_fputc_00158360" (* "*") (cast_expression "(code *)PTR_fputc_00158360" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fputc_00158360"))) () ")")) (argument_list "(10,uVar6)" (( "(") (number_literal "10") (, ",") (identifier "uVar6") () ")"))) (; ";")) (expression_statement "iVar5 = *(int *)puVar1;" (assignment_expression "iVar5 = *(int *)puVar1" (identifier "iVar5") (= "=") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) (; ";")) (expression_statement "(*(code *)PTR_fflush_001585d0)();" (call_expression "(*(code *)PTR_fflush_001585d0)()" (parenthesized_expression "(*(code *)PTR_fflush_001585d0)" (( "(") (pointer_expression "*(code *)PTR_fflush_001585d0" (* "*") (cast_expression "(code *)PTR_fflush_001585d0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fflush_001585d0"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (iVar2 == *(int *)puVar7) {\n    return *(int *)puVar7;\n  }" (if "if") (parenthesized_expression "(iVar2 == *(int *)puVar7)" (( "(") (binary_expression "iVar2 == *(int *)puVar7" (identifier "iVar2") (== "==") (pointer_expression "*(int *)puVar7" (* "*") (cast_expression "(int *)puVar7" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar7")))) () ")")) (compound_statement "{\n    return *(int *)puVar7;\n  }" ({ "{") (return_statement "return *(int *)puVar7;" (return "return") (pointer_expression "*(int *)puVar7" (* "*") (cast_expression "(int *)puVar7" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar7"))) (; ";")) (} "}"))) (expression_statement "puVar7 = PTR___stack_chk_fail_0015853c;" (assignment_expression "puVar7 = PTR___stack_chk_fail_0015853c" (identifier "puVar7") (= "=") (identifier "PTR___stack_chk_fail_0015853c")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_0015853c)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015853c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015853c)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0015853c" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0015853c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0015853c"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar2 = (**(code **)(puVar7 + 0x481b0))(uVar6);" (assignment_expression "iVar2 = (**(code **)(puVar7 + 0x481b0))(uVar6)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(puVar7 + 0x481b0))(uVar6)" (parenthesized_expression "(**(code **)(puVar7 + 0x481b0))" (( "(") (pointer_expression "**(code **)(puVar7 + 0x481b0)" (* "*") (pointer_expression "*(code **)(puVar7 + 0x481b0)" (* "*") (cast_expression "(code **)(puVar7 + 0x481b0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar7 + 0x481b0)" (( "(") (binary_expression "puVar7 + 0x481b0" (identifier "puVar7") (+ "+") (number_literal "0x481b0")) () ")"))))) () ")")) (argument_list "(uVar6)" (( "(") (identifier "uVar6") () ")")))) (; ";")) (expression_statement "iVar3 = (**(code **)(puVar7 + 0x481b0))(iVar5);" (assignment_expression "iVar3 = (**(code **)(puVar7 + 0x481b0))(iVar5)" (identifier "iVar3") (= "=") (call_expression "(**(code **)(puVar7 + 0x481b0))(iVar5)" (parenthesized_expression "(**(code **)(puVar7 + 0x481b0))" (( "(") (pointer_expression "**(code **)(puVar7 + 0x481b0)" (* "*") (pointer_expression "*(code **)(puVar7 + 0x481b0)" (* "*") (cast_expression "(code **)(puVar7 + 0x481b0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar7 + 0x481b0)" (( "(") (binary_expression "puVar7 + 0x481b0" (identifier "puVar7") (+ "+") (number_literal "0x481b0")) () ")"))))) () ")")) (argument_list "(iVar5)" (( "(") (identifier "iVar5") () ")")))) (; ";")) (if_statement "if (iVar2 <= iVar3) {\n    iVar3 = iVar5 + iVar3;\n    do {\n      iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);\n      if (iVar4 == 0) {\n        return iVar5;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar2 <= iVar3 - iVar5);\n  }" (if "if") (parenthesized_expression "(iVar2 <= iVar3)" (( "(") (binary_expression "iVar2 <= iVar3" (identifier "iVar2") (<= "<=") (identifier "iVar3")) () ")")) (compound_statement "{\n    iVar3 = iVar5 + iVar3;\n    do {\n      iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);\n      if (iVar4 == 0) {\n        return iVar5;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar2 <= iVar3 - iVar5);\n  }" ({ "{") (expression_statement "iVar3 = iVar5 + iVar3;" (assignment_expression "iVar3 = iVar5 + iVar3" (identifier "iVar3") (= "=") (binary_expression "iVar5 + iVar3" (identifier "iVar5") (+ "+") (identifier "iVar3"))) (; ";")) (do_statement "do {\n      iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);\n      if (iVar4 == 0) {\n        return iVar5;\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar2 <= iVar3 - iVar5);" (do "do") (compound_statement "{\n      iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);\n      if (iVar4 == 0) {\n        return iVar5;\n      }\n      iVar5 = iVar5 + 1;\n    }" ({ "{") (expression_statement "iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);" (assignment_expression "iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2)" (identifier "iVar4") (= "=") (call_expression "(**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2)" (parenthesized_expression "(**(code **)(puVar7 + 0x48124))" (( "(") (pointer_expression "**(code **)(puVar7 + 0x48124)" (* "*") (pointer_expression "*(code **)(puVar7 + 0x48124)" (* "*") (cast_expression "(code **)(puVar7 + 0x48124)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar7 + 0x48124)" (( "(") (binary_expression "puVar7 + 0x48124" (identifier "puVar7") (+ "+") (number_literal "0x48124")) () ")"))))) () ")")) (argument_list "(iVar5,uVar6,iVar2)" (( "(") (identifier "iVar5") (, ",") (identifier "uVar6") (, ",") (identifier "iVar2") () ")")))) (; ";")) (if_statement "if (iVar4 == 0) {\n        return iVar5;\n      }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return iVar5;\n      }" ({ "{") (return_statement "return iVar5;" (return "return") (identifier "iVar5") (; ";")) (} "}"))) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar2 <= iVar3 - iVar5)" (( "(") (binary_expression "iVar2 <= iVar3 - iVar5" (identifier "iVar2") (<= "<=") (binary_expression "iVar3 - iVar5" (identifier "iVar3") (- "-") (identifier "iVar5"))) () ")")) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

void function_1(char *format,...)

{
  type_1 *puVar1;
  int var_2;
  int var_4;
  int var_6;
  int var_5;
  type_2 in_a1;
  type_2 uVar6;
  type_2 in_a2;
  type_2 in_a3;
  type_1 *var_3;
  type_2 local_res4;
  type_2 local_res8;
  type_2 local_resc;
  type_3 args;
  
  puVar1 = PTR_stderr_001585c8;
  var_3 = PTR___stack_chk_guard_0015858c;
  var_2 = *(int *)PTR___stack_chk_guard_0015858c;
  local_res4 = in_a1;
  local_res8 = in_a2;
  local_resc = in_a3;
  (*(type_4 *)PTR_fwrite_001584ec)(var_1 + -0x6e8,1,10,*(type_2 *)PTR_stderr_001585c8);
  (*(type_4 *)PTR___vfprintf_chk_001585f0)(*(type_2 *)puVar1,1,format,&local_res4);
  uVar6 = *(type_2 *)puVar1;
  (*(type_4 *)PTR_fputc_00158360)(10,uVar6);
  var_5 = *(int *)puVar1;
  (*(type_4 *)PTR_fflush_001585d0)();
  if (var_2 == *(int *)var_3) {
    return;
  }
  var_3 = PTR___stack_chk_fail_0015853c;
  (*(type_4 *)PTR___stack_chk_fail_0015853c)();
  var_2 = (**(type_4 **)(var_3 + 0x481b0))(uVar6);
  var_4 = (**(type_4 **)(var_3 + 0x481b0))(var_5);
  if (var_2 <= var_4) {
    var_4 = var_5 + var_4;
    do {
      var_6 = (**(type_4 **)(var_3 + 0x48124))(var_5,uVar6,var_2);
      if (var_6 == 0) {
        return;
      }
      var_5 = var_5 + 1;
    } while (var_2 <= var_4 - var_5);
  }
  return;
}


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

int MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  undefined4 uVar6;
  undefined *puVar7;
  undefined4 local_res4;
  undefined4 local_res8;
  undefined4 local_resc;
  
  puVar1 = PTR_stderr_001585c8;
  puVar7 = PTR___stack_chk_guard_0015858c;
  iVar2 = *(int *)PTR___stack_chk_guard_0015858c;
  local_res4 = param_2;
  local_res8 = param_3;
  local_resc = param_4;
  (*(code *)PTR_fwrite_001584ec)(PTR_DAT_001565b0 + -0x6e8,1,10,*(undefined4 *)PTR_stderr_001585c8);
  (*(code *)PTR___vfprintf_chk_001585f0)(*(undefined4 *)puVar1,1,param_1,&local_res4);
  uVar6 = *(undefined4 *)puVar1;
  (*(code *)PTR_fputc_00158360)(10,uVar6);
  iVar5 = *(int *)puVar1;
  (*(code *)PTR_fflush_001585d0)();
  if (iVar2 == *(int *)puVar7) {
    return *(int *)puVar7;
  }
  puVar7 = PTR___stack_chk_fail_0015853c;
  (*(code *)PTR___stack_chk_fail_0015853c)();
  iVar2 = (**(code **)(puVar7 + 0x481b0))(uVar6);
  iVar3 = (**(code **)(puVar7 + 0x481b0))(iVar5);
  if (iVar2 <= iVar3) {
    iVar3 = iVar5 + iVar3;
    do {
      iVar4 = (**(code **)(puVar7 + 0x48124))(iVar5,uVar6,iVar2);
      if (iVar4 == 0) {
        return iVar5;
      }
      iVar5 = iVar5 + 1;
    } while (iVar2 <= iVar3 - iVar5);
  }
  return 0;
}

