
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: char * find_field(linebuffer * line, linebuffer * line) */

char * __regparm3 find_field(linebuffer *line,linebuffer *line_1)

{
  byte bVar1;
  ushort *puVar2;
  size_t sVar3;
  ushort **ppuVar4;
  uint uVar5;
  undefined1 *puVar6;
  ushort uVar7;
  uint uVar8;
  undefined1 *puVar9;
  
  sVar3 = skip_fields;
  puVar9 = (undefined1 *)((int)&line[-1].buffer + 3);
  if ((line == (linebuffer *)0x1) || (skip_fields == 0)) {
    puVar6 = (undefined1 *)0x0;
  }
  else {
    ppuVar4 = __ctype_b_loc();
    uVar8 = 0;
    puVar2 = *ppuVar4;
    uVar5 = (uint)(byte)line_1->size;
    uVar7 = puVar2[uVar5];
    puVar6 = (undefined1 *)0x0;
    while( true ) {
      while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {
        puVar6 = puVar6 + 1;
        if (puVar9 <= puVar6) goto LAB_000122f0;
        uVar5 = (uint)(byte)puVar6[(int)&line_1->size];
        uVar7 = puVar2[uVar5];
      }
      if (puVar9 <= puVar6) break;
      bVar1 = puVar6[(int)&line_1->size];
      uVar5 = (uint)bVar1;
      while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {
        puVar6 = puVar6 + 1;
        if (puVar9 <= puVar6) goto LAB_000122f0;
        bVar1 = puVar6[(int)&line_1->size];
        uVar5 = (uint)bVar1;
        uVar7 = puVar2[uVar5];
      }
      uVar8 = uVar8 + 1;
      if ((sVar3 <= uVar8) || (puVar9 <= puVar6)) break;
    }
LAB_000122f0:
    puVar9 = puVar9 + -(int)puVar6;
  }
  if (skip_chars <= puVar9) {
    puVar9 = (undefined1 *)skip_chars;
  }
  return puVar6 + (int)puVar9 + (int)line_1;
}



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

byte * __regparm3 FUN_00012270(int param_1,byte *param_2)

{
  byte bVar1;
  ushort *puVar2;
  uint uVar3;
  ushort **ppuVar4;
  uint uVar5;
  uint uVar6;
  ushort uVar7;
  uint uVar8;
  uint uVar9;
  
  uVar3 = DAT_0001e1a0;
  uVar9 = param_1 - 1;
  if ((param_1 == 1) || (DAT_0001e1a0 == 0)) {
    uVar6 = 0;
  }
  else {
    ppuVar4 = __ctype_b_loc();
    uVar8 = 0;
    puVar2 = *ppuVar4;
    uVar5 = (uint)*param_2;
    uVar7 = puVar2[uVar5];
    uVar6 = 0;
    while( true ) {
      while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {
        uVar6 = uVar6 + 1;
        if (uVar9 <= uVar6) goto LAB_000122f0;
        uVar5 = (uint)param_2[uVar6];
        uVar7 = puVar2[uVar5];
      }
      if (uVar9 <= uVar6) break;
      bVar1 = param_2[uVar6];
      uVar5 = (uint)bVar1;
      while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {
        uVar6 = uVar6 + 1;
        if (uVar9 <= uVar6) goto LAB_000122f0;
        bVar1 = param_2[uVar6];
        uVar5 = (uint)bVar1;
        uVar7 = puVar2[uVar5];
      }
      uVar8 = uVar8 + 1;
      if ((uVar3 <= uVar8) || (uVar9 <= uVar6)) break;
    }
LAB_000122f0:
    uVar9 = uVar9 - uVar6;
  }
  if (DAT_0001e19c <= uVar9) {
    uVar9 = DAT_0001e19c;
  }
  return param_2 + uVar6 + uVar9;
}


PUSH EBP
PUSH EDI
MOV EDI,EDX
PUSH ESI
LEA ESI,[EAX + -0x1]
PUSH EBX
CALL 0x00011f70
ADD EBX,0xbd82
SUB ESP,0x1c
MOV EDX,dword ptr [EBX + 0x1a0]
MOV dword ptr [ESP + 0xc],EBX
MOV dword ptr [ESP + 0x8],EDX
CMP EAX,0x1
JZ 0x00012340
TEST EDX,EDX
JZ 0x00012340
CALL 0x000113c0
XOR EBP,EBP
MOV EDX,dword ptr [EAX]
MOVZX EAX,byte ptr [EDI]
MOV EBX,EAX
MOVZX ECX,word ptr [EDX + EAX*0x2]
XOR EAX,EAX
LEA ESI,[ESI]
CMP BL,0xa
JZ 0x00012310
TEST CL,0x1
JNZ 0x00012310
CMP ESI,EAX
JBE 0x000122f0
MOVZX EBX,byte ptr [EDI + EAX*0x1]
CMP BL,0xa
JZ 0x000122dc
TEST CL,0x1
JZ 0x00012328
ADD EBP,0x1
CMP dword ptr [ESP + 0x8],EBP
JBE 0x000122f0
CMP ESI,EAX
JA 0x000122c0
LEA ESI,[ESI]
SUB ESI,EAX
MOV EDX,dword ptr [ESP + 0xc]
CMP dword ptr [EDX + 0x19c],ESI
CMOVBE ESI,dword ptr [EDX + 0x19c]
ADD ESP,0x1c
POP EBX
ADD EAX,ESI
POP ESI
ADD EAX,EDI
POP EDI
POP EBP
RET
ADD EAX,0x1
CMP ESI,EAX
JBE 0x000122f0
MOVZX ECX,byte ptr [EDI + EAX*0x1]
MOV EBX,ECX
MOVZX ECX,word ptr [EDX + ECX*0x2]
JMP 0x000122c0
ADD EAX,0x1
CMP ESI,EAX
JBE 0x000122f0
MOVZX ECX,byte ptr [EDI + EAX*0x1]
MOV EBX,ECX
MOVZX ECX,word ptr [EDX + ECX*0x2]
CMP BL,0xa
JNZ 0x000122d7
JMP 0x000122dc
XOR EAX,EAX
JMP 0x000122f2
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbyte * __regparm3 FUN_00012270(int param_1,byte *param_2)\n\n{\n  byte bVar1;\n  ushort *puVar2;\n  uint uVar3;\n  ushort **ppuVar4;\n  uint uVar5;\n  uint uVar6;\n  ushort uVar7;\n  uint uVar8;\n  uint uVar9;\n  \n  uVar3 = DAT_0001e1a0;\n  uVar9 = param_1 - 1;\n  if ((param_1 == 1) || (DAT_0001e1a0 == 0)) {\n    uVar6 = 0;\n  }\n  else {\n    ppuVar4 = __ctype_b_loc();\n    uVar8 = 0;\n    puVar2 = *ppuVar4;\n    uVar5 = (uint)*param_2;\n    uVar7 = puVar2[uVar5];\n    uVar6 = 0;\n    while( true ) {\n      while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        uVar5 = (uint)param_2[uVar6];\n        uVar7 = puVar2[uVar5];\n      }\n      if (uVar9 <= uVar6) break;\n      bVar1 = param_2[uVar6];\n      uVar5 = (uint)bVar1;\n      while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        bVar1 = param_2[uVar6];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }\n      uVar8 = uVar8 + 1;\n      if ((uVar3 <= uVar8) || (uVar9 <= uVar6)) break;\n    }\nLAB_000122f0:\n    uVar9 = uVar9 - uVar6;\n  }\n  if (DAT_0001e19c <= uVar9) {\n    uVar9 = DAT_0001e19c;\n  }\n  return param_2 + uVar6 + uVar9;\n}\n\n" comment (ERROR "byte * __regparm3 FUN_00012270(int param_1,byte *param_2)" (binary_expression "byte * __regparm3 FUN_00012270(int param_1,byte *param_2)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_00012270(int param_1,byte *param_2)" identifier (argument_list "(int param_1,byte *param_2)" ( (ERROR "int" identifier) identifier , (binary_expression "byte *param_2" identifier * identifier) ))))) (compound_statement "{\n  byte bVar1;\n  ushort *puVar2;\n  uint uVar3;\n  ushort **ppuVar4;\n  uint uVar5;\n  uint uVar6;\n  ushort uVar7;\n  uint uVar8;\n  uint uVar9;\n  \n  uVar3 = DAT_0001e1a0;\n  uVar9 = param_1 - 1;\n  if ((param_1 == 1) || (DAT_0001e1a0 == 0)) {\n    uVar6 = 0;\n  }\n  else {\n    ppuVar4 = __ctype_b_loc();\n    uVar8 = 0;\n    puVar2 = *ppuVar4;\n    uVar5 = (uint)*param_2;\n    uVar7 = puVar2[uVar5];\n    uVar6 = 0;\n    while( true ) {\n      while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        uVar5 = (uint)param_2[uVar6];\n        uVar7 = puVar2[uVar5];\n      }\n      if (uVar9 <= uVar6) break;\n      bVar1 = param_2[uVar6];\n      uVar5 = (uint)bVar1;\n      while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        bVar1 = param_2[uVar6];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }\n      uVar8 = uVar8 + 1;\n      if ((uVar3 <= uVar8) || (uVar9 <= uVar6)) break;\n    }\nLAB_000122f0:\n    uVar9 = uVar9 - uVar6;\n  }\n  if (DAT_0001e19c <= uVar9) {\n    uVar9 = DAT_0001e19c;\n  }\n  return param_2 + uVar6 + uVar9;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "ushort *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "ushort **ppuVar4;" type_identifier (pointer_declarator "**ppuVar4" * (pointer_declarator "*ppuVar4" * identifier)) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "ushort uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (expression_statement "uVar3 = DAT_0001e1a0;" (assignment_expression "uVar3 = DAT_0001e1a0" identifier = identifier) ;) (expression_statement "uVar9 = param_1 - 1;" (assignment_expression "uVar9 = param_1 - 1" identifier = (binary_expression "param_1 - 1" identifier - number_literal)) ;) (if_statement "if ((param_1 == 1) || (DAT_0001e1a0 == 0)) {\n    uVar6 = 0;\n  }\n  else {\n    ppuVar4 = __ctype_b_loc();\n    uVar8 = 0;\n    puVar2 = *ppuVar4;\n    uVar5 = (uint)*param_2;\n    uVar7 = puVar2[uVar5];\n    uVar6 = 0;\n    while( true ) {\n      while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        uVar5 = (uint)param_2[uVar6];\n        uVar7 = puVar2[uVar5];\n      }\n      if (uVar9 <= uVar6) break;\n      bVar1 = param_2[uVar6];\n      uVar5 = (uint)bVar1;\n      while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        bVar1 = param_2[uVar6];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }\n      uVar8 = uVar8 + 1;\n      if ((uVar3 <= uVar8) || (uVar9 <= uVar6)) break;\n    }\nLAB_000122f0:\n    uVar9 = uVar9 - uVar6;\n  }" if (parenthesized_expression "((param_1 == 1) || (DAT_0001e1a0 == 0))" ( (binary_expression "(param_1 == 1) || (DAT_0001e1a0 == 0)" (parenthesized_expression "(param_1 == 1)" ( (binary_expression "param_1 == 1" identifier == number_literal) )) || (parenthesized_expression "(DAT_0001e1a0 == 0)" ( (binary_expression "DAT_0001e1a0 == 0" identifier == number_literal) ))) )) (compound_statement "{\n    uVar6 = 0;\n  }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    ppuVar4 = __ctype_b_loc();\n    uVar8 = 0;\n    puVar2 = *ppuVar4;\n    uVar5 = (uint)*param_2;\n    uVar7 = puVar2[uVar5];\n    uVar6 = 0;\n    while( true ) {\n      while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        uVar5 = (uint)param_2[uVar6];\n        uVar7 = puVar2[uVar5];\n      }\n      if (uVar9 <= uVar6) break;\n      bVar1 = param_2[uVar6];\n      uVar5 = (uint)bVar1;\n      while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        bVar1 = param_2[uVar6];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }\n      uVar8 = uVar8 + 1;\n      if ((uVar3 <= uVar8) || (uVar9 <= uVar6)) break;\n    }\nLAB_000122f0:\n    uVar9 = uVar9 - uVar6;\n  }" else (compound_statement "{\n    ppuVar4 = __ctype_b_loc();\n    uVar8 = 0;\n    puVar2 = *ppuVar4;\n    uVar5 = (uint)*param_2;\n    uVar7 = puVar2[uVar5];\n    uVar6 = 0;\n    while( true ) {\n      while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        uVar5 = (uint)param_2[uVar6];\n        uVar7 = puVar2[uVar5];\n      }\n      if (uVar9 <= uVar6) break;\n      bVar1 = param_2[uVar6];\n      uVar5 = (uint)bVar1;\n      while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        bVar1 = param_2[uVar6];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }\n      uVar8 = uVar8 + 1;\n      if ((uVar3 <= uVar8) || (uVar9 <= uVar6)) break;\n    }\nLAB_000122f0:\n    uVar9 = uVar9 - uVar6;\n  }" { (expression_statement "ppuVar4 = __ctype_b_loc();" (assignment_expression "ppuVar4 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "puVar2 = *ppuVar4;" (assignment_expression "puVar2 = *ppuVar4" identifier = (pointer_expression "*ppuVar4" * identifier)) ;) (expression_statement "uVar5 = (uint)*param_2;" (assignment_expression "uVar5 = (uint)*param_2" identifier = (binary_expression "(uint)*param_2" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "uVar7 = puVar2[uVar5];" (assignment_expression "uVar7 = puVar2[uVar5]" identifier = (subscript_expression "puVar2[uVar5]" identifier [ identifier ])) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n      while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        uVar5 = (uint)param_2[uVar6];\n        uVar7 = puVar2[uVar5];\n      }\n      if (uVar9 <= uVar6) break;\n      bVar1 = param_2[uVar6];\n      uVar5 = (uint)bVar1;\n      while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        bVar1 = param_2[uVar6];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }\n      uVar8 = uVar8 + 1;\n      if ((uVar3 <= uVar8) || (uVar9 <= uVar6)) break;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        uVar5 = (uint)param_2[uVar6];\n        uVar7 = puVar2[uVar5];\n      }\n      if (uVar9 <= uVar6) break;\n      bVar1 = param_2[uVar6];\n      uVar5 = (uint)bVar1;\n      while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        bVar1 = param_2[uVar6];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }\n      uVar8 = uVar8 + 1;\n      if ((uVar3 <= uVar8) || (uVar9 <= uVar6)) break;\n    }" { (while_statement "while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        uVar5 = (uint)param_2[uVar6];\n        uVar7 = puVar2[uVar5];\n      }" while (parenthesized_expression "(((char)uVar5 == '\n' || ((uVar7 & 1) != 0)))" ( (parenthesized_expression "((char)uVar5 == '\n' || ((uVar7 & 1) != 0))" ( (binary_expression "(char)uVar5 == '\n' || ((uVar7 & 1) != 0)" (binary_expression "(char)uVar5 == '\n'" (cast_expression "(char)uVar5" ( (type_descriptor "char" primitive_type) ) identifier) == (char_literal "'\n'" ' escape_sequence ')) || (parenthesized_expression "((uVar7 & 1) != 0)" ( (binary_expression "(uVar7 & 1) != 0" (parenthesized_expression "(uVar7 & 1)" ( (binary_expression "uVar7 & 1" identifier & number_literal) )) != number_literal) ))) )) )) (compound_statement "{\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        uVar5 = (uint)param_2[uVar6];\n        uVar7 = puVar2[uVar5];\n      }" { (expression_statement "uVar6 = uVar6 + 1;" (assignment_expression "uVar6 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (if_statement "if (uVar9 <= uVar6) goto LAB_000122f0;" if (parenthesized_expression "(uVar9 <= uVar6)" ( (binary_expression "uVar9 <= uVar6" identifier <= identifier) )) (goto_statement "goto LAB_000122f0;" goto statement_identifier ;)) (expression_statement "uVar5 = (uint)param_2[uVar6];" (assignment_expression "uVar5 = (uint)param_2[uVar6]" identifier = (cast_expression "(uint)param_2[uVar6]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[uVar6]" identifier [ identifier ]))) ;) (expression_statement "uVar7 = puVar2[uVar5];" (assignment_expression "uVar7 = puVar2[uVar5]" identifier = (subscript_expression "puVar2[uVar5]" identifier [ identifier ])) ;) })) (if_statement "if (uVar9 <= uVar6) break;" if (parenthesized_expression "(uVar9 <= uVar6)" ( (binary_expression "uVar9 <= uVar6" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "bVar1 = param_2[uVar6];" (assignment_expression "bVar1 = param_2[uVar6]" identifier = (subscript_expression "param_2[uVar6]" identifier [ identifier ])) ;) (expression_statement "uVar5 = (uint)bVar1;" (assignment_expression "uVar5 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (while_statement "while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        bVar1 = param_2[uVar6];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }" while (parenthesized_expression "((bVar1 != 10 && ((uVar7 & 1) == 0)))" ( (parenthesized_expression "(bVar1 != 10 && ((uVar7 & 1) == 0))" ( (binary_expression "bVar1 != 10 && ((uVar7 & 1) == 0)" (binary_expression "bVar1 != 10" identifier != number_literal) && (parenthesized_expression "((uVar7 & 1) == 0)" ( (binary_expression "(uVar7 & 1) == 0" (parenthesized_expression "(uVar7 & 1)" ( (binary_expression "uVar7 & 1" identifier & number_literal) )) == number_literal) ))) )) )) (compound_statement "{\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        bVar1 = param_2[uVar6];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }" { (expression_statement "uVar6 = uVar6 + 1;" (assignment_expression "uVar6 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (if_statement "if (uVar9 <= uVar6) goto LAB_000122f0;" if (parenthesized_expression "(uVar9 <= uVar6)" ( (binary_expression "uVar9 <= uVar6" identifier <= identifier) )) (goto_statement "goto LAB_000122f0;" goto statement_identifier ;)) (expression_statement "bVar1 = param_2[uVar6];" (assignment_expression "bVar1 = param_2[uVar6]" identifier = (subscript_expression "param_2[uVar6]" identifier [ identifier ])) ;) (expression_statement "uVar5 = (uint)bVar1;" (assignment_expression "uVar5 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "uVar7 = puVar2[uVar5];" (assignment_expression "uVar7 = puVar2[uVar5]" identifier = (subscript_expression "puVar2[uVar5]" identifier [ identifier ])) ;) })) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) (if_statement "if ((uVar3 <= uVar8) || (uVar9 <= uVar6)) break;" if (parenthesized_expression "((uVar3 <= uVar8) || (uVar9 <= uVar6))" ( (binary_expression "(uVar3 <= uVar8) || (uVar9 <= uVar6)" (parenthesized_expression "(uVar3 <= uVar8)" ( (binary_expression "uVar3 <= uVar8" identifier <= identifier) )) || (parenthesized_expression "(uVar9 <= uVar6)" ( (binary_expression "uVar9 <= uVar6" identifier <= identifier) ))) )) (break_statement "break;" break ;)) })) (labeled_statement "LAB_000122f0:\n    uVar9 = uVar9 - uVar6;" statement_identifier : (expression_statement "uVar9 = uVar9 - uVar6;" (assignment_expression "uVar9 = uVar9 - uVar6" identifier = (binary_expression "uVar9 - uVar6" identifier - identifier)) ;)) }))) (if_statement "if (DAT_0001e19c <= uVar9) {\n    uVar9 = DAT_0001e19c;\n  }" if (parenthesized_expression "(DAT_0001e19c <= uVar9)" ( (binary_expression "DAT_0001e19c <= uVar9" identifier <= identifier) )) (compound_statement "{\n    uVar9 = DAT_0001e19c;\n  }" { (expression_statement "uVar9 = DAT_0001e19c;" (assignment_expression "uVar9 = DAT_0001e19c" identifier = identifier) ;) })) (return_statement "return param_2 + uVar6 + uVar9;" return (binary_expression "param_2 + uVar6 + uVar9" (binary_expression "param_2 + uVar6" identifier + identifier) + identifier) ;) }))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: char * find_field(linebuffer * line, linebuffer * line) */\n\nchar * __regparm3 find_field(linebuffer *line,linebuffer *line_1)\n\n{\n  byte bVar1;\n  ushort *puVar2;\n  size_t sVar3;\n  ushort **ppuVar4;\n  uint uVar5;\n  undefined1 *puVar6;\n  ushort uVar7;\n  uint uVar8;\n  undefined1 *puVar9;\n  \n  sVar3 = skip_fields;\n  puVar9 = (undefined1 *)((int)&line[-1].buffer + 3);\n  if ((line == (linebuffer *)0x1) || (skip_fields == 0)) {\n    puVar6 = (undefined1 *)0x0;\n  }\n  else {\n    ppuVar4 = __ctype_b_loc();\n    uVar8 = 0;\n    puVar2 = *ppuVar4;\n    uVar5 = (uint)(byte)line_1->size;\n    uVar7 = puVar2[uVar5];\n    puVar6 = (undefined1 *)0x0;\n    while( true ) {\n      while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        puVar6 = puVar6 + 1;\n        if (puVar9 <= puVar6) goto LAB_000122f0;\n        uVar5 = (uint)(byte)puVar6[(int)&line_1->size];\n        uVar7 = puVar2[uVar5];\n      }\n      if (puVar9 <= puVar6) break;\n      bVar1 = puVar6[(int)&line_1->size];\n      uVar5 = (uint)bVar1;\n      while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        puVar6 = puVar6 + 1;\n        if (puVar9 <= puVar6) goto LAB_000122f0;\n        bVar1 = puVar6[(int)&line_1->size];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }\n      uVar8 = uVar8 + 1;\n      if ((sVar3 <= uVar8) || (puVar9 <= puVar6)) break;\n    }\nLAB_000122f0:\n    puVar9 = puVar9 + -(int)puVar6;\n  }\n  if (skip_chars <= puVar9) {\n    puVar9 = (undefined1 *)skip_chars;\n  }\n  return puVar6 + (int)puVar9 + (int)line_1;\n}\n\n" comment comment (function_definition "char * __regparm3 find_field(linebuffer *line,linebuffer *line_1)\n\n{\n  byte bVar1;\n  ushort *puVar2;\n  size_t sVar3;\n  ushort **ppuVar4;\n  uint uVar5;\n  undefined1 *puVar6;\n  ushort uVar7;\n  uint uVar8;\n  undefined1 *puVar9;\n  \n  sVar3 = skip_fields;\n  puVar9 = (undefined1 *)((int)&line[-1].buffer + 3);\n  if ((line == (linebuffer *)0x1) || (skip_fields == 0)) {\n    puVar6 = (undefined1 *)0x0;\n  }\n  else {\n    ppuVar4 = __ctype_b_loc();\n    uVar8 = 0;\n    puVar2 = *ppuVar4;\n    uVar5 = (uint)(byte)line_1->size;\n    uVar7 = puVar2[uVar5];\n    puVar6 = (undefined1 *)0x0;\n    while( true ) {\n      while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        puVar6 = puVar6 + 1;\n        if (puVar9 <= puVar6) goto LAB_000122f0;\n        uVar5 = (uint)(byte)puVar6[(int)&line_1->size];\n        uVar7 = puVar2[uVar5];\n      }\n      if (puVar9 <= puVar6) break;\n      bVar1 = puVar6[(int)&line_1->size];\n      uVar5 = (uint)bVar1;\n      while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        puVar6 = puVar6 + 1;\n        if (puVar9 <= puVar6) goto LAB_000122f0;\n        bVar1 = puVar6[(int)&line_1->size];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }\n      uVar8 = uVar8 + 1;\n      if ((sVar3 <= uVar8) || (puVar9 <= puVar6)) break;\n    }\nLAB_000122f0:\n    puVar9 = puVar9 + -(int)puVar6;\n  }\n  if (skip_chars <= puVar9) {\n    puVar9 = (undefined1 *)skip_chars;\n  }\n  return puVar6 + (int)puVar9 + (int)line_1;\n}" primitive_type (pointer_declarator "* __regparm3 find_field(linebuffer *line,linebuffer *line_1)" * (ERROR "__regparm3" identifier) (function_declarator "find_field(linebuffer *line,linebuffer *line_1)" identifier (parameter_list "(linebuffer *line,linebuffer *line_1)" ( (parameter_declaration "linebuffer *line" type_identifier (pointer_declarator "*line" * identifier)) , (parameter_declaration "linebuffer *line_1" type_identifier (pointer_declarator "*line_1" * identifier)) )))) (compound_statement "{\n  byte bVar1;\n  ushort *puVar2;\n  size_t sVar3;\n  ushort **ppuVar4;\n  uint uVar5;\n  undefined1 *puVar6;\n  ushort uVar7;\n  uint uVar8;\n  undefined1 *puVar9;\n  \n  sVar3 = skip_fields;\n  puVar9 = (undefined1 *)((int)&line[-1].buffer + 3);\n  if ((line == (linebuffer *)0x1) || (skip_fields == 0)) {\n    puVar6 = (undefined1 *)0x0;\n  }\n  else {\n    ppuVar4 = __ctype_b_loc();\n    uVar8 = 0;\n    puVar2 = *ppuVar4;\n    uVar5 = (uint)(byte)line_1->size;\n    uVar7 = puVar2[uVar5];\n    puVar6 = (undefined1 *)0x0;\n    while( true ) {\n      while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        puVar6 = puVar6 + 1;\n        if (puVar9 <= puVar6) goto LAB_000122f0;\n        uVar5 = (uint)(byte)puVar6[(int)&line_1->size];\n        uVar7 = puVar2[uVar5];\n      }\n      if (puVar9 <= puVar6) break;\n      bVar1 = puVar6[(int)&line_1->size];\n      uVar5 = (uint)bVar1;\n      while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        puVar6 = puVar6 + 1;\n        if (puVar9 <= puVar6) goto LAB_000122f0;\n        bVar1 = puVar6[(int)&line_1->size];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }\n      uVar8 = uVar8 + 1;\n      if ((sVar3 <= uVar8) || (puVar9 <= puVar6)) break;\n    }\nLAB_000122f0:\n    puVar9 = puVar9 + -(int)puVar6;\n  }\n  if (skip_chars <= puVar9) {\n    puVar9 = (undefined1 *)skip_chars;\n  }\n  return puVar6 + (int)puVar9 + (int)line_1;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "ushort *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "ushort **ppuVar4;" type_identifier (pointer_declarator "**ppuVar4" * (pointer_declarator "*ppuVar4" * identifier)) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "ushort uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined1 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (expression_statement "sVar3 = skip_fields;" (assignment_expression "sVar3 = skip_fields" identifier = identifier) ;) (expression_statement "puVar9 = (undefined1 *)((int)&line[-1].buffer + 3);" (assignment_expression "puVar9 = (undefined1 *)((int)&line[-1].buffer + 3)" identifier = (cast_expression "(undefined1 *)((int)&line[-1].buffer + 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&line[-1].buffer + 3)" ( (binary_expression "(int)&line[-1].buffer + 3" (cast_expression "(int)&line[-1].buffer" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&line[-1].buffer" & (field_expression "line[-1].buffer" (subscript_expression "line[-1]" identifier [ number_literal ]) . field_identifier))) + number_literal) )))) ;) (if_statement "if ((line == (linebuffer *)0x1) || (skip_fields == 0)) {\n    puVar6 = (undefined1 *)0x0;\n  }\n  else {\n    ppuVar4 = __ctype_b_loc();\n    uVar8 = 0;\n    puVar2 = *ppuVar4;\n    uVar5 = (uint)(byte)line_1->size;\n    uVar7 = puVar2[uVar5];\n    puVar6 = (undefined1 *)0x0;\n    while( true ) {\n      while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        puVar6 = puVar6 + 1;\n        if (puVar9 <= puVar6) goto LAB_000122f0;\n        uVar5 = (uint)(byte)puVar6[(int)&line_1->size];\n        uVar7 = puVar2[uVar5];\n      }\n      if (puVar9 <= puVar6) break;\n      bVar1 = puVar6[(int)&line_1->size];\n      uVar5 = (uint)bVar1;\n      while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        puVar6 = puVar6 + 1;\n        if (puVar9 <= puVar6) goto LAB_000122f0;\n        bVar1 = puVar6[(int)&line_1->size];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }\n      uVar8 = uVar8 + 1;\n      if ((sVar3 <= uVar8) || (puVar9 <= puVar6)) break;\n    }\nLAB_000122f0:\n    puVar9 = puVar9 + -(int)puVar6;\n  }" if (parenthesized_expression "((line == (linebuffer *)0x1) || (skip_fields == 0))" ( (binary_expression "(line == (linebuffer *)0x1) || (skip_fields == 0)" (parenthesized_expression "(line == (linebuffer *)0x1)" ( (binary_expression "line == (linebuffer *)0x1" identifier == (cast_expression "(linebuffer *)0x1" ( (type_descriptor "linebuffer *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(skip_fields == 0)" ( (binary_expression "skip_fields == 0" identifier == number_literal) ))) )) (compound_statement "{\n    puVar6 = (undefined1 *)0x0;\n  }" { (expression_statement "puVar6 = (undefined1 *)0x0;" (assignment_expression "puVar6 = (undefined1 *)0x0" identifier = (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    ppuVar4 = __ctype_b_loc();\n    uVar8 = 0;\n    puVar2 = *ppuVar4;\n    uVar5 = (uint)(byte)line_1->size;\n    uVar7 = puVar2[uVar5];\n    puVar6 = (undefined1 *)0x0;\n    while( true ) {\n      while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        puVar6 = puVar6 + 1;\n        if (puVar9 <= puVar6) goto LAB_000122f0;\n        uVar5 = (uint)(byte)puVar6[(int)&line_1->size];\n        uVar7 = puVar2[uVar5];\n      }\n      if (puVar9 <= puVar6) break;\n      bVar1 = puVar6[(int)&line_1->size];\n      uVar5 = (uint)bVar1;\n      while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        puVar6 = puVar6 + 1;\n        if (puVar9 <= puVar6) goto LAB_000122f0;\n        bVar1 = puVar6[(int)&line_1->size];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }\n      uVar8 = uVar8 + 1;\n      if ((sVar3 <= uVar8) || (puVar9 <= puVar6)) break;\n    }\nLAB_000122f0:\n    puVar9 = puVar9 + -(int)puVar6;\n  }" else (compound_statement "{\n    ppuVar4 = __ctype_b_loc();\n    uVar8 = 0;\n    puVar2 = *ppuVar4;\n    uVar5 = (uint)(byte)line_1->size;\n    uVar7 = puVar2[uVar5];\n    puVar6 = (undefined1 *)0x0;\n    while( true ) {\n      while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        puVar6 = puVar6 + 1;\n        if (puVar9 <= puVar6) goto LAB_000122f0;\n        uVar5 = (uint)(byte)puVar6[(int)&line_1->size];\n        uVar7 = puVar2[uVar5];\n      }\n      if (puVar9 <= puVar6) break;\n      bVar1 = puVar6[(int)&line_1->size];\n      uVar5 = (uint)bVar1;\n      while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        puVar6 = puVar6 + 1;\n        if (puVar9 <= puVar6) goto LAB_000122f0;\n        bVar1 = puVar6[(int)&line_1->size];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }\n      uVar8 = uVar8 + 1;\n      if ((sVar3 <= uVar8) || (puVar9 <= puVar6)) break;\n    }\nLAB_000122f0:\n    puVar9 = puVar9 + -(int)puVar6;\n  }" { (expression_statement "ppuVar4 = __ctype_b_loc();" (assignment_expression "ppuVar4 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "puVar2 = *ppuVar4;" (assignment_expression "puVar2 = *ppuVar4" identifier = (pointer_expression "*ppuVar4" * identifier)) ;) (expression_statement "uVar5 = (uint)(byte)line_1->size;" (assignment_expression "uVar5 = (uint)(byte)line_1->size" identifier = (cast_expression "(uint)(byte)line_1->size" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)line_1->size" ( (type_descriptor "byte" type_identifier) ) (field_expression "line_1->size" identifier -> field_identifier)))) ;) (expression_statement "uVar7 = puVar2[uVar5];" (assignment_expression "uVar7 = puVar2[uVar5]" identifier = (subscript_expression "puVar2[uVar5]" identifier [ identifier ])) ;) (expression_statement "puVar6 = (undefined1 *)0x0;" (assignment_expression "puVar6 = (undefined1 *)0x0" identifier = (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (while_statement "while( true ) {\n      while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        puVar6 = puVar6 + 1;\n        if (puVar9 <= puVar6) goto LAB_000122f0;\n        uVar5 = (uint)(byte)puVar6[(int)&line_1->size];\n        uVar7 = puVar2[uVar5];\n      }\n      if (puVar9 <= puVar6) break;\n      bVar1 = puVar6[(int)&line_1->size];\n      uVar5 = (uint)bVar1;\n      while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        puVar6 = puVar6 + 1;\n        if (puVar9 <= puVar6) goto LAB_000122f0;\n        bVar1 = puVar6[(int)&line_1->size];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }\n      uVar8 = uVar8 + 1;\n      if ((sVar3 <= uVar8) || (puVar9 <= puVar6)) break;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        puVar6 = puVar6 + 1;\n        if (puVar9 <= puVar6) goto LAB_000122f0;\n        uVar5 = (uint)(byte)puVar6[(int)&line_1->size];\n        uVar7 = puVar2[uVar5];\n      }\n      if (puVar9 <= puVar6) break;\n      bVar1 = puVar6[(int)&line_1->size];\n      uVar5 = (uint)bVar1;\n      while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        puVar6 = puVar6 + 1;\n        if (puVar9 <= puVar6) goto LAB_000122f0;\n        bVar1 = puVar6[(int)&line_1->size];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }\n      uVar8 = uVar8 + 1;\n      if ((sVar3 <= uVar8) || (puVar9 <= puVar6)) break;\n    }" { (while_statement "while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        puVar6 = puVar6 + 1;\n        if (puVar9 <= puVar6) goto LAB_000122f0;\n        uVar5 = (uint)(byte)puVar6[(int)&line_1->size];\n        uVar7 = puVar2[uVar5];\n      }" while (parenthesized_expression "(((char)uVar5 == '\n' || ((uVar7 & 1) != 0)))" ( (parenthesized_expression "((char)uVar5 == '\n' || ((uVar7 & 1) != 0))" ( (binary_expression "(char)uVar5 == '\n' || ((uVar7 & 1) != 0)" (binary_expression "(char)uVar5 == '\n'" (cast_expression "(char)uVar5" ( (type_descriptor "char" primitive_type) ) identifier) == (char_literal "'\n'" ' escape_sequence ')) || (parenthesized_expression "((uVar7 & 1) != 0)" ( (binary_expression "(uVar7 & 1) != 0" (parenthesized_expression "(uVar7 & 1)" ( (binary_expression "uVar7 & 1" identifier & number_literal) )) != number_literal) ))) )) )) (compound_statement "{\n        puVar6 = puVar6 + 1;\n        if (puVar9 <= puVar6) goto LAB_000122f0;\n        uVar5 = (uint)(byte)puVar6[(int)&line_1->size];\n        uVar7 = puVar2[uVar5];\n      }" { (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (if_statement "if (puVar9 <= puVar6) goto LAB_000122f0;" if (parenthesized_expression "(puVar9 <= puVar6)" ( (binary_expression "puVar9 <= puVar6" identifier <= identifier) )) (goto_statement "goto LAB_000122f0;" goto statement_identifier ;)) (expression_statement "uVar5 = (uint)(byte)puVar6[(int)&line_1->size];" (assignment_expression "uVar5 = (uint)(byte)puVar6[(int)&line_1->size]" identifier = (cast_expression "(uint)(byte)puVar6[(int)&line_1->size]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar6[(int)&line_1->size]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar6[(int)&line_1->size]" identifier [ (cast_expression "(int)&line_1->size" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&line_1->size" & (field_expression "line_1->size" identifier -> field_identifier))) ])))) ;) (expression_statement "uVar7 = puVar2[uVar5];" (assignment_expression "uVar7 = puVar2[uVar5]" identifier = (subscript_expression "puVar2[uVar5]" identifier [ identifier ])) ;) })) (if_statement "if (puVar9 <= puVar6) break;" if (parenthesized_expression "(puVar9 <= puVar6)" ( (binary_expression "puVar9 <= puVar6" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "bVar1 = puVar6[(int)&line_1->size];" (assignment_expression "bVar1 = puVar6[(int)&line_1->size]" identifier = (subscript_expression "puVar6[(int)&line_1->size]" identifier [ (cast_expression "(int)&line_1->size" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&line_1->size" & (field_expression "line_1->size" identifier -> field_identifier))) ])) ;) (expression_statement "uVar5 = (uint)bVar1;" (assignment_expression "uVar5 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (while_statement "while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        puVar6 = puVar6 + 1;\n        if (puVar9 <= puVar6) goto LAB_000122f0;\n        bVar1 = puVar6[(int)&line_1->size];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }" while (parenthesized_expression "((bVar1 != 10 && ((uVar7 & 1) == 0)))" ( (parenthesized_expression "(bVar1 != 10 && ((uVar7 & 1) == 0))" ( (binary_expression "bVar1 != 10 && ((uVar7 & 1) == 0)" (binary_expression "bVar1 != 10" identifier != number_literal) && (parenthesized_expression "((uVar7 & 1) == 0)" ( (binary_expression "(uVar7 & 1) == 0" (parenthesized_expression "(uVar7 & 1)" ( (binary_expression "uVar7 & 1" identifier & number_literal) )) == number_literal) ))) )) )) (compound_statement "{\n        puVar6 = puVar6 + 1;\n        if (puVar9 <= puVar6) goto LAB_000122f0;\n        bVar1 = puVar6[(int)&line_1->size];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }" { (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (if_statement "if (puVar9 <= puVar6) goto LAB_000122f0;" if (parenthesized_expression "(puVar9 <= puVar6)" ( (binary_expression "puVar9 <= puVar6" identifier <= identifier) )) (goto_statement "goto LAB_000122f0;" goto statement_identifier ;)) (expression_statement "bVar1 = puVar6[(int)&line_1->size];" (assignment_expression "bVar1 = puVar6[(int)&line_1->size]" identifier = (subscript_expression "puVar6[(int)&line_1->size]" identifier [ (cast_expression "(int)&line_1->size" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&line_1->size" & (field_expression "line_1->size" identifier -> field_identifier))) ])) ;) (expression_statement "uVar5 = (uint)bVar1;" (assignment_expression "uVar5 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "uVar7 = puVar2[uVar5];" (assignment_expression "uVar7 = puVar2[uVar5]" identifier = (subscript_expression "puVar2[uVar5]" identifier [ identifier ])) ;) })) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) (if_statement "if ((sVar3 <= uVar8) || (puVar9 <= puVar6)) break;" if (parenthesized_expression "((sVar3 <= uVar8) || (puVar9 <= puVar6))" ( (binary_expression "(sVar3 <= uVar8) || (puVar9 <= puVar6)" (parenthesized_expression "(sVar3 <= uVar8)" ( (binary_expression "sVar3 <= uVar8" identifier <= identifier) )) || (parenthesized_expression "(puVar9 <= puVar6)" ( (binary_expression "puVar9 <= puVar6" identifier <= identifier) ))) )) (break_statement "break;" break ;)) })) (labeled_statement "LAB_000122f0:\n    puVar9 = puVar9 + -(int)puVar6;" statement_identifier : (expression_statement "puVar9 = puVar9 + -(int)puVar6;" (assignment_expression "puVar9 = puVar9 + -(int)puVar6" identifier = (binary_expression "puVar9 + -(int)puVar6" identifier + (unary_expression "-(int)puVar6" - (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier)))) ;)) }))) (if_statement "if (skip_chars <= puVar9) {\n    puVar9 = (undefined1 *)skip_chars;\n  }" if (parenthesized_expression "(skip_chars <= puVar9)" ( (binary_expression "skip_chars <= puVar9" identifier <= identifier) )) (compound_statement "{\n    puVar9 = (undefined1 *)skip_chars;\n  }" { (expression_statement "puVar9 = (undefined1 *)skip_chars;" (assignment_expression "puVar9 = (undefined1 *)skip_chars" identifier = (cast_expression "(undefined1 *)skip_chars" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (return_statement "return puVar6 + (int)puVar9 + (int)line_1;" return (binary_expression "puVar6 + (int)puVar9 + (int)line_1" (binary_expression "puVar6 + (int)puVar9" identifier + (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier)) + (cast_expression "(int)line_1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })))
(translation_unit "byte * __regparm3 FUN_00012270(int param_1,byte *param_2)\n\n{\n  byte bVar1;\n  ushort *puVar2;\n  uint uVar3;\n  ushort **ppuVar4;\n  uint uVar5;\n  uint uVar6;\n  ushort uVar7;\n  uint uVar8;\n  uint uVar9;\n  \n  uVar3 = DAT_0001e1a0;\n  uVar9 = param_1 - 1;\n  if ((param_1 == 1) || (DAT_0001e1a0 == 0)) {\n    uVar6 = 0;\n  }\n  else {\n    ppuVar4 = __ctype_b_loc();\n    uVar8 = 0;\n    puVar2 = *ppuVar4;\n    uVar5 = (uint)*param_2;\n    uVar7 = puVar2[uVar5];\n    uVar6 = 0;\n    while( true ) {\n      while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        uVar5 = (uint)param_2[uVar6];\n        uVar7 = puVar2[uVar5];\n      }\n      if (uVar9 <= uVar6) break;\n      bVar1 = param_2[uVar6];\n      uVar5 = (uint)bVar1;\n      while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        bVar1 = param_2[uVar6];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }\n      uVar8 = uVar8 + 1;\n      if ((uVar3 <= uVar8) || (uVar9 <= uVar6)) break;\n    }\nLAB_000122f0:\n    uVar9 = uVar9 - uVar6;\n  }\n  if (DAT_0001e19c <= uVar9) {\n    uVar9 = DAT_0001e19c;\n  }\n  return param_2 + uVar6 + uVar9;\n}\n\n" (ERROR "byte * __regparm3 FUN_00012270(int param_1,byte *param_2)" (binary_expression "byte * __regparm3 FUN_00012270(int param_1,byte *param_2)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_00012270(int param_1,byte *param_2)" identifier (argument_list "(int param_1,byte *param_2)" ( (ERROR "int" identifier) identifier , (binary_expression "byte *param_2" identifier * identifier) ))))) (compound_statement "{\n  byte bVar1;\n  ushort *puVar2;\n  uint uVar3;\n  ushort **ppuVar4;\n  uint uVar5;\n  uint uVar6;\n  ushort uVar7;\n  uint uVar8;\n  uint uVar9;\n  \n  uVar3 = DAT_0001e1a0;\n  uVar9 = param_1 - 1;\n  if ((param_1 == 1) || (DAT_0001e1a0 == 0)) {\n    uVar6 = 0;\n  }\n  else {\n    ppuVar4 = __ctype_b_loc();\n    uVar8 = 0;\n    puVar2 = *ppuVar4;\n    uVar5 = (uint)*param_2;\n    uVar7 = puVar2[uVar5];\n    uVar6 = 0;\n    while( true ) {\n      while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        uVar5 = (uint)param_2[uVar6];\n        uVar7 = puVar2[uVar5];\n      }\n      if (uVar9 <= uVar6) break;\n      bVar1 = param_2[uVar6];\n      uVar5 = (uint)bVar1;\n      while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        bVar1 = param_2[uVar6];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }\n      uVar8 = uVar8 + 1;\n      if ((uVar3 <= uVar8) || (uVar9 <= uVar6)) break;\n    }\nLAB_000122f0:\n    uVar9 = uVar9 - uVar6;\n  }\n  if (DAT_0001e19c <= uVar9) {\n    uVar9 = DAT_0001e19c;\n  }\n  return param_2 + uVar6 + uVar9;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "ushort *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "ushort **ppuVar4;" type_identifier (pointer_declarator "**ppuVar4" * (pointer_declarator "*ppuVar4" * identifier)) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "ushort uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (expression_statement "uVar3 = DAT_0001e1a0;" (assignment_expression "uVar3 = DAT_0001e1a0" identifier = identifier) ;) (expression_statement "uVar9 = param_1 - 1;" (assignment_expression "uVar9 = param_1 - 1" identifier = (binary_expression "param_1 - 1" identifier - number_literal)) ;) (if_statement "if ((param_1 == 1) || (DAT_0001e1a0 == 0)) {\n    uVar6 = 0;\n  }\n  else {\n    ppuVar4 = __ctype_b_loc();\n    uVar8 = 0;\n    puVar2 = *ppuVar4;\n    uVar5 = (uint)*param_2;\n    uVar7 = puVar2[uVar5];\n    uVar6 = 0;\n    while( true ) {\n      while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        uVar5 = (uint)param_2[uVar6];\n        uVar7 = puVar2[uVar5];\n      }\n      if (uVar9 <= uVar6) break;\n      bVar1 = param_2[uVar6];\n      uVar5 = (uint)bVar1;\n      while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        bVar1 = param_2[uVar6];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }\n      uVar8 = uVar8 + 1;\n      if ((uVar3 <= uVar8) || (uVar9 <= uVar6)) break;\n    }\nLAB_000122f0:\n    uVar9 = uVar9 - uVar6;\n  }" if (parenthesized_expression "((param_1 == 1) || (DAT_0001e1a0 == 0))" ( (binary_expression "(param_1 == 1) || (DAT_0001e1a0 == 0)" (parenthesized_expression "(param_1 == 1)" ( (binary_expression "param_1 == 1" identifier == number_literal) )) || (parenthesized_expression "(DAT_0001e1a0 == 0)" ( (binary_expression "DAT_0001e1a0 == 0" identifier == number_literal) ))) )) (compound_statement "{\n    uVar6 = 0;\n  }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    ppuVar4 = __ctype_b_loc();\n    uVar8 = 0;\n    puVar2 = *ppuVar4;\n    uVar5 = (uint)*param_2;\n    uVar7 = puVar2[uVar5];\n    uVar6 = 0;\n    while( true ) {\n      while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        uVar5 = (uint)param_2[uVar6];\n        uVar7 = puVar2[uVar5];\n      }\n      if (uVar9 <= uVar6) break;\n      bVar1 = param_2[uVar6];\n      uVar5 = (uint)bVar1;\n      while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        bVar1 = param_2[uVar6];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }\n      uVar8 = uVar8 + 1;\n      if ((uVar3 <= uVar8) || (uVar9 <= uVar6)) break;\n    }\nLAB_000122f0:\n    uVar9 = uVar9 - uVar6;\n  }" else (compound_statement "{\n    ppuVar4 = __ctype_b_loc();\n    uVar8 = 0;\n    puVar2 = *ppuVar4;\n    uVar5 = (uint)*param_2;\n    uVar7 = puVar2[uVar5];\n    uVar6 = 0;\n    while( true ) {\n      while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        uVar5 = (uint)param_2[uVar6];\n        uVar7 = puVar2[uVar5];\n      }\n      if (uVar9 <= uVar6) break;\n      bVar1 = param_2[uVar6];\n      uVar5 = (uint)bVar1;\n      while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        bVar1 = param_2[uVar6];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }\n      uVar8 = uVar8 + 1;\n      if ((uVar3 <= uVar8) || (uVar9 <= uVar6)) break;\n    }\nLAB_000122f0:\n    uVar9 = uVar9 - uVar6;\n  }" { (expression_statement "ppuVar4 = __ctype_b_loc();" (assignment_expression "ppuVar4 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "puVar2 = *ppuVar4;" (assignment_expression "puVar2 = *ppuVar4" identifier = (pointer_expression "*ppuVar4" * identifier)) ;) (expression_statement "uVar5 = (uint)*param_2;" (assignment_expression "uVar5 = (uint)*param_2" identifier = (binary_expression "(uint)*param_2" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "uVar7 = puVar2[uVar5];" (assignment_expression "uVar7 = puVar2[uVar5]" identifier = (subscript_expression "puVar2[uVar5]" identifier [ identifier ])) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n      while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        uVar5 = (uint)param_2[uVar6];\n        uVar7 = puVar2[uVar5];\n      }\n      if (uVar9 <= uVar6) break;\n      bVar1 = param_2[uVar6];\n      uVar5 = (uint)bVar1;\n      while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        bVar1 = param_2[uVar6];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }\n      uVar8 = uVar8 + 1;\n      if ((uVar3 <= uVar8) || (uVar9 <= uVar6)) break;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        uVar5 = (uint)param_2[uVar6];\n        uVar7 = puVar2[uVar5];\n      }\n      if (uVar9 <= uVar6) break;\n      bVar1 = param_2[uVar6];\n      uVar5 = (uint)bVar1;\n      while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        bVar1 = param_2[uVar6];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }\n      uVar8 = uVar8 + 1;\n      if ((uVar3 <= uVar8) || (uVar9 <= uVar6)) break;\n    }" { (while_statement "while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        uVar5 = (uint)param_2[uVar6];\n        uVar7 = puVar2[uVar5];\n      }" while (parenthesized_expression "(((char)uVar5 == '\n' || ((uVar7 & 1) != 0)))" ( (parenthesized_expression "((char)uVar5 == '\n' || ((uVar7 & 1) != 0))" ( (binary_expression "(char)uVar5 == '\n' || ((uVar7 & 1) != 0)" (binary_expression "(char)uVar5 == '\n'" (cast_expression "(char)uVar5" ( (type_descriptor "char" primitive_type) ) identifier) == (char_literal "'\n'" ' escape_sequence ')) || (parenthesized_expression "((uVar7 & 1) != 0)" ( (binary_expression "(uVar7 & 1) != 0" (parenthesized_expression "(uVar7 & 1)" ( (binary_expression "uVar7 & 1" identifier & number_literal) )) != number_literal) ))) )) )) (compound_statement "{\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        uVar5 = (uint)param_2[uVar6];\n        uVar7 = puVar2[uVar5];\n      }" { (expression_statement "uVar6 = uVar6 + 1;" (assignment_expression "uVar6 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (if_statement "if (uVar9 <= uVar6) goto LAB_000122f0;" if (parenthesized_expression "(uVar9 <= uVar6)" ( (binary_expression "uVar9 <= uVar6" identifier <= identifier) )) (goto_statement "goto LAB_000122f0;" goto statement_identifier ;)) (expression_statement "uVar5 = (uint)param_2[uVar6];" (assignment_expression "uVar5 = (uint)param_2[uVar6]" identifier = (cast_expression "(uint)param_2[uVar6]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[uVar6]" identifier [ identifier ]))) ;) (expression_statement "uVar7 = puVar2[uVar5];" (assignment_expression "uVar7 = puVar2[uVar5]" identifier = (subscript_expression "puVar2[uVar5]" identifier [ identifier ])) ;) })) (if_statement "if (uVar9 <= uVar6) break;" if (parenthesized_expression "(uVar9 <= uVar6)" ( (binary_expression "uVar9 <= uVar6" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "bVar1 = param_2[uVar6];" (assignment_expression "bVar1 = param_2[uVar6]" identifier = (subscript_expression "param_2[uVar6]" identifier [ identifier ])) ;) (expression_statement "uVar5 = (uint)bVar1;" (assignment_expression "uVar5 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (while_statement "while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        bVar1 = param_2[uVar6];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }" while (parenthesized_expression "((bVar1 != 10 && ((uVar7 & 1) == 0)))" ( (parenthesized_expression "(bVar1 != 10 && ((uVar7 & 1) == 0))" ( (binary_expression "bVar1 != 10 && ((uVar7 & 1) == 0)" (binary_expression "bVar1 != 10" identifier != number_literal) && (parenthesized_expression "((uVar7 & 1) == 0)" ( (binary_expression "(uVar7 & 1) == 0" (parenthesized_expression "(uVar7 & 1)" ( (binary_expression "uVar7 & 1" identifier & number_literal) )) == number_literal) ))) )) )) (compound_statement "{\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        bVar1 = param_2[uVar6];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }" { (expression_statement "uVar6 = uVar6 + 1;" (assignment_expression "uVar6 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (if_statement "if (uVar9 <= uVar6) goto LAB_000122f0;" if (parenthesized_expression "(uVar9 <= uVar6)" ( (binary_expression "uVar9 <= uVar6" identifier <= identifier) )) (goto_statement "goto LAB_000122f0;" goto statement_identifier ;)) (expression_statement "bVar1 = param_2[uVar6];" (assignment_expression "bVar1 = param_2[uVar6]" identifier = (subscript_expression "param_2[uVar6]" identifier [ identifier ])) ;) (expression_statement "uVar5 = (uint)bVar1;" (assignment_expression "uVar5 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "uVar7 = puVar2[uVar5];" (assignment_expression "uVar7 = puVar2[uVar5]" identifier = (subscript_expression "puVar2[uVar5]" identifier [ identifier ])) ;) })) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) (if_statement "if ((uVar3 <= uVar8) || (uVar9 <= uVar6)) break;" if (parenthesized_expression "((uVar3 <= uVar8) || (uVar9 <= uVar6))" ( (binary_expression "(uVar3 <= uVar8) || (uVar9 <= uVar6)" (parenthesized_expression "(uVar3 <= uVar8)" ( (binary_expression "uVar3 <= uVar8" identifier <= identifier) )) || (parenthesized_expression "(uVar9 <= uVar6)" ( (binary_expression "uVar9 <= uVar6" identifier <= identifier) ))) )) (break_statement "break;" break ;)) })) (labeled_statement "LAB_000122f0:\n    uVar9 = uVar9 - uVar6;" statement_identifier : (expression_statement "uVar9 = uVar9 - uVar6;" (assignment_expression "uVar9 = uVar9 - uVar6" identifier = (binary_expression "uVar9 - uVar6" identifier - identifier)) ;)) }))) (if_statement "if (DAT_0001e19c <= uVar9) {\n    uVar9 = DAT_0001e19c;\n  }" if (parenthesized_expression "(DAT_0001e19c <= uVar9)" ( (binary_expression "DAT_0001e19c <= uVar9" identifier <= identifier) )) (compound_statement "{\n    uVar9 = DAT_0001e19c;\n  }" { (expression_statement "uVar9 = DAT_0001e19c;" (assignment_expression "uVar9 = DAT_0001e19c" identifier = identifier) ;) })) (return_statement "return param_2 + uVar6 + uVar9;" return (binary_expression "param_2 + uVar6 + uVar9" (binary_expression "param_2 + uVar6" identifier + identifier) + identifier) ;) }))
(translation_unit (ERROR (binary_expression IDENT * (ERROR IDENT) (call_expression IDENT (argument_list ( (ERROR IDENT) IDENT , (binary_expression IDENT * IDENT) ))))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (while_statement while (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == (char_literal ' escape_sequence ')) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) ))) )) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ IDENT ]))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (while_statement while (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) ))) )) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) || (parenthesized_expression ( (binary_expression IDENT <= IDENT) ))) )) (break_statement break ;)) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;)) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (return_statement return (binary_expression (binary_expression IDENT + IDENT) + IDENT) ;) }))
(ERROR "byte * __regparm3 FUN_00012270(int param_1,byte *param_2)" (binary_expression "byte * __regparm3 FUN_00012270(int param_1,byte *param_2)" (identifier "byte") (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (call_expression "FUN_00012270(int param_1,byte *param_2)" (identifier "FUN_00012270") (argument_list "(int param_1,byte *param_2)" (( "(") (ERROR "int" (identifier "int")) (identifier "param_1") (, ",") (binary_expression "byte *param_2" (identifier "byte") (* "*") (identifier "param_2")) () ")"))))) (compound_statement "{\n  byte bVar1;\n  ushort *puVar2;\n  uint uVar3;\n  ushort **ppuVar4;\n  uint uVar5;\n  uint uVar6;\n  ushort uVar7;\n  uint uVar8;\n  uint uVar9;\n  \n  uVar3 = DAT_0001e1a0;\n  uVar9 = param_1 - 1;\n  if ((param_1 == 1) || (DAT_0001e1a0 == 0)) {\n    uVar6 = 0;\n  }\n  else {\n    ppuVar4 = __ctype_b_loc();\n    uVar8 = 0;\n    puVar2 = *ppuVar4;\n    uVar5 = (uint)*param_2;\n    uVar7 = puVar2[uVar5];\n    uVar6 = 0;\n    while( true ) {\n      while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        uVar5 = (uint)param_2[uVar6];\n        uVar7 = puVar2[uVar5];\n      }\n      if (uVar9 <= uVar6) break;\n      bVar1 = param_2[uVar6];\n      uVar5 = (uint)bVar1;\n      while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        bVar1 = param_2[uVar6];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }\n      uVar8 = uVar8 + 1;\n      if ((uVar3 <= uVar8) || (uVar9 <= uVar6)) break;\n    }\nLAB_000122f0:\n    uVar9 = uVar9 - uVar6;\n  }\n  if (DAT_0001e19c <= uVar9) {\n    uVar9 = DAT_0001e19c;\n  }\n  return param_2 + uVar6 + uVar9;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "ushort *puVar2;" (type_identifier "ushort") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "ushort **ppuVar4;" (type_identifier "ushort") (pointer_declarator "**ppuVar4" (* "*") (pointer_declarator "*ppuVar4" (* "*") (identifier "ppuVar4"))) (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "ushort uVar7;" (type_identifier "ushort") (identifier "uVar7") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (expression_statement "uVar3 = DAT_0001e1a0;" (assignment_expression "uVar3 = DAT_0001e1a0" (identifier "uVar3") (= "=") (identifier "DAT_0001e1a0")) (; ";")) (expression_statement "uVar9 = param_1 - 1;" (assignment_expression "uVar9 = param_1 - 1" (identifier "uVar9") (= "=") (binary_expression "param_1 - 1" (identifier "param_1") (- "-") (number_literal "1"))) (; ";")) (if_statement "if ((param_1 == 1) || (DAT_0001e1a0 == 0)) {\n    uVar6 = 0;\n  }\n  else {\n    ppuVar4 = __ctype_b_loc();\n    uVar8 = 0;\n    puVar2 = *ppuVar4;\n    uVar5 = (uint)*param_2;\n    uVar7 = puVar2[uVar5];\n    uVar6 = 0;\n    while( true ) {\n      while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        uVar5 = (uint)param_2[uVar6];\n        uVar7 = puVar2[uVar5];\n      }\n      if (uVar9 <= uVar6) break;\n      bVar1 = param_2[uVar6];\n      uVar5 = (uint)bVar1;\n      while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        bVar1 = param_2[uVar6];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }\n      uVar8 = uVar8 + 1;\n      if ((uVar3 <= uVar8) || (uVar9 <= uVar6)) break;\n    }\nLAB_000122f0:\n    uVar9 = uVar9 - uVar6;\n  }" (if "if") (parenthesized_expression "((param_1 == 1) || (DAT_0001e1a0 == 0))" (( "(") (binary_expression "(param_1 == 1) || (DAT_0001e1a0 == 0)" (parenthesized_expression "(param_1 == 1)" (( "(") (binary_expression "param_1 == 1" (identifier "param_1") (== "==") (number_literal "1")) () ")")) (|| "||") (parenthesized_expression "(DAT_0001e1a0 == 0)" (( "(") (binary_expression "DAT_0001e1a0 == 0" (identifier "DAT_0001e1a0") (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    uVar6 = 0;\n  }" ({ "{") (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    ppuVar4 = __ctype_b_loc();\n    uVar8 = 0;\n    puVar2 = *ppuVar4;\n    uVar5 = (uint)*param_2;\n    uVar7 = puVar2[uVar5];\n    uVar6 = 0;\n    while( true ) {\n      while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        uVar5 = (uint)param_2[uVar6];\n        uVar7 = puVar2[uVar5];\n      }\n      if (uVar9 <= uVar6) break;\n      bVar1 = param_2[uVar6];\n      uVar5 = (uint)bVar1;\n      while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        bVar1 = param_2[uVar6];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }\n      uVar8 = uVar8 + 1;\n      if ((uVar3 <= uVar8) || (uVar9 <= uVar6)) break;\n    }\nLAB_000122f0:\n    uVar9 = uVar9 - uVar6;\n  }" (else "else") (compound_statement "{\n    ppuVar4 = __ctype_b_loc();\n    uVar8 = 0;\n    puVar2 = *ppuVar4;\n    uVar5 = (uint)*param_2;\n    uVar7 = puVar2[uVar5];\n    uVar6 = 0;\n    while( true ) {\n      while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        uVar5 = (uint)param_2[uVar6];\n        uVar7 = puVar2[uVar5];\n      }\n      if (uVar9 <= uVar6) break;\n      bVar1 = param_2[uVar6];\n      uVar5 = (uint)bVar1;\n      while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        bVar1 = param_2[uVar6];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }\n      uVar8 = uVar8 + 1;\n      if ((uVar3 <= uVar8) || (uVar9 <= uVar6)) break;\n    }\nLAB_000122f0:\n    uVar9 = uVar9 - uVar6;\n  }" ({ "{") (expression_statement "ppuVar4 = __ctype_b_loc();" (assignment_expression "ppuVar4 = __ctype_b_loc()" (identifier "ppuVar4") (= "=") (call_expression "__ctype_b_loc()" (identifier "__ctype_b_loc") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" (identifier "uVar8") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2 = *ppuVar4;" (assignment_expression "puVar2 = *ppuVar4" (identifier "puVar2") (= "=") (pointer_expression "*ppuVar4" (* "*") (identifier "ppuVar4"))) (; ";")) (expression_statement "uVar5 = (uint)*param_2;" (assignment_expression "uVar5 = (uint)*param_2" (identifier "uVar5") (= "=") (binary_expression "(uint)*param_2" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "param_2"))) (; ";")) (expression_statement "uVar7 = puVar2[uVar5];" (assignment_expression "uVar7 = puVar2[uVar5]" (identifier "uVar7") (= "=") (subscript_expression "puVar2[uVar5]" (identifier "puVar2") ([ "[") (identifier "uVar5") (] "]"))) (; ";")) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (while_statement "while( true ) {\n      while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        uVar5 = (uint)param_2[uVar6];\n        uVar7 = puVar2[uVar5];\n      }\n      if (uVar9 <= uVar6) break;\n      bVar1 = param_2[uVar6];\n      uVar5 = (uint)bVar1;\n      while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        bVar1 = param_2[uVar6];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }\n      uVar8 = uVar8 + 1;\n      if ((uVar3 <= uVar8) || (uVar9 <= uVar6)) break;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        uVar5 = (uint)param_2[uVar6];\n        uVar7 = puVar2[uVar5];\n      }\n      if (uVar9 <= uVar6) break;\n      bVar1 = param_2[uVar6];\n      uVar5 = (uint)bVar1;\n      while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        bVar1 = param_2[uVar6];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }\n      uVar8 = uVar8 + 1;\n      if ((uVar3 <= uVar8) || (uVar9 <= uVar6)) break;\n    }" ({ "{") (while_statement "while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        uVar5 = (uint)param_2[uVar6];\n        uVar7 = puVar2[uVar5];\n      }" (while "while") (parenthesized_expression "(((char)uVar5 == '\n' || ((uVar7 & 1) != 0)))" (( "(") (parenthesized_expression "((char)uVar5 == '\n' || ((uVar7 & 1) != 0))" (( "(") (binary_expression "(char)uVar5 == '\n' || ((uVar7 & 1) != 0)" (binary_expression "(char)uVar5 == '\n'" (cast_expression "(char)uVar5" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar5")) (== "==") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'"))) (|| "||") (parenthesized_expression "((uVar7 & 1) != 0)" (( "(") (binary_expression "(uVar7 & 1) != 0" (parenthesized_expression "(uVar7 & 1)" (( "(") (binary_expression "uVar7 & 1" (identifier "uVar7") (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) () ")")) (compound_statement "{\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        uVar5 = (uint)param_2[uVar6];\n        uVar7 = puVar2[uVar5];\n      }" ({ "{") (expression_statement "uVar6 = uVar6 + 1;" (assignment_expression "uVar6 = uVar6 + 1" (identifier "uVar6") (= "=") (binary_expression "uVar6 + 1" (identifier "uVar6") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (uVar9 <= uVar6) goto LAB_000122f0;" (if "if") (parenthesized_expression "(uVar9 <= uVar6)" (( "(") (binary_expression "uVar9 <= uVar6" (identifier "uVar9") (<= "<=") (identifier "uVar6")) () ")")) (goto_statement "goto LAB_000122f0;" (goto "goto") (statement_identifier "LAB_000122f0") (; ";"))) (expression_statement "uVar5 = (uint)param_2[uVar6];" (assignment_expression "uVar5 = (uint)param_2[uVar6]" (identifier "uVar5") (= "=") (cast_expression "(uint)param_2[uVar6]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_2[uVar6]" (identifier "param_2") ([ "[") (identifier "uVar6") (] "]")))) (; ";")) (expression_statement "uVar7 = puVar2[uVar5];" (assignment_expression "uVar7 = puVar2[uVar5]" (identifier "uVar7") (= "=") (subscript_expression "puVar2[uVar5]" (identifier "puVar2") ([ "[") (identifier "uVar5") (] "]"))) (; ";")) (} "}"))) (if_statement "if (uVar9 <= uVar6) break;" (if "if") (parenthesized_expression "(uVar9 <= uVar6)" (( "(") (binary_expression "uVar9 <= uVar6" (identifier "uVar9") (<= "<=") (identifier "uVar6")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "bVar1 = param_2[uVar6];" (assignment_expression "bVar1 = param_2[uVar6]" (identifier "bVar1") (= "=") (subscript_expression "param_2[uVar6]" (identifier "param_2") ([ "[") (identifier "uVar6") (] "]"))) (; ";")) (expression_statement "uVar5 = (uint)bVar1;" (assignment_expression "uVar5 = (uint)bVar1" (identifier "uVar5") (= "=") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1"))) (; ";")) (while_statement "while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        bVar1 = param_2[uVar6];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }" (while "while") (parenthesized_expression "((bVar1 != 10 && ((uVar7 & 1) == 0)))" (( "(") (parenthesized_expression "(bVar1 != 10 && ((uVar7 & 1) == 0))" (( "(") (binary_expression "bVar1 != 10 && ((uVar7 & 1) == 0)" (binary_expression "bVar1 != 10" (identifier "bVar1") (!= "!=") (number_literal "10")) (&& "&&") (parenthesized_expression "((uVar7 & 1) == 0)" (( "(") (binary_expression "(uVar7 & 1) == 0" (parenthesized_expression "(uVar7 & 1)" (( "(") (binary_expression "uVar7 & 1" (identifier "uVar7") (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) () ")")) (compound_statement "{\n        uVar6 = uVar6 + 1;\n        if (uVar9 <= uVar6) goto LAB_000122f0;\n        bVar1 = param_2[uVar6];\n        uVar5 = (uint)bVar1;\n        uVar7 = puVar2[uVar5];\n      }" ({ "{") (expression_statement "uVar6 = uVar6 + 1;" (assignment_expression "uVar6 = uVar6 + 1" (identifier "uVar6") (= "=") (binary_expression "uVar6 + 1" (identifier "uVar6") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (uVar9 <= uVar6) goto LAB_000122f0;" (if "if") (parenthesized_expression "(uVar9 <= uVar6)" (( "(") (binary_expression "uVar9 <= uVar6" (identifier "uVar9") (<= "<=") (identifier "uVar6")) () ")")) (goto_statement "goto LAB_000122f0;" (goto "goto") (statement_identifier "LAB_000122f0") (; ";"))) (expression_statement "bVar1 = param_2[uVar6];" (assignment_expression "bVar1 = param_2[uVar6]" (identifier "bVar1") (= "=") (subscript_expression "param_2[uVar6]" (identifier "param_2") ([ "[") (identifier "uVar6") (] "]"))) (; ";")) (expression_statement "uVar5 = (uint)bVar1;" (assignment_expression "uVar5 = (uint)bVar1" (identifier "uVar5") (= "=") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1"))) (; ";")) (expression_statement "uVar7 = puVar2[uVar5];" (assignment_expression "uVar7 = puVar2[uVar5]" (identifier "uVar7") (= "=") (subscript_expression "puVar2[uVar5]" (identifier "puVar2") ([ "[") (identifier "uVar5") (] "]"))) (; ";")) (} "}"))) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" (identifier "uVar8") (= "=") (binary_expression "uVar8 + 1" (identifier "uVar8") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((uVar3 <= uVar8) || (uVar9 <= uVar6)) break;" (if "if") (parenthesized_expression "((uVar3 <= uVar8) || (uVar9 <= uVar6))" (( "(") (binary_expression "(uVar3 <= uVar8) || (uVar9 <= uVar6)" (parenthesized_expression "(uVar3 <= uVar8)" (( "(") (binary_expression "uVar3 <= uVar8" (identifier "uVar3") (<= "<=") (identifier "uVar8")) () ")")) (|| "||") (parenthesized_expression "(uVar9 <= uVar6)" (( "(") (binary_expression "uVar9 <= uVar6" (identifier "uVar9") (<= "<=") (identifier "uVar6")) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (} "}"))) (labeled_statement "LAB_000122f0:\n    uVar9 = uVar9 - uVar6;" (statement_identifier "LAB_000122f0") (: ":") (expression_statement "uVar9 = uVar9 - uVar6;" (assignment_expression "uVar9 = uVar9 - uVar6" (identifier "uVar9") (= "=") (binary_expression "uVar9 - uVar6" (identifier "uVar9") (- "-") (identifier "uVar6"))) (; ";"))) (} "}")))) (if_statement "if (DAT_0001e19c <= uVar9) {\n    uVar9 = DAT_0001e19c;\n  }" (if "if") (parenthesized_expression "(DAT_0001e19c <= uVar9)" (( "(") (binary_expression "DAT_0001e19c <= uVar9" (identifier "DAT_0001e19c") (<= "<=") (identifier "uVar9")) () ")")) (compound_statement "{\n    uVar9 = DAT_0001e19c;\n  }" ({ "{") (expression_statement "uVar9 = DAT_0001e19c;" (assignment_expression "uVar9 = DAT_0001e19c" (identifier "uVar9") (= "=") (identifier "DAT_0001e19c")) (; ";")) (} "}"))) (return_statement "return param_2 + uVar6 + uVar9;" (return "return") (binary_expression "param_2 + uVar6 + uVar9" (binary_expression "param_2 + uVar6" (identifier "param_2") (+ "+") (identifier "uVar6")) (+ "+") (identifier "uVar9")) (; ";")) (} "}"))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: char * find_field(linebuffer * line, linebuffer * line) */

char * __regparm3 function_1(type_1 *var_1,type_1 *line_1)

{
  type_2 var_7;
  type_3 *puVar2;
  size_t var_9;
  type_3 **ppuVar4;
  type_4 uVar5;
  type_5 *var_5;
  type_3 var_4;
  type_4 var_8;
  type_5 *var_6;
  
  var_9 = var_2;
  var_6 = (type_5 *)((int)&var_1[-1].buffer + 3);
  if ((var_1 == (type_1 *)0x1) || (var_2 == 0)) {
    var_5 = (type_5 *)0x0;
  }
  else {
    ppuVar4 = var_3();
    var_8 = 0;
    puVar2 = *ppuVar4;
    uVar5 = (type_4)(type_2)line_1->size;
    var_4 = puVar2[uVar5];
    var_5 = (type_5 *)0x0;
    while( true ) {
      while (((char)uVar5 == '\n' || ((var_4 & 1) != 0))) {
        var_5 = var_5 + 1;
        if (var_6 <= var_5) goto LAB_000122f0;
        uVar5 = (type_4)(type_2)var_5[(int)&line_1->size];
        var_4 = puVar2[uVar5];
      }
      if (var_6 <= var_5) break;
      var_7 = var_5[(int)&line_1->size];
      uVar5 = (type_4)var_7;
      while ((var_7 != 10 && ((var_4 & 1) == 0))) {
        var_5 = var_5 + 1;
        if (var_6 <= var_5) goto LAB_000122f0;
        var_7 = var_5[(int)&line_1->size];
        uVar5 = (type_4)var_7;
        var_4 = puVar2[uVar5];
      }
      var_8 = var_8 + 1;
      if ((var_9 <= var_8) || (var_6 <= var_5)) break;
    }
LAB_000122f0:
    var_6 = var_6 + -(int)var_5;
  }
  if (var_10 <= var_6) {
    var_6 = (type_5 *)var_10;
  }
  return var_5 + (int)var_6 + (int)line_1;
}


(translation_unit (ERROR (binary_expression left: (identifier) (ERROR (identifier)) right: (call_expression function: (identifier) arguments: (argument_list (ERROR (identifier)) (identifier) (binary_expression left: (identifier) right: (identifier)))))) (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (pointer_declarator declarator: (identifier)))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (while_statement condition: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (char_literal (escape_sequence))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (while_statement condition: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) consequence: (break_statement)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (return_statement (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)))))

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

byte * __regparm3 MASKED(int param_1,byte *param_2)

{
  byte bVar1;
  ushort *puVar2;
  uint uVar3;
  ushort **ppuVar4;
  uint uVar5;
  uint uVar6;
  ushort uVar7;
  uint uVar8;
  uint uVar9;
  
  uVar3 = DAT_0001e1a0;
  uVar9 = param_1 - 1;
  if ((param_1 == 1) || (DAT_0001e1a0 == 0)) {
    uVar6 = 0;
  }
  else {
    ppuVar4 = __ctype_b_loc();
    uVar8 = 0;
    puVar2 = *ppuVar4;
    uVar5 = (uint)*param_2;
    uVar7 = puVar2[uVar5];
    uVar6 = 0;
    while( true ) {
      while (((char)uVar5 == '\n' || ((uVar7 & 1) != 0))) {
        uVar6 = uVar6 + 1;
        if (uVar9 <= uVar6) goto LAB_000122f0;
        uVar5 = (uint)param_2[uVar6];
        uVar7 = puVar2[uVar5];
      }
      if (uVar9 <= uVar6) break;
      bVar1 = param_2[uVar6];
      uVar5 = (uint)bVar1;
      while ((bVar1 != 10 && ((uVar7 & 1) == 0))) {
        uVar6 = uVar6 + 1;
        if (uVar9 <= uVar6) goto LAB_000122f0;
        bVar1 = param_2[uVar6];
        uVar5 = (uint)bVar1;
        uVar7 = puVar2[uVar5];
      }
      uVar8 = uVar8 + 1;
      if ((uVar3 <= uVar8) || (uVar9 <= uVar6)) break;
    }
LAB_000122f0:
    uVar9 = uVar9 - uVar6;
  }
  if (DAT_0001e19c <= uVar9) {
    uVar9 = DAT_0001e19c;
  }
  return param_2 + uVar6 + uVar9;
}

