
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_00146518;
  puVar7 = PTR___stack_chk_guard_001464dc;
  iVar2 = *(int *)PTR___stack_chk_guard_001464dc;
  local_res4 = in_a1;
  local_res8 = in_a2;
  local_resc = in_a3;
  (*(code *)PTR_fwrite_00146438)(PTR_DAT_001445ac + -0x2904,1,10,*(undefined4 *)PTR_stderr_00146518)
  ;
  (*(code *)PTR___vfprintf_chk_00146540)(*(undefined4 *)puVar1,1,format,&local_res4);
  uVar6 = *(undefined4 *)puVar1;
  (*(code *)PTR_fputc_001462ac)(10,uVar6);
  iVar5 = *(int *)puVar1;
  (*(code *)PTR_fflush_00146520)();
  if (iVar2 == *(int *)puVar7) {
    return;
  }
  puVar7 = PTR___stack_chk_fail_00146488;
  (*(code *)PTR___stack_chk_fail_00146488)();
  iVar2 = (**(code **)(puVar7 + 0x46c0c))(uVar6);
  iVar3 = (**(code **)(puVar7 + 0x46c0c))(iVar5);
  if (iVar2 <= iVar3) {
    iVar3 = iVar5 + iVar3;
    do {
      iVar4 = (**(code **)(puVar7 + 0x46b80))(iVar5,uVar6,iVar2);
      iVar5 = iVar5 + 1;
      if (iVar4 == 0) {
        return;
      }
    } 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;
  int iVar6;
  int iVar7;
  undefined4 uVar8;
  undefined *puVar9;
  undefined4 local_res4;
  undefined4 local_res8;
  undefined4 local_resc;
  
  puVar1 = PTR_stderr_00146518;
  puVar9 = PTR___stack_chk_guard_001464dc;
  iVar2 = *(int *)PTR___stack_chk_guard_001464dc;
  local_res4 = param_2;
  local_res8 = param_3;
  local_resc = param_4;
  (*(code *)PTR_fwrite_00146438)(PTR_DAT_001445ac + -0x2904,1,10,*(undefined4 *)PTR_stderr_00146518)
  ;
  (*(code *)PTR___vfprintf_chk_00146540)(*(undefined4 *)puVar1,1,param_1,&local_res4);
  uVar8 = *(undefined4 *)puVar1;
  (*(code *)PTR_fputc_001462ac)(10,uVar8);
  iVar5 = *(int *)puVar1;
  (*(code *)PTR_fflush_00146520)();
  if (iVar2 == *(int *)puVar9) {
    return *(int *)puVar9;
  }
  puVar9 = PTR___stack_chk_fail_00146488;
  (*(code *)PTR___stack_chk_fail_00146488)();
  iVar2 = (**(code **)(puVar9 + 0x46c0c))(uVar8);
  iVar3 = (**(code **)(puVar9 + 0x46c0c))(iVar5);
  if (iVar2 <= iVar3) {
    iVar6 = iVar5;
    do {
      iVar4 = (**(code **)(puVar9 + 0x46b80))(iVar6,uVar8,iVar2);
      iVar7 = iVar6 + 1;
      if (iVar4 == 0) {
        return iVar6;
      }
      iVar6 = iVar7;
    } while (iVar2 <= (iVar5 + iVar3) - iVar7);
  }
  return 0;
}


lui gp,0x5
addiu gp,gp,-0x3164
addu gp,gp,t9
addiu sp,sp,-0x30
lw t9,-0x6108(gp)
addiu v0,sp,0x34
sw s1,0x24(sp)
sw s0,0x20(sp)
sw a1,0x34(sp)
li a1,0x1
sw a2,0x38(sp)
li a2,0xa
sw a3,0x3c(sp)
sw s2,0x28(sp)
or s2,a0,zero
sw v0,0x18(sp)
lw s1,-0x6064(gp)
lw s0,-0x6028(gp)
lw a0,-0x7f94(gp)
sw ra,0x2c(sp)
sw gp,0x10(sp)
lw v0,0x0(s1)
addiu a0,a0,-0x2904
lw a3,0x0(s0)
sw v0,0x1c(sp)
jalr t9
_nop
li a1,0x1
lw gp,0x10(sp)
or a2,s2,zero
lw a3,0x18(sp)
lw t9,-0x6000(gp)
jalr t9
_lw a0,0x0(s0)
li a0,0xa
lw gp,0x10(sp)
lw t9,-0x6294(gp)
jalr t9
_lw a1,0x0(s0)
lw gp,0x10(sp)
lw t9,-0x6020(gp)
jalr t9
_lw a0,0x0(s0)
lw v1,0x1c(sp)
lw v0,0x0(s1)
bne v1,v0,0x000ff778
_lw gp,0x10(sp)
lw ra,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x60b8(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  int iVar6;\n  int iVar7;\n  undefined4 uVar8;\n  undefined *puVar9;\n  undefined4 local_res4;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar1 = PTR_stderr_00146518;\n  puVar9 = PTR___stack_chk_guard_001464dc;\n  iVar2 = *(int *)PTR___stack_chk_guard_001464dc;\n  local_res4 = param_2;\n  local_res8 = param_3;\n  local_resc = param_4;\n  (*(code *)PTR_fwrite_00146438)(PTR_DAT_001445ac + -0x2904,1,10,*(undefined4 *)PTR_stderr_00146518)\n  ;\n  (*(code *)PTR___vfprintf_chk_00146540)(*(undefined4 *)puVar1,1,param_1,&local_res4);\n  uVar8 = *(undefined4 *)puVar1;\n  (*(code *)PTR_fputc_001462ac)(10,uVar8);\n  iVar5 = *(int *)puVar1;\n  (*(code *)PTR_fflush_00146520)();\n  if (iVar2 == *(int *)puVar9) {\n    return *(int *)puVar9;\n  }\n  puVar9 = PTR___stack_chk_fail_00146488;\n  (*(code *)PTR___stack_chk_fail_00146488)();\n  iVar2 = (**(code **)(puVar9 + 0x46c0c))(uVar8);\n  iVar3 = (**(code **)(puVar9 + 0x46c0c))(iVar5);\n  if (iVar2 <= iVar3) {\n    iVar6 = iVar5;\n    do {\n      iVar4 = (**(code **)(puVar9 + 0x46b80))(iVar6,uVar8,iVar2);\n      iVar7 = iVar6 + 1;\n      if (iVar4 == 0) {\n        return iVar6;\n      }\n      iVar6 = iVar7;\n    } while (iVar2 <= (iVar5 + iVar3) - iVar7);\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  int iVar6;\n  int iVar7;\n  undefined4 uVar8;\n  undefined *puVar9;\n  undefined4 local_res4;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar1 = PTR_stderr_00146518;\n  puVar9 = PTR___stack_chk_guard_001464dc;\n  iVar2 = *(int *)PTR___stack_chk_guard_001464dc;\n  local_res4 = param_2;\n  local_res8 = param_3;\n  local_resc = param_4;\n  (*(code *)PTR_fwrite_00146438)(PTR_DAT_001445ac + -0x2904,1,10,*(undefined4 *)PTR_stderr_00146518)\n  ;\n  (*(code *)PTR___vfprintf_chk_00146540)(*(undefined4 *)puVar1,1,param_1,&local_res4);\n  uVar8 = *(undefined4 *)puVar1;\n  (*(code *)PTR_fputc_001462ac)(10,uVar8);\n  iVar5 = *(int *)puVar1;\n  (*(code *)PTR_fflush_00146520)();\n  if (iVar2 == *(int *)puVar9) {\n    return *(int *)puVar9;\n  }\n  puVar9 = PTR___stack_chk_fail_00146488;\n  (*(code *)PTR___stack_chk_fail_00146488)();\n  iVar2 = (**(code **)(puVar9 + 0x46c0c))(uVar8);\n  iVar3 = (**(code **)(puVar9 + 0x46c0c))(iVar5);\n  if (iVar2 <= iVar3) {\n    iVar6 = iVar5;\n    do {\n      iVar4 = (**(code **)(puVar9 + 0x46b80))(iVar6,uVar8,iVar2);\n      iVar7 = iVar6 + 1;\n      if (iVar4 == 0) {\n        return iVar6;\n      }\n      iVar6 = iVar7;\n    } while (iVar2 <= (iVar5 + iVar3) - iVar7);\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  int iVar6;\n  int iVar7;\n  undefined4 uVar8;\n  undefined *puVar9;\n  undefined4 local_res4;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar1 = PTR_stderr_00146518;\n  puVar9 = PTR___stack_chk_guard_001464dc;\n  iVar2 = *(int *)PTR___stack_chk_guard_001464dc;\n  local_res4 = param_2;\n  local_res8 = param_3;\n  local_resc = param_4;\n  (*(code *)PTR_fwrite_00146438)(PTR_DAT_001445ac + -0x2904,1,10,*(undefined4 *)PTR_stderr_00146518)\n  ;\n  (*(code *)PTR___vfprintf_chk_00146540)(*(undefined4 *)puVar1,1,param_1,&local_res4);\n  uVar8 = *(undefined4 *)puVar1;\n  (*(code *)PTR_fputc_001462ac)(10,uVar8);\n  iVar5 = *(int *)puVar1;\n  (*(code *)PTR_fflush_00146520)();\n  if (iVar2 == *(int *)puVar9) {\n    return *(int *)puVar9;\n  }\n  puVar9 = PTR___stack_chk_fail_00146488;\n  (*(code *)PTR___stack_chk_fail_00146488)();\n  iVar2 = (**(code **)(puVar9 + 0x46c0c))(uVar8);\n  iVar3 = (**(code **)(puVar9 + 0x46c0c))(iVar5);\n  if (iVar2 <= iVar3) {\n    iVar6 = iVar5;\n    do {\n      iVar4 = (**(code **)(puVar9 + 0x46b80))(iVar6,uVar8,iVar2);\n      iVar7 = iVar6 + 1;\n      if (iVar4 == 0) {\n        return iVar6;\n      }\n      iVar6 = iVar7;\n    } while (iVar2 <= (iVar5 + iVar3) - iVar7);\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 "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * 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_00146518;" (assignment_expression "puVar1 = PTR_stderr_00146518" identifier = identifier) ;) (expression_statement "puVar9 = PTR___stack_chk_guard_001464dc;" (assignment_expression "puVar9 = PTR___stack_chk_guard_001464dc" identifier = identifier) ;) (expression_statement "iVar2 = *(int *)PTR___stack_chk_guard_001464dc;" (assignment_expression "iVar2 = *(int *)PTR___stack_chk_guard_001464dc" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_001464dc" * (cast_expression "(int *)PTR___stack_chk_guard_001464dc" ( (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_00146438)(PTR_DAT_001445ac + -0x2904,1,10,*(undefined4 *)PTR_stderr_00146518)\n  ;" (call_expression "(*(code *)PTR_fwrite_00146438)(PTR_DAT_001445ac + -0x2904,1,10,*(undefined4 *)PTR_stderr_00146518)" (parenthesized_expression "(*(code *)PTR_fwrite_00146438)" ( (pointer_expression "*(code *)PTR_fwrite_00146438" * (cast_expression "(code *)PTR_fwrite_00146438" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001445ac + -0x2904,1,10,*(undefined4 *)PTR_stderr_00146518)" ( (binary_expression "PTR_DAT_001445ac + -0x2904" identifier + number_literal) , number_literal , number_literal , (pointer_expression "*(undefined4 *)PTR_stderr_00146518" * (cast_expression "(undefined4 *)PTR_stderr_00146518" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "(*(code *)PTR___vfprintf_chk_00146540)(*(undefined4 *)puVar1,1,param_1,&local_res4);" (call_expression "(*(code *)PTR___vfprintf_chk_00146540)(*(undefined4 *)puVar1,1,param_1,&local_res4)" (parenthesized_expression "(*(code *)PTR___vfprintf_chk_00146540)" ( (pointer_expression "*(code *)PTR___vfprintf_chk_00146540" * (cast_expression "(code *)PTR___vfprintf_chk_00146540" ( (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 "uVar8 = *(undefined4 *)puVar1;" (assignment_expression "uVar8 = *(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_001462ac)(10,uVar8);" (call_expression "(*(code *)PTR_fputc_001462ac)(10,uVar8)" (parenthesized_expression "(*(code *)PTR_fputc_001462ac)" ( (pointer_expression "*(code *)PTR_fputc_001462ac" * (cast_expression "(code *)PTR_fputc_001462ac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(10,uVar8)" ( 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_00146520)();" (call_expression "(*(code *)PTR_fflush_00146520)()" (parenthesized_expression "(*(code *)PTR_fflush_00146520)" ( (pointer_expression "*(code *)PTR_fflush_00146520" * (cast_expression "(code *)PTR_fflush_00146520" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (iVar2 == *(int *)puVar9) {\n    return *(int *)puVar9;\n  }" if (parenthesized_expression "(iVar2 == *(int *)puVar9)" ( (binary_expression "iVar2 == *(int *)puVar9" identifier == (pointer_expression "*(int *)puVar9" * (cast_expression "(int *)puVar9" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return *(int *)puVar9;\n  }" { (return_statement "return *(int *)puVar9;" return (pointer_expression "*(int *)puVar9" * (cast_expression "(int *)puVar9" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "puVar9 = PTR___stack_chk_fail_00146488;" (assignment_expression "puVar9 = PTR___stack_chk_fail_00146488" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00146488)();" (call_expression "(*(code *)PTR___stack_chk_fail_00146488)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00146488)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00146488" * (cast_expression "(code *)PTR___stack_chk_fail_00146488" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar2 = (**(code **)(puVar9 + 0x46c0c))(uVar8);" (assignment_expression "iVar2 = (**(code **)(puVar9 + 0x46c0c))(uVar8)" identifier = (call_expression "(**(code **)(puVar9 + 0x46c0c))(uVar8)" (parenthesized_expression "(**(code **)(puVar9 + 0x46c0c))" ( (pointer_expression "**(code **)(puVar9 + 0x46c0c)" * (pointer_expression "*(code **)(puVar9 + 0x46c0c)" * (cast_expression "(code **)(puVar9 + 0x46c0c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x46c0c)" ( (binary_expression "puVar9 + 0x46c0c" identifier + number_literal) ))))) )) (argument_list "(uVar8)" ( identifier )))) ;) (expression_statement "iVar3 = (**(code **)(puVar9 + 0x46c0c))(iVar5);" (assignment_expression "iVar3 = (**(code **)(puVar9 + 0x46c0c))(iVar5)" identifier = (call_expression "(**(code **)(puVar9 + 0x46c0c))(iVar5)" (parenthesized_expression "(**(code **)(puVar9 + 0x46c0c))" ( (pointer_expression "**(code **)(puVar9 + 0x46c0c)" * (pointer_expression "*(code **)(puVar9 + 0x46c0c)" * (cast_expression "(code **)(puVar9 + 0x46c0c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x46c0c)" ( (binary_expression "puVar9 + 0x46c0c" identifier + number_literal) ))))) )) (argument_list "(iVar5)" ( identifier )))) ;) (if_statement "if (iVar2 <= iVar3) {\n    iVar6 = iVar5;\n    do {\n      iVar4 = (**(code **)(puVar9 + 0x46b80))(iVar6,uVar8,iVar2);\n      iVar7 = iVar6 + 1;\n      if (iVar4 == 0) {\n        return iVar6;\n      }\n      iVar6 = iVar7;\n    } while (iVar2 <= (iVar5 + iVar3) - iVar7);\n  }" if (parenthesized_expression "(iVar2 <= iVar3)" ( (binary_expression "iVar2 <= iVar3" identifier <= identifier) )) (compound_statement "{\n    iVar6 = iVar5;\n    do {\n      iVar4 = (**(code **)(puVar9 + 0x46b80))(iVar6,uVar8,iVar2);\n      iVar7 = iVar6 + 1;\n      if (iVar4 == 0) {\n        return iVar6;\n      }\n      iVar6 = iVar7;\n    } while (iVar2 <= (iVar5 + iVar3) - iVar7);\n  }" { (expression_statement "iVar6 = iVar5;" (assignment_expression "iVar6 = iVar5" identifier = identifier) ;) (do_statement "do {\n      iVar4 = (**(code **)(puVar9 + 0x46b80))(iVar6,uVar8,iVar2);\n      iVar7 = iVar6 + 1;\n      if (iVar4 == 0) {\n        return iVar6;\n      }\n      iVar6 = iVar7;\n    } while (iVar2 <= (iVar5 + iVar3) - iVar7);" do (compound_statement "{\n      iVar4 = (**(code **)(puVar9 + 0x46b80))(iVar6,uVar8,iVar2);\n      iVar7 = iVar6 + 1;\n      if (iVar4 == 0) {\n        return iVar6;\n      }\n      iVar6 = iVar7;\n    }" { (expression_statement "iVar4 = (**(code **)(puVar9 + 0x46b80))(iVar6,uVar8,iVar2);" (assignment_expression "iVar4 = (**(code **)(puVar9 + 0x46b80))(iVar6,uVar8,iVar2)" identifier = (call_expression "(**(code **)(puVar9 + 0x46b80))(iVar6,uVar8,iVar2)" (parenthesized_expression "(**(code **)(puVar9 + 0x46b80))" ( (pointer_expression "**(code **)(puVar9 + 0x46b80)" * (pointer_expression "*(code **)(puVar9 + 0x46b80)" * (cast_expression "(code **)(puVar9 + 0x46b80)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x46b80)" ( (binary_expression "puVar9 + 0x46b80" identifier + number_literal) ))))) )) (argument_list "(iVar6,uVar8,iVar2)" ( identifier , identifier , identifier )))) ;) (expression_statement "iVar7 = iVar6 + 1;" (assignment_expression "iVar7 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (if_statement "if (iVar4 == 0) {\n        return iVar6;\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        return iVar6;\n      }" { (return_statement "return iVar6;" return identifier ;) })) (expression_statement "iVar6 = iVar7;" (assignment_expression "iVar6 = iVar7" identifier = identifier) ;) }) while (parenthesized_expression "(iVar2 <= (iVar5 + iVar3) - iVar7)" ( (binary_expression "iVar2 <= (iVar5 + iVar3) - iVar7" identifier <= (binary_expression "(iVar5 + iVar3) - iVar7" (parenthesized_expression "(iVar5 + iVar3)" ( (binary_expression "iVar5 + iVar3" identifier + 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_00146518;\n  puVar7 = PTR___stack_chk_guard_001464dc;\n  iVar2 = *(int *)PTR___stack_chk_guard_001464dc;\n  local_res4 = in_a1;\n  local_res8 = in_a2;\n  local_resc = in_a3;\n  (*(code *)PTR_fwrite_00146438)(PTR_DAT_001445ac + -0x2904,1,10,*(undefined4 *)PTR_stderr_00146518)\n  ;\n  (*(code *)PTR___vfprintf_chk_00146540)(*(undefined4 *)puVar1,1,format,&local_res4);\n  uVar6 = *(undefined4 *)puVar1;\n  (*(code *)PTR_fputc_001462ac)(10,uVar6);\n  iVar5 = *(int *)puVar1;\n  (*(code *)PTR_fflush_00146520)();\n  if (iVar2 == *(int *)puVar7) {\n    return;\n  }\n  puVar7 = PTR___stack_chk_fail_00146488;\n  (*(code *)PTR___stack_chk_fail_00146488)();\n  iVar2 = (**(code **)(puVar7 + 0x46c0c))(uVar6);\n  iVar3 = (**(code **)(puVar7 + 0x46c0c))(iVar5);\n  if (iVar2 <= iVar3) {\n    iVar3 = iVar5 + iVar3;\n    do {\n      iVar4 = (**(code **)(puVar7 + 0x46b80))(iVar5,uVar6,iVar2);\n      iVar5 = iVar5 + 1;\n      if (iVar4 == 0) {\n        return;\n      }\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_00146518;\n  puVar7 = PTR___stack_chk_guard_001464dc;\n  iVar2 = *(int *)PTR___stack_chk_guard_001464dc;\n  local_res4 = in_a1;\n  local_res8 = in_a2;\n  local_resc = in_a3;\n  (*(code *)PTR_fwrite_00146438)(PTR_DAT_001445ac + -0x2904,1,10,*(undefined4 *)PTR_stderr_00146518)\n  ;\n  (*(code *)PTR___vfprintf_chk_00146540)(*(undefined4 *)puVar1,1,format,&local_res4);\n  uVar6 = *(undefined4 *)puVar1;\n  (*(code *)PTR_fputc_001462ac)(10,uVar6);\n  iVar5 = *(int *)puVar1;\n  (*(code *)PTR_fflush_00146520)();\n  if (iVar2 == *(int *)puVar7) {\n    return;\n  }\n  puVar7 = PTR___stack_chk_fail_00146488;\n  (*(code *)PTR___stack_chk_fail_00146488)();\n  iVar2 = (**(code **)(puVar7 + 0x46c0c))(uVar6);\n  iVar3 = (**(code **)(puVar7 + 0x46c0c))(iVar5);\n  if (iVar2 <= iVar3) {\n    iVar3 = iVar5 + iVar3;\n    do {\n      iVar4 = (**(code **)(puVar7 + 0x46b80))(iVar5,uVar6,iVar2);\n      iVar5 = iVar5 + 1;\n      if (iVar4 == 0) {\n        return;\n      }\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_00146518;\n  puVar7 = PTR___stack_chk_guard_001464dc;\n  iVar2 = *(int *)PTR___stack_chk_guard_001464dc;\n  local_res4 = in_a1;\n  local_res8 = in_a2;\n  local_resc = in_a3;\n  (*(code *)PTR_fwrite_00146438)(PTR_DAT_001445ac + -0x2904,1,10,*(undefined4 *)PTR_stderr_00146518)\n  ;\n  (*(code *)PTR___vfprintf_chk_00146540)(*(undefined4 *)puVar1,1,format,&local_res4);\n  uVar6 = *(undefined4 *)puVar1;\n  (*(code *)PTR_fputc_001462ac)(10,uVar6);\n  iVar5 = *(int *)puVar1;\n  (*(code *)PTR_fflush_00146520)();\n  if (iVar2 == *(int *)puVar7) {\n    return;\n  }\n  puVar7 = PTR___stack_chk_fail_00146488;\n  (*(code *)PTR___stack_chk_fail_00146488)();\n  iVar2 = (**(code **)(puVar7 + 0x46c0c))(uVar6);\n  iVar3 = (**(code **)(puVar7 + 0x46c0c))(iVar5);\n  if (iVar2 <= iVar3) {\n    iVar3 = iVar5 + iVar3;\n    do {\n      iVar4 = (**(code **)(puVar7 + 0x46b80))(iVar5,uVar6,iVar2);\n      iVar5 = iVar5 + 1;\n      if (iVar4 == 0) {\n        return;\n      }\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_00146518;" (assignment_expression "puVar1 = PTR_stderr_00146518" identifier = identifier) ;) (expression_statement "puVar7 = PTR___stack_chk_guard_001464dc;" (assignment_expression "puVar7 = PTR___stack_chk_guard_001464dc" identifier = identifier) ;) (expression_statement "iVar2 = *(int *)PTR___stack_chk_guard_001464dc;" (assignment_expression "iVar2 = *(int *)PTR___stack_chk_guard_001464dc" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_001464dc" * (cast_expression "(int *)PTR___stack_chk_guard_001464dc" ( (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_00146438)(PTR_DAT_001445ac + -0x2904,1,10,*(undefined4 *)PTR_stderr_00146518)\n  ;" (call_expression "(*(code *)PTR_fwrite_00146438)(PTR_DAT_001445ac + -0x2904,1,10,*(undefined4 *)PTR_stderr_00146518)" (parenthesized_expression "(*(code *)PTR_fwrite_00146438)" ( (pointer_expression "*(code *)PTR_fwrite_00146438" * (cast_expression "(code *)PTR_fwrite_00146438" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001445ac + -0x2904,1,10,*(undefined4 *)PTR_stderr_00146518)" ( (binary_expression "PTR_DAT_001445ac + -0x2904" identifier + number_literal) , number_literal , number_literal , (pointer_expression "*(undefined4 *)PTR_stderr_00146518" * (cast_expression "(undefined4 *)PTR_stderr_00146518" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "(*(code *)PTR___vfprintf_chk_00146540)(*(undefined4 *)puVar1,1,format,&local_res4);" (call_expression "(*(code *)PTR___vfprintf_chk_00146540)(*(undefined4 *)puVar1,1,format,&local_res4)" (parenthesized_expression "(*(code *)PTR___vfprintf_chk_00146540)" ( (pointer_expression "*(code *)PTR___vfprintf_chk_00146540" * (cast_expression "(code *)PTR___vfprintf_chk_00146540" ( (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_001462ac)(10,uVar6);" (call_expression "(*(code *)PTR_fputc_001462ac)(10,uVar6)" (parenthesized_expression "(*(code *)PTR_fputc_001462ac)" ( (pointer_expression "*(code *)PTR_fputc_001462ac" * (cast_expression "(code *)PTR_fputc_001462ac" ( (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_00146520)();" (call_expression "(*(code *)PTR_fflush_00146520)()" (parenthesized_expression "(*(code *)PTR_fflush_00146520)" ( (pointer_expression "*(code *)PTR_fflush_00146520" * (cast_expression "(code *)PTR_fflush_00146520" ( (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_00146488;" (assignment_expression "puVar7 = PTR___stack_chk_fail_00146488" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00146488)();" (call_expression "(*(code *)PTR___stack_chk_fail_00146488)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00146488)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00146488" * (cast_expression "(code *)PTR___stack_chk_fail_00146488" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar2 = (**(code **)(puVar7 + 0x46c0c))(uVar6);" (assignment_expression "iVar2 = (**(code **)(puVar7 + 0x46c0c))(uVar6)" identifier = (call_expression "(**(code **)(puVar7 + 0x46c0c))(uVar6)" (parenthesized_expression "(**(code **)(puVar7 + 0x46c0c))" ( (pointer_expression "**(code **)(puVar7 + 0x46c0c)" * (pointer_expression "*(code **)(puVar7 + 0x46c0c)" * (cast_expression "(code **)(puVar7 + 0x46c0c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x46c0c)" ( (binary_expression "puVar7 + 0x46c0c" identifier + number_literal) ))))) )) (argument_list "(uVar6)" ( identifier )))) ;) (expression_statement "iVar3 = (**(code **)(puVar7 + 0x46c0c))(iVar5);" (assignment_expression "iVar3 = (**(code **)(puVar7 + 0x46c0c))(iVar5)" identifier = (call_expression "(**(code **)(puVar7 + 0x46c0c))(iVar5)" (parenthesized_expression "(**(code **)(puVar7 + 0x46c0c))" ( (pointer_expression "**(code **)(puVar7 + 0x46c0c)" * (pointer_expression "*(code **)(puVar7 + 0x46c0c)" * (cast_expression "(code **)(puVar7 + 0x46c0c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x46c0c)" ( (binary_expression "puVar7 + 0x46c0c" identifier + number_literal) ))))) )) (argument_list "(iVar5)" ( identifier )))) ;) (if_statement "if (iVar2 <= iVar3) {\n    iVar3 = iVar5 + iVar3;\n    do {\n      iVar4 = (**(code **)(puVar7 + 0x46b80))(iVar5,uVar6,iVar2);\n      iVar5 = iVar5 + 1;\n      if (iVar4 == 0) {\n        return;\n      }\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 + 0x46b80))(iVar5,uVar6,iVar2);\n      iVar5 = iVar5 + 1;\n      if (iVar4 == 0) {\n        return;\n      }\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 + 0x46b80))(iVar5,uVar6,iVar2);\n      iVar5 = iVar5 + 1;\n      if (iVar4 == 0) {\n        return;\n      }\n    } while (iVar2 <= iVar3 - iVar5);" do (compound_statement "{\n      iVar4 = (**(code **)(puVar7 + 0x46b80))(iVar5,uVar6,iVar2);\n      iVar5 = iVar5 + 1;\n      if (iVar4 == 0) {\n        return;\n      }\n    }" { (expression_statement "iVar4 = (**(code **)(puVar7 + 0x46b80))(iVar5,uVar6,iVar2);" (assignment_expression "iVar4 = (**(code **)(puVar7 + 0x46b80))(iVar5,uVar6,iVar2)" identifier = (call_expression "(**(code **)(puVar7 + 0x46b80))(iVar5,uVar6,iVar2)" (parenthesized_expression "(**(code **)(puVar7 + 0x46b80))" ( (pointer_expression "**(code **)(puVar7 + 0x46b80)" * (pointer_expression "*(code **)(puVar7 + 0x46b80)" * (cast_expression "(code **)(puVar7 + 0x46b80)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x46b80)" ( (binary_expression "puVar7 + 0x46b80" identifier + number_literal) ))))) )) (argument_list "(iVar5,uVar6,iVar2)" ( identifier , identifier , identifier )))) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (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 ;) })) }) 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  int iVar6;\n  int iVar7;\n  undefined4 uVar8;\n  undefined *puVar9;\n  undefined4 local_res4;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar1 = PTR_stderr_00146518;\n  puVar9 = PTR___stack_chk_guard_001464dc;\n  iVar2 = *(int *)PTR___stack_chk_guard_001464dc;\n  local_res4 = param_2;\n  local_res8 = param_3;\n  local_resc = param_4;\n  (*(code *)PTR_fwrite_00146438)(PTR_DAT_001445ac + -0x2904,1,10,*(undefined4 *)PTR_stderr_00146518)\n  ;\n  (*(code *)PTR___vfprintf_chk_00146540)(*(undefined4 *)puVar1,1,param_1,&local_res4);\n  uVar8 = *(undefined4 *)puVar1;\n  (*(code *)PTR_fputc_001462ac)(10,uVar8);\n  iVar5 = *(int *)puVar1;\n  (*(code *)PTR_fflush_00146520)();\n  if (iVar2 == *(int *)puVar9) {\n    return *(int *)puVar9;\n  }\n  puVar9 = PTR___stack_chk_fail_00146488;\n  (*(code *)PTR___stack_chk_fail_00146488)();\n  iVar2 = (**(code **)(puVar9 + 0x46c0c))(uVar8);\n  iVar3 = (**(code **)(puVar9 + 0x46c0c))(iVar5);\n  if (iVar2 <= iVar3) {\n    iVar6 = iVar5;\n    do {\n      iVar4 = (**(code **)(puVar9 + 0x46b80))(iVar6,uVar8,iVar2);\n      iVar7 = iVar6 + 1;\n      if (iVar4 == 0) {\n        return iVar6;\n      }\n      iVar6 = iVar7;\n    } while (iVar2 <= (iVar5 + iVar3) - iVar7);\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  int iVar6;\n  int iVar7;\n  undefined4 uVar8;\n  undefined *puVar9;\n  undefined4 local_res4;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar1 = PTR_stderr_00146518;\n  puVar9 = PTR___stack_chk_guard_001464dc;\n  iVar2 = *(int *)PTR___stack_chk_guard_001464dc;\n  local_res4 = param_2;\n  local_res8 = param_3;\n  local_resc = param_4;\n  (*(code *)PTR_fwrite_00146438)(PTR_DAT_001445ac + -0x2904,1,10,*(undefined4 *)PTR_stderr_00146518)\n  ;\n  (*(code *)PTR___vfprintf_chk_00146540)(*(undefined4 *)puVar1,1,param_1,&local_res4);\n  uVar8 = *(undefined4 *)puVar1;\n  (*(code *)PTR_fputc_001462ac)(10,uVar8);\n  iVar5 = *(int *)puVar1;\n  (*(code *)PTR_fflush_00146520)();\n  if (iVar2 == *(int *)puVar9) {\n    return *(int *)puVar9;\n  }\n  puVar9 = PTR___stack_chk_fail_00146488;\n  (*(code *)PTR___stack_chk_fail_00146488)();\n  iVar2 = (**(code **)(puVar9 + 0x46c0c))(uVar8);\n  iVar3 = (**(code **)(puVar9 + 0x46c0c))(iVar5);\n  if (iVar2 <= iVar3) {\n    iVar6 = iVar5;\n    do {\n      iVar4 = (**(code **)(puVar9 + 0x46b80))(iVar6,uVar8,iVar2);\n      iVar7 = iVar6 + 1;\n      if (iVar4 == 0) {\n        return iVar6;\n      }\n      iVar6 = iVar7;\n    } while (iVar2 <= (iVar5 + iVar3) - iVar7);\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  int iVar6;\n  int iVar7;\n  undefined4 uVar8;\n  undefined *puVar9;\n  undefined4 local_res4;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar1 = PTR_stderr_00146518;\n  puVar9 = PTR___stack_chk_guard_001464dc;\n  iVar2 = *(int *)PTR___stack_chk_guard_001464dc;\n  local_res4 = param_2;\n  local_res8 = param_3;\n  local_resc = param_4;\n  (*(code *)PTR_fwrite_00146438)(PTR_DAT_001445ac + -0x2904,1,10,*(undefined4 *)PTR_stderr_00146518)\n  ;\n  (*(code *)PTR___vfprintf_chk_00146540)(*(undefined4 *)puVar1,1,param_1,&local_res4);\n  uVar8 = *(undefined4 *)puVar1;\n  (*(code *)PTR_fputc_001462ac)(10,uVar8);\n  iVar5 = *(int *)puVar1;\n  (*(code *)PTR_fflush_00146520)();\n  if (iVar2 == *(int *)puVar9) {\n    return *(int *)puVar9;\n  }\n  puVar9 = PTR___stack_chk_fail_00146488;\n  (*(code *)PTR___stack_chk_fail_00146488)();\n  iVar2 = (**(code **)(puVar9 + 0x46c0c))(uVar8);\n  iVar3 = (**(code **)(puVar9 + 0x46c0c))(iVar5);\n  if (iVar2 <= iVar3) {\n    iVar6 = iVar5;\n    do {\n      iVar4 = (**(code **)(puVar9 + 0x46b80))(iVar6,uVar8,iVar2);\n      iVar7 = iVar6 + 1;\n      if (iVar4 == 0) {\n        return iVar6;\n      }\n      iVar6 = iVar7;\n    } while (iVar2 <= (iVar5 + iVar3) - iVar7);\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 "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * 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_00146518;" (assignment_expression "puVar1 = PTR_stderr_00146518" identifier = identifier) ;) (expression_statement "puVar9 = PTR___stack_chk_guard_001464dc;" (assignment_expression "puVar9 = PTR___stack_chk_guard_001464dc" identifier = identifier) ;) (expression_statement "iVar2 = *(int *)PTR___stack_chk_guard_001464dc;" (assignment_expression "iVar2 = *(int *)PTR___stack_chk_guard_001464dc" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_001464dc" * (cast_expression "(int *)PTR___stack_chk_guard_001464dc" ( (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_00146438)(PTR_DAT_001445ac + -0x2904,1,10,*(undefined4 *)PTR_stderr_00146518)\n  ;" (call_expression "(*(code *)PTR_fwrite_00146438)(PTR_DAT_001445ac + -0x2904,1,10,*(undefined4 *)PTR_stderr_00146518)" (parenthesized_expression "(*(code *)PTR_fwrite_00146438)" ( (pointer_expression "*(code *)PTR_fwrite_00146438" * (cast_expression "(code *)PTR_fwrite_00146438" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001445ac + -0x2904,1,10,*(undefined4 *)PTR_stderr_00146518)" ( (binary_expression "PTR_DAT_001445ac + -0x2904" identifier + number_literal) , number_literal , number_literal , (pointer_expression "*(undefined4 *)PTR_stderr_00146518" * (cast_expression "(undefined4 *)PTR_stderr_00146518" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "(*(code *)PTR___vfprintf_chk_00146540)(*(undefined4 *)puVar1,1,param_1,&local_res4);" (call_expression "(*(code *)PTR___vfprintf_chk_00146540)(*(undefined4 *)puVar1,1,param_1,&local_res4)" (parenthesized_expression "(*(code *)PTR___vfprintf_chk_00146540)" ( (pointer_expression "*(code *)PTR___vfprintf_chk_00146540" * (cast_expression "(code *)PTR___vfprintf_chk_00146540" ( (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 "uVar8 = *(undefined4 *)puVar1;" (assignment_expression "uVar8 = *(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_001462ac)(10,uVar8);" (call_expression "(*(code *)PTR_fputc_001462ac)(10,uVar8)" (parenthesized_expression "(*(code *)PTR_fputc_001462ac)" ( (pointer_expression "*(code *)PTR_fputc_001462ac" * (cast_expression "(code *)PTR_fputc_001462ac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(10,uVar8)" ( 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_00146520)();" (call_expression "(*(code *)PTR_fflush_00146520)()" (parenthesized_expression "(*(code *)PTR_fflush_00146520)" ( (pointer_expression "*(code *)PTR_fflush_00146520" * (cast_expression "(code *)PTR_fflush_00146520" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (iVar2 == *(int *)puVar9) {\n    return *(int *)puVar9;\n  }" if (parenthesized_expression "(iVar2 == *(int *)puVar9)" ( (binary_expression "iVar2 == *(int *)puVar9" identifier == (pointer_expression "*(int *)puVar9" * (cast_expression "(int *)puVar9" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return *(int *)puVar9;\n  }" { (return_statement "return *(int *)puVar9;" return (pointer_expression "*(int *)puVar9" * (cast_expression "(int *)puVar9" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "puVar9 = PTR___stack_chk_fail_00146488;" (assignment_expression "puVar9 = PTR___stack_chk_fail_00146488" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00146488)();" (call_expression "(*(code *)PTR___stack_chk_fail_00146488)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00146488)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00146488" * (cast_expression "(code *)PTR___stack_chk_fail_00146488" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar2 = (**(code **)(puVar9 + 0x46c0c))(uVar8);" (assignment_expression "iVar2 = (**(code **)(puVar9 + 0x46c0c))(uVar8)" identifier = (call_expression "(**(code **)(puVar9 + 0x46c0c))(uVar8)" (parenthesized_expression "(**(code **)(puVar9 + 0x46c0c))" ( (pointer_expression "**(code **)(puVar9 + 0x46c0c)" * (pointer_expression "*(code **)(puVar9 + 0x46c0c)" * (cast_expression "(code **)(puVar9 + 0x46c0c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x46c0c)" ( (binary_expression "puVar9 + 0x46c0c" identifier + number_literal) ))))) )) (argument_list "(uVar8)" ( identifier )))) ;) (expression_statement "iVar3 = (**(code **)(puVar9 + 0x46c0c))(iVar5);" (assignment_expression "iVar3 = (**(code **)(puVar9 + 0x46c0c))(iVar5)" identifier = (call_expression "(**(code **)(puVar9 + 0x46c0c))(iVar5)" (parenthesized_expression "(**(code **)(puVar9 + 0x46c0c))" ( (pointer_expression "**(code **)(puVar9 + 0x46c0c)" * (pointer_expression "*(code **)(puVar9 + 0x46c0c)" * (cast_expression "(code **)(puVar9 + 0x46c0c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x46c0c)" ( (binary_expression "puVar9 + 0x46c0c" identifier + number_literal) ))))) )) (argument_list "(iVar5)" ( identifier )))) ;) (if_statement "if (iVar2 <= iVar3) {\n    iVar6 = iVar5;\n    do {\n      iVar4 = (**(code **)(puVar9 + 0x46b80))(iVar6,uVar8,iVar2);\n      iVar7 = iVar6 + 1;\n      if (iVar4 == 0) {\n        return iVar6;\n      }\n      iVar6 = iVar7;\n    } while (iVar2 <= (iVar5 + iVar3) - iVar7);\n  }" if (parenthesized_expression "(iVar2 <= iVar3)" ( (binary_expression "iVar2 <= iVar3" identifier <= identifier) )) (compound_statement "{\n    iVar6 = iVar5;\n    do {\n      iVar4 = (**(code **)(puVar9 + 0x46b80))(iVar6,uVar8,iVar2);\n      iVar7 = iVar6 + 1;\n      if (iVar4 == 0) {\n        return iVar6;\n      }\n      iVar6 = iVar7;\n    } while (iVar2 <= (iVar5 + iVar3) - iVar7);\n  }" { (expression_statement "iVar6 = iVar5;" (assignment_expression "iVar6 = iVar5" identifier = identifier) ;) (do_statement "do {\n      iVar4 = (**(code **)(puVar9 + 0x46b80))(iVar6,uVar8,iVar2);\n      iVar7 = iVar6 + 1;\n      if (iVar4 == 0) {\n        return iVar6;\n      }\n      iVar6 = iVar7;\n    } while (iVar2 <= (iVar5 + iVar3) - iVar7);" do (compound_statement "{\n      iVar4 = (**(code **)(puVar9 + 0x46b80))(iVar6,uVar8,iVar2);\n      iVar7 = iVar6 + 1;\n      if (iVar4 == 0) {\n        return iVar6;\n      }\n      iVar6 = iVar7;\n    }" { (expression_statement "iVar4 = (**(code **)(puVar9 + 0x46b80))(iVar6,uVar8,iVar2);" (assignment_expression "iVar4 = (**(code **)(puVar9 + 0x46b80))(iVar6,uVar8,iVar2)" identifier = (call_expression "(**(code **)(puVar9 + 0x46b80))(iVar6,uVar8,iVar2)" (parenthesized_expression "(**(code **)(puVar9 + 0x46b80))" ( (pointer_expression "**(code **)(puVar9 + 0x46b80)" * (pointer_expression "*(code **)(puVar9 + 0x46b80)" * (cast_expression "(code **)(puVar9 + 0x46b80)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x46b80)" ( (binary_expression "puVar9 + 0x46b80" identifier + number_literal) ))))) )) (argument_list "(iVar6,uVar8,iVar2)" ( identifier , identifier , identifier )))) ;) (expression_statement "iVar7 = iVar6 + 1;" (assignment_expression "iVar7 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (if_statement "if (iVar4 == 0) {\n        return iVar6;\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        return iVar6;\n      }" { (return_statement "return iVar6;" return identifier ;) })) (expression_statement "iVar6 = iVar7;" (assignment_expression "iVar6 = iVar7" identifier = identifier) ;) }) while (parenthesized_expression "(iVar2 <= (iVar5 + iVar3) - iVar7)" ( (binary_expression "iVar2 <= (iVar5 + iVar3) - iVar7" identifier <= (binary_expression "(iVar5 + iVar3) - iVar7" (parenthesized_expression "(iVar5 + iVar3)" ( (binary_expression "iVar5 + iVar3" identifier + 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 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 = 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 )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT <= (binary_expression (parenthesized_expression ( (binary_expression IDENT + 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  int iVar6;\n  int iVar7;\n  undefined4 uVar8;\n  undefined *puVar9;\n  undefined4 local_res4;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar1 = PTR_stderr_00146518;\n  puVar9 = PTR___stack_chk_guard_001464dc;\n  iVar2 = *(int *)PTR___stack_chk_guard_001464dc;\n  local_res4 = param_2;\n  local_res8 = param_3;\n  local_resc = param_4;\n  (*(code *)PTR_fwrite_00146438)(PTR_DAT_001445ac + -0x2904,1,10,*(undefined4 *)PTR_stderr_00146518)\n  ;\n  (*(code *)PTR___vfprintf_chk_00146540)(*(undefined4 *)puVar1,1,param_1,&local_res4);\n  uVar8 = *(undefined4 *)puVar1;\n  (*(code *)PTR_fputc_001462ac)(10,uVar8);\n  iVar5 = *(int *)puVar1;\n  (*(code *)PTR_fflush_00146520)();\n  if (iVar2 == *(int *)puVar9) {\n    return *(int *)puVar9;\n  }\n  puVar9 = PTR___stack_chk_fail_00146488;\n  (*(code *)PTR___stack_chk_fail_00146488)();\n  iVar2 = (**(code **)(puVar9 + 0x46c0c))(uVar8);\n  iVar3 = (**(code **)(puVar9 + 0x46c0c))(iVar5);\n  if (iVar2 <= iVar3) {\n    iVar6 = iVar5;\n    do {\n      iVar4 = (**(code **)(puVar9 + 0x46b80))(iVar6,uVar8,iVar2);\n      iVar7 = iVar6 + 1;\n      if (iVar4 == 0) {\n        return iVar6;\n      }\n      iVar6 = iVar7;\n    } while (iVar2 <= (iVar5 + iVar3) - iVar7);\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  int iVar6;\n  int iVar7;\n  undefined4 uVar8;\n  undefined *puVar9;\n  undefined4 local_res4;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar1 = PTR_stderr_00146518;\n  puVar9 = PTR___stack_chk_guard_001464dc;\n  iVar2 = *(int *)PTR___stack_chk_guard_001464dc;\n  local_res4 = param_2;\n  local_res8 = param_3;\n  local_resc = param_4;\n  (*(code *)PTR_fwrite_00146438)(PTR_DAT_001445ac + -0x2904,1,10,*(undefined4 *)PTR_stderr_00146518)\n  ;\n  (*(code *)PTR___vfprintf_chk_00146540)(*(undefined4 *)puVar1,1,param_1,&local_res4);\n  uVar8 = *(undefined4 *)puVar1;\n  (*(code *)PTR_fputc_001462ac)(10,uVar8);\n  iVar5 = *(int *)puVar1;\n  (*(code *)PTR_fflush_00146520)();\n  if (iVar2 == *(int *)puVar9) {\n    return *(int *)puVar9;\n  }\n  puVar9 = PTR___stack_chk_fail_00146488;\n  (*(code *)PTR___stack_chk_fail_00146488)();\n  iVar2 = (**(code **)(puVar9 + 0x46c0c))(uVar8);\n  iVar3 = (**(code **)(puVar9 + 0x46c0c))(iVar5);\n  if (iVar2 <= iVar3) {\n    iVar6 = iVar5;\n    do {\n      iVar4 = (**(code **)(puVar9 + 0x46b80))(iVar6,uVar8,iVar2);\n      iVar7 = iVar6 + 1;\n      if (iVar4 == 0) {\n        return iVar6;\n      }\n      iVar6 = iVar7;\n    } while (iVar2 <= (iVar5 + iVar3) - iVar7);\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 "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "undefined4 uVar8;" (type_identifier "undefined4") (identifier "uVar8") (; ";")) (declaration "undefined *puVar9;" (type_identifier "undefined") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (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_00146518;" (assignment_expression "puVar1 = PTR_stderr_00146518" (identifier "puVar1") (= "=") (identifier "PTR_stderr_00146518")) (; ";")) (expression_statement "puVar9 = PTR___stack_chk_guard_001464dc;" (assignment_expression "puVar9 = PTR___stack_chk_guard_001464dc" (identifier "puVar9") (= "=") (identifier "PTR___stack_chk_guard_001464dc")) (; ";")) (expression_statement "iVar2 = *(int *)PTR___stack_chk_guard_001464dc;" (assignment_expression "iVar2 = *(int *)PTR___stack_chk_guard_001464dc" (identifier "iVar2") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_001464dc" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_001464dc" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_001464dc")))) (; ";")) (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_00146438)(PTR_DAT_001445ac + -0x2904,1,10,*(undefined4 *)PTR_stderr_00146518)\n  ;" (call_expression "(*(code *)PTR_fwrite_00146438)(PTR_DAT_001445ac + -0x2904,1,10,*(undefined4 *)PTR_stderr_00146518)" (parenthesized_expression "(*(code *)PTR_fwrite_00146438)" (( "(") (pointer_expression "*(code *)PTR_fwrite_00146438" (* "*") (cast_expression "(code *)PTR_fwrite_00146438" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fwrite_00146438"))) () ")")) (argument_list "(PTR_DAT_001445ac + -0x2904,1,10,*(undefined4 *)PTR_stderr_00146518)" (( "(") (binary_expression "PTR_DAT_001445ac + -0x2904" (identifier "PTR_DAT_001445ac") (+ "+") (number_literal "-0x2904")) (, ",") (number_literal "1") (, ",") (number_literal "10") (, ",") (pointer_expression "*(undefined4 *)PTR_stderr_00146518" (* "*") (cast_expression "(undefined4 *)PTR_stderr_00146518" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stderr_00146518"))) () ")"))) (; ";")) (expression_statement "(*(code *)PTR___vfprintf_chk_00146540)(*(undefined4 *)puVar1,1,param_1,&local_res4);" (call_expression "(*(code *)PTR___vfprintf_chk_00146540)(*(undefined4 *)puVar1,1,param_1,&local_res4)" (parenthesized_expression "(*(code *)PTR___vfprintf_chk_00146540)" (( "(") (pointer_expression "*(code *)PTR___vfprintf_chk_00146540" (* "*") (cast_expression "(code *)PTR___vfprintf_chk_00146540" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___vfprintf_chk_00146540"))) () ")")) (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 "uVar8 = *(undefined4 *)puVar1;" (assignment_expression "uVar8 = *(undefined4 *)puVar1" (identifier "uVar8") (= "=") (pointer_expression "*(undefined4 *)puVar1" (* "*") (cast_expression "(undefined4 *)puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) (; ";")) (expression_statement "(*(code *)PTR_fputc_001462ac)(10,uVar8);" (call_expression "(*(code *)PTR_fputc_001462ac)(10,uVar8)" (parenthesized_expression "(*(code *)PTR_fputc_001462ac)" (( "(") (pointer_expression "*(code *)PTR_fputc_001462ac" (* "*") (cast_expression "(code *)PTR_fputc_001462ac" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fputc_001462ac"))) () ")")) (argument_list "(10,uVar8)" (( "(") (number_literal "10") (, ",") (identifier "uVar8") () ")"))) (; ";")) (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_00146520)();" (call_expression "(*(code *)PTR_fflush_00146520)()" (parenthesized_expression "(*(code *)PTR_fflush_00146520)" (( "(") (pointer_expression "*(code *)PTR_fflush_00146520" (* "*") (cast_expression "(code *)PTR_fflush_00146520" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fflush_00146520"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (iVar2 == *(int *)puVar9) {\n    return *(int *)puVar9;\n  }" (if "if") (parenthesized_expression "(iVar2 == *(int *)puVar9)" (( "(") (binary_expression "iVar2 == *(int *)puVar9" (identifier "iVar2") (== "==") (pointer_expression "*(int *)puVar9" (* "*") (cast_expression "(int *)puVar9" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar9")))) () ")")) (compound_statement "{\n    return *(int *)puVar9;\n  }" ({ "{") (return_statement "return *(int *)puVar9;" (return "return") (pointer_expression "*(int *)puVar9" (* "*") (cast_expression "(int *)puVar9" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar9"))) (; ";")) (} "}"))) (expression_statement "puVar9 = PTR___stack_chk_fail_00146488;" (assignment_expression "puVar9 = PTR___stack_chk_fail_00146488" (identifier "puVar9") (= "=") (identifier "PTR___stack_chk_fail_00146488")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_00146488)();" (call_expression "(*(code *)PTR___stack_chk_fail_00146488)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00146488)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_00146488" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_00146488" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_00146488"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar2 = (**(code **)(puVar9 + 0x46c0c))(uVar8);" (assignment_expression "iVar2 = (**(code **)(puVar9 + 0x46c0c))(uVar8)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(puVar9 + 0x46c0c))(uVar8)" (parenthesized_expression "(**(code **)(puVar9 + 0x46c0c))" (( "(") (pointer_expression "**(code **)(puVar9 + 0x46c0c)" (* "*") (pointer_expression "*(code **)(puVar9 + 0x46c0c)" (* "*") (cast_expression "(code **)(puVar9 + 0x46c0c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar9 + 0x46c0c)" (( "(") (binary_expression "puVar9 + 0x46c0c" (identifier "puVar9") (+ "+") (number_literal "0x46c0c")) () ")"))))) () ")")) (argument_list "(uVar8)" (( "(") (identifier "uVar8") () ")")))) (; ";")) (expression_statement "iVar3 = (**(code **)(puVar9 + 0x46c0c))(iVar5);" (assignment_expression "iVar3 = (**(code **)(puVar9 + 0x46c0c))(iVar5)" (identifier "iVar3") (= "=") (call_expression "(**(code **)(puVar9 + 0x46c0c))(iVar5)" (parenthesized_expression "(**(code **)(puVar9 + 0x46c0c))" (( "(") (pointer_expression "**(code **)(puVar9 + 0x46c0c)" (* "*") (pointer_expression "*(code **)(puVar9 + 0x46c0c)" (* "*") (cast_expression "(code **)(puVar9 + 0x46c0c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar9 + 0x46c0c)" (( "(") (binary_expression "puVar9 + 0x46c0c" (identifier "puVar9") (+ "+") (number_literal "0x46c0c")) () ")"))))) () ")")) (argument_list "(iVar5)" (( "(") (identifier "iVar5") () ")")))) (; ";")) (if_statement "if (iVar2 <= iVar3) {\n    iVar6 = iVar5;\n    do {\n      iVar4 = (**(code **)(puVar9 + 0x46b80))(iVar6,uVar8,iVar2);\n      iVar7 = iVar6 + 1;\n      if (iVar4 == 0) {\n        return iVar6;\n      }\n      iVar6 = iVar7;\n    } while (iVar2 <= (iVar5 + iVar3) - iVar7);\n  }" (if "if") (parenthesized_expression "(iVar2 <= iVar3)" (( "(") (binary_expression "iVar2 <= iVar3" (identifier "iVar2") (<= "<=") (identifier "iVar3")) () ")")) (compound_statement "{\n    iVar6 = iVar5;\n    do {\n      iVar4 = (**(code **)(puVar9 + 0x46b80))(iVar6,uVar8,iVar2);\n      iVar7 = iVar6 + 1;\n      if (iVar4 == 0) {\n        return iVar6;\n      }\n      iVar6 = iVar7;\n    } while (iVar2 <= (iVar5 + iVar3) - iVar7);\n  }" ({ "{") (expression_statement "iVar6 = iVar5;" (assignment_expression "iVar6 = iVar5" (identifier "iVar6") (= "=") (identifier "iVar5")) (; ";")) (do_statement "do {\n      iVar4 = (**(code **)(puVar9 + 0x46b80))(iVar6,uVar8,iVar2);\n      iVar7 = iVar6 + 1;\n      if (iVar4 == 0) {\n        return iVar6;\n      }\n      iVar6 = iVar7;\n    } while (iVar2 <= (iVar5 + iVar3) - iVar7);" (do "do") (compound_statement "{\n      iVar4 = (**(code **)(puVar9 + 0x46b80))(iVar6,uVar8,iVar2);\n      iVar7 = iVar6 + 1;\n      if (iVar4 == 0) {\n        return iVar6;\n      }\n      iVar6 = iVar7;\n    }" ({ "{") (expression_statement "iVar4 = (**(code **)(puVar9 + 0x46b80))(iVar6,uVar8,iVar2);" (assignment_expression "iVar4 = (**(code **)(puVar9 + 0x46b80))(iVar6,uVar8,iVar2)" (identifier "iVar4") (= "=") (call_expression "(**(code **)(puVar9 + 0x46b80))(iVar6,uVar8,iVar2)" (parenthesized_expression "(**(code **)(puVar9 + 0x46b80))" (( "(") (pointer_expression "**(code **)(puVar9 + 0x46b80)" (* "*") (pointer_expression "*(code **)(puVar9 + 0x46b80)" (* "*") (cast_expression "(code **)(puVar9 + 0x46b80)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar9 + 0x46b80)" (( "(") (binary_expression "puVar9 + 0x46b80" (identifier "puVar9") (+ "+") (number_literal "0x46b80")) () ")"))))) () ")")) (argument_list "(iVar6,uVar8,iVar2)" (( "(") (identifier "iVar6") (, ",") (identifier "uVar8") (, ",") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "iVar7 = iVar6 + 1;" (assignment_expression "iVar7 = iVar6 + 1" (identifier "iVar7") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar4 == 0) {\n        return iVar6;\n      }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return iVar6;\n      }" ({ "{") (return_statement "return iVar6;" (return "return") (identifier "iVar6") (; ";")) (} "}"))) (expression_statement "iVar6 = iVar7;" (assignment_expression "iVar6 = iVar7" (identifier "iVar6") (= "=") (identifier "iVar7")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar2 <= (iVar5 + iVar3) - iVar7)" (( "(") (binary_expression "iVar2 <= (iVar5 + iVar3) - iVar7" (identifier "iVar2") (<= "<=") (binary_expression "(iVar5 + iVar3) - iVar7" (parenthesized_expression "(iVar5 + iVar3)" (( "(") (binary_expression "iVar5 + iVar3" (identifier "iVar5") (+ "+") (identifier "iVar3")) () ")")) (- "-") (identifier "iVar7"))) () ")")) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))
(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: (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: (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))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (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;
  int iVar6;
  int iVar7;
  undefined4 uVar8;
  undefined *puVar9;
  undefined4 local_res4;
  undefined4 local_res8;
  undefined4 local_resc;
  
  puVar1 = PTR_stderr_00146518;
  puVar9 = PTR___stack_chk_guard_001464dc;
  iVar2 = *(int *)PTR___stack_chk_guard_001464dc;
  local_res4 = param_2;
  local_res8 = param_3;
  local_resc = param_4;
  (*(code *)PTR_fwrite_00146438)(PTR_DAT_001445ac + -0x2904,1,10,*(undefined4 *)PTR_stderr_00146518)
  ;
  (*(code *)PTR___vfprintf_chk_00146540)(*(undefined4 *)puVar1,1,param_1,&local_res4);
  uVar8 = *(undefined4 *)puVar1;
  (*(code *)PTR_fputc_001462ac)(10,uVar8);
  iVar5 = *(int *)puVar1;
  (*(code *)PTR_fflush_00146520)();
  if (iVar2 == *(int *)puVar9) {
    return *(int *)puVar9;
  }
  puVar9 = PTR___stack_chk_fail_00146488;
  (*(code *)PTR___stack_chk_fail_00146488)();
  iVar2 = (**(code **)(puVar9 + 0x46c0c))(uVar8);
  iVar3 = (**(code **)(puVar9 + 0x46c0c))(iVar5);
  if (iVar2 <= iVar3) {
    iVar6 = iVar5;
    do {
      iVar4 = (**(code **)(puVar9 + 0x46b80))(iVar6,uVar8,iVar2);
      iVar7 = iVar6 + 1;
      if (iVar4 == 0) {
        return iVar6;
      }
      iVar6 = iVar7;
    } while (iVar2 <= (iVar5 + iVar3) - iVar7);
  }
  return 0;
}

