
int sessionChangesetBufferTblhdr(SessionInput *pIn,int *pnByte)

{
  byte bVar1;
  int iVar2;
  byte *p;
  int iVar3;
  uint uVar4;
  int iVar5;
  int iVar6;
  int unaff_EDI;
  int in_GS_OFFSET;
  undefined8 uVar7;
  SessionInput *in_stack_ffffffc4;
  int in_stack_ffffffc8;
  int local_34;
  int nCol;
  int local_20;
  
  uVar7 = __x86_get_pc_thunk_di();
  iVar2 = (int)uVar7;
  uVar4 = 1;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  nCol = 0;
  local_34 = sessionInputBuffer(in_stack_ffffffc4,in_stack_ffffffc8);
  if (local_34 == 0) {
    p = (byte *)(*(int *)(iVar2 + 8) + *(int *)(iVar2 + 0xc));
    bVar1 = *p;
    if ((char)bVar1 < '\0') {
      bVar1 = sqlite3GetVarint32(p,(u32 *)&nCol);
      uVar4 = (uint)bVar1;
      if (0x10000 < (uint)nCol) {
        uVar4 = uVar4 + 1;
        sqlite3_log(0xb,&UNK_000922eb + unaff_EDI,unaff_EDI + 0x92526,0x30133,unaff_EDI + 0x8f255);
        local_34 = 0xb;
        goto LAB_0008d5d0;
      }
    }
    else {
      nCol = (int)bVar1;
    }
    local_34 = sessionInputBuffer(in_stack_ffffffc4,in_stack_ffffffc8);
    iVar5 = uVar4 + nCol;
    if (local_34 == 0) {
      do {
        iVar3 = *(int *)(iVar2 + 8);
        if (iVar5 + iVar3 < *(int *)(iVar2 + 0x10)) {
          if (*(char *)(*(int *)(iVar2 + 0xc) + iVar5 + iVar3) == '\0') goto LAB_0008d645;
          while (iVar6 = iVar5, iVar5 = iVar6 + 1, iVar3 + iVar5 < *(int *)(iVar2 + 0x10)) {
            if (*(char *)(iVar6 + 1 + *(int *)(iVar2 + 0xc) + iVar3) == '\0') {
              uVar4 = iVar6 + 2;
              goto LAB_0008d5d0;
            }
          }
        }
        iVar3 = sessionInputBuffer(in_stack_ffffffc4,in_stack_ffffffc8);
      } while (iVar3 == 0);
      uVar4 = iVar5 + 1;
      local_34 = iVar3;
    }
    else {
LAB_0008d645:
      uVar4 = iVar5 + 1;
    }
  }
LAB_0008d5d0:
  *(uint *)((ulonglong)uVar7 >> 0x20) = uVar4;
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return local_34;
}



/* WARNING: Removing unreachable block (ram,0x0008d60a) */

int FUN_0008d500(void)

{
  int iVar1;
  byte bVar2;
  int iVar3;
  int iVar4;
  uint uVar5;
  int iVar6;
  int iVar7;
  int in_GS_OFFSET;
  undefined8 uVar8;
  int local_34;
  uint local_24;
  
  uVar8 = FUN_00036ac5();
  iVar3 = (int)uVar8;
  uVar5 = 1;
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  local_24 = 0;
  local_34 = FUN_0008d3d0();
  if (local_34 == 0) {
    bVar2 = *(byte *)(*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc));
    if ((char)bVar2 < '\0') {
      uVar5 = FUN_00046230();
      uVar5 = uVar5 & 0xff;
    }
    else {
      local_24 = (uint)bVar2;
    }
    local_34 = FUN_0008d3d0();
    iVar6 = uVar5 + local_24;
    if (local_34 == 0) {
      do {
        iVar4 = *(int *)(iVar3 + 8);
        if (iVar6 + iVar4 < *(int *)(iVar3 + 0x10)) {
          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;
          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {
            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {
              uVar5 = iVar7 + 2;
              goto LAB_0008d5d0;
            }
          }
        }
        iVar4 = FUN_0008d3d0();
      } while (iVar4 == 0);
      uVar5 = iVar6 + 1;
      local_34 = iVar4;
    }
    else {
LAB_0008d645:
      uVar5 = iVar6 + 1;
    }
  }
LAB_0008d5d0:
  *(uint *)((ulonglong)uVar8 >> 0x20) = uVar5;
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return local_34;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00116110();
}


PUSH EBP
PUSH EDI
CALL 0x00036ac5
ADD EDI,0xee921
PUSH ESI
MOV ESI,EAX
PUSH EBX
MOV EBX,0x1
SUB ESP,0x2c
MOV dword ptr [ESP + 0xc],EDX
MOV EDX,0x9
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x1c],EAX
XOR EAX,EAX
MOV EAX,ESI
MOV dword ptr [ESP + 0x18],0x0
CALL 0x0008d3d0
MOV dword ptr [ESP + 0x8],EAX
TEST EAX,EAX
JNZ 0x0008d5d0
MOV EAX,dword ptr [ESI + 0x8]
ADD EAX,dword ptr [ESI + 0xc]
MOVZX EDX,byte ptr [EAX]
TEST DL,DL
JS 0x0008d5ef
MOVZX EAX,DL
MOV dword ptr [ESP + 0x18],EAX
LEA EDX,[EAX + EBX*0x1 + 0x64]
MOV EAX,ESI
CALL 0x0008d3d0
ADD EBX,dword ptr [ESP + 0x18]
MOV dword ptr [ESP + 0x8],EAX
TEST EAX,EAX
JNZ 0x0008d645
LEA ESI,[ESI]
MOV EDI,dword ptr [ESI + 0x8]
MOV EBP,dword ptr [ESI + 0x10]
LEA EAX,[EBX + EDI*0x1]
CMP EBP,EAX
JLE 0x0008d5b9
MOV ECX,dword ptr [ESI + 0xc]
CMP byte ptr [ECX + EAX*0x1],0x0
JZ 0x0008d645
ADD ECX,EDI
JMP 0x0008d5ad
CMP byte ptr [EBX + ECX*0x1 + 0x1],0x0
JZ 0x0008d640
MOV EBX,EAX
LEA EAX,[EBX + 0x1]
LEA EDX,[EDI + EAX*0x1]
CMP EDX,EBP
JL 0x0008d5a0
MOV EBX,EAX
LEA EDX,[EBX + 0x64]
MOV EAX,ESI
CALL 0x0008d3d0
TEST EAX,EAX
JZ 0x0008d580
MOV dword ptr [ESP + 0x8],EAX
ADD EBX,0x1
NOP
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [EAX],EBX
MOV EAX,dword ptr [ESP + 0x8]
MOV ESI,dword ptr [ESP + 0x1c]
XOR ESI,dword ptr GS:[0x14]
JNZ 0x0008d64d
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EDX,[ESP + 0x18]
CALL 0x00046230
MOVZX EBX,AL
MOV EAX,dword ptr [ESP + 0x18]
CMP EAX,0x10000
JBE 0x0008d561
SUB ESP,0xc
LEA EAX,[EDI + 0xfffa0934]
ADD EBX,0x1
PUSH EAX
LEA EAX,[EDI + 0xfffa3c05]
PUSH 0x30133
PUSH EAX
LEA EAX,[EDI + 0xfffa39ca]
PUSH EAX
PUSH 0xb
CALL 0x0006e260
ADD ESP,0x20
MOV dword ptr [ESP + 0x8],0xb
JMP 0x0008d5d0
ADD EBX,0x2
JMP 0x0008d5d0
ADD EBX,0x1
JMP 0x0008d5d0
CALL 0x00116110
(translation_unit "/* WARNING: Removing unreachable block (ram,0x0008d60a) */\n\nint FUN_0008d500(void)\n\n{\n  int iVar1;\n  byte bVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  undefined8 uVar8;\n  int local_34;\n  uint local_24;\n  \n  uVar8 = FUN_00036ac5();\n  iVar3 = (int)uVar8;\n  uVar5 = 1;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0;\n  local_34 = FUN_0008d3d0();\n  if (local_34 == 0) {\n    bVar2 = *(byte *)(*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc));\n    if ((char)bVar2 < '\0') {\n      uVar5 = FUN_00046230();\n      uVar5 = uVar5 & 0xff;\n    }\n    else {\n      local_24 = (uint)bVar2;\n    }\n    local_34 = FUN_0008d3d0();\n    iVar6 = uVar5 + local_24;\n    if (local_34 == 0) {\n      do {\n        iVar4 = *(int *)(iVar3 + 8);\n        if (iVar6 + iVar4 < *(int *)(iVar3 + 0x10)) {\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar4 = FUN_0008d3d0();\n      } while (iVar4 == 0);\n      uVar5 = iVar6 + 1;\n      local_34 = iVar4;\n    }\n    else {\nLAB_0008d645:\n      uVar5 = iVar6 + 1;\n    }\n  }\nLAB_0008d5d0:\n  *(uint *)((ulonglong)uVar8 >> 0x20) = uVar5;\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_34;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00116110();\n}\n\n" comment (function_definition "int FUN_0008d500(void)\n\n{\n  int iVar1;\n  byte bVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  undefined8 uVar8;\n  int local_34;\n  uint local_24;\n  \n  uVar8 = FUN_00036ac5();\n  iVar3 = (int)uVar8;\n  uVar5 = 1;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0;\n  local_34 = FUN_0008d3d0();\n  if (local_34 == 0) {\n    bVar2 = *(byte *)(*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc));\n    if ((char)bVar2 < '\0') {\n      uVar5 = FUN_00046230();\n      uVar5 = uVar5 & 0xff;\n    }\n    else {\n      local_24 = (uint)bVar2;\n    }\n    local_34 = FUN_0008d3d0();\n    iVar6 = uVar5 + local_24;\n    if (local_34 == 0) {\n      do {\n        iVar4 = *(int *)(iVar3 + 8);\n        if (iVar6 + iVar4 < *(int *)(iVar3 + 0x10)) {\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar4 = FUN_0008d3d0();\n      } while (iVar4 == 0);\n      uVar5 = iVar6 + 1;\n      local_34 = iVar4;\n    }\n    else {\nLAB_0008d645:\n      uVar5 = iVar6 + 1;\n    }\n  }\nLAB_0008d5d0:\n  *(uint *)((ulonglong)uVar8 >> 0x20) = uVar5;\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_34;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00116110();\n}" primitive_type (function_declarator "FUN_0008d500(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  byte bVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  undefined8 uVar8;\n  int local_34;\n  uint local_24;\n  \n  uVar8 = FUN_00036ac5();\n  iVar3 = (int)uVar8;\n  uVar5 = 1;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0;\n  local_34 = FUN_0008d3d0();\n  if (local_34 == 0) {\n    bVar2 = *(byte *)(*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc));\n    if ((char)bVar2 < '\0') {\n      uVar5 = FUN_00046230();\n      uVar5 = uVar5 & 0xff;\n    }\n    else {\n      local_24 = (uint)bVar2;\n    }\n    local_34 = FUN_0008d3d0();\n    iVar6 = uVar5 + local_24;\n    if (local_34 == 0) {\n      do {\n        iVar4 = *(int *)(iVar3 + 8);\n        if (iVar6 + iVar4 < *(int *)(iVar3 + 0x10)) {\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar4 = FUN_0008d3d0();\n      } while (iVar4 == 0);\n      uVar5 = iVar6 + 1;\n      local_34 = iVar4;\n    }\n    else {\nLAB_0008d645:\n      uVar5 = iVar6 + 1;\n    }\n  }\nLAB_0008d5d0:\n  *(uint *)((ulonglong)uVar8 >> 0x20) = uVar5;\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_34;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00116110();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined8 uVar8;" type_identifier identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "uint local_24;" type_identifier identifier ;) (expression_statement "uVar8 = FUN_00036ac5();" (assignment_expression "uVar8 = FUN_00036ac5()" identifier = (call_expression "FUN_00036ac5()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = (int)uVar8;" (assignment_expression "iVar3 = (int)uVar8" identifier = (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" identifier = number_literal) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "local_34 = FUN_0008d3d0();" (assignment_expression "local_34 = FUN_0008d3d0()" identifier = (call_expression "FUN_0008d3d0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (local_34 == 0) {\n    bVar2 = *(byte *)(*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc));\n    if ((char)bVar2 < '\0') {\n      uVar5 = FUN_00046230();\n      uVar5 = uVar5 & 0xff;\n    }\n    else {\n      local_24 = (uint)bVar2;\n    }\n    local_34 = FUN_0008d3d0();\n    iVar6 = uVar5 + local_24;\n    if (local_34 == 0) {\n      do {\n        iVar4 = *(int *)(iVar3 + 8);\n        if (iVar6 + iVar4 < *(int *)(iVar3 + 0x10)) {\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar4 = FUN_0008d3d0();\n      } while (iVar4 == 0);\n      uVar5 = iVar6 + 1;\n      local_34 = iVar4;\n    }\n    else {\nLAB_0008d645:\n      uVar5 = iVar6 + 1;\n    }\n  }" if (parenthesized_expression "(local_34 == 0)" ( (binary_expression "local_34 == 0" identifier == number_literal) )) (compound_statement "{\n    bVar2 = *(byte *)(*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc));\n    if ((char)bVar2 < '\0') {\n      uVar5 = FUN_00046230();\n      uVar5 = uVar5 & 0xff;\n    }\n    else {\n      local_24 = (uint)bVar2;\n    }\n    local_34 = FUN_0008d3d0();\n    iVar6 = uVar5 + local_24;\n    if (local_34 == 0) {\n      do {\n        iVar4 = *(int *)(iVar3 + 8);\n        if (iVar6 + iVar4 < *(int *)(iVar3 + 0x10)) {\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar4 = FUN_0008d3d0();\n      } while (iVar4 == 0);\n      uVar5 = iVar6 + 1;\n      local_34 = iVar4;\n    }\n    else {\nLAB_0008d645:\n      uVar5 = iVar6 + 1;\n    }\n  }" { (expression_statement "bVar2 = *(byte *)(*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc));" (assignment_expression "bVar2 = *(byte *)(*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc))" identifier = (pointer_expression "*(byte *)(*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc))" * (cast_expression "(byte *)(*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc))" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc))" ( (binary_expression "*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc)" (pointer_expression "*(int *)(iVar3 + 8)" * (cast_expression "(int *)(iVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) + (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) ))))) ;) (if_statement "if ((char)bVar2 < '\0') {\n      uVar5 = FUN_00046230();\n      uVar5 = uVar5 & 0xff;\n    }\n    else {\n      local_24 = (uint)bVar2;\n    }" if (parenthesized_expression "((char)bVar2 < '\0')" ( (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      uVar5 = FUN_00046230();\n      uVar5 = uVar5 & 0xff;\n    }" { (expression_statement "uVar5 = FUN_00046230();" (assignment_expression "uVar5 = FUN_00046230()" identifier = (call_expression "FUN_00046230()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar5 = uVar5 & 0xff;" (assignment_expression "uVar5 = uVar5 & 0xff" identifier = (binary_expression "uVar5 & 0xff" identifier & number_literal)) ;) }) (else_clause "else {\n      local_24 = (uint)bVar2;\n    }" else (compound_statement "{\n      local_24 = (uint)bVar2;\n    }" { (expression_statement "local_24 = (uint)bVar2;" (assignment_expression "local_24 = (uint)bVar2" identifier = (cast_expression "(uint)bVar2" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) }))) (expression_statement "local_34 = FUN_0008d3d0();" (assignment_expression "local_34 = FUN_0008d3d0()" identifier = (call_expression "FUN_0008d3d0()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar6 = uVar5 + local_24;" (assignment_expression "iVar6 = uVar5 + local_24" identifier = (binary_expression "uVar5 + local_24" identifier + identifier)) ;) (if_statement "if (local_34 == 0) {\n      do {\n        iVar4 = *(int *)(iVar3 + 8);\n        if (iVar6 + iVar4 < *(int *)(iVar3 + 0x10)) {\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar4 = FUN_0008d3d0();\n      } while (iVar4 == 0);\n      uVar5 = iVar6 + 1;\n      local_34 = iVar4;\n    }\n    else {\nLAB_0008d645:\n      uVar5 = iVar6 + 1;\n    }" if (parenthesized_expression "(local_34 == 0)" ( (binary_expression "local_34 == 0" identifier == number_literal) )) (compound_statement "{\n      do {\n        iVar4 = *(int *)(iVar3 + 8);\n        if (iVar6 + iVar4 < *(int *)(iVar3 + 0x10)) {\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar4 = FUN_0008d3d0();\n      } while (iVar4 == 0);\n      uVar5 = iVar6 + 1;\n      local_34 = iVar4;\n    }" { (do_statement "do {\n        iVar4 = *(int *)(iVar3 + 8);\n        if (iVar6 + iVar4 < *(int *)(iVar3 + 0x10)) {\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar4 = FUN_0008d3d0();\n      } while (iVar4 == 0);" do (compound_statement "{\n        iVar4 = *(int *)(iVar3 + 8);\n        if (iVar6 + iVar4 < *(int *)(iVar3 + 0x10)) {\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar4 = FUN_0008d3d0();\n      }" { (expression_statement "iVar4 = *(int *)(iVar3 + 8);" (assignment_expression "iVar4 = *(int *)(iVar3 + 8)" identifier = (pointer_expression "*(int *)(iVar3 + 8)" * (cast_expression "(int *)(iVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) ))))) ;) (if_statement "if (iVar6 + iVar4 < *(int *)(iVar3 + 0x10)) {\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }" if (parenthesized_expression "(iVar6 + iVar4 < *(int *)(iVar3 + 0x10))" ( (binary_expression "iVar6 + iVar4 < *(int *)(iVar3 + 0x10)" (binary_expression "iVar6 + iVar4" identifier + identifier) < (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) ))))) )) (compound_statement "{\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }" { (if_statement "if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;" if (parenthesized_expression "(*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0')" ( (binary_expression "*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0'" (pointer_expression "*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4)" * (cast_expression "(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar3 + 0xc) + iVar6 + iVar4)" ( (binary_expression "*(int *)(iVar3 + 0xc) + iVar6 + iVar4" (binary_expression "*(int *)(iVar3 + 0xc) + iVar6" (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) + identifier) + identifier) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0008d645;" goto statement_identifier ;)) (while_statement "while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }" while (parenthesized_expression "(iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10))" ( (comma_expression "iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)" (assignment_expression "iVar7 = iVar6" identifier = identifier) , (comma_expression "iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)" (assignment_expression "iVar6 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) , (binary_expression "iVar4 + iVar6 < *(int *)(iVar3 + 0x10)" (binary_expression "iVar4 + iVar6" identifier + identifier) < (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) ))))))) )) (compound_statement "{\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }" { (if_statement "if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }" if (parenthesized_expression "(*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0')" ( (binary_expression "*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0'" (pointer_expression "*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4)" * (cast_expression "(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4)" ( (binary_expression "iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4" (binary_expression "iVar7 + 1 + *(int *)(iVar3 + 0xc)" (binary_expression "iVar7 + 1" identifier + number_literal) + (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) + identifier) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }" { (expression_statement "uVar5 = iVar7 + 2;" (assignment_expression "uVar5 = iVar7 + 2" identifier = (binary_expression "iVar7 + 2" identifier + number_literal)) ;) (goto_statement "goto LAB_0008d5d0;" goto statement_identifier ;) })) })) })) (expression_statement "iVar4 = FUN_0008d3d0();" (assignment_expression "iVar4 = FUN_0008d3d0()" identifier = (call_expression "FUN_0008d3d0()" identifier (argument_list "()" ( )))) ;) }) while (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) ;) (expression_statement "uVar5 = iVar6 + 1;" (assignment_expression "uVar5 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "local_34 = iVar4;" (assignment_expression "local_34 = iVar4" identifier = identifier) ;) }) (else_clause "else {\nLAB_0008d645:\n      uVar5 = iVar6 + 1;\n    }" else (compound_statement "{\nLAB_0008d645:\n      uVar5 = iVar6 + 1;\n    }" { (labeled_statement "LAB_0008d645:\n      uVar5 = iVar6 + 1;" statement_identifier : (expression_statement "uVar5 = iVar6 + 1;" (assignment_expression "uVar5 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;)) }))) })) (labeled_statement "LAB_0008d5d0:\n  *(uint *)((ulonglong)uVar8 >> 0x20) = uVar5;" statement_identifier : (expression_statement "*(uint *)((ulonglong)uVar8 >> 0x20) = uVar5;" (assignment_expression "*(uint *)((ulonglong)uVar8 >> 0x20) = uVar5" (pointer_expression "*(uint *)((ulonglong)uVar8 >> 0x20)" * (cast_expression "(uint *)((ulonglong)uVar8 >> 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulonglong)uVar8 >> 0x20)" ( (binary_expression "(ulonglong)uVar8 >> 0x20" (cast_expression "(ulonglong)uVar8" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) = identifier) ;)) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_34;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return local_34;\n  }" { (return_statement "return local_34;" return identifier ;) })) comment (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int sessionChangesetBufferTblhdr(SessionInput *pIn,int *pnByte)\n\n{\n  byte bVar1;\n  int iVar2;\n  byte *p;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  int unaff_EDI;\n  int in_GS_OFFSET;\n  undefined8 uVar7;\n  SessionInput *in_stack_ffffffc4;\n  int in_stack_ffffffc8;\n  int local_34;\n  int nCol;\n  int local_20;\n  \n  uVar7 = __x86_get_pc_thunk_di();\n  iVar2 = (int)uVar7;\n  uVar4 = 1;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  nCol = 0;\n  local_34 = sessionInputBuffer(in_stack_ffffffc4,in_stack_ffffffc8);\n  if (local_34 == 0) {\n    p = (byte *)(*(int *)(iVar2 + 8) + *(int *)(iVar2 + 0xc));\n    bVar1 = *p;\n    if ((char)bVar1 < '\0') {\n      bVar1 = sqlite3GetVarint32(p,(u32 *)&nCol);\n      uVar4 = (uint)bVar1;\n      if (0x10000 < (uint)nCol) {\n        uVar4 = uVar4 + 1;\n        sqlite3_log(0xb,&UNK_000922eb + unaff_EDI,unaff_EDI + 0x92526,0x30133,unaff_EDI + 0x8f255);\n        local_34 = 0xb;\n        goto LAB_0008d5d0;\n      }\n    }\n    else {\n      nCol = (int)bVar1;\n    }\n    local_34 = sessionInputBuffer(in_stack_ffffffc4,in_stack_ffffffc8);\n    iVar5 = uVar4 + nCol;\n    if (local_34 == 0) {\n      do {\n        iVar3 = *(int *)(iVar2 + 8);\n        if (iVar5 + iVar3 < *(int *)(iVar2 + 0x10)) {\n          if (*(char *)(*(int *)(iVar2 + 0xc) + iVar5 + iVar3) == '\0') goto LAB_0008d645;\n          while (iVar6 = iVar5, iVar5 = iVar6 + 1, iVar3 + iVar5 < *(int *)(iVar2 + 0x10)) {\n            if (*(char *)(iVar6 + 1 + *(int *)(iVar2 + 0xc) + iVar3) == '\0') {\n              uVar4 = iVar6 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar3 = sessionInputBuffer(in_stack_ffffffc4,in_stack_ffffffc8);\n      } while (iVar3 == 0);\n      uVar4 = iVar5 + 1;\n      local_34 = iVar3;\n    }\n    else {\nLAB_0008d645:\n      uVar4 = iVar5 + 1;\n    }\n  }\nLAB_0008d5d0:\n  *(uint *)((ulonglong)uVar7 >> 0x20) = uVar4;\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return local_34;\n}\n\n" (function_definition "int sessionChangesetBufferTblhdr(SessionInput *pIn,int *pnByte)\n\n{\n  byte bVar1;\n  int iVar2;\n  byte *p;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  int unaff_EDI;\n  int in_GS_OFFSET;\n  undefined8 uVar7;\n  SessionInput *in_stack_ffffffc4;\n  int in_stack_ffffffc8;\n  int local_34;\n  int nCol;\n  int local_20;\n  \n  uVar7 = __x86_get_pc_thunk_di();\n  iVar2 = (int)uVar7;\n  uVar4 = 1;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  nCol = 0;\n  local_34 = sessionInputBuffer(in_stack_ffffffc4,in_stack_ffffffc8);\n  if (local_34 == 0) {\n    p = (byte *)(*(int *)(iVar2 + 8) + *(int *)(iVar2 + 0xc));\n    bVar1 = *p;\n    if ((char)bVar1 < '\0') {\n      bVar1 = sqlite3GetVarint32(p,(u32 *)&nCol);\n      uVar4 = (uint)bVar1;\n      if (0x10000 < (uint)nCol) {\n        uVar4 = uVar4 + 1;\n        sqlite3_log(0xb,&UNK_000922eb + unaff_EDI,unaff_EDI + 0x92526,0x30133,unaff_EDI + 0x8f255);\n        local_34 = 0xb;\n        goto LAB_0008d5d0;\n      }\n    }\n    else {\n      nCol = (int)bVar1;\n    }\n    local_34 = sessionInputBuffer(in_stack_ffffffc4,in_stack_ffffffc8);\n    iVar5 = uVar4 + nCol;\n    if (local_34 == 0) {\n      do {\n        iVar3 = *(int *)(iVar2 + 8);\n        if (iVar5 + iVar3 < *(int *)(iVar2 + 0x10)) {\n          if (*(char *)(*(int *)(iVar2 + 0xc) + iVar5 + iVar3) == '\0') goto LAB_0008d645;\n          while (iVar6 = iVar5, iVar5 = iVar6 + 1, iVar3 + iVar5 < *(int *)(iVar2 + 0x10)) {\n            if (*(char *)(iVar6 + 1 + *(int *)(iVar2 + 0xc) + iVar3) == '\0') {\n              uVar4 = iVar6 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar3 = sessionInputBuffer(in_stack_ffffffc4,in_stack_ffffffc8);\n      } while (iVar3 == 0);\n      uVar4 = iVar5 + 1;\n      local_34 = iVar3;\n    }\n    else {\nLAB_0008d645:\n      uVar4 = iVar5 + 1;\n    }\n  }\nLAB_0008d5d0:\n  *(uint *)((ulonglong)uVar7 >> 0x20) = uVar4;\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return local_34;\n}" primitive_type (function_declarator "sessionChangesetBufferTblhdr(SessionInput *pIn,int *pnByte)" identifier (parameter_list "(SessionInput *pIn,int *pnByte)" ( (parameter_declaration "SessionInput *pIn" type_identifier (pointer_declarator "*pIn" * identifier)) , (parameter_declaration "int *pnByte" primitive_type (pointer_declarator "*pnByte" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  byte *p;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  int unaff_EDI;\n  int in_GS_OFFSET;\n  undefined8 uVar7;\n  SessionInput *in_stack_ffffffc4;\n  int in_stack_ffffffc8;\n  int local_34;\n  int nCol;\n  int local_20;\n  \n  uVar7 = __x86_get_pc_thunk_di();\n  iVar2 = (int)uVar7;\n  uVar4 = 1;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  nCol = 0;\n  local_34 = sessionInputBuffer(in_stack_ffffffc4,in_stack_ffffffc8);\n  if (local_34 == 0) {\n    p = (byte *)(*(int *)(iVar2 + 8) + *(int *)(iVar2 + 0xc));\n    bVar1 = *p;\n    if ((char)bVar1 < '\0') {\n      bVar1 = sqlite3GetVarint32(p,(u32 *)&nCol);\n      uVar4 = (uint)bVar1;\n      if (0x10000 < (uint)nCol) {\n        uVar4 = uVar4 + 1;\n        sqlite3_log(0xb,&UNK_000922eb + unaff_EDI,unaff_EDI + 0x92526,0x30133,unaff_EDI + 0x8f255);\n        local_34 = 0xb;\n        goto LAB_0008d5d0;\n      }\n    }\n    else {\n      nCol = (int)bVar1;\n    }\n    local_34 = sessionInputBuffer(in_stack_ffffffc4,in_stack_ffffffc8);\n    iVar5 = uVar4 + nCol;\n    if (local_34 == 0) {\n      do {\n        iVar3 = *(int *)(iVar2 + 8);\n        if (iVar5 + iVar3 < *(int *)(iVar2 + 0x10)) {\n          if (*(char *)(*(int *)(iVar2 + 0xc) + iVar5 + iVar3) == '\0') goto LAB_0008d645;\n          while (iVar6 = iVar5, iVar5 = iVar6 + 1, iVar3 + iVar5 < *(int *)(iVar2 + 0x10)) {\n            if (*(char *)(iVar6 + 1 + *(int *)(iVar2 + 0xc) + iVar3) == '\0') {\n              uVar4 = iVar6 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar3 = sessionInputBuffer(in_stack_ffffffc4,in_stack_ffffffc8);\n      } while (iVar3 == 0);\n      uVar4 = iVar5 + 1;\n      local_34 = iVar3;\n    }\n    else {\nLAB_0008d645:\n      uVar4 = iVar5 + 1;\n    }\n  }\nLAB_0008d5d0:\n  *(uint *)((ulonglong)uVar7 >> 0x20) = uVar4;\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return local_34;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined8 uVar7;" type_identifier identifier ;) (declaration "SessionInput *in_stack_ffffffc4;" type_identifier (pointer_declarator "*in_stack_ffffffc4" * identifier) ;) (declaration "int in_stack_ffffffc8;" primitive_type identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "int nCol;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "uVar7 = __x86_get_pc_thunk_di();" (assignment_expression "uVar7 = __x86_get_pc_thunk_di()" identifier = (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar2 = (int)uVar7;" (assignment_expression "iVar2 = (int)uVar7" identifier = (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "nCol = 0;" (assignment_expression "nCol = 0" identifier = number_literal) ;) (expression_statement "local_34 = sessionInputBuffer(in_stack_ffffffc4,in_stack_ffffffc8);" (assignment_expression "local_34 = sessionInputBuffer(in_stack_ffffffc4,in_stack_ffffffc8)" identifier = (call_expression "sessionInputBuffer(in_stack_ffffffc4,in_stack_ffffffc8)" identifier (argument_list "(in_stack_ffffffc4,in_stack_ffffffc8)" ( identifier , identifier )))) ;) (if_statement "if (local_34 == 0) {\n    p = (byte *)(*(int *)(iVar2 + 8) + *(int *)(iVar2 + 0xc));\n    bVar1 = *p;\n    if ((char)bVar1 < '\0') {\n      bVar1 = sqlite3GetVarint32(p,(u32 *)&nCol);\n      uVar4 = (uint)bVar1;\n      if (0x10000 < (uint)nCol) {\n        uVar4 = uVar4 + 1;\n        sqlite3_log(0xb,&UNK_000922eb + unaff_EDI,unaff_EDI + 0x92526,0x30133,unaff_EDI + 0x8f255);\n        local_34 = 0xb;\n        goto LAB_0008d5d0;\n      }\n    }\n    else {\n      nCol = (int)bVar1;\n    }\n    local_34 = sessionInputBuffer(in_stack_ffffffc4,in_stack_ffffffc8);\n    iVar5 = uVar4 + nCol;\n    if (local_34 == 0) {\n      do {\n        iVar3 = *(int *)(iVar2 + 8);\n        if (iVar5 + iVar3 < *(int *)(iVar2 + 0x10)) {\n          if (*(char *)(*(int *)(iVar2 + 0xc) + iVar5 + iVar3) == '\0') goto LAB_0008d645;\n          while (iVar6 = iVar5, iVar5 = iVar6 + 1, iVar3 + iVar5 < *(int *)(iVar2 + 0x10)) {\n            if (*(char *)(iVar6 + 1 + *(int *)(iVar2 + 0xc) + iVar3) == '\0') {\n              uVar4 = iVar6 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar3 = sessionInputBuffer(in_stack_ffffffc4,in_stack_ffffffc8);\n      } while (iVar3 == 0);\n      uVar4 = iVar5 + 1;\n      local_34 = iVar3;\n    }\n    else {\nLAB_0008d645:\n      uVar4 = iVar5 + 1;\n    }\n  }" if (parenthesized_expression "(local_34 == 0)" ( (binary_expression "local_34 == 0" identifier == number_literal) )) (compound_statement "{\n    p = (byte *)(*(int *)(iVar2 + 8) + *(int *)(iVar2 + 0xc));\n    bVar1 = *p;\n    if ((char)bVar1 < '\0') {\n      bVar1 = sqlite3GetVarint32(p,(u32 *)&nCol);\n      uVar4 = (uint)bVar1;\n      if (0x10000 < (uint)nCol) {\n        uVar4 = uVar4 + 1;\n        sqlite3_log(0xb,&UNK_000922eb + unaff_EDI,unaff_EDI + 0x92526,0x30133,unaff_EDI + 0x8f255);\n        local_34 = 0xb;\n        goto LAB_0008d5d0;\n      }\n    }\n    else {\n      nCol = (int)bVar1;\n    }\n    local_34 = sessionInputBuffer(in_stack_ffffffc4,in_stack_ffffffc8);\n    iVar5 = uVar4 + nCol;\n    if (local_34 == 0) {\n      do {\n        iVar3 = *(int *)(iVar2 + 8);\n        if (iVar5 + iVar3 < *(int *)(iVar2 + 0x10)) {\n          if (*(char *)(*(int *)(iVar2 + 0xc) + iVar5 + iVar3) == '\0') goto LAB_0008d645;\n          while (iVar6 = iVar5, iVar5 = iVar6 + 1, iVar3 + iVar5 < *(int *)(iVar2 + 0x10)) {\n            if (*(char *)(iVar6 + 1 + *(int *)(iVar2 + 0xc) + iVar3) == '\0') {\n              uVar4 = iVar6 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar3 = sessionInputBuffer(in_stack_ffffffc4,in_stack_ffffffc8);\n      } while (iVar3 == 0);\n      uVar4 = iVar5 + 1;\n      local_34 = iVar3;\n    }\n    else {\nLAB_0008d645:\n      uVar4 = iVar5 + 1;\n    }\n  }" { (expression_statement "p = (byte *)(*(int *)(iVar2 + 8) + *(int *)(iVar2 + 0xc));" (assignment_expression "p = (byte *)(*(int *)(iVar2 + 8) + *(int *)(iVar2 + 0xc))" identifier = (cast_expression "(byte *)(*(int *)(iVar2 + 8) + *(int *)(iVar2 + 0xc))" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar2 + 8) + *(int *)(iVar2 + 0xc))" ( (binary_expression "*(int *)(iVar2 + 8) + *(int *)(iVar2 + 0xc)" (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) + (pointer_expression "*(int *)(iVar2 + 0xc)" * (cast_expression "(int *)(iVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) ))))) )))) ;) (expression_statement "bVar1 = *p;" (assignment_expression "bVar1 = *p" identifier = (pointer_expression "*p" * identifier)) ;) (if_statement "if ((char)bVar1 < '\0') {\n      bVar1 = sqlite3GetVarint32(p,(u32 *)&nCol);\n      uVar4 = (uint)bVar1;\n      if (0x10000 < (uint)nCol) {\n        uVar4 = uVar4 + 1;\n        sqlite3_log(0xb,&UNK_000922eb + unaff_EDI,unaff_EDI + 0x92526,0x30133,unaff_EDI + 0x8f255);\n        local_34 = 0xb;\n        goto LAB_0008d5d0;\n      }\n    }\n    else {\n      nCol = (int)bVar1;\n    }" if (parenthesized_expression "((char)bVar1 < '\0')" ( (binary_expression "(char)bVar1 < '\0'" (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      bVar1 = sqlite3GetVarint32(p,(u32 *)&nCol);\n      uVar4 = (uint)bVar1;\n      if (0x10000 < (uint)nCol) {\n        uVar4 = uVar4 + 1;\n        sqlite3_log(0xb,&UNK_000922eb + unaff_EDI,unaff_EDI + 0x92526,0x30133,unaff_EDI + 0x8f255);\n        local_34 = 0xb;\n        goto LAB_0008d5d0;\n      }\n    }" { (expression_statement "bVar1 = sqlite3GetVarint32(p,(u32 *)&nCol);" (assignment_expression "bVar1 = sqlite3GetVarint32(p,(u32 *)&nCol)" identifier = (call_expression "sqlite3GetVarint32(p,(u32 *)&nCol)" identifier (argument_list "(p,(u32 *)&nCol)" ( identifier , (cast_expression "(u32 *)&nCol" ( (type_descriptor "u32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&nCol" & identifier)) )))) ;) (expression_statement "uVar4 = (uint)bVar1;" (assignment_expression "uVar4 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if (0x10000 < (uint)nCol) {\n        uVar4 = uVar4 + 1;\n        sqlite3_log(0xb,&UNK_000922eb + unaff_EDI,unaff_EDI + 0x92526,0x30133,unaff_EDI + 0x8f255);\n        local_34 = 0xb;\n        goto LAB_0008d5d0;\n      }" if (parenthesized_expression "(0x10000 < (uint)nCol)" ( (binary_expression "0x10000 < (uint)nCol" number_literal < (cast_expression "(uint)nCol" ( (type_descriptor "uint" type_identifier) ) identifier)) )) (compound_statement "{\n        uVar4 = uVar4 + 1;\n        sqlite3_log(0xb,&UNK_000922eb + unaff_EDI,unaff_EDI + 0x92526,0x30133,unaff_EDI + 0x8f255);\n        local_34 = 0xb;\n        goto LAB_0008d5d0;\n      }" { (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (expression_statement "sqlite3_log(0xb,&UNK_000922eb + unaff_EDI,unaff_EDI + 0x92526,0x30133,unaff_EDI + 0x8f255);" (call_expression "sqlite3_log(0xb,&UNK_000922eb + unaff_EDI,unaff_EDI + 0x92526,0x30133,unaff_EDI + 0x8f255)" identifier (argument_list "(0xb,&UNK_000922eb + unaff_EDI,unaff_EDI + 0x92526,0x30133,unaff_EDI + 0x8f255)" ( number_literal , (binary_expression "&UNK_000922eb + unaff_EDI" (pointer_expression "&UNK_000922eb" & identifier) + identifier) , (binary_expression "unaff_EDI + 0x92526" identifier + number_literal) , number_literal , (binary_expression "unaff_EDI + 0x8f255" identifier + number_literal) ))) ;) (expression_statement "local_34 = 0xb;" (assignment_expression "local_34 = 0xb" identifier = number_literal) ;) (goto_statement "goto LAB_0008d5d0;" goto statement_identifier ;) })) }) (else_clause "else {\n      nCol = (int)bVar1;\n    }" else (compound_statement "{\n      nCol = (int)bVar1;\n    }" { (expression_statement "nCol = (int)bVar1;" (assignment_expression "nCol = (int)bVar1" identifier = (cast_expression "(int)bVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }))) (expression_statement "local_34 = sessionInputBuffer(in_stack_ffffffc4,in_stack_ffffffc8);" (assignment_expression "local_34 = sessionInputBuffer(in_stack_ffffffc4,in_stack_ffffffc8)" identifier = (call_expression "sessionInputBuffer(in_stack_ffffffc4,in_stack_ffffffc8)" identifier (argument_list "(in_stack_ffffffc4,in_stack_ffffffc8)" ( identifier , identifier )))) ;) (expression_statement "iVar5 = uVar4 + nCol;" (assignment_expression "iVar5 = uVar4 + nCol" identifier = (binary_expression "uVar4 + nCol" identifier + identifier)) ;) (if_statement "if (local_34 == 0) {\n      do {\n        iVar3 = *(int *)(iVar2 + 8);\n        if (iVar5 + iVar3 < *(int *)(iVar2 + 0x10)) {\n          if (*(char *)(*(int *)(iVar2 + 0xc) + iVar5 + iVar3) == '\0') goto LAB_0008d645;\n          while (iVar6 = iVar5, iVar5 = iVar6 + 1, iVar3 + iVar5 < *(int *)(iVar2 + 0x10)) {\n            if (*(char *)(iVar6 + 1 + *(int *)(iVar2 + 0xc) + iVar3) == '\0') {\n              uVar4 = iVar6 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar3 = sessionInputBuffer(in_stack_ffffffc4,in_stack_ffffffc8);\n      } while (iVar3 == 0);\n      uVar4 = iVar5 + 1;\n      local_34 = iVar3;\n    }\n    else {\nLAB_0008d645:\n      uVar4 = iVar5 + 1;\n    }" if (parenthesized_expression "(local_34 == 0)" ( (binary_expression "local_34 == 0" identifier == number_literal) )) (compound_statement "{\n      do {\n        iVar3 = *(int *)(iVar2 + 8);\n        if (iVar5 + iVar3 < *(int *)(iVar2 + 0x10)) {\n          if (*(char *)(*(int *)(iVar2 + 0xc) + iVar5 + iVar3) == '\0') goto LAB_0008d645;\n          while (iVar6 = iVar5, iVar5 = iVar6 + 1, iVar3 + iVar5 < *(int *)(iVar2 + 0x10)) {\n            if (*(char *)(iVar6 + 1 + *(int *)(iVar2 + 0xc) + iVar3) == '\0') {\n              uVar4 = iVar6 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar3 = sessionInputBuffer(in_stack_ffffffc4,in_stack_ffffffc8);\n      } while (iVar3 == 0);\n      uVar4 = iVar5 + 1;\n      local_34 = iVar3;\n    }" { (do_statement "do {\n        iVar3 = *(int *)(iVar2 + 8);\n        if (iVar5 + iVar3 < *(int *)(iVar2 + 0x10)) {\n          if (*(char *)(*(int *)(iVar2 + 0xc) + iVar5 + iVar3) == '\0') goto LAB_0008d645;\n          while (iVar6 = iVar5, iVar5 = iVar6 + 1, iVar3 + iVar5 < *(int *)(iVar2 + 0x10)) {\n            if (*(char *)(iVar6 + 1 + *(int *)(iVar2 + 0xc) + iVar3) == '\0') {\n              uVar4 = iVar6 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar3 = sessionInputBuffer(in_stack_ffffffc4,in_stack_ffffffc8);\n      } while (iVar3 == 0);" do (compound_statement "{\n        iVar3 = *(int *)(iVar2 + 8);\n        if (iVar5 + iVar3 < *(int *)(iVar2 + 0x10)) {\n          if (*(char *)(*(int *)(iVar2 + 0xc) + iVar5 + iVar3) == '\0') goto LAB_0008d645;\n          while (iVar6 = iVar5, iVar5 = iVar6 + 1, iVar3 + iVar5 < *(int *)(iVar2 + 0x10)) {\n            if (*(char *)(iVar6 + 1 + *(int *)(iVar2 + 0xc) + iVar3) == '\0') {\n              uVar4 = iVar6 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar3 = sessionInputBuffer(in_stack_ffffffc4,in_stack_ffffffc8);\n      }" { (expression_statement "iVar3 = *(int *)(iVar2 + 8);" (assignment_expression "iVar3 = *(int *)(iVar2 + 8)" identifier = (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) ))))) ;) (if_statement "if (iVar5 + iVar3 < *(int *)(iVar2 + 0x10)) {\n          if (*(char *)(*(int *)(iVar2 + 0xc) + iVar5 + iVar3) == '\0') goto LAB_0008d645;\n          while (iVar6 = iVar5, iVar5 = iVar6 + 1, iVar3 + iVar5 < *(int *)(iVar2 + 0x10)) {\n            if (*(char *)(iVar6 + 1 + *(int *)(iVar2 + 0xc) + iVar3) == '\0') {\n              uVar4 = iVar6 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }" if (parenthesized_expression "(iVar5 + iVar3 < *(int *)(iVar2 + 0x10))" ( (binary_expression "iVar5 + iVar3 < *(int *)(iVar2 + 0x10)" (binary_expression "iVar5 + iVar3" identifier + identifier) < (pointer_expression "*(int *)(iVar2 + 0x10)" * (cast_expression "(int *)(iVar2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) ))))) )) (compound_statement "{\n          if (*(char *)(*(int *)(iVar2 + 0xc) + iVar5 + iVar3) == '\0') goto LAB_0008d645;\n          while (iVar6 = iVar5, iVar5 = iVar6 + 1, iVar3 + iVar5 < *(int *)(iVar2 + 0x10)) {\n            if (*(char *)(iVar6 + 1 + *(int *)(iVar2 + 0xc) + iVar3) == '\0') {\n              uVar4 = iVar6 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }" { (if_statement "if (*(char *)(*(int *)(iVar2 + 0xc) + iVar5 + iVar3) == '\0') goto LAB_0008d645;" if (parenthesized_expression "(*(char *)(*(int *)(iVar2 + 0xc) + iVar5 + iVar3) == '\0')" ( (binary_expression "*(char *)(*(int *)(iVar2 + 0xc) + iVar5 + iVar3) == '\0'" (pointer_expression "*(char *)(*(int *)(iVar2 + 0xc) + iVar5 + iVar3)" * (cast_expression "(char *)(*(int *)(iVar2 + 0xc) + iVar5 + iVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar2 + 0xc) + iVar5 + iVar3)" ( (binary_expression "*(int *)(iVar2 + 0xc) + iVar5 + iVar3" (binary_expression "*(int *)(iVar2 + 0xc) + iVar5" (pointer_expression "*(int *)(iVar2 + 0xc)" * (cast_expression "(int *)(iVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) + identifier) + identifier) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0008d645;" goto statement_identifier ;)) (while_statement "while (iVar6 = iVar5, iVar5 = iVar6 + 1, iVar3 + iVar5 < *(int *)(iVar2 + 0x10)) {\n            if (*(char *)(iVar6 + 1 + *(int *)(iVar2 + 0xc) + iVar3) == '\0') {\n              uVar4 = iVar6 + 2;\n              goto LAB_0008d5d0;\n            }\n          }" while (parenthesized_expression "(iVar6 = iVar5, iVar5 = iVar6 + 1, iVar3 + iVar5 < *(int *)(iVar2 + 0x10))" ( (comma_expression "iVar6 = iVar5, iVar5 = iVar6 + 1, iVar3 + iVar5 < *(int *)(iVar2 + 0x10)" (assignment_expression "iVar6 = iVar5" identifier = identifier) , (comma_expression "iVar5 = iVar6 + 1, iVar3 + iVar5 < *(int *)(iVar2 + 0x10)" (assignment_expression "iVar5 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) , (binary_expression "iVar3 + iVar5 < *(int *)(iVar2 + 0x10)" (binary_expression "iVar3 + iVar5" identifier + identifier) < (pointer_expression "*(int *)(iVar2 + 0x10)" * (cast_expression "(int *)(iVar2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) ))))))) )) (compound_statement "{\n            if (*(char *)(iVar6 + 1 + *(int *)(iVar2 + 0xc) + iVar3) == '\0') {\n              uVar4 = iVar6 + 2;\n              goto LAB_0008d5d0;\n            }\n          }" { (if_statement "if (*(char *)(iVar6 + 1 + *(int *)(iVar2 + 0xc) + iVar3) == '\0') {\n              uVar4 = iVar6 + 2;\n              goto LAB_0008d5d0;\n            }" if (parenthesized_expression "(*(char *)(iVar6 + 1 + *(int *)(iVar2 + 0xc) + iVar3) == '\0')" ( (binary_expression "*(char *)(iVar6 + 1 + *(int *)(iVar2 + 0xc) + iVar3) == '\0'" (pointer_expression "*(char *)(iVar6 + 1 + *(int *)(iVar2 + 0xc) + iVar3)" * (cast_expression "(char *)(iVar6 + 1 + *(int *)(iVar2 + 0xc) + iVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 1 + *(int *)(iVar2 + 0xc) + iVar3)" ( (binary_expression "iVar6 + 1 + *(int *)(iVar2 + 0xc) + iVar3" (binary_expression "iVar6 + 1 + *(int *)(iVar2 + 0xc)" (binary_expression "iVar6 + 1" identifier + number_literal) + (pointer_expression "*(int *)(iVar2 + 0xc)" * (cast_expression "(int *)(iVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) ))))) + identifier) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n              uVar4 = iVar6 + 2;\n              goto LAB_0008d5d0;\n            }" { (expression_statement "uVar4 = iVar6 + 2;" (assignment_expression "uVar4 = iVar6 + 2" identifier = (binary_expression "iVar6 + 2" identifier + number_literal)) ;) (goto_statement "goto LAB_0008d5d0;" goto statement_identifier ;) })) })) })) (expression_statement "iVar3 = sessionInputBuffer(in_stack_ffffffc4,in_stack_ffffffc8);" (assignment_expression "iVar3 = sessionInputBuffer(in_stack_ffffffc4,in_stack_ffffffc8)" identifier = (call_expression "sessionInputBuffer(in_stack_ffffffc4,in_stack_ffffffc8)" identifier (argument_list "(in_stack_ffffffc4,in_stack_ffffffc8)" ( identifier , identifier )))) ;) }) while (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) ;) (expression_statement "uVar4 = iVar5 + 1;" (assignment_expression "uVar4 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "local_34 = iVar3;" (assignment_expression "local_34 = iVar3" identifier = identifier) ;) }) (else_clause "else {\nLAB_0008d645:\n      uVar4 = iVar5 + 1;\n    }" else (compound_statement "{\nLAB_0008d645:\n      uVar4 = iVar5 + 1;\n    }" { (labeled_statement "LAB_0008d645:\n      uVar4 = iVar5 + 1;" statement_identifier : (expression_statement "uVar4 = iVar5 + 1;" (assignment_expression "uVar4 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;)) }))) })) (labeled_statement "LAB_0008d5d0:\n  *(uint *)((ulonglong)uVar7 >> 0x20) = uVar4;" statement_identifier : (expression_statement "*(uint *)((ulonglong)uVar7 >> 0x20) = uVar4;" (assignment_expression "*(uint *)((ulonglong)uVar7 >> 0x20) = uVar4" (pointer_expression "*(uint *)((ulonglong)uVar7 >> 0x20)" * (cast_expression "(uint *)((ulonglong)uVar7 >> 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulonglong)uVar7 >> 0x20)" ( (binary_expression "(ulonglong)uVar7 >> 0x20" (cast_expression "(ulonglong)uVar7" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) = identifier) ;)) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return local_34;" return identifier ;) })))
(translation_unit "int FUN_0008d500(void)\n\n{\n  int iVar1;\n  byte bVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  undefined8 uVar8;\n  int local_34;\n  uint local_24;\n  \n  uVar8 = FUN_00036ac5();\n  iVar3 = (int)uVar8;\n  uVar5 = 1;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0;\n  local_34 = FUN_0008d3d0();\n  if (local_34 == 0) {\n    bVar2 = *(byte *)(*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc));\n    if ((char)bVar2 < '\0') {\n      uVar5 = FUN_00046230();\n      uVar5 = uVar5 & 0xff;\n    }\n    else {\n      local_24 = (uint)bVar2;\n    }\n    local_34 = FUN_0008d3d0();\n    iVar6 = uVar5 + local_24;\n    if (local_34 == 0) {\n      do {\n        iVar4 = *(int *)(iVar3 + 8);\n        if (iVar6 + iVar4 < *(int *)(iVar3 + 0x10)) {\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar4 = FUN_0008d3d0();\n      } while (iVar4 == 0);\n      uVar5 = iVar6 + 1;\n      local_34 = iVar4;\n    }\n    else {\nLAB_0008d645:\n      uVar5 = iVar6 + 1;\n    }\n  }\nLAB_0008d5d0:\n  *(uint *)((ulonglong)uVar8 >> 0x20) = uVar5;\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_34;\n  }\n                    \n  FUN_00116110();\n}\n\n" (function_definition "int FUN_0008d500(void)\n\n{\n  int iVar1;\n  byte bVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  undefined8 uVar8;\n  int local_34;\n  uint local_24;\n  \n  uVar8 = FUN_00036ac5();\n  iVar3 = (int)uVar8;\n  uVar5 = 1;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0;\n  local_34 = FUN_0008d3d0();\n  if (local_34 == 0) {\n    bVar2 = *(byte *)(*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc));\n    if ((char)bVar2 < '\0') {\n      uVar5 = FUN_00046230();\n      uVar5 = uVar5 & 0xff;\n    }\n    else {\n      local_24 = (uint)bVar2;\n    }\n    local_34 = FUN_0008d3d0();\n    iVar6 = uVar5 + local_24;\n    if (local_34 == 0) {\n      do {\n        iVar4 = *(int *)(iVar3 + 8);\n        if (iVar6 + iVar4 < *(int *)(iVar3 + 0x10)) {\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar4 = FUN_0008d3d0();\n      } while (iVar4 == 0);\n      uVar5 = iVar6 + 1;\n      local_34 = iVar4;\n    }\n    else {\nLAB_0008d645:\n      uVar5 = iVar6 + 1;\n    }\n  }\nLAB_0008d5d0:\n  *(uint *)((ulonglong)uVar8 >> 0x20) = uVar5;\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_34;\n  }\n                    \n  FUN_00116110();\n}" primitive_type (function_declarator "FUN_0008d500(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  byte bVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  undefined8 uVar8;\n  int local_34;\n  uint local_24;\n  \n  uVar8 = FUN_00036ac5();\n  iVar3 = (int)uVar8;\n  uVar5 = 1;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0;\n  local_34 = FUN_0008d3d0();\n  if (local_34 == 0) {\n    bVar2 = *(byte *)(*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc));\n    if ((char)bVar2 < '\0') {\n      uVar5 = FUN_00046230();\n      uVar5 = uVar5 & 0xff;\n    }\n    else {\n      local_24 = (uint)bVar2;\n    }\n    local_34 = FUN_0008d3d0();\n    iVar6 = uVar5 + local_24;\n    if (local_34 == 0) {\n      do {\n        iVar4 = *(int *)(iVar3 + 8);\n        if (iVar6 + iVar4 < *(int *)(iVar3 + 0x10)) {\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar4 = FUN_0008d3d0();\n      } while (iVar4 == 0);\n      uVar5 = iVar6 + 1;\n      local_34 = iVar4;\n    }\n    else {\nLAB_0008d645:\n      uVar5 = iVar6 + 1;\n    }\n  }\nLAB_0008d5d0:\n  *(uint *)((ulonglong)uVar8 >> 0x20) = uVar5;\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_34;\n  }\n                    \n  FUN_00116110();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined8 uVar8;" type_identifier identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "uint local_24;" type_identifier identifier ;) (expression_statement "uVar8 = FUN_00036ac5();" (assignment_expression "uVar8 = FUN_00036ac5()" identifier = (call_expression "FUN_00036ac5()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = (int)uVar8;" (assignment_expression "iVar3 = (int)uVar8" identifier = (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" identifier = number_literal) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "local_34 = FUN_0008d3d0();" (assignment_expression "local_34 = FUN_0008d3d0()" identifier = (call_expression "FUN_0008d3d0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (local_34 == 0) {\n    bVar2 = *(byte *)(*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc));\n    if ((char)bVar2 < '\0') {\n      uVar5 = FUN_00046230();\n      uVar5 = uVar5 & 0xff;\n    }\n    else {\n      local_24 = (uint)bVar2;\n    }\n    local_34 = FUN_0008d3d0();\n    iVar6 = uVar5 + local_24;\n    if (local_34 == 0) {\n      do {\n        iVar4 = *(int *)(iVar3 + 8);\n        if (iVar6 + iVar4 < *(int *)(iVar3 + 0x10)) {\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar4 = FUN_0008d3d0();\n      } while (iVar4 == 0);\n      uVar5 = iVar6 + 1;\n      local_34 = iVar4;\n    }\n    else {\nLAB_0008d645:\n      uVar5 = iVar6 + 1;\n    }\n  }" if (parenthesized_expression "(local_34 == 0)" ( (binary_expression "local_34 == 0" identifier == number_literal) )) (compound_statement "{\n    bVar2 = *(byte *)(*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc));\n    if ((char)bVar2 < '\0') {\n      uVar5 = FUN_00046230();\n      uVar5 = uVar5 & 0xff;\n    }\n    else {\n      local_24 = (uint)bVar2;\n    }\n    local_34 = FUN_0008d3d0();\n    iVar6 = uVar5 + local_24;\n    if (local_34 == 0) {\n      do {\n        iVar4 = *(int *)(iVar3 + 8);\n        if (iVar6 + iVar4 < *(int *)(iVar3 + 0x10)) {\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar4 = FUN_0008d3d0();\n      } while (iVar4 == 0);\n      uVar5 = iVar6 + 1;\n      local_34 = iVar4;\n    }\n    else {\nLAB_0008d645:\n      uVar5 = iVar6 + 1;\n    }\n  }" { (expression_statement "bVar2 = *(byte *)(*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc));" (assignment_expression "bVar2 = *(byte *)(*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc))" identifier = (pointer_expression "*(byte *)(*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc))" * (cast_expression "(byte *)(*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc))" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc))" ( (binary_expression "*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc)" (pointer_expression "*(int *)(iVar3 + 8)" * (cast_expression "(int *)(iVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) + (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) ))))) ;) (if_statement "if ((char)bVar2 < '\0') {\n      uVar5 = FUN_00046230();\n      uVar5 = uVar5 & 0xff;\n    }\n    else {\n      local_24 = (uint)bVar2;\n    }" if (parenthesized_expression "((char)bVar2 < '\0')" ( (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      uVar5 = FUN_00046230();\n      uVar5 = uVar5 & 0xff;\n    }" { (expression_statement "uVar5 = FUN_00046230();" (assignment_expression "uVar5 = FUN_00046230()" identifier = (call_expression "FUN_00046230()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar5 = uVar5 & 0xff;" (assignment_expression "uVar5 = uVar5 & 0xff" identifier = (binary_expression "uVar5 & 0xff" identifier & number_literal)) ;) }) (else_clause "else {\n      local_24 = (uint)bVar2;\n    }" else (compound_statement "{\n      local_24 = (uint)bVar2;\n    }" { (expression_statement "local_24 = (uint)bVar2;" (assignment_expression "local_24 = (uint)bVar2" identifier = (cast_expression "(uint)bVar2" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) }))) (expression_statement "local_34 = FUN_0008d3d0();" (assignment_expression "local_34 = FUN_0008d3d0()" identifier = (call_expression "FUN_0008d3d0()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar6 = uVar5 + local_24;" (assignment_expression "iVar6 = uVar5 + local_24" identifier = (binary_expression "uVar5 + local_24" identifier + identifier)) ;) (if_statement "if (local_34 == 0) {\n      do {\n        iVar4 = *(int *)(iVar3 + 8);\n        if (iVar6 + iVar4 < *(int *)(iVar3 + 0x10)) {\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar4 = FUN_0008d3d0();\n      } while (iVar4 == 0);\n      uVar5 = iVar6 + 1;\n      local_34 = iVar4;\n    }\n    else {\nLAB_0008d645:\n      uVar5 = iVar6 + 1;\n    }" if (parenthesized_expression "(local_34 == 0)" ( (binary_expression "local_34 == 0" identifier == number_literal) )) (compound_statement "{\n      do {\n        iVar4 = *(int *)(iVar3 + 8);\n        if (iVar6 + iVar4 < *(int *)(iVar3 + 0x10)) {\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar4 = FUN_0008d3d0();\n      } while (iVar4 == 0);\n      uVar5 = iVar6 + 1;\n      local_34 = iVar4;\n    }" { (do_statement "do {\n        iVar4 = *(int *)(iVar3 + 8);\n        if (iVar6 + iVar4 < *(int *)(iVar3 + 0x10)) {\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar4 = FUN_0008d3d0();\n      } while (iVar4 == 0);" do (compound_statement "{\n        iVar4 = *(int *)(iVar3 + 8);\n        if (iVar6 + iVar4 < *(int *)(iVar3 + 0x10)) {\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar4 = FUN_0008d3d0();\n      }" { (expression_statement "iVar4 = *(int *)(iVar3 + 8);" (assignment_expression "iVar4 = *(int *)(iVar3 + 8)" identifier = (pointer_expression "*(int *)(iVar3 + 8)" * (cast_expression "(int *)(iVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) ))))) ;) (if_statement "if (iVar6 + iVar4 < *(int *)(iVar3 + 0x10)) {\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }" if (parenthesized_expression "(iVar6 + iVar4 < *(int *)(iVar3 + 0x10))" ( (binary_expression "iVar6 + iVar4 < *(int *)(iVar3 + 0x10)" (binary_expression "iVar6 + iVar4" identifier + identifier) < (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) ))))) )) (compound_statement "{\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }" { (if_statement "if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;" if (parenthesized_expression "(*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0')" ( (binary_expression "*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0'" (pointer_expression "*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4)" * (cast_expression "(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar3 + 0xc) + iVar6 + iVar4)" ( (binary_expression "*(int *)(iVar3 + 0xc) + iVar6 + iVar4" (binary_expression "*(int *)(iVar3 + 0xc) + iVar6" (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) + identifier) + identifier) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0008d645;" goto statement_identifier ;)) (while_statement "while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }" while (parenthesized_expression "(iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10))" ( (comma_expression "iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)" (assignment_expression "iVar7 = iVar6" identifier = identifier) , (comma_expression "iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)" (assignment_expression "iVar6 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) , (binary_expression "iVar4 + iVar6 < *(int *)(iVar3 + 0x10)" (binary_expression "iVar4 + iVar6" identifier + identifier) < (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) ))))))) )) (compound_statement "{\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }" { (if_statement "if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }" if (parenthesized_expression "(*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0')" ( (binary_expression "*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0'" (pointer_expression "*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4)" * (cast_expression "(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4)" ( (binary_expression "iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4" (binary_expression "iVar7 + 1 + *(int *)(iVar3 + 0xc)" (binary_expression "iVar7 + 1" identifier + number_literal) + (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) + identifier) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }" { (expression_statement "uVar5 = iVar7 + 2;" (assignment_expression "uVar5 = iVar7 + 2" identifier = (binary_expression "iVar7 + 2" identifier + number_literal)) ;) (goto_statement "goto LAB_0008d5d0;" goto statement_identifier ;) })) })) })) (expression_statement "iVar4 = FUN_0008d3d0();" (assignment_expression "iVar4 = FUN_0008d3d0()" identifier = (call_expression "FUN_0008d3d0()" identifier (argument_list "()" ( )))) ;) }) while (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) ;) (expression_statement "uVar5 = iVar6 + 1;" (assignment_expression "uVar5 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "local_34 = iVar4;" (assignment_expression "local_34 = iVar4" identifier = identifier) ;) }) (else_clause "else {\nLAB_0008d645:\n      uVar5 = iVar6 + 1;\n    }" else (compound_statement "{\nLAB_0008d645:\n      uVar5 = iVar6 + 1;\n    }" { (labeled_statement "LAB_0008d645:\n      uVar5 = iVar6 + 1;" statement_identifier : (expression_statement "uVar5 = iVar6 + 1;" (assignment_expression "uVar5 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;)) }))) })) (labeled_statement "LAB_0008d5d0:\n  *(uint *)((ulonglong)uVar8 >> 0x20) = uVar5;" statement_identifier : (expression_statement "*(uint *)((ulonglong)uVar8 >> 0x20) = uVar5;" (assignment_expression "*(uint *)((ulonglong)uVar8 >> 0x20) = uVar5" (pointer_expression "*(uint *)((ulonglong)uVar8 >> 0x20)" * (cast_expression "(uint *)((ulonglong)uVar8 >> 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulonglong)uVar8 >> 0x20)" ( (binary_expression "(ulonglong)uVar8 >> 0x20" (cast_expression "(ulonglong)uVar8" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) = identifier) ;)) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_34;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return local_34;\n  }" { (return_statement "return local_34;" return identifier ;) })) (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 ( )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT) + IDENT) )))) == (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (binary_expression (binary_expression IDENT + IDENT) < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (binary_expression IDENT + LIT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + IDENT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (goto_statement goto statement_identifier ;) })) })) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) }) while (parenthesized_expression ( (binary_expression IDENT == LIT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) }))) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) = IDENT) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "int FUN_0008d500(void)\n\n{\n  int iVar1;\n  byte bVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  undefined8 uVar8;\n  int local_34;\n  uint local_24;\n  \n  uVar8 = FUN_00036ac5();\n  iVar3 = (int)uVar8;\n  uVar5 = 1;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0;\n  local_34 = FUN_0008d3d0();\n  if (local_34 == 0) {\n    bVar2 = *(byte *)(*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc));\n    if ((char)bVar2 < '\0') {\n      uVar5 = FUN_00046230();\n      uVar5 = uVar5 & 0xff;\n    }\n    else {\n      local_24 = (uint)bVar2;\n    }\n    local_34 = FUN_0008d3d0();\n    iVar6 = uVar5 + local_24;\n    if (local_34 == 0) {\n      do {\n        iVar4 = *(int *)(iVar3 + 8);\n        if (iVar6 + iVar4 < *(int *)(iVar3 + 0x10)) {\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar4 = FUN_0008d3d0();\n      } while (iVar4 == 0);\n      uVar5 = iVar6 + 1;\n      local_34 = iVar4;\n    }\n    else {\nLAB_0008d645:\n      uVar5 = iVar6 + 1;\n    }\n  }\nLAB_0008d5d0:\n  *(uint *)((ulonglong)uVar8 >> 0x20) = uVar5;\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_34;\n  }\n                    \n  FUN_00116110();\n}" (primitive_type "int") (function_declarator "FUN_0008d500(void)" (identifier "FUN_0008d500") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  byte bVar2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  int in_GS_OFFSET;\n  undefined8 uVar8;\n  int local_34;\n  uint local_24;\n  \n  uVar8 = FUN_00036ac5();\n  iVar3 = (int)uVar8;\n  uVar5 = 1;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = 0;\n  local_34 = FUN_0008d3d0();\n  if (local_34 == 0) {\n    bVar2 = *(byte *)(*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc));\n    if ((char)bVar2 < '\0') {\n      uVar5 = FUN_00046230();\n      uVar5 = uVar5 & 0xff;\n    }\n    else {\n      local_24 = (uint)bVar2;\n    }\n    local_34 = FUN_0008d3d0();\n    iVar6 = uVar5 + local_24;\n    if (local_34 == 0) {\n      do {\n        iVar4 = *(int *)(iVar3 + 8);\n        if (iVar6 + iVar4 < *(int *)(iVar3 + 0x10)) {\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar4 = FUN_0008d3d0();\n      } while (iVar4 == 0);\n      uVar5 = iVar6 + 1;\n      local_34 = iVar4;\n    }\n    else {\nLAB_0008d645:\n      uVar5 = iVar6 + 1;\n    }\n  }\nLAB_0008d5d0:\n  *(uint *)((ulonglong)uVar8 >> 0x20) = uVar5;\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_34;\n  }\n                    \n  FUN_00116110();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined8 uVar8;" (type_identifier "undefined8") (identifier "uVar8") (; ";")) (declaration "int local_34;" (primitive_type "int") (identifier "local_34") (; ";")) (declaration "uint local_24;" (type_identifier "uint") (identifier "local_24") (; ";")) (expression_statement "uVar8 = FUN_00036ac5();" (assignment_expression "uVar8 = FUN_00036ac5()" (identifier "uVar8") (= "=") (call_expression "FUN_00036ac5()" (identifier "FUN_00036ac5") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar3 = (int)uVar8;" (assignment_expression "iVar3 = (int)uVar8" (identifier "iVar3") (= "=") (cast_expression "(int)uVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar8"))) (; ";")) (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" (identifier "uVar5") (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_34 = FUN_0008d3d0();" (assignment_expression "local_34 = FUN_0008d3d0()" (identifier "local_34") (= "=") (call_expression "FUN_0008d3d0()" (identifier "FUN_0008d3d0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (local_34 == 0) {\n    bVar2 = *(byte *)(*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc));\n    if ((char)bVar2 < '\0') {\n      uVar5 = FUN_00046230();\n      uVar5 = uVar5 & 0xff;\n    }\n    else {\n      local_24 = (uint)bVar2;\n    }\n    local_34 = FUN_0008d3d0();\n    iVar6 = uVar5 + local_24;\n    if (local_34 == 0) {\n      do {\n        iVar4 = *(int *)(iVar3 + 8);\n        if (iVar6 + iVar4 < *(int *)(iVar3 + 0x10)) {\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar4 = FUN_0008d3d0();\n      } while (iVar4 == 0);\n      uVar5 = iVar6 + 1;\n      local_34 = iVar4;\n    }\n    else {\nLAB_0008d645:\n      uVar5 = iVar6 + 1;\n    }\n  }" (if "if") (parenthesized_expression "(local_34 == 0)" (( "(") (binary_expression "local_34 == 0" (identifier "local_34") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    bVar2 = *(byte *)(*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc));\n    if ((char)bVar2 < '\0') {\n      uVar5 = FUN_00046230();\n      uVar5 = uVar5 & 0xff;\n    }\n    else {\n      local_24 = (uint)bVar2;\n    }\n    local_34 = FUN_0008d3d0();\n    iVar6 = uVar5 + local_24;\n    if (local_34 == 0) {\n      do {\n        iVar4 = *(int *)(iVar3 + 8);\n        if (iVar6 + iVar4 < *(int *)(iVar3 + 0x10)) {\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar4 = FUN_0008d3d0();\n      } while (iVar4 == 0);\n      uVar5 = iVar6 + 1;\n      local_34 = iVar4;\n    }\n    else {\nLAB_0008d645:\n      uVar5 = iVar6 + 1;\n    }\n  }" ({ "{") (expression_statement "bVar2 = *(byte *)(*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc));" (assignment_expression "bVar2 = *(byte *)(*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc))" (identifier "bVar2") (= "=") (pointer_expression "*(byte *)(*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc))" (* "*") (cast_expression "(byte *)(*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc))" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc))" (( "(") (binary_expression "*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc)" (pointer_expression "*(int *)(iVar3 + 8)" (* "*") (cast_expression "(int *)(iVar3 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 8)" (( "(") (binary_expression "iVar3 + 8" (identifier "iVar3") (+ "+") (number_literal "8")) () ")")))) (+ "+") (pointer_expression "*(int *)(iVar3 + 0xc)" (* "*") (cast_expression "(int *)(iVar3 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")"))))) () ")"))))) (; ";")) (if_statement "if ((char)bVar2 < '\0') {\n      uVar5 = FUN_00046230();\n      uVar5 = uVar5 & 0xff;\n    }\n    else {\n      local_24 = (uint)bVar2;\n    }" (if "if") (parenthesized_expression "((char)bVar2 < '\0')" (( "(") (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "bVar2")) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      uVar5 = FUN_00046230();\n      uVar5 = uVar5 & 0xff;\n    }" ({ "{") (expression_statement "uVar5 = FUN_00046230();" (assignment_expression "uVar5 = FUN_00046230()" (identifier "uVar5") (= "=") (call_expression "FUN_00046230()" (identifier "FUN_00046230") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar5 = uVar5 & 0xff;" (assignment_expression "uVar5 = uVar5 & 0xff" (identifier "uVar5") (= "=") (binary_expression "uVar5 & 0xff" (identifier "uVar5") (& "&") (number_literal "0xff"))) (; ";")) (} "}")) (else_clause "else {\n      local_24 = (uint)bVar2;\n    }" (else "else") (compound_statement "{\n      local_24 = (uint)bVar2;\n    }" ({ "{") (expression_statement "local_24 = (uint)bVar2;" (assignment_expression "local_24 = (uint)bVar2" (identifier "local_24") (= "=") (cast_expression "(uint)bVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar2"))) (; ";")) (} "}")))) (expression_statement "local_34 = FUN_0008d3d0();" (assignment_expression "local_34 = FUN_0008d3d0()" (identifier "local_34") (= "=") (call_expression "FUN_0008d3d0()" (identifier "FUN_0008d3d0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar6 = uVar5 + local_24;" (assignment_expression "iVar6 = uVar5 + local_24" (identifier "iVar6") (= "=") (binary_expression "uVar5 + local_24" (identifier "uVar5") (+ "+") (identifier "local_24"))) (; ";")) (if_statement "if (local_34 == 0) {\n      do {\n        iVar4 = *(int *)(iVar3 + 8);\n        if (iVar6 + iVar4 < *(int *)(iVar3 + 0x10)) {\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar4 = FUN_0008d3d0();\n      } while (iVar4 == 0);\n      uVar5 = iVar6 + 1;\n      local_34 = iVar4;\n    }\n    else {\nLAB_0008d645:\n      uVar5 = iVar6 + 1;\n    }" (if "if") (parenthesized_expression "(local_34 == 0)" (( "(") (binary_expression "local_34 == 0" (identifier "local_34") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      do {\n        iVar4 = *(int *)(iVar3 + 8);\n        if (iVar6 + iVar4 < *(int *)(iVar3 + 0x10)) {\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar4 = FUN_0008d3d0();\n      } while (iVar4 == 0);\n      uVar5 = iVar6 + 1;\n      local_34 = iVar4;\n    }" ({ "{") (do_statement "do {\n        iVar4 = *(int *)(iVar3 + 8);\n        if (iVar6 + iVar4 < *(int *)(iVar3 + 0x10)) {\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar4 = FUN_0008d3d0();\n      } while (iVar4 == 0);" (do "do") (compound_statement "{\n        iVar4 = *(int *)(iVar3 + 8);\n        if (iVar6 + iVar4 < *(int *)(iVar3 + 0x10)) {\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }\n        iVar4 = FUN_0008d3d0();\n      }" ({ "{") (expression_statement "iVar4 = *(int *)(iVar3 + 8);" (assignment_expression "iVar4 = *(int *)(iVar3 + 8)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(iVar3 + 8)" (* "*") (cast_expression "(int *)(iVar3 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 8)" (( "(") (binary_expression "iVar3 + 8" (identifier "iVar3") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (iVar6 + iVar4 < *(int *)(iVar3 + 0x10)) {\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }" (if "if") (parenthesized_expression "(iVar6 + iVar4 < *(int *)(iVar3 + 0x10))" (( "(") (binary_expression "iVar6 + iVar4 < *(int *)(iVar3 + 0x10)" (binary_expression "iVar6 + iVar4" (identifier "iVar6") (+ "+") (identifier "iVar4")) (< "<") (pointer_expression "*(int *)(iVar3 + 0x10)" (* "*") (cast_expression "(int *)(iVar3 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x10)" (( "(") (binary_expression "iVar3 + 0x10" (identifier "iVar3") (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (compound_statement "{\n          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;\n          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }\n        }" ({ "{") (if_statement "if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;" (if "if") (parenthesized_expression "(*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0')" (( "(") (binary_expression "*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0'" (pointer_expression "*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4)" (* "*") (cast_expression "(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar3 + 0xc) + iVar6 + iVar4)" (( "(") (binary_expression "*(int *)(iVar3 + 0xc) + iVar6 + iVar4" (binary_expression "*(int *)(iVar3 + 0xc) + iVar6" (pointer_expression "*(int *)(iVar3 + 0xc)" (* "*") (cast_expression "(int *)(iVar3 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (identifier "iVar6")) (+ "+") (identifier "iVar4")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_0008d645;" (goto "goto") (statement_identifier "LAB_0008d645") (; ";"))) (while_statement "while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }" (while "while") (parenthesized_expression "(iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10))" (( "(") (comma_expression "iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)" (assignment_expression "iVar7 = iVar6" (identifier "iVar7") (= "=") (identifier "iVar6")) (, ",") (comma_expression "iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)" (assignment_expression "iVar6 = iVar7 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (, ",") (binary_expression "iVar4 + iVar6 < *(int *)(iVar3 + 0x10)" (binary_expression "iVar4 + iVar6" (identifier "iVar4") (+ "+") (identifier "iVar6")) (< "<") (pointer_expression "*(int *)(iVar3 + 0x10)" (* "*") (cast_expression "(int *)(iVar3 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x10)" (( "(") (binary_expression "iVar3 + 0x10" (identifier "iVar3") (+ "+") (number_literal "0x10")) () ")"))))))) () ")")) (compound_statement "{\n            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }\n          }" ({ "{") (if_statement "if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }" (if "if") (parenthesized_expression "(*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0')" (( "(") (binary_expression "*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0'" (pointer_expression "*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4)" (* "*") (cast_expression "(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4)" (( "(") (binary_expression "iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4" (binary_expression "iVar7 + 1 + *(int *)(iVar3 + 0xc)" (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1")) (+ "+") (pointer_expression "*(int *)(iVar3 + 0xc)" (* "*") (cast_expression "(int *)(iVar3 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")"))))) (+ "+") (identifier "iVar4")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n              uVar5 = iVar7 + 2;\n              goto LAB_0008d5d0;\n            }" ({ "{") (expression_statement "uVar5 = iVar7 + 2;" (assignment_expression "uVar5 = iVar7 + 2" (identifier "uVar5") (= "=") (binary_expression "iVar7 + 2" (identifier "iVar7") (+ "+") (number_literal "2"))) (; ";")) (goto_statement "goto LAB_0008d5d0;" (goto "goto") (statement_identifier "LAB_0008d5d0") (; ";")) (} "}"))) (} "}"))) (} "}"))) (expression_statement "iVar4 = FUN_0008d3d0();" (assignment_expression "iVar4 = FUN_0008d3d0()" (identifier "iVar4") (= "=") (call_expression "FUN_0008d3d0()" (identifier "FUN_0008d3d0") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (; ";")) (expression_statement "uVar5 = iVar6 + 1;" (assignment_expression "uVar5 = iVar6 + 1" (identifier "uVar5") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_34 = iVar4;" (assignment_expression "local_34 = iVar4" (identifier "local_34") (= "=") (identifier "iVar4")) (; ";")) (} "}")) (else_clause "else {\nLAB_0008d645:\n      uVar5 = iVar6 + 1;\n    }" (else "else") (compound_statement "{\nLAB_0008d645:\n      uVar5 = iVar6 + 1;\n    }" ({ "{") (labeled_statement "LAB_0008d645:\n      uVar5 = iVar6 + 1;" (statement_identifier "LAB_0008d645") (: ":") (expression_statement "uVar5 = iVar6 + 1;" (assignment_expression "uVar5 = iVar6 + 1" (identifier "uVar5") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";"))) (} "}")))) (} "}"))) (labeled_statement "LAB_0008d5d0:\n  *(uint *)((ulonglong)uVar8 >> 0x20) = uVar5;" (statement_identifier "LAB_0008d5d0") (: ":") (expression_statement "*(uint *)((ulonglong)uVar8 >> 0x20) = uVar5;" (assignment_expression "*(uint *)((ulonglong)uVar8 >> 0x20) = uVar5" (pointer_expression "*(uint *)((ulonglong)uVar8 >> 0x20)" (* "*") (cast_expression "(uint *)((ulonglong)uVar8 >> 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((ulonglong)uVar8 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar8 >> 0x20" (cast_expression "(ulonglong)uVar8" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar8")) (>> ">>") (number_literal "0x20")) () ")")))) (= "=") (identifier "uVar5")) (; ";"))) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_34;\n  }" (if "if") (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return local_34;\n  }" ({ "{") (return_statement "return local_34;" (return "return") (identifier "local_34") (; ";")) (} "}"))) (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" (identifier "FUN_00116110") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

int function_1(type_1 *pIn,int *pnByte)

{
  type_2 bVar1;
  int var_5;
  type_2 *p;
  int var_12;
  type_3 var_7;
  int var_11;
  int var_13;
  int var_9;
  int var_2;
  type_4 uVar7;
  type_1 *in_stack_ffffffc4;
  int in_stack_ffffffc8;
  int var_4;
  int var_10;
  int var_14;
  
  uVar7 = var_1();
  var_5 = (int)uVar7;
  var_7 = 1;
  var_14 = *(int *)(var_2 + 0x14);
  var_10 = 0;
  var_4 = var_3(in_stack_ffffffc4,in_stack_ffffffc8);
  if (var_4 == 0) {
    p = (type_2 *)(*(int *)(var_5 + 8) + *(int *)(var_5 + 0xc));
    bVar1 = *p;
    if ((char)bVar1 < '\0') {
      bVar1 = var_6(p,(type_5 *)&var_10);
      var_7 = (type_3)bVar1;
      if (0x10000 < (type_3)var_10) {
        var_7 = var_7 + 1;
        var_8(0xb,&UNK_000922eb + var_9,var_9 + 0x92526,0x30133,var_9 + 0x8f255);
        var_4 = 0xb;
        goto LAB_0008d5d0;
      }
    }
    else {
      var_10 = (int)bVar1;
    }
    var_4 = var_3(in_stack_ffffffc4,in_stack_ffffffc8);
    var_11 = var_7 + var_10;
    if (var_4 == 0) {
      do {
        var_12 = *(int *)(var_5 + 8);
        if (var_11 + var_12 < *(int *)(var_5 + 0x10)) {
          if (*(char *)(*(int *)(var_5 + 0xc) + var_11 + var_12) == '\0') goto LAB_0008d645;
          while (var_13 = var_11, var_11 = var_13 + 1, var_12 + var_11 < *(int *)(var_5 + 0x10)) {
            if (*(char *)(var_13 + 1 + *(int *)(var_5 + 0xc) + var_12) == '\0') {
              var_7 = var_13 + 2;
              goto LAB_0008d5d0;
            }
          }
        }
        var_12 = var_3(in_stack_ffffffc4,in_stack_ffffffc8);
      } while (var_12 == 0);
      var_7 = var_11 + 1;
      var_4 = var_12;
    }
    else {
LAB_0008d645:
      var_7 = var_11 + 1;
    }
  }
LAB_0008d5d0:
  *(type_3 *)((type_6)uVar7 >> 0x20) = var_7;
  if (var_14 != *(int *)(var_2 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_15();
  }
  return var_4;
}


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

/* WARNING: Removing unreachable block (ram,0x0008d60a) */

int MASKED(void)

{
  int iVar1;
  byte bVar2;
  int iVar3;
  int iVar4;
  uint uVar5;
  int iVar6;
  int iVar7;
  int in_GS_OFFSET;
  undefined8 uVar8;
  int local_34;
  uint local_24;
  
  uVar8 = FUN_00036ac5();
  iVar3 = (int)uVar8;
  uVar5 = 1;
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  local_24 = 0;
  local_34 = FUN_0008d3d0();
  if (local_34 == 0) {
    bVar2 = *(byte *)(*(int *)(iVar3 + 8) + *(int *)(iVar3 + 0xc));
    if ((char)bVar2 < '\0') {
      uVar5 = FUN_00046230();
      uVar5 = uVar5 & 0xff;
    }
    else {
      local_24 = (uint)bVar2;
    }
    local_34 = FUN_0008d3d0();
    iVar6 = uVar5 + local_24;
    if (local_34 == 0) {
      do {
        iVar4 = *(int *)(iVar3 + 8);
        if (iVar6 + iVar4 < *(int *)(iVar3 + 0x10)) {
          if (*(char *)(*(int *)(iVar3 + 0xc) + iVar6 + iVar4) == '\0') goto LAB_0008d645;
          while (iVar7 = iVar6, iVar6 = iVar7 + 1, iVar4 + iVar6 < *(int *)(iVar3 + 0x10)) {
            if (*(char *)(iVar7 + 1 + *(int *)(iVar3 + 0xc) + iVar4) == '\0') {
              uVar5 = iVar7 + 2;
              goto LAB_0008d5d0;
            }
          }
        }
        iVar4 = FUN_0008d3d0();
      } while (iVar4 == 0);
      uVar5 = iVar6 + 1;
      local_34 = iVar4;
    }
    else {
LAB_0008d645:
      uVar5 = iVar6 + 1;
    }
  }
LAB_0008d5d0:
  *(uint *)((ulonglong)uVar8 >> 0x20) = uVar5;
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return local_34;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00116110();
}

