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

size_t proper_x(filestruct *line,size_t *leftedge,_Bool forward,size_t column,_Bool *shifted)

{
  size_t sVar1;
  size_t sVar2;
  uint uVar3;
  char *text;
  size_t maxlen;
  
  sVar1 = actual_x(line->data,column);
  uVar3 = flags[1] & 2;
  if (uVar3 == 0) {
    return sVar1;
  }
  text = line->data;
  maxlen = sVar1;
  if (text[sVar1] != '\t') goto LAB_00024435;
  if (forward) {
    sVar2 = strnlenpt(text,sVar1);
    if (sVar2 < *leftedge) {
      maxlen = sVar1 + 1;
      uVar3 = flags[1] & 2;
      if (shifted != (_Bool *)0x0) goto LAB_00024511;
    }
    else {
      uVar3 = flags[1] & 2;
    }
  }
  else {
    if (((column / (uint)tabsize != (*leftedge - 1) / (uint)tabsize) ||
        (((*leftedge - 1) + editwincols) / (uint)tabsize <= column / (uint)tabsize)) ||
       (maxlen = sVar1 + 1, shifted == (_Bool *)0x0)) goto LAB_00024435;
LAB_00024511:
    *shifted = true;
    maxlen = sVar1 + 1;
  }
  if (uVar3 == 0) {
    return maxlen;
  }
  text = line->data;
LAB_00024435:
  sVar1 = strnlenpt(text,maxlen);
  sVar1 = leftedge_for(sVar1,line);
  *leftedge = sVar1;
  return maxlen;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

int FUN_000243f0(int *param_1,uint *param_2,char param_3,uint param_4,undefined1 *param_5)

{
  int iVar1;
  undefined4 uVar2;
  uint uVar3;
  int iVar4;
  int iVar5;
  
  iVar1 = FUN_00035870(*param_1,param_4);
  uVar3 = _DAT_0006b668 & 2;
  if (uVar3 == 0) {
    return iVar1;
  }
  iVar4 = *param_1;
  iVar5 = iVar1;
  if (*(char *)(iVar4 + iVar1) != '\t') goto LAB_00024435;
  if (param_3 == '\0') {
    if (((param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068) ||
        (((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068)) ||
       (iVar5 = iVar1 + 1, param_5 == (undefined1 *)0x0)) goto LAB_00024435;
LAB_00024511:
    *param_5 = 1;
    iVar5 = iVar1 + 1;
  }
  else {
    uVar3 = FUN_00035900(iVar4,iVar1);
    if (uVar3 < *param_2) {
      iVar5 = iVar1 + 1;
      uVar3 = _DAT_0006b668 & 2;
      if (param_5 != (undefined1 *)0x0) goto LAB_00024511;
    }
    else {
      uVar3 = _DAT_0006b668 & 2;
    }
  }
  if (uVar3 == 0) {
    return iVar5;
  }
  iVar4 = *param_1;
LAB_00024435:
  uVar2 = FUN_00035900(iVar4,iVar5);
  uVar3 = FUN_0003a990(uVar2,param_1);
  *param_2 = uVar3;
  return iVar5;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014e20
ADD EBX,0x467d7
SUB ESP,0x24
MOV ESI,dword ptr [ESP + 0x40]
PUSH dword ptr [ESP + 0x44]
MOV EAX,dword ptr [ESP + 0x3c]
PUSH dword ptr [EAX]
CALL 0x00035870
LEA EDX,[EBX + 0xa94]
ADD ESP,0x10
MOV EDI,EAX
MOV ECX,dword ptr [EDX + 0x4]
AND ECX,0x2
JZ 0x00024454
MOV EAX,dword ptr [ESP + 0x30]
MOV EBP,dword ptr [EAX]
CMP byte ptr [EBP + EDI*0x1],0x9
JZ 0x00024460
SUB ESP,0x8
PUSH EDI
PUSH EBP
CALL 0x00035900
POP EDX
POP ECX
PUSH dword ptr [ESP + 0x38]
PUSH EAX
CALL 0x0003a990
MOV ESI,dword ptr [ESP + 0x44]
ADD ESP,0x10
MOV dword ptr [ESI],EAX
ADD ESP,0x1c
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,ESI
TEST AL,AL
JNZ 0x000244c0
LEA EAX,[EBX + 0x498]
XOR EDX,EDX
MOV ESI,dword ptr [EAX]
MOV EAX,dword ptr [ESP + 0x3c]
DIV ESI
MOV EDX,dword ptr [ESP + 0x34]
MOV EDX,dword ptr [EDX]
MOV dword ptr [ESP + 0xc],EDX
MOV dword ptr [ESP + 0x8],EAX
LEA EAX,[EDX + -0x1]
XOR EDX,EDX
DIV ESI
CMP dword ptr [ESP + 0x8],EAX
JNZ 0x00024435
LEA EAX,[EBX + 0x49c]
MOV EDX,dword ptr [ESP + 0xc]
MOV EAX,dword ptr [EAX]
LEA EAX,[EDX + EAX*0x1 + -0x1]
XOR EDX,EDX
DIV ESI
CMP dword ptr [ESP + 0x8],EAX
JNC 0x00024435
MOV EAX,dword ptr [ESP + 0x40]
ADD EDI,0x1
TEST EAX,EAX
JNZ 0x00024511
JMP 0x00024435
MOV dword ptr [ESP + 0x8],EDX
SUB ESP,0x8
PUSH EDI
PUSH EBP
CALL 0x00035900
ADD ESP,0x10
MOV ESI,dword ptr [ESP + 0x34]
MOV EDX,dword ptr [ESP + 0x8]
CMP EAX,dword ptr [ESI]
JC 0x00024500
MOV ECX,dword ptr [EDX + 0x4]
AND ECX,0x2
TEST ECX,ECX
JZ 0x00024454
MOV EAX,dword ptr [ESP + 0x30]
MOV EBP,dword ptr [EAX]
JMP 0x00024435
MOV ECX,dword ptr [EDX + 0x4]
MOV ESI,dword ptr [ESP + 0x40]
ADD EDI,0x1
AND ECX,0x2
TEST ESI,ESI
JZ 0x000244e3
MOV EAX,dword ptr [ESP + 0x40]
MOV byte ptr [EAX],0x1
JMP 0x000244e3
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */\n\nint FUN_000243f0(int *param_1,uint *param_2,char param_3,uint param_4,undefined1 *param_5)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  \n  iVar1 = FUN_00035870(*param_1,param_4);\n  uVar3 = _DAT_0006b668 & 2;\n  if (uVar3 == 0) {\n    return iVar1;\n  }\n  iVar4 = *param_1;\n  iVar5 = iVar1;\n  if (*(char *)(iVar4 + iVar1) != '\t') goto LAB_00024435;\n  if (param_3 == '\0') {\n    if (((param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068) ||\n        (((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068)) ||\n       (iVar5 = iVar1 + 1, param_5 == (undefined1 *)0x0)) goto LAB_00024435;\nLAB_00024511:\n    *param_5 = 1;\n    iVar5 = iVar1 + 1;\n  }\n  else {\n    uVar3 = FUN_00035900(iVar4,iVar1);\n    if (uVar3 < *param_2) {\n      iVar5 = iVar1 + 1;\n      uVar3 = _DAT_0006b668 & 2;\n      if (param_5 != (undefined1 *)0x0) goto LAB_00024511;\n    }\n    else {\n      uVar3 = _DAT_0006b668 & 2;\n    }\n  }\n  if (uVar3 == 0) {\n    return iVar5;\n  }\n  iVar4 = *param_1;\nLAB_00024435:\n  uVar2 = FUN_00035900(iVar4,iVar5);\n  uVar3 = FUN_0003a990(uVar2,param_1);\n  *param_2 = uVar3;\n  return iVar5;\n}\n\n" comment comment (function_definition "int FUN_000243f0(int *param_1,uint *param_2,char param_3,uint param_4,undefined1 *param_5)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  \n  iVar1 = FUN_00035870(*param_1,param_4);\n  uVar3 = _DAT_0006b668 & 2;\n  if (uVar3 == 0) {\n    return iVar1;\n  }\n  iVar4 = *param_1;\n  iVar5 = iVar1;\n  if (*(char *)(iVar4 + iVar1) != '\t') goto LAB_00024435;\n  if (param_3 == '\0') {\n    if (((param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068) ||\n        (((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068)) ||\n       (iVar5 = iVar1 + 1, param_5 == (undefined1 *)0x0)) goto LAB_00024435;\nLAB_00024511:\n    *param_5 = 1;\n    iVar5 = iVar1 + 1;\n  }\n  else {\n    uVar3 = FUN_00035900(iVar4,iVar1);\n    if (uVar3 < *param_2) {\n      iVar5 = iVar1 + 1;\n      uVar3 = _DAT_0006b668 & 2;\n      if (param_5 != (undefined1 *)0x0) goto LAB_00024511;\n    }\n    else {\n      uVar3 = _DAT_0006b668 & 2;\n    }\n  }\n  if (uVar3 == 0) {\n    return iVar5;\n  }\n  iVar4 = *param_1;\nLAB_00024435:\n  uVar2 = FUN_00035900(iVar4,iVar5);\n  uVar3 = FUN_0003a990(uVar2,param_1);\n  *param_2 = uVar3;\n  return iVar5;\n}" primitive_type (function_declarator "FUN_000243f0(int *param_1,uint *param_2,char param_3,uint param_4,undefined1 *param_5)" identifier (parameter_list "(int *param_1,uint *param_2,char param_3,uint param_4,undefined1 *param_5)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char param_3" primitive_type identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "undefined1 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  \n  iVar1 = FUN_00035870(*param_1,param_4);\n  uVar3 = _DAT_0006b668 & 2;\n  if (uVar3 == 0) {\n    return iVar1;\n  }\n  iVar4 = *param_1;\n  iVar5 = iVar1;\n  if (*(char *)(iVar4 + iVar1) != '\t') goto LAB_00024435;\n  if (param_3 == '\0') {\n    if (((param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068) ||\n        (((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068)) ||\n       (iVar5 = iVar1 + 1, param_5 == (undefined1 *)0x0)) goto LAB_00024435;\nLAB_00024511:\n    *param_5 = 1;\n    iVar5 = iVar1 + 1;\n  }\n  else {\n    uVar3 = FUN_00035900(iVar4,iVar1);\n    if (uVar3 < *param_2) {\n      iVar5 = iVar1 + 1;\n      uVar3 = _DAT_0006b668 & 2;\n      if (param_5 != (undefined1 *)0x0) goto LAB_00024511;\n    }\n    else {\n      uVar3 = _DAT_0006b668 & 2;\n    }\n  }\n  if (uVar3 == 0) {\n    return iVar5;\n  }\n  iVar4 = *param_1;\nLAB_00024435:\n  uVar2 = FUN_00035900(iVar4,iVar5);\n  uVar3 = FUN_0003a990(uVar2,param_1);\n  *param_2 = uVar3;\n  return iVar5;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00035870(*param_1,param_4);" (assignment_expression "iVar1 = FUN_00035870(*param_1,param_4)" identifier = (call_expression "FUN_00035870(*param_1,param_4)" identifier (argument_list "(*param_1,param_4)" ( (pointer_expression "*param_1" * identifier) , identifier )))) ;) (expression_statement "uVar3 = _DAT_0006b668 & 2;" (assignment_expression "uVar3 = _DAT_0006b668 & 2" identifier = (binary_expression "_DAT_0006b668 & 2" identifier & number_literal)) ;) (if_statement "if (uVar3 == 0) {\n    return iVar1;\n  }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar4 = *param_1;" (assignment_expression "iVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar5 = iVar1;" (assignment_expression "iVar5 = iVar1" identifier = identifier) ;) (if_statement "if (*(char *)(iVar4 + iVar1) != '\t') goto LAB_00024435;" if (parenthesized_expression "(*(char *)(iVar4 + iVar1) != '\t')" ( (binary_expression "*(char *)(iVar4 + iVar1) != '\t'" (pointer_expression "*(char *)(iVar4 + iVar1)" * (cast_expression "(char *)(iVar4 + iVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar1)" ( (binary_expression "iVar4 + iVar1" identifier + identifier) )))) != (char_literal "'\t'" ' escape_sequence ')) )) (goto_statement "goto LAB_00024435;" goto statement_identifier ;)) (if_statement "if (param_3 == '\0') {\n    if (((param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068) ||\n        (((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068)) ||\n       (iVar5 = iVar1 + 1, param_5 == (undefined1 *)0x0)) goto LAB_00024435;\nLAB_00024511:\n    *param_5 = 1;\n    iVar5 = iVar1 + 1;\n  }\n  else {\n    uVar3 = FUN_00035900(iVar4,iVar1);\n    if (uVar3 < *param_2) {\n      iVar5 = iVar1 + 1;\n      uVar3 = _DAT_0006b668 & 2;\n      if (param_5 != (undefined1 *)0x0) goto LAB_00024511;\n    }\n    else {\n      uVar3 = _DAT_0006b668 & 2;\n    }\n  }" if (parenthesized_expression "(param_3 == '\0')" ( (binary_expression "param_3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (((param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068) ||\n        (((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068)) ||\n       (iVar5 = iVar1 + 1, param_5 == (undefined1 *)0x0)) goto LAB_00024435;\nLAB_00024511:\n    *param_5 = 1;\n    iVar5 = iVar1 + 1;\n  }" { (if_statement "if (((param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068) ||\n        (((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068)) ||\n       (iVar5 = iVar1 + 1, param_5 == (undefined1 *)0x0)) goto LAB_00024435;" if (parenthesized_expression "(((param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068) ||\n        (((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068)) ||\n       (iVar5 = iVar1 + 1, param_5 == (undefined1 *)0x0))" ( (binary_expression "((param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068) ||\n        (((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068)) ||\n       (iVar5 = iVar1 + 1, param_5 == (undefined1 *)0x0)" (parenthesized_expression "((param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068) ||\n        (((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068))" ( (binary_expression "(param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068) ||\n        (((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068)" (parenthesized_expression "(param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068)" ( (binary_expression "param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068" (binary_expression "param_4 / DAT_0006b068" identifier / identifier) != (binary_expression "(*param_2 - 1) / DAT_0006b068" (parenthesized_expression "(*param_2 - 1)" ( (binary_expression "*param_2 - 1" (pointer_expression "*param_2" * identifier) - number_literal) )) / identifier)) )) || (parenthesized_expression "(((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068)" ( (binary_expression "((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068" (binary_expression "((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068" (parenthesized_expression "((*param_2 - 1) + DAT_0006b06c)" ( (binary_expression "(*param_2 - 1) + DAT_0006b06c" (parenthesized_expression "(*param_2 - 1)" ( (binary_expression "*param_2 - 1" (pointer_expression "*param_2" * identifier) - number_literal) )) + identifier) )) / identifier) <= (binary_expression "param_4 / DAT_0006b068" identifier / identifier)) ))) )) || (parenthesized_expression "(iVar5 = iVar1 + 1, param_5 == (undefined1 *)0x0)" ( (comma_expression "iVar5 = iVar1 + 1, param_5 == (undefined1 *)0x0" (assignment_expression "iVar5 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) , (binary_expression "param_5 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (goto_statement "goto LAB_00024435;" goto statement_identifier ;)) (labeled_statement "LAB_00024511:\n    *param_5 = 1;" statement_identifier : (expression_statement "*param_5 = 1;" (assignment_expression "*param_5 = 1" (pointer_expression "*param_5" * identifier) = number_literal) ;)) (expression_statement "iVar5 = iVar1 + 1;" (assignment_expression "iVar5 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n    uVar3 = FUN_00035900(iVar4,iVar1);\n    if (uVar3 < *param_2) {\n      iVar5 = iVar1 + 1;\n      uVar3 = _DAT_0006b668 & 2;\n      if (param_5 != (undefined1 *)0x0) goto LAB_00024511;\n    }\n    else {\n      uVar3 = _DAT_0006b668 & 2;\n    }\n  }" else (compound_statement "{\n    uVar3 = FUN_00035900(iVar4,iVar1);\n    if (uVar3 < *param_2) {\n      iVar5 = iVar1 + 1;\n      uVar3 = _DAT_0006b668 & 2;\n      if (param_5 != (undefined1 *)0x0) goto LAB_00024511;\n    }\n    else {\n      uVar3 = _DAT_0006b668 & 2;\n    }\n  }" { (expression_statement "uVar3 = FUN_00035900(iVar4,iVar1);" (assignment_expression "uVar3 = FUN_00035900(iVar4,iVar1)" identifier = (call_expression "FUN_00035900(iVar4,iVar1)" identifier (argument_list "(iVar4,iVar1)" ( identifier , identifier )))) ;) (if_statement "if (uVar3 < *param_2) {\n      iVar5 = iVar1 + 1;\n      uVar3 = _DAT_0006b668 & 2;\n      if (param_5 != (undefined1 *)0x0) goto LAB_00024511;\n    }\n    else {\n      uVar3 = _DAT_0006b668 & 2;\n    }" if (parenthesized_expression "(uVar3 < *param_2)" ( (binary_expression "uVar3 < *param_2" identifier < (pointer_expression "*param_2" * identifier)) )) (compound_statement "{\n      iVar5 = iVar1 + 1;\n      uVar3 = _DAT_0006b668 & 2;\n      if (param_5 != (undefined1 *)0x0) goto LAB_00024511;\n    }" { (expression_statement "iVar5 = iVar1 + 1;" (assignment_expression "iVar5 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "uVar3 = _DAT_0006b668 & 2;" (assignment_expression "uVar3 = _DAT_0006b668 & 2" identifier = (binary_expression "_DAT_0006b668 & 2" identifier & number_literal)) ;) (if_statement "if (param_5 != (undefined1 *)0x0) goto LAB_00024511;" if (parenthesized_expression "(param_5 != (undefined1 *)0x0)" ( (binary_expression "param_5 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00024511;" goto statement_identifier ;)) }) (else_clause "else {\n      uVar3 = _DAT_0006b668 & 2;\n    }" else (compound_statement "{\n      uVar3 = _DAT_0006b668 & 2;\n    }" { (expression_statement "uVar3 = _DAT_0006b668 & 2;" (assignment_expression "uVar3 = _DAT_0006b668 & 2" identifier = (binary_expression "_DAT_0006b668 & 2" identifier & number_literal)) ;) }))) }))) (if_statement "if (uVar3 == 0) {\n    return iVar5;\n  }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    return iVar5;\n  }" { (return_statement "return iVar5;" return identifier ;) })) (expression_statement "iVar4 = *param_1;" (assignment_expression "iVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (labeled_statement "LAB_00024435:\n  uVar2 = FUN_00035900(iVar4,iVar5);" statement_identifier : (expression_statement "uVar2 = FUN_00035900(iVar4,iVar5);" (assignment_expression "uVar2 = FUN_00035900(iVar4,iVar5)" identifier = (call_expression "FUN_00035900(iVar4,iVar5)" identifier (argument_list "(iVar4,iVar5)" ( identifier , identifier )))) ;)) (expression_statement "uVar3 = FUN_0003a990(uVar2,param_1);" (assignment_expression "uVar3 = FUN_0003a990(uVar2,param_1)" identifier = (call_expression "FUN_0003a990(uVar2,param_1)" identifier (argument_list "(uVar2,param_1)" ( identifier , identifier )))) ;) (expression_statement "*param_2 = uVar3;" (assignment_expression "*param_2 = uVar3" (pointer_expression "*param_2" * identifier) = identifier) ;) (return_statement "return iVar5;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nsize_t proper_x(filestruct *line,size_t *leftedge,_Bool forward,size_t column,_Bool *shifted)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  uint uVar3;\n  char *text;\n  size_t maxlen;\n  \n  sVar1 = actual_x(line->data,column);\n  uVar3 = flags[1] & 2;\n  if (uVar3 == 0) {\n    return sVar1;\n  }\n  text = line->data;\n  maxlen = sVar1;\n  if (text[sVar1] != '\t') goto LAB_00024435;\n  if (forward) {\n    sVar2 = strnlenpt(text,sVar1);\n    if (sVar2 < *leftedge) {\n      maxlen = sVar1 + 1;\n      uVar3 = flags[1] & 2;\n      if (shifted != (_Bool *)0x0) goto LAB_00024511;\n    }\n    else {\n      uVar3 = flags[1] & 2;\n    }\n  }\n  else {\n    if (((column / (uint)tabsize != (*leftedge - 1) / (uint)tabsize) ||\n        (((*leftedge - 1) + editwincols) / (uint)tabsize <= column / (uint)tabsize)) ||\n       (maxlen = sVar1 + 1, shifted == (_Bool *)0x0)) goto LAB_00024435;\nLAB_00024511:\n    *shifted = true;\n    maxlen = sVar1 + 1;\n  }\n  if (uVar3 == 0) {\n    return maxlen;\n  }\n  text = line->data;\nLAB_00024435:\n  sVar1 = strnlenpt(text,maxlen);\n  sVar1 = leftedge_for(sVar1,line);\n  *leftedge = sVar1;\n  return maxlen;\n}\n\n" comment comment (function_definition "size_t proper_x(filestruct *line,size_t *leftedge,_Bool forward,size_t column,_Bool *shifted)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  uint uVar3;\n  char *text;\n  size_t maxlen;\n  \n  sVar1 = actual_x(line->data,column);\n  uVar3 = flags[1] & 2;\n  if (uVar3 == 0) {\n    return sVar1;\n  }\n  text = line->data;\n  maxlen = sVar1;\n  if (text[sVar1] != '\t') goto LAB_00024435;\n  if (forward) {\n    sVar2 = strnlenpt(text,sVar1);\n    if (sVar2 < *leftedge) {\n      maxlen = sVar1 + 1;\n      uVar3 = flags[1] & 2;\n      if (shifted != (_Bool *)0x0) goto LAB_00024511;\n    }\n    else {\n      uVar3 = flags[1] & 2;\n    }\n  }\n  else {\n    if (((column / (uint)tabsize != (*leftedge - 1) / (uint)tabsize) ||\n        (((*leftedge - 1) + editwincols) / (uint)tabsize <= column / (uint)tabsize)) ||\n       (maxlen = sVar1 + 1, shifted == (_Bool *)0x0)) goto LAB_00024435;\nLAB_00024511:\n    *shifted = true;\n    maxlen = sVar1 + 1;\n  }\n  if (uVar3 == 0) {\n    return maxlen;\n  }\n  text = line->data;\nLAB_00024435:\n  sVar1 = strnlenpt(text,maxlen);\n  sVar1 = leftedge_for(sVar1,line);\n  *leftedge = sVar1;\n  return maxlen;\n}" primitive_type (function_declarator "proper_x(filestruct *line,size_t *leftedge,_Bool forward,size_t column,_Bool *shifted)" identifier (parameter_list "(filestruct *line,size_t *leftedge,_Bool forward,size_t column,_Bool *shifted)" ( (parameter_declaration "filestruct *line" type_identifier (pointer_declarator "*line" * identifier)) , (parameter_declaration "size_t *leftedge" primitive_type (pointer_declarator "*leftedge" * identifier)) , (parameter_declaration "_Bool forward" type_identifier identifier) , (parameter_declaration "size_t column" primitive_type identifier) , (parameter_declaration "_Bool *shifted" type_identifier (pointer_declarator "*shifted" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  size_t sVar2;\n  uint uVar3;\n  char *text;\n  size_t maxlen;\n  \n  sVar1 = actual_x(line->data,column);\n  uVar3 = flags[1] & 2;\n  if (uVar3 == 0) {\n    return sVar1;\n  }\n  text = line->data;\n  maxlen = sVar1;\n  if (text[sVar1] != '\t') goto LAB_00024435;\n  if (forward) {\n    sVar2 = strnlenpt(text,sVar1);\n    if (sVar2 < *leftedge) {\n      maxlen = sVar1 + 1;\n      uVar3 = flags[1] & 2;\n      if (shifted != (_Bool *)0x0) goto LAB_00024511;\n    }\n    else {\n      uVar3 = flags[1] & 2;\n    }\n  }\n  else {\n    if (((column / (uint)tabsize != (*leftedge - 1) / (uint)tabsize) ||\n        (((*leftedge - 1) + editwincols) / (uint)tabsize <= column / (uint)tabsize)) ||\n       (maxlen = sVar1 + 1, shifted == (_Bool *)0x0)) goto LAB_00024435;\nLAB_00024511:\n    *shifted = true;\n    maxlen = sVar1 + 1;\n  }\n  if (uVar3 == 0) {\n    return maxlen;\n  }\n  text = line->data;\nLAB_00024435:\n  sVar1 = strnlenpt(text,maxlen);\n  sVar1 = leftedge_for(sVar1,line);\n  *leftedge = sVar1;\n  return maxlen;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "char *text;" primitive_type (pointer_declarator "*text" * identifier) ;) (declaration "size_t maxlen;" primitive_type identifier ;) (expression_statement "sVar1 = actual_x(line->data,column);" (assignment_expression "sVar1 = actual_x(line->data,column)" identifier = (call_expression "actual_x(line->data,column)" identifier (argument_list "(line->data,column)" ( (field_expression "line->data" identifier -> field_identifier) , identifier )))) ;) (expression_statement "uVar3 = flags[1] & 2;" (assignment_expression "uVar3 = flags[1] & 2" identifier = (binary_expression "flags[1] & 2" (subscript_expression "flags[1]" identifier [ number_literal ]) & number_literal)) ;) (if_statement "if (uVar3 == 0) {\n    return sVar1;\n  }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    return sVar1;\n  }" { (return_statement "return sVar1;" return identifier ;) })) (expression_statement "text = line->data;" (assignment_expression "text = line->data" identifier = (field_expression "line->data" identifier -> field_identifier)) ;) (expression_statement "maxlen = sVar1;" (assignment_expression "maxlen = sVar1" identifier = identifier) ;) (if_statement "if (text[sVar1] != '\t') goto LAB_00024435;" if (parenthesized_expression "(text[sVar1] != '\t')" ( (binary_expression "text[sVar1] != '\t'" (subscript_expression "text[sVar1]" identifier [ identifier ]) != (char_literal "'\t'" ' escape_sequence ')) )) (goto_statement "goto LAB_00024435;" goto statement_identifier ;)) (if_statement "if (forward) {\n    sVar2 = strnlenpt(text,sVar1);\n    if (sVar2 < *leftedge) {\n      maxlen = sVar1 + 1;\n      uVar3 = flags[1] & 2;\n      if (shifted != (_Bool *)0x0) goto LAB_00024511;\n    }\n    else {\n      uVar3 = flags[1] & 2;\n    }\n  }\n  else {\n    if (((column / (uint)tabsize != (*leftedge - 1) / (uint)tabsize) ||\n        (((*leftedge - 1) + editwincols) / (uint)tabsize <= column / (uint)tabsize)) ||\n       (maxlen = sVar1 + 1, shifted == (_Bool *)0x0)) goto LAB_00024435;\nLAB_00024511:\n    *shifted = true;\n    maxlen = sVar1 + 1;\n  }" if (parenthesized_expression "(forward)" ( identifier )) (compound_statement "{\n    sVar2 = strnlenpt(text,sVar1);\n    if (sVar2 < *leftedge) {\n      maxlen = sVar1 + 1;\n      uVar3 = flags[1] & 2;\n      if (shifted != (_Bool *)0x0) goto LAB_00024511;\n    }\n    else {\n      uVar3 = flags[1] & 2;\n    }\n  }" { (expression_statement "sVar2 = strnlenpt(text,sVar1);" (assignment_expression "sVar2 = strnlenpt(text,sVar1)" identifier = (call_expression "strnlenpt(text,sVar1)" identifier (argument_list "(text,sVar1)" ( identifier , identifier )))) ;) (if_statement "if (sVar2 < *leftedge) {\n      maxlen = sVar1 + 1;\n      uVar3 = flags[1] & 2;\n      if (shifted != (_Bool *)0x0) goto LAB_00024511;\n    }\n    else {\n      uVar3 = flags[1] & 2;\n    }" if (parenthesized_expression "(sVar2 < *leftedge)" ( (binary_expression "sVar2 < *leftedge" identifier < (pointer_expression "*leftedge" * identifier)) )) (compound_statement "{\n      maxlen = sVar1 + 1;\n      uVar3 = flags[1] & 2;\n      if (shifted != (_Bool *)0x0) goto LAB_00024511;\n    }" { (expression_statement "maxlen = sVar1 + 1;" (assignment_expression "maxlen = sVar1 + 1" identifier = (binary_expression "sVar1 + 1" identifier + number_literal)) ;) (expression_statement "uVar3 = flags[1] & 2;" (assignment_expression "uVar3 = flags[1] & 2" identifier = (binary_expression "flags[1] & 2" (subscript_expression "flags[1]" identifier [ number_literal ]) & number_literal)) ;) (if_statement "if (shifted != (_Bool *)0x0) goto LAB_00024511;" if (parenthesized_expression "(shifted != (_Bool *)0x0)" ( (binary_expression "shifted != (_Bool *)0x0" identifier != (cast_expression "(_Bool *)0x0" ( (type_descriptor "_Bool *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00024511;" goto statement_identifier ;)) }) (else_clause "else {\n      uVar3 = flags[1] & 2;\n    }" else (compound_statement "{\n      uVar3 = flags[1] & 2;\n    }" { (expression_statement "uVar3 = flags[1] & 2;" (assignment_expression "uVar3 = flags[1] & 2" identifier = (binary_expression "flags[1] & 2" (subscript_expression "flags[1]" identifier [ number_literal ]) & number_literal)) ;) }))) }) (else_clause "else {\n    if (((column / (uint)tabsize != (*leftedge - 1) / (uint)tabsize) ||\n        (((*leftedge - 1) + editwincols) / (uint)tabsize <= column / (uint)tabsize)) ||\n       (maxlen = sVar1 + 1, shifted == (_Bool *)0x0)) goto LAB_00024435;\nLAB_00024511:\n    *shifted = true;\n    maxlen = sVar1 + 1;\n  }" else (compound_statement "{\n    if (((column / (uint)tabsize != (*leftedge - 1) / (uint)tabsize) ||\n        (((*leftedge - 1) + editwincols) / (uint)tabsize <= column / (uint)tabsize)) ||\n       (maxlen = sVar1 + 1, shifted == (_Bool *)0x0)) goto LAB_00024435;\nLAB_00024511:\n    *shifted = true;\n    maxlen = sVar1 + 1;\n  }" { (if_statement "if (((column / (uint)tabsize != (*leftedge - 1) / (uint)tabsize) ||\n        (((*leftedge - 1) + editwincols) / (uint)tabsize <= column / (uint)tabsize)) ||\n       (maxlen = sVar1 + 1, shifted == (_Bool *)0x0)) goto LAB_00024435;" if (parenthesized_expression "(((column / (uint)tabsize != (*leftedge - 1) / (uint)tabsize) ||\n        (((*leftedge - 1) + editwincols) / (uint)tabsize <= column / (uint)tabsize)) ||\n       (maxlen = sVar1 + 1, shifted == (_Bool *)0x0))" ( (binary_expression "((column / (uint)tabsize != (*leftedge - 1) / (uint)tabsize) ||\n        (((*leftedge - 1) + editwincols) / (uint)tabsize <= column / (uint)tabsize)) ||\n       (maxlen = sVar1 + 1, shifted == (_Bool *)0x0)" (parenthesized_expression "((column / (uint)tabsize != (*leftedge - 1) / (uint)tabsize) ||\n        (((*leftedge - 1) + editwincols) / (uint)tabsize <= column / (uint)tabsize))" ( (binary_expression "(column / (uint)tabsize != (*leftedge - 1) / (uint)tabsize) ||\n        (((*leftedge - 1) + editwincols) / (uint)tabsize <= column / (uint)tabsize)" (parenthesized_expression "(column / (uint)tabsize != (*leftedge - 1) / (uint)tabsize)" ( (binary_expression "column / (uint)tabsize != (*leftedge - 1) / (uint)tabsize" (binary_expression "column / (uint)tabsize" identifier / (cast_expression "(uint)tabsize" ( (type_descriptor "uint" type_identifier) ) identifier)) != (binary_expression "(*leftedge - 1) / (uint)tabsize" (parenthesized_expression "(*leftedge - 1)" ( (binary_expression "*leftedge - 1" (pointer_expression "*leftedge" * identifier) - number_literal) )) / (cast_expression "(uint)tabsize" ( (type_descriptor "uint" type_identifier) ) identifier))) )) || (parenthesized_expression "(((*leftedge - 1) + editwincols) / (uint)tabsize <= column / (uint)tabsize)" ( (binary_expression "((*leftedge - 1) + editwincols) / (uint)tabsize <= column / (uint)tabsize" (binary_expression "((*leftedge - 1) + editwincols) / (uint)tabsize" (parenthesized_expression "((*leftedge - 1) + editwincols)" ( (binary_expression "(*leftedge - 1) + editwincols" (parenthesized_expression "(*leftedge - 1)" ( (binary_expression "*leftedge - 1" (pointer_expression "*leftedge" * identifier) - number_literal) )) + identifier) )) / (cast_expression "(uint)tabsize" ( (type_descriptor "uint" type_identifier) ) identifier)) <= (binary_expression "column / (uint)tabsize" identifier / (cast_expression "(uint)tabsize" ( (type_descriptor "uint" type_identifier) ) identifier))) ))) )) || (parenthesized_expression "(maxlen = sVar1 + 1, shifted == (_Bool *)0x0)" ( (comma_expression "maxlen = sVar1 + 1, shifted == (_Bool *)0x0" (assignment_expression "maxlen = sVar1 + 1" identifier = (binary_expression "sVar1 + 1" identifier + number_literal)) , (binary_expression "shifted == (_Bool *)0x0" identifier == (cast_expression "(_Bool *)0x0" ( (type_descriptor "_Bool *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (goto_statement "goto LAB_00024435;" goto statement_identifier ;)) (labeled_statement "LAB_00024511:\n    *shifted = true;" statement_identifier : (expression_statement "*shifted = true;" (assignment_expression "*shifted = true" (pointer_expression "*shifted" * identifier) = true) ;)) (expression_statement "maxlen = sVar1 + 1;" (assignment_expression "maxlen = sVar1 + 1" identifier = (binary_expression "sVar1 + 1" identifier + number_literal)) ;) }))) (if_statement "if (uVar3 == 0) {\n    return maxlen;\n  }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    return maxlen;\n  }" { (return_statement "return maxlen;" return identifier ;) })) (expression_statement "text = line->data;" (assignment_expression "text = line->data" identifier = (field_expression "line->data" identifier -> field_identifier)) ;) (labeled_statement "LAB_00024435:\n  sVar1 = strnlenpt(text,maxlen);" statement_identifier : (expression_statement "sVar1 = strnlenpt(text,maxlen);" (assignment_expression "sVar1 = strnlenpt(text,maxlen)" identifier = (call_expression "strnlenpt(text,maxlen)" identifier (argument_list "(text,maxlen)" ( identifier , identifier )))) ;)) (expression_statement "sVar1 = leftedge_for(sVar1,line);" (assignment_expression "sVar1 = leftedge_for(sVar1,line)" identifier = (call_expression "leftedge_for(sVar1,line)" identifier (argument_list "(sVar1,line)" ( identifier , identifier )))) ;) (expression_statement "*leftedge = sVar1;" (assignment_expression "*leftedge = sVar1" (pointer_expression "*leftedge" * identifier) = identifier) ;) (return_statement "return maxlen;" return identifier ;) })))
(translation_unit "int FUN_000243f0(int *param_1,uint *param_2,char param_3,uint param_4,undefined1 *param_5)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  \n  iVar1 = FUN_00035870(*param_1,param_4);\n  uVar3 = _DAT_0006b668 & 2;\n  if (uVar3 == 0) {\n    return iVar1;\n  }\n  iVar4 = *param_1;\n  iVar5 = iVar1;\n  if (*(char *)(iVar4 + iVar1) != '\t') goto LAB_00024435;\n  if (param_3 == '\0') {\n    if (((param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068) ||\n        (((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068)) ||\n       (iVar5 = iVar1 + 1, param_5 == (undefined1 *)0x0)) goto LAB_00024435;\nLAB_00024511:\n    *param_5 = 1;\n    iVar5 = iVar1 + 1;\n  }\n  else {\n    uVar3 = FUN_00035900(iVar4,iVar1);\n    if (uVar3 < *param_2) {\n      iVar5 = iVar1 + 1;\n      uVar3 = _DAT_0006b668 & 2;\n      if (param_5 != (undefined1 *)0x0) goto LAB_00024511;\n    }\n    else {\n      uVar3 = _DAT_0006b668 & 2;\n    }\n  }\n  if (uVar3 == 0) {\n    return iVar5;\n  }\n  iVar4 = *param_1;\nLAB_00024435:\n  uVar2 = FUN_00035900(iVar4,iVar5);\n  uVar3 = FUN_0003a990(uVar2,param_1);\n  *param_2 = uVar3;\n  return iVar5;\n}\n\n" (function_definition "int FUN_000243f0(int *param_1,uint *param_2,char param_3,uint param_4,undefined1 *param_5)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  \n  iVar1 = FUN_00035870(*param_1,param_4);\n  uVar3 = _DAT_0006b668 & 2;\n  if (uVar3 == 0) {\n    return iVar1;\n  }\n  iVar4 = *param_1;\n  iVar5 = iVar1;\n  if (*(char *)(iVar4 + iVar1) != '\t') goto LAB_00024435;\n  if (param_3 == '\0') {\n    if (((param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068) ||\n        (((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068)) ||\n       (iVar5 = iVar1 + 1, param_5 == (undefined1 *)0x0)) goto LAB_00024435;\nLAB_00024511:\n    *param_5 = 1;\n    iVar5 = iVar1 + 1;\n  }\n  else {\n    uVar3 = FUN_00035900(iVar4,iVar1);\n    if (uVar3 < *param_2) {\n      iVar5 = iVar1 + 1;\n      uVar3 = _DAT_0006b668 & 2;\n      if (param_5 != (undefined1 *)0x0) goto LAB_00024511;\n    }\n    else {\n      uVar3 = _DAT_0006b668 & 2;\n    }\n  }\n  if (uVar3 == 0) {\n    return iVar5;\n  }\n  iVar4 = *param_1;\nLAB_00024435:\n  uVar2 = FUN_00035900(iVar4,iVar5);\n  uVar3 = FUN_0003a990(uVar2,param_1);\n  *param_2 = uVar3;\n  return iVar5;\n}" primitive_type (function_declarator "FUN_000243f0(int *param_1,uint *param_2,char param_3,uint param_4,undefined1 *param_5)" identifier (parameter_list "(int *param_1,uint *param_2,char param_3,uint param_4,undefined1 *param_5)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char param_3" primitive_type identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "undefined1 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  \n  iVar1 = FUN_00035870(*param_1,param_4);\n  uVar3 = _DAT_0006b668 & 2;\n  if (uVar3 == 0) {\n    return iVar1;\n  }\n  iVar4 = *param_1;\n  iVar5 = iVar1;\n  if (*(char *)(iVar4 + iVar1) != '\t') goto LAB_00024435;\n  if (param_3 == '\0') {\n    if (((param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068) ||\n        (((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068)) ||\n       (iVar5 = iVar1 + 1, param_5 == (undefined1 *)0x0)) goto LAB_00024435;\nLAB_00024511:\n    *param_5 = 1;\n    iVar5 = iVar1 + 1;\n  }\n  else {\n    uVar3 = FUN_00035900(iVar4,iVar1);\n    if (uVar3 < *param_2) {\n      iVar5 = iVar1 + 1;\n      uVar3 = _DAT_0006b668 & 2;\n      if (param_5 != (undefined1 *)0x0) goto LAB_00024511;\n    }\n    else {\n      uVar3 = _DAT_0006b668 & 2;\n    }\n  }\n  if (uVar3 == 0) {\n    return iVar5;\n  }\n  iVar4 = *param_1;\nLAB_00024435:\n  uVar2 = FUN_00035900(iVar4,iVar5);\n  uVar3 = FUN_0003a990(uVar2,param_1);\n  *param_2 = uVar3;\n  return iVar5;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00035870(*param_1,param_4);" (assignment_expression "iVar1 = FUN_00035870(*param_1,param_4)" identifier = (call_expression "FUN_00035870(*param_1,param_4)" identifier (argument_list "(*param_1,param_4)" ( (pointer_expression "*param_1" * identifier) , identifier )))) ;) (expression_statement "uVar3 = _DAT_0006b668 & 2;" (assignment_expression "uVar3 = _DAT_0006b668 & 2" identifier = (binary_expression "_DAT_0006b668 & 2" identifier & number_literal)) ;) (if_statement "if (uVar3 == 0) {\n    return iVar1;\n  }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar4 = *param_1;" (assignment_expression "iVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar5 = iVar1;" (assignment_expression "iVar5 = iVar1" identifier = identifier) ;) (if_statement "if (*(char *)(iVar4 + iVar1) != '\t') goto LAB_00024435;" if (parenthesized_expression "(*(char *)(iVar4 + iVar1) != '\t')" ( (binary_expression "*(char *)(iVar4 + iVar1) != '\t'" (pointer_expression "*(char *)(iVar4 + iVar1)" * (cast_expression "(char *)(iVar4 + iVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar1)" ( (binary_expression "iVar4 + iVar1" identifier + identifier) )))) != (char_literal "'\t'" ' escape_sequence ')) )) (goto_statement "goto LAB_00024435;" goto statement_identifier ;)) (if_statement "if (param_3 == '\0') {\n    if (((param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068) ||\n        (((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068)) ||\n       (iVar5 = iVar1 + 1, param_5 == (undefined1 *)0x0)) goto LAB_00024435;\nLAB_00024511:\n    *param_5 = 1;\n    iVar5 = iVar1 + 1;\n  }\n  else {\n    uVar3 = FUN_00035900(iVar4,iVar1);\n    if (uVar3 < *param_2) {\n      iVar5 = iVar1 + 1;\n      uVar3 = _DAT_0006b668 & 2;\n      if (param_5 != (undefined1 *)0x0) goto LAB_00024511;\n    }\n    else {\n      uVar3 = _DAT_0006b668 & 2;\n    }\n  }" if (parenthesized_expression "(param_3 == '\0')" ( (binary_expression "param_3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (((param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068) ||\n        (((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068)) ||\n       (iVar5 = iVar1 + 1, param_5 == (undefined1 *)0x0)) goto LAB_00024435;\nLAB_00024511:\n    *param_5 = 1;\n    iVar5 = iVar1 + 1;\n  }" { (if_statement "if (((param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068) ||\n        (((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068)) ||\n       (iVar5 = iVar1 + 1, param_5 == (undefined1 *)0x0)) goto LAB_00024435;" if (parenthesized_expression "(((param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068) ||\n        (((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068)) ||\n       (iVar5 = iVar1 + 1, param_5 == (undefined1 *)0x0))" ( (binary_expression "((param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068) ||\n        (((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068)) ||\n       (iVar5 = iVar1 + 1, param_5 == (undefined1 *)0x0)" (parenthesized_expression "((param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068) ||\n        (((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068))" ( (binary_expression "(param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068) ||\n        (((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068)" (parenthesized_expression "(param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068)" ( (binary_expression "param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068" (binary_expression "param_4 / DAT_0006b068" identifier / identifier) != (binary_expression "(*param_2 - 1) / DAT_0006b068" (parenthesized_expression "(*param_2 - 1)" ( (binary_expression "*param_2 - 1" (pointer_expression "*param_2" * identifier) - number_literal) )) / identifier)) )) || (parenthesized_expression "(((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068)" ( (binary_expression "((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068" (binary_expression "((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068" (parenthesized_expression "((*param_2 - 1) + DAT_0006b06c)" ( (binary_expression "(*param_2 - 1) + DAT_0006b06c" (parenthesized_expression "(*param_2 - 1)" ( (binary_expression "*param_2 - 1" (pointer_expression "*param_2" * identifier) - number_literal) )) + identifier) )) / identifier) <= (binary_expression "param_4 / DAT_0006b068" identifier / identifier)) ))) )) || (parenthesized_expression "(iVar5 = iVar1 + 1, param_5 == (undefined1 *)0x0)" ( (comma_expression "iVar5 = iVar1 + 1, param_5 == (undefined1 *)0x0" (assignment_expression "iVar5 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) , (binary_expression "param_5 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (goto_statement "goto LAB_00024435;" goto statement_identifier ;)) (labeled_statement "LAB_00024511:\n    *param_5 = 1;" statement_identifier : (expression_statement "*param_5 = 1;" (assignment_expression "*param_5 = 1" (pointer_expression "*param_5" * identifier) = number_literal) ;)) (expression_statement "iVar5 = iVar1 + 1;" (assignment_expression "iVar5 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n    uVar3 = FUN_00035900(iVar4,iVar1);\n    if (uVar3 < *param_2) {\n      iVar5 = iVar1 + 1;\n      uVar3 = _DAT_0006b668 & 2;\n      if (param_5 != (undefined1 *)0x0) goto LAB_00024511;\n    }\n    else {\n      uVar3 = _DAT_0006b668 & 2;\n    }\n  }" else (compound_statement "{\n    uVar3 = FUN_00035900(iVar4,iVar1);\n    if (uVar3 < *param_2) {\n      iVar5 = iVar1 + 1;\n      uVar3 = _DAT_0006b668 & 2;\n      if (param_5 != (undefined1 *)0x0) goto LAB_00024511;\n    }\n    else {\n      uVar3 = _DAT_0006b668 & 2;\n    }\n  }" { (expression_statement "uVar3 = FUN_00035900(iVar4,iVar1);" (assignment_expression "uVar3 = FUN_00035900(iVar4,iVar1)" identifier = (call_expression "FUN_00035900(iVar4,iVar1)" identifier (argument_list "(iVar4,iVar1)" ( identifier , identifier )))) ;) (if_statement "if (uVar3 < *param_2) {\n      iVar5 = iVar1 + 1;\n      uVar3 = _DAT_0006b668 & 2;\n      if (param_5 != (undefined1 *)0x0) goto LAB_00024511;\n    }\n    else {\n      uVar3 = _DAT_0006b668 & 2;\n    }" if (parenthesized_expression "(uVar3 < *param_2)" ( (binary_expression "uVar3 < *param_2" identifier < (pointer_expression "*param_2" * identifier)) )) (compound_statement "{\n      iVar5 = iVar1 + 1;\n      uVar3 = _DAT_0006b668 & 2;\n      if (param_5 != (undefined1 *)0x0) goto LAB_00024511;\n    }" { (expression_statement "iVar5 = iVar1 + 1;" (assignment_expression "iVar5 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "uVar3 = _DAT_0006b668 & 2;" (assignment_expression "uVar3 = _DAT_0006b668 & 2" identifier = (binary_expression "_DAT_0006b668 & 2" identifier & number_literal)) ;) (if_statement "if (param_5 != (undefined1 *)0x0) goto LAB_00024511;" if (parenthesized_expression "(param_5 != (undefined1 *)0x0)" ( (binary_expression "param_5 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00024511;" goto statement_identifier ;)) }) (else_clause "else {\n      uVar3 = _DAT_0006b668 & 2;\n    }" else (compound_statement "{\n      uVar3 = _DAT_0006b668 & 2;\n    }" { (expression_statement "uVar3 = _DAT_0006b668 & 2;" (assignment_expression "uVar3 = _DAT_0006b668 & 2" identifier = (binary_expression "_DAT_0006b668 & 2" identifier & number_literal)) ;) }))) }))) (if_statement "if (uVar3 == 0) {\n    return iVar5;\n  }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    return iVar5;\n  }" { (return_statement "return iVar5;" return identifier ;) })) (expression_statement "iVar4 = *param_1;" (assignment_expression "iVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (labeled_statement "LAB_00024435:\n  uVar2 = FUN_00035900(iVar4,iVar5);" statement_identifier : (expression_statement "uVar2 = FUN_00035900(iVar4,iVar5);" (assignment_expression "uVar2 = FUN_00035900(iVar4,iVar5)" identifier = (call_expression "FUN_00035900(iVar4,iVar5)" identifier (argument_list "(iVar4,iVar5)" ( identifier , identifier )))) ;)) (expression_statement "uVar3 = FUN_0003a990(uVar2,param_1);" (assignment_expression "uVar3 = FUN_0003a990(uVar2,param_1)" identifier = (call_expression "FUN_0003a990(uVar2,param_1)" identifier (argument_list "(uVar2,param_1)" ( identifier , identifier )))) ;) (expression_statement "*param_2 = uVar3;" (assignment_expression "*param_2 = uVar3" (pointer_expression "*param_2" * identifier) = identifier) ;) (return_statement "return iVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT / IDENT) != (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) - LIT) )) / IDENT)) )) || (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) - LIT) )) + IDENT) )) / IDENT) <= (binary_expression IDENT / IDENT)) ))) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) }))) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_000243f0(int *param_1,uint *param_2,char param_3,uint param_4,undefined1 *param_5)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  \n  iVar1 = FUN_00035870(*param_1,param_4);\n  uVar3 = _DAT_0006b668 & 2;\n  if (uVar3 == 0) {\n    return iVar1;\n  }\n  iVar4 = *param_1;\n  iVar5 = iVar1;\n  if (*(char *)(iVar4 + iVar1) != '\t') goto LAB_00024435;\n  if (param_3 == '\0') {\n    if (((param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068) ||\n        (((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068)) ||\n       (iVar5 = iVar1 + 1, param_5 == (undefined1 *)0x0)) goto LAB_00024435;\nLAB_00024511:\n    *param_5 = 1;\n    iVar5 = iVar1 + 1;\n  }\n  else {\n    uVar3 = FUN_00035900(iVar4,iVar1);\n    if (uVar3 < *param_2) {\n      iVar5 = iVar1 + 1;\n      uVar3 = _DAT_0006b668 & 2;\n      if (param_5 != (undefined1 *)0x0) goto LAB_00024511;\n    }\n    else {\n      uVar3 = _DAT_0006b668 & 2;\n    }\n  }\n  if (uVar3 == 0) {\n    return iVar5;\n  }\n  iVar4 = *param_1;\nLAB_00024435:\n  uVar2 = FUN_00035900(iVar4,iVar5);\n  uVar3 = FUN_0003a990(uVar2,param_1);\n  *param_2 = uVar3;\n  return iVar5;\n}" (primitive_type "int") (function_declarator "FUN_000243f0(int *param_1,uint *param_2,char param_3,uint param_4,undefined1 *param_5)" (identifier "FUN_000243f0") (parameter_list "(int *param_1,uint *param_2,char param_3,uint param_4,undefined1 *param_5)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint *param_2" (type_identifier "uint") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "char param_3" (primitive_type "char") (identifier "param_3")) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) (, ",") (parameter_declaration "undefined1 *param_5" (type_identifier "undefined1") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  \n  iVar1 = FUN_00035870(*param_1,param_4);\n  uVar3 = _DAT_0006b668 & 2;\n  if (uVar3 == 0) {\n    return iVar1;\n  }\n  iVar4 = *param_1;\n  iVar5 = iVar1;\n  if (*(char *)(iVar4 + iVar1) != '\t') goto LAB_00024435;\n  if (param_3 == '\0') {\n    if (((param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068) ||\n        (((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068)) ||\n       (iVar5 = iVar1 + 1, param_5 == (undefined1 *)0x0)) goto LAB_00024435;\nLAB_00024511:\n    *param_5 = 1;\n    iVar5 = iVar1 + 1;\n  }\n  else {\n    uVar3 = FUN_00035900(iVar4,iVar1);\n    if (uVar3 < *param_2) {\n      iVar5 = iVar1 + 1;\n      uVar3 = _DAT_0006b668 & 2;\n      if (param_5 != (undefined1 *)0x0) goto LAB_00024511;\n    }\n    else {\n      uVar3 = _DAT_0006b668 & 2;\n    }\n  }\n  if (uVar3 == 0) {\n    return iVar5;\n  }\n  iVar4 = *param_1;\nLAB_00024435:\n  uVar2 = FUN_00035900(iVar4,iVar5);\n  uVar3 = FUN_0003a990(uVar2,param_1);\n  *param_2 = uVar3;\n  return iVar5;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (expression_statement "iVar1 = FUN_00035870(*param_1,param_4);" (assignment_expression "iVar1 = FUN_00035870(*param_1,param_4)" (identifier "iVar1") (= "=") (call_expression "FUN_00035870(*param_1,param_4)" (identifier "FUN_00035870") (argument_list "(*param_1,param_4)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (identifier "param_4") () ")")))) (; ";")) (expression_statement "uVar3 = _DAT_0006b668 & 2;" (assignment_expression "uVar3 = _DAT_0006b668 & 2" (identifier "uVar3") (= "=") (binary_expression "_DAT_0006b668 & 2" (identifier "_DAT_0006b668") (& "&") (number_literal "2"))) (; ";")) (if_statement "if (uVar3 == 0) {\n    return iVar1;\n  }" (if "if") (parenthesized_expression "(uVar3 == 0)" (( "(") (binary_expression "uVar3 == 0" (identifier "uVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return iVar1;\n  }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (expression_statement "iVar4 = *param_1;" (assignment_expression "iVar4 = *param_1" (identifier "iVar4") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "iVar5 = iVar1;" (assignment_expression "iVar5 = iVar1" (identifier "iVar5") (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (*(char *)(iVar4 + iVar1) != '\t') goto LAB_00024435;" (if "if") (parenthesized_expression "(*(char *)(iVar4 + iVar1) != '\t')" (( "(") (binary_expression "*(char *)(iVar4 + iVar1) != '\t'" (pointer_expression "*(char *)(iVar4 + iVar1)" (* "*") (cast_expression "(char *)(iVar4 + iVar1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + iVar1)" (( "(") (binary_expression "iVar4 + iVar1" (identifier "iVar4") (+ "+") (identifier "iVar1")) () ")")))) (!= "!=") (char_literal "'\t'" (' "'") (escape_sequence "\t") (' "'"))) () ")")) (goto_statement "goto LAB_00024435;" (goto "goto") (statement_identifier "LAB_00024435") (; ";"))) (if_statement "if (param_3 == '\0') {\n    if (((param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068) ||\n        (((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068)) ||\n       (iVar5 = iVar1 + 1, param_5 == (undefined1 *)0x0)) goto LAB_00024435;\nLAB_00024511:\n    *param_5 = 1;\n    iVar5 = iVar1 + 1;\n  }\n  else {\n    uVar3 = FUN_00035900(iVar4,iVar1);\n    if (uVar3 < *param_2) {\n      iVar5 = iVar1 + 1;\n      uVar3 = _DAT_0006b668 & 2;\n      if (param_5 != (undefined1 *)0x0) goto LAB_00024511;\n    }\n    else {\n      uVar3 = _DAT_0006b668 & 2;\n    }\n  }" (if "if") (parenthesized_expression "(param_3 == '\0')" (( "(") (binary_expression "param_3 == '\0'" (identifier "param_3") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    if (((param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068) ||\n        (((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068)) ||\n       (iVar5 = iVar1 + 1, param_5 == (undefined1 *)0x0)) goto LAB_00024435;\nLAB_00024511:\n    *param_5 = 1;\n    iVar5 = iVar1 + 1;\n  }" ({ "{") (if_statement "if (((param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068) ||\n        (((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068)) ||\n       (iVar5 = iVar1 + 1, param_5 == (undefined1 *)0x0)) goto LAB_00024435;" (if "if") (parenthesized_expression "(((param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068) ||\n        (((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068)) ||\n       (iVar5 = iVar1 + 1, param_5 == (undefined1 *)0x0))" (( "(") (binary_expression "((param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068) ||\n        (((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068)) ||\n       (iVar5 = iVar1 + 1, param_5 == (undefined1 *)0x0)" (parenthesized_expression "((param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068) ||\n        (((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068))" (( "(") (binary_expression "(param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068) ||\n        (((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068)" (parenthesized_expression "(param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068)" (( "(") (binary_expression "param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068" (binary_expression "param_4 / DAT_0006b068" (identifier "param_4") (/ "/") (identifier "DAT_0006b068")) (!= "!=") (binary_expression "(*param_2 - 1) / DAT_0006b068" (parenthesized_expression "(*param_2 - 1)" (( "(") (binary_expression "*param_2 - 1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (- "-") (number_literal "1")) () ")")) (/ "/") (identifier "DAT_0006b068"))) () ")")) (|| "||") (parenthesized_expression "(((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068)" (( "(") (binary_expression "((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068" (binary_expression "((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068" (parenthesized_expression "((*param_2 - 1) + DAT_0006b06c)" (( "(") (binary_expression "(*param_2 - 1) + DAT_0006b06c" (parenthesized_expression "(*param_2 - 1)" (( "(") (binary_expression "*param_2 - 1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (- "-") (number_literal "1")) () ")")) (+ "+") (identifier "DAT_0006b06c")) () ")")) (/ "/") (identifier "DAT_0006b068")) (<= "<=") (binary_expression "param_4 / DAT_0006b068" (identifier "param_4") (/ "/") (identifier "DAT_0006b068"))) () ")"))) () ")")) (|| "||") (parenthesized_expression "(iVar5 = iVar1 + 1, param_5 == (undefined1 *)0x0)" (( "(") (comma_expression "iVar5 = iVar1 + 1, param_5 == (undefined1 *)0x0" (assignment_expression "iVar5 = iVar1 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (, ",") (binary_expression "param_5 == (undefined1 *)0x0" (identifier "param_5") (== "==") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (goto_statement "goto LAB_00024435;" (goto "goto") (statement_identifier "LAB_00024435") (; ";"))) (labeled_statement "LAB_00024511:\n    *param_5 = 1;" (statement_identifier "LAB_00024511") (: ":") (expression_statement "*param_5 = 1;" (assignment_expression "*param_5 = 1" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (number_literal "1")) (; ";"))) (expression_statement "iVar5 = iVar1 + 1;" (assignment_expression "iVar5 = iVar1 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n    uVar3 = FUN_00035900(iVar4,iVar1);\n    if (uVar3 < *param_2) {\n      iVar5 = iVar1 + 1;\n      uVar3 = _DAT_0006b668 & 2;\n      if (param_5 != (undefined1 *)0x0) goto LAB_00024511;\n    }\n    else {\n      uVar3 = _DAT_0006b668 & 2;\n    }\n  }" (else "else") (compound_statement "{\n    uVar3 = FUN_00035900(iVar4,iVar1);\n    if (uVar3 < *param_2) {\n      iVar5 = iVar1 + 1;\n      uVar3 = _DAT_0006b668 & 2;\n      if (param_5 != (undefined1 *)0x0) goto LAB_00024511;\n    }\n    else {\n      uVar3 = _DAT_0006b668 & 2;\n    }\n  }" ({ "{") (expression_statement "uVar3 = FUN_00035900(iVar4,iVar1);" (assignment_expression "uVar3 = FUN_00035900(iVar4,iVar1)" (identifier "uVar3") (= "=") (call_expression "FUN_00035900(iVar4,iVar1)" (identifier "FUN_00035900") (argument_list "(iVar4,iVar1)" (( "(") (identifier "iVar4") (, ",") (identifier "iVar1") () ")")))) (; ";")) (if_statement "if (uVar3 < *param_2) {\n      iVar5 = iVar1 + 1;\n      uVar3 = _DAT_0006b668 & 2;\n      if (param_5 != (undefined1 *)0x0) goto LAB_00024511;\n    }\n    else {\n      uVar3 = _DAT_0006b668 & 2;\n    }" (if "if") (parenthesized_expression "(uVar3 < *param_2)" (( "(") (binary_expression "uVar3 < *param_2" (identifier "uVar3") (< "<") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) () ")")) (compound_statement "{\n      iVar5 = iVar1 + 1;\n      uVar3 = _DAT_0006b668 & 2;\n      if (param_5 != (undefined1 *)0x0) goto LAB_00024511;\n    }" ({ "{") (expression_statement "iVar5 = iVar1 + 1;" (assignment_expression "iVar5 = iVar1 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar3 = _DAT_0006b668 & 2;" (assignment_expression "uVar3 = _DAT_0006b668 & 2" (identifier "uVar3") (= "=") (binary_expression "_DAT_0006b668 & 2" (identifier "_DAT_0006b668") (& "&") (number_literal "2"))) (; ";")) (if_statement "if (param_5 != (undefined1 *)0x0) goto LAB_00024511;" (if "if") (parenthesized_expression "(param_5 != (undefined1 *)0x0)" (( "(") (binary_expression "param_5 != (undefined1 *)0x0" (identifier "param_5") (!= "!=") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00024511;" (goto "goto") (statement_identifier "LAB_00024511") (; ";"))) (} "}")) (else_clause "else {\n      uVar3 = _DAT_0006b668 & 2;\n    }" (else "else") (compound_statement "{\n      uVar3 = _DAT_0006b668 & 2;\n    }" ({ "{") (expression_statement "uVar3 = _DAT_0006b668 & 2;" (assignment_expression "uVar3 = _DAT_0006b668 & 2" (identifier "uVar3") (= "=") (binary_expression "_DAT_0006b668 & 2" (identifier "_DAT_0006b668") (& "&") (number_literal "2"))) (; ";")) (} "}")))) (} "}")))) (if_statement "if (uVar3 == 0) {\n    return iVar5;\n  }" (if "if") (parenthesized_expression "(uVar3 == 0)" (( "(") (binary_expression "uVar3 == 0" (identifier "uVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return iVar5;\n  }" ({ "{") (return_statement "return iVar5;" (return "return") (identifier "iVar5") (; ";")) (} "}"))) (expression_statement "iVar4 = *param_1;" (assignment_expression "iVar4 = *param_1" (identifier "iVar4") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (labeled_statement "LAB_00024435:\n  uVar2 = FUN_00035900(iVar4,iVar5);" (statement_identifier "LAB_00024435") (: ":") (expression_statement "uVar2 = FUN_00035900(iVar4,iVar5);" (assignment_expression "uVar2 = FUN_00035900(iVar4,iVar5)" (identifier "uVar2") (= "=") (call_expression "FUN_00035900(iVar4,iVar5)" (identifier "FUN_00035900") (argument_list "(iVar4,iVar5)" (( "(") (identifier "iVar4") (, ",") (identifier "iVar5") () ")")))) (; ";"))) (expression_statement "uVar3 = FUN_0003a990(uVar2,param_1);" (assignment_expression "uVar3 = FUN_0003a990(uVar2,param_1)" (identifier "uVar3") (= "=") (call_expression "FUN_0003a990(uVar2,param_1)" (identifier "FUN_0003a990") (argument_list "(uVar2,param_1)" (( "(") (identifier "uVar2") (, ",") (identifier "param_1") () ")")))) (; ";")) (expression_statement "*param_2 = uVar3;" (assignment_expression "*param_2 = uVar3" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "uVar3")) (; ";")) (return_statement "return iVar5;" (return "return") (identifier "iVar5") (; ";")) (} "}")))

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

size_t function_1(type_1 *line,size_t *leftedge,type_2 forward,size_t var_7,type_2 *var_6)

{
  size_t var_5;
  size_t var_4;
  type_3 var_2;
  char *text;
  size_t maxlen;
  
  var_5 = var_1(line->data,var_7);
  var_2 = flags[1] & 2;
  if (var_2 == 0) {
    return var_5;
  }
  text = line->data;
  maxlen = var_5;
  if (text[var_5] != '\t') goto LAB_00024435;
  if (forward) {
    var_4 = var_3(text,var_5);
    if (var_4 < *leftedge) {
      maxlen = var_5 + 1;
      var_2 = flags[1] & 2;
      if (var_6 != (type_2 *)0x0) goto LAB_00024511;
    }
    else {
      var_2 = flags[1] & 2;
    }
  }
  else {
    if (((var_7 / (type_3)tabsize != (*leftedge - 1) / (type_3)tabsize) ||
        (((*leftedge - 1) + var_8) / (type_3)tabsize <= var_7 / (type_3)tabsize)) ||
       (maxlen = var_5 + 1, var_6 == (type_2 *)0x0)) goto LAB_00024435;
LAB_00024511:
    *var_6 = true;
    maxlen = var_5 + 1;
  }
  if (var_2 == 0) {
    return maxlen;
  }
  text = line->data;
LAB_00024435:
  var_5 = var_3(text,maxlen);
  var_5 = var_9(var_5,line);
  *leftedge = var_5;
  return maxlen;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

int MASKED(int *param_1,uint *param_2,char param_3,uint param_4,undefined1 *param_5)

{
  int iVar1;
  undefined4 uVar2;
  uint uVar3;
  int iVar4;
  int iVar5;
  
  iVar1 = FUN_00035870(*param_1,param_4);
  uVar3 = _DAT_0006b668 & 2;
  if (uVar3 == 0) {
    return iVar1;
  }
  iVar4 = *param_1;
  iVar5 = iVar1;
  if (*(char *)(iVar4 + iVar1) != '\t') goto LAB_00024435;
  if (param_3 == '\0') {
    if (((param_4 / DAT_0006b068 != (*param_2 - 1) / DAT_0006b068) ||
        (((*param_2 - 1) + DAT_0006b06c) / DAT_0006b068 <= param_4 / DAT_0006b068)) ||
       (iVar5 = iVar1 + 1, param_5 == (undefined1 *)0x0)) goto LAB_00024435;
LAB_00024511:
    *param_5 = 1;
    iVar5 = iVar1 + 1;
  }
  else {
    uVar3 = FUN_00035900(iVar4,iVar1);
    if (uVar3 < *param_2) {
      iVar5 = iVar1 + 1;
      uVar3 = _DAT_0006b668 & 2;
      if (param_5 != (undefined1 *)0x0) goto LAB_00024511;
    }
    else {
      uVar3 = _DAT_0006b668 & 2;
    }
  }
  if (uVar3 == 0) {
    return iVar5;
  }
  iVar4 = *param_1;
LAB_00024435:
  uVar2 = FUN_00035900(iVar4,iVar5);
  uVar3 = FUN_0003a990(uVar2,param_1);
  *param_2 = uVar3;
  return iVar5;
}

