
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 dired_dump_obstack(char *prefix,obstack *os)

{
  undefined4 uVar1;
  _IO_FILE *p_Var2;
  undefined *puVar3;
  char *pcVar4;
  obstack *__o;
  char *pcVar5;
  char *pcVar6;
  _obstack_chunk *p_Var7;
  
  pcVar6 = os->next_free;
  pcVar5 = os->object_base;
  if (3 < (uint)((int)pcVar6 - (int)pcVar5)) {
    if (pcVar6 == pcVar5) {
      os->field_0x28 = os->field_0x28 | 2;
    }
    p_Var7 = os->chunk;
    pcVar4 = (char *)((uint)(pcVar6 + os->alignment_mask) & ~os->alignment_mask);
    if ((uint)((int)os->chunk_limit - (int)p_Var7) < (uint)((int)pcVar4 - (int)p_Var7)) {
      pcVar4 = os->chunk_limit;
    }
    pcVar6 = pcVar5 + ((int)pcVar6 - (int)pcVar5 & 0xfffffffc);
    os->next_free = pcVar4;
    os->object_base = pcVar4;
    puVar3 = PTR_stdout_0003afcc;
    fputs_unlocked(prefix,*(FILE **)PTR_stdout_0003afcc);
    do {
      uVar1 = *(undefined4 *)pcVar5;
      pcVar5 = pcVar5 + 4;
      __printf_chk(1,&DAT_0002d97a,uVar1,p_Var7);
    } while (pcVar6 != pcVar5);
    p_Var2 = *(_IO_FILE **)puVar3;
    pcVar6 = p_Var2->_IO_write_ptr;
    if (pcVar6 < p_Var2->_IO_write_end) {
      p_Var2->_IO_write_ptr = pcVar6 + 1;
      *pcVar6 = '\n';
    }
    else {
      __overflow(p_Var2,10);
    }
  }
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 FUN_00015220(char *param_1,int param_2)

{
  undefined4 uVar1;
  _IO_FILE *p_Var2;
  char *pcVar3;
  undefined *puVar4;
  uint uVar5;
  undefined4 *puVar6;
  undefined4 *puVar7;
  int iVar8;
  
  puVar7 = *(undefined4 **)(param_2 + 0xc);
  puVar6 = *(undefined4 **)(param_2 + 8);
  if (3 < (uint)((int)puVar7 - (int)puVar6)) {
    if (puVar7 == puVar6) {
      *(byte *)(param_2 + 0x28) = *(byte *)(param_2 + 0x28) | 2;
    }
    iVar8 = *(int *)(param_2 + 4);
    uVar5 = (int)puVar7 + *(uint *)(param_2 + 0x18) & ~*(uint *)(param_2 + 0x18);
    if ((uint)(*(int *)(param_2 + 0x10) - iVar8) < uVar5 - iVar8) {
      uVar5 = *(uint *)(param_2 + 0x10);
    }
    puVar7 = (undefined4 *)(((int)puVar7 - (int)puVar6 & 0xfffffffcU) + (int)puVar6);
    *(uint *)(param_2 + 0xc) = uVar5;
    *(uint *)(param_2 + 8) = uVar5;
    puVar4 = PTR_stdout_0003afcc;
    fputs_unlocked(param_1,*(FILE **)PTR_stdout_0003afcc);
    do {
      uVar1 = *puVar6;
      puVar6 = puVar6 + 1;
      __printf_chk(1,&DAT_0002d97a,uVar1,iVar8);
    } while (puVar7 != puVar6);
    p_Var2 = *(_IO_FILE **)puVar4;
    pcVar3 = p_Var2->_IO_write_ptr;
    if (pcVar3 < p_Var2->_IO_write_end) {
      p_Var2->_IO_write_ptr = pcVar3 + 1;
      *pcVar3 = '\n';
    }
    else {
      __overflow(p_Var2,10);
    }
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014250
ADD EBX,0x25dd7
SUB ESP,0x1c
MOV ECX,dword ptr [EDX + 0xc]
MOV EDI,dword ptr [EDX + 0x8]
MOV ESI,ECX
SUB ESI,EDI
CMP ESI,0x3
JBE 0x000152cf
CMP ECX,EDI
JZ 0x000152d7
MOV EBP,dword ptr [EDX + 0x18]
MOV dword ptr [ESP + 0xc],EAX
LEA EAX,[ECX + EBP*0x1]
NOT EBP
MOV ECX,dword ptr [EDX + 0x4]
AND EAX,EBP
MOV EBP,EAX
SUB EBP,ECX
MOV dword ptr [ESP + 0x8],EBP
MOV EBP,dword ptr [EDX + 0x10]
SUB EBP,ECX
CMP dword ptr [ESP + 0x8],EBP
CMOVA EAX,dword ptr [EDX + 0x10]
AND ESI,0xfffffffc
MOV EBP,EDI
ADD ESI,EDI
MOV dword ptr [EDX + 0xc],EAX
LEA EDI,[EBX + 0xffff297a]
MOV dword ptr [EDX + 0x8],EAX
PUSH ECX
PUSH ECX
MOV ECX,dword ptr [EBX + 0xffffffcc]
MOV dword ptr [ESP + 0x10],ECX
PUSH dword ptr [ECX]
PUSH dword ptr [ESP + 0x18]
CALL 0x000123d0
ADD ESP,0x10
SUB ESP,0x4
PUSH dword ptr [EBP]
ADD EBP,0x4
PUSH EDI
PUSH 0x1
CALL 0x00012520
ADD ESP,0x10
CMP ESI,EBP
JNZ 0x000152a0
MOV EAX,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [EAX]
MOV EDX,dword ptr [EAX + 0x14]
CMP EDX,dword ptr [EAX + 0x18]
JNC 0x000152e0
LEA ECX,[EDX + 0x1]
MOV dword ptr [EAX + 0x14],ECX
MOV byte ptr [EDX],0xa
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
OR byte ptr [EDX + 0x28],0x2
JMP 0x0001524d
PUSH EDX
PUSH EDX
PUSH 0xa
PUSH EAX
CALL 0x000125a0
ADD ESP,0x10
JMP 0x000152cf
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00015220(char *param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  _IO_FILE *p_Var2;\n  char *pcVar3;\n  undefined *puVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  \n  puVar7 = *(undefined4 **)(param_2 + 0xc);\n  puVar6 = *(undefined4 **)(param_2 + 8);\n  if (3 < (uint)((int)puVar7 - (int)puVar6)) {\n    if (puVar7 == puVar6) {\n      *(byte *)(param_2 + 0x28) = *(byte *)(param_2 + 0x28) | 2;\n    }\n    iVar8 = *(int *)(param_2 + 4);\n    uVar5 = (int)puVar7 + *(uint *)(param_2 + 0x18) & ~*(uint *)(param_2 + 0x18);\n    if ((uint)(*(int *)(param_2 + 0x10) - iVar8) < uVar5 - iVar8) {\n      uVar5 = *(uint *)(param_2 + 0x10);\n    }\n    puVar7 = (undefined4 *)(((int)puVar7 - (int)puVar6 & 0xfffffffcU) + (int)puVar6);\n    *(uint *)(param_2 + 0xc) = uVar5;\n    *(uint *)(param_2 + 8) = uVar5;\n    puVar4 = PTR_stdout_0003afcc;\n    fputs_unlocked(param_1,*(FILE **)PTR_stdout_0003afcc);\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      __printf_chk(1,&DAT_0002d97a,uVar1,iVar8);\n    } while (puVar7 != puVar6);\n    p_Var2 = *(_IO_FILE **)puVar4;\n    pcVar3 = p_Var2->_IO_write_ptr;\n    if (pcVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar3 + 1;\n      *pcVar3 = '\n';\n    }\n    else {\n      __overflow(p_Var2,10);\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00015220(char *param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  _IO_FILE *p_Var2;\n  char *pcVar3;\n  undefined *puVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  \n  puVar7 = *(undefined4 **)(param_2 + 0xc);\n  puVar6 = *(undefined4 **)(param_2 + 8);\n  if (3 < (uint)((int)puVar7 - (int)puVar6)) {\n    if (puVar7 == puVar6) {\n      *(byte *)(param_2 + 0x28) = *(byte *)(param_2 + 0x28) | 2;\n    }\n    iVar8 = *(int *)(param_2 + 4);\n    uVar5 = (int)puVar7 + *(uint *)(param_2 + 0x18) & ~*(uint *)(param_2 + 0x18);\n    if ((uint)(*(int *)(param_2 + 0x10) - iVar8) < uVar5 - iVar8) {\n      uVar5 = *(uint *)(param_2 + 0x10);\n    }\n    puVar7 = (undefined4 *)(((int)puVar7 - (int)puVar6 & 0xfffffffcU) + (int)puVar6);\n    *(uint *)(param_2 + 0xc) = uVar5;\n    *(uint *)(param_2 + 8) = uVar5;\n    puVar4 = PTR_stdout_0003afcc;\n    fputs_unlocked(param_1,*(FILE **)PTR_stdout_0003afcc);\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      __printf_chk(1,&DAT_0002d97a,uVar1,iVar8);\n    } while (puVar7 != puVar6);\n    p_Var2 = *(_IO_FILE **)puVar4;\n    pcVar3 = p_Var2->_IO_write_ptr;\n    if (pcVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar3 + 1;\n      *pcVar3 = '\n';\n    }\n    else {\n      __overflow(p_Var2,10);\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00015220(char *param_1,int param_2)" identifier (parameter_list "(char *param_1,int param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  _IO_FILE *p_Var2;\n  char *pcVar3;\n  undefined *puVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  \n  puVar7 = *(undefined4 **)(param_2 + 0xc);\n  puVar6 = *(undefined4 **)(param_2 + 8);\n  if (3 < (uint)((int)puVar7 - (int)puVar6)) {\n    if (puVar7 == puVar6) {\n      *(byte *)(param_2 + 0x28) = *(byte *)(param_2 + 0x28) | 2;\n    }\n    iVar8 = *(int *)(param_2 + 4);\n    uVar5 = (int)puVar7 + *(uint *)(param_2 + 0x18) & ~*(uint *)(param_2 + 0x18);\n    if ((uint)(*(int *)(param_2 + 0x10) - iVar8) < uVar5 - iVar8) {\n      uVar5 = *(uint *)(param_2 + 0x10);\n    }\n    puVar7 = (undefined4 *)(((int)puVar7 - (int)puVar6 & 0xfffffffcU) + (int)puVar6);\n    *(uint *)(param_2 + 0xc) = uVar5;\n    *(uint *)(param_2 + 8) = uVar5;\n    puVar4 = PTR_stdout_0003afcc;\n    fputs_unlocked(param_1,*(FILE **)PTR_stdout_0003afcc);\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      __printf_chk(1,&DAT_0002d97a,uVar1,iVar8);\n    } while (puVar7 != puVar6);\n    p_Var2 = *(_IO_FILE **)puVar4;\n    pcVar3 = p_Var2->_IO_write_ptr;\n    if (pcVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar3 + 1;\n      *pcVar3 = '\n';\n    }\n    else {\n      __overflow(p_Var2,10);\n    }\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "_IO_FILE *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (expression_statement "puVar7 = *(undefined4 **)(param_2 + 0xc);" (assignment_expression "puVar7 = *(undefined4 **)(param_2 + 0xc)" identifier = (pointer_expression "*(undefined4 **)(param_2 + 0xc)" * (cast_expression "(undefined4 **)(param_2 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "puVar6 = *(undefined4 **)(param_2 + 8);" (assignment_expression "puVar6 = *(undefined4 **)(param_2 + 8)" identifier = (pointer_expression "*(undefined4 **)(param_2 + 8)" * (cast_expression "(undefined4 **)(param_2 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (if_statement "if (3 < (uint)((int)puVar7 - (int)puVar6)) {\n    if (puVar7 == puVar6) {\n      *(byte *)(param_2 + 0x28) = *(byte *)(param_2 + 0x28) | 2;\n    }\n    iVar8 = *(int *)(param_2 + 4);\n    uVar5 = (int)puVar7 + *(uint *)(param_2 + 0x18) & ~*(uint *)(param_2 + 0x18);\n    if ((uint)(*(int *)(param_2 + 0x10) - iVar8) < uVar5 - iVar8) {\n      uVar5 = *(uint *)(param_2 + 0x10);\n    }\n    puVar7 = (undefined4 *)(((int)puVar7 - (int)puVar6 & 0xfffffffcU) + (int)puVar6);\n    *(uint *)(param_2 + 0xc) = uVar5;\n    *(uint *)(param_2 + 8) = uVar5;\n    puVar4 = PTR_stdout_0003afcc;\n    fputs_unlocked(param_1,*(FILE **)PTR_stdout_0003afcc);\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      __printf_chk(1,&DAT_0002d97a,uVar1,iVar8);\n    } while (puVar7 != puVar6);\n    p_Var2 = *(_IO_FILE **)puVar4;\n    pcVar3 = p_Var2->_IO_write_ptr;\n    if (pcVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar3 + 1;\n      *pcVar3 = '\n';\n    }\n    else {\n      __overflow(p_Var2,10);\n    }\n  }" if (parenthesized_expression "(3 < (uint)((int)puVar7 - (int)puVar6))" ( (binary_expression "3 < (uint)((int)puVar7 - (int)puVar6)" number_literal < (call_expression "(uint)((int)puVar7 - (int)puVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)puVar7 - (int)puVar6)" ( (binary_expression "(int)puVar7 - (int)puVar6" (cast_expression "(int)puVar7" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier)) )))) )) (compound_statement "{\n    if (puVar7 == puVar6) {\n      *(byte *)(param_2 + 0x28) = *(byte *)(param_2 + 0x28) | 2;\n    }\n    iVar8 = *(int *)(param_2 + 4);\n    uVar5 = (int)puVar7 + *(uint *)(param_2 + 0x18) & ~*(uint *)(param_2 + 0x18);\n    if ((uint)(*(int *)(param_2 + 0x10) - iVar8) < uVar5 - iVar8) {\n      uVar5 = *(uint *)(param_2 + 0x10);\n    }\n    puVar7 = (undefined4 *)(((int)puVar7 - (int)puVar6 & 0xfffffffcU) + (int)puVar6);\n    *(uint *)(param_2 + 0xc) = uVar5;\n    *(uint *)(param_2 + 8) = uVar5;\n    puVar4 = PTR_stdout_0003afcc;\n    fputs_unlocked(param_1,*(FILE **)PTR_stdout_0003afcc);\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      __printf_chk(1,&DAT_0002d97a,uVar1,iVar8);\n    } while (puVar7 != puVar6);\n    p_Var2 = *(_IO_FILE **)puVar4;\n    pcVar3 = p_Var2->_IO_write_ptr;\n    if (pcVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar3 + 1;\n      *pcVar3 = '\n';\n    }\n    else {\n      __overflow(p_Var2,10);\n    }\n  }" { (if_statement "if (puVar7 == puVar6) {\n      *(byte *)(param_2 + 0x28) = *(byte *)(param_2 + 0x28) | 2;\n    }" if (parenthesized_expression "(puVar7 == puVar6)" ( (binary_expression "puVar7 == puVar6" identifier == identifier) )) (compound_statement "{\n      *(byte *)(param_2 + 0x28) = *(byte *)(param_2 + 0x28) | 2;\n    }" { (expression_statement "*(byte *)(param_2 + 0x28) = *(byte *)(param_2 + 0x28) | 2;" (assignment_expression "*(byte *)(param_2 + 0x28) = *(byte *)(param_2 + 0x28) | 2" (pointer_expression "*(byte *)(param_2 + 0x28)" * (cast_expression "(byte *)(param_2 + 0x28)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_2 + 0x28) | 2" (pointer_expression "*(byte *)(param_2 + 0x28)" * (cast_expression "(byte *)(param_2 + 0x28)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) | number_literal)) ;) })) (expression_statement "iVar8 = *(int *)(param_2 + 4);" (assignment_expression "iVar8 = *(int *)(param_2 + 4)" identifier = (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = (int)puVar7 + *(uint *)(param_2 + 0x18) & ~*(uint *)(param_2 + 0x18);" (assignment_expression "uVar5 = (int)puVar7 + *(uint *)(param_2 + 0x18) & ~*(uint *)(param_2 + 0x18)" identifier = (binary_expression "(int)puVar7 + *(uint *)(param_2 + 0x18) & ~*(uint *)(param_2 + 0x18)" (binary_expression "(int)puVar7 + *(uint *)(param_2 + 0x18)" (cast_expression "(int)puVar7" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(uint *)(param_2 + 0x18)" * (cast_expression "(uint *)(param_2 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) & (unary_expression "~*(uint *)(param_2 + 0x18)" ~ (pointer_expression "*(uint *)(param_2 + 0x18)" * (cast_expression "(uint *)(param_2 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))))) ;) (if_statement "if ((uint)(*(int *)(param_2 + 0x10) - iVar8) < uVar5 - iVar8) {\n      uVar5 = *(uint *)(param_2 + 0x10);\n    }" if (parenthesized_expression "((uint)(*(int *)(param_2 + 0x10) - iVar8) < uVar5 - iVar8)" ( (binary_expression "(uint)(*(int *)(param_2 + 0x10) - iVar8) < uVar5 - iVar8" (call_expression "(uint)(*(int *)(param_2 + 0x10) - iVar8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_2 + 0x10) - iVar8)" ( (binary_expression "*(int *)(param_2 + 0x10) - iVar8" (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) - identifier) ))) < (binary_expression "uVar5 - iVar8" identifier - identifier)) )) (compound_statement "{\n      uVar5 = *(uint *)(param_2 + 0x10);\n    }" { (expression_statement "uVar5 = *(uint *)(param_2 + 0x10);" (assignment_expression "uVar5 = *(uint *)(param_2 + 0x10)" identifier = (pointer_expression "*(uint *)(param_2 + 0x10)" * (cast_expression "(uint *)(param_2 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) ;) })) (expression_statement "puVar7 = (undefined4 *)(((int)puVar7 - (int)puVar6 & 0xfffffffcU) + (int)puVar6);" (assignment_expression "puVar7 = (undefined4 *)(((int)puVar7 - (int)puVar6 & 0xfffffffcU) + (int)puVar6)" identifier = (cast_expression "(undefined4 *)(((int)puVar7 - (int)puVar6 & 0xfffffffcU) + (int)puVar6)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((int)puVar7 - (int)puVar6 & 0xfffffffcU) + (int)puVar6)" ( (binary_expression "((int)puVar7 - (int)puVar6 & 0xfffffffcU) + (int)puVar6" (parenthesized_expression "((int)puVar7 - (int)puVar6 & 0xfffffffcU)" ( (binary_expression "(int)puVar7 - (int)puVar6 & 0xfffffffcU" (binary_expression "(int)puVar7 - (int)puVar6" (cast_expression "(int)puVar7" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier)) & number_literal) )) + (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "*(uint *)(param_2 + 0xc) = uVar5;" (assignment_expression "*(uint *)(param_2 + 0xc) = uVar5" (pointer_expression "*(uint *)(param_2 + 0xc)" * (cast_expression "(uint *)(param_2 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(param_2 + 8) = uVar5;" (assignment_expression "*(uint *)(param_2 + 8) = uVar5" (pointer_expression "*(uint *)(param_2 + 8)" * (cast_expression "(uint *)(param_2 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar4 = PTR_stdout_0003afcc;" (assignment_expression "puVar4 = PTR_stdout_0003afcc" identifier = identifier) ;) (expression_statement "fputs_unlocked(param_1,*(FILE **)PTR_stdout_0003afcc);" (call_expression "fputs_unlocked(param_1,*(FILE **)PTR_stdout_0003afcc)" identifier (argument_list "(param_1,*(FILE **)PTR_stdout_0003afcc)" ( identifier , (pointer_expression "*(FILE **)PTR_stdout_0003afcc" * (cast_expression "(FILE **)PTR_stdout_0003afcc" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (do_statement "do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      __printf_chk(1,&DAT_0002d97a,uVar1,iVar8);\n    } while (puVar7 != puVar6);" do (compound_statement "{\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      __printf_chk(1,&DAT_0002d97a,uVar1,iVar8);\n    }" { (expression_statement "uVar1 = *puVar6;" (assignment_expression "uVar1 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "__printf_chk(1,&DAT_0002d97a,uVar1,iVar8);" (call_expression "__printf_chk(1,&DAT_0002d97a,uVar1,iVar8)" identifier (argument_list "(1,&DAT_0002d97a,uVar1,iVar8)" ( number_literal , (pointer_expression "&DAT_0002d97a" & identifier) , identifier , identifier ))) ;) }) while (parenthesized_expression "(puVar7 != puVar6)" ( (binary_expression "puVar7 != puVar6" identifier != identifier) )) ;) (expression_statement "p_Var2 = *(_IO_FILE **)puVar4;" (assignment_expression "p_Var2 = *(_IO_FILE **)puVar4" identifier = (pointer_expression "*(_IO_FILE **)puVar4" * (cast_expression "(_IO_FILE **)puVar4" ( (type_descriptor "_IO_FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pcVar3 = p_Var2->_IO_write_ptr;" (assignment_expression "pcVar3 = p_Var2->_IO_write_ptr" identifier = (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier)) ;) (if_statement "if (pcVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar3 + 1;\n      *pcVar3 = '\n';\n    }\n    else {\n      __overflow(p_Var2,10);\n    }" if (parenthesized_expression "(pcVar3 < p_Var2->_IO_write_end)" ( (binary_expression "pcVar3 < p_Var2->_IO_write_end" identifier < (field_expression "p_Var2->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n      p_Var2->_IO_write_ptr = pcVar3 + 1;\n      *pcVar3 = '\n';\n    }" { (expression_statement "p_Var2->_IO_write_ptr = pcVar3 + 1;" (assignment_expression "p_Var2->_IO_write_ptr = pcVar3 + 1" (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier) = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar3 = '\n';" (assignment_expression "*pcVar3 = '\n'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'\n'" ' escape_sequence ')) ;) }) (else_clause "else {\n      __overflow(p_Var2,10);\n    }" else (compound_statement "{\n      __overflow(p_Var2,10);\n    }" { (expression_statement "__overflow(p_Var2,10);" (call_expression "__overflow(p_Var2,10)" identifier (argument_list "(p_Var2,10)" ( identifier , number_literal ))) ;) }))) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 dired_dump_obstack(char *prefix,obstack *os)\n\n{\n  undefined4 uVar1;\n  _IO_FILE *p_Var2;\n  undefined *puVar3;\n  char *pcVar4;\n  obstack *__o;\n  char *pcVar5;\n  char *pcVar6;\n  _obstack_chunk *p_Var7;\n  \n  pcVar6 = os->next_free;\n  pcVar5 = os->object_base;\n  if (3 < (uint)((int)pcVar6 - (int)pcVar5)) {\n    if (pcVar6 == pcVar5) {\n      os->field_0x28 = os->field_0x28 | 2;\n    }\n    p_Var7 = os->chunk;\n    pcVar4 = (char *)((uint)(pcVar6 + os->alignment_mask) & ~os->alignment_mask);\n    if ((uint)((int)os->chunk_limit - (int)p_Var7) < (uint)((int)pcVar4 - (int)p_Var7)) {\n      pcVar4 = os->chunk_limit;\n    }\n    pcVar6 = pcVar5 + ((int)pcVar6 - (int)pcVar5 & 0xfffffffc);\n    os->next_free = pcVar4;\n    os->object_base = pcVar4;\n    puVar3 = PTR_stdout_0003afcc;\n    fputs_unlocked(prefix,*(FILE **)PTR_stdout_0003afcc);\n    do {\n      uVar1 = *(undefined4 *)pcVar5;\n      pcVar5 = pcVar5 + 4;\n      __printf_chk(1,&DAT_0002d97a,uVar1,p_Var7);\n    } while (pcVar6 != pcVar5);\n    p_Var2 = *(_IO_FILE **)puVar3;\n    pcVar6 = p_Var2->_IO_write_ptr;\n    if (pcVar6 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar6 + 1;\n      *pcVar6 = '\n';\n    }\n    else {\n      __overflow(p_Var2,10);\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 dired_dump_obstack(char *prefix,obstack *os)\n\n{\n  undefined4 uVar1;\n  _IO_FILE *p_Var2;\n  undefined *puVar3;\n  char *pcVar4;\n  obstack *__o;\n  char *pcVar5;\n  char *pcVar6;\n  _obstack_chunk *p_Var7;\n  \n  pcVar6 = os->next_free;\n  pcVar5 = os->object_base;\n  if (3 < (uint)((int)pcVar6 - (int)pcVar5)) {\n    if (pcVar6 == pcVar5) {\n      os->field_0x28 = os->field_0x28 | 2;\n    }\n    p_Var7 = os->chunk;\n    pcVar4 = (char *)((uint)(pcVar6 + os->alignment_mask) & ~os->alignment_mask);\n    if ((uint)((int)os->chunk_limit - (int)p_Var7) < (uint)((int)pcVar4 - (int)p_Var7)) {\n      pcVar4 = os->chunk_limit;\n    }\n    pcVar6 = pcVar5 + ((int)pcVar6 - (int)pcVar5 & 0xfffffffc);\n    os->next_free = pcVar4;\n    os->object_base = pcVar4;\n    puVar3 = PTR_stdout_0003afcc;\n    fputs_unlocked(prefix,*(FILE **)PTR_stdout_0003afcc);\n    do {\n      uVar1 = *(undefined4 *)pcVar5;\n      pcVar5 = pcVar5 + 4;\n      __printf_chk(1,&DAT_0002d97a,uVar1,p_Var7);\n    } while (pcVar6 != pcVar5);\n    p_Var2 = *(_IO_FILE **)puVar3;\n    pcVar6 = p_Var2->_IO_write_ptr;\n    if (pcVar6 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar6 + 1;\n      *pcVar6 = '\n';\n    }\n    else {\n      __overflow(p_Var2,10);\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "dired_dump_obstack(char *prefix,obstack *os)" identifier (parameter_list "(char *prefix,obstack *os)" ( (parameter_declaration "char *prefix" primitive_type (pointer_declarator "*prefix" * identifier)) , (parameter_declaration "obstack *os" type_identifier (pointer_declarator "*os" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  _IO_FILE *p_Var2;\n  undefined *puVar3;\n  char *pcVar4;\n  obstack *__o;\n  char *pcVar5;\n  char *pcVar6;\n  _obstack_chunk *p_Var7;\n  \n  pcVar6 = os->next_free;\n  pcVar5 = os->object_base;\n  if (3 < (uint)((int)pcVar6 - (int)pcVar5)) {\n    if (pcVar6 == pcVar5) {\n      os->field_0x28 = os->field_0x28 | 2;\n    }\n    p_Var7 = os->chunk;\n    pcVar4 = (char *)((uint)(pcVar6 + os->alignment_mask) & ~os->alignment_mask);\n    if ((uint)((int)os->chunk_limit - (int)p_Var7) < (uint)((int)pcVar4 - (int)p_Var7)) {\n      pcVar4 = os->chunk_limit;\n    }\n    pcVar6 = pcVar5 + ((int)pcVar6 - (int)pcVar5 & 0xfffffffc);\n    os->next_free = pcVar4;\n    os->object_base = pcVar4;\n    puVar3 = PTR_stdout_0003afcc;\n    fputs_unlocked(prefix,*(FILE **)PTR_stdout_0003afcc);\n    do {\n      uVar1 = *(undefined4 *)pcVar5;\n      pcVar5 = pcVar5 + 4;\n      __printf_chk(1,&DAT_0002d97a,uVar1,p_Var7);\n    } while (pcVar6 != pcVar5);\n    p_Var2 = *(_IO_FILE **)puVar3;\n    pcVar6 = p_Var2->_IO_write_ptr;\n    if (pcVar6 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar6 + 1;\n      *pcVar6 = '\n';\n    }\n    else {\n      __overflow(p_Var2,10);\n    }\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "_IO_FILE *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "obstack *__o;" type_identifier (pointer_declarator "*__o" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "_obstack_chunk *p_Var7;" type_identifier (pointer_declarator "*p_Var7" * identifier) ;) (expression_statement "pcVar6 = os->next_free;" (assignment_expression "pcVar6 = os->next_free" identifier = (field_expression "os->next_free" identifier -> field_identifier)) ;) (expression_statement "pcVar5 = os->object_base;" (assignment_expression "pcVar5 = os->object_base" identifier = (field_expression "os->object_base" identifier -> field_identifier)) ;) (if_statement "if (3 < (uint)((int)pcVar6 - (int)pcVar5)) {\n    if (pcVar6 == pcVar5) {\n      os->field_0x28 = os->field_0x28 | 2;\n    }\n    p_Var7 = os->chunk;\n    pcVar4 = (char *)((uint)(pcVar6 + os->alignment_mask) & ~os->alignment_mask);\n    if ((uint)((int)os->chunk_limit - (int)p_Var7) < (uint)((int)pcVar4 - (int)p_Var7)) {\n      pcVar4 = os->chunk_limit;\n    }\n    pcVar6 = pcVar5 + ((int)pcVar6 - (int)pcVar5 & 0xfffffffc);\n    os->next_free = pcVar4;\n    os->object_base = pcVar4;\n    puVar3 = PTR_stdout_0003afcc;\n    fputs_unlocked(prefix,*(FILE **)PTR_stdout_0003afcc);\n    do {\n      uVar1 = *(undefined4 *)pcVar5;\n      pcVar5 = pcVar5 + 4;\n      __printf_chk(1,&DAT_0002d97a,uVar1,p_Var7);\n    } while (pcVar6 != pcVar5);\n    p_Var2 = *(_IO_FILE **)puVar3;\n    pcVar6 = p_Var2->_IO_write_ptr;\n    if (pcVar6 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar6 + 1;\n      *pcVar6 = '\n';\n    }\n    else {\n      __overflow(p_Var2,10);\n    }\n  }" if (parenthesized_expression "(3 < (uint)((int)pcVar6 - (int)pcVar5))" ( (binary_expression "3 < (uint)((int)pcVar6 - (int)pcVar5)" number_literal < (call_expression "(uint)((int)pcVar6 - (int)pcVar5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar6 - (int)pcVar5)" ( (binary_expression "(int)pcVar6 - (int)pcVar5" (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier)) )))) )) (compound_statement "{\n    if (pcVar6 == pcVar5) {\n      os->field_0x28 = os->field_0x28 | 2;\n    }\n    p_Var7 = os->chunk;\n    pcVar4 = (char *)((uint)(pcVar6 + os->alignment_mask) & ~os->alignment_mask);\n    if ((uint)((int)os->chunk_limit - (int)p_Var7) < (uint)((int)pcVar4 - (int)p_Var7)) {\n      pcVar4 = os->chunk_limit;\n    }\n    pcVar6 = pcVar5 + ((int)pcVar6 - (int)pcVar5 & 0xfffffffc);\n    os->next_free = pcVar4;\n    os->object_base = pcVar4;\n    puVar3 = PTR_stdout_0003afcc;\n    fputs_unlocked(prefix,*(FILE **)PTR_stdout_0003afcc);\n    do {\n      uVar1 = *(undefined4 *)pcVar5;\n      pcVar5 = pcVar5 + 4;\n      __printf_chk(1,&DAT_0002d97a,uVar1,p_Var7);\n    } while (pcVar6 != pcVar5);\n    p_Var2 = *(_IO_FILE **)puVar3;\n    pcVar6 = p_Var2->_IO_write_ptr;\n    if (pcVar6 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar6 + 1;\n      *pcVar6 = '\n';\n    }\n    else {\n      __overflow(p_Var2,10);\n    }\n  }" { (if_statement "if (pcVar6 == pcVar5) {\n      os->field_0x28 = os->field_0x28 | 2;\n    }" if (parenthesized_expression "(pcVar6 == pcVar5)" ( (binary_expression "pcVar6 == pcVar5" identifier == identifier) )) (compound_statement "{\n      os->field_0x28 = os->field_0x28 | 2;\n    }" { (expression_statement "os->field_0x28 = os->field_0x28 | 2;" (assignment_expression "os->field_0x28 = os->field_0x28 | 2" (field_expression "os->field_0x28" identifier -> field_identifier) = (binary_expression "os->field_0x28 | 2" (field_expression "os->field_0x28" identifier -> field_identifier) | number_literal)) ;) })) (expression_statement "p_Var7 = os->chunk;" (assignment_expression "p_Var7 = os->chunk" identifier = (field_expression "os->chunk" identifier -> field_identifier)) ;) (expression_statement "pcVar4 = (char *)((uint)(pcVar6 + os->alignment_mask) & ~os->alignment_mask);" (assignment_expression "pcVar4 = (char *)((uint)(pcVar6 + os->alignment_mask) & ~os->alignment_mask)" identifier = (cast_expression "(char *)((uint)(pcVar6 + os->alignment_mask) & ~os->alignment_mask)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(pcVar6 + os->alignment_mask) & ~os->alignment_mask)" ( (binary_expression "(uint)(pcVar6 + os->alignment_mask) & ~os->alignment_mask" (call_expression "(uint)(pcVar6 + os->alignment_mask)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pcVar6 + os->alignment_mask)" ( (binary_expression "pcVar6 + os->alignment_mask" identifier + (field_expression "os->alignment_mask" identifier -> field_identifier)) ))) & (unary_expression "~os->alignment_mask" ~ (field_expression "os->alignment_mask" identifier -> field_identifier))) )))) ;) (if_statement "if ((uint)((int)os->chunk_limit - (int)p_Var7) < (uint)((int)pcVar4 - (int)p_Var7)) {\n      pcVar4 = os->chunk_limit;\n    }" if (parenthesized_expression "((uint)((int)os->chunk_limit - (int)p_Var7) < (uint)((int)pcVar4 - (int)p_Var7))" ( (binary_expression "(uint)((int)os->chunk_limit - (int)p_Var7) < (uint)((int)pcVar4 - (int)p_Var7)" (call_expression "(uint)((int)os->chunk_limit - (int)p_Var7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)os->chunk_limit - (int)p_Var7)" ( (binary_expression "(int)os->chunk_limit - (int)p_Var7" (cast_expression "(int)os->chunk_limit" ( (type_descriptor "int" primitive_type) ) (field_expression "os->chunk_limit" identifier -> field_identifier)) - (cast_expression "(int)p_Var7" ( (type_descriptor "int" primitive_type) ) identifier)) ))) < (call_expression "(uint)((int)pcVar4 - (int)p_Var7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pcVar4 - (int)p_Var7)" ( (binary_expression "(int)pcVar4 - (int)p_Var7" (cast_expression "(int)pcVar4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)p_Var7" ( (type_descriptor "int" primitive_type) ) identifier)) )))) )) (compound_statement "{\n      pcVar4 = os->chunk_limit;\n    }" { (expression_statement "pcVar4 = os->chunk_limit;" (assignment_expression "pcVar4 = os->chunk_limit" identifier = (field_expression "os->chunk_limit" identifier -> field_identifier)) ;) })) (expression_statement "pcVar6 = pcVar5 + ((int)pcVar6 - (int)pcVar5 & 0xfffffffc);" (assignment_expression "pcVar6 = pcVar5 + ((int)pcVar6 - (int)pcVar5 & 0xfffffffc)" identifier = (binary_expression "pcVar5 + ((int)pcVar6 - (int)pcVar5 & 0xfffffffc)" identifier + (parenthesized_expression "((int)pcVar6 - (int)pcVar5 & 0xfffffffc)" ( (binary_expression "(int)pcVar6 - (int)pcVar5 & 0xfffffffc" (binary_expression "(int)pcVar6 - (int)pcVar5" (cast_expression "(int)pcVar6" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier)) & number_literal) )))) ;) (expression_statement "os->next_free = pcVar4;" (assignment_expression "os->next_free = pcVar4" (field_expression "os->next_free" identifier -> field_identifier) = identifier) ;) (expression_statement "os->object_base = pcVar4;" (assignment_expression "os->object_base = pcVar4" (field_expression "os->object_base" identifier -> field_identifier) = identifier) ;) (expression_statement "puVar3 = PTR_stdout_0003afcc;" (assignment_expression "puVar3 = PTR_stdout_0003afcc" identifier = identifier) ;) (expression_statement "fputs_unlocked(prefix,*(FILE **)PTR_stdout_0003afcc);" (call_expression "fputs_unlocked(prefix,*(FILE **)PTR_stdout_0003afcc)" identifier (argument_list "(prefix,*(FILE **)PTR_stdout_0003afcc)" ( identifier , (pointer_expression "*(FILE **)PTR_stdout_0003afcc" * (cast_expression "(FILE **)PTR_stdout_0003afcc" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (do_statement "do {\n      uVar1 = *(undefined4 *)pcVar5;\n      pcVar5 = pcVar5 + 4;\n      __printf_chk(1,&DAT_0002d97a,uVar1,p_Var7);\n    } while (pcVar6 != pcVar5);" do (compound_statement "{\n      uVar1 = *(undefined4 *)pcVar5;\n      pcVar5 = pcVar5 + 4;\n      __printf_chk(1,&DAT_0002d97a,uVar1,p_Var7);\n    }" { (expression_statement "uVar1 = *(undefined4 *)pcVar5;" (assignment_expression "uVar1 = *(undefined4 *)pcVar5" identifier = (pointer_expression "*(undefined4 *)pcVar5" * (cast_expression "(undefined4 *)pcVar5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "pcVar5 = pcVar5 + 4;" (assignment_expression "pcVar5 = pcVar5 + 4" identifier = (binary_expression "pcVar5 + 4" identifier + number_literal)) ;) (expression_statement "__printf_chk(1,&DAT_0002d97a,uVar1,p_Var7);" (call_expression "__printf_chk(1,&DAT_0002d97a,uVar1,p_Var7)" identifier (argument_list "(1,&DAT_0002d97a,uVar1,p_Var7)" ( number_literal , (pointer_expression "&DAT_0002d97a" & identifier) , identifier , identifier ))) ;) }) while (parenthesized_expression "(pcVar6 != pcVar5)" ( (binary_expression "pcVar6 != pcVar5" identifier != identifier) )) ;) (expression_statement "p_Var2 = *(_IO_FILE **)puVar3;" (assignment_expression "p_Var2 = *(_IO_FILE **)puVar3" identifier = (pointer_expression "*(_IO_FILE **)puVar3" * (cast_expression "(_IO_FILE **)puVar3" ( (type_descriptor "_IO_FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pcVar6 = p_Var2->_IO_write_ptr;" (assignment_expression "pcVar6 = p_Var2->_IO_write_ptr" identifier = (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier)) ;) (if_statement "if (pcVar6 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar6 + 1;\n      *pcVar6 = '\n';\n    }\n    else {\n      __overflow(p_Var2,10);\n    }" if (parenthesized_expression "(pcVar6 < p_Var2->_IO_write_end)" ( (binary_expression "pcVar6 < p_Var2->_IO_write_end" identifier < (field_expression "p_Var2->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n      p_Var2->_IO_write_ptr = pcVar6 + 1;\n      *pcVar6 = '\n';\n    }" { (expression_statement "p_Var2->_IO_write_ptr = pcVar6 + 1;" (assignment_expression "p_Var2->_IO_write_ptr = pcVar6 + 1" (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier) = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar6 = '\n';" (assignment_expression "*pcVar6 = '\n'" (pointer_expression "*pcVar6" * identifier) = (char_literal "'\n'" ' escape_sequence ')) ;) }) (else_clause "else {\n      __overflow(p_Var2,10);\n    }" else (compound_statement "{\n      __overflow(p_Var2,10);\n    }" { (expression_statement "__overflow(p_Var2,10);" (call_expression "__overflow(p_Var2,10)" identifier (argument_list "(p_Var2,10)" ( identifier , number_literal ))) ;) }))) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00015220(char *param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  _IO_FILE *p_Var2;\n  char *pcVar3;\n  undefined *puVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  \n  puVar7 = *(undefined4 **)(param_2 + 0xc);\n  puVar6 = *(undefined4 **)(param_2 + 8);\n  if (3 < (uint)((int)puVar7 - (int)puVar6)) {\n    if (puVar7 == puVar6) {\n      *(byte *)(param_2 + 0x28) = *(byte *)(param_2 + 0x28) | 2;\n    }\n    iVar8 = *(int *)(param_2 + 4);\n    uVar5 = (int)puVar7 + *(uint *)(param_2 + 0x18) & ~*(uint *)(param_2 + 0x18);\n    if ((uint)(*(int *)(param_2 + 0x10) - iVar8) < uVar5 - iVar8) {\n      uVar5 = *(uint *)(param_2 + 0x10);\n    }\n    puVar7 = (undefined4 *)(((int)puVar7 - (int)puVar6 & 0xfffffffcU) + (int)puVar6);\n    *(uint *)(param_2 + 0xc) = uVar5;\n    *(uint *)(param_2 + 8) = uVar5;\n    puVar4 = PTR_stdout_0003afcc;\n    fputs_unlocked(param_1,*(FILE **)PTR_stdout_0003afcc);\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      __printf_chk(1,&DAT_0002d97a,uVar1,iVar8);\n    } while (puVar7 != puVar6);\n    p_Var2 = *(_IO_FILE **)puVar4;\n    pcVar3 = p_Var2->_IO_write_ptr;\n    if (pcVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar3 + 1;\n      *pcVar3 = '\n';\n    }\n    else {\n      __overflow(p_Var2,10);\n    }\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00015220(char *param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  _IO_FILE *p_Var2;\n  char *pcVar3;\n  undefined *puVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  \n  puVar7 = *(undefined4 **)(param_2 + 0xc);\n  puVar6 = *(undefined4 **)(param_2 + 8);\n  if (3 < (uint)((int)puVar7 - (int)puVar6)) {\n    if (puVar7 == puVar6) {\n      *(byte *)(param_2 + 0x28) = *(byte *)(param_2 + 0x28) | 2;\n    }\n    iVar8 = *(int *)(param_2 + 4);\n    uVar5 = (int)puVar7 + *(uint *)(param_2 + 0x18) & ~*(uint *)(param_2 + 0x18);\n    if ((uint)(*(int *)(param_2 + 0x10) - iVar8) < uVar5 - iVar8) {\n      uVar5 = *(uint *)(param_2 + 0x10);\n    }\n    puVar7 = (undefined4 *)(((int)puVar7 - (int)puVar6 & 0xfffffffcU) + (int)puVar6);\n    *(uint *)(param_2 + 0xc) = uVar5;\n    *(uint *)(param_2 + 8) = uVar5;\n    puVar4 = PTR_stdout_0003afcc;\n    fputs_unlocked(param_1,*(FILE **)PTR_stdout_0003afcc);\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      __printf_chk(1,&DAT_0002d97a,uVar1,iVar8);\n    } while (puVar7 != puVar6);\n    p_Var2 = *(_IO_FILE **)puVar4;\n    pcVar3 = p_Var2->_IO_write_ptr;\n    if (pcVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar3 + 1;\n      *pcVar3 = '\n';\n    }\n    else {\n      __overflow(p_Var2,10);\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00015220(char *param_1,int param_2)" identifier (parameter_list "(char *param_1,int param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  _IO_FILE *p_Var2;\n  char *pcVar3;\n  undefined *puVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  \n  puVar7 = *(undefined4 **)(param_2 + 0xc);\n  puVar6 = *(undefined4 **)(param_2 + 8);\n  if (3 < (uint)((int)puVar7 - (int)puVar6)) {\n    if (puVar7 == puVar6) {\n      *(byte *)(param_2 + 0x28) = *(byte *)(param_2 + 0x28) | 2;\n    }\n    iVar8 = *(int *)(param_2 + 4);\n    uVar5 = (int)puVar7 + *(uint *)(param_2 + 0x18) & ~*(uint *)(param_2 + 0x18);\n    if ((uint)(*(int *)(param_2 + 0x10) - iVar8) < uVar5 - iVar8) {\n      uVar5 = *(uint *)(param_2 + 0x10);\n    }\n    puVar7 = (undefined4 *)(((int)puVar7 - (int)puVar6 & 0xfffffffcU) + (int)puVar6);\n    *(uint *)(param_2 + 0xc) = uVar5;\n    *(uint *)(param_2 + 8) = uVar5;\n    puVar4 = PTR_stdout_0003afcc;\n    fputs_unlocked(param_1,*(FILE **)PTR_stdout_0003afcc);\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      __printf_chk(1,&DAT_0002d97a,uVar1,iVar8);\n    } while (puVar7 != puVar6);\n    p_Var2 = *(_IO_FILE **)puVar4;\n    pcVar3 = p_Var2->_IO_write_ptr;\n    if (pcVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar3 + 1;\n      *pcVar3 = '\n';\n    }\n    else {\n      __overflow(p_Var2,10);\n    }\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "_IO_FILE *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (expression_statement "puVar7 = *(undefined4 **)(param_2 + 0xc);" (assignment_expression "puVar7 = *(undefined4 **)(param_2 + 0xc)" identifier = (pointer_expression "*(undefined4 **)(param_2 + 0xc)" * (cast_expression "(undefined4 **)(param_2 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "puVar6 = *(undefined4 **)(param_2 + 8);" (assignment_expression "puVar6 = *(undefined4 **)(param_2 + 8)" identifier = (pointer_expression "*(undefined4 **)(param_2 + 8)" * (cast_expression "(undefined4 **)(param_2 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (if_statement "if (3 < (uint)((int)puVar7 - (int)puVar6)) {\n    if (puVar7 == puVar6) {\n      *(byte *)(param_2 + 0x28) = *(byte *)(param_2 + 0x28) | 2;\n    }\n    iVar8 = *(int *)(param_2 + 4);\n    uVar5 = (int)puVar7 + *(uint *)(param_2 + 0x18) & ~*(uint *)(param_2 + 0x18);\n    if ((uint)(*(int *)(param_2 + 0x10) - iVar8) < uVar5 - iVar8) {\n      uVar5 = *(uint *)(param_2 + 0x10);\n    }\n    puVar7 = (undefined4 *)(((int)puVar7 - (int)puVar6 & 0xfffffffcU) + (int)puVar6);\n    *(uint *)(param_2 + 0xc) = uVar5;\n    *(uint *)(param_2 + 8) = uVar5;\n    puVar4 = PTR_stdout_0003afcc;\n    fputs_unlocked(param_1,*(FILE **)PTR_stdout_0003afcc);\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      __printf_chk(1,&DAT_0002d97a,uVar1,iVar8);\n    } while (puVar7 != puVar6);\n    p_Var2 = *(_IO_FILE **)puVar4;\n    pcVar3 = p_Var2->_IO_write_ptr;\n    if (pcVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar3 + 1;\n      *pcVar3 = '\n';\n    }\n    else {\n      __overflow(p_Var2,10);\n    }\n  }" if (parenthesized_expression "(3 < (uint)((int)puVar7 - (int)puVar6))" ( (binary_expression "3 < (uint)((int)puVar7 - (int)puVar6)" number_literal < (call_expression "(uint)((int)puVar7 - (int)puVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)puVar7 - (int)puVar6)" ( (binary_expression "(int)puVar7 - (int)puVar6" (cast_expression "(int)puVar7" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier)) )))) )) (compound_statement "{\n    if (puVar7 == puVar6) {\n      *(byte *)(param_2 + 0x28) = *(byte *)(param_2 + 0x28) | 2;\n    }\n    iVar8 = *(int *)(param_2 + 4);\n    uVar5 = (int)puVar7 + *(uint *)(param_2 + 0x18) & ~*(uint *)(param_2 + 0x18);\n    if ((uint)(*(int *)(param_2 + 0x10) - iVar8) < uVar5 - iVar8) {\n      uVar5 = *(uint *)(param_2 + 0x10);\n    }\n    puVar7 = (undefined4 *)(((int)puVar7 - (int)puVar6 & 0xfffffffcU) + (int)puVar6);\n    *(uint *)(param_2 + 0xc) = uVar5;\n    *(uint *)(param_2 + 8) = uVar5;\n    puVar4 = PTR_stdout_0003afcc;\n    fputs_unlocked(param_1,*(FILE **)PTR_stdout_0003afcc);\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      __printf_chk(1,&DAT_0002d97a,uVar1,iVar8);\n    } while (puVar7 != puVar6);\n    p_Var2 = *(_IO_FILE **)puVar4;\n    pcVar3 = p_Var2->_IO_write_ptr;\n    if (pcVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar3 + 1;\n      *pcVar3 = '\n';\n    }\n    else {\n      __overflow(p_Var2,10);\n    }\n  }" { (if_statement "if (puVar7 == puVar6) {\n      *(byte *)(param_2 + 0x28) = *(byte *)(param_2 + 0x28) | 2;\n    }" if (parenthesized_expression "(puVar7 == puVar6)" ( (binary_expression "puVar7 == puVar6" identifier == identifier) )) (compound_statement "{\n      *(byte *)(param_2 + 0x28) = *(byte *)(param_2 + 0x28) | 2;\n    }" { (expression_statement "*(byte *)(param_2 + 0x28) = *(byte *)(param_2 + 0x28) | 2;" (assignment_expression "*(byte *)(param_2 + 0x28) = *(byte *)(param_2 + 0x28) | 2" (pointer_expression "*(byte *)(param_2 + 0x28)" * (cast_expression "(byte *)(param_2 + 0x28)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_2 + 0x28) | 2" (pointer_expression "*(byte *)(param_2 + 0x28)" * (cast_expression "(byte *)(param_2 + 0x28)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) | number_literal)) ;) })) (expression_statement "iVar8 = *(int *)(param_2 + 4);" (assignment_expression "iVar8 = *(int *)(param_2 + 4)" identifier = (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = (int)puVar7 + *(uint *)(param_2 + 0x18) & ~*(uint *)(param_2 + 0x18);" (assignment_expression "uVar5 = (int)puVar7 + *(uint *)(param_2 + 0x18) & ~*(uint *)(param_2 + 0x18)" identifier = (binary_expression "(int)puVar7 + *(uint *)(param_2 + 0x18) & ~*(uint *)(param_2 + 0x18)" (binary_expression "(int)puVar7 + *(uint *)(param_2 + 0x18)" (cast_expression "(int)puVar7" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(uint *)(param_2 + 0x18)" * (cast_expression "(uint *)(param_2 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) & (unary_expression "~*(uint *)(param_2 + 0x18)" ~ (pointer_expression "*(uint *)(param_2 + 0x18)" * (cast_expression "(uint *)(param_2 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))))) ;) (if_statement "if ((uint)(*(int *)(param_2 + 0x10) - iVar8) < uVar5 - iVar8) {\n      uVar5 = *(uint *)(param_2 + 0x10);\n    }" if (parenthesized_expression "((uint)(*(int *)(param_2 + 0x10) - iVar8) < uVar5 - iVar8)" ( (binary_expression "(uint)(*(int *)(param_2 + 0x10) - iVar8) < uVar5 - iVar8" (call_expression "(uint)(*(int *)(param_2 + 0x10) - iVar8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_2 + 0x10) - iVar8)" ( (binary_expression "*(int *)(param_2 + 0x10) - iVar8" (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) - identifier) ))) < (binary_expression "uVar5 - iVar8" identifier - identifier)) )) (compound_statement "{\n      uVar5 = *(uint *)(param_2 + 0x10);\n    }" { (expression_statement "uVar5 = *(uint *)(param_2 + 0x10);" (assignment_expression "uVar5 = *(uint *)(param_2 + 0x10)" identifier = (pointer_expression "*(uint *)(param_2 + 0x10)" * (cast_expression "(uint *)(param_2 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) ;) })) (expression_statement "puVar7 = (undefined4 *)(((int)puVar7 - (int)puVar6 & 0xfffffffcU) + (int)puVar6);" (assignment_expression "puVar7 = (undefined4 *)(((int)puVar7 - (int)puVar6 & 0xfffffffcU) + (int)puVar6)" identifier = (cast_expression "(undefined4 *)(((int)puVar7 - (int)puVar6 & 0xfffffffcU) + (int)puVar6)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((int)puVar7 - (int)puVar6 & 0xfffffffcU) + (int)puVar6)" ( (binary_expression "((int)puVar7 - (int)puVar6 & 0xfffffffcU) + (int)puVar6" (parenthesized_expression "((int)puVar7 - (int)puVar6 & 0xfffffffcU)" ( (binary_expression "(int)puVar7 - (int)puVar6 & 0xfffffffcU" (binary_expression "(int)puVar7 - (int)puVar6" (cast_expression "(int)puVar7" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier)) & number_literal) )) + (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "*(uint *)(param_2 + 0xc) = uVar5;" (assignment_expression "*(uint *)(param_2 + 0xc) = uVar5" (pointer_expression "*(uint *)(param_2 + 0xc)" * (cast_expression "(uint *)(param_2 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(param_2 + 8) = uVar5;" (assignment_expression "*(uint *)(param_2 + 8) = uVar5" (pointer_expression "*(uint *)(param_2 + 8)" * (cast_expression "(uint *)(param_2 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar4 = PTR_stdout_0003afcc;" (assignment_expression "puVar4 = PTR_stdout_0003afcc" identifier = identifier) ;) (expression_statement "fputs_unlocked(param_1,*(FILE **)PTR_stdout_0003afcc);" (call_expression "fputs_unlocked(param_1,*(FILE **)PTR_stdout_0003afcc)" identifier (argument_list "(param_1,*(FILE **)PTR_stdout_0003afcc)" ( identifier , (pointer_expression "*(FILE **)PTR_stdout_0003afcc" * (cast_expression "(FILE **)PTR_stdout_0003afcc" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (do_statement "do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      __printf_chk(1,&DAT_0002d97a,uVar1,iVar8);\n    } while (puVar7 != puVar6);" do (compound_statement "{\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      __printf_chk(1,&DAT_0002d97a,uVar1,iVar8);\n    }" { (expression_statement "uVar1 = *puVar6;" (assignment_expression "uVar1 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "__printf_chk(1,&DAT_0002d97a,uVar1,iVar8);" (call_expression "__printf_chk(1,&DAT_0002d97a,uVar1,iVar8)" identifier (argument_list "(1,&DAT_0002d97a,uVar1,iVar8)" ( number_literal , (pointer_expression "&DAT_0002d97a" & identifier) , identifier , identifier ))) ;) }) while (parenthesized_expression "(puVar7 != puVar6)" ( (binary_expression "puVar7 != puVar6" identifier != identifier) )) ;) (expression_statement "p_Var2 = *(_IO_FILE **)puVar4;" (assignment_expression "p_Var2 = *(_IO_FILE **)puVar4" identifier = (pointer_expression "*(_IO_FILE **)puVar4" * (cast_expression "(_IO_FILE **)puVar4" ( (type_descriptor "_IO_FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pcVar3 = p_Var2->_IO_write_ptr;" (assignment_expression "pcVar3 = p_Var2->_IO_write_ptr" identifier = (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier)) ;) (if_statement "if (pcVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar3 + 1;\n      *pcVar3 = '\n';\n    }\n    else {\n      __overflow(p_Var2,10);\n    }" if (parenthesized_expression "(pcVar3 < p_Var2->_IO_write_end)" ( (binary_expression "pcVar3 < p_Var2->_IO_write_end" identifier < (field_expression "p_Var2->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n      p_Var2->_IO_write_ptr = pcVar3 + 1;\n      *pcVar3 = '\n';\n    }" { (expression_statement "p_Var2->_IO_write_ptr = pcVar3 + 1;" (assignment_expression "p_Var2->_IO_write_ptr = pcVar3 + 1" (field_expression "p_Var2->_IO_write_ptr" identifier -> field_identifier) = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar3 = '\n';" (assignment_expression "*pcVar3 = '\n'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'\n'" ' escape_sequence ')) ;) }) (else_clause "else {\n      __overflow(p_Var2,10);\n    }" else (compound_statement "{\n      __overflow(p_Var2,10);\n    }" { (expression_statement "__overflow(p_Var2,10);" (call_expression "__overflow(p_Var2,10)" identifier (argument_list "(p_Var2,10)" ( identifier , number_literal ))) ;) }))) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) & (unary_expression ~ (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT) ))) < (binary_expression IDENT - IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) & LIT) )) + (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) ))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) , IDENT , IDENT ))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (field_expression IDENT -> field_identifier)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (field_expression IDENT -> field_identifier)) )) (compound_statement { (expression_statement (assignment_expression (field_expression IDENT -> field_identifier) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) }))) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00015220(char *param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  _IO_FILE *p_Var2;\n  char *pcVar3;\n  undefined *puVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  \n  puVar7 = *(undefined4 **)(param_2 + 0xc);\n  puVar6 = *(undefined4 **)(param_2 + 8);\n  if (3 < (uint)((int)puVar7 - (int)puVar6)) {\n    if (puVar7 == puVar6) {\n      *(byte *)(param_2 + 0x28) = *(byte *)(param_2 + 0x28) | 2;\n    }\n    iVar8 = *(int *)(param_2 + 4);\n    uVar5 = (int)puVar7 + *(uint *)(param_2 + 0x18) & ~*(uint *)(param_2 + 0x18);\n    if ((uint)(*(int *)(param_2 + 0x10) - iVar8) < uVar5 - iVar8) {\n      uVar5 = *(uint *)(param_2 + 0x10);\n    }\n    puVar7 = (undefined4 *)(((int)puVar7 - (int)puVar6 & 0xfffffffcU) + (int)puVar6);\n    *(uint *)(param_2 + 0xc) = uVar5;\n    *(uint *)(param_2 + 8) = uVar5;\n    puVar4 = PTR_stdout_0003afcc;\n    fputs_unlocked(param_1,*(FILE **)PTR_stdout_0003afcc);\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      __printf_chk(1,&DAT_0002d97a,uVar1,iVar8);\n    } while (puVar7 != puVar6);\n    p_Var2 = *(_IO_FILE **)puVar4;\n    pcVar3 = p_Var2->_IO_write_ptr;\n    if (pcVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar3 + 1;\n      *pcVar3 = '\n';\n    }\n    else {\n      __overflow(p_Var2,10);\n    }\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00015220(char *param_1,int param_2)" (identifier "FUN_00015220") (parameter_list "(char *param_1,int param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  _IO_FILE *p_Var2;\n  char *pcVar3;\n  undefined *puVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  \n  puVar7 = *(undefined4 **)(param_2 + 0xc);\n  puVar6 = *(undefined4 **)(param_2 + 8);\n  if (3 < (uint)((int)puVar7 - (int)puVar6)) {\n    if (puVar7 == puVar6) {\n      *(byte *)(param_2 + 0x28) = *(byte *)(param_2 + 0x28) | 2;\n    }\n    iVar8 = *(int *)(param_2 + 4);\n    uVar5 = (int)puVar7 + *(uint *)(param_2 + 0x18) & ~*(uint *)(param_2 + 0x18);\n    if ((uint)(*(int *)(param_2 + 0x10) - iVar8) < uVar5 - iVar8) {\n      uVar5 = *(uint *)(param_2 + 0x10);\n    }\n    puVar7 = (undefined4 *)(((int)puVar7 - (int)puVar6 & 0xfffffffcU) + (int)puVar6);\n    *(uint *)(param_2 + 0xc) = uVar5;\n    *(uint *)(param_2 + 8) = uVar5;\n    puVar4 = PTR_stdout_0003afcc;\n    fputs_unlocked(param_1,*(FILE **)PTR_stdout_0003afcc);\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      __printf_chk(1,&DAT_0002d97a,uVar1,iVar8);\n    } while (puVar7 != puVar6);\n    p_Var2 = *(_IO_FILE **)puVar4;\n    pcVar3 = p_Var2->_IO_write_ptr;\n    if (pcVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar3 + 1;\n      *pcVar3 = '\n';\n    }\n    else {\n      __overflow(p_Var2,10);\n    }\n  }\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "_IO_FILE *p_Var2;" (type_identifier "_IO_FILE") (pointer_declarator "*p_Var2" (* "*") (identifier "p_Var2")) (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined4 *puVar7;" (type_identifier "undefined4") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (expression_statement "puVar7 = *(undefined4 **)(param_2 + 0xc);" (assignment_expression "puVar7 = *(undefined4 **)(param_2 + 0xc)" (identifier "puVar7") (= "=") (pointer_expression "*(undefined4 **)(param_2 + 0xc)" (* "*") (cast_expression "(undefined4 **)(param_2 + 0xc)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "puVar6 = *(undefined4 **)(param_2 + 8);" (assignment_expression "puVar6 = *(undefined4 **)(param_2 + 8)" (identifier "puVar6") (= "=") (pointer_expression "*(undefined4 **)(param_2 + 8)" (* "*") (cast_expression "(undefined4 **)(param_2 + 8)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (3 < (uint)((int)puVar7 - (int)puVar6)) {\n    if (puVar7 == puVar6) {\n      *(byte *)(param_2 + 0x28) = *(byte *)(param_2 + 0x28) | 2;\n    }\n    iVar8 = *(int *)(param_2 + 4);\n    uVar5 = (int)puVar7 + *(uint *)(param_2 + 0x18) & ~*(uint *)(param_2 + 0x18);\n    if ((uint)(*(int *)(param_2 + 0x10) - iVar8) < uVar5 - iVar8) {\n      uVar5 = *(uint *)(param_2 + 0x10);\n    }\n    puVar7 = (undefined4 *)(((int)puVar7 - (int)puVar6 & 0xfffffffcU) + (int)puVar6);\n    *(uint *)(param_2 + 0xc) = uVar5;\n    *(uint *)(param_2 + 8) = uVar5;\n    puVar4 = PTR_stdout_0003afcc;\n    fputs_unlocked(param_1,*(FILE **)PTR_stdout_0003afcc);\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      __printf_chk(1,&DAT_0002d97a,uVar1,iVar8);\n    } while (puVar7 != puVar6);\n    p_Var2 = *(_IO_FILE **)puVar4;\n    pcVar3 = p_Var2->_IO_write_ptr;\n    if (pcVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar3 + 1;\n      *pcVar3 = '\n';\n    }\n    else {\n      __overflow(p_Var2,10);\n    }\n  }" (if "if") (parenthesized_expression "(3 < (uint)((int)puVar7 - (int)puVar6))" (( "(") (binary_expression "3 < (uint)((int)puVar7 - (int)puVar6)" (number_literal "3") (< "<") (call_expression "(uint)((int)puVar7 - (int)puVar6)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)puVar7 - (int)puVar6)" (( "(") (binary_expression "(int)puVar7 - (int)puVar6" (cast_expression "(int)puVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar7")) (- "-") (cast_expression "(int)puVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar6"))) () ")")))) () ")")) (compound_statement "{\n    if (puVar7 == puVar6) {\n      *(byte *)(param_2 + 0x28) = *(byte *)(param_2 + 0x28) | 2;\n    }\n    iVar8 = *(int *)(param_2 + 4);\n    uVar5 = (int)puVar7 + *(uint *)(param_2 + 0x18) & ~*(uint *)(param_2 + 0x18);\n    if ((uint)(*(int *)(param_2 + 0x10) - iVar8) < uVar5 - iVar8) {\n      uVar5 = *(uint *)(param_2 + 0x10);\n    }\n    puVar7 = (undefined4 *)(((int)puVar7 - (int)puVar6 & 0xfffffffcU) + (int)puVar6);\n    *(uint *)(param_2 + 0xc) = uVar5;\n    *(uint *)(param_2 + 8) = uVar5;\n    puVar4 = PTR_stdout_0003afcc;\n    fputs_unlocked(param_1,*(FILE **)PTR_stdout_0003afcc);\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      __printf_chk(1,&DAT_0002d97a,uVar1,iVar8);\n    } while (puVar7 != puVar6);\n    p_Var2 = *(_IO_FILE **)puVar4;\n    pcVar3 = p_Var2->_IO_write_ptr;\n    if (pcVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar3 + 1;\n      *pcVar3 = '\n';\n    }\n    else {\n      __overflow(p_Var2,10);\n    }\n  }" ({ "{") (if_statement "if (puVar7 == puVar6) {\n      *(byte *)(param_2 + 0x28) = *(byte *)(param_2 + 0x28) | 2;\n    }" (if "if") (parenthesized_expression "(puVar7 == puVar6)" (( "(") (binary_expression "puVar7 == puVar6" (identifier "puVar7") (== "==") (identifier "puVar6")) () ")")) (compound_statement "{\n      *(byte *)(param_2 + 0x28) = *(byte *)(param_2 + 0x28) | 2;\n    }" ({ "{") (expression_statement "*(byte *)(param_2 + 0x28) = *(byte *)(param_2 + 0x28) | 2;" (assignment_expression "*(byte *)(param_2 + 0x28) = *(byte *)(param_2 + 0x28) | 2" (pointer_expression "*(byte *)(param_2 + 0x28)" (* "*") (cast_expression "(byte *)(param_2 + 0x28)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (binary_expression "*(byte *)(param_2 + 0x28) | 2" (pointer_expression "*(byte *)(param_2 + 0x28)" (* "*") (cast_expression "(byte *)(param_2 + 0x28)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")")))) (| "|") (number_literal "2"))) (; ";")) (} "}"))) (expression_statement "iVar8 = *(int *)(param_2 + 4);" (assignment_expression "iVar8 = *(int *)(param_2 + 4)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "uVar5 = (int)puVar7 + *(uint *)(param_2 + 0x18) & ~*(uint *)(param_2 + 0x18);" (assignment_expression "uVar5 = (int)puVar7 + *(uint *)(param_2 + 0x18) & ~*(uint *)(param_2 + 0x18)" (identifier "uVar5") (= "=") (binary_expression "(int)puVar7 + *(uint *)(param_2 + 0x18) & ~*(uint *)(param_2 + 0x18)" (binary_expression "(int)puVar7 + *(uint *)(param_2 + 0x18)" (cast_expression "(int)puVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar7")) (+ "+") (pointer_expression "*(uint *)(param_2 + 0x18)" (* "*") (cast_expression "(uint *)(param_2 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")"))))) (& "&") (unary_expression "~*(uint *)(param_2 + 0x18)" (~ "~") (pointer_expression "*(uint *)(param_2 + 0x18)" (* "*") (cast_expression "(uint *)(param_2 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")"))))))) (; ";")) (if_statement "if ((uint)(*(int *)(param_2 + 0x10) - iVar8) < uVar5 - iVar8) {\n      uVar5 = *(uint *)(param_2 + 0x10);\n    }" (if "if") (parenthesized_expression "((uint)(*(int *)(param_2 + 0x10) - iVar8) < uVar5 - iVar8)" (( "(") (binary_expression "(uint)(*(int *)(param_2 + 0x10) - iVar8) < uVar5 - iVar8" (call_expression "(uint)(*(int *)(param_2 + 0x10) - iVar8)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(int *)(param_2 + 0x10) - iVar8)" (( "(") (binary_expression "*(int *)(param_2 + 0x10) - iVar8" (pointer_expression "*(int *)(param_2 + 0x10)" (* "*") (cast_expression "(int *)(param_2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")")))) (- "-") (identifier "iVar8")) () ")"))) (< "<") (binary_expression "uVar5 - iVar8" (identifier "uVar5") (- "-") (identifier "iVar8"))) () ")")) (compound_statement "{\n      uVar5 = *(uint *)(param_2 + 0x10);\n    }" ({ "{") (expression_statement "uVar5 = *(uint *)(param_2 + 0x10);" (assignment_expression "uVar5 = *(uint *)(param_2 + 0x10)" (identifier "uVar5") (= "=") (pointer_expression "*(uint *)(param_2 + 0x10)" (* "*") (cast_expression "(uint *)(param_2 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (} "}"))) (expression_statement "puVar7 = (undefined4 *)(((int)puVar7 - (int)puVar6 & 0xfffffffcU) + (int)puVar6);" (assignment_expression "puVar7 = (undefined4 *)(((int)puVar7 - (int)puVar6 & 0xfffffffcU) + (int)puVar6)" (identifier "puVar7") (= "=") (cast_expression "(undefined4 *)(((int)puVar7 - (int)puVar6 & 0xfffffffcU) + (int)puVar6)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(((int)puVar7 - (int)puVar6 & 0xfffffffcU) + (int)puVar6)" (( "(") (binary_expression "((int)puVar7 - (int)puVar6 & 0xfffffffcU) + (int)puVar6" (parenthesized_expression "((int)puVar7 - (int)puVar6 & 0xfffffffcU)" (( "(") (binary_expression "(int)puVar7 - (int)puVar6 & 0xfffffffcU" (binary_expression "(int)puVar7 - (int)puVar6" (cast_expression "(int)puVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar7")) (- "-") (cast_expression "(int)puVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar6"))) (& "&") (number_literal "0xfffffffcU")) () ")")) (+ "+") (cast_expression "(int)puVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar6"))) () ")")))) (; ";")) (expression_statement "*(uint *)(param_2 + 0xc) = uVar5;" (assignment_expression "*(uint *)(param_2 + 0xc) = uVar5" (pointer_expression "*(uint *)(param_2 + 0xc)" (* "*") (cast_expression "(uint *)(param_2 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "*(uint *)(param_2 + 8) = uVar5;" (assignment_expression "*(uint *)(param_2 + 8) = uVar5" (pointer_expression "*(uint *)(param_2 + 8)" (* "*") (cast_expression "(uint *)(param_2 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "puVar4 = PTR_stdout_0003afcc;" (assignment_expression "puVar4 = PTR_stdout_0003afcc" (identifier "puVar4") (= "=") (identifier "PTR_stdout_0003afcc")) (; ";")) (expression_statement "fputs_unlocked(param_1,*(FILE **)PTR_stdout_0003afcc);" (call_expression "fputs_unlocked(param_1,*(FILE **)PTR_stdout_0003afcc)" (identifier "fputs_unlocked") (argument_list "(param_1,*(FILE **)PTR_stdout_0003afcc)" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(FILE **)PTR_stdout_0003afcc" (* "*") (cast_expression "(FILE **)PTR_stdout_0003afcc" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stdout_0003afcc"))) () ")"))) (; ";")) (do_statement "do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      __printf_chk(1,&DAT_0002d97a,uVar1,iVar8);\n    } while (puVar7 != puVar6);" (do "do") (compound_statement "{\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      __printf_chk(1,&DAT_0002d97a,uVar1,iVar8);\n    }" ({ "{") (expression_statement "uVar1 = *puVar6;" (assignment_expression "uVar1 = *puVar6" (identifier "uVar1") (= "=") (pointer_expression "*puVar6" (* "*") (identifier "puVar6"))) (; ";")) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" (identifier "puVar6") (= "=") (binary_expression "puVar6 + 1" (identifier "puVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "__printf_chk(1,&DAT_0002d97a,uVar1,iVar8);" (call_expression "__printf_chk(1,&DAT_0002d97a,uVar1,iVar8)" (identifier "__printf_chk") (argument_list "(1,&DAT_0002d97a,uVar1,iVar8)" (( "(") (number_literal "1") (, ",") (pointer_expression "&DAT_0002d97a" (& "&") (identifier "DAT_0002d97a")) (, ",") (identifier "uVar1") (, ",") (identifier "iVar8") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar7 != puVar6)" (( "(") (binary_expression "puVar7 != puVar6" (identifier "puVar7") (!= "!=") (identifier "puVar6")) () ")")) (; ";")) (expression_statement "p_Var2 = *(_IO_FILE **)puVar4;" (assignment_expression "p_Var2 = *(_IO_FILE **)puVar4" (identifier "p_Var2") (= "=") (pointer_expression "*(_IO_FILE **)puVar4" (* "*") (cast_expression "(_IO_FILE **)puVar4" (( "(") (type_descriptor "_IO_FILE **" (type_identifier "_IO_FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar4")))) (; ";")) (expression_statement "pcVar3 = p_Var2->_IO_write_ptr;" (assignment_expression "pcVar3 = p_Var2->_IO_write_ptr" (identifier "pcVar3") (= "=") (field_expression "p_Var2->_IO_write_ptr" (identifier "p_Var2") (-> "->") (field_identifier "_IO_write_ptr"))) (; ";")) (if_statement "if (pcVar3 < p_Var2->_IO_write_end) {\n      p_Var2->_IO_write_ptr = pcVar3 + 1;\n      *pcVar3 = '\n';\n    }\n    else {\n      __overflow(p_Var2,10);\n    }" (if "if") (parenthesized_expression "(pcVar3 < p_Var2->_IO_write_end)" (( "(") (binary_expression "pcVar3 < p_Var2->_IO_write_end" (identifier "pcVar3") (< "<") (field_expression "p_Var2->_IO_write_end" (identifier "p_Var2") (-> "->") (field_identifier "_IO_write_end"))) () ")")) (compound_statement "{\n      p_Var2->_IO_write_ptr = pcVar3 + 1;\n      *pcVar3 = '\n';\n    }" ({ "{") (expression_statement "p_Var2->_IO_write_ptr = pcVar3 + 1;" (assignment_expression "p_Var2->_IO_write_ptr = pcVar3 + 1" (field_expression "p_Var2->_IO_write_ptr" (identifier "p_Var2") (-> "->") (field_identifier "_IO_write_ptr")) (= "=") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*pcVar3 = '\n';" (assignment_expression "*pcVar3 = '\n'" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'"))) (; ";")) (} "}")) (else_clause "else {\n      __overflow(p_Var2,10);\n    }" (else "else") (compound_statement "{\n      __overflow(p_Var2,10);\n    }" ({ "{") (expression_statement "__overflow(p_Var2,10);" (call_expression "__overflow(p_Var2,10)" (identifier "__overflow") (argument_list "(p_Var2,10)" (( "(") (identifier "p_Var2") (, ",") (number_literal "10") () ")"))) (; ";")) (} "}")))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 function_1(char *prefix,type_1 *os)

{
  type_2 uVar1;
  type_3 *p_Var2;
  type_4 *puVar3;
  char *pcVar4;
  type_1 *__o;
  char *var_2;
  char *var_1;
  type_5 *p_Var7;
  
  var_1 = os->next_free;
  var_2 = os->object_base;
  if (3 < (uint)((int)var_1 - (int)var_2)) {
    if (var_1 == var_2) {
      os->field_0x28 = os->field_0x28 | 2;
    }
    p_Var7 = os->chunk;
    pcVar4 = (char *)((uint)(var_1 + os->alignment_mask) & ~os->alignment_mask);
    if ((uint)((int)os->chunk_limit - (int)p_Var7) < (uint)((int)pcVar4 - (int)p_Var7)) {
      pcVar4 = os->chunk_limit;
    }
    var_1 = var_2 + ((int)var_1 - (int)var_2 & 0xfffffffc);
    os->next_free = pcVar4;
    os->object_base = pcVar4;
    puVar3 = PTR_stdout_0003afcc;
    var_3(prefix,*(type_6 **)PTR_stdout_0003afcc);
    do {
      uVar1 = *(type_2 *)var_2;
      var_2 = var_2 + 4;
      var_4(1,&DAT_0002d97a,uVar1,p_Var7);
    } while (var_1 != var_2);
    p_Var2 = *(type_3 **)puVar3;
    var_1 = p_Var2->_IO_write_ptr;
    if (var_1 < p_Var2->_IO_write_end) {
      p_Var2->_IO_write_ptr = var_1 + 1;
      *var_1 = '\n';
    }
    else {
      var_5(p_Var2,10);
    }
  }
  return;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 MASKED(char *param_1,int param_2)

{
  undefined4 uVar1;
  _IO_FILE *p_Var2;
  char *pcVar3;
  undefined *puVar4;
  uint uVar5;
  undefined4 *puVar6;
  undefined4 *puVar7;
  int iVar8;
  
  puVar7 = *(undefined4 **)(param_2 + 0xc);
  puVar6 = *(undefined4 **)(param_2 + 8);
  if (3 < (uint)((int)puVar7 - (int)puVar6)) {
    if (puVar7 == puVar6) {
      *(byte *)(param_2 + 0x28) = *(byte *)(param_2 + 0x28) | 2;
    }
    iVar8 = *(int *)(param_2 + 4);
    uVar5 = (int)puVar7 + *(uint *)(param_2 + 0x18) & ~*(uint *)(param_2 + 0x18);
    if ((uint)(*(int *)(param_2 + 0x10) - iVar8) < uVar5 - iVar8) {
      uVar5 = *(uint *)(param_2 + 0x10);
    }
    puVar7 = (undefined4 *)(((int)puVar7 - (int)puVar6 & 0xfffffffcU) + (int)puVar6);
    *(uint *)(param_2 + 0xc) = uVar5;
    *(uint *)(param_2 + 8) = uVar5;
    puVar4 = PTR_stdout_0003afcc;
    fputs_unlocked(param_1,*(FILE **)PTR_stdout_0003afcc);
    do {
      uVar1 = *puVar6;
      puVar6 = puVar6 + 1;
      __printf_chk(1,&DAT_0002d97a,uVar1,iVar8);
    } while (puVar7 != puVar6);
    p_Var2 = *(_IO_FILE **)puVar4;
    pcVar3 = p_Var2->_IO_write_ptr;
    if (pcVar3 < p_Var2->_IO_write_end) {
      p_Var2->_IO_write_ptr = pcVar3 + 1;
      *pcVar3 = '\n';
    }
    else {
      __overflow(p_Var2,10);
    }
  }
  return;
}

