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

void __regparm3 print_filename(char *file,_Bool escape)

{
  byte bVar1;
  byte *pbVar2;
  _IO_FILE *__stream;
  undefined *puVar3;
  
  puVar3 = PTR_stdout_0002afd4;
  if (!escape) {
    fputs_unlocked(file,*(FILE **)PTR_stdout_0002afd4);
    return;
  }
  bVar1 = *file;
  do {
    while( true ) {
      if (bVar1 == 0) {
        return;
      }
      __stream = *(_IO_FILE **)puVar3;
      if (bVar1 != 10) break;
      fwrite_unlocked(&DAT_00026008,1,2,__stream);
LAB_00012a70:
      file = (char *)((byte *)file + 1);
      bVar1 = *file;
    }
    if (bVar1 != 0x5c) {
      pbVar2 = (byte *)__stream->_IO_write_ptr;
      if (pbVar2 < __stream->_IO_write_end) {
        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);
        *pbVar2 = bVar1;
      }
      else {
        __overflow(__stream,(uint)bVar1);
      }
      goto LAB_00012a70;
    }
    file = (char *)((byte *)file + 1);
    fwrite_unlocked(&DAT_0002600b,1,2,__stream);
    bVar1 = *file;
  } while( true );
}



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

void __regparm3 FUN_00012a20(byte *param_1,char param_2)

{
  byte bVar1;
  byte *pbVar2;
  _IO_FILE *__stream;
  undefined *puVar3;
  
  puVar3 = PTR_stdout_0002afd4;
  if (param_2 == '\0') {
    fputs_unlocked((char *)param_1,*(FILE **)PTR_stdout_0002afd4);
    return;
  }
  bVar1 = *param_1;
  do {
    while( true ) {
      if (bVar1 == 0) {
        return;
      }
      __stream = *(_IO_FILE **)puVar3;
      if (bVar1 != 10) break;
      fwrite_unlocked(&DAT_00026008,1,2,__stream);
LAB_00012a70:
      param_1 = param_1 + 1;
      bVar1 = *param_1;
    }
    if (bVar1 != 0x5c) {
      pbVar2 = (byte *)__stream->_IO_write_ptr;
      if (pbVar2 < __stream->_IO_write_end) {
        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);
        *pbVar2 = bVar1;
      }
      else {
        __overflow(__stream,(uint)bVar1);
      }
      goto LAB_00012a70;
    }
    param_1 = param_1 + 1;
    fwrite_unlocked(&DAT_0002600b,1,2,__stream);
    bVar1 = *param_1;
  } while( true );
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x000128e0
ADD EBX,0x185d5
SUB ESP,0x1c
TEST DL,DL
JZ 0x00012ae0
LEA ECX,[EBX + 0xffffb008]
MOVZX EAX,byte ptr [EAX]
MOV EDI,dword ptr [EBX + 0xffffffd4]
MOV dword ptr [ESP + 0x8],ECX
LEA ECX,[EBX + 0xffffb00b]
MOV dword ptr [ESP + 0xc],ECX
TEST AL,AL
JNZ 0x00012a7a
JMP 0x00012a9f
MOV ECX,dword ptr [EDX + 0x14]
CMP ECX,dword ptr [EDX + 0x18]
JNC 0x00012ac8
LEA EBP,[ECX + 0x1]
MOV dword ptr [EDX + 0x14],EBP
MOV byte ptr [ECX],AL
ADD ESI,0x1
MOVZX EAX,byte ptr [ESI]
TEST AL,AL
JZ 0x00012a9f
MOV EDX,dword ptr [EDI]
CMP AL,0xa
JZ 0x00012ab0
CMP AL,0x5c
JNZ 0x00012a60
PUSH EDX
ADD ESI,0x1
PUSH 0x2
PUSH 0x1
PUSH dword ptr [ESP + 0x18]
CALL 0x00011290
MOVZX EAX,byte ptr [ESI]
ADD ESP,0x10
TEST AL,AL
JNZ 0x00012a7a
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
PUSH EDX
PUSH 0x2
PUSH 0x1
PUSH dword ptr [ESP + 0x14]
CALL 0x00011290
ADD ESP,0x10
JMP 0x00012a70
SUB ESP,0x8
PUSH EAX
PUSH EDX
CALL 0x000112f0
ADD ESP,0x10
JMP 0x00012a70
MOV EAX,dword ptr [EBX + 0xffffffd4]
SUB ESP,0x8
PUSH dword ptr [EAX]
PUSH ESI
CALL 0x00011200
ADD ESP,0x10
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00012a20(byte *param_1,char param_2)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  _IO_FILE *__stream;\n  undefined *puVar3;\n  \n  puVar3 = PTR_stdout_0002afd4;\n  if (param_2 == '\0') {\n    fputs_unlocked((char *)param_1,*(FILE **)PTR_stdout_0002afd4);\n    return;\n  }\n  bVar1 = *param_1;\n  do {\n    while( true ) {\n      if (bVar1 == 0) {\n        return;\n      }\n      __stream = *(_IO_FILE **)puVar3;\n      if (bVar1 != 10) break;\n      fwrite_unlocked(&DAT_00026008,1,2,__stream);\nLAB_00012a70:\n      param_1 = param_1 + 1;\n      bVar1 = *param_1;\n    }\n    if (bVar1 != 0x5c) {\n      pbVar2 = (byte *)__stream->_IO_write_ptr;\n      if (pbVar2 < __stream->_IO_write_end) {\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }\n      else {\n        __overflow(__stream,(uint)bVar1);\n      }\n      goto LAB_00012a70;\n    }\n    param_1 = param_1 + 1;\n    fwrite_unlocked(&DAT_0002600b,1,2,__stream);\n    bVar1 = *param_1;\n  } while( true );\n}\n\n" comment (function_definition "void __regparm3 FUN_00012a20(byte *param_1,char param_2)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  _IO_FILE *__stream;\n  undefined *puVar3;\n  \n  puVar3 = PTR_stdout_0002afd4;\n  if (param_2 == '\0') {\n    fputs_unlocked((char *)param_1,*(FILE **)PTR_stdout_0002afd4);\n    return;\n  }\n  bVar1 = *param_1;\n  do {\n    while( true ) {\n      if (bVar1 == 0) {\n        return;\n      }\n      __stream = *(_IO_FILE **)puVar3;\n      if (bVar1 != 10) break;\n      fwrite_unlocked(&DAT_00026008,1,2,__stream);\nLAB_00012a70:\n      param_1 = param_1 + 1;\n      bVar1 = *param_1;\n    }\n    if (bVar1 != 0x5c) {\n      pbVar2 = (byte *)__stream->_IO_write_ptr;\n      if (pbVar2 < __stream->_IO_write_end) {\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }\n      else {\n        __overflow(__stream,(uint)bVar1);\n      }\n      goto LAB_00012a70;\n    }\n    param_1 = param_1 + 1;\n    fwrite_unlocked(&DAT_0002600b,1,2,__stream);\n    bVar1 = *param_1;\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00012a20(byte *param_1,char param_2)" identifier (parameter_list "(byte *param_1,char param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char param_2" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  _IO_FILE *__stream;\n  undefined *puVar3;\n  \n  puVar3 = PTR_stdout_0002afd4;\n  if (param_2 == '\0') {\n    fputs_unlocked((char *)param_1,*(FILE **)PTR_stdout_0002afd4);\n    return;\n  }\n  bVar1 = *param_1;\n  do {\n    while( true ) {\n      if (bVar1 == 0) {\n        return;\n      }\n      __stream = *(_IO_FILE **)puVar3;\n      if (bVar1 != 10) break;\n      fwrite_unlocked(&DAT_00026008,1,2,__stream);\nLAB_00012a70:\n      param_1 = param_1 + 1;\n      bVar1 = *param_1;\n    }\n    if (bVar1 != 0x5c) {\n      pbVar2 = (byte *)__stream->_IO_write_ptr;\n      if (pbVar2 < __stream->_IO_write_end) {\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }\n      else {\n        __overflow(__stream,(uint)bVar1);\n      }\n      goto LAB_00012a70;\n    }\n    param_1 = param_1 + 1;\n    fwrite_unlocked(&DAT_0002600b,1,2,__stream);\n    bVar1 = *param_1;\n  } while( true );\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "_IO_FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "puVar3 = PTR_stdout_0002afd4;" (assignment_expression "puVar3 = PTR_stdout_0002afd4" identifier = identifier) ;) (if_statement "if (param_2 == '\0') {\n    fputs_unlocked((char *)param_1,*(FILE **)PTR_stdout_0002afd4);\n    return;\n  }" if (parenthesized_expression "(param_2 == '\0')" ( (binary_expression "param_2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    fputs_unlocked((char *)param_1,*(FILE **)PTR_stdout_0002afd4);\n    return;\n  }" { (expression_statement "fputs_unlocked((char *)param_1,*(FILE **)PTR_stdout_0002afd4);" (call_expression "fputs_unlocked((char *)param_1,*(FILE **)PTR_stdout_0002afd4)" identifier (argument_list "((char *)param_1,*(FILE **)PTR_stdout_0002afd4)" ( (cast_expression "(char *)param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (pointer_expression "*(FILE **)PTR_stdout_0002afd4" * (cast_expression "(FILE **)PTR_stdout_0002afd4" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (return_statement "return;" return ;) })) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (do_statement "do {\n    while( true ) {\n      if (bVar1 == 0) {\n        return;\n      }\n      __stream = *(_IO_FILE **)puVar3;\n      if (bVar1 != 10) break;\n      fwrite_unlocked(&DAT_00026008,1,2,__stream);\nLAB_00012a70:\n      param_1 = param_1 + 1;\n      bVar1 = *param_1;\n    }\n    if (bVar1 != 0x5c) {\n      pbVar2 = (byte *)__stream->_IO_write_ptr;\n      if (pbVar2 < __stream->_IO_write_end) {\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }\n      else {\n        __overflow(__stream,(uint)bVar1);\n      }\n      goto LAB_00012a70;\n    }\n    param_1 = param_1 + 1;\n    fwrite_unlocked(&DAT_0002600b,1,2,__stream);\n    bVar1 = *param_1;\n  } while( true );" do (compound_statement "{\n    while( true ) {\n      if (bVar1 == 0) {\n        return;\n      }\n      __stream = *(_IO_FILE **)puVar3;\n      if (bVar1 != 10) break;\n      fwrite_unlocked(&DAT_00026008,1,2,__stream);\nLAB_00012a70:\n      param_1 = param_1 + 1;\n      bVar1 = *param_1;\n    }\n    if (bVar1 != 0x5c) {\n      pbVar2 = (byte *)__stream->_IO_write_ptr;\n      if (pbVar2 < __stream->_IO_write_end) {\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }\n      else {\n        __overflow(__stream,(uint)bVar1);\n      }\n      goto LAB_00012a70;\n    }\n    param_1 = param_1 + 1;\n    fwrite_unlocked(&DAT_0002600b,1,2,__stream);\n    bVar1 = *param_1;\n  }" { (while_statement "while( true ) {\n      if (bVar1 == 0) {\n        return;\n      }\n      __stream = *(_IO_FILE **)puVar3;\n      if (bVar1 != 10) break;\n      fwrite_unlocked(&DAT_00026008,1,2,__stream);\nLAB_00012a70:\n      param_1 = param_1 + 1;\n      bVar1 = *param_1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (bVar1 == 0) {\n        return;\n      }\n      __stream = *(_IO_FILE **)puVar3;\n      if (bVar1 != 10) break;\n      fwrite_unlocked(&DAT_00026008,1,2,__stream);\nLAB_00012a70:\n      param_1 = param_1 + 1;\n      bVar1 = *param_1;\n    }" { (if_statement "if (bVar1 == 0) {\n        return;\n      }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "__stream = *(_IO_FILE **)puVar3;" (assignment_expression "__stream = *(_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))) ;) (if_statement "if (bVar1 != 10) break;" if (parenthesized_expression "(bVar1 != 10)" ( (binary_expression "bVar1 != 10" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "fwrite_unlocked(&DAT_00026008,1,2,__stream);" (call_expression "fwrite_unlocked(&DAT_00026008,1,2,__stream)" identifier (argument_list "(&DAT_00026008,1,2,__stream)" ( (pointer_expression "&DAT_00026008" & identifier) , number_literal , number_literal , identifier ))) ;) (labeled_statement "LAB_00012a70:\n      param_1 = param_1 + 1;" statement_identifier : (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;)) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (if_statement "if (bVar1 != 0x5c) {\n      pbVar2 = (byte *)__stream->_IO_write_ptr;\n      if (pbVar2 < __stream->_IO_write_end) {\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }\n      else {\n        __overflow(__stream,(uint)bVar1);\n      }\n      goto LAB_00012a70;\n    }" if (parenthesized_expression "(bVar1 != 0x5c)" ( (binary_expression "bVar1 != 0x5c" identifier != number_literal) )) (compound_statement "{\n      pbVar2 = (byte *)__stream->_IO_write_ptr;\n      if (pbVar2 < __stream->_IO_write_end) {\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }\n      else {\n        __overflow(__stream,(uint)bVar1);\n      }\n      goto LAB_00012a70;\n    }" { (expression_statement "pbVar2 = (byte *)__stream->_IO_write_ptr;" (assignment_expression "pbVar2 = (byte *)__stream->_IO_write_ptr" identifier = (cast_expression "(byte *)__stream->_IO_write_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "__stream->_IO_write_ptr" identifier -> field_identifier))) ;) (if_statement "if (pbVar2 < __stream->_IO_write_end) {\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }\n      else {\n        __overflow(__stream,(uint)bVar1);\n      }" if (parenthesized_expression "(pbVar2 < __stream->_IO_write_end)" ( (binary_expression "pbVar2 < __stream->_IO_write_end" identifier < (field_expression "__stream->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }" { (expression_statement "__stream->_IO_write_ptr = (char *)(pbVar2 + 1);" (assignment_expression "__stream->_IO_write_ptr = (char *)(pbVar2 + 1)" (field_expression "__stream->_IO_write_ptr" identifier -> field_identifier) = (cast_expression "(char *)(pbVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = bVar1;" (assignment_expression "*pbVar2 = bVar1" (pointer_expression "*pbVar2" * identifier) = identifier) ;) }) (else_clause "else {\n        __overflow(__stream,(uint)bVar1);\n      }" else (compound_statement "{\n        __overflow(__stream,(uint)bVar1);\n      }" { (expression_statement "__overflow(__stream,(uint)bVar1);" (call_expression "__overflow(__stream,(uint)bVar1)" identifier (argument_list "(__stream,(uint)bVar1)" ( identifier , (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;) }))) (goto_statement "goto LAB_00012a70;" goto statement_identifier ;) })) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "fwrite_unlocked(&DAT_0002600b,1,2,__stream);" (call_expression "fwrite_unlocked(&DAT_0002600b,1,2,__stream)" identifier (argument_list "(&DAT_0002600b,1,2,__stream)" ( (pointer_expression "&DAT_0002600b" & identifier) , number_literal , number_literal , identifier ))) ;) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 print_filename(char *file,_Bool escape)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  _IO_FILE *__stream;\n  undefined *puVar3;\n  \n  puVar3 = PTR_stdout_0002afd4;\n  if (!escape) {\n    fputs_unlocked(file,*(FILE **)PTR_stdout_0002afd4);\n    return;\n  }\n  bVar1 = *file;\n  do {\n    while( true ) {\n      if (bVar1 == 0) {\n        return;\n      }\n      __stream = *(_IO_FILE **)puVar3;\n      if (bVar1 != 10) break;\n      fwrite_unlocked(&DAT_00026008,1,2,__stream);\nLAB_00012a70:\n      file = (char *)((byte *)file + 1);\n      bVar1 = *file;\n    }\n    if (bVar1 != 0x5c) {\n      pbVar2 = (byte *)__stream->_IO_write_ptr;\n      if (pbVar2 < __stream->_IO_write_end) {\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }\n      else {\n        __overflow(__stream,(uint)bVar1);\n      }\n      goto LAB_00012a70;\n    }\n    file = (char *)((byte *)file + 1);\n    fwrite_unlocked(&DAT_0002600b,1,2,__stream);\n    bVar1 = *file;\n  } while( true );\n}\n\n" comment (function_definition "void __regparm3 print_filename(char *file,_Bool escape)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  _IO_FILE *__stream;\n  undefined *puVar3;\n  \n  puVar3 = PTR_stdout_0002afd4;\n  if (!escape) {\n    fputs_unlocked(file,*(FILE **)PTR_stdout_0002afd4);\n    return;\n  }\n  bVar1 = *file;\n  do {\n    while( true ) {\n      if (bVar1 == 0) {\n        return;\n      }\n      __stream = *(_IO_FILE **)puVar3;\n      if (bVar1 != 10) break;\n      fwrite_unlocked(&DAT_00026008,1,2,__stream);\nLAB_00012a70:\n      file = (char *)((byte *)file + 1);\n      bVar1 = *file;\n    }\n    if (bVar1 != 0x5c) {\n      pbVar2 = (byte *)__stream->_IO_write_ptr;\n      if (pbVar2 < __stream->_IO_write_end) {\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }\n      else {\n        __overflow(__stream,(uint)bVar1);\n      }\n      goto LAB_00012a70;\n    }\n    file = (char *)((byte *)file + 1);\n    fwrite_unlocked(&DAT_0002600b,1,2,__stream);\n    bVar1 = *file;\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "print_filename(char *file,_Bool escape)" identifier (parameter_list "(char *file,_Bool escape)" ( (parameter_declaration "char *file" primitive_type (pointer_declarator "*file" * identifier)) , (parameter_declaration "_Bool escape" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  _IO_FILE *__stream;\n  undefined *puVar3;\n  \n  puVar3 = PTR_stdout_0002afd4;\n  if (!escape) {\n    fputs_unlocked(file,*(FILE **)PTR_stdout_0002afd4);\n    return;\n  }\n  bVar1 = *file;\n  do {\n    while( true ) {\n      if (bVar1 == 0) {\n        return;\n      }\n      __stream = *(_IO_FILE **)puVar3;\n      if (bVar1 != 10) break;\n      fwrite_unlocked(&DAT_00026008,1,2,__stream);\nLAB_00012a70:\n      file = (char *)((byte *)file + 1);\n      bVar1 = *file;\n    }\n    if (bVar1 != 0x5c) {\n      pbVar2 = (byte *)__stream->_IO_write_ptr;\n      if (pbVar2 < __stream->_IO_write_end) {\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }\n      else {\n        __overflow(__stream,(uint)bVar1);\n      }\n      goto LAB_00012a70;\n    }\n    file = (char *)((byte *)file + 1);\n    fwrite_unlocked(&DAT_0002600b,1,2,__stream);\n    bVar1 = *file;\n  } while( true );\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "_IO_FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "puVar3 = PTR_stdout_0002afd4;" (assignment_expression "puVar3 = PTR_stdout_0002afd4" identifier = identifier) ;) (if_statement "if (!escape) {\n    fputs_unlocked(file,*(FILE **)PTR_stdout_0002afd4);\n    return;\n  }" if (parenthesized_expression "(!escape)" ( (unary_expression "!escape" ! identifier) )) (compound_statement "{\n    fputs_unlocked(file,*(FILE **)PTR_stdout_0002afd4);\n    return;\n  }" { (expression_statement "fputs_unlocked(file,*(FILE **)PTR_stdout_0002afd4);" (call_expression "fputs_unlocked(file,*(FILE **)PTR_stdout_0002afd4)" identifier (argument_list "(file,*(FILE **)PTR_stdout_0002afd4)" ( identifier , (pointer_expression "*(FILE **)PTR_stdout_0002afd4" * (cast_expression "(FILE **)PTR_stdout_0002afd4" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (return_statement "return;" return ;) })) (expression_statement "bVar1 = *file;" (assignment_expression "bVar1 = *file" identifier = (pointer_expression "*file" * identifier)) ;) (do_statement "do {\n    while( true ) {\n      if (bVar1 == 0) {\n        return;\n      }\n      __stream = *(_IO_FILE **)puVar3;\n      if (bVar1 != 10) break;\n      fwrite_unlocked(&DAT_00026008,1,2,__stream);\nLAB_00012a70:\n      file = (char *)((byte *)file + 1);\n      bVar1 = *file;\n    }\n    if (bVar1 != 0x5c) {\n      pbVar2 = (byte *)__stream->_IO_write_ptr;\n      if (pbVar2 < __stream->_IO_write_end) {\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }\n      else {\n        __overflow(__stream,(uint)bVar1);\n      }\n      goto LAB_00012a70;\n    }\n    file = (char *)((byte *)file + 1);\n    fwrite_unlocked(&DAT_0002600b,1,2,__stream);\n    bVar1 = *file;\n  } while( true );" do (compound_statement "{\n    while( true ) {\n      if (bVar1 == 0) {\n        return;\n      }\n      __stream = *(_IO_FILE **)puVar3;\n      if (bVar1 != 10) break;\n      fwrite_unlocked(&DAT_00026008,1,2,__stream);\nLAB_00012a70:\n      file = (char *)((byte *)file + 1);\n      bVar1 = *file;\n    }\n    if (bVar1 != 0x5c) {\n      pbVar2 = (byte *)__stream->_IO_write_ptr;\n      if (pbVar2 < __stream->_IO_write_end) {\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }\n      else {\n        __overflow(__stream,(uint)bVar1);\n      }\n      goto LAB_00012a70;\n    }\n    file = (char *)((byte *)file + 1);\n    fwrite_unlocked(&DAT_0002600b,1,2,__stream);\n    bVar1 = *file;\n  }" { (while_statement "while( true ) {\n      if (bVar1 == 0) {\n        return;\n      }\n      __stream = *(_IO_FILE **)puVar3;\n      if (bVar1 != 10) break;\n      fwrite_unlocked(&DAT_00026008,1,2,__stream);\nLAB_00012a70:\n      file = (char *)((byte *)file + 1);\n      bVar1 = *file;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (bVar1 == 0) {\n        return;\n      }\n      __stream = *(_IO_FILE **)puVar3;\n      if (bVar1 != 10) break;\n      fwrite_unlocked(&DAT_00026008,1,2,__stream);\nLAB_00012a70:\n      file = (char *)((byte *)file + 1);\n      bVar1 = *file;\n    }" { (if_statement "if (bVar1 == 0) {\n        return;\n      }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "__stream = *(_IO_FILE **)puVar3;" (assignment_expression "__stream = *(_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))) ;) (if_statement "if (bVar1 != 10) break;" if (parenthesized_expression "(bVar1 != 10)" ( (binary_expression "bVar1 != 10" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "fwrite_unlocked(&DAT_00026008,1,2,__stream);" (call_expression "fwrite_unlocked(&DAT_00026008,1,2,__stream)" identifier (argument_list "(&DAT_00026008,1,2,__stream)" ( (pointer_expression "&DAT_00026008" & identifier) , number_literal , number_literal , identifier ))) ;) (labeled_statement "LAB_00012a70:\n      file = (char *)((byte *)file + 1);" statement_identifier : (expression_statement "file = (char *)((byte *)file + 1);" (assignment_expression "file = (char *)((byte *)file + 1)" identifier = (cast_expression "(char *)((byte *)file + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((byte *)file + 1)" ( (binary_expression "(byte *)file + 1" (cast_expression "(byte *)file" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) + number_literal) )))) ;)) (expression_statement "bVar1 = *file;" (assignment_expression "bVar1 = *file" identifier = (pointer_expression "*file" * identifier)) ;) })) (if_statement "if (bVar1 != 0x5c) {\n      pbVar2 = (byte *)__stream->_IO_write_ptr;\n      if (pbVar2 < __stream->_IO_write_end) {\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }\n      else {\n        __overflow(__stream,(uint)bVar1);\n      }\n      goto LAB_00012a70;\n    }" if (parenthesized_expression "(bVar1 != 0x5c)" ( (binary_expression "bVar1 != 0x5c" identifier != number_literal) )) (compound_statement "{\n      pbVar2 = (byte *)__stream->_IO_write_ptr;\n      if (pbVar2 < __stream->_IO_write_end) {\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }\n      else {\n        __overflow(__stream,(uint)bVar1);\n      }\n      goto LAB_00012a70;\n    }" { (expression_statement "pbVar2 = (byte *)__stream->_IO_write_ptr;" (assignment_expression "pbVar2 = (byte *)__stream->_IO_write_ptr" identifier = (cast_expression "(byte *)__stream->_IO_write_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "__stream->_IO_write_ptr" identifier -> field_identifier))) ;) (if_statement "if (pbVar2 < __stream->_IO_write_end) {\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }\n      else {\n        __overflow(__stream,(uint)bVar1);\n      }" if (parenthesized_expression "(pbVar2 < __stream->_IO_write_end)" ( (binary_expression "pbVar2 < __stream->_IO_write_end" identifier < (field_expression "__stream->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }" { (expression_statement "__stream->_IO_write_ptr = (char *)(pbVar2 + 1);" (assignment_expression "__stream->_IO_write_ptr = (char *)(pbVar2 + 1)" (field_expression "__stream->_IO_write_ptr" identifier -> field_identifier) = (cast_expression "(char *)(pbVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = bVar1;" (assignment_expression "*pbVar2 = bVar1" (pointer_expression "*pbVar2" * identifier) = identifier) ;) }) (else_clause "else {\n        __overflow(__stream,(uint)bVar1);\n      }" else (compound_statement "{\n        __overflow(__stream,(uint)bVar1);\n      }" { (expression_statement "__overflow(__stream,(uint)bVar1);" (call_expression "__overflow(__stream,(uint)bVar1)" identifier (argument_list "(__stream,(uint)bVar1)" ( identifier , (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;) }))) (goto_statement "goto LAB_00012a70;" goto statement_identifier ;) })) (expression_statement "file = (char *)((byte *)file + 1);" (assignment_expression "file = (char *)((byte *)file + 1)" identifier = (cast_expression "(char *)((byte *)file + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((byte *)file + 1)" ( (binary_expression "(byte *)file + 1" (cast_expression "(byte *)file" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) + number_literal) )))) ;) (expression_statement "fwrite_unlocked(&DAT_0002600b,1,2,__stream);" (call_expression "fwrite_unlocked(&DAT_0002600b,1,2,__stream)" identifier (argument_list "(&DAT_0002600b,1,2,__stream)" ( (pointer_expression "&DAT_0002600b" & identifier) , number_literal , number_literal , identifier ))) ;) (expression_statement "bVar1 = *file;" (assignment_expression "bVar1 = *file" identifier = (pointer_expression "*file" * identifier)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void __regparm3 FUN_00012a20(byte *param_1,char param_2)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  _IO_FILE *__stream;\n  undefined *puVar3;\n  \n  puVar3 = PTR_stdout_0002afd4;\n  if (param_2 == '\0') {\n    fputs_unlocked((char *)param_1,*(FILE **)PTR_stdout_0002afd4);\n    return;\n  }\n  bVar1 = *param_1;\n  do {\n    while( true ) {\n      if (bVar1 == 0) {\n        return;\n      }\n      __stream = *(_IO_FILE **)puVar3;\n      if (bVar1 != 10) break;\n      fwrite_unlocked(&DAT_00026008,1,2,__stream);\nLAB_00012a70:\n      param_1 = param_1 + 1;\n      bVar1 = *param_1;\n    }\n    if (bVar1 != 0x5c) {\n      pbVar2 = (byte *)__stream->_IO_write_ptr;\n      if (pbVar2 < __stream->_IO_write_end) {\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }\n      else {\n        __overflow(__stream,(uint)bVar1);\n      }\n      goto LAB_00012a70;\n    }\n    param_1 = param_1 + 1;\n    fwrite_unlocked(&DAT_0002600b,1,2,__stream);\n    bVar1 = *param_1;\n  } while( true );\n}\n\n" (function_definition "void __regparm3 FUN_00012a20(byte *param_1,char param_2)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  _IO_FILE *__stream;\n  undefined *puVar3;\n  \n  puVar3 = PTR_stdout_0002afd4;\n  if (param_2 == '\0') {\n    fputs_unlocked((char *)param_1,*(FILE **)PTR_stdout_0002afd4);\n    return;\n  }\n  bVar1 = *param_1;\n  do {\n    while( true ) {\n      if (bVar1 == 0) {\n        return;\n      }\n      __stream = *(_IO_FILE **)puVar3;\n      if (bVar1 != 10) break;\n      fwrite_unlocked(&DAT_00026008,1,2,__stream);\nLAB_00012a70:\n      param_1 = param_1 + 1;\n      bVar1 = *param_1;\n    }\n    if (bVar1 != 0x5c) {\n      pbVar2 = (byte *)__stream->_IO_write_ptr;\n      if (pbVar2 < __stream->_IO_write_end) {\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }\n      else {\n        __overflow(__stream,(uint)bVar1);\n      }\n      goto LAB_00012a70;\n    }\n    param_1 = param_1 + 1;\n    fwrite_unlocked(&DAT_0002600b,1,2,__stream);\n    bVar1 = *param_1;\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00012a20(byte *param_1,char param_2)" identifier (parameter_list "(byte *param_1,char param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char param_2" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  _IO_FILE *__stream;\n  undefined *puVar3;\n  \n  puVar3 = PTR_stdout_0002afd4;\n  if (param_2 == '\0') {\n    fputs_unlocked((char *)param_1,*(FILE **)PTR_stdout_0002afd4);\n    return;\n  }\n  bVar1 = *param_1;\n  do {\n    while( true ) {\n      if (bVar1 == 0) {\n        return;\n      }\n      __stream = *(_IO_FILE **)puVar3;\n      if (bVar1 != 10) break;\n      fwrite_unlocked(&DAT_00026008,1,2,__stream);\nLAB_00012a70:\n      param_1 = param_1 + 1;\n      bVar1 = *param_1;\n    }\n    if (bVar1 != 0x5c) {\n      pbVar2 = (byte *)__stream->_IO_write_ptr;\n      if (pbVar2 < __stream->_IO_write_end) {\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }\n      else {\n        __overflow(__stream,(uint)bVar1);\n      }\n      goto LAB_00012a70;\n    }\n    param_1 = param_1 + 1;\n    fwrite_unlocked(&DAT_0002600b,1,2,__stream);\n    bVar1 = *param_1;\n  } while( true );\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "_IO_FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "puVar3 = PTR_stdout_0002afd4;" (assignment_expression "puVar3 = PTR_stdout_0002afd4" identifier = identifier) ;) (if_statement "if (param_2 == '\0') {\n    fputs_unlocked((char *)param_1,*(FILE **)PTR_stdout_0002afd4);\n    return;\n  }" if (parenthesized_expression "(param_2 == '\0')" ( (binary_expression "param_2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    fputs_unlocked((char *)param_1,*(FILE **)PTR_stdout_0002afd4);\n    return;\n  }" { (expression_statement "fputs_unlocked((char *)param_1,*(FILE **)PTR_stdout_0002afd4);" (call_expression "fputs_unlocked((char *)param_1,*(FILE **)PTR_stdout_0002afd4)" identifier (argument_list "((char *)param_1,*(FILE **)PTR_stdout_0002afd4)" ( (cast_expression "(char *)param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (pointer_expression "*(FILE **)PTR_stdout_0002afd4" * (cast_expression "(FILE **)PTR_stdout_0002afd4" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (return_statement "return;" return ;) })) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (do_statement "do {\n    while( true ) {\n      if (bVar1 == 0) {\n        return;\n      }\n      __stream = *(_IO_FILE **)puVar3;\n      if (bVar1 != 10) break;\n      fwrite_unlocked(&DAT_00026008,1,2,__stream);\nLAB_00012a70:\n      param_1 = param_1 + 1;\n      bVar1 = *param_1;\n    }\n    if (bVar1 != 0x5c) {\n      pbVar2 = (byte *)__stream->_IO_write_ptr;\n      if (pbVar2 < __stream->_IO_write_end) {\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }\n      else {\n        __overflow(__stream,(uint)bVar1);\n      }\n      goto LAB_00012a70;\n    }\n    param_1 = param_1 + 1;\n    fwrite_unlocked(&DAT_0002600b,1,2,__stream);\n    bVar1 = *param_1;\n  } while( true );" do (compound_statement "{\n    while( true ) {\n      if (bVar1 == 0) {\n        return;\n      }\n      __stream = *(_IO_FILE **)puVar3;\n      if (bVar1 != 10) break;\n      fwrite_unlocked(&DAT_00026008,1,2,__stream);\nLAB_00012a70:\n      param_1 = param_1 + 1;\n      bVar1 = *param_1;\n    }\n    if (bVar1 != 0x5c) {\n      pbVar2 = (byte *)__stream->_IO_write_ptr;\n      if (pbVar2 < __stream->_IO_write_end) {\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }\n      else {\n        __overflow(__stream,(uint)bVar1);\n      }\n      goto LAB_00012a70;\n    }\n    param_1 = param_1 + 1;\n    fwrite_unlocked(&DAT_0002600b,1,2,__stream);\n    bVar1 = *param_1;\n  }" { (while_statement "while( true ) {\n      if (bVar1 == 0) {\n        return;\n      }\n      __stream = *(_IO_FILE **)puVar3;\n      if (bVar1 != 10) break;\n      fwrite_unlocked(&DAT_00026008,1,2,__stream);\nLAB_00012a70:\n      param_1 = param_1 + 1;\n      bVar1 = *param_1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (bVar1 == 0) {\n        return;\n      }\n      __stream = *(_IO_FILE **)puVar3;\n      if (bVar1 != 10) break;\n      fwrite_unlocked(&DAT_00026008,1,2,__stream);\nLAB_00012a70:\n      param_1 = param_1 + 1;\n      bVar1 = *param_1;\n    }" { (if_statement "if (bVar1 == 0) {\n        return;\n      }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "__stream = *(_IO_FILE **)puVar3;" (assignment_expression "__stream = *(_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))) ;) (if_statement "if (bVar1 != 10) break;" if (parenthesized_expression "(bVar1 != 10)" ( (binary_expression "bVar1 != 10" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "fwrite_unlocked(&DAT_00026008,1,2,__stream);" (call_expression "fwrite_unlocked(&DAT_00026008,1,2,__stream)" identifier (argument_list "(&DAT_00026008,1,2,__stream)" ( (pointer_expression "&DAT_00026008" & identifier) , number_literal , number_literal , identifier ))) ;) (labeled_statement "LAB_00012a70:\n      param_1 = param_1 + 1;" statement_identifier : (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;)) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (if_statement "if (bVar1 != 0x5c) {\n      pbVar2 = (byte *)__stream->_IO_write_ptr;\n      if (pbVar2 < __stream->_IO_write_end) {\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }\n      else {\n        __overflow(__stream,(uint)bVar1);\n      }\n      goto LAB_00012a70;\n    }" if (parenthesized_expression "(bVar1 != 0x5c)" ( (binary_expression "bVar1 != 0x5c" identifier != number_literal) )) (compound_statement "{\n      pbVar2 = (byte *)__stream->_IO_write_ptr;\n      if (pbVar2 < __stream->_IO_write_end) {\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }\n      else {\n        __overflow(__stream,(uint)bVar1);\n      }\n      goto LAB_00012a70;\n    }" { (expression_statement "pbVar2 = (byte *)__stream->_IO_write_ptr;" (assignment_expression "pbVar2 = (byte *)__stream->_IO_write_ptr" identifier = (cast_expression "(byte *)__stream->_IO_write_ptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "__stream->_IO_write_ptr" identifier -> field_identifier))) ;) (if_statement "if (pbVar2 < __stream->_IO_write_end) {\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }\n      else {\n        __overflow(__stream,(uint)bVar1);\n      }" if (parenthesized_expression "(pbVar2 < __stream->_IO_write_end)" ( (binary_expression "pbVar2 < __stream->_IO_write_end" identifier < (field_expression "__stream->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }" { (expression_statement "__stream->_IO_write_ptr = (char *)(pbVar2 + 1);" (assignment_expression "__stream->_IO_write_ptr = (char *)(pbVar2 + 1)" (field_expression "__stream->_IO_write_ptr" identifier -> field_identifier) = (cast_expression "(char *)(pbVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = bVar1;" (assignment_expression "*pbVar2 = bVar1" (pointer_expression "*pbVar2" * identifier) = identifier) ;) }) (else_clause "else {\n        __overflow(__stream,(uint)bVar1);\n      }" else (compound_statement "{\n        __overflow(__stream,(uint)bVar1);\n      }" { (expression_statement "__overflow(__stream,(uint)bVar1);" (call_expression "__overflow(__stream,(uint)bVar1)" identifier (argument_list "(__stream,(uint)bVar1)" ( identifier , (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;) }))) (goto_statement "goto LAB_00012a70;" goto statement_identifier ;) })) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "fwrite_unlocked(&DAT_0002600b,1,2,__stream);" (call_expression "fwrite_unlocked(&DAT_0002600b,1,2,__stream)" identifier (argument_list "(&DAT_0002600b,1,2,__stream)" ( (pointer_expression "&DAT_0002600b" & identifier) , number_literal , number_literal , identifier ))) ;) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(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) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (break_statement break ;)) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT , LIT , IDENT ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (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) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE) ) IDENT) ))) ;) }))) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "void __regparm3 FUN_00012a20(byte *param_1,char param_2)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  _IO_FILE *__stream;\n  undefined *puVar3;\n  \n  puVar3 = PTR_stdout_0002afd4;\n  if (param_2 == '\0') {\n    fputs_unlocked((char *)param_1,*(FILE **)PTR_stdout_0002afd4);\n    return;\n  }\n  bVar1 = *param_1;\n  do {\n    while( true ) {\n      if (bVar1 == 0) {\n        return;\n      }\n      __stream = *(_IO_FILE **)puVar3;\n      if (bVar1 != 10) break;\n      fwrite_unlocked(&DAT_00026008,1,2,__stream);\nLAB_00012a70:\n      param_1 = param_1 + 1;\n      bVar1 = *param_1;\n    }\n    if (bVar1 != 0x5c) {\n      pbVar2 = (byte *)__stream->_IO_write_ptr;\n      if (pbVar2 < __stream->_IO_write_end) {\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }\n      else {\n        __overflow(__stream,(uint)bVar1);\n      }\n      goto LAB_00012a70;\n    }\n    param_1 = param_1 + 1;\n    fwrite_unlocked(&DAT_0002600b,1,2,__stream);\n    bVar1 = *param_1;\n  } while( true );\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00012a20(byte *param_1,char param_2)" (identifier "FUN_00012a20") (parameter_list "(byte *param_1,char param_2)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char param_2" (primitive_type "char") (identifier "param_2")) () ")"))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  _IO_FILE *__stream;\n  undefined *puVar3;\n  \n  puVar3 = PTR_stdout_0002afd4;\n  if (param_2 == '\0') {\n    fputs_unlocked((char *)param_1,*(FILE **)PTR_stdout_0002afd4);\n    return;\n  }\n  bVar1 = *param_1;\n  do {\n    while( true ) {\n      if (bVar1 == 0) {\n        return;\n      }\n      __stream = *(_IO_FILE **)puVar3;\n      if (bVar1 != 10) break;\n      fwrite_unlocked(&DAT_00026008,1,2,__stream);\nLAB_00012a70:\n      param_1 = param_1 + 1;\n      bVar1 = *param_1;\n    }\n    if (bVar1 != 0x5c) {\n      pbVar2 = (byte *)__stream->_IO_write_ptr;\n      if (pbVar2 < __stream->_IO_write_end) {\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }\n      else {\n        __overflow(__stream,(uint)bVar1);\n      }\n      goto LAB_00012a70;\n    }\n    param_1 = param_1 + 1;\n    fwrite_unlocked(&DAT_0002600b,1,2,__stream);\n    bVar1 = *param_1;\n  } while( true );\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "_IO_FILE *__stream;" (type_identifier "_IO_FILE") (pointer_declarator "*__stream" (* "*") (identifier "__stream")) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (expression_statement "puVar3 = PTR_stdout_0002afd4;" (assignment_expression "puVar3 = PTR_stdout_0002afd4" (identifier "puVar3") (= "=") (identifier "PTR_stdout_0002afd4")) (; ";")) (if_statement "if (param_2 == '\0') {\n    fputs_unlocked((char *)param_1,*(FILE **)PTR_stdout_0002afd4);\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 == '\0')" (( "(") (binary_expression "param_2 == '\0'" (identifier "param_2") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    fputs_unlocked((char *)param_1,*(FILE **)PTR_stdout_0002afd4);\n    return;\n  }" ({ "{") (expression_statement "fputs_unlocked((char *)param_1,*(FILE **)PTR_stdout_0002afd4);" (call_expression "fputs_unlocked((char *)param_1,*(FILE **)PTR_stdout_0002afd4)" (identifier "fputs_unlocked") (argument_list "((char *)param_1,*(FILE **)PTR_stdout_0002afd4)" (( "(") (cast_expression "(char *)param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1")) (, ",") (pointer_expression "*(FILE **)PTR_stdout_0002afd4" (* "*") (cast_expression "(FILE **)PTR_stdout_0002afd4" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stdout_0002afd4"))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" (identifier "bVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (do_statement "do {\n    while( true ) {\n      if (bVar1 == 0) {\n        return;\n      }\n      __stream = *(_IO_FILE **)puVar3;\n      if (bVar1 != 10) break;\n      fwrite_unlocked(&DAT_00026008,1,2,__stream);\nLAB_00012a70:\n      param_1 = param_1 + 1;\n      bVar1 = *param_1;\n    }\n    if (bVar1 != 0x5c) {\n      pbVar2 = (byte *)__stream->_IO_write_ptr;\n      if (pbVar2 < __stream->_IO_write_end) {\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }\n      else {\n        __overflow(__stream,(uint)bVar1);\n      }\n      goto LAB_00012a70;\n    }\n    param_1 = param_1 + 1;\n    fwrite_unlocked(&DAT_0002600b,1,2,__stream);\n    bVar1 = *param_1;\n  } while( true );" (do "do") (compound_statement "{\n    while( true ) {\n      if (bVar1 == 0) {\n        return;\n      }\n      __stream = *(_IO_FILE **)puVar3;\n      if (bVar1 != 10) break;\n      fwrite_unlocked(&DAT_00026008,1,2,__stream);\nLAB_00012a70:\n      param_1 = param_1 + 1;\n      bVar1 = *param_1;\n    }\n    if (bVar1 != 0x5c) {\n      pbVar2 = (byte *)__stream->_IO_write_ptr;\n      if (pbVar2 < __stream->_IO_write_end) {\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }\n      else {\n        __overflow(__stream,(uint)bVar1);\n      }\n      goto LAB_00012a70;\n    }\n    param_1 = param_1 + 1;\n    fwrite_unlocked(&DAT_0002600b,1,2,__stream);\n    bVar1 = *param_1;\n  }" ({ "{") (while_statement "while( true ) {\n      if (bVar1 == 0) {\n        return;\n      }\n      __stream = *(_IO_FILE **)puVar3;\n      if (bVar1 != 10) break;\n      fwrite_unlocked(&DAT_00026008,1,2,__stream);\nLAB_00012a70:\n      param_1 = param_1 + 1;\n      bVar1 = *param_1;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      if (bVar1 == 0) {\n        return;\n      }\n      __stream = *(_IO_FILE **)puVar3;\n      if (bVar1 != 10) break;\n      fwrite_unlocked(&DAT_00026008,1,2,__stream);\nLAB_00012a70:\n      param_1 = param_1 + 1;\n      bVar1 = *param_1;\n    }" ({ "{") (if_statement "if (bVar1 == 0) {\n        return;\n      }" (if "if") (parenthesized_expression "(bVar1 == 0)" (( "(") (binary_expression "bVar1 == 0" (identifier "bVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "__stream = *(_IO_FILE **)puVar3;" (assignment_expression "__stream = *(_IO_FILE **)puVar3" (identifier "__stream") (= "=") (pointer_expression "*(_IO_FILE **)puVar3" (* "*") (cast_expression "(_IO_FILE **)puVar3" (( "(") (type_descriptor "_IO_FILE **" (type_identifier "_IO_FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar3")))) (; ";")) (if_statement "if (bVar1 != 10) break;" (if "if") (parenthesized_expression "(bVar1 != 10)" (( "(") (binary_expression "bVar1 != 10" (identifier "bVar1") (!= "!=") (number_literal "10")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "fwrite_unlocked(&DAT_00026008,1,2,__stream);" (call_expression "fwrite_unlocked(&DAT_00026008,1,2,__stream)" (identifier "fwrite_unlocked") (argument_list "(&DAT_00026008,1,2,__stream)" (( "(") (pointer_expression "&DAT_00026008" (& "&") (identifier "DAT_00026008")) (, ",") (number_literal "1") (, ",") (number_literal "2") (, ",") (identifier "__stream") () ")"))) (; ";")) (labeled_statement "LAB_00012a70:\n      param_1 = param_1 + 1;" (statement_identifier "LAB_00012a70") (: ":") (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";"))) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" (identifier "bVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}"))) (if_statement "if (bVar1 != 0x5c) {\n      pbVar2 = (byte *)__stream->_IO_write_ptr;\n      if (pbVar2 < __stream->_IO_write_end) {\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }\n      else {\n        __overflow(__stream,(uint)bVar1);\n      }\n      goto LAB_00012a70;\n    }" (if "if") (parenthesized_expression "(bVar1 != 0x5c)" (( "(") (binary_expression "bVar1 != 0x5c" (identifier "bVar1") (!= "!=") (number_literal "0x5c")) () ")")) (compound_statement "{\n      pbVar2 = (byte *)__stream->_IO_write_ptr;\n      if (pbVar2 < __stream->_IO_write_end) {\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }\n      else {\n        __overflow(__stream,(uint)bVar1);\n      }\n      goto LAB_00012a70;\n    }" ({ "{") (expression_statement "pbVar2 = (byte *)__stream->_IO_write_ptr;" (assignment_expression "pbVar2 = (byte *)__stream->_IO_write_ptr" (identifier "pbVar2") (= "=") (cast_expression "(byte *)__stream->_IO_write_ptr" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (field_expression "__stream->_IO_write_ptr" (identifier "__stream") (-> "->") (field_identifier "_IO_write_ptr")))) (; ";")) (if_statement "if (pbVar2 < __stream->_IO_write_end) {\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }\n      else {\n        __overflow(__stream,(uint)bVar1);\n      }" (if "if") (parenthesized_expression "(pbVar2 < __stream->_IO_write_end)" (( "(") (binary_expression "pbVar2 < __stream->_IO_write_end" (identifier "pbVar2") (< "<") (field_expression "__stream->_IO_write_end" (identifier "__stream") (-> "->") (field_identifier "_IO_write_end"))) () ")")) (compound_statement "{\n        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);\n        *pbVar2 = bVar1;\n      }" ({ "{") (expression_statement "__stream->_IO_write_ptr = (char *)(pbVar2 + 1);" (assignment_expression "__stream->_IO_write_ptr = (char *)(pbVar2 + 1)" (field_expression "__stream->_IO_write_ptr" (identifier "__stream") (-> "->") (field_identifier "_IO_write_ptr")) (= "=") (cast_expression "(char *)(pbVar2 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar2 + 1)" (( "(") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pbVar2 = bVar1;" (assignment_expression "*pbVar2 = bVar1" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (= "=") (identifier "bVar1")) (; ";")) (} "}")) (else_clause "else {\n        __overflow(__stream,(uint)bVar1);\n      }" (else "else") (compound_statement "{\n        __overflow(__stream,(uint)bVar1);\n      }" ({ "{") (expression_statement "__overflow(__stream,(uint)bVar1);" (call_expression "__overflow(__stream,(uint)bVar1)" (identifier "__overflow") (argument_list "(__stream,(uint)bVar1)" (( "(") (identifier "__stream") (, ",") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1")) () ")"))) (; ";")) (} "}")))) (goto_statement "goto LAB_00012a70;" (goto "goto") (statement_identifier "LAB_00012a70") (; ";")) (} "}"))) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "fwrite_unlocked(&DAT_0002600b,1,2,__stream);" (call_expression "fwrite_unlocked(&DAT_0002600b,1,2,__stream)" (identifier "fwrite_unlocked") (argument_list "(&DAT_0002600b,1,2,__stream)" (( "(") (pointer_expression "&DAT_0002600b" (& "&") (identifier "DAT_0002600b")) (, ",") (number_literal "1") (, ",") (number_literal "2") (, ",") (identifier "__stream") () ")"))) (; ";")) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" (identifier "bVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

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

void __regparm3 function_1(char *file,type_1 escape)

{
  type_2 var_2;
  type_2 *var_4;
  type_3 *__stream;
  type_4 *puVar3;
  
  puVar3 = PTR_stdout_0002afd4;
  if (!escape) {
    var_1(file,*(type_5 **)PTR_stdout_0002afd4);
    return;
  }
  var_2 = *file;
  do {
    while( true ) {
      if (var_2 == 0) {
        return;
      }
      __stream = *(type_3 **)puVar3;
      if (var_2 != 10) break;
      var_3(&DAT_00026008,1,2,__stream);
LAB_00012a70:
      file = (char *)((type_2 *)file + 1);
      var_2 = *file;
    }
    if (var_2 != 0x5c) {
      var_4 = (type_2 *)__stream->_IO_write_ptr;
      if (var_4 < __stream->_IO_write_end) {
        __stream->_IO_write_ptr = (char *)(var_4 + 1);
        *var_4 = var_2;
      }
      else {
        var_5(__stream,(type_6)var_2);
      }
      goto LAB_00012a70;
    }
    file = (char *)((type_2 *)file + 1);
    var_3(&DAT_0002600b,1,2,__stream);
    var_2 = *file;
  } while( true );
}


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

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

void __regparm3 MASKED(byte *param_1,char param_2)

{
  byte bVar1;
  byte *pbVar2;
  _IO_FILE *__stream;
  undefined *puVar3;
  
  puVar3 = PTR_stdout_0002afd4;
  if (param_2 == '\0') {
    fputs_unlocked((char *)param_1,*(FILE **)PTR_stdout_0002afd4);
    return;
  }
  bVar1 = *param_1;
  do {
    while( true ) {
      if (bVar1 == 0) {
        return;
      }
      __stream = *(_IO_FILE **)puVar3;
      if (bVar1 != 10) break;
      fwrite_unlocked(&DAT_00026008,1,2,__stream);
LAB_00012a70:
      param_1 = param_1 + 1;
      bVar1 = *param_1;
    }
    if (bVar1 != 0x5c) {
      pbVar2 = (byte *)__stream->_IO_write_ptr;
      if (pbVar2 < __stream->_IO_write_end) {
        __stream->_IO_write_ptr = (char *)(pbVar2 + 1);
        *pbVar2 = bVar1;
      }
      else {
        __overflow(__stream,(uint)bVar1);
      }
      goto LAB_00012a70;
    }
    param_1 = param_1 + 1;
    fwrite_unlocked(&DAT_0002600b,1,2,__stream);
    bVar1 = *param_1;
  } while( true );
}

