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

int __regparm3 sqlite3JoinType(Parse *pParse,Token *pA,Token *pB,Token *pC)

{
  int iVar1;
  uint uVar2;
  int iVar3;
  undefined *puVar4;
  int iVar5;
  Token *pTVar6;
  int iVar7;
  anon_struct_3_3_0facdf6d *paVar8;
  int in_GS_OFFSET;
  uint local_48;
  Token *apAll [3];
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  apAll[2] = pC;
  local_48 = 0;
  iVar5 = 0;
  pTVar6 = pA;
  apAll[0] = pA;
  apAll[1] = pB;
LAB_0005a235:
  if (pTVar6 != (Token *)0x0) {
    uVar2 = 7;
    iVar7 = 0;
    paVar8 = sqlite3JoinType::aKeyword;
    do {
      if (pTVar6->n == uVar2) {
        iVar3 = sqlite3_strnicmp(pTVar6->z,"naturaleftouterightfullinnercross" + paVar8->i,pTVar6->n
                                );
        if (iVar3 == 0) goto code_r0x0005a285;
      }
      iVar7 = iVar7 + 1;
      if (iVar7 == 7) goto LAB_0005a2f8;
      uVar2 = (uint)paVar8[1].nChar;
      paVar8 = paVar8 + 1;
    } while( true );
  }
  goto LAB_0005a2b0;
code_r0x0005a285:
  local_48 = local_48 | sqlite3JoinType::aKeyword[iVar7].code;
  iVar5 = iVar5 + 1;
  if (iVar5 == 3) {
LAB_0005a2b0:
    if (((local_48 & 0x21) == 0x21) || ((local_48 & 0x40) != 0)) {
LAB_0005a2f8:
      puVar4 = &DAT_000f80a2;
      if (pC == (Token *)0x0) {
        puVar4 = &DAT_000f80a3;
      }
      sqlite3ErrorMsg(pParse,"unknown or unsupported join type: %T %T%s%T",pA,pB,puVar4,pC);
      local_48 = 1;
    }
    else if (((local_48 & 0x20) != 0) && ((local_48 & 0x18) != 8)) {
      sqlite3ErrorMsg(pParse,"RIGHT and FULL OUTER JOINs are not currently supported");
      local_48 = 1;
    }
    if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
      return local_48;
    }
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  pTVar6 = apAll[iVar5];
  goto LAB_0005a235;
}



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

byte __regparm3 FUN_0005a1e0(undefined4 param_1,undefined4 *param_2,undefined4 param_3,int param_4)

{
  byte bVar1;
  uint uVar2;
  int iVar3;
  undefined *puVar4;
  int iVar5;
  undefined4 *puVar6;
  int iVar7;
  byte *pbVar8;
  int in_GS_OFFSET;
  undefined4 *local_2c [2];
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x5a1eb;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_24 = param_4;
  bVar1 = 0;
  iVar5 = 0;
  puVar6 = param_2;
  local_2c[0] = param_2;
  local_2c[1] = (undefined4 *)param_3;
LAB_0005a235:
  if (puVar6 != (undefined4 *)0x0) {
    uVar2 = 7;
    iVar7 = 0;
    pbVar8 = &DAT_000fcd24;
    do {
      if (puVar6[1] == uVar2) {
        iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);
        if (iVar3 == 0) goto code_r0x0005a285;
      }
      iVar7 = iVar7 + 1;
      if (iVar7 == 7) goto LAB_0005a2f8;
      uVar2 = (uint)pbVar8[4];
      pbVar8 = pbVar8 + 3;
    } while( true );
  }
  goto LAB_0005a2b0;
code_r0x0005a285:
  bVar1 = bVar1 | (&DAT_000fcd26)[iVar7 * 3];
  iVar5 = iVar5 + 1;
  if (iVar5 == 3) {
LAB_0005a2b0:
    if (((bVar1 & 0x21) == 0x21) || ((bVar1 & 0x40) != 0)) {
LAB_0005a2f8:
      puVar4 = &DAT_000f80a2;
      if (param_4 == 0) {
        puVar4 = &DAT_000f80a3;
      }
      FUN_000578c0(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,
                   param_4);
      bVar1 = 1;
    }
    else if (((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8)) {
      FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");
      bVar1 = 1;
    }
    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
      return bVar1;
    }
                    /* WARNING: Subroutine does not return */
    FUN_000f4bf0();
  }
  puVar6 = local_2c[iVar5];
  goto LAB_0005a235;
}


PUSH EBP
MOV EBP,EDX
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014cf0
ADD EBX,0xeece9
SUB ESP,0x3c
MOV dword ptr [ESP + 0x10],EAX
MOV EAX,dword ptr [ESP + 0x50]
MOV dword ptr [ESP + 0x14],EDX
MOV dword ptr [ESP + 0x1c],EAX
MOV dword ptr [ESP + 0x18],ECX
MOV EDI,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x2c],EDI
XOR EDI,EDI
MOV dword ptr [ESP + 0x28],EAX
LEA EAX,[EBX + 0xfffb3e2c]
MOV dword ptr [ESP + 0x24],ECX
MOV dword ptr [ESP + 0x4],0x0
MOV dword ptr [ESP + 0xc],EAX
MOV dword ptr [ESP + 0x20],EDX
XOR EDX,EDX
TEST EBP,EBP
JZ 0x0005a2b0
LEA EDI,[EBX + 0xfffb3e50]
MOV EAX,0x7
XOR ESI,ESI
MOV dword ptr [ESP + 0x8],EDX
JMP 0x0005a263
ADD ESI,0x1
ADD EDI,0x3
CMP ESI,0x7
JZ 0x0005a2f8
MOVZX EAX,byte ptr [EDI + 0x1]
MOV ECX,dword ptr [EBP + 0x4]
CMP ECX,EAX
JNZ 0x0005a250
SUB ESP,0x4
PUSH ECX
MOVZX EAX,byte ptr [EDI]
ADD EAX,dword ptr [ESP + 0x14]
PUSH EAX
PUSH dword ptr [EBP]
CALL 0x00028130
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0005a250
MOV EDX,dword ptr [ESP + 0x8]
LEA EAX,[ESI + ESI*0x2]
MOVZX EAX,byte ptr [EBX + EAX*0x1 + 0xfffb3e52]
OR dword ptr [ESP + 0x4],EAX
ADD EDX,0x1
CMP EDX,0x3
JZ 0x0005a2b0
MOV EBP,dword ptr [ESP + EDX*0x4 + 0x20]
JMP 0x0005a235
MOV EDX,dword ptr [ESP + 0x4]
MOV EAX,EDX
AND EAX,0x21
CMP EAX,0x21
JZ 0x0005a2f8
AND EDX,0x40
JNZ 0x0005a2f8
MOV EAX,dword ptr [ESP + 0x4]
TEST AL,0x20
JZ 0x0005a335
AND EAX,0x18
CMP EAX,0x8
JZ 0x0005a335
SUB ESP,0x8
LEA EAX,[EBX + 0xfffba1e8]
PUSH EAX
PUSH dword ptr [ESP + 0x1c]
CALL 0x000578c0
ADD ESP,0x10
MOV dword ptr [ESP + 0x4],0x1
JMP 0x0005a335
MOV EDI,dword ptr [ESP + 0x1c]
LEA EDX,[EBX + 0xfffaf1cf]
LEA EAX,[EBX + 0xfffaf1ce]
TEST EDI,EDI
CMOVZ EAX,EDX
SUB ESP,0x8
PUSH EDI
PUSH EAX
LEA EAX,[EBX + 0xfffba1bc]
PUSH dword ptr [ESP + 0x28]
PUSH dword ptr [ESP + 0x28]
PUSH EAX
PUSH dword ptr [ESP + 0x2c]
CALL 0x000578c0
ADD ESP,0x20
MOV dword ptr [ESP + 0x4],0x1
MOV EBX,dword ptr [ESP + 0x2c]
XOR EBX,dword ptr GS:[0x14]
MOV EAX,dword ptr [ESP + 0x4]
JNZ 0x0005a34e
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x000f4bf0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbyte __regparm3 FUN_0005a1e0(undefined4 param_1,undefined4 *param_2,undefined4 param_3,int param_4)\n\n{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  undefined *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  byte *pbVar8;\n  int in_GS_OFFSET;\n  undefined4 *local_2c [2];\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5a1eb;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = param_4;\n  bVar1 = 0;\n  iVar5 = 0;\n  puVar6 = param_2;\n  local_2c[0] = param_2;\n  local_2c[1] = (undefined4 *)param_3;\nLAB_0005a235:\n  if (puVar6 != (undefined4 *)0x0) {\n    uVar2 = 7;\n    iVar7 = 0;\n    pbVar8 = &DAT_000fcd24;\n    do {\n      if (puVar6[1] == uVar2) {\n        iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == 7) goto LAB_0005a2f8;\n      uVar2 = (uint)pbVar8[4];\n      pbVar8 = pbVar8 + 3;\n    } while( true );\n  }\n  goto LAB_0005a2b0;\ncode_r0x0005a285:\n  bVar1 = bVar1 | (&DAT_000fcd26)[iVar7 * 3];\n  iVar5 = iVar5 + 1;\n  if (iVar5 == 3) {\nLAB_0005a2b0:\n    if (((bVar1 & 0x21) == 0x21) || ((bVar1 & 0x40) != 0)) {\nLAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;\n      if (param_4 == 0) {\n        puVar4 = &DAT_000f80a3;\n      }\n      FUN_000578c0(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4);\n      bVar1 = 1;\n    }\n    else if (((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8)) {\n      FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");\n      bVar1 = 1;\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return bVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_000f4bf0();\n  }\n  puVar6 = local_2c[iVar5];\n  goto LAB_0005a235;\n}\n\n" comment (function_definition "byte __regparm3 FUN_0005a1e0(undefined4 param_1,undefined4 *param_2,undefined4 param_3,int param_4)\n\n{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  undefined *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  byte *pbVar8;\n  int in_GS_OFFSET;\n  undefined4 *local_2c [2];\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5a1eb;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = param_4;\n  bVar1 = 0;\n  iVar5 = 0;\n  puVar6 = param_2;\n  local_2c[0] = param_2;\n  local_2c[1] = (undefined4 *)param_3;\nLAB_0005a235:\n  if (puVar6 != (undefined4 *)0x0) {\n    uVar2 = 7;\n    iVar7 = 0;\n    pbVar8 = &DAT_000fcd24;\n    do {\n      if (puVar6[1] == uVar2) {\n        iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == 7) goto LAB_0005a2f8;\n      uVar2 = (uint)pbVar8[4];\n      pbVar8 = pbVar8 + 3;\n    } while( true );\n  }\n  goto LAB_0005a2b0;\ncode_r0x0005a285:\n  bVar1 = bVar1 | (&DAT_000fcd26)[iVar7 * 3];\n  iVar5 = iVar5 + 1;\n  if (iVar5 == 3) {\nLAB_0005a2b0:\n    if (((bVar1 & 0x21) == 0x21) || ((bVar1 & 0x40) != 0)) {\nLAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;\n      if (param_4 == 0) {\n        puVar4 = &DAT_000f80a3;\n      }\n      FUN_000578c0(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4);\n      bVar1 = 1;\n    }\n    else if (((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8)) {\n      FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");\n      bVar1 = 1;\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return bVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_000f4bf0();\n  }\n  puVar6 = local_2c[iVar5];\n  goto LAB_0005a235;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0005a1e0(undefined4 param_1,undefined4 *param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  undefined *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  byte *pbVar8;\n  int in_GS_OFFSET;\n  undefined4 *local_2c [2];\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5a1eb;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = param_4;\n  bVar1 = 0;\n  iVar5 = 0;\n  puVar6 = param_2;\n  local_2c[0] = param_2;\n  local_2c[1] = (undefined4 *)param_3;\nLAB_0005a235:\n  if (puVar6 != (undefined4 *)0x0) {\n    uVar2 = 7;\n    iVar7 = 0;\n    pbVar8 = &DAT_000fcd24;\n    do {\n      if (puVar6[1] == uVar2) {\n        iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == 7) goto LAB_0005a2f8;\n      uVar2 = (uint)pbVar8[4];\n      pbVar8 = pbVar8 + 3;\n    } while( true );\n  }\n  goto LAB_0005a2b0;\ncode_r0x0005a285:\n  bVar1 = bVar1 | (&DAT_000fcd26)[iVar7 * 3];\n  iVar5 = iVar5 + 1;\n  if (iVar5 == 3) {\nLAB_0005a2b0:\n    if (((bVar1 & 0x21) == 0x21) || ((bVar1 & 0x40) != 0)) {\nLAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;\n      if (param_4 == 0) {\n        puVar4 = &DAT_000f80a3;\n      }\n      FUN_000578c0(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4);\n      bVar1 = 1;\n    }\n    else if (((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8)) {\n      FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");\n      bVar1 = 1;\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return bVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_000f4bf0();\n  }\n  puVar6 = local_2c[iVar5];\n  goto LAB_0005a235;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 *local_2c [2];" type_identifier (pointer_declarator "*local_2c [2]" * (array_declarator "local_2c [2]" identifier [ number_literal ])) ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x5a1eb;" (assignment_expression "uStack_14 = 0x5a1eb" 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_24 = param_4;" (assignment_expression "local_24 = param_4" identifier = identifier) ;) (expression_statement "bVar1 = 0;" (assignment_expression "bVar1 = 0" identifier = number_literal) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "puVar6 = param_2;" (assignment_expression "puVar6 = param_2" identifier = identifier) ;) (expression_statement "local_2c[0] = param_2;" (assignment_expression "local_2c[0] = param_2" (subscript_expression "local_2c[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_2c[1] = (undefined4 *)param_3;" (assignment_expression "local_2c[1] = (undefined4 *)param_3" (subscript_expression "local_2c[1]" identifier [ number_literal ]) = (cast_expression "(undefined4 *)param_3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (labeled_statement "LAB_0005a235:\n  if (puVar6 != (undefined4 *)0x0) {\n    uVar2 = 7;\n    iVar7 = 0;\n    pbVar8 = &DAT_000fcd24;\n    do {\n      if (puVar6[1] == uVar2) {\n        iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == 7) goto LAB_0005a2f8;\n      uVar2 = (uint)pbVar8[4];\n      pbVar8 = pbVar8 + 3;\n    } while( true );\n  }" statement_identifier : (if_statement "if (puVar6 != (undefined4 *)0x0) {\n    uVar2 = 7;\n    iVar7 = 0;\n    pbVar8 = &DAT_000fcd24;\n    do {\n      if (puVar6[1] == uVar2) {\n        iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == 7) goto LAB_0005a2f8;\n      uVar2 = (uint)pbVar8[4];\n      pbVar8 = pbVar8 + 3;\n    } while( true );\n  }" if (parenthesized_expression "(puVar6 != (undefined4 *)0x0)" ( (binary_expression "puVar6 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar2 = 7;\n    iVar7 = 0;\n    pbVar8 = &DAT_000fcd24;\n    do {\n      if (puVar6[1] == uVar2) {\n        iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == 7) goto LAB_0005a2f8;\n      uVar2 = (uint)pbVar8[4];\n      pbVar8 = pbVar8 + 3;\n    } while( true );\n  }" { (expression_statement "uVar2 = 7;" (assignment_expression "uVar2 = 7" identifier = number_literal) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "pbVar8 = &DAT_000fcd24;" (assignment_expression "pbVar8 = &DAT_000fcd24" identifier = (pointer_expression "&DAT_000fcd24" & identifier)) ;) (do_statement "do {\n      if (puVar6[1] == uVar2) {\n        iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == 7) goto LAB_0005a2f8;\n      uVar2 = (uint)pbVar8[4];\n      pbVar8 = pbVar8 + 3;\n    } while( true );" do (compound_statement "{\n      if (puVar6[1] == uVar2) {\n        iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == 7) goto LAB_0005a2f8;\n      uVar2 = (uint)pbVar8[4];\n      pbVar8 = pbVar8 + 3;\n    }" { (if_statement "if (puVar6[1] == uVar2) {\n        iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }" if (parenthesized_expression "(puVar6[1] == uVar2)" ( (binary_expression "puVar6[1] == uVar2" (subscript_expression "puVar6[1]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n        iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }" { (expression_statement "iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);" (assignment_expression "iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1])" identifier = (call_expression "FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1])" identifier (argument_list "(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1])" ( (pointer_expression "*puVar6" * identifier) , (binary_expression ""naturaleftouterightfullinnercross" + *pbVar8" (string_literal ""naturaleftouterightfullinnercross"" " string_content ") + (pointer_expression "*pbVar8" * identifier)) , (subscript_expression "puVar6[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar3 == 0) goto code_r0x0005a285;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto code_r0x0005a285;" goto statement_identifier ;)) })) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (if_statement "if (iVar7 == 7) goto LAB_0005a2f8;" if (parenthesized_expression "(iVar7 == 7)" ( (binary_expression "iVar7 == 7" identifier == number_literal) )) (goto_statement "goto LAB_0005a2f8;" goto statement_identifier ;)) (expression_statement "uVar2 = (uint)pbVar8[4];" (assignment_expression "uVar2 = (uint)pbVar8[4]" identifier = (cast_expression "(uint)pbVar8[4]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar8[4]" identifier [ number_literal ]))) ;) (expression_statement "pbVar8 = pbVar8 + 3;" (assignment_expression "pbVar8 = pbVar8 + 3" identifier = (binary_expression "pbVar8 + 3" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) }))) (goto_statement "goto LAB_0005a2b0;" goto statement_identifier ;) (labeled_statement "code_r0x0005a285:\n  bVar1 = bVar1 | (&DAT_000fcd26)[iVar7 * 3];" statement_identifier : (expression_statement "bVar1 = bVar1 | (&DAT_000fcd26)[iVar7 * 3];" (assignment_expression "bVar1 = bVar1 | (&DAT_000fcd26)[iVar7 * 3]" identifier = (binary_expression "bVar1 | (&DAT_000fcd26)[iVar7 * 3]" identifier | (subscript_expression "(&DAT_000fcd26)[iVar7 * 3]" (parenthesized_expression "(&DAT_000fcd26)" ( (pointer_expression "&DAT_000fcd26" & identifier) )) [ (binary_expression "iVar7 * 3" identifier * number_literal) ]))) ;)) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (if_statement "if (iVar5 == 3) {\nLAB_0005a2b0:\n    if (((bVar1 & 0x21) == 0x21) || ((bVar1 & 0x40) != 0)) {\nLAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;\n      if (param_4 == 0) {\n        puVar4 = &DAT_000f80a3;\n      }\n      FUN_000578c0(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4);\n      bVar1 = 1;\n    }\n    else if (((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8)) {\n      FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");\n      bVar1 = 1;\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return bVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_000f4bf0();\n  }" if (parenthesized_expression "(iVar5 == 3)" ( (binary_expression "iVar5 == 3" identifier == number_literal) )) (compound_statement "{\nLAB_0005a2b0:\n    if (((bVar1 & 0x21) == 0x21) || ((bVar1 & 0x40) != 0)) {\nLAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;\n      if (param_4 == 0) {\n        puVar4 = &DAT_000f80a3;\n      }\n      FUN_000578c0(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4);\n      bVar1 = 1;\n    }\n    else if (((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8)) {\n      FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");\n      bVar1 = 1;\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return bVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_000f4bf0();\n  }" { (labeled_statement "LAB_0005a2b0:\n    if (((bVar1 & 0x21) == 0x21) || ((bVar1 & 0x40) != 0)) {\nLAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;\n      if (param_4 == 0) {\n        puVar4 = &DAT_000f80a3;\n      }\n      FUN_000578c0(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4);\n      bVar1 = 1;\n    }\n    else if (((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8)) {\n      FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");\n      bVar1 = 1;\n    }" statement_identifier : (if_statement "if (((bVar1 & 0x21) == 0x21) || ((bVar1 & 0x40) != 0)) {\nLAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;\n      if (param_4 == 0) {\n        puVar4 = &DAT_000f80a3;\n      }\n      FUN_000578c0(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4);\n      bVar1 = 1;\n    }\n    else if (((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8)) {\n      FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");\n      bVar1 = 1;\n    }" if (parenthesized_expression "(((bVar1 & 0x21) == 0x21) || ((bVar1 & 0x40) != 0))" ( (binary_expression "((bVar1 & 0x21) == 0x21) || ((bVar1 & 0x40) != 0)" (parenthesized_expression "((bVar1 & 0x21) == 0x21)" ( (binary_expression "(bVar1 & 0x21) == 0x21" (parenthesized_expression "(bVar1 & 0x21)" ( (binary_expression "bVar1 & 0x21" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "((bVar1 & 0x40) != 0)" ( (binary_expression "(bVar1 & 0x40) != 0" (parenthesized_expression "(bVar1 & 0x40)" ( (binary_expression "bVar1 & 0x40" identifier & number_literal) )) != number_literal) ))) )) (compound_statement "{\nLAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;\n      if (param_4 == 0) {\n        puVar4 = &DAT_000f80a3;\n      }\n      FUN_000578c0(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4);\n      bVar1 = 1;\n    }" { (labeled_statement "LAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;" statement_identifier : (expression_statement "puVar4 = &DAT_000f80a2;" (assignment_expression "puVar4 = &DAT_000f80a2" identifier = (pointer_expression "&DAT_000f80a2" & identifier)) ;)) (if_statement "if (param_4 == 0) {\n        puVar4 = &DAT_000f80a3;\n      }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n        puVar4 = &DAT_000f80a3;\n      }" { (expression_statement "puVar4 = &DAT_000f80a3;" (assignment_expression "puVar4 = &DAT_000f80a3" identifier = (pointer_expression "&DAT_000f80a3" & identifier)) ;) })) (expression_statement "FUN_000578c0(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4);" (call_expression "FUN_000578c0(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4)" identifier (argument_list "(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4)" ( identifier , (string_literal ""unknown or unsupported join type: %T %T%s%T"" " string_content ") , identifier , identifier , identifier , identifier ))) ;) (expression_statement "bVar1 = 1;" (assignment_expression "bVar1 = 1" identifier = number_literal) ;) }) (else_clause "else if (((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8)) {\n      FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");\n      bVar1 = 1;\n    }" else (if_statement "if (((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8)) {\n      FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");\n      bVar1 = 1;\n    }" if (parenthesized_expression "(((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8))" ( (binary_expression "((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8)" (parenthesized_expression "((bVar1 & 0x20) != 0)" ( (binary_expression "(bVar1 & 0x20) != 0" (parenthesized_expression "(bVar1 & 0x20)" ( (binary_expression "bVar1 & 0x20" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "((bVar1 & 0x18) != 8)" ( (binary_expression "(bVar1 & 0x18) != 8" (parenthesized_expression "(bVar1 & 0x18)" ( (binary_expression "bVar1 & 0x18" identifier & number_literal) )) != number_literal) ))) )) (compound_statement "{\n      FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");\n      bVar1 = 1;\n    }" { (expression_statement "FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");" (call_expression "FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported")" identifier (argument_list "(param_1,"RIGHT and FULL OUTER JOINs are not currently supported")" ( identifier , (string_literal ""RIGHT and FULL OUTER JOINs are not currently supported"" " string_content ") ))) ;) (expression_statement "bVar1 = 1;" (assignment_expression "bVar1 = 1" identifier = number_literal) ;) }))))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return bVar1;\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 bVar1;\n    }" { (return_statement "return bVar1;" return identifier ;) })) comment (expression_statement "FUN_000f4bf0();" (call_expression "FUN_000f4bf0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "puVar6 = local_2c[iVar5];" (assignment_expression "puVar6 = local_2c[iVar5]" identifier = (subscript_expression "local_2c[iVar5]" identifier [ identifier ])) ;) (goto_statement "goto LAB_0005a235;" goto statement_identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 sqlite3JoinType(Parse *pParse,Token *pA,Token *pB,Token *pC)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined *puVar4;\n  int iVar5;\n  Token *pTVar6;\n  int iVar7;\n  anon_struct_3_3_0facdf6d *paVar8;\n  int in_GS_OFFSET;\n  uint local_48;\n  Token *apAll [3];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  apAll[2] = pC;\n  local_48 = 0;\n  iVar5 = 0;\n  pTVar6 = pA;\n  apAll[0] = pA;\n  apAll[1] = pB;\nLAB_0005a235:\n  if (pTVar6 != (Token *)0x0) {\n    uVar2 = 7;\n    iVar7 = 0;\n    paVar8 = sqlite3JoinType::aKeyword;\n    do {\n      if (pTVar6->n == uVar2) {\n        iVar3 = sqlite3_strnicmp(pTVar6->z,"naturaleftouterightfullinnercross" + paVar8->i,pTVar6->n\n                                );\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == 7) goto LAB_0005a2f8;\n      uVar2 = (uint)paVar8[1].nChar;\n      paVar8 = paVar8 + 1;\n    } while( true );\n  }\n  goto LAB_0005a2b0;\ncode_r0x0005a285:\n  local_48 = local_48 | sqlite3JoinType::aKeyword[iVar7].code;\n  iVar5 = iVar5 + 1;\n  if (iVar5 == 3) {\nLAB_0005a2b0:\n    if (((local_48 & 0x21) == 0x21) || ((local_48 & 0x40) != 0)) {\nLAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;\n      if (pC == (Token *)0x0) {\n        puVar4 = &DAT_000f80a3;\n      }\n      sqlite3ErrorMsg(pParse,"unknown or unsupported join type: %T %T%s%T",pA,pB,puVar4,pC);\n      local_48 = 1;\n    }\n    else if (((local_48 & 0x20) != 0) && ((local_48 & 0x18) != 8)) {\n      sqlite3ErrorMsg(pParse,"RIGHT and FULL OUTER JOINs are not currently supported");\n      local_48 = 1;\n    }\n    if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return local_48;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  pTVar6 = apAll[iVar5];\n  goto LAB_0005a235;\n}\n\n" comment (function_definition "int __regparm3 sqlite3JoinType(Parse *pParse,Token *pA,Token *pB,Token *pC)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined *puVar4;\n  int iVar5;\n  Token *pTVar6;\n  int iVar7;\n  anon_struct_3_3_0facdf6d *paVar8;\n  int in_GS_OFFSET;\n  uint local_48;\n  Token *apAll [3];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  apAll[2] = pC;\n  local_48 = 0;\n  iVar5 = 0;\n  pTVar6 = pA;\n  apAll[0] = pA;\n  apAll[1] = pB;\nLAB_0005a235:\n  if (pTVar6 != (Token *)0x0) {\n    uVar2 = 7;\n    iVar7 = 0;\n    paVar8 = sqlite3JoinType::aKeyword;\n    do {\n      if (pTVar6->n == uVar2) {\n        iVar3 = sqlite3_strnicmp(pTVar6->z,"naturaleftouterightfullinnercross" + paVar8->i,pTVar6->n\n                                );\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == 7) goto LAB_0005a2f8;\n      uVar2 = (uint)paVar8[1].nChar;\n      paVar8 = paVar8 + 1;\n    } while( true );\n  }\n  goto LAB_0005a2b0;\ncode_r0x0005a285:\n  local_48 = local_48 | sqlite3JoinType::aKeyword[iVar7].code;\n  iVar5 = iVar5 + 1;\n  if (iVar5 == 3) {\nLAB_0005a2b0:\n    if (((local_48 & 0x21) == 0x21) || ((local_48 & 0x40) != 0)) {\nLAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;\n      if (pC == (Token *)0x0) {\n        puVar4 = &DAT_000f80a3;\n      }\n      sqlite3ErrorMsg(pParse,"unknown or unsupported join type: %T %T%s%T",pA,pB,puVar4,pC);\n      local_48 = 1;\n    }\n    else if (((local_48 & 0x20) != 0) && ((local_48 & 0x18) != 8)) {\n      sqlite3ErrorMsg(pParse,"RIGHT and FULL OUTER JOINs are not currently supported");\n      local_48 = 1;\n    }\n    if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return local_48;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  pTVar6 = apAll[iVar5];\n  goto LAB_0005a235;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sqlite3JoinType(Parse *pParse,Token *pA,Token *pB,Token *pC)" identifier (parameter_list "(Parse *pParse,Token *pA,Token *pB,Token *pC)" ( (parameter_declaration "Parse *pParse" type_identifier (pointer_declarator "*pParse" * identifier)) , (parameter_declaration "Token *pA" type_identifier (pointer_declarator "*pA" * identifier)) , (parameter_declaration "Token *pB" type_identifier (pointer_declarator "*pB" * identifier)) , (parameter_declaration "Token *pC" type_identifier (pointer_declarator "*pC" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined *puVar4;\n  int iVar5;\n  Token *pTVar6;\n  int iVar7;\n  anon_struct_3_3_0facdf6d *paVar8;\n  int in_GS_OFFSET;\n  uint local_48;\n  Token *apAll [3];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  apAll[2] = pC;\n  local_48 = 0;\n  iVar5 = 0;\n  pTVar6 = pA;\n  apAll[0] = pA;\n  apAll[1] = pB;\nLAB_0005a235:\n  if (pTVar6 != (Token *)0x0) {\n    uVar2 = 7;\n    iVar7 = 0;\n    paVar8 = sqlite3JoinType::aKeyword;\n    do {\n      if (pTVar6->n == uVar2) {\n        iVar3 = sqlite3_strnicmp(pTVar6->z,"naturaleftouterightfullinnercross" + paVar8->i,pTVar6->n\n                                );\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == 7) goto LAB_0005a2f8;\n      uVar2 = (uint)paVar8[1].nChar;\n      paVar8 = paVar8 + 1;\n    } while( true );\n  }\n  goto LAB_0005a2b0;\ncode_r0x0005a285:\n  local_48 = local_48 | sqlite3JoinType::aKeyword[iVar7].code;\n  iVar5 = iVar5 + 1;\n  if (iVar5 == 3) {\nLAB_0005a2b0:\n    if (((local_48 & 0x21) == 0x21) || ((local_48 & 0x40) != 0)) {\nLAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;\n      if (pC == (Token *)0x0) {\n        puVar4 = &DAT_000f80a3;\n      }\n      sqlite3ErrorMsg(pParse,"unknown or unsupported join type: %T %T%s%T",pA,pB,puVar4,pC);\n      local_48 = 1;\n    }\n    else if (((local_48 & 0x20) != 0) && ((local_48 & 0x18) != 8)) {\n      sqlite3ErrorMsg(pParse,"RIGHT and FULL OUTER JOINs are not currently supported");\n      local_48 = 1;\n    }\n    if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return local_48;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  pTVar6 = apAll[iVar5];\n  goto LAB_0005a235;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "Token *pTVar6;" type_identifier (pointer_declarator "*pTVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "anon_struct_3_3_0facdf6d *paVar8;" type_identifier (pointer_declarator "*paVar8" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint local_48;" type_identifier identifier ;) (declaration "Token *apAll [3];" type_identifier (pointer_declarator "*apAll [3]" * (array_declarator "apAll [3]" identifier [ number_literal ])) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "apAll[2] = pC;" (assignment_expression "apAll[2] = pC" (subscript_expression "apAll[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" identifier = number_literal) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "pTVar6 = pA;" (assignment_expression "pTVar6 = pA" identifier = identifier) ;) (expression_statement "apAll[0] = pA;" (assignment_expression "apAll[0] = pA" (subscript_expression "apAll[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "apAll[1] = pB;" (assignment_expression "apAll[1] = pB" (subscript_expression "apAll[1]" identifier [ number_literal ]) = identifier) ;) (labeled_statement "LAB_0005a235:\n  if (pTVar6 != (Token *)0x0) {\n    uVar2 = 7;\n    iVar7 = 0;\n    paVar8 = sqlite3JoinType::aKeyword;\n    do {\n      if (pTVar6->n == uVar2) {\n        iVar3 = sqlite3_strnicmp(pTVar6->z,"naturaleftouterightfullinnercross" + paVar8->i,pTVar6->n\n                                );\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == 7) goto LAB_0005a2f8;\n      uVar2 = (uint)paVar8[1].nChar;\n      paVar8 = paVar8 + 1;\n    } while( true );\n  }" statement_identifier : (if_statement "if (pTVar6 != (Token *)0x0) {\n    uVar2 = 7;\n    iVar7 = 0;\n    paVar8 = sqlite3JoinType::aKeyword;\n    do {\n      if (pTVar6->n == uVar2) {\n        iVar3 = sqlite3_strnicmp(pTVar6->z,"naturaleftouterightfullinnercross" + paVar8->i,pTVar6->n\n                                );\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == 7) goto LAB_0005a2f8;\n      uVar2 = (uint)paVar8[1].nChar;\n      paVar8 = paVar8 + 1;\n    } while( true );\n  }" if (parenthesized_expression "(pTVar6 != (Token *)0x0)" ( (binary_expression "pTVar6 != (Token *)0x0" identifier != (cast_expression "(Token *)0x0" ( (type_descriptor "Token *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar2 = 7;\n    iVar7 = 0;\n    paVar8 = sqlite3JoinType::aKeyword;\n    do {\n      if (pTVar6->n == uVar2) {\n        iVar3 = sqlite3_strnicmp(pTVar6->z,"naturaleftouterightfullinnercross" + paVar8->i,pTVar6->n\n                                );\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == 7) goto LAB_0005a2f8;\n      uVar2 = (uint)paVar8[1].nChar;\n      paVar8 = paVar8 + 1;\n    } while( true );\n  }" { (expression_statement "uVar2 = 7;" (assignment_expression "uVar2 = 7" identifier = number_literal) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "paVar8 = sqlite3JoinType::aKeyword;" (assignment_expression "paVar8 = sqlite3JoinType" identifier = identifier) (ERROR "::aKeyword" : : identifier) ;) (do_statement "do {\n      if (pTVar6->n == uVar2) {\n        iVar3 = sqlite3_strnicmp(pTVar6->z,"naturaleftouterightfullinnercross" + paVar8->i,pTVar6->n\n                                );\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == 7) goto LAB_0005a2f8;\n      uVar2 = (uint)paVar8[1].nChar;\n      paVar8 = paVar8 + 1;\n    } while( true );" do (compound_statement "{\n      if (pTVar6->n == uVar2) {\n        iVar3 = sqlite3_strnicmp(pTVar6->z,"naturaleftouterightfullinnercross" + paVar8->i,pTVar6->n\n                                );\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == 7) goto LAB_0005a2f8;\n      uVar2 = (uint)paVar8[1].nChar;\n      paVar8 = paVar8 + 1;\n    }" { (if_statement "if (pTVar6->n == uVar2) {\n        iVar3 = sqlite3_strnicmp(pTVar6->z,"naturaleftouterightfullinnercross" + paVar8->i,pTVar6->n\n                                );\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }" if (parenthesized_expression "(pTVar6->n == uVar2)" ( (binary_expression "pTVar6->n == uVar2" (field_expression "pTVar6->n" identifier -> field_identifier) == identifier) )) (compound_statement "{\n        iVar3 = sqlite3_strnicmp(pTVar6->z,"naturaleftouterightfullinnercross" + paVar8->i,pTVar6->n\n                                );\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }" { (expression_statement "iVar3 = sqlite3_strnicmp(pTVar6->z,"naturaleftouterightfullinnercross" + paVar8->i,pTVar6->n\n                                );" (assignment_expression "iVar3 = sqlite3_strnicmp(pTVar6->z,"naturaleftouterightfullinnercross" + paVar8->i,pTVar6->n\n                                )" identifier = (call_expression "sqlite3_strnicmp(pTVar6->z,"naturaleftouterightfullinnercross" + paVar8->i,pTVar6->n\n                                )" identifier (argument_list "(pTVar6->z,"naturaleftouterightfullinnercross" + paVar8->i,pTVar6->n\n                                )" ( (field_expression "pTVar6->z" identifier -> field_identifier) , (binary_expression ""naturaleftouterightfullinnercross" + paVar8->i" (string_literal ""naturaleftouterightfullinnercross"" " string_content ") + (field_expression "paVar8->i" identifier -> field_identifier)) , (field_expression "pTVar6->n" identifier -> field_identifier) )))) ;) (if_statement "if (iVar3 == 0) goto code_r0x0005a285;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto code_r0x0005a285;" goto statement_identifier ;)) })) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (if_statement "if (iVar7 == 7) goto LAB_0005a2f8;" if (parenthesized_expression "(iVar7 == 7)" ( (binary_expression "iVar7 == 7" identifier == number_literal) )) (goto_statement "goto LAB_0005a2f8;" goto statement_identifier ;)) (expression_statement "uVar2 = (uint)paVar8[1].nChar;" (assignment_expression "uVar2 = (uint)paVar8[1].nChar" identifier = (cast_expression "(uint)paVar8[1].nChar" ( (type_descriptor "uint" type_identifier) ) (field_expression "paVar8[1].nChar" (subscript_expression "paVar8[1]" identifier [ number_literal ]) . field_identifier))) ;) (expression_statement "paVar8 = paVar8 + 1;" (assignment_expression "paVar8 = paVar8 + 1" identifier = (binary_expression "paVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) }))) (goto_statement "goto LAB_0005a2b0;" goto statement_identifier ;) (labeled_statement "code_r0x0005a285:\n  local_48 = local_48 | sqlite3JoinType::aKeyword[iVar7].code;" statement_identifier : (expression_statement "local_48 = local_48 | sqlite3JoinType::aKeyword[iVar7].code;" (field_expression "local_48 = local_48 | sqlite3JoinType::aKeyword[iVar7].code" (subscript_expression "local_48 = local_48 | sqlite3JoinType::aKeyword[iVar7]" (assignment_expression "local_48 = local_48 | sqlite3JoinType" identifier = (binary_expression "local_48 | sqlite3JoinType" identifier | identifier)) (ERROR "::aKeyword" : : identifier) [ identifier ]) . field_identifier) ;)) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (if_statement "if (iVar5 == 3) {\nLAB_0005a2b0:\n    if (((local_48 & 0x21) == 0x21) || ((local_48 & 0x40) != 0)) {\nLAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;\n      if (pC == (Token *)0x0) {\n        puVar4 = &DAT_000f80a3;\n      }\n      sqlite3ErrorMsg(pParse,"unknown or unsupported join type: %T %T%s%T",pA,pB,puVar4,pC);\n      local_48 = 1;\n    }\n    else if (((local_48 & 0x20) != 0) && ((local_48 & 0x18) != 8)) {\n      sqlite3ErrorMsg(pParse,"RIGHT and FULL OUTER JOINs are not currently supported");\n      local_48 = 1;\n    }\n    if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return local_48;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(iVar5 == 3)" ( (binary_expression "iVar5 == 3" identifier == number_literal) )) (compound_statement "{\nLAB_0005a2b0:\n    if (((local_48 & 0x21) == 0x21) || ((local_48 & 0x40) != 0)) {\nLAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;\n      if (pC == (Token *)0x0) {\n        puVar4 = &DAT_000f80a3;\n      }\n      sqlite3ErrorMsg(pParse,"unknown or unsupported join type: %T %T%s%T",pA,pB,puVar4,pC);\n      local_48 = 1;\n    }\n    else if (((local_48 & 0x20) != 0) && ((local_48 & 0x18) != 8)) {\n      sqlite3ErrorMsg(pParse,"RIGHT and FULL OUTER JOINs are not currently supported");\n      local_48 = 1;\n    }\n    if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return local_48;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { (labeled_statement "LAB_0005a2b0:\n    if (((local_48 & 0x21) == 0x21) || ((local_48 & 0x40) != 0)) {\nLAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;\n      if (pC == (Token *)0x0) {\n        puVar4 = &DAT_000f80a3;\n      }\n      sqlite3ErrorMsg(pParse,"unknown or unsupported join type: %T %T%s%T",pA,pB,puVar4,pC);\n      local_48 = 1;\n    }\n    else if (((local_48 & 0x20) != 0) && ((local_48 & 0x18) != 8)) {\n      sqlite3ErrorMsg(pParse,"RIGHT and FULL OUTER JOINs are not currently supported");\n      local_48 = 1;\n    }" statement_identifier : (if_statement "if (((local_48 & 0x21) == 0x21) || ((local_48 & 0x40) != 0)) {\nLAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;\n      if (pC == (Token *)0x0) {\n        puVar4 = &DAT_000f80a3;\n      }\n      sqlite3ErrorMsg(pParse,"unknown or unsupported join type: %T %T%s%T",pA,pB,puVar4,pC);\n      local_48 = 1;\n    }\n    else if (((local_48 & 0x20) != 0) && ((local_48 & 0x18) != 8)) {\n      sqlite3ErrorMsg(pParse,"RIGHT and FULL OUTER JOINs are not currently supported");\n      local_48 = 1;\n    }" if (parenthesized_expression "(((local_48 & 0x21) == 0x21) || ((local_48 & 0x40) != 0))" ( (binary_expression "((local_48 & 0x21) == 0x21) || ((local_48 & 0x40) != 0)" (parenthesized_expression "((local_48 & 0x21) == 0x21)" ( (binary_expression "(local_48 & 0x21) == 0x21" (parenthesized_expression "(local_48 & 0x21)" ( (binary_expression "local_48 & 0x21" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "((local_48 & 0x40) != 0)" ( (binary_expression "(local_48 & 0x40) != 0" (parenthesized_expression "(local_48 & 0x40)" ( (binary_expression "local_48 & 0x40" identifier & number_literal) )) != number_literal) ))) )) (compound_statement "{\nLAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;\n      if (pC == (Token *)0x0) {\n        puVar4 = &DAT_000f80a3;\n      }\n      sqlite3ErrorMsg(pParse,"unknown or unsupported join type: %T %T%s%T",pA,pB,puVar4,pC);\n      local_48 = 1;\n    }" { (labeled_statement "LAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;" statement_identifier : (expression_statement "puVar4 = &DAT_000f80a2;" (assignment_expression "puVar4 = &DAT_000f80a2" identifier = (pointer_expression "&DAT_000f80a2" & identifier)) ;)) (if_statement "if (pC == (Token *)0x0) {\n        puVar4 = &DAT_000f80a3;\n      }" if (parenthesized_expression "(pC == (Token *)0x0)" ( (binary_expression "pC == (Token *)0x0" identifier == (cast_expression "(Token *)0x0" ( (type_descriptor "Token *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        puVar4 = &DAT_000f80a3;\n      }" { (expression_statement "puVar4 = &DAT_000f80a3;" (assignment_expression "puVar4 = &DAT_000f80a3" identifier = (pointer_expression "&DAT_000f80a3" & identifier)) ;) })) (expression_statement "sqlite3ErrorMsg(pParse,"unknown or unsupported join type: %T %T%s%T",pA,pB,puVar4,pC);" (call_expression "sqlite3ErrorMsg(pParse,"unknown or unsupported join type: %T %T%s%T",pA,pB,puVar4,pC)" identifier (argument_list "(pParse,"unknown or unsupported join type: %T %T%s%T",pA,pB,puVar4,pC)" ( identifier , (string_literal ""unknown or unsupported join type: %T %T%s%T"" " string_content ") , identifier , identifier , identifier , identifier ))) ;) (expression_statement "local_48 = 1;" (assignment_expression "local_48 = 1" identifier = number_literal) ;) }) (else_clause "else if (((local_48 & 0x20) != 0) && ((local_48 & 0x18) != 8)) {\n      sqlite3ErrorMsg(pParse,"RIGHT and FULL OUTER JOINs are not currently supported");\n      local_48 = 1;\n    }" else (if_statement "if (((local_48 & 0x20) != 0) && ((local_48 & 0x18) != 8)) {\n      sqlite3ErrorMsg(pParse,"RIGHT and FULL OUTER JOINs are not currently supported");\n      local_48 = 1;\n    }" if (parenthesized_expression "(((local_48 & 0x20) != 0) && ((local_48 & 0x18) != 8))" ( (binary_expression "((local_48 & 0x20) != 0) && ((local_48 & 0x18) != 8)" (parenthesized_expression "((local_48 & 0x20) != 0)" ( (binary_expression "(local_48 & 0x20) != 0" (parenthesized_expression "(local_48 & 0x20)" ( (binary_expression "local_48 & 0x20" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "((local_48 & 0x18) != 8)" ( (binary_expression "(local_48 & 0x18) != 8" (parenthesized_expression "(local_48 & 0x18)" ( (binary_expression "local_48 & 0x18" identifier & number_literal) )) != number_literal) ))) )) (compound_statement "{\n      sqlite3ErrorMsg(pParse,"RIGHT and FULL OUTER JOINs are not currently supported");\n      local_48 = 1;\n    }" { (expression_statement "sqlite3ErrorMsg(pParse,"RIGHT and FULL OUTER JOINs are not currently supported");" (call_expression "sqlite3ErrorMsg(pParse,"RIGHT and FULL OUTER JOINs are not currently supported")" identifier (argument_list "(pParse,"RIGHT and FULL OUTER JOINs are not currently supported")" ( identifier , (string_literal ""RIGHT and FULL OUTER JOINs are not currently supported"" " string_content ") ))) ;) (expression_statement "local_48 = 1;" (assignment_expression "local_48 = 1" identifier = number_literal) ;) }))))) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return local_48;\n    }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n      return local_48;\n    }" { (return_statement "return local_48;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "pTVar6 = apAll[iVar5];" (assignment_expression "pTVar6 = apAll[iVar5]" identifier = (subscript_expression "apAll[iVar5]" identifier [ identifier ])) ;) (goto_statement "goto LAB_0005a235;" goto statement_identifier ;) })))
(translation_unit "byte __regparm3 FUN_0005a1e0(undefined4 param_1,undefined4 *param_2,undefined4 param_3,int param_4)\n\n{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  undefined *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  byte *pbVar8;\n  int in_GS_OFFSET;\n  undefined4 *local_2c [2];\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5a1eb;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = param_4;\n  bVar1 = 0;\n  iVar5 = 0;\n  puVar6 = param_2;\n  local_2c[0] = param_2;\n  local_2c[1] = (undefined4 *)param_3;\nLAB_0005a235:\n  if (puVar6 != (undefined4 *)0x0) {\n    uVar2 = 7;\n    iVar7 = 0;\n    pbVar8 = &DAT_000fcd24;\n    do {\n      if (puVar6[1] == uVar2) {\n        iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == 7) goto LAB_0005a2f8;\n      uVar2 = (uint)pbVar8[4];\n      pbVar8 = pbVar8 + 3;\n    } while( true );\n  }\n  goto LAB_0005a2b0;\ncode_r0x0005a285:\n  bVar1 = bVar1 | (&DAT_000fcd26)[iVar7 * 3];\n  iVar5 = iVar5 + 1;\n  if (iVar5 == 3) {\nLAB_0005a2b0:\n    if (((bVar1 & 0x21) == 0x21) || ((bVar1 & 0x40) != 0)) {\nLAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;\n      if (param_4 == 0) {\n        puVar4 = &DAT_000f80a3;\n      }\n      FUN_000578c0(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4);\n      bVar1 = 1;\n    }\n    else if (((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8)) {\n      FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");\n      bVar1 = 1;\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return bVar1;\n    }\n                    \n    FUN_000f4bf0();\n  }\n  puVar6 = local_2c[iVar5];\n  goto LAB_0005a235;\n}\n\n" (function_definition "byte __regparm3 FUN_0005a1e0(undefined4 param_1,undefined4 *param_2,undefined4 param_3,int param_4)\n\n{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  undefined *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  byte *pbVar8;\n  int in_GS_OFFSET;\n  undefined4 *local_2c [2];\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5a1eb;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = param_4;\n  bVar1 = 0;\n  iVar5 = 0;\n  puVar6 = param_2;\n  local_2c[0] = param_2;\n  local_2c[1] = (undefined4 *)param_3;\nLAB_0005a235:\n  if (puVar6 != (undefined4 *)0x0) {\n    uVar2 = 7;\n    iVar7 = 0;\n    pbVar8 = &DAT_000fcd24;\n    do {\n      if (puVar6[1] == uVar2) {\n        iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == 7) goto LAB_0005a2f8;\n      uVar2 = (uint)pbVar8[4];\n      pbVar8 = pbVar8 + 3;\n    } while( true );\n  }\n  goto LAB_0005a2b0;\ncode_r0x0005a285:\n  bVar1 = bVar1 | (&DAT_000fcd26)[iVar7 * 3];\n  iVar5 = iVar5 + 1;\n  if (iVar5 == 3) {\nLAB_0005a2b0:\n    if (((bVar1 & 0x21) == 0x21) || ((bVar1 & 0x40) != 0)) {\nLAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;\n      if (param_4 == 0) {\n        puVar4 = &DAT_000f80a3;\n      }\n      FUN_000578c0(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4);\n      bVar1 = 1;\n    }\n    else if (((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8)) {\n      FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");\n      bVar1 = 1;\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return bVar1;\n    }\n                    \n    FUN_000f4bf0();\n  }\n  puVar6 = local_2c[iVar5];\n  goto LAB_0005a235;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0005a1e0(undefined4 param_1,undefined4 *param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  undefined *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  byte *pbVar8;\n  int in_GS_OFFSET;\n  undefined4 *local_2c [2];\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5a1eb;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = param_4;\n  bVar1 = 0;\n  iVar5 = 0;\n  puVar6 = param_2;\n  local_2c[0] = param_2;\n  local_2c[1] = (undefined4 *)param_3;\nLAB_0005a235:\n  if (puVar6 != (undefined4 *)0x0) {\n    uVar2 = 7;\n    iVar7 = 0;\n    pbVar8 = &DAT_000fcd24;\n    do {\n      if (puVar6[1] == uVar2) {\n        iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == 7) goto LAB_0005a2f8;\n      uVar2 = (uint)pbVar8[4];\n      pbVar8 = pbVar8 + 3;\n    } while( true );\n  }\n  goto LAB_0005a2b0;\ncode_r0x0005a285:\n  bVar1 = bVar1 | (&DAT_000fcd26)[iVar7 * 3];\n  iVar5 = iVar5 + 1;\n  if (iVar5 == 3) {\nLAB_0005a2b0:\n    if (((bVar1 & 0x21) == 0x21) || ((bVar1 & 0x40) != 0)) {\nLAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;\n      if (param_4 == 0) {\n        puVar4 = &DAT_000f80a3;\n      }\n      FUN_000578c0(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4);\n      bVar1 = 1;\n    }\n    else if (((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8)) {\n      FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");\n      bVar1 = 1;\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return bVar1;\n    }\n                    \n    FUN_000f4bf0();\n  }\n  puVar6 = local_2c[iVar5];\n  goto LAB_0005a235;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 *local_2c [2];" type_identifier (pointer_declarator "*local_2c [2]" * (array_declarator "local_2c [2]" identifier [ number_literal ])) ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x5a1eb;" (assignment_expression "uStack_14 = 0x5a1eb" 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_24 = param_4;" (assignment_expression "local_24 = param_4" identifier = identifier) ;) (expression_statement "bVar1 = 0;" (assignment_expression "bVar1 = 0" identifier = number_literal) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "puVar6 = param_2;" (assignment_expression "puVar6 = param_2" identifier = identifier) ;) (expression_statement "local_2c[0] = param_2;" (assignment_expression "local_2c[0] = param_2" (subscript_expression "local_2c[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_2c[1] = (undefined4 *)param_3;" (assignment_expression "local_2c[1] = (undefined4 *)param_3" (subscript_expression "local_2c[1]" identifier [ number_literal ]) = (cast_expression "(undefined4 *)param_3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (labeled_statement "LAB_0005a235:\n  if (puVar6 != (undefined4 *)0x0) {\n    uVar2 = 7;\n    iVar7 = 0;\n    pbVar8 = &DAT_000fcd24;\n    do {\n      if (puVar6[1] == uVar2) {\n        iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == 7) goto LAB_0005a2f8;\n      uVar2 = (uint)pbVar8[4];\n      pbVar8 = pbVar8 + 3;\n    } while( true );\n  }" statement_identifier : (if_statement "if (puVar6 != (undefined4 *)0x0) {\n    uVar2 = 7;\n    iVar7 = 0;\n    pbVar8 = &DAT_000fcd24;\n    do {\n      if (puVar6[1] == uVar2) {\n        iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == 7) goto LAB_0005a2f8;\n      uVar2 = (uint)pbVar8[4];\n      pbVar8 = pbVar8 + 3;\n    } while( true );\n  }" if (parenthesized_expression "(puVar6 != (undefined4 *)0x0)" ( (binary_expression "puVar6 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar2 = 7;\n    iVar7 = 0;\n    pbVar8 = &DAT_000fcd24;\n    do {\n      if (puVar6[1] == uVar2) {\n        iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == 7) goto LAB_0005a2f8;\n      uVar2 = (uint)pbVar8[4];\n      pbVar8 = pbVar8 + 3;\n    } while( true );\n  }" { (expression_statement "uVar2 = 7;" (assignment_expression "uVar2 = 7" identifier = number_literal) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "pbVar8 = &DAT_000fcd24;" (assignment_expression "pbVar8 = &DAT_000fcd24" identifier = (pointer_expression "&DAT_000fcd24" & identifier)) ;) (do_statement "do {\n      if (puVar6[1] == uVar2) {\n        iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == 7) goto LAB_0005a2f8;\n      uVar2 = (uint)pbVar8[4];\n      pbVar8 = pbVar8 + 3;\n    } while( true );" do (compound_statement "{\n      if (puVar6[1] == uVar2) {\n        iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == 7) goto LAB_0005a2f8;\n      uVar2 = (uint)pbVar8[4];\n      pbVar8 = pbVar8 + 3;\n    }" { (if_statement "if (puVar6[1] == uVar2) {\n        iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }" if (parenthesized_expression "(puVar6[1] == uVar2)" ( (binary_expression "puVar6[1] == uVar2" (subscript_expression "puVar6[1]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n        iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }" { (expression_statement "iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);" (assignment_expression "iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1])" identifier = (call_expression "FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1])" identifier (argument_list "(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1])" ( (pointer_expression "*puVar6" * identifier) , (binary_expression ""naturaleftouterightfullinnercross" + *pbVar8" (string_literal ""naturaleftouterightfullinnercross"" " string_content ") + (pointer_expression "*pbVar8" * identifier)) , (subscript_expression "puVar6[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar3 == 0) goto code_r0x0005a285;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto code_r0x0005a285;" goto statement_identifier ;)) })) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (if_statement "if (iVar7 == 7) goto LAB_0005a2f8;" if (parenthesized_expression "(iVar7 == 7)" ( (binary_expression "iVar7 == 7" identifier == number_literal) )) (goto_statement "goto LAB_0005a2f8;" goto statement_identifier ;)) (expression_statement "uVar2 = (uint)pbVar8[4];" (assignment_expression "uVar2 = (uint)pbVar8[4]" identifier = (cast_expression "(uint)pbVar8[4]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar8[4]" identifier [ number_literal ]))) ;) (expression_statement "pbVar8 = pbVar8 + 3;" (assignment_expression "pbVar8 = pbVar8 + 3" identifier = (binary_expression "pbVar8 + 3" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) }))) (goto_statement "goto LAB_0005a2b0;" goto statement_identifier ;) (labeled_statement "code_r0x0005a285:\n  bVar1 = bVar1 | (&DAT_000fcd26)[iVar7 * 3];" statement_identifier : (expression_statement "bVar1 = bVar1 | (&DAT_000fcd26)[iVar7 * 3];" (assignment_expression "bVar1 = bVar1 | (&DAT_000fcd26)[iVar7 * 3]" identifier = (binary_expression "bVar1 | (&DAT_000fcd26)[iVar7 * 3]" identifier | (subscript_expression "(&DAT_000fcd26)[iVar7 * 3]" (parenthesized_expression "(&DAT_000fcd26)" ( (pointer_expression "&DAT_000fcd26" & identifier) )) [ (binary_expression "iVar7 * 3" identifier * number_literal) ]))) ;)) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (if_statement "if (iVar5 == 3) {\nLAB_0005a2b0:\n    if (((bVar1 & 0x21) == 0x21) || ((bVar1 & 0x40) != 0)) {\nLAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;\n      if (param_4 == 0) {\n        puVar4 = &DAT_000f80a3;\n      }\n      FUN_000578c0(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4);\n      bVar1 = 1;\n    }\n    else if (((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8)) {\n      FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");\n      bVar1 = 1;\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return bVar1;\n    }\n                    \n    FUN_000f4bf0();\n  }" if (parenthesized_expression "(iVar5 == 3)" ( (binary_expression "iVar5 == 3" identifier == number_literal) )) (compound_statement "{\nLAB_0005a2b0:\n    if (((bVar1 & 0x21) == 0x21) || ((bVar1 & 0x40) != 0)) {\nLAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;\n      if (param_4 == 0) {\n        puVar4 = &DAT_000f80a3;\n      }\n      FUN_000578c0(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4);\n      bVar1 = 1;\n    }\n    else if (((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8)) {\n      FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");\n      bVar1 = 1;\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return bVar1;\n    }\n                    \n    FUN_000f4bf0();\n  }" { (labeled_statement "LAB_0005a2b0:\n    if (((bVar1 & 0x21) == 0x21) || ((bVar1 & 0x40) != 0)) {\nLAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;\n      if (param_4 == 0) {\n        puVar4 = &DAT_000f80a3;\n      }\n      FUN_000578c0(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4);\n      bVar1 = 1;\n    }\n    else if (((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8)) {\n      FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");\n      bVar1 = 1;\n    }" statement_identifier : (if_statement "if (((bVar1 & 0x21) == 0x21) || ((bVar1 & 0x40) != 0)) {\nLAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;\n      if (param_4 == 0) {\n        puVar4 = &DAT_000f80a3;\n      }\n      FUN_000578c0(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4);\n      bVar1 = 1;\n    }\n    else if (((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8)) {\n      FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");\n      bVar1 = 1;\n    }" if (parenthesized_expression "(((bVar1 & 0x21) == 0x21) || ((bVar1 & 0x40) != 0))" ( (binary_expression "((bVar1 & 0x21) == 0x21) || ((bVar1 & 0x40) != 0)" (parenthesized_expression "((bVar1 & 0x21) == 0x21)" ( (binary_expression "(bVar1 & 0x21) == 0x21" (parenthesized_expression "(bVar1 & 0x21)" ( (binary_expression "bVar1 & 0x21" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "((bVar1 & 0x40) != 0)" ( (binary_expression "(bVar1 & 0x40) != 0" (parenthesized_expression "(bVar1 & 0x40)" ( (binary_expression "bVar1 & 0x40" identifier & number_literal) )) != number_literal) ))) )) (compound_statement "{\nLAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;\n      if (param_4 == 0) {\n        puVar4 = &DAT_000f80a3;\n      }\n      FUN_000578c0(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4);\n      bVar1 = 1;\n    }" { (labeled_statement "LAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;" statement_identifier : (expression_statement "puVar4 = &DAT_000f80a2;" (assignment_expression "puVar4 = &DAT_000f80a2" identifier = (pointer_expression "&DAT_000f80a2" & identifier)) ;)) (if_statement "if (param_4 == 0) {\n        puVar4 = &DAT_000f80a3;\n      }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n        puVar4 = &DAT_000f80a3;\n      }" { (expression_statement "puVar4 = &DAT_000f80a3;" (assignment_expression "puVar4 = &DAT_000f80a3" identifier = (pointer_expression "&DAT_000f80a3" & identifier)) ;) })) (expression_statement "FUN_000578c0(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4);" (call_expression "FUN_000578c0(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4)" identifier (argument_list "(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4)" ( identifier , (string_literal ""unknown or unsupported join type: %T %T%s%T"" " string_content ") , identifier , identifier , identifier , identifier ))) ;) (expression_statement "bVar1 = 1;" (assignment_expression "bVar1 = 1" identifier = number_literal) ;) }) (else_clause "else if (((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8)) {\n      FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");\n      bVar1 = 1;\n    }" else (if_statement "if (((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8)) {\n      FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");\n      bVar1 = 1;\n    }" if (parenthesized_expression "(((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8))" ( (binary_expression "((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8)" (parenthesized_expression "((bVar1 & 0x20) != 0)" ( (binary_expression "(bVar1 & 0x20) != 0" (parenthesized_expression "(bVar1 & 0x20)" ( (binary_expression "bVar1 & 0x20" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "((bVar1 & 0x18) != 8)" ( (binary_expression "(bVar1 & 0x18) != 8" (parenthesized_expression "(bVar1 & 0x18)" ( (binary_expression "bVar1 & 0x18" identifier & number_literal) )) != number_literal) ))) )) (compound_statement "{\n      FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");\n      bVar1 = 1;\n    }" { (expression_statement "FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");" (call_expression "FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported")" identifier (argument_list "(param_1,"RIGHT and FULL OUTER JOINs are not currently supported")" ( identifier , (string_literal ""RIGHT and FULL OUTER JOINs are not currently supported"" " string_content ") ))) ;) (expression_statement "bVar1 = 1;" (assignment_expression "bVar1 = 1" identifier = number_literal) ;) }))))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return bVar1;\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 bVar1;\n    }" { (return_statement "return bVar1;" return identifier ;) })) (expression_statement "FUN_000f4bf0();" (call_expression "FUN_000f4bf0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "puVar6 = local_2c[iVar5];" (assignment_expression "puVar6 = local_2c[iVar5]" identifier = (subscript_expression "local_2c[iVar5]" identifier [ identifier ])) ;) (goto_statement "goto LAB_0005a235;" goto statement_identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (array_declarator IDENT [ LIT ])) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (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 (subscript_expression IDENT [ LIT ]) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (binary_expression (string_literal " string_content ") + (pointer_expression * IDENT)) , (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( BOOL )) ;) }))) (goto_statement goto statement_identifier ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT | (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ (binary_expression IDENT * LIT) ]))) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) ))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))))) (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 ( ))) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) (goto_statement goto statement_identifier ;) })))
(function_definition "byte __regparm3 FUN_0005a1e0(undefined4 param_1,undefined4 *param_2,undefined4 param_3,int param_4)\n\n{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  undefined *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  byte *pbVar8;\n  int in_GS_OFFSET;\n  undefined4 *local_2c [2];\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5a1eb;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = param_4;\n  bVar1 = 0;\n  iVar5 = 0;\n  puVar6 = param_2;\n  local_2c[0] = param_2;\n  local_2c[1] = (undefined4 *)param_3;\nLAB_0005a235:\n  if (puVar6 != (undefined4 *)0x0) {\n    uVar2 = 7;\n    iVar7 = 0;\n    pbVar8 = &DAT_000fcd24;\n    do {\n      if (puVar6[1] == uVar2) {\n        iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == 7) goto LAB_0005a2f8;\n      uVar2 = (uint)pbVar8[4];\n      pbVar8 = pbVar8 + 3;\n    } while( true );\n  }\n  goto LAB_0005a2b0;\ncode_r0x0005a285:\n  bVar1 = bVar1 | (&DAT_000fcd26)[iVar7 * 3];\n  iVar5 = iVar5 + 1;\n  if (iVar5 == 3) {\nLAB_0005a2b0:\n    if (((bVar1 & 0x21) == 0x21) || ((bVar1 & 0x40) != 0)) {\nLAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;\n      if (param_4 == 0) {\n        puVar4 = &DAT_000f80a3;\n      }\n      FUN_000578c0(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4);\n      bVar1 = 1;\n    }\n    else if (((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8)) {\n      FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");\n      bVar1 = 1;\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return bVar1;\n    }\n                    \n    FUN_000f4bf0();\n  }\n  puVar6 = local_2c[iVar5];\n  goto LAB_0005a235;\n}" (type_identifier "byte") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0005a1e0(undefined4 param_1,undefined4 *param_2,undefined4 param_3,int param_4)" (identifier "FUN_0005a1e0") (parameter_list "(undefined4 param_1,undefined4 *param_2,undefined4 param_3,int param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  undefined *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  byte *pbVar8;\n  int in_GS_OFFSET;\n  undefined4 *local_2c [2];\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5a1eb;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = param_4;\n  bVar1 = 0;\n  iVar5 = 0;\n  puVar6 = param_2;\n  local_2c[0] = param_2;\n  local_2c[1] = (undefined4 *)param_3;\nLAB_0005a235:\n  if (puVar6 != (undefined4 *)0x0) {\n    uVar2 = 7;\n    iVar7 = 0;\n    pbVar8 = &DAT_000fcd24;\n    do {\n      if (puVar6[1] == uVar2) {\n        iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == 7) goto LAB_0005a2f8;\n      uVar2 = (uint)pbVar8[4];\n      pbVar8 = pbVar8 + 3;\n    } while( true );\n  }\n  goto LAB_0005a2b0;\ncode_r0x0005a285:\n  bVar1 = bVar1 | (&DAT_000fcd26)[iVar7 * 3];\n  iVar5 = iVar5 + 1;\n  if (iVar5 == 3) {\nLAB_0005a2b0:\n    if (((bVar1 & 0x21) == 0x21) || ((bVar1 & 0x40) != 0)) {\nLAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;\n      if (param_4 == 0) {\n        puVar4 = &DAT_000f80a3;\n      }\n      FUN_000578c0(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4);\n      bVar1 = 1;\n    }\n    else if (((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8)) {\n      FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");\n      bVar1 = 1;\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return bVar1;\n    }\n                    \n    FUN_000f4bf0();\n  }\n  puVar6 = local_2c[iVar5];\n  goto LAB_0005a235;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "byte *pbVar8;" (type_identifier "byte") (pointer_declarator "*pbVar8" (* "*") (identifier "pbVar8")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 *local_2c [2];" (type_identifier "undefined4") (pointer_declarator "*local_2c [2]" (* "*") (array_declarator "local_2c [2]" (identifier "local_2c") ([ "[") (number_literal "2") (] "]"))) (; ";")) (declaration "int local_24;" (primitive_type "int") (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 "uStack_14 = 0x5a1eb;" (assignment_expression "uStack_14 = 0x5a1eb" (identifier "uStack_14") (= "=") (number_literal "0x5a1eb")) (; ";")) (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_24 = param_4;" (assignment_expression "local_24 = param_4" (identifier "local_24") (= "=") (identifier "param_4")) (; ";")) (expression_statement "bVar1 = 0;" (assignment_expression "bVar1 = 0" (identifier "bVar1") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar6 = param_2;" (assignment_expression "puVar6 = param_2" (identifier "puVar6") (= "=") (identifier "param_2")) (; ";")) (expression_statement "local_2c[0] = param_2;" (assignment_expression "local_2c[0] = param_2" (subscript_expression "local_2c[0]" (identifier "local_2c") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "local_2c[1] = (undefined4 *)param_3;" (assignment_expression "local_2c[1] = (undefined4 *)param_3" (subscript_expression "local_2c[1]" (identifier "local_2c") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(undefined4 *)param_3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_3"))) (; ";")) (labeled_statement "LAB_0005a235:\n  if (puVar6 != (undefined4 *)0x0) {\n    uVar2 = 7;\n    iVar7 = 0;\n    pbVar8 = &DAT_000fcd24;\n    do {\n      if (puVar6[1] == uVar2) {\n        iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == 7) goto LAB_0005a2f8;\n      uVar2 = (uint)pbVar8[4];\n      pbVar8 = pbVar8 + 3;\n    } while( true );\n  }" (statement_identifier "LAB_0005a235") (: ":") (if_statement "if (puVar6 != (undefined4 *)0x0) {\n    uVar2 = 7;\n    iVar7 = 0;\n    pbVar8 = &DAT_000fcd24;\n    do {\n      if (puVar6[1] == uVar2) {\n        iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == 7) goto LAB_0005a2f8;\n      uVar2 = (uint)pbVar8[4];\n      pbVar8 = pbVar8 + 3;\n    } while( true );\n  }" (if "if") (parenthesized_expression "(puVar6 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar6 != (undefined4 *)0x0" (identifier "puVar6") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar2 = 7;\n    iVar7 = 0;\n    pbVar8 = &DAT_000fcd24;\n    do {\n      if (puVar6[1] == uVar2) {\n        iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == 7) goto LAB_0005a2f8;\n      uVar2 = (uint)pbVar8[4];\n      pbVar8 = pbVar8 + 3;\n    } while( true );\n  }" ({ "{") (expression_statement "uVar2 = 7;" (assignment_expression "uVar2 = 7" (identifier "uVar2") (= "=") (number_literal "7")) (; ";")) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "pbVar8 = &DAT_000fcd24;" (assignment_expression "pbVar8 = &DAT_000fcd24" (identifier "pbVar8") (= "=") (pointer_expression "&DAT_000fcd24" (& "&") (identifier "DAT_000fcd24"))) (; ";")) (do_statement "do {\n      if (puVar6[1] == uVar2) {\n        iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == 7) goto LAB_0005a2f8;\n      uVar2 = (uint)pbVar8[4];\n      pbVar8 = pbVar8 + 3;\n    } while( true );" (do "do") (compound_statement "{\n      if (puVar6[1] == uVar2) {\n        iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == 7) goto LAB_0005a2f8;\n      uVar2 = (uint)pbVar8[4];\n      pbVar8 = pbVar8 + 3;\n    }" ({ "{") (if_statement "if (puVar6[1] == uVar2) {\n        iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }" (if "if") (parenthesized_expression "(puVar6[1] == uVar2)" (( "(") (binary_expression "puVar6[1] == uVar2" (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]")) (== "==") (identifier "uVar2")) () ")")) (compound_statement "{\n        iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);\n        if (iVar3 == 0) goto code_r0x0005a285;\n      }" ({ "{") (expression_statement "iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);" (assignment_expression "iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1])" (identifier "iVar3") (= "=") (call_expression "FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1])" (identifier "FUN_00028130") (argument_list "(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1])" (( "(") (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (, ",") (binary_expression ""naturaleftouterightfullinnercross" + *pbVar8" (string_literal ""naturaleftouterightfullinnercross"" (" """) (string_content "naturaleftouterightfullinnercross") (" """)) (+ "+") (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8"))) (, ",") (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (if_statement "if (iVar3 == 0) goto code_r0x0005a285;" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (goto_statement "goto code_r0x0005a285;" (goto "goto") (statement_identifier "code_r0x0005a285") (; ";"))) (} "}"))) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar7 == 7) goto LAB_0005a2f8;" (if "if") (parenthesized_expression "(iVar7 == 7)" (( "(") (binary_expression "iVar7 == 7" (identifier "iVar7") (== "==") (number_literal "7")) () ")")) (goto_statement "goto LAB_0005a2f8;" (goto "goto") (statement_identifier "LAB_0005a2f8") (; ";"))) (expression_statement "uVar2 = (uint)pbVar8[4];" (assignment_expression "uVar2 = (uint)pbVar8[4]" (identifier "uVar2") (= "=") (cast_expression "(uint)pbVar8[4]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar8[4]" (identifier "pbVar8") ([ "[") (number_literal "4") (] "]")))) (; ";")) (expression_statement "pbVar8 = pbVar8 + 3;" (assignment_expression "pbVar8 = pbVar8 + 3" (identifier "pbVar8") (= "=") (binary_expression "pbVar8 + 3" (identifier "pbVar8") (+ "+") (number_literal "3"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))) (goto_statement "goto LAB_0005a2b0;" (goto "goto") (statement_identifier "LAB_0005a2b0") (; ";")) (labeled_statement "code_r0x0005a285:\n  bVar1 = bVar1 | (&DAT_000fcd26)[iVar7 * 3];" (statement_identifier "code_r0x0005a285") (: ":") (expression_statement "bVar1 = bVar1 | (&DAT_000fcd26)[iVar7 * 3];" (assignment_expression "bVar1 = bVar1 | (&DAT_000fcd26)[iVar7 * 3]" (identifier "bVar1") (= "=") (binary_expression "bVar1 | (&DAT_000fcd26)[iVar7 * 3]" (identifier "bVar1") (| "|") (subscript_expression "(&DAT_000fcd26)[iVar7 * 3]" (parenthesized_expression "(&DAT_000fcd26)" (( "(") (pointer_expression "&DAT_000fcd26" (& "&") (identifier "DAT_000fcd26")) () ")")) ([ "[") (binary_expression "iVar7 * 3" (identifier "iVar7") (* "*") (number_literal "3")) (] "]")))) (; ";"))) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar5 == 3) {\nLAB_0005a2b0:\n    if (((bVar1 & 0x21) == 0x21) || ((bVar1 & 0x40) != 0)) {\nLAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;\n      if (param_4 == 0) {\n        puVar4 = &DAT_000f80a3;\n      }\n      FUN_000578c0(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4);\n      bVar1 = 1;\n    }\n    else if (((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8)) {\n      FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");\n      bVar1 = 1;\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return bVar1;\n    }\n                    \n    FUN_000f4bf0();\n  }" (if "if") (parenthesized_expression "(iVar5 == 3)" (( "(") (binary_expression "iVar5 == 3" (identifier "iVar5") (== "==") (number_literal "3")) () ")")) (compound_statement "{\nLAB_0005a2b0:\n    if (((bVar1 & 0x21) == 0x21) || ((bVar1 & 0x40) != 0)) {\nLAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;\n      if (param_4 == 0) {\n        puVar4 = &DAT_000f80a3;\n      }\n      FUN_000578c0(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4);\n      bVar1 = 1;\n    }\n    else if (((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8)) {\n      FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");\n      bVar1 = 1;\n    }\n    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return bVar1;\n    }\n                    \n    FUN_000f4bf0();\n  }" ({ "{") (labeled_statement "LAB_0005a2b0:\n    if (((bVar1 & 0x21) == 0x21) || ((bVar1 & 0x40) != 0)) {\nLAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;\n      if (param_4 == 0) {\n        puVar4 = &DAT_000f80a3;\n      }\n      FUN_000578c0(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4);\n      bVar1 = 1;\n    }\n    else if (((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8)) {\n      FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");\n      bVar1 = 1;\n    }" (statement_identifier "LAB_0005a2b0") (: ":") (if_statement "if (((bVar1 & 0x21) == 0x21) || ((bVar1 & 0x40) != 0)) {\nLAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;\n      if (param_4 == 0) {\n        puVar4 = &DAT_000f80a3;\n      }\n      FUN_000578c0(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4);\n      bVar1 = 1;\n    }\n    else if (((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8)) {\n      FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");\n      bVar1 = 1;\n    }" (if "if") (parenthesized_expression "(((bVar1 & 0x21) == 0x21) || ((bVar1 & 0x40) != 0))" (( "(") (binary_expression "((bVar1 & 0x21) == 0x21) || ((bVar1 & 0x40) != 0)" (parenthesized_expression "((bVar1 & 0x21) == 0x21)" (( "(") (binary_expression "(bVar1 & 0x21) == 0x21" (parenthesized_expression "(bVar1 & 0x21)" (( "(") (binary_expression "bVar1 & 0x21" (identifier "bVar1") (& "&") (number_literal "0x21")) () ")")) (== "==") (number_literal "0x21")) () ")")) (|| "||") (parenthesized_expression "((bVar1 & 0x40) != 0)" (( "(") (binary_expression "(bVar1 & 0x40) != 0" (parenthesized_expression "(bVar1 & 0x40)" (( "(") (binary_expression "bVar1 & 0x40" (identifier "bVar1") (& "&") (number_literal "0x40")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\nLAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;\n      if (param_4 == 0) {\n        puVar4 = &DAT_000f80a3;\n      }\n      FUN_000578c0(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4);\n      bVar1 = 1;\n    }" ({ "{") (labeled_statement "LAB_0005a2f8:\n      puVar4 = &DAT_000f80a2;" (statement_identifier "LAB_0005a2f8") (: ":") (expression_statement "puVar4 = &DAT_000f80a2;" (assignment_expression "puVar4 = &DAT_000f80a2" (identifier "puVar4") (= "=") (pointer_expression "&DAT_000f80a2" (& "&") (identifier "DAT_000f80a2"))) (; ";"))) (if_statement "if (param_4 == 0) {\n        puVar4 = &DAT_000f80a3;\n      }" (if "if") (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        puVar4 = &DAT_000f80a3;\n      }" ({ "{") (expression_statement "puVar4 = &DAT_000f80a3;" (assignment_expression "puVar4 = &DAT_000f80a3" (identifier "puVar4") (= "=") (pointer_expression "&DAT_000f80a3" (& "&") (identifier "DAT_000f80a3"))) (; ";")) (} "}"))) (expression_statement "FUN_000578c0(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4);" (call_expression "FUN_000578c0(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4)" (identifier "FUN_000578c0") (argument_list "(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,\n                   param_4)" (( "(") (identifier "param_1") (, ",") (string_literal ""unknown or unsupported join type: %T %T%s%T"" (" """) (string_content "unknown or unsupported join type: %T %T%s%T") (" """)) (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "puVar4") (, ",") (identifier "param_4") () ")"))) (; ";")) (expression_statement "bVar1 = 1;" (assignment_expression "bVar1 = 1" (identifier "bVar1") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else if (((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8)) {\n      FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");\n      bVar1 = 1;\n    }" (else "else") (if_statement "if (((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8)) {\n      FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");\n      bVar1 = 1;\n    }" (if "if") (parenthesized_expression "(((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8))" (( "(") (binary_expression "((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8)" (parenthesized_expression "((bVar1 & 0x20) != 0)" (( "(") (binary_expression "(bVar1 & 0x20) != 0" (parenthesized_expression "(bVar1 & 0x20)" (( "(") (binary_expression "bVar1 & 0x20" (identifier "bVar1") (& "&") (number_literal "0x20")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((bVar1 & 0x18) != 8)" (( "(") (binary_expression "(bVar1 & 0x18) != 8" (parenthesized_expression "(bVar1 & 0x18)" (( "(") (binary_expression "bVar1 & 0x18" (identifier "bVar1") (& "&") (number_literal "0x18")) () ")")) (!= "!=") (number_literal "8")) () ")"))) () ")")) (compound_statement "{\n      FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");\n      bVar1 = 1;\n    }" ({ "{") (expression_statement "FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");" (call_expression "FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported")" (identifier "FUN_000578c0") (argument_list "(param_1,"RIGHT and FULL OUTER JOINs are not currently supported")" (( "(") (identifier "param_1") (, ",") (string_literal ""RIGHT and FULL OUTER JOINs are not currently supported"" (" """) (string_content "RIGHT and FULL OUTER JOINs are not currently supported") (" """)) () ")"))) (; ";")) (expression_statement "bVar1 = 1;" (assignment_expression "bVar1 = 1" (identifier "bVar1") (= "=") (number_literal "1")) (; ";")) (} "}")))))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return bVar1;\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 bVar1;\n    }" ({ "{") (return_statement "return bVar1;" (return "return") (identifier "bVar1") (; ";")) (} "}"))) (expression_statement "FUN_000f4bf0();" (call_expression "FUN_000f4bf0()" (identifier "FUN_000f4bf0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar6 = local_2c[iVar5];" (assignment_expression "puVar6 = local_2c[iVar5]" (identifier "puVar6") (= "=") (subscript_expression "local_2c[iVar5]" (identifier "local_2c") ([ "[") (identifier "iVar5") (] "]"))) (; ";")) (goto_statement "goto LAB_0005a235;" (goto "goto") (statement_identifier "LAB_0005a235") (; ";")) (} "}")))

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

int __regparm3 function_1(type_1 *pParse,type_2 *pA,type_2 *pB,type_2 *var_10)

{
  int var_12;
  type_3 var_3;
  int var_5;
  type_4 *puVar4;
  int var_9;
  type_2 *var_2;
  int var_6;
  type_5 *var_7;
  int var_1;
  type_3 var_8;
  type_2 *apAll [3];
  
  var_12 = *(int *)(var_1 + 0x14);
  apAll[2] = var_10;
  var_8 = 0;
  var_9 = 0;
  var_2 = pA;
  apAll[0] = pA;
  apAll[1] = pB;
LAB_0005a235:
  if (var_2 != (type_2 *)0x0) {
    var_3 = 7;
    var_6 = 0;
    var_7 = function_1::aKeyword;
    do {
      if (var_2->n == var_3) {
        var_5 = var_4(var_2->z,"naturaleftouterightfullinnercross" + var_7->i,var_2->n
                                );
        if (var_5 == 0) goto code_r0x0005a285;
      }
      var_6 = var_6 + 1;
      if (var_6 == 7) goto LAB_0005a2f8;
      var_3 = (type_3)var_7[1].nChar;
      var_7 = var_7 + 1;
    } while( true );
  }
  goto LAB_0005a2b0;
code_r0x0005a285:
  var_8 = var_8 | function_1::aKeyword[var_6].code;
  var_9 = var_9 + 1;
  if (var_9 == 3) {
LAB_0005a2b0:
    if (((var_8 & 0x21) == 0x21) || ((var_8 & 0x40) != 0)) {
LAB_0005a2f8:
      puVar4 = &DAT_000f80a2;
      if (var_10 == (type_2 *)0x0) {
        puVar4 = &DAT_000f80a3;
      }
      var_11(pParse,"unknown or unsupported join type: %T %T%s%T",pA,pB,puVar4,var_10);
      var_8 = 1;
    }
    else if (((var_8 & 0x20) != 0) && ((var_8 & 0x18) != 8)) {
      var_11(pParse,"RIGHT and FULL OUTER JOINs are not currently supported");
      var_8 = 1;
    }
    if (var_12 == *(int *)(var_1 + 0x14)) {
      return var_8;
    }
                    /* WARNING: Subroutine does not return */
    var_13();
  }
  var_2 = apAll[var_9];
  goto LAB_0005a235;
}


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

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

byte __regparm3 MASKED(undefined4 param_1,undefined4 *param_2,undefined4 param_3,int param_4)

{
  byte bVar1;
  uint uVar2;
  int iVar3;
  undefined *puVar4;
  int iVar5;
  undefined4 *puVar6;
  int iVar7;
  byte *pbVar8;
  int in_GS_OFFSET;
  undefined4 *local_2c [2];
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x5a1eb;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_24 = param_4;
  bVar1 = 0;
  iVar5 = 0;
  puVar6 = param_2;
  local_2c[0] = param_2;
  local_2c[1] = (undefined4 *)param_3;
LAB_0005a235:
  if (puVar6 != (undefined4 *)0x0) {
    uVar2 = 7;
    iVar7 = 0;
    pbVar8 = &DAT_000fcd24;
    do {
      if (puVar6[1] == uVar2) {
        iVar3 = FUN_00028130(*puVar6,"naturaleftouterightfullinnercross" + *pbVar8,puVar6[1]);
        if (iVar3 == 0) goto code_r0x0005a285;
      }
      iVar7 = iVar7 + 1;
      if (iVar7 == 7) goto LAB_0005a2f8;
      uVar2 = (uint)pbVar8[4];
      pbVar8 = pbVar8 + 3;
    } while( true );
  }
  goto LAB_0005a2b0;
code_r0x0005a285:
  bVar1 = bVar1 | (&DAT_000fcd26)[iVar7 * 3];
  iVar5 = iVar5 + 1;
  if (iVar5 == 3) {
LAB_0005a2b0:
    if (((bVar1 & 0x21) == 0x21) || ((bVar1 & 0x40) != 0)) {
LAB_0005a2f8:
      puVar4 = &DAT_000f80a2;
      if (param_4 == 0) {
        puVar4 = &DAT_000f80a3;
      }
      FUN_000578c0(param_1,"unknown or unsupported join type: %T %T%s%T",param_2,param_3,puVar4,
                   param_4);
      bVar1 = 1;
    }
    else if (((bVar1 & 0x20) != 0) && ((bVar1 & 0x18) != 8)) {
      FUN_000578c0(param_1,"RIGHT and FULL OUTER JOINs are not currently supported");
      bVar1 = 1;
    }
    if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
      return bVar1;
    }
                    /* WARNING: Subroutine does not return */
    FUN_000f4bf0();
  }
  puVar6 = local_2c[iVar5];
  goto LAB_0005a235;
}

