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

int __regparm3 execSql(sqlite3 *db,char **pzErrMsg,char *zSql)

{
  int iVar1;
  byte *zSql_00;
  char *zNew;
  byte *pbVar2;
  byte *pbVar3;
  int in_GS_OFFSET;
  bool bVar4;
  bool bVar5;
  bool bVar6;
  byte bVar7;
  int local_30;
  sqlite3_stmt *pStmt;
  int local_20;
  undefined4 uStack_14;
  
  bVar7 = 0;
  uStack_14 = 0xc9f9b;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_30 = sqlite3_prepare_v2(db,zSql,-1,&pStmt,(char **)0x0);
  if (local_30 == 0) {
LAB_000c9ff0:
    do {
      do {
        iVar1 = sqlite3_step(pStmt);
        if (iVar1 != 100) {
          if (iVar1 == 0) goto LAB_000ca0bb;
          goto joined_r0x000ca0b9;
        }
        zSql_00 = sqlite3_column_text(pStmt,0);
        bVar4 = false;
        bVar6 = zSql_00 == (byte *)0x0;
      } while (bVar6);
      iVar1 = 3;
      pbVar2 = zSql_00;
      pbVar3 = &DAT_000f8210;
      do {
        if (iVar1 == 0) break;
        iVar1 = iVar1 + -1;
        bVar4 = *pbVar2 < *pbVar3;
        bVar6 = *pbVar2 == *pbVar3;
        pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;
        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;
      } while (bVar6);
      bVar5 = false;
      bVar4 = (!bVar4 && !bVar6) == bVar4;
      if (!bVar4) {
        iVar1 = 3;
        pbVar2 = zSql_00;
        pbVar3 = &DAT_000f8214;
        do {
          if (iVar1 == 0) break;
          iVar1 = iVar1 + -1;
          bVar5 = *pbVar2 < *pbVar3;
          bVar4 = *pbVar2 == *pbVar3;
          pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;
          pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;
        } while (bVar4);
        if ((!bVar5 && !bVar4) != bVar5) goto LAB_000c9ff0;
      }
      iVar1 = execSql(db,pzErrMsg,(char *)zSql_00);
    } while (iVar1 == 0);
joined_r0x000ca0b9:
    if (iVar1 == 0x65) {
LAB_000ca0bb:
      sqlite3_finalize(pStmt);
    }
    else {
      zNew = sqlite3_errmsg(db);
      sqlite3SetString(pzErrMsg,db,zNew);
      sqlite3_finalize(pStmt);
      local_30 = iVar1;
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return local_30;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

int __regparm3 FUN_000c9f90(undefined4 param_1,undefined4 param_2,undefined4 param_3)

{
  int iVar1;
  byte *pbVar2;
  byte *pbVar3;
  byte *pbVar4;
  int in_GS_OFFSET;
  bool bVar5;
  bool bVar6;
  bool bVar7;
  byte bVar8;
  byte *pbVar9;
  int local_30;
  undefined4 local_24;
  int local_20;
  undefined4 uStack_14;
  
  bVar8 = 0;
  uStack_14 = 0xc9f9b;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_30 = FUN_000c21a0(param_1,param_3,0xffffffff,&local_24,0);
  if (local_30 == 0) {
    pbVar9 = &DAT_000f8210;
LAB_000c9ff0:
    do {
      do {
        iVar1 = FUN_000accc0(local_24);
        if (iVar1 != 100) {
          if (iVar1 == 0) goto LAB_000ca0bb;
          goto joined_r0x000ca0b9;
        }
        pbVar2 = (byte *)FUN_0004d370(local_24,0);
        bVar5 = false;
        bVar7 = pbVar2 == (byte *)0x0;
      } while (bVar7);
      iVar1 = 3;
      pbVar3 = pbVar2;
      pbVar4 = pbVar9;
      do {
        if (iVar1 == 0) break;
        iVar1 = iVar1 + -1;
        bVar5 = *pbVar3 < *pbVar4;
        bVar7 = *pbVar3 == *pbVar4;
        pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;
        pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;
      } while (bVar7);
      bVar6 = false;
      bVar5 = (!bVar5 && !bVar7) == bVar5;
      if (!bVar5) {
        iVar1 = 3;
        pbVar3 = &DAT_000f8214;
        do {
          if (iVar1 == 0) break;
          iVar1 = iVar1 + -1;
          bVar6 = *pbVar2 < *pbVar3;
          bVar5 = *pbVar2 == *pbVar3;
          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;
          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;
        } while (bVar5);
        if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;
      }
      iVar1 = FUN_000c9f90(pbVar9,param_2);
    } while (iVar1 == 0);
joined_r0x000ca0b9:
    if (iVar1 == 0x65) {
LAB_000ca0bb:
      FUN_00089c20(local_24);
    }
    else {
      FUN_00055cc0(param_1);
      FUN_000270d0();
      FUN_00089c20(local_24);
      local_30 = iVar1;
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return local_30;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000f4bf0();
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014cf0
ADD EBX,0x7ef39
SUB ESP,0x38
MOV dword ptr [ESP + 0x10],EDX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x28],EAX
XOR EAX,EAX
PUSH 0x0
LEA EAX,[ESP + 0x28]
PUSH EAX
PUSH -0x1
PUSH ECX
PUSH EBP
CALL 0x000c21a0
MOV dword ptr [ESP + 0x2c],EAX
ADD ESP,0x20
TEST EAX,EAX
JNZ 0x000ca090
LEA EAX,[EBX + 0xfffaf33c]
MOV dword ptr [ESP],EAX
LEA EAX,[EBX + 0xfffaf340]
MOV dword ptr [ESP + 0x8],EAX
LEA ESI,[ESI]
LEA ESI,[ESI]
SUB ESP,0xc
PUSH dword ptr [ESP + 0x24]
CALL 0x000accc0
ADD ESP,0x10
CMP EAX,0x64
JNZ 0x000ca0b0
SUB ESP,0x8
PUSH 0x0
PUSH dword ptr [ESP + 0x24]
CALL 0x0004d370
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000c9ff0
MOV EDI,dword ptr [ESP]
MOV ECX,0x3
MOV ESI,EAX
CMPSB.REPE ES:EDI,ESI
SETA DL
SBB DL,0x0
TEST DL,DL
JZ 0x000ca04a
MOV EDI,dword ptr [ESP + 0x8]
MOV ECX,0x3
MOV ESI,EAX
CMPSB.REPE ES:EDI,ESI
SETA DL
SBB DL,0x0
TEST DL,DL
JNZ 0x000c9ff0
MOV EDX,dword ptr [ESP + 0x4]
MOV ECX,EAX
MOV EAX,EBP
CALL 0x000c9f90
TEST EAX,EAX
JZ 0x000c9ff0
MOV ESI,EAX
CMP EAX,0x65
JZ 0x000ca0bb
SUB ESP,0xc
PUSH EBP
CALL 0x00055cc0
MOV EDX,EBP
MOV ECX,EAX
MOV EAX,dword ptr [ESP + 0x14]
CALL 0x000270d0
ADD ESP,0x10
MOV dword ptr [ESP + 0xc],ESI
SUB ESP,0xc
PUSH dword ptr [ESP + 0x24]
CALL 0x00089c20
ADD ESP,0x10
NOP
MOV EDI,dword ptr [ESP + 0x1c]
XOR EDI,dword ptr GS:[0x14]
MOV EAX,dword ptr [ESP + 0xc]
JNZ 0x000ca0cc
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ESI,EAX
TEST EAX,EAX
JZ 0x000ca0bb
CMP EAX,0x65
JNZ 0x000ca062
SUB ESP,0xc
PUSH dword ptr [ESP + 0x24]
CALL 0x00089c20
ADD ESP,0x10
JMP 0x000ca090
CALL 0x000f4bf0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_000c9f90(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int in_GS_OFFSET;\n  bool bVar5;\n  bool bVar6;\n  bool bVar7;\n  byte bVar8;\n  byte *pbVar9;\n  int local_30;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar8 = 0;\n  uStack_14 = 0xc9f9b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_30 = FUN_000c21a0(param_1,param_3,0xffffffff,&local_24,0);\n  if (local_30 == 0) {\n    pbVar9 = &DAT_000f8210;\nLAB_000c9ff0:\n    do {\n      do {\n        iVar1 = FUN_000accc0(local_24);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        pbVar2 = (byte *)FUN_0004d370(local_24,0);\n        bVar5 = false;\n        bVar7 = pbVar2 == (byte *)0x0;\n      } while (bVar7);\n      iVar1 = 3;\n      pbVar3 = pbVar2;\n      pbVar4 = pbVar9;\n      do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar7 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;\n      } while (bVar7);\n      bVar6 = false;\n      bVar5 = (!bVar5 && !bVar7) == bVar5;\n      if (!bVar5) {\n        iVar1 = 3;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);\n        if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;\n      }\n      iVar1 = FUN_000c9f90(pbVar9,param_2);\n    } while (iVar1 == 0);\njoined_r0x000ca0b9:\n    if (iVar1 == 0x65) {\nLAB_000ca0bb:\n      FUN_00089c20(local_24);\n    }\n    else {\n      FUN_00055cc0(param_1);\n      FUN_000270d0();\n      FUN_00089c20(local_24);\n      local_30 = iVar1;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_30;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000f4bf0();\n}\n\n" comment (function_definition "int __regparm3 FUN_000c9f90(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int in_GS_OFFSET;\n  bool bVar5;\n  bool bVar6;\n  bool bVar7;\n  byte bVar8;\n  byte *pbVar9;\n  int local_30;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar8 = 0;\n  uStack_14 = 0xc9f9b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_30 = FUN_000c21a0(param_1,param_3,0xffffffff,&local_24,0);\n  if (local_30 == 0) {\n    pbVar9 = &DAT_000f8210;\nLAB_000c9ff0:\n    do {\n      do {\n        iVar1 = FUN_000accc0(local_24);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        pbVar2 = (byte *)FUN_0004d370(local_24,0);\n        bVar5 = false;\n        bVar7 = pbVar2 == (byte *)0x0;\n      } while (bVar7);\n      iVar1 = 3;\n      pbVar3 = pbVar2;\n      pbVar4 = pbVar9;\n      do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar7 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;\n      } while (bVar7);\n      bVar6 = false;\n      bVar5 = (!bVar5 && !bVar7) == bVar5;\n      if (!bVar5) {\n        iVar1 = 3;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);\n        if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;\n      }\n      iVar1 = FUN_000c9f90(pbVar9,param_2);\n    } while (iVar1 == 0);\njoined_r0x000ca0b9:\n    if (iVar1 == 0x65) {\nLAB_000ca0bb:\n      FUN_00089c20(local_24);\n    }\n    else {\n      FUN_00055cc0(param_1);\n      FUN_000270d0();\n      FUN_00089c20(local_24);\n      local_30 = iVar1;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_30;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000f4bf0();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000c9f90(undefined4 param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int in_GS_OFFSET;\n  bool bVar5;\n  bool bVar6;\n  bool bVar7;\n  byte bVar8;\n  byte *pbVar9;\n  int local_30;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar8 = 0;\n  uStack_14 = 0xc9f9b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_30 = FUN_000c21a0(param_1,param_3,0xffffffff,&local_24,0);\n  if (local_30 == 0) {\n    pbVar9 = &DAT_000f8210;\nLAB_000c9ff0:\n    do {\n      do {\n        iVar1 = FUN_000accc0(local_24);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        pbVar2 = (byte *)FUN_0004d370(local_24,0);\n        bVar5 = false;\n        bVar7 = pbVar2 == (byte *)0x0;\n      } while (bVar7);\n      iVar1 = 3;\n      pbVar3 = pbVar2;\n      pbVar4 = pbVar9;\n      do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar7 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;\n      } while (bVar7);\n      bVar6 = false;\n      bVar5 = (!bVar5 && !bVar7) == bVar5;\n      if (!bVar5) {\n        iVar1 = 3;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);\n        if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;\n      }\n      iVar1 = FUN_000c9f90(pbVar9,param_2);\n    } while (iVar1 == 0);\njoined_r0x000ca0b9:\n    if (iVar1 == 0x65) {\nLAB_000ca0bb:\n      FUN_00089c20(local_24);\n    }\n    else {\n      FUN_00055cc0(param_1);\n      FUN_000270d0();\n      FUN_00089c20(local_24);\n      local_30 = iVar1;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_30;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000f4bf0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "byte bVar8;" type_identifier identifier ;) (declaration "byte *pbVar9;" type_identifier (pointer_declarator "*pbVar9" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "bVar8 = 0;" (assignment_expression "bVar8 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0xc9f9b;" (assignment_expression "uStack_14 = 0xc9f9b" 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 "local_30 = FUN_000c21a0(param_1,param_3,0xffffffff,&local_24,0);" (assignment_expression "local_30 = FUN_000c21a0(param_1,param_3,0xffffffff,&local_24,0)" identifier = (call_expression "FUN_000c21a0(param_1,param_3,0xffffffff,&local_24,0)" identifier (argument_list "(param_1,param_3,0xffffffff,&local_24,0)" ( identifier , identifier , number_literal , (pointer_expression "&local_24" & identifier) , number_literal )))) ;) (if_statement "if (local_30 == 0) {\n    pbVar9 = &DAT_000f8210;\nLAB_000c9ff0:\n    do {\n      do {\n        iVar1 = FUN_000accc0(local_24);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        pbVar2 = (byte *)FUN_0004d370(local_24,0);\n        bVar5 = false;\n        bVar7 = pbVar2 == (byte *)0x0;\n      } while (bVar7);\n      iVar1 = 3;\n      pbVar3 = pbVar2;\n      pbVar4 = pbVar9;\n      do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar7 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;\n      } while (bVar7);\n      bVar6 = false;\n      bVar5 = (!bVar5 && !bVar7) == bVar5;\n      if (!bVar5) {\n        iVar1 = 3;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);\n        if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;\n      }\n      iVar1 = FUN_000c9f90(pbVar9,param_2);\n    } while (iVar1 == 0);\njoined_r0x000ca0b9:\n    if (iVar1 == 0x65) {\nLAB_000ca0bb:\n      FUN_00089c20(local_24);\n    }\n    else {\n      FUN_00055cc0(param_1);\n      FUN_000270d0();\n      FUN_00089c20(local_24);\n      local_30 = iVar1;\n    }\n  }" if (parenthesized_expression "(local_30 == 0)" ( (binary_expression "local_30 == 0" identifier == number_literal) )) (compound_statement "{\n    pbVar9 = &DAT_000f8210;\nLAB_000c9ff0:\n    do {\n      do {\n        iVar1 = FUN_000accc0(local_24);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        pbVar2 = (byte *)FUN_0004d370(local_24,0);\n        bVar5 = false;\n        bVar7 = pbVar2 == (byte *)0x0;\n      } while (bVar7);\n      iVar1 = 3;\n      pbVar3 = pbVar2;\n      pbVar4 = pbVar9;\n      do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar7 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;\n      } while (bVar7);\n      bVar6 = false;\n      bVar5 = (!bVar5 && !bVar7) == bVar5;\n      if (!bVar5) {\n        iVar1 = 3;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);\n        if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;\n      }\n      iVar1 = FUN_000c9f90(pbVar9,param_2);\n    } while (iVar1 == 0);\njoined_r0x000ca0b9:\n    if (iVar1 == 0x65) {\nLAB_000ca0bb:\n      FUN_00089c20(local_24);\n    }\n    else {\n      FUN_00055cc0(param_1);\n      FUN_000270d0();\n      FUN_00089c20(local_24);\n      local_30 = iVar1;\n    }\n  }" { (expression_statement "pbVar9 = &DAT_000f8210;" (assignment_expression "pbVar9 = &DAT_000f8210" identifier = (pointer_expression "&DAT_000f8210" & identifier)) ;) (labeled_statement "LAB_000c9ff0:\n    do {\n      do {\n        iVar1 = FUN_000accc0(local_24);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        pbVar2 = (byte *)FUN_0004d370(local_24,0);\n        bVar5 = false;\n        bVar7 = pbVar2 == (byte *)0x0;\n      } while (bVar7);\n      iVar1 = 3;\n      pbVar3 = pbVar2;\n      pbVar4 = pbVar9;\n      do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar7 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;\n      } while (bVar7);\n      bVar6 = false;\n      bVar5 = (!bVar5 && !bVar7) == bVar5;\n      if (!bVar5) {\n        iVar1 = 3;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);\n        if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;\n      }\n      iVar1 = FUN_000c9f90(pbVar9,param_2);\n    } while (iVar1 == 0);" statement_identifier : (do_statement "do {\n      do {\n        iVar1 = FUN_000accc0(local_24);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        pbVar2 = (byte *)FUN_0004d370(local_24,0);\n        bVar5 = false;\n        bVar7 = pbVar2 == (byte *)0x0;\n      } while (bVar7);\n      iVar1 = 3;\n      pbVar3 = pbVar2;\n      pbVar4 = pbVar9;\n      do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar7 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;\n      } while (bVar7);\n      bVar6 = false;\n      bVar5 = (!bVar5 && !bVar7) == bVar5;\n      if (!bVar5) {\n        iVar1 = 3;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);\n        if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;\n      }\n      iVar1 = FUN_000c9f90(pbVar9,param_2);\n    } while (iVar1 == 0);" do (compound_statement "{\n      do {\n        iVar1 = FUN_000accc0(local_24);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        pbVar2 = (byte *)FUN_0004d370(local_24,0);\n        bVar5 = false;\n        bVar7 = pbVar2 == (byte *)0x0;\n      } while (bVar7);\n      iVar1 = 3;\n      pbVar3 = pbVar2;\n      pbVar4 = pbVar9;\n      do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar7 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;\n      } while (bVar7);\n      bVar6 = false;\n      bVar5 = (!bVar5 && !bVar7) == bVar5;\n      if (!bVar5) {\n        iVar1 = 3;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);\n        if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;\n      }\n      iVar1 = FUN_000c9f90(pbVar9,param_2);\n    }" { (do_statement "do {\n        iVar1 = FUN_000accc0(local_24);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        pbVar2 = (byte *)FUN_0004d370(local_24,0);\n        bVar5 = false;\n        bVar7 = pbVar2 == (byte *)0x0;\n      } while (bVar7);" do (compound_statement "{\n        iVar1 = FUN_000accc0(local_24);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        pbVar2 = (byte *)FUN_0004d370(local_24,0);\n        bVar5 = false;\n        bVar7 = pbVar2 == (byte *)0x0;\n      }" { (expression_statement "iVar1 = FUN_000accc0(local_24);" (assignment_expression "iVar1 = FUN_000accc0(local_24)" identifier = (call_expression "FUN_000accc0(local_24)" identifier (argument_list "(local_24)" ( identifier )))) ;) (if_statement "if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }" if (parenthesized_expression "(iVar1 != 100)" ( (binary_expression "iVar1 != 100" identifier != number_literal) )) (compound_statement "{\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }" { (if_statement "if (iVar1 == 0) goto LAB_000ca0bb;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000ca0bb;" goto statement_identifier ;)) (goto_statement "goto joined_r0x000ca0b9;" goto statement_identifier ;) })) (expression_statement "pbVar2 = (byte *)FUN_0004d370(local_24,0);" (assignment_expression "pbVar2 = (byte *)FUN_0004d370(local_24,0)" identifier = (cast_expression "(byte *)FUN_0004d370(local_24,0)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004d370(local_24,0)" identifier (argument_list "(local_24,0)" ( identifier , number_literal ))))) ;) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) (expression_statement "bVar7 = pbVar2 == (byte *)0x0;" (assignment_expression "bVar7 = pbVar2 == (byte *)0x0" identifier = (binary_expression "pbVar2 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) }) while (parenthesized_expression "(bVar7)" ( identifier )) ;) (expression_statement "iVar1 = 3;" (assignment_expression "iVar1 = 3" identifier = number_literal) ;) (expression_statement "pbVar3 = pbVar2;" (assignment_expression "pbVar3 = pbVar2" identifier = identifier) ;) (expression_statement "pbVar4 = pbVar9;" (assignment_expression "pbVar4 = pbVar9" identifier = identifier) ;) (do_statement "do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar7 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;\n      } while (bVar7);" do (compound_statement "{\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar7 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;\n      }" { (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "bVar5 = *pbVar3 < *pbVar4;" (assignment_expression "bVar5 = *pbVar3 < *pbVar4" identifier = (binary_expression "*pbVar3 < *pbVar4" (pointer_expression "*pbVar3" * identifier) < (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "bVar7 = *pbVar3 == *pbVar4;" (assignment_expression "bVar7 = *pbVar3 == *pbVar4" identifier = (binary_expression "*pbVar3 == *pbVar4" (pointer_expression "*pbVar3" * identifier) == (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1" identifier = (binary_expression "pbVar3 + (uint)bVar8 * -2 + 1" (binary_expression "pbVar3 + (uint)bVar8 * -2" identifier + (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;" (assignment_expression "pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1" identifier = (binary_expression "pbVar4 + (uint)bVar8 * -2 + 1" (binary_expression "pbVar4 + (uint)bVar8 * -2" identifier + (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar7)" ( identifier )) ;) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" identifier = false) ;) (expression_statement "bVar5 = (!bVar5 && !bVar7) == bVar5;" (assignment_expression "bVar5 = (!bVar5 && !bVar7) == bVar5" identifier = (binary_expression "(!bVar5 && !bVar7) == bVar5" (parenthesized_expression "(!bVar5 && !bVar7)" ( (binary_expression "!bVar5 && !bVar7" (unary_expression "!bVar5" ! identifier) && (unary_expression "!bVar7" ! identifier)) )) == identifier)) ;) (if_statement "if (!bVar5) {\n        iVar1 = 3;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);\n        if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;\n      }" if (parenthesized_expression "(!bVar5)" ( (unary_expression "!bVar5" ! identifier) )) (compound_statement "{\n        iVar1 = 3;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);\n        if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;\n      }" { (expression_statement "iVar1 = 3;" (assignment_expression "iVar1 = 3" identifier = number_literal) ;) (expression_statement "pbVar3 = &DAT_000f8214;" (assignment_expression "pbVar3 = &DAT_000f8214" identifier = (pointer_expression "&DAT_000f8214" & identifier)) ;) (do_statement "do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);" do (compound_statement "{\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        }" { (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "bVar6 = *pbVar2 < *pbVar3;" (assignment_expression "bVar6 = *pbVar2 < *pbVar3" identifier = (binary_expression "*pbVar2 < *pbVar3" (pointer_expression "*pbVar2" * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "bVar5 = *pbVar2 == *pbVar3;" (assignment_expression "bVar5 = *pbVar2 == *pbVar3" identifier = (binary_expression "*pbVar2 == *pbVar3" (pointer_expression "*pbVar2" * identifier) == (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;" (assignment_expression "pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1" identifier = (binary_expression "pbVar2 + (uint)bVar8 * -2 + 1" (binary_expression "pbVar2 + (uint)bVar8 * -2" identifier + (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1" identifier = (binary_expression "pbVar3 + (uint)bVar8 * -2 + 1" (binary_expression "pbVar3 + (uint)bVar8 * -2" identifier + (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar5)" ( identifier )) ;) (if_statement "if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;" if (parenthesized_expression "((!bVar6 && !bVar5) != bVar6)" ( (binary_expression "(!bVar6 && !bVar5) != bVar6" (parenthesized_expression "(!bVar6 && !bVar5)" ( (binary_expression "!bVar6 && !bVar5" (unary_expression "!bVar6" ! identifier) && (unary_expression "!bVar5" ! identifier)) )) != identifier) )) (goto_statement "goto LAB_000c9ff0;" goto statement_identifier ;)) })) (expression_statement "iVar1 = FUN_000c9f90(pbVar9,param_2);" (assignment_expression "iVar1 = FUN_000c9f90(pbVar9,param_2)" identifier = (call_expression "FUN_000c9f90(pbVar9,param_2)" identifier (argument_list "(pbVar9,param_2)" ( identifier , identifier )))) ;) }) while (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) ;)) (labeled_statement "joined_r0x000ca0b9:\n    if (iVar1 == 0x65) {\nLAB_000ca0bb:\n      FUN_00089c20(local_24);\n    }\n    else {\n      FUN_00055cc0(param_1);\n      FUN_000270d0();\n      FUN_00089c20(local_24);\n      local_30 = iVar1;\n    }" statement_identifier : (if_statement "if (iVar1 == 0x65) {\nLAB_000ca0bb:\n      FUN_00089c20(local_24);\n    }\n    else {\n      FUN_00055cc0(param_1);\n      FUN_000270d0();\n      FUN_00089c20(local_24);\n      local_30 = iVar1;\n    }" if (parenthesized_expression "(iVar1 == 0x65)" ( (binary_expression "iVar1 == 0x65" identifier == number_literal) )) (compound_statement "{\nLAB_000ca0bb:\n      FUN_00089c20(local_24);\n    }" { (labeled_statement "LAB_000ca0bb:\n      FUN_00089c20(local_24);" statement_identifier : (expression_statement "FUN_00089c20(local_24);" (call_expression "FUN_00089c20(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;)) }) (else_clause "else {\n      FUN_00055cc0(param_1);\n      FUN_000270d0();\n      FUN_00089c20(local_24);\n      local_30 = iVar1;\n    }" else (compound_statement "{\n      FUN_00055cc0(param_1);\n      FUN_000270d0();\n      FUN_00089c20(local_24);\n      local_30 = iVar1;\n    }" { (expression_statement "FUN_00055cc0(param_1);" (call_expression "FUN_00055cc0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "FUN_000270d0();" (call_expression "FUN_000270d0()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00089c20(local_24);" (call_expression "FUN_00089c20(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;) (expression_statement "local_30 = iVar1;" (assignment_expression "local_30 = iVar1" identifier = identifier) ;) })))) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_30;\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    return local_30;\n  }" { (return_statement "return local_30;" return identifier ;) })) comment (expression_statement "FUN_000f4bf0();" (call_expression "FUN_000f4bf0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 execSql(sqlite3 *db,char **pzErrMsg,char *zSql)\n\n{\n  int iVar1;\n  byte *zSql_00;\n  char *zNew;\n  byte *pbVar2;\n  byte *pbVar3;\n  int in_GS_OFFSET;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  int local_30;\n  sqlite3_stmt *pStmt;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar7 = 0;\n  uStack_14 = 0xc9f9b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_30 = sqlite3_prepare_v2(db,zSql,-1,&pStmt,(char **)0x0);\n  if (local_30 == 0) {\nLAB_000c9ff0:\n    do {\n      do {\n        iVar1 = sqlite3_step(pStmt);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        zSql_00 = sqlite3_column_text(pStmt,0);\n        bVar4 = false;\n        bVar6 = zSql_00 == (byte *)0x0;\n      } while (bVar6);\n      iVar1 = 3;\n      pbVar2 = zSql_00;\n      pbVar3 = &DAT_000f8210;\n      do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar4 = *pbVar2 < *pbVar3;\n        bVar6 = *pbVar2 == *pbVar3;\n        pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);\n      bVar5 = false;\n      bVar4 = (!bVar4 && !bVar6) == bVar4;\n      if (!bVar4) {\n        iVar1 = 3;\n        pbVar2 = zSql_00;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar5 = *pbVar2 < *pbVar3;\n          bVar4 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        } while (bVar4);\n        if ((!bVar5 && !bVar4) != bVar5) goto LAB_000c9ff0;\n      }\n      iVar1 = execSql(db,pzErrMsg,(char *)zSql_00);\n    } while (iVar1 == 0);\njoined_r0x000ca0b9:\n    if (iVar1 == 0x65) {\nLAB_000ca0bb:\n      sqlite3_finalize(pStmt);\n    }\n    else {\n      zNew = sqlite3_errmsg(db);\n      sqlite3SetString(pzErrMsg,db,zNew);\n      sqlite3_finalize(pStmt);\n      local_30 = iVar1;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_30;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment (function_definition "int __regparm3 execSql(sqlite3 *db,char **pzErrMsg,char *zSql)\n\n{\n  int iVar1;\n  byte *zSql_00;\n  char *zNew;\n  byte *pbVar2;\n  byte *pbVar3;\n  int in_GS_OFFSET;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  int local_30;\n  sqlite3_stmt *pStmt;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar7 = 0;\n  uStack_14 = 0xc9f9b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_30 = sqlite3_prepare_v2(db,zSql,-1,&pStmt,(char **)0x0);\n  if (local_30 == 0) {\nLAB_000c9ff0:\n    do {\n      do {\n        iVar1 = sqlite3_step(pStmt);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        zSql_00 = sqlite3_column_text(pStmt,0);\n        bVar4 = false;\n        bVar6 = zSql_00 == (byte *)0x0;\n      } while (bVar6);\n      iVar1 = 3;\n      pbVar2 = zSql_00;\n      pbVar3 = &DAT_000f8210;\n      do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar4 = *pbVar2 < *pbVar3;\n        bVar6 = *pbVar2 == *pbVar3;\n        pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);\n      bVar5 = false;\n      bVar4 = (!bVar4 && !bVar6) == bVar4;\n      if (!bVar4) {\n        iVar1 = 3;\n        pbVar2 = zSql_00;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar5 = *pbVar2 < *pbVar3;\n          bVar4 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        } while (bVar4);\n        if ((!bVar5 && !bVar4) != bVar5) goto LAB_000c9ff0;\n      }\n      iVar1 = execSql(db,pzErrMsg,(char *)zSql_00);\n    } while (iVar1 == 0);\njoined_r0x000ca0b9:\n    if (iVar1 == 0x65) {\nLAB_000ca0bb:\n      sqlite3_finalize(pStmt);\n    }\n    else {\n      zNew = sqlite3_errmsg(db);\n      sqlite3SetString(pzErrMsg,db,zNew);\n      sqlite3_finalize(pStmt);\n      local_30 = iVar1;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_30;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "execSql(sqlite3 *db,char **pzErrMsg,char *zSql)" identifier (parameter_list "(sqlite3 *db,char **pzErrMsg,char *zSql)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) , (parameter_declaration "char **pzErrMsg" primitive_type (pointer_declarator "**pzErrMsg" * (pointer_declarator "*pzErrMsg" * identifier))) , (parameter_declaration "char *zSql" primitive_type (pointer_declarator "*zSql" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  byte *zSql_00;\n  char *zNew;\n  byte *pbVar2;\n  byte *pbVar3;\n  int in_GS_OFFSET;\n  bool bVar4;\n  bool bVar5;\n  bool bVar6;\n  byte bVar7;\n  int local_30;\n  sqlite3_stmt *pStmt;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar7 = 0;\n  uStack_14 = 0xc9f9b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_30 = sqlite3_prepare_v2(db,zSql,-1,&pStmt,(char **)0x0);\n  if (local_30 == 0) {\nLAB_000c9ff0:\n    do {\n      do {\n        iVar1 = sqlite3_step(pStmt);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        zSql_00 = sqlite3_column_text(pStmt,0);\n        bVar4 = false;\n        bVar6 = zSql_00 == (byte *)0x0;\n      } while (bVar6);\n      iVar1 = 3;\n      pbVar2 = zSql_00;\n      pbVar3 = &DAT_000f8210;\n      do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar4 = *pbVar2 < *pbVar3;\n        bVar6 = *pbVar2 == *pbVar3;\n        pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);\n      bVar5 = false;\n      bVar4 = (!bVar4 && !bVar6) == bVar4;\n      if (!bVar4) {\n        iVar1 = 3;\n        pbVar2 = zSql_00;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar5 = *pbVar2 < *pbVar3;\n          bVar4 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        } while (bVar4);\n        if ((!bVar5 && !bVar4) != bVar5) goto LAB_000c9ff0;\n      }\n      iVar1 = execSql(db,pzErrMsg,(char *)zSql_00);\n    } while (iVar1 == 0);\njoined_r0x000ca0b9:\n    if (iVar1 == 0x65) {\nLAB_000ca0bb:\n      sqlite3_finalize(pStmt);\n    }\n    else {\n      zNew = sqlite3_errmsg(db);\n      sqlite3SetString(pzErrMsg,db,zNew);\n      sqlite3_finalize(pStmt);\n      local_30 = iVar1;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_30;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "byte *zSql_00;" type_identifier (pointer_declarator "*zSql_00" * identifier) ;) (declaration "char *zNew;" primitive_type (pointer_declarator "*zNew" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "byte bVar7;" type_identifier identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "sqlite3_stmt *pStmt;" type_identifier (pointer_declarator "*pStmt" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0xc9f9b;" (assignment_expression "uStack_14 = 0xc9f9b" 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 "local_30 = sqlite3_prepare_v2(db,zSql,-1,&pStmt,(char **)0x0);" (assignment_expression "local_30 = sqlite3_prepare_v2(db,zSql,-1,&pStmt,(char **)0x0)" identifier = (call_expression "sqlite3_prepare_v2(db,zSql,-1,&pStmt,(char **)0x0)" identifier (argument_list "(db,zSql,-1,&pStmt,(char **)0x0)" ( identifier , identifier , number_literal , (pointer_expression "&pStmt" & identifier) , (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) )))) ;) (if_statement "if (local_30 == 0) {\nLAB_000c9ff0:\n    do {\n      do {\n        iVar1 = sqlite3_step(pStmt);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        zSql_00 = sqlite3_column_text(pStmt,0);\n        bVar4 = false;\n        bVar6 = zSql_00 == (byte *)0x0;\n      } while (bVar6);\n      iVar1 = 3;\n      pbVar2 = zSql_00;\n      pbVar3 = &DAT_000f8210;\n      do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar4 = *pbVar2 < *pbVar3;\n        bVar6 = *pbVar2 == *pbVar3;\n        pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);\n      bVar5 = false;\n      bVar4 = (!bVar4 && !bVar6) == bVar4;\n      if (!bVar4) {\n        iVar1 = 3;\n        pbVar2 = zSql_00;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar5 = *pbVar2 < *pbVar3;\n          bVar4 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        } while (bVar4);\n        if ((!bVar5 && !bVar4) != bVar5) goto LAB_000c9ff0;\n      }\n      iVar1 = execSql(db,pzErrMsg,(char *)zSql_00);\n    } while (iVar1 == 0);\njoined_r0x000ca0b9:\n    if (iVar1 == 0x65) {\nLAB_000ca0bb:\n      sqlite3_finalize(pStmt);\n    }\n    else {\n      zNew = sqlite3_errmsg(db);\n      sqlite3SetString(pzErrMsg,db,zNew);\n      sqlite3_finalize(pStmt);\n      local_30 = iVar1;\n    }\n  }" if (parenthesized_expression "(local_30 == 0)" ( (binary_expression "local_30 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_000c9ff0:\n    do {\n      do {\n        iVar1 = sqlite3_step(pStmt);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        zSql_00 = sqlite3_column_text(pStmt,0);\n        bVar4 = false;\n        bVar6 = zSql_00 == (byte *)0x0;\n      } while (bVar6);\n      iVar1 = 3;\n      pbVar2 = zSql_00;\n      pbVar3 = &DAT_000f8210;\n      do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar4 = *pbVar2 < *pbVar3;\n        bVar6 = *pbVar2 == *pbVar3;\n        pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);\n      bVar5 = false;\n      bVar4 = (!bVar4 && !bVar6) == bVar4;\n      if (!bVar4) {\n        iVar1 = 3;\n        pbVar2 = zSql_00;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar5 = *pbVar2 < *pbVar3;\n          bVar4 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        } while (bVar4);\n        if ((!bVar5 && !bVar4) != bVar5) goto LAB_000c9ff0;\n      }\n      iVar1 = execSql(db,pzErrMsg,(char *)zSql_00);\n    } while (iVar1 == 0);\njoined_r0x000ca0b9:\n    if (iVar1 == 0x65) {\nLAB_000ca0bb:\n      sqlite3_finalize(pStmt);\n    }\n    else {\n      zNew = sqlite3_errmsg(db);\n      sqlite3SetString(pzErrMsg,db,zNew);\n      sqlite3_finalize(pStmt);\n      local_30 = iVar1;\n    }\n  }" { (labeled_statement "LAB_000c9ff0:\n    do {\n      do {\n        iVar1 = sqlite3_step(pStmt);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        zSql_00 = sqlite3_column_text(pStmt,0);\n        bVar4 = false;\n        bVar6 = zSql_00 == (byte *)0x0;\n      } while (bVar6);\n      iVar1 = 3;\n      pbVar2 = zSql_00;\n      pbVar3 = &DAT_000f8210;\n      do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar4 = *pbVar2 < *pbVar3;\n        bVar6 = *pbVar2 == *pbVar3;\n        pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);\n      bVar5 = false;\n      bVar4 = (!bVar4 && !bVar6) == bVar4;\n      if (!bVar4) {\n        iVar1 = 3;\n        pbVar2 = zSql_00;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar5 = *pbVar2 < *pbVar3;\n          bVar4 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        } while (bVar4);\n        if ((!bVar5 && !bVar4) != bVar5) goto LAB_000c9ff0;\n      }\n      iVar1 = execSql(db,pzErrMsg,(char *)zSql_00);\n    } while (iVar1 == 0);" statement_identifier : (do_statement "do {\n      do {\n        iVar1 = sqlite3_step(pStmt);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        zSql_00 = sqlite3_column_text(pStmt,0);\n        bVar4 = false;\n        bVar6 = zSql_00 == (byte *)0x0;\n      } while (bVar6);\n      iVar1 = 3;\n      pbVar2 = zSql_00;\n      pbVar3 = &DAT_000f8210;\n      do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar4 = *pbVar2 < *pbVar3;\n        bVar6 = *pbVar2 == *pbVar3;\n        pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);\n      bVar5 = false;\n      bVar4 = (!bVar4 && !bVar6) == bVar4;\n      if (!bVar4) {\n        iVar1 = 3;\n        pbVar2 = zSql_00;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar5 = *pbVar2 < *pbVar3;\n          bVar4 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        } while (bVar4);\n        if ((!bVar5 && !bVar4) != bVar5) goto LAB_000c9ff0;\n      }\n      iVar1 = execSql(db,pzErrMsg,(char *)zSql_00);\n    } while (iVar1 == 0);" do (compound_statement "{\n      do {\n        iVar1 = sqlite3_step(pStmt);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        zSql_00 = sqlite3_column_text(pStmt,0);\n        bVar4 = false;\n        bVar6 = zSql_00 == (byte *)0x0;\n      } while (bVar6);\n      iVar1 = 3;\n      pbVar2 = zSql_00;\n      pbVar3 = &DAT_000f8210;\n      do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar4 = *pbVar2 < *pbVar3;\n        bVar6 = *pbVar2 == *pbVar3;\n        pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);\n      bVar5 = false;\n      bVar4 = (!bVar4 && !bVar6) == bVar4;\n      if (!bVar4) {\n        iVar1 = 3;\n        pbVar2 = zSql_00;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar5 = *pbVar2 < *pbVar3;\n          bVar4 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        } while (bVar4);\n        if ((!bVar5 && !bVar4) != bVar5) goto LAB_000c9ff0;\n      }\n      iVar1 = execSql(db,pzErrMsg,(char *)zSql_00);\n    }" { (do_statement "do {\n        iVar1 = sqlite3_step(pStmt);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        zSql_00 = sqlite3_column_text(pStmt,0);\n        bVar4 = false;\n        bVar6 = zSql_00 == (byte *)0x0;\n      } while (bVar6);" do (compound_statement "{\n        iVar1 = sqlite3_step(pStmt);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        zSql_00 = sqlite3_column_text(pStmt,0);\n        bVar4 = false;\n        bVar6 = zSql_00 == (byte *)0x0;\n      }" { (expression_statement "iVar1 = sqlite3_step(pStmt);" (assignment_expression "iVar1 = sqlite3_step(pStmt)" identifier = (call_expression "sqlite3_step(pStmt)" identifier (argument_list "(pStmt)" ( identifier )))) ;) (if_statement "if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }" if (parenthesized_expression "(iVar1 != 100)" ( (binary_expression "iVar1 != 100" identifier != number_literal) )) (compound_statement "{\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }" { (if_statement "if (iVar1 == 0) goto LAB_000ca0bb;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000ca0bb;" goto statement_identifier ;)) (goto_statement "goto joined_r0x000ca0b9;" goto statement_identifier ;) })) (expression_statement "zSql_00 = sqlite3_column_text(pStmt,0);" (assignment_expression "zSql_00 = sqlite3_column_text(pStmt,0)" identifier = (call_expression "sqlite3_column_text(pStmt,0)" identifier (argument_list "(pStmt,0)" ( identifier , number_literal )))) ;) (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" identifier = false) ;) (expression_statement "bVar6 = zSql_00 == (byte *)0x0;" (assignment_expression "bVar6 = zSql_00 == (byte *)0x0" identifier = (binary_expression "zSql_00 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) }) while (parenthesized_expression "(bVar6)" ( identifier )) ;) (expression_statement "iVar1 = 3;" (assignment_expression "iVar1 = 3" identifier = number_literal) ;) (expression_statement "pbVar2 = zSql_00;" (assignment_expression "pbVar2 = zSql_00" identifier = identifier) ;) (expression_statement "pbVar3 = &DAT_000f8210;" (assignment_expression "pbVar3 = &DAT_000f8210" identifier = (pointer_expression "&DAT_000f8210" & identifier)) ;) (do_statement "do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar4 = *pbVar2 < *pbVar3;\n        bVar6 = *pbVar2 == *pbVar3;\n        pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n      } while (bVar6);" do (compound_statement "{\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar4 = *pbVar2 < *pbVar3;\n        bVar6 = *pbVar2 == *pbVar3;\n        pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n        pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n      }" { (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "bVar4 = *pbVar2 < *pbVar3;" (assignment_expression "bVar4 = *pbVar2 < *pbVar3" identifier = (binary_expression "*pbVar2 < *pbVar3" (pointer_expression "*pbVar2" * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "bVar6 = *pbVar2 == *pbVar3;" (assignment_expression "bVar6 = *pbVar2 == *pbVar3" identifier = (binary_expression "*pbVar2 == *pbVar3" (pointer_expression "*pbVar2" * identifier) == (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;" (assignment_expression "pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "pbVar2 + (uint)bVar7 * -2 + 1" (binary_expression "pbVar2 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "pbVar3 + (uint)bVar7 * -2 + 1" (binary_expression "pbVar3 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar6)" ( identifier )) ;) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) (expression_statement "bVar4 = (!bVar4 && !bVar6) == bVar4;" (assignment_expression "bVar4 = (!bVar4 && !bVar6) == bVar4" identifier = (binary_expression "(!bVar4 && !bVar6) == bVar4" (parenthesized_expression "(!bVar4 && !bVar6)" ( (binary_expression "!bVar4 && !bVar6" (unary_expression "!bVar4" ! identifier) && (unary_expression "!bVar6" ! identifier)) )) == identifier)) ;) (if_statement "if (!bVar4) {\n        iVar1 = 3;\n        pbVar2 = zSql_00;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar5 = *pbVar2 < *pbVar3;\n          bVar4 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        } while (bVar4);\n        if ((!bVar5 && !bVar4) != bVar5) goto LAB_000c9ff0;\n      }" if (parenthesized_expression "(!bVar4)" ( (unary_expression "!bVar4" ! identifier) )) (compound_statement "{\n        iVar1 = 3;\n        pbVar2 = zSql_00;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar5 = *pbVar2 < *pbVar3;\n          bVar4 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        } while (bVar4);\n        if ((!bVar5 && !bVar4) != bVar5) goto LAB_000c9ff0;\n      }" { (expression_statement "iVar1 = 3;" (assignment_expression "iVar1 = 3" identifier = number_literal) ;) (expression_statement "pbVar2 = zSql_00;" (assignment_expression "pbVar2 = zSql_00" identifier = identifier) ;) (expression_statement "pbVar3 = &DAT_000f8214;" (assignment_expression "pbVar3 = &DAT_000f8214" identifier = (pointer_expression "&DAT_000f8214" & identifier)) ;) (do_statement "do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar5 = *pbVar2 < *pbVar3;\n          bVar4 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        } while (bVar4);" do (compound_statement "{\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar5 = *pbVar2 < *pbVar3;\n          bVar4 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;\n        }" { (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "bVar5 = *pbVar2 < *pbVar3;" (assignment_expression "bVar5 = *pbVar2 < *pbVar3" identifier = (binary_expression "*pbVar2 < *pbVar3" (pointer_expression "*pbVar2" * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "bVar4 = *pbVar2 == *pbVar3;" (assignment_expression "bVar4 = *pbVar2 == *pbVar3" identifier = (binary_expression "*pbVar2 == *pbVar3" (pointer_expression "*pbVar2" * identifier) == (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1;" (assignment_expression "pbVar2 = pbVar2 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "pbVar2 + (uint)bVar7 * -2 + 1" (binary_expression "pbVar2 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "pbVar3 + (uint)bVar7 * -2 + 1" (binary_expression "pbVar3 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar4)" ( identifier )) ;) (if_statement "if ((!bVar5 && !bVar4) != bVar5) goto LAB_000c9ff0;" if (parenthesized_expression "((!bVar5 && !bVar4) != bVar5)" ( (binary_expression "(!bVar5 && !bVar4) != bVar5" (parenthesized_expression "(!bVar5 && !bVar4)" ( (binary_expression "!bVar5 && !bVar4" (unary_expression "!bVar5" ! identifier) && (unary_expression "!bVar4" ! identifier)) )) != identifier) )) (goto_statement "goto LAB_000c9ff0;" goto statement_identifier ;)) })) (expression_statement "iVar1 = execSql(db,pzErrMsg,(char *)zSql_00);" (assignment_expression "iVar1 = execSql(db,pzErrMsg,(char *)zSql_00)" identifier = (call_expression "execSql(db,pzErrMsg,(char *)zSql_00)" identifier (argument_list "(db,pzErrMsg,(char *)zSql_00)" ( identifier , identifier , (cast_expression "(char *)zSql_00" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) }) while (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) ;)) (labeled_statement "joined_r0x000ca0b9:\n    if (iVar1 == 0x65) {\nLAB_000ca0bb:\n      sqlite3_finalize(pStmt);\n    }\n    else {\n      zNew = sqlite3_errmsg(db);\n      sqlite3SetString(pzErrMsg,db,zNew);\n      sqlite3_finalize(pStmt);\n      local_30 = iVar1;\n    }" statement_identifier : (if_statement "if (iVar1 == 0x65) {\nLAB_000ca0bb:\n      sqlite3_finalize(pStmt);\n    }\n    else {\n      zNew = sqlite3_errmsg(db);\n      sqlite3SetString(pzErrMsg,db,zNew);\n      sqlite3_finalize(pStmt);\n      local_30 = iVar1;\n    }" if (parenthesized_expression "(iVar1 == 0x65)" ( (binary_expression "iVar1 == 0x65" identifier == number_literal) )) (compound_statement "{\nLAB_000ca0bb:\n      sqlite3_finalize(pStmt);\n    }" { (labeled_statement "LAB_000ca0bb:\n      sqlite3_finalize(pStmt);" statement_identifier : (expression_statement "sqlite3_finalize(pStmt);" (call_expression "sqlite3_finalize(pStmt)" identifier (argument_list "(pStmt)" ( identifier ))) ;)) }) (else_clause "else {\n      zNew = sqlite3_errmsg(db);\n      sqlite3SetString(pzErrMsg,db,zNew);\n      sqlite3_finalize(pStmt);\n      local_30 = iVar1;\n    }" else (compound_statement "{\n      zNew = sqlite3_errmsg(db);\n      sqlite3SetString(pzErrMsg,db,zNew);\n      sqlite3_finalize(pStmt);\n      local_30 = iVar1;\n    }" { (expression_statement "zNew = sqlite3_errmsg(db);" (assignment_expression "zNew = sqlite3_errmsg(db)" identifier = (call_expression "sqlite3_errmsg(db)" identifier (argument_list "(db)" ( identifier )))) ;) (expression_statement "sqlite3SetString(pzErrMsg,db,zNew);" (call_expression "sqlite3SetString(pzErrMsg,db,zNew)" identifier (argument_list "(pzErrMsg,db,zNew)" ( identifier , identifier , identifier ))) ;) (expression_statement "sqlite3_finalize(pStmt);" (call_expression "sqlite3_finalize(pStmt)" identifier (argument_list "(pStmt)" ( identifier ))) ;) (expression_statement "local_30 = iVar1;" (assignment_expression "local_30 = iVar1" identifier = identifier) ;) })))) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_30;\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    return local_30;\n  }" { (return_statement "return local_30;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int __regparm3 FUN_000c9f90(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int in_GS_OFFSET;\n  bool bVar5;\n  bool bVar6;\n  bool bVar7;\n  byte bVar8;\n  byte *pbVar9;\n  int local_30;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar8 = 0;\n  uStack_14 = 0xc9f9b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_30 = FUN_000c21a0(param_1,param_3,0xffffffff,&local_24,0);\n  if (local_30 == 0) {\n    pbVar9 = &DAT_000f8210;\nLAB_000c9ff0:\n    do {\n      do {\n        iVar1 = FUN_000accc0(local_24);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        pbVar2 = (byte *)FUN_0004d370(local_24,0);\n        bVar5 = false;\n        bVar7 = pbVar2 == (byte *)0x0;\n      } while (bVar7);\n      iVar1 = 3;\n      pbVar3 = pbVar2;\n      pbVar4 = pbVar9;\n      do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar7 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;\n      } while (bVar7);\n      bVar6 = false;\n      bVar5 = (!bVar5 && !bVar7) == bVar5;\n      if (!bVar5) {\n        iVar1 = 3;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);\n        if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;\n      }\n      iVar1 = FUN_000c9f90(pbVar9,param_2);\n    } while (iVar1 == 0);\njoined_r0x000ca0b9:\n    if (iVar1 == 0x65) {\nLAB_000ca0bb:\n      FUN_00089c20(local_24);\n    }\n    else {\n      FUN_00055cc0(param_1);\n      FUN_000270d0();\n      FUN_00089c20(local_24);\n      local_30 = iVar1;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_30;\n  }\n                    \n  FUN_000f4bf0();\n}\n\n" (function_definition "int __regparm3 FUN_000c9f90(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int in_GS_OFFSET;\n  bool bVar5;\n  bool bVar6;\n  bool bVar7;\n  byte bVar8;\n  byte *pbVar9;\n  int local_30;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar8 = 0;\n  uStack_14 = 0xc9f9b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_30 = FUN_000c21a0(param_1,param_3,0xffffffff,&local_24,0);\n  if (local_30 == 0) {\n    pbVar9 = &DAT_000f8210;\nLAB_000c9ff0:\n    do {\n      do {\n        iVar1 = FUN_000accc0(local_24);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        pbVar2 = (byte *)FUN_0004d370(local_24,0);\n        bVar5 = false;\n        bVar7 = pbVar2 == (byte *)0x0;\n      } while (bVar7);\n      iVar1 = 3;\n      pbVar3 = pbVar2;\n      pbVar4 = pbVar9;\n      do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar7 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;\n      } while (bVar7);\n      bVar6 = false;\n      bVar5 = (!bVar5 && !bVar7) == bVar5;\n      if (!bVar5) {\n        iVar1 = 3;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);\n        if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;\n      }\n      iVar1 = FUN_000c9f90(pbVar9,param_2);\n    } while (iVar1 == 0);\njoined_r0x000ca0b9:\n    if (iVar1 == 0x65) {\nLAB_000ca0bb:\n      FUN_00089c20(local_24);\n    }\n    else {\n      FUN_00055cc0(param_1);\n      FUN_000270d0();\n      FUN_00089c20(local_24);\n      local_30 = iVar1;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_30;\n  }\n                    \n  FUN_000f4bf0();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000c9f90(undefined4 param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int in_GS_OFFSET;\n  bool bVar5;\n  bool bVar6;\n  bool bVar7;\n  byte bVar8;\n  byte *pbVar9;\n  int local_30;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar8 = 0;\n  uStack_14 = 0xc9f9b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_30 = FUN_000c21a0(param_1,param_3,0xffffffff,&local_24,0);\n  if (local_30 == 0) {\n    pbVar9 = &DAT_000f8210;\nLAB_000c9ff0:\n    do {\n      do {\n        iVar1 = FUN_000accc0(local_24);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        pbVar2 = (byte *)FUN_0004d370(local_24,0);\n        bVar5 = false;\n        bVar7 = pbVar2 == (byte *)0x0;\n      } while (bVar7);\n      iVar1 = 3;\n      pbVar3 = pbVar2;\n      pbVar4 = pbVar9;\n      do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar7 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;\n      } while (bVar7);\n      bVar6 = false;\n      bVar5 = (!bVar5 && !bVar7) == bVar5;\n      if (!bVar5) {\n        iVar1 = 3;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);\n        if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;\n      }\n      iVar1 = FUN_000c9f90(pbVar9,param_2);\n    } while (iVar1 == 0);\njoined_r0x000ca0b9:\n    if (iVar1 == 0x65) {\nLAB_000ca0bb:\n      FUN_00089c20(local_24);\n    }\n    else {\n      FUN_00055cc0(param_1);\n      FUN_000270d0();\n      FUN_00089c20(local_24);\n      local_30 = iVar1;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_30;\n  }\n                    \n  FUN_000f4bf0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "byte bVar8;" type_identifier identifier ;) (declaration "byte *pbVar9;" type_identifier (pointer_declarator "*pbVar9" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "bVar8 = 0;" (assignment_expression "bVar8 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0xc9f9b;" (assignment_expression "uStack_14 = 0xc9f9b" 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 "local_30 = FUN_000c21a0(param_1,param_3,0xffffffff,&local_24,0);" (assignment_expression "local_30 = FUN_000c21a0(param_1,param_3,0xffffffff,&local_24,0)" identifier = (call_expression "FUN_000c21a0(param_1,param_3,0xffffffff,&local_24,0)" identifier (argument_list "(param_1,param_3,0xffffffff,&local_24,0)" ( identifier , identifier , number_literal , (pointer_expression "&local_24" & identifier) , number_literal )))) ;) (if_statement "if (local_30 == 0) {\n    pbVar9 = &DAT_000f8210;\nLAB_000c9ff0:\n    do {\n      do {\n        iVar1 = FUN_000accc0(local_24);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        pbVar2 = (byte *)FUN_0004d370(local_24,0);\n        bVar5 = false;\n        bVar7 = pbVar2 == (byte *)0x0;\n      } while (bVar7);\n      iVar1 = 3;\n      pbVar3 = pbVar2;\n      pbVar4 = pbVar9;\n      do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar7 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;\n      } while (bVar7);\n      bVar6 = false;\n      bVar5 = (!bVar5 && !bVar7) == bVar5;\n      if (!bVar5) {\n        iVar1 = 3;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);\n        if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;\n      }\n      iVar1 = FUN_000c9f90(pbVar9,param_2);\n    } while (iVar1 == 0);\njoined_r0x000ca0b9:\n    if (iVar1 == 0x65) {\nLAB_000ca0bb:\n      FUN_00089c20(local_24);\n    }\n    else {\n      FUN_00055cc0(param_1);\n      FUN_000270d0();\n      FUN_00089c20(local_24);\n      local_30 = iVar1;\n    }\n  }" if (parenthesized_expression "(local_30 == 0)" ( (binary_expression "local_30 == 0" identifier == number_literal) )) (compound_statement "{\n    pbVar9 = &DAT_000f8210;\nLAB_000c9ff0:\n    do {\n      do {\n        iVar1 = FUN_000accc0(local_24);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        pbVar2 = (byte *)FUN_0004d370(local_24,0);\n        bVar5 = false;\n        bVar7 = pbVar2 == (byte *)0x0;\n      } while (bVar7);\n      iVar1 = 3;\n      pbVar3 = pbVar2;\n      pbVar4 = pbVar9;\n      do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar7 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;\n      } while (bVar7);\n      bVar6 = false;\n      bVar5 = (!bVar5 && !bVar7) == bVar5;\n      if (!bVar5) {\n        iVar1 = 3;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);\n        if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;\n      }\n      iVar1 = FUN_000c9f90(pbVar9,param_2);\n    } while (iVar1 == 0);\njoined_r0x000ca0b9:\n    if (iVar1 == 0x65) {\nLAB_000ca0bb:\n      FUN_00089c20(local_24);\n    }\n    else {\n      FUN_00055cc0(param_1);\n      FUN_000270d0();\n      FUN_00089c20(local_24);\n      local_30 = iVar1;\n    }\n  }" { (expression_statement "pbVar9 = &DAT_000f8210;" (assignment_expression "pbVar9 = &DAT_000f8210" identifier = (pointer_expression "&DAT_000f8210" & identifier)) ;) (labeled_statement "LAB_000c9ff0:\n    do {\n      do {\n        iVar1 = FUN_000accc0(local_24);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        pbVar2 = (byte *)FUN_0004d370(local_24,0);\n        bVar5 = false;\n        bVar7 = pbVar2 == (byte *)0x0;\n      } while (bVar7);\n      iVar1 = 3;\n      pbVar3 = pbVar2;\n      pbVar4 = pbVar9;\n      do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar7 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;\n      } while (bVar7);\n      bVar6 = false;\n      bVar5 = (!bVar5 && !bVar7) == bVar5;\n      if (!bVar5) {\n        iVar1 = 3;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);\n        if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;\n      }\n      iVar1 = FUN_000c9f90(pbVar9,param_2);\n    } while (iVar1 == 0);" statement_identifier : (do_statement "do {\n      do {\n        iVar1 = FUN_000accc0(local_24);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        pbVar2 = (byte *)FUN_0004d370(local_24,0);\n        bVar5 = false;\n        bVar7 = pbVar2 == (byte *)0x0;\n      } while (bVar7);\n      iVar1 = 3;\n      pbVar3 = pbVar2;\n      pbVar4 = pbVar9;\n      do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar7 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;\n      } while (bVar7);\n      bVar6 = false;\n      bVar5 = (!bVar5 && !bVar7) == bVar5;\n      if (!bVar5) {\n        iVar1 = 3;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);\n        if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;\n      }\n      iVar1 = FUN_000c9f90(pbVar9,param_2);\n    } while (iVar1 == 0);" do (compound_statement "{\n      do {\n        iVar1 = FUN_000accc0(local_24);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        pbVar2 = (byte *)FUN_0004d370(local_24,0);\n        bVar5 = false;\n        bVar7 = pbVar2 == (byte *)0x0;\n      } while (bVar7);\n      iVar1 = 3;\n      pbVar3 = pbVar2;\n      pbVar4 = pbVar9;\n      do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar7 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;\n      } while (bVar7);\n      bVar6 = false;\n      bVar5 = (!bVar5 && !bVar7) == bVar5;\n      if (!bVar5) {\n        iVar1 = 3;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);\n        if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;\n      }\n      iVar1 = FUN_000c9f90(pbVar9,param_2);\n    }" { (do_statement "do {\n        iVar1 = FUN_000accc0(local_24);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        pbVar2 = (byte *)FUN_0004d370(local_24,0);\n        bVar5 = false;\n        bVar7 = pbVar2 == (byte *)0x0;\n      } while (bVar7);" do (compound_statement "{\n        iVar1 = FUN_000accc0(local_24);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        pbVar2 = (byte *)FUN_0004d370(local_24,0);\n        bVar5 = false;\n        bVar7 = pbVar2 == (byte *)0x0;\n      }" { (expression_statement "iVar1 = FUN_000accc0(local_24);" (assignment_expression "iVar1 = FUN_000accc0(local_24)" identifier = (call_expression "FUN_000accc0(local_24)" identifier (argument_list "(local_24)" ( identifier )))) ;) (if_statement "if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }" if (parenthesized_expression "(iVar1 != 100)" ( (binary_expression "iVar1 != 100" identifier != number_literal) )) (compound_statement "{\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }" { (if_statement "if (iVar1 == 0) goto LAB_000ca0bb;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000ca0bb;" goto statement_identifier ;)) (goto_statement "goto joined_r0x000ca0b9;" goto statement_identifier ;) })) (expression_statement "pbVar2 = (byte *)FUN_0004d370(local_24,0);" (assignment_expression "pbVar2 = (byte *)FUN_0004d370(local_24,0)" identifier = (cast_expression "(byte *)FUN_0004d370(local_24,0)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004d370(local_24,0)" identifier (argument_list "(local_24,0)" ( identifier , number_literal ))))) ;) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) (expression_statement "bVar7 = pbVar2 == (byte *)0x0;" (assignment_expression "bVar7 = pbVar2 == (byte *)0x0" identifier = (binary_expression "pbVar2 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) }) while (parenthesized_expression "(bVar7)" ( identifier )) ;) (expression_statement "iVar1 = 3;" (assignment_expression "iVar1 = 3" identifier = number_literal) ;) (expression_statement "pbVar3 = pbVar2;" (assignment_expression "pbVar3 = pbVar2" identifier = identifier) ;) (expression_statement "pbVar4 = pbVar9;" (assignment_expression "pbVar4 = pbVar9" identifier = identifier) ;) (do_statement "do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar7 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;\n      } while (bVar7);" do (compound_statement "{\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar7 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;\n      }" { (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "bVar5 = *pbVar3 < *pbVar4;" (assignment_expression "bVar5 = *pbVar3 < *pbVar4" identifier = (binary_expression "*pbVar3 < *pbVar4" (pointer_expression "*pbVar3" * identifier) < (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "bVar7 = *pbVar3 == *pbVar4;" (assignment_expression "bVar7 = *pbVar3 == *pbVar4" identifier = (binary_expression "*pbVar3 == *pbVar4" (pointer_expression "*pbVar3" * identifier) == (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1" identifier = (binary_expression "pbVar3 + (uint)bVar8 * -2 + 1" (binary_expression "pbVar3 + (uint)bVar8 * -2" identifier + (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;" (assignment_expression "pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1" identifier = (binary_expression "pbVar4 + (uint)bVar8 * -2 + 1" (binary_expression "pbVar4 + (uint)bVar8 * -2" identifier + (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar7)" ( identifier )) ;) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" identifier = false) ;) (expression_statement "bVar5 = (!bVar5 && !bVar7) == bVar5;" (assignment_expression "bVar5 = (!bVar5 && !bVar7) == bVar5" identifier = (binary_expression "(!bVar5 && !bVar7) == bVar5" (parenthesized_expression "(!bVar5 && !bVar7)" ( (binary_expression "!bVar5 && !bVar7" (unary_expression "!bVar5" ! identifier) && (unary_expression "!bVar7" ! identifier)) )) == identifier)) ;) (if_statement "if (!bVar5) {\n        iVar1 = 3;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);\n        if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;\n      }" if (parenthesized_expression "(!bVar5)" ( (unary_expression "!bVar5" ! identifier) )) (compound_statement "{\n        iVar1 = 3;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);\n        if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;\n      }" { (expression_statement "iVar1 = 3;" (assignment_expression "iVar1 = 3" identifier = number_literal) ;) (expression_statement "pbVar3 = &DAT_000f8214;" (assignment_expression "pbVar3 = &DAT_000f8214" identifier = (pointer_expression "&DAT_000f8214" & identifier)) ;) (do_statement "do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);" do (compound_statement "{\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        }" { (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "bVar6 = *pbVar2 < *pbVar3;" (assignment_expression "bVar6 = *pbVar2 < *pbVar3" identifier = (binary_expression "*pbVar2 < *pbVar3" (pointer_expression "*pbVar2" * identifier) < (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "bVar5 = *pbVar2 == *pbVar3;" (assignment_expression "bVar5 = *pbVar2 == *pbVar3" identifier = (binary_expression "*pbVar2 == *pbVar3" (pointer_expression "*pbVar2" * identifier) == (pointer_expression "*pbVar3" * identifier))) ;) (expression_statement "pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;" (assignment_expression "pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1" identifier = (binary_expression "pbVar2 + (uint)bVar8 * -2 + 1" (binary_expression "pbVar2 + (uint)bVar8 * -2" identifier + (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1" identifier = (binary_expression "pbVar3 + (uint)bVar8 * -2 + 1" (binary_expression "pbVar3 + (uint)bVar8 * -2" identifier + (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar5)" ( identifier )) ;) (if_statement "if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;" if (parenthesized_expression "((!bVar6 && !bVar5) != bVar6)" ( (binary_expression "(!bVar6 && !bVar5) != bVar6" (parenthesized_expression "(!bVar6 && !bVar5)" ( (binary_expression "!bVar6 && !bVar5" (unary_expression "!bVar6" ! identifier) && (unary_expression "!bVar5" ! identifier)) )) != identifier) )) (goto_statement "goto LAB_000c9ff0;" goto statement_identifier ;)) })) (expression_statement "iVar1 = FUN_000c9f90(pbVar9,param_2);" (assignment_expression "iVar1 = FUN_000c9f90(pbVar9,param_2)" identifier = (call_expression "FUN_000c9f90(pbVar9,param_2)" identifier (argument_list "(pbVar9,param_2)" ( identifier , identifier )))) ;) }) while (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) ;)) (labeled_statement "joined_r0x000ca0b9:\n    if (iVar1 == 0x65) {\nLAB_000ca0bb:\n      FUN_00089c20(local_24);\n    }\n    else {\n      FUN_00055cc0(param_1);\n      FUN_000270d0();\n      FUN_00089c20(local_24);\n      local_30 = iVar1;\n    }" statement_identifier : (if_statement "if (iVar1 == 0x65) {\nLAB_000ca0bb:\n      FUN_00089c20(local_24);\n    }\n    else {\n      FUN_00055cc0(param_1);\n      FUN_000270d0();\n      FUN_00089c20(local_24);\n      local_30 = iVar1;\n    }" if (parenthesized_expression "(iVar1 == 0x65)" ( (binary_expression "iVar1 == 0x65" identifier == number_literal) )) (compound_statement "{\nLAB_000ca0bb:\n      FUN_00089c20(local_24);\n    }" { (labeled_statement "LAB_000ca0bb:\n      FUN_00089c20(local_24);" statement_identifier : (expression_statement "FUN_00089c20(local_24);" (call_expression "FUN_00089c20(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;)) }) (else_clause "else {\n      FUN_00055cc0(param_1);\n      FUN_000270d0();\n      FUN_00089c20(local_24);\n      local_30 = iVar1;\n    }" else (compound_statement "{\n      FUN_00055cc0(param_1);\n      FUN_000270d0();\n      FUN_00089c20(local_24);\n      local_30 = iVar1;\n    }" { (expression_statement "FUN_00055cc0(param_1);" (call_expression "FUN_00055cc0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "FUN_000270d0();" (call_expression "FUN_000270d0()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00089c20(local_24);" (call_expression "FUN_00089c20(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;) (expression_statement "local_30 = iVar1;" (assignment_expression "local_30 = iVar1" identifier = identifier) ;) })))) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_30;\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    return local_30;\n  }" { (return_statement "return local_30;" return identifier ;) })) (expression_statement "FUN_000f4bf0();" (call_expression "FUN_000f4bf0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (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 = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (labeled_statement statement_identifier : (do_statement do (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ;) }) while (parenthesized_expression ( IDENT )) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) == IDENT)) ;) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) != IDENT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) }) while (parenthesized_expression ( (binary_expression IDENT == LIT) )) ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = 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 __regparm3 FUN_000c9f90(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int in_GS_OFFSET;\n  bool bVar5;\n  bool bVar6;\n  bool bVar7;\n  byte bVar8;\n  byte *pbVar9;\n  int local_30;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar8 = 0;\n  uStack_14 = 0xc9f9b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_30 = FUN_000c21a0(param_1,param_3,0xffffffff,&local_24,0);\n  if (local_30 == 0) {\n    pbVar9 = &DAT_000f8210;\nLAB_000c9ff0:\n    do {\n      do {\n        iVar1 = FUN_000accc0(local_24);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        pbVar2 = (byte *)FUN_0004d370(local_24,0);\n        bVar5 = false;\n        bVar7 = pbVar2 == (byte *)0x0;\n      } while (bVar7);\n      iVar1 = 3;\n      pbVar3 = pbVar2;\n      pbVar4 = pbVar9;\n      do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar7 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;\n      } while (bVar7);\n      bVar6 = false;\n      bVar5 = (!bVar5 && !bVar7) == bVar5;\n      if (!bVar5) {\n        iVar1 = 3;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);\n        if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;\n      }\n      iVar1 = FUN_000c9f90(pbVar9,param_2);\n    } while (iVar1 == 0);\njoined_r0x000ca0b9:\n    if (iVar1 == 0x65) {\nLAB_000ca0bb:\n      FUN_00089c20(local_24);\n    }\n    else {\n      FUN_00055cc0(param_1);\n      FUN_000270d0();\n      FUN_00089c20(local_24);\n      local_30 = iVar1;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_30;\n  }\n                    \n  FUN_000f4bf0();\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000c9f90(undefined4 param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_000c9f90") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int in_GS_OFFSET;\n  bool bVar5;\n  bool bVar6;\n  bool bVar7;\n  byte bVar8;\n  byte *pbVar9;\n  int local_30;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar8 = 0;\n  uStack_14 = 0xc9f9b;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_30 = FUN_000c21a0(param_1,param_3,0xffffffff,&local_24,0);\n  if (local_30 == 0) {\n    pbVar9 = &DAT_000f8210;\nLAB_000c9ff0:\n    do {\n      do {\n        iVar1 = FUN_000accc0(local_24);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        pbVar2 = (byte *)FUN_0004d370(local_24,0);\n        bVar5 = false;\n        bVar7 = pbVar2 == (byte *)0x0;\n      } while (bVar7);\n      iVar1 = 3;\n      pbVar3 = pbVar2;\n      pbVar4 = pbVar9;\n      do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar7 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;\n      } while (bVar7);\n      bVar6 = false;\n      bVar5 = (!bVar5 && !bVar7) == bVar5;\n      if (!bVar5) {\n        iVar1 = 3;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);\n        if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;\n      }\n      iVar1 = FUN_000c9f90(pbVar9,param_2);\n    } while (iVar1 == 0);\njoined_r0x000ca0b9:\n    if (iVar1 == 0x65) {\nLAB_000ca0bb:\n      FUN_00089c20(local_24);\n    }\n    else {\n      FUN_00055cc0(param_1);\n      FUN_000270d0();\n      FUN_00089c20(local_24);\n      local_30 = iVar1;\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_30;\n  }\n                    \n  FUN_000f4bf0();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "bool bVar5;" (primitive_type "bool") (identifier "bVar5") (; ";")) (declaration "bool bVar6;" (primitive_type "bool") (identifier "bVar6") (; ";")) (declaration "bool bVar7;" (primitive_type "bool") (identifier "bVar7") (; ";")) (declaration "byte bVar8;" (type_identifier "byte") (identifier "bVar8") (; ";")) (declaration "byte *pbVar9;" (type_identifier "byte") (pointer_declarator "*pbVar9" (* "*") (identifier "pbVar9")) (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "bVar8 = 0;" (assignment_expression "bVar8 = 0" (identifier "bVar8") (= "=") (number_literal "0")) (; ";")) (expression_statement "uStack_14 = 0xc9f9b;" (assignment_expression "uStack_14 = 0xc9f9b" (identifier "uStack_14") (= "=") (number_literal "0xc9f9b")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (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_30 = FUN_000c21a0(param_1,param_3,0xffffffff,&local_24,0);" (assignment_expression "local_30 = FUN_000c21a0(param_1,param_3,0xffffffff,&local_24,0)" (identifier "local_30") (= "=") (call_expression "FUN_000c21a0(param_1,param_3,0xffffffff,&local_24,0)" (identifier "FUN_000c21a0") (argument_list "(param_1,param_3,0xffffffff,&local_24,0)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") (, ",") (number_literal "0xffffffff") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (local_30 == 0) {\n    pbVar9 = &DAT_000f8210;\nLAB_000c9ff0:\n    do {\n      do {\n        iVar1 = FUN_000accc0(local_24);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        pbVar2 = (byte *)FUN_0004d370(local_24,0);\n        bVar5 = false;\n        bVar7 = pbVar2 == (byte *)0x0;\n      } while (bVar7);\n      iVar1 = 3;\n      pbVar3 = pbVar2;\n      pbVar4 = pbVar9;\n      do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar7 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;\n      } while (bVar7);\n      bVar6 = false;\n      bVar5 = (!bVar5 && !bVar7) == bVar5;\n      if (!bVar5) {\n        iVar1 = 3;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);\n        if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;\n      }\n      iVar1 = FUN_000c9f90(pbVar9,param_2);\n    } while (iVar1 == 0);\njoined_r0x000ca0b9:\n    if (iVar1 == 0x65) {\nLAB_000ca0bb:\n      FUN_00089c20(local_24);\n    }\n    else {\n      FUN_00055cc0(param_1);\n      FUN_000270d0();\n      FUN_00089c20(local_24);\n      local_30 = iVar1;\n    }\n  }" (if "if") (parenthesized_expression "(local_30 == 0)" (( "(") (binary_expression "local_30 == 0" (identifier "local_30") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    pbVar9 = &DAT_000f8210;\nLAB_000c9ff0:\n    do {\n      do {\n        iVar1 = FUN_000accc0(local_24);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        pbVar2 = (byte *)FUN_0004d370(local_24,0);\n        bVar5 = false;\n        bVar7 = pbVar2 == (byte *)0x0;\n      } while (bVar7);\n      iVar1 = 3;\n      pbVar3 = pbVar2;\n      pbVar4 = pbVar9;\n      do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar7 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;\n      } while (bVar7);\n      bVar6 = false;\n      bVar5 = (!bVar5 && !bVar7) == bVar5;\n      if (!bVar5) {\n        iVar1 = 3;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);\n        if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;\n      }\n      iVar1 = FUN_000c9f90(pbVar9,param_2);\n    } while (iVar1 == 0);\njoined_r0x000ca0b9:\n    if (iVar1 == 0x65) {\nLAB_000ca0bb:\n      FUN_00089c20(local_24);\n    }\n    else {\n      FUN_00055cc0(param_1);\n      FUN_000270d0();\n      FUN_00089c20(local_24);\n      local_30 = iVar1;\n    }\n  }" ({ "{") (expression_statement "pbVar9 = &DAT_000f8210;" (assignment_expression "pbVar9 = &DAT_000f8210" (identifier "pbVar9") (= "=") (pointer_expression "&DAT_000f8210" (& "&") (identifier "DAT_000f8210"))) (; ";")) (labeled_statement "LAB_000c9ff0:\n    do {\n      do {\n        iVar1 = FUN_000accc0(local_24);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        pbVar2 = (byte *)FUN_0004d370(local_24,0);\n        bVar5 = false;\n        bVar7 = pbVar2 == (byte *)0x0;\n      } while (bVar7);\n      iVar1 = 3;\n      pbVar3 = pbVar2;\n      pbVar4 = pbVar9;\n      do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar7 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;\n      } while (bVar7);\n      bVar6 = false;\n      bVar5 = (!bVar5 && !bVar7) == bVar5;\n      if (!bVar5) {\n        iVar1 = 3;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);\n        if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;\n      }\n      iVar1 = FUN_000c9f90(pbVar9,param_2);\n    } while (iVar1 == 0);" (statement_identifier "LAB_000c9ff0") (: ":") (do_statement "do {\n      do {\n        iVar1 = FUN_000accc0(local_24);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        pbVar2 = (byte *)FUN_0004d370(local_24,0);\n        bVar5 = false;\n        bVar7 = pbVar2 == (byte *)0x0;\n      } while (bVar7);\n      iVar1 = 3;\n      pbVar3 = pbVar2;\n      pbVar4 = pbVar9;\n      do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar7 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;\n      } while (bVar7);\n      bVar6 = false;\n      bVar5 = (!bVar5 && !bVar7) == bVar5;\n      if (!bVar5) {\n        iVar1 = 3;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);\n        if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;\n      }\n      iVar1 = FUN_000c9f90(pbVar9,param_2);\n    } while (iVar1 == 0);" (do "do") (compound_statement "{\n      do {\n        iVar1 = FUN_000accc0(local_24);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        pbVar2 = (byte *)FUN_0004d370(local_24,0);\n        bVar5 = false;\n        bVar7 = pbVar2 == (byte *)0x0;\n      } while (bVar7);\n      iVar1 = 3;\n      pbVar3 = pbVar2;\n      pbVar4 = pbVar9;\n      do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar7 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;\n      } while (bVar7);\n      bVar6 = false;\n      bVar5 = (!bVar5 && !bVar7) == bVar5;\n      if (!bVar5) {\n        iVar1 = 3;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);\n        if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;\n      }\n      iVar1 = FUN_000c9f90(pbVar9,param_2);\n    }" ({ "{") (do_statement "do {\n        iVar1 = FUN_000accc0(local_24);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        pbVar2 = (byte *)FUN_0004d370(local_24,0);\n        bVar5 = false;\n        bVar7 = pbVar2 == (byte *)0x0;\n      } while (bVar7);" (do "do") (compound_statement "{\n        iVar1 = FUN_000accc0(local_24);\n        if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }\n        pbVar2 = (byte *)FUN_0004d370(local_24,0);\n        bVar5 = false;\n        bVar7 = pbVar2 == (byte *)0x0;\n      }" ({ "{") (expression_statement "iVar1 = FUN_000accc0(local_24);" (assignment_expression "iVar1 = FUN_000accc0(local_24)" (identifier "iVar1") (= "=") (call_expression "FUN_000accc0(local_24)" (identifier "FUN_000accc0") (argument_list "(local_24)" (( "(") (identifier "local_24") () ")")))) (; ";")) (if_statement "if (iVar1 != 100) {\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }" (if "if") (parenthesized_expression "(iVar1 != 100)" (( "(") (binary_expression "iVar1 != 100" (identifier "iVar1") (!= "!=") (number_literal "100")) () ")")) (compound_statement "{\n          if (iVar1 == 0) goto LAB_000ca0bb;\n          goto joined_r0x000ca0b9;\n        }" ({ "{") (if_statement "if (iVar1 == 0) goto LAB_000ca0bb;" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000ca0bb;" (goto "goto") (statement_identifier "LAB_000ca0bb") (; ";"))) (goto_statement "goto joined_r0x000ca0b9;" (goto "goto") (statement_identifier "joined_r0x000ca0b9") (; ";")) (} "}"))) (expression_statement "pbVar2 = (byte *)FUN_0004d370(local_24,0);" (assignment_expression "pbVar2 = (byte *)FUN_0004d370(local_24,0)" (identifier "pbVar2") (= "=") (cast_expression "(byte *)FUN_0004d370(local_24,0)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0004d370(local_24,0)" (identifier "FUN_0004d370") (argument_list "(local_24,0)" (( "(") (identifier "local_24") (, ",") (number_literal "0") () ")"))))) (; ";")) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" (identifier "bVar5") (= "=") (false "false")) (; ";")) (expression_statement "bVar7 = pbVar2 == (byte *)0x0;" (assignment_expression "bVar7 = pbVar2 == (byte *)0x0" (identifier "bVar7") (= "=") (binary_expression "pbVar2 == (byte *)0x0" (identifier "pbVar2") (== "==") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar7)" (( "(") (identifier "bVar7") () ")")) (; ";")) (expression_statement "iVar1 = 3;" (assignment_expression "iVar1 = 3" (identifier "iVar1") (= "=") (number_literal "3")) (; ";")) (expression_statement "pbVar3 = pbVar2;" (assignment_expression "pbVar3 = pbVar2" (identifier "pbVar3") (= "=") (identifier "pbVar2")) (; ";")) (expression_statement "pbVar4 = pbVar9;" (assignment_expression "pbVar4 = pbVar9" (identifier "pbVar4") (= "=") (identifier "pbVar9")) (; ";")) (do_statement "do {\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar7 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;\n      } while (bVar7);" (do "do") (compound_statement "{\n        if (iVar1 == 0) break;\n        iVar1 = iVar1 + -1;\n        bVar5 = *pbVar3 < *pbVar4;\n        bVar7 = *pbVar3 == *pbVar4;\n        pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;\n      }" ({ "{") (if_statement "if (iVar1 == 0) break;" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar5 = *pbVar3 < *pbVar4;" (assignment_expression "bVar5 = *pbVar3 < *pbVar4" (identifier "bVar5") (= "=") (binary_expression "*pbVar3 < *pbVar4" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (< "<") (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")))) (; ";")) (expression_statement "bVar7 = *pbVar3 == *pbVar4;" (assignment_expression "bVar7 = *pbVar3 == *pbVar4" (identifier "bVar7") (= "=") (binary_expression "*pbVar3 == *pbVar4" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (== "==") (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")))) (; ";")) (expression_statement "pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + (uint)bVar8 * -2 + 1" (binary_expression "pbVar3 + (uint)bVar8 * -2" (identifier "pbVar3") (+ "+") (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar8")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;" (assignment_expression "pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1" (identifier "pbVar4") (= "=") (binary_expression "pbVar4 + (uint)bVar8 * -2 + 1" (binary_expression "pbVar4 + (uint)bVar8 * -2" (identifier "pbVar4") (+ "+") (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar8")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar7)" (( "(") (identifier "bVar7") () ")")) (; ";")) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" (identifier "bVar6") (= "=") (false "false")) (; ";")) (expression_statement "bVar5 = (!bVar5 && !bVar7) == bVar5;" (assignment_expression "bVar5 = (!bVar5 && !bVar7) == bVar5" (identifier "bVar5") (= "=") (binary_expression "(!bVar5 && !bVar7) == bVar5" (parenthesized_expression "(!bVar5 && !bVar7)" (( "(") (binary_expression "!bVar5 && !bVar7" (unary_expression "!bVar5" (! "!") (identifier "bVar5")) (&& "&&") (unary_expression "!bVar7" (! "!") (identifier "bVar7"))) () ")")) (== "==") (identifier "bVar5"))) (; ";")) (if_statement "if (!bVar5) {\n        iVar1 = 3;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);\n        if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;\n      }" (if "if") (parenthesized_expression "(!bVar5)" (( "(") (unary_expression "!bVar5" (! "!") (identifier "bVar5")) () ")")) (compound_statement "{\n        iVar1 = 3;\n        pbVar3 = &DAT_000f8214;\n        do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);\n        if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;\n      }" ({ "{") (expression_statement "iVar1 = 3;" (assignment_expression "iVar1 = 3" (identifier "iVar1") (= "=") (number_literal "3")) (; ";")) (expression_statement "pbVar3 = &DAT_000f8214;" (assignment_expression "pbVar3 = &DAT_000f8214" (identifier "pbVar3") (= "=") (pointer_expression "&DAT_000f8214" (& "&") (identifier "DAT_000f8214"))) (; ";")) (do_statement "do {\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        } while (bVar5);" (do "do") (compound_statement "{\n          if (iVar1 == 0) break;\n          iVar1 = iVar1 + -1;\n          bVar6 = *pbVar2 < *pbVar3;\n          bVar5 = *pbVar2 == *pbVar3;\n          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;\n          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;\n        }" ({ "{") (if_statement "if (iVar1 == 0) break;" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar6 = *pbVar2 < *pbVar3;" (assignment_expression "bVar6 = *pbVar2 < *pbVar3" (identifier "bVar6") (= "=") (binary_expression "*pbVar2 < *pbVar3" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (< "<") (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")))) (; ";")) (expression_statement "bVar5 = *pbVar2 == *pbVar3;" (assignment_expression "bVar5 = *pbVar2 == *pbVar3" (identifier "bVar5") (= "=") (binary_expression "*pbVar2 == *pbVar3" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (== "==") (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")))) (; ";")) (expression_statement "pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;" (assignment_expression "pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1" (identifier "pbVar2") (= "=") (binary_expression "pbVar2 + (uint)bVar8 * -2 + 1" (binary_expression "pbVar2 + (uint)bVar8 * -2" (identifier "pbVar2") (+ "+") (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar8")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;" (assignment_expression "pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + (uint)bVar8 * -2 + 1" (binary_expression "pbVar3 + (uint)bVar8 * -2" (identifier "pbVar3") (+ "+") (binary_expression "(uint)bVar8 * -2" (cast_expression "(uint)bVar8" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar8")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar5)" (( "(") (identifier "bVar5") () ")")) (; ";")) (if_statement "if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;" (if "if") (parenthesized_expression "((!bVar6 && !bVar5) != bVar6)" (( "(") (binary_expression "(!bVar6 && !bVar5) != bVar6" (parenthesized_expression "(!bVar6 && !bVar5)" (( "(") (binary_expression "!bVar6 && !bVar5" (unary_expression "!bVar6" (! "!") (identifier "bVar6")) (&& "&&") (unary_expression "!bVar5" (! "!") (identifier "bVar5"))) () ")")) (!= "!=") (identifier "bVar6")) () ")")) (goto_statement "goto LAB_000c9ff0;" (goto "goto") (statement_identifier "LAB_000c9ff0") (; ";"))) (} "}"))) (expression_statement "iVar1 = FUN_000c9f90(pbVar9,param_2);" (assignment_expression "iVar1 = FUN_000c9f90(pbVar9,param_2)" (identifier "iVar1") (= "=") (call_expression "FUN_000c9f90(pbVar9,param_2)" (identifier "FUN_000c9f90") (argument_list "(pbVar9,param_2)" (( "(") (identifier "pbVar9") (, ",") (identifier "param_2") () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (; ";"))) (labeled_statement "joined_r0x000ca0b9:\n    if (iVar1 == 0x65) {\nLAB_000ca0bb:\n      FUN_00089c20(local_24);\n    }\n    else {\n      FUN_00055cc0(param_1);\n      FUN_000270d0();\n      FUN_00089c20(local_24);\n      local_30 = iVar1;\n    }" (statement_identifier "joined_r0x000ca0b9") (: ":") (if_statement "if (iVar1 == 0x65) {\nLAB_000ca0bb:\n      FUN_00089c20(local_24);\n    }\n    else {\n      FUN_00055cc0(param_1);\n      FUN_000270d0();\n      FUN_00089c20(local_24);\n      local_30 = iVar1;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0x65)" (( "(") (binary_expression "iVar1 == 0x65" (identifier "iVar1") (== "==") (number_literal "0x65")) () ")")) (compound_statement "{\nLAB_000ca0bb:\n      FUN_00089c20(local_24);\n    }" ({ "{") (labeled_statement "LAB_000ca0bb:\n      FUN_00089c20(local_24);" (statement_identifier "LAB_000ca0bb") (: ":") (expression_statement "FUN_00089c20(local_24);" (call_expression "FUN_00089c20(local_24)" (identifier "FUN_00089c20") (argument_list "(local_24)" (( "(") (identifier "local_24") () ")"))) (; ";"))) (} "}")) (else_clause "else {\n      FUN_00055cc0(param_1);\n      FUN_000270d0();\n      FUN_00089c20(local_24);\n      local_30 = iVar1;\n    }" (else "else") (compound_statement "{\n      FUN_00055cc0(param_1);\n      FUN_000270d0();\n      FUN_00089c20(local_24);\n      local_30 = iVar1;\n    }" ({ "{") (expression_statement "FUN_00055cc0(param_1);" (call_expression "FUN_00055cc0(param_1)" (identifier "FUN_00055cc0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "FUN_000270d0();" (call_expression "FUN_000270d0()" (identifier "FUN_000270d0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00089c20(local_24);" (call_expression "FUN_00089c20(local_24)" (identifier "FUN_00089c20") (argument_list "(local_24)" (( "(") (identifier "local_24") () ")"))) (; ";")) (expression_statement "local_30 = iVar1;" (assignment_expression "local_30 = iVar1" (identifier "local_30") (= "=") (identifier "iVar1")) (; ";")) (} "}"))))) (} "}"))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_30;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (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_30;\n  }" ({ "{") (return_statement "return local_30;" (return "return") (identifier "local_30") (; ";")) (} "}"))) (expression_statement "FUN_000f4bf0();" (call_expression "FUN_000f4bf0()" (identifier "FUN_000f4bf0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

int __regparm3 function_1(type_1 *db,char **pzErrMsg,char *zSql)

{
  int var_5;
  type_2 *var_7;
  char *zNew;
  type_2 *var_8;
  type_2 *var_9;
  int var_1;
  bool var_10;
  bool var_11;
  bool bVar6;
  type_2 bVar7;
  int var_3;
  type_3 *pStmt;
  int var_15;
  type_4 uStack_14;
  
  bVar7 = 0;
  uStack_14 = 0xc9f9b;
  var_15 = *(int *)(var_1 + 0x14);
  var_3 = var_2(db,zSql,-1,&pStmt,(char **)0x0);
  if (var_3 == 0) {
LAB_000c9ff0:
    do {
      do {
        var_5 = var_4(pStmt);
        if (var_5 != 100) {
          if (var_5 == 0) goto LAB_000ca0bb;
          goto joined_r0x000ca0b9;
        }
        var_7 = var_6(pStmt,0);
        var_10 = false;
        bVar6 = var_7 == (type_2 *)0x0;
      } while (bVar6);
      var_5 = 3;
      var_8 = var_7;
      var_9 = &DAT_000f8210;
      do {
        if (var_5 == 0) break;
        var_5 = var_5 + -1;
        var_10 = *var_8 < *var_9;
        bVar6 = *var_8 == *var_9;
        var_8 = var_8 + (type_5)bVar7 * -2 + 1;
        var_9 = var_9 + (type_5)bVar7 * -2 + 1;
      } while (bVar6);
      var_11 = false;
      var_10 = (!var_10 && !bVar6) == var_10;
      if (!var_10) {
        var_5 = 3;
        var_8 = var_7;
        var_9 = &DAT_000f8214;
        do {
          if (var_5 == 0) break;
          var_5 = var_5 + -1;
          var_11 = *var_8 < *var_9;
          var_10 = *var_8 == *var_9;
          var_8 = var_8 + (type_5)bVar7 * -2 + 1;
          var_9 = var_9 + (type_5)bVar7 * -2 + 1;
        } while (var_10);
        if ((!var_11 && !var_10) != var_11) goto LAB_000c9ff0;
      }
      var_5 = function_1(db,pzErrMsg,(char *)var_7);
    } while (var_5 == 0);
joined_r0x000ca0b9:
    if (var_5 == 0x65) {
LAB_000ca0bb:
      var_12(pStmt);
    }
    else {
      zNew = var_13(db);
      var_14(pzErrMsg,db,zNew);
      var_12(pStmt);
      var_3 = var_5;
    }
  }
  if (var_15 == *(int *)(var_1 + 0x14)) {
    return var_3;
  }
                    /* WARNING: Subroutine does not return */
  var_16();
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) 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: (type_identifier) declarator: (pointer_declarator 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: (number_literal))) (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: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal) (pointer_expression argument: (identifier)) (number_literal))))) (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: (identifier)))) (labeled_statement label: (statement_identifier) (do_statement body: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) condition: (parenthesized_expression (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))) condition: (parenthesized_expression (identifier))) (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (unary_expression argument: (identifier)) right: (unary_expression argument: (identifier)))) right: (identifier)))) (if_statement condition: (parenthesized_expression (unary_expression argument: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))) condition: (parenthesized_expression (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (unary_expression argument: (identifier)) right: (unary_expression argument: (identifier)))) right: (identifier))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) 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: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int __regparm3 MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3)

{
  int iVar1;
  byte *pbVar2;
  byte *pbVar3;
  byte *pbVar4;
  int in_GS_OFFSET;
  bool bVar5;
  bool bVar6;
  bool bVar7;
  byte bVar8;
  byte *pbVar9;
  int local_30;
  undefined4 local_24;
  int local_20;
  undefined4 uStack_14;
  
  bVar8 = 0;
  uStack_14 = 0xc9f9b;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_30 = FUN_000c21a0(param_1,param_3,0xffffffff,&local_24,0);
  if (local_30 == 0) {
    pbVar9 = &DAT_000f8210;
LAB_000c9ff0:
    do {
      do {
        iVar1 = FUN_000accc0(local_24);
        if (iVar1 != 100) {
          if (iVar1 == 0) goto LAB_000ca0bb;
          goto joined_r0x000ca0b9;
        }
        pbVar2 = (byte *)FUN_0004d370(local_24,0);
        bVar5 = false;
        bVar7 = pbVar2 == (byte *)0x0;
      } while (bVar7);
      iVar1 = 3;
      pbVar3 = pbVar2;
      pbVar4 = pbVar9;
      do {
        if (iVar1 == 0) break;
        iVar1 = iVar1 + -1;
        bVar5 = *pbVar3 < *pbVar4;
        bVar7 = *pbVar3 == *pbVar4;
        pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;
        pbVar4 = pbVar4 + (uint)bVar8 * -2 + 1;
      } while (bVar7);
      bVar6 = false;
      bVar5 = (!bVar5 && !bVar7) == bVar5;
      if (!bVar5) {
        iVar1 = 3;
        pbVar3 = &DAT_000f8214;
        do {
          if (iVar1 == 0) break;
          iVar1 = iVar1 + -1;
          bVar6 = *pbVar2 < *pbVar3;
          bVar5 = *pbVar2 == *pbVar3;
          pbVar2 = pbVar2 + (uint)bVar8 * -2 + 1;
          pbVar3 = pbVar3 + (uint)bVar8 * -2 + 1;
        } while (bVar5);
        if ((!bVar6 && !bVar5) != bVar6) goto LAB_000c9ff0;
      }
      iVar1 = MASKED(pbVar9,param_2);
    } while (iVar1 == 0);
joined_r0x000ca0b9:
    if (iVar1 == 0x65) {
LAB_000ca0bb:
      FUN_00089c20(local_24);
    }
    else {
      FUN_00055cc0(param_1);
      FUN_000270d0();
      FUN_00089c20(local_24);
      local_30 = iVar1;
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return local_30;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000f4bf0();
}

