
Index * sqlite3FindIndex(sqlite3 *db,char *zName,char *zDb)

{
  byte *pbVar1;
  uint uVar2;
  HashElem *pHVar3;
  byte *pbVar4;
  uint uVar5;
  byte *pbVar6;
  int iVar7;
  undefined *puVar8;
  uint uVar9;
  
  iVar7 = db->nDb;
  if (iVar7 < 1) {
    return (Index *)0x0;
  }
  uVar9 = 0;
  puVar8 = PTR_DAT_00190b94 + -0x3c18;
  do {
    while( true ) {
      uVar2 = uVar9 ^ 1;
      if (1 < (int)uVar9) {
        uVar2 = uVar9;
      }
      if ((byte *)zDb != (byte *)0x0) break;
LAB_00042444:
      pHVar3 = findElementWithHash(&(db->aDb[uVar2].pSchema)->idxHash,zName,(uint *)0x0);
      if ((Index *)pHVar3->data != (Index *)0x0) {
        return (Index *)pHVar3->data;
      }
      iVar7 = db->nDb;
      uVar9 = uVar9 + 1;
      if (iVar7 <= (int)uVar9) {
        return (Index *)0x0;
      }
    }
    pbVar4 = (byte *)db->aDb[uVar2].zDbSName;
    uVar5 = (uint)(byte)*zDb;
    pbVar6 = (byte *)zDb;
    if (puVar8[*pbVar4] == puVar8[uVar5]) {
      do {
        if (uVar5 == 0) goto LAB_00042444;
        pbVar6 = pbVar6 + 1;
        pbVar1 = pbVar4 + 1;
        uVar5 = (uint)*pbVar6;
        pbVar4 = pbVar4 + 1;
      } while (puVar8[uVar5] == puVar8[*pbVar1]);
    }
    uVar9 = uVar9 + 1;
    if (iVar7 <= (int)uVar9) {
      return (Index *)0x0;
    }
  } while( true );
}



int FUN_00042368(int param_1,undefined4 param_2,byte *param_3)

{
  byte *pbVar1;
  byte *pbVar2;
  uint uVar3;
  byte *pbVar4;
  undefined4 *puVar5;
  int iVar6;
  undefined *puVar7;
  uint uVar8;
  
  iVar6 = *(int *)(param_1 + 0x14);
  if (iVar6 < 1) {
    return 0;
  }
  uVar8 = 0;
  puVar7 = PTR_DAT_00190b94 + -0x3c18;
  do {
    while( true ) {
      uVar3 = uVar8 ^ 1;
      if (1 < (int)uVar8) {
        uVar3 = uVar8;
      }
      puVar5 = (undefined4 *)(*(int *)(param_1 + 0x10) + uVar3 * 0x10);
      if (param_3 != (byte *)0x0) break;
LAB_00042444:
      iVar6 = FUN_0004016c(puVar5[3] + 0x18,param_2,0);
      if (*(int *)(iVar6 + 8) != 0) {
        return *(int *)(iVar6 + 8);
      }
      iVar6 = *(int *)(param_1 + 0x14);
      uVar8 = uVar8 + 1;
      if (iVar6 <= (int)uVar8) {
        return 0;
      }
    }
    pbVar2 = (byte *)*puVar5;
    uVar3 = (uint)*param_3;
    pbVar4 = param_3;
    if (puVar7[*pbVar2] == puVar7[uVar3]) {
      do {
        if (uVar3 == 0) goto LAB_00042444;
        pbVar4 = pbVar4 + 1;
        pbVar1 = pbVar2 + 1;
        uVar3 = (uint)*pbVar4;
        pbVar2 = pbVar2 + 1;
      } while (puVar7[uVar3] == puVar7[*pbVar1]);
    }
    uVar8 = uVar8 + 1;
    if (iVar6 <= (int)uVar8) {
      return 0;
    }
  } while( true );
}


lui gp,0x15
addiu gp,gp,0x65b8
addu gp,gp,t9
lw t3,0x14(a0)
blez t3,0x00042480
_lw t9,-0x7de0(gp)
addiu sp,sp,-0x20
lw t4,-0x7d8c(gp)
or t5,zero,zero
or t7,a2,zero
addiu t9,t9,0x16c
sw gp,0x10(sp)
addiu t4,t4,-0x3c18
sw ra,0x1c(sp)
or t6,a1,zero
or t8,a0,zero
slti v0,t5,0x2
bne v0,zero,0x000423b8
_xori v0,t5,0x1
or v0,t5,zero
lw t2,0x10(t8)
sll v0,v0,0x4
beq t7,zero,0x00042444
_addu t2,t2,v0
lw v1,0x0(t2)
lbu a0,0x0(t7)
lbu v0,0x0(v1)
addu a1,t4,a0
addu v0,t4,v0
lbu a1,0x0(a1)
lbu v0,0x0(v0)
bne v0,a1,0x00042424
_nop
beq a0,zero,0x00042444
_or a3,t7,zero
b 0x00042404
_addiu a3,a3,0x1
beq t0,zero,0x00042444
_addiu a3,a3,0x1
lbu v0,0x1(v1)
lbu t0,0x0(a3)
addu v0,t4,v0
addu t1,t4,t0
lbu v0,0x0(v0)
lbu t1,0x0(t1)
beq t1,v0,0x000423fc
_addiu v1,v1,0x1
addiu t5,t5,0x1
slt v0,t5,t3
bne v0,zero,0x000423ac
_slti v0,t5,0x2
or v0,zero,zero
lw ra,0x1c(sp)
jr ra
_addiu sp,sp,0x20
lw a0,0xc(t2)
or a2,zero,zero
or a1,t6,zero
bal 0x0004016c
_addiu a0,a0,0x18
lw v0,0x8(v0)
bne v0,zero,0x0004243c
_lw ra,0x1c(sp)
lw t3,0x14(t8)
addiu t5,t5,0x1
slt v0,t5,t3
bne v0,zero,0x000423a8
_or v0,zero,zero
b 0x00042438
_nop
jr ra
_or v0,zero,zero
(translation_unit "int FUN_00042368(int param_1,undefined4 param_2,byte *param_3)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  uint uVar3;\n  byte *pbVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined *puVar7;\n  uint uVar8;\n  \n  iVar6 = *(int *)(param_1 + 0x14);\n  if (iVar6 < 1) {\n    return 0;\n  }\n  uVar8 = 0;\n  puVar7 = PTR_DAT_00190b94 + -0x3c18;\n  do {\n    while( true ) {\n      uVar3 = uVar8 ^ 1;\n      if (1 < (int)uVar8) {\n        uVar3 = uVar8;\n      }\n      puVar5 = (undefined4 *)(*(int *)(param_1 + 0x10) + uVar3 * 0x10);\n      if (param_3 != (byte *)0x0) break;\nLAB_00042444:\n      iVar6 = FUN_0004016c(puVar5[3] + 0x18,param_2,0);\n      if (*(int *)(iVar6 + 8) != 0) {\n        return *(int *)(iVar6 + 8);\n      }\n      iVar6 = *(int *)(param_1 + 0x14);\n      uVar8 = uVar8 + 1;\n      if (iVar6 <= (int)uVar8) {\n        return 0;\n      }\n    }\n    pbVar2 = (byte *)*puVar5;\n    uVar3 = (uint)*param_3;\n    pbVar4 = param_3;\n    if (puVar7[*pbVar2] == puVar7[uVar3]) {\n      do {\n        if (uVar3 == 0) goto LAB_00042444;\n        pbVar4 = pbVar4 + 1;\n        pbVar1 = pbVar2 + 1;\n        uVar3 = (uint)*pbVar4;\n        pbVar2 = pbVar2 + 1;\n      } while (puVar7[uVar3] == puVar7[*pbVar1]);\n    }\n    uVar8 = uVar8 + 1;\n    if (iVar6 <= (int)uVar8) {\n      return 0;\n    }\n  } while( true );\n}\n\n" (function_definition "int FUN_00042368(int param_1,undefined4 param_2,byte *param_3)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  uint uVar3;\n  byte *pbVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined *puVar7;\n  uint uVar8;\n  \n  iVar6 = *(int *)(param_1 + 0x14);\n  if (iVar6 < 1) {\n    return 0;\n  }\n  uVar8 = 0;\n  puVar7 = PTR_DAT_00190b94 + -0x3c18;\n  do {\n    while( true ) {\n      uVar3 = uVar8 ^ 1;\n      if (1 < (int)uVar8) {\n        uVar3 = uVar8;\n      }\n      puVar5 = (undefined4 *)(*(int *)(param_1 + 0x10) + uVar3 * 0x10);\n      if (param_3 != (byte *)0x0) break;\nLAB_00042444:\n      iVar6 = FUN_0004016c(puVar5[3] + 0x18,param_2,0);\n      if (*(int *)(iVar6 + 8) != 0) {\n        return *(int *)(iVar6 + 8);\n      }\n      iVar6 = *(int *)(param_1 + 0x14);\n      uVar8 = uVar8 + 1;\n      if (iVar6 <= (int)uVar8) {\n        return 0;\n      }\n    }\n    pbVar2 = (byte *)*puVar5;\n    uVar3 = (uint)*param_3;\n    pbVar4 = param_3;\n    if (puVar7[*pbVar2] == puVar7[uVar3]) {\n      do {\n        if (uVar3 == 0) goto LAB_00042444;\n        pbVar4 = pbVar4 + 1;\n        pbVar1 = pbVar2 + 1;\n        uVar3 = (uint)*pbVar4;\n        pbVar2 = pbVar2 + 1;\n      } while (puVar7[uVar3] == puVar7[*pbVar1]);\n    }\n    uVar8 = uVar8 + 1;\n    if (iVar6 <= (int)uVar8) {\n      return 0;\n    }\n  } while( true );\n}" primitive_type (function_declarator "FUN_00042368(int param_1,undefined4 param_2,byte *param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,byte *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "byte *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  byte *pbVar1;\n  byte *pbVar2;\n  uint uVar3;\n  byte *pbVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined *puVar7;\n  uint uVar8;\n  \n  iVar6 = *(int *)(param_1 + 0x14);\n  if (iVar6 < 1) {\n    return 0;\n  }\n  uVar8 = 0;\n  puVar7 = PTR_DAT_00190b94 + -0x3c18;\n  do {\n    while( true ) {\n      uVar3 = uVar8 ^ 1;\n      if (1 < (int)uVar8) {\n        uVar3 = uVar8;\n      }\n      puVar5 = (undefined4 *)(*(int *)(param_1 + 0x10) + uVar3 * 0x10);\n      if (param_3 != (byte *)0x0) break;\nLAB_00042444:\n      iVar6 = FUN_0004016c(puVar5[3] + 0x18,param_2,0);\n      if (*(int *)(iVar6 + 8) != 0) {\n        return *(int *)(iVar6 + 8);\n      }\n      iVar6 = *(int *)(param_1 + 0x14);\n      uVar8 = uVar8 + 1;\n      if (iVar6 <= (int)uVar8) {\n        return 0;\n      }\n    }\n    pbVar2 = (byte *)*puVar5;\n    uVar3 = (uint)*param_3;\n    pbVar4 = param_3;\n    if (puVar7[*pbVar2] == puVar7[uVar3]) {\n      do {\n        if (uVar3 == 0) goto LAB_00042444;\n        pbVar4 = pbVar4 + 1;\n        pbVar1 = pbVar2 + 1;\n        uVar3 = (uint)*pbVar4;\n        pbVar2 = pbVar2 + 1;\n      } while (puVar7[uVar3] == puVar7[*pbVar1]);\n    }\n    uVar8 = uVar8 + 1;\n    if (iVar6 <= (int)uVar8) {\n      return 0;\n    }\n  } while( true );\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (expression_statement "iVar6 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (iVar6 < 1) {\n    return 0;\n  }" if (parenthesized_expression "(iVar6 < 1)" ( (binary_expression "iVar6 < 1" identifier < number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "puVar7 = PTR_DAT_00190b94 + -0x3c18;" (assignment_expression "puVar7 = PTR_DAT_00190b94 + -0x3c18" identifier = (binary_expression "PTR_DAT_00190b94 + -0x3c18" identifier + number_literal)) ;) (do_statement "do {\n    while( true ) {\n      uVar3 = uVar8 ^ 1;\n      if (1 < (int)uVar8) {\n        uVar3 = uVar8;\n      }\n      puVar5 = (undefined4 *)(*(int *)(param_1 + 0x10) + uVar3 * 0x10);\n      if (param_3 != (byte *)0x0) break;\nLAB_00042444:\n      iVar6 = FUN_0004016c(puVar5[3] + 0x18,param_2,0);\n      if (*(int *)(iVar6 + 8) != 0) {\n        return *(int *)(iVar6 + 8);\n      }\n      iVar6 = *(int *)(param_1 + 0x14);\n      uVar8 = uVar8 + 1;\n      if (iVar6 <= (int)uVar8) {\n        return 0;\n      }\n    }\n    pbVar2 = (byte *)*puVar5;\n    uVar3 = (uint)*param_3;\n    pbVar4 = param_3;\n    if (puVar7[*pbVar2] == puVar7[uVar3]) {\n      do {\n        if (uVar3 == 0) goto LAB_00042444;\n        pbVar4 = pbVar4 + 1;\n        pbVar1 = pbVar2 + 1;\n        uVar3 = (uint)*pbVar4;\n        pbVar2 = pbVar2 + 1;\n      } while (puVar7[uVar3] == puVar7[*pbVar1]);\n    }\n    uVar8 = uVar8 + 1;\n    if (iVar6 <= (int)uVar8) {\n      return 0;\n    }\n  } while( true );" do (compound_statement "{\n    while( true ) {\n      uVar3 = uVar8 ^ 1;\n      if (1 < (int)uVar8) {\n        uVar3 = uVar8;\n      }\n      puVar5 = (undefined4 *)(*(int *)(param_1 + 0x10) + uVar3 * 0x10);\n      if (param_3 != (byte *)0x0) break;\nLAB_00042444:\n      iVar6 = FUN_0004016c(puVar5[3] + 0x18,param_2,0);\n      if (*(int *)(iVar6 + 8) != 0) {\n        return *(int *)(iVar6 + 8);\n      }\n      iVar6 = *(int *)(param_1 + 0x14);\n      uVar8 = uVar8 + 1;\n      if (iVar6 <= (int)uVar8) {\n        return 0;\n      }\n    }\n    pbVar2 = (byte *)*puVar5;\n    uVar3 = (uint)*param_3;\n    pbVar4 = param_3;\n    if (puVar7[*pbVar2] == puVar7[uVar3]) {\n      do {\n        if (uVar3 == 0) goto LAB_00042444;\n        pbVar4 = pbVar4 + 1;\n        pbVar1 = pbVar2 + 1;\n        uVar3 = (uint)*pbVar4;\n        pbVar2 = pbVar2 + 1;\n      } while (puVar7[uVar3] == puVar7[*pbVar1]);\n    }\n    uVar8 = uVar8 + 1;\n    if (iVar6 <= (int)uVar8) {\n      return 0;\n    }\n  }" { (while_statement "while( true ) {\n      uVar3 = uVar8 ^ 1;\n      if (1 < (int)uVar8) {\n        uVar3 = uVar8;\n      }\n      puVar5 = (undefined4 *)(*(int *)(param_1 + 0x10) + uVar3 * 0x10);\n      if (param_3 != (byte *)0x0) break;\nLAB_00042444:\n      iVar6 = FUN_0004016c(puVar5[3] + 0x18,param_2,0);\n      if (*(int *)(iVar6 + 8) != 0) {\n        return *(int *)(iVar6 + 8);\n      }\n      iVar6 = *(int *)(param_1 + 0x14);\n      uVar8 = uVar8 + 1;\n      if (iVar6 <= (int)uVar8) {\n        return 0;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      uVar3 = uVar8 ^ 1;\n      if (1 < (int)uVar8) {\n        uVar3 = uVar8;\n      }\n      puVar5 = (undefined4 *)(*(int *)(param_1 + 0x10) + uVar3 * 0x10);\n      if (param_3 != (byte *)0x0) break;\nLAB_00042444:\n      iVar6 = FUN_0004016c(puVar5[3] + 0x18,param_2,0);\n      if (*(int *)(iVar6 + 8) != 0) {\n        return *(int *)(iVar6 + 8);\n      }\n      iVar6 = *(int *)(param_1 + 0x14);\n      uVar8 = uVar8 + 1;\n      if (iVar6 <= (int)uVar8) {\n        return 0;\n      }\n    }" { (expression_statement "uVar3 = uVar8 ^ 1;" (assignment_expression "uVar3 = uVar8 ^ 1" identifier = (binary_expression "uVar8 ^ 1" identifier ^ number_literal)) ;) (if_statement "if (1 < (int)uVar8) {\n        uVar3 = uVar8;\n      }" if (parenthesized_expression "(1 < (int)uVar8)" ( (binary_expression "1 < (int)uVar8" number_literal < (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        uVar3 = uVar8;\n      }" { (expression_statement "uVar3 = uVar8;" (assignment_expression "uVar3 = uVar8" identifier = identifier) ;) })) (expression_statement "puVar5 = (undefined4 *)(*(int *)(param_1 + 0x10) + uVar3 * 0x10);" (assignment_expression "puVar5 = (undefined4 *)(*(int *)(param_1 + 0x10) + uVar3 * 0x10)" identifier = (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x10) + uVar3 * 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + uVar3 * 0x10)" ( (binary_expression "*(int *)(param_1 + 0x10) + uVar3 * 0x10" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (binary_expression "uVar3 * 0x10" identifier * number_literal)) )))) ;) (if_statement "if (param_3 != (byte *)0x0) break;" if (parenthesized_expression "(param_3 != (byte *)0x0)" ( (binary_expression "param_3 != (byte *)0x0" identifier != (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (labeled_statement "LAB_00042444:\n      iVar6 = FUN_0004016c(puVar5[3] + 0x18,param_2,0);" statement_identifier : (expression_statement "iVar6 = FUN_0004016c(puVar5[3] + 0x18,param_2,0);" (assignment_expression "iVar6 = FUN_0004016c(puVar5[3] + 0x18,param_2,0)" identifier = (call_expression "FUN_0004016c(puVar5[3] + 0x18,param_2,0)" identifier (argument_list "(puVar5[3] + 0x18,param_2,0)" ( (binary_expression "puVar5[3] + 0x18" (subscript_expression "puVar5[3]" identifier [ number_literal ]) + number_literal) , identifier , number_literal )))) ;)) (if_statement "if (*(int *)(iVar6 + 8) != 0) {\n        return *(int *)(iVar6 + 8);\n      }" if (parenthesized_expression "(*(int *)(iVar6 + 8) != 0)" ( (binary_expression "*(int *)(iVar6 + 8) != 0" (pointer_expression "*(int *)(iVar6 + 8)" * (cast_expression "(int *)(iVar6 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        return *(int *)(iVar6 + 8);\n      }" { (return_statement "return *(int *)(iVar6 + 8);" return (pointer_expression "*(int *)(iVar6 + 8)" * (cast_expression "(int *)(iVar6 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) ;) })) (expression_statement "iVar6 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) (if_statement "if (iVar6 <= (int)uVar8) {\n        return 0;\n      }" if (parenthesized_expression "(iVar6 <= (int)uVar8)" ( (binary_expression "iVar6 <= (int)uVar8" identifier <= (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "pbVar2 = (byte *)*puVar5;" (assignment_expression "pbVar2 = (byte *)*puVar5" identifier = (cast_expression "(byte *)*puVar5" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) ;) (expression_statement "uVar3 = (uint)*param_3;" (assignment_expression "uVar3 = (uint)*param_3" identifier = (binary_expression "(uint)*param_3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "pbVar4 = param_3;" (assignment_expression "pbVar4 = param_3" identifier = identifier) ;) (if_statement "if (puVar7[*pbVar2] == puVar7[uVar3]) {\n      do {\n        if (uVar3 == 0) goto LAB_00042444;\n        pbVar4 = pbVar4 + 1;\n        pbVar1 = pbVar2 + 1;\n        uVar3 = (uint)*pbVar4;\n        pbVar2 = pbVar2 + 1;\n      } while (puVar7[uVar3] == puVar7[*pbVar1]);\n    }" if (parenthesized_expression "(puVar7[*pbVar2] == puVar7[uVar3])" ( (binary_expression "puVar7[*pbVar2] == puVar7[uVar3]" (subscript_expression "puVar7[*pbVar2]" identifier [ (pointer_expression "*pbVar2" * identifier) ]) == (subscript_expression "puVar7[uVar3]" identifier [ identifier ])) )) (compound_statement "{\n      do {\n        if (uVar3 == 0) goto LAB_00042444;\n        pbVar4 = pbVar4 + 1;\n        pbVar1 = pbVar2 + 1;\n        uVar3 = (uint)*pbVar4;\n        pbVar2 = pbVar2 + 1;\n      } while (puVar7[uVar3] == puVar7[*pbVar1]);\n    }" { (do_statement "do {\n        if (uVar3 == 0) goto LAB_00042444;\n        pbVar4 = pbVar4 + 1;\n        pbVar1 = pbVar2 + 1;\n        uVar3 = (uint)*pbVar4;\n        pbVar2 = pbVar2 + 1;\n      } while (puVar7[uVar3] == puVar7[*pbVar1]);" do (compound_statement "{\n        if (uVar3 == 0) goto LAB_00042444;\n        pbVar4 = pbVar4 + 1;\n        pbVar1 = pbVar2 + 1;\n        uVar3 = (uint)*pbVar4;\n        pbVar2 = pbVar2 + 1;\n      }" { (if_statement "if (uVar3 == 0) goto LAB_00042444;" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00042444;" goto statement_identifier ;)) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (expression_statement "pbVar1 = pbVar2 + 1;" (assignment_expression "pbVar1 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar3 = (uint)*pbVar4;" (assignment_expression "uVar3 = (uint)*pbVar4" identifier = (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar7[uVar3] == puVar7[*pbVar1])" ( (binary_expression "puVar7[uVar3] == puVar7[*pbVar1]" (subscript_expression "puVar7[uVar3]" identifier [ identifier ]) == (subscript_expression "puVar7[*pbVar1]" identifier [ (pointer_expression "*pbVar1" * identifier) ])) )) ;) })) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) (if_statement "if (iVar6 <= (int)uVar8) {\n      return 0;\n    }" if (parenthesized_expression "(iVar6 <= (int)uVar8)" ( (binary_expression "iVar6 <= (int)uVar8" identifier <= (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "Index * sqlite3FindIndex(sqlite3 *db,char *zName,char *zDb)\n\n{\n  byte *pbVar1;\n  uint uVar2;\n  HashElem *pHVar3;\n  byte *pbVar4;\n  uint uVar5;\n  byte *pbVar6;\n  int iVar7;\n  undefined *puVar8;\n  uint uVar9;\n  \n  iVar7 = db->nDb;\n  if (iVar7 < 1) {\n    return (Index *)0x0;\n  }\n  uVar9 = 0;\n  puVar8 = PTR_DAT_00190b94 + -0x3c18;\n  do {\n    while( true ) {\n      uVar2 = uVar9 ^ 1;\n      if (1 < (int)uVar9) {\n        uVar2 = uVar9;\n      }\n      if ((byte *)zDb != (byte *)0x0) break;\nLAB_00042444:\n      pHVar3 = findElementWithHash(&(db->aDb[uVar2].pSchema)->idxHash,zName,(uint *)0x0);\n      if ((Index *)pHVar3->data != (Index *)0x0) {\n        return (Index *)pHVar3->data;\n      }\n      iVar7 = db->nDb;\n      uVar9 = uVar9 + 1;\n      if (iVar7 <= (int)uVar9) {\n        return (Index *)0x0;\n      }\n    }\n    pbVar4 = (byte *)db->aDb[uVar2].zDbSName;\n    uVar5 = (uint)(byte)*zDb;\n    pbVar6 = (byte *)zDb;\n    if (puVar8[*pbVar4] == puVar8[uVar5]) {\n      do {\n        if (uVar5 == 0) goto LAB_00042444;\n        pbVar6 = pbVar6 + 1;\n        pbVar1 = pbVar4 + 1;\n        uVar5 = (uint)*pbVar6;\n        pbVar4 = pbVar4 + 1;\n      } while (puVar8[uVar5] == puVar8[*pbVar1]);\n    }\n    uVar9 = uVar9 + 1;\n    if (iVar7 <= (int)uVar9) {\n      return (Index *)0x0;\n    }\n  } while( true );\n}\n\n" (function_definition "Index * sqlite3FindIndex(sqlite3 *db,char *zName,char *zDb)\n\n{\n  byte *pbVar1;\n  uint uVar2;\n  HashElem *pHVar3;\n  byte *pbVar4;\n  uint uVar5;\n  byte *pbVar6;\n  int iVar7;\n  undefined *puVar8;\n  uint uVar9;\n  \n  iVar7 = db->nDb;\n  if (iVar7 < 1) {\n    return (Index *)0x0;\n  }\n  uVar9 = 0;\n  puVar8 = PTR_DAT_00190b94 + -0x3c18;\n  do {\n    while( true ) {\n      uVar2 = uVar9 ^ 1;\n      if (1 < (int)uVar9) {\n        uVar2 = uVar9;\n      }\n      if ((byte *)zDb != (byte *)0x0) break;\nLAB_00042444:\n      pHVar3 = findElementWithHash(&(db->aDb[uVar2].pSchema)->idxHash,zName,(uint *)0x0);\n      if ((Index *)pHVar3->data != (Index *)0x0) {\n        return (Index *)pHVar3->data;\n      }\n      iVar7 = db->nDb;\n      uVar9 = uVar9 + 1;\n      if (iVar7 <= (int)uVar9) {\n        return (Index *)0x0;\n      }\n    }\n    pbVar4 = (byte *)db->aDb[uVar2].zDbSName;\n    uVar5 = (uint)(byte)*zDb;\n    pbVar6 = (byte *)zDb;\n    if (puVar8[*pbVar4] == puVar8[uVar5]) {\n      do {\n        if (uVar5 == 0) goto LAB_00042444;\n        pbVar6 = pbVar6 + 1;\n        pbVar1 = pbVar4 + 1;\n        uVar5 = (uint)*pbVar6;\n        pbVar4 = pbVar4 + 1;\n      } while (puVar8[uVar5] == puVar8[*pbVar1]);\n    }\n    uVar9 = uVar9 + 1;\n    if (iVar7 <= (int)uVar9) {\n      return (Index *)0x0;\n    }\n  } while( true );\n}" type_identifier (pointer_declarator "* sqlite3FindIndex(sqlite3 *db,char *zName,char *zDb)" * (function_declarator "sqlite3FindIndex(sqlite3 *db,char *zName,char *zDb)" identifier (parameter_list "(sqlite3 *db,char *zName,char *zDb)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) , (parameter_declaration "char *zName" primitive_type (pointer_declarator "*zName" * identifier)) , (parameter_declaration "char *zDb" primitive_type (pointer_declarator "*zDb" * identifier)) )))) (compound_statement "{\n  byte *pbVar1;\n  uint uVar2;\n  HashElem *pHVar3;\n  byte *pbVar4;\n  uint uVar5;\n  byte *pbVar6;\n  int iVar7;\n  undefined *puVar8;\n  uint uVar9;\n  \n  iVar7 = db->nDb;\n  if (iVar7 < 1) {\n    return (Index *)0x0;\n  }\n  uVar9 = 0;\n  puVar8 = PTR_DAT_00190b94 + -0x3c18;\n  do {\n    while( true ) {\n      uVar2 = uVar9 ^ 1;\n      if (1 < (int)uVar9) {\n        uVar2 = uVar9;\n      }\n      if ((byte *)zDb != (byte *)0x0) break;\nLAB_00042444:\n      pHVar3 = findElementWithHash(&(db->aDb[uVar2].pSchema)->idxHash,zName,(uint *)0x0);\n      if ((Index *)pHVar3->data != (Index *)0x0) {\n        return (Index *)pHVar3->data;\n      }\n      iVar7 = db->nDb;\n      uVar9 = uVar9 + 1;\n      if (iVar7 <= (int)uVar9) {\n        return (Index *)0x0;\n      }\n    }\n    pbVar4 = (byte *)db->aDb[uVar2].zDbSName;\n    uVar5 = (uint)(byte)*zDb;\n    pbVar6 = (byte *)zDb;\n    if (puVar8[*pbVar4] == puVar8[uVar5]) {\n      do {\n        if (uVar5 == 0) goto LAB_00042444;\n        pbVar6 = pbVar6 + 1;\n        pbVar1 = pbVar4 + 1;\n        uVar5 = (uint)*pbVar6;\n        pbVar4 = pbVar4 + 1;\n      } while (puVar8[uVar5] == puVar8[*pbVar1]);\n    }\n    uVar9 = uVar9 + 1;\n    if (iVar7 <= (int)uVar9) {\n      return (Index *)0x0;\n    }\n  } while( true );\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "HashElem *pHVar3;" type_identifier (pointer_declarator "*pHVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "uint uVar9;" type_identifier identifier ;) (expression_statement "iVar7 = db->nDb;" (assignment_expression "iVar7 = db->nDb" identifier = (field_expression "db->nDb" identifier -> field_identifier)) ;) (if_statement "if (iVar7 < 1) {\n    return (Index *)0x0;\n  }" if (parenthesized_expression "(iVar7 < 1)" ( (binary_expression "iVar7 < 1" identifier < number_literal) )) (compound_statement "{\n    return (Index *)0x0;\n  }" { (return_statement "return (Index *)0x0;" return (cast_expression "(Index *)0x0" ( (type_descriptor "Index *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (expression_statement "puVar8 = PTR_DAT_00190b94 + -0x3c18;" (assignment_expression "puVar8 = PTR_DAT_00190b94 + -0x3c18" identifier = (binary_expression "PTR_DAT_00190b94 + -0x3c18" identifier + number_literal)) ;) (do_statement "do {\n    while( true ) {\n      uVar2 = uVar9 ^ 1;\n      if (1 < (int)uVar9) {\n        uVar2 = uVar9;\n      }\n      if ((byte *)zDb != (byte *)0x0) break;\nLAB_00042444:\n      pHVar3 = findElementWithHash(&(db->aDb[uVar2].pSchema)->idxHash,zName,(uint *)0x0);\n      if ((Index *)pHVar3->data != (Index *)0x0) {\n        return (Index *)pHVar3->data;\n      }\n      iVar7 = db->nDb;\n      uVar9 = uVar9 + 1;\n      if (iVar7 <= (int)uVar9) {\n        return (Index *)0x0;\n      }\n    }\n    pbVar4 = (byte *)db->aDb[uVar2].zDbSName;\n    uVar5 = (uint)(byte)*zDb;\n    pbVar6 = (byte *)zDb;\n    if (puVar8[*pbVar4] == puVar8[uVar5]) {\n      do {\n        if (uVar5 == 0) goto LAB_00042444;\n        pbVar6 = pbVar6 + 1;\n        pbVar1 = pbVar4 + 1;\n        uVar5 = (uint)*pbVar6;\n        pbVar4 = pbVar4 + 1;\n      } while (puVar8[uVar5] == puVar8[*pbVar1]);\n    }\n    uVar9 = uVar9 + 1;\n    if (iVar7 <= (int)uVar9) {\n      return (Index *)0x0;\n    }\n  } while( true );" do (compound_statement "{\n    while( true ) {\n      uVar2 = uVar9 ^ 1;\n      if (1 < (int)uVar9) {\n        uVar2 = uVar9;\n      }\n      if ((byte *)zDb != (byte *)0x0) break;\nLAB_00042444:\n      pHVar3 = findElementWithHash(&(db->aDb[uVar2].pSchema)->idxHash,zName,(uint *)0x0);\n      if ((Index *)pHVar3->data != (Index *)0x0) {\n        return (Index *)pHVar3->data;\n      }\n      iVar7 = db->nDb;\n      uVar9 = uVar9 + 1;\n      if (iVar7 <= (int)uVar9) {\n        return (Index *)0x0;\n      }\n    }\n    pbVar4 = (byte *)db->aDb[uVar2].zDbSName;\n    uVar5 = (uint)(byte)*zDb;\n    pbVar6 = (byte *)zDb;\n    if (puVar8[*pbVar4] == puVar8[uVar5]) {\n      do {\n        if (uVar5 == 0) goto LAB_00042444;\n        pbVar6 = pbVar6 + 1;\n        pbVar1 = pbVar4 + 1;\n        uVar5 = (uint)*pbVar6;\n        pbVar4 = pbVar4 + 1;\n      } while (puVar8[uVar5] == puVar8[*pbVar1]);\n    }\n    uVar9 = uVar9 + 1;\n    if (iVar7 <= (int)uVar9) {\n      return (Index *)0x0;\n    }\n  }" { (while_statement "while( true ) {\n      uVar2 = uVar9 ^ 1;\n      if (1 < (int)uVar9) {\n        uVar2 = uVar9;\n      }\n      if ((byte *)zDb != (byte *)0x0) break;\nLAB_00042444:\n      pHVar3 = findElementWithHash(&(db->aDb[uVar2].pSchema)->idxHash,zName,(uint *)0x0);\n      if ((Index *)pHVar3->data != (Index *)0x0) {\n        return (Index *)pHVar3->data;\n      }\n      iVar7 = db->nDb;\n      uVar9 = uVar9 + 1;\n      if (iVar7 <= (int)uVar9) {\n        return (Index *)0x0;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      uVar2 = uVar9 ^ 1;\n      if (1 < (int)uVar9) {\n        uVar2 = uVar9;\n      }\n      if ((byte *)zDb != (byte *)0x0) break;\nLAB_00042444:\n      pHVar3 = findElementWithHash(&(db->aDb[uVar2].pSchema)->idxHash,zName,(uint *)0x0);\n      if ((Index *)pHVar3->data != (Index *)0x0) {\n        return (Index *)pHVar3->data;\n      }\n      iVar7 = db->nDb;\n      uVar9 = uVar9 + 1;\n      if (iVar7 <= (int)uVar9) {\n        return (Index *)0x0;\n      }\n    }" { (expression_statement "uVar2 = uVar9 ^ 1;" (assignment_expression "uVar2 = uVar9 ^ 1" identifier = (binary_expression "uVar9 ^ 1" identifier ^ number_literal)) ;) (if_statement "if (1 < (int)uVar9) {\n        uVar2 = uVar9;\n      }" if (parenthesized_expression "(1 < (int)uVar9)" ( (binary_expression "1 < (int)uVar9" number_literal < (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        uVar2 = uVar9;\n      }" { (expression_statement "uVar2 = uVar9;" (assignment_expression "uVar2 = uVar9" identifier = identifier) ;) })) (if_statement "if ((byte *)zDb != (byte *)0x0) break;" if (parenthesized_expression "((byte *)zDb != (byte *)0x0)" ( (binary_expression "(byte *)zDb != (byte *)0x0" (cast_expression "(byte *)zDb" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) != (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (labeled_statement "LAB_00042444:\n      pHVar3 = findElementWithHash(&(db->aDb[uVar2].pSchema)->idxHash,zName,(uint *)0x0);" statement_identifier : (expression_statement "pHVar3 = findElementWithHash(&(db->aDb[uVar2].pSchema)->idxHash,zName,(uint *)0x0);" (assignment_expression "pHVar3 = findElementWithHash(&(db->aDb[uVar2].pSchema)->idxHash,zName,(uint *)0x0)" identifier = (call_expression "findElementWithHash(&(db->aDb[uVar2].pSchema)->idxHash,zName,(uint *)0x0)" identifier (argument_list "(&(db->aDb[uVar2].pSchema)->idxHash,zName,(uint *)0x0)" ( (pointer_expression "&(db->aDb[uVar2].pSchema)->idxHash" & (field_expression "(db->aDb[uVar2].pSchema)->idxHash" (parenthesized_expression "(db->aDb[uVar2].pSchema)" ( (field_expression "db->aDb[uVar2].pSchema" (subscript_expression "db->aDb[uVar2]" (field_expression "db->aDb" identifier -> field_identifier) [ identifier ]) . field_identifier) )) -> field_identifier)) , identifier , (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;)) (if_statement "if ((Index *)pHVar3->data != (Index *)0x0) {\n        return (Index *)pHVar3->data;\n      }" if (parenthesized_expression "((Index *)pHVar3->data != (Index *)0x0)" ( (binary_expression "(Index *)pHVar3->data != (Index *)0x0" (cast_expression "(Index *)pHVar3->data" ( (type_descriptor "Index *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pHVar3->data" identifier -> field_identifier)) != (cast_expression "(Index *)0x0" ( (type_descriptor "Index *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return (Index *)pHVar3->data;\n      }" { (return_statement "return (Index *)pHVar3->data;" return (cast_expression "(Index *)pHVar3->data" ( (type_descriptor "Index *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pHVar3->data" identifier -> field_identifier)) ;) })) (expression_statement "iVar7 = db->nDb;" (assignment_expression "iVar7 = db->nDb" identifier = (field_expression "db->nDb" identifier -> field_identifier)) ;) (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" identifier = (binary_expression "uVar9 + 1" identifier + number_literal)) ;) (if_statement "if (iVar7 <= (int)uVar9) {\n        return (Index *)0x0;\n      }" if (parenthesized_expression "(iVar7 <= (int)uVar9)" ( (binary_expression "iVar7 <= (int)uVar9" identifier <= (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        return (Index *)0x0;\n      }" { (return_statement "return (Index *)0x0;" return (cast_expression "(Index *)0x0" ( (type_descriptor "Index *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) })) (expression_statement "pbVar4 = (byte *)db->aDb[uVar2].zDbSName;" (assignment_expression "pbVar4 = (byte *)db->aDb[uVar2].zDbSName" identifier = (cast_expression "(byte *)db->aDb[uVar2].zDbSName" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "db->aDb[uVar2].zDbSName" (subscript_expression "db->aDb[uVar2]" (field_expression "db->aDb" identifier -> field_identifier) [ identifier ]) . field_identifier))) ;) (expression_statement "uVar5 = (uint)(byte)*zDb;" (assignment_expression "uVar5 = (uint)(byte)*zDb" identifier = (binary_expression "(uint)(byte)*zDb" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(byte)" ( identifier ))) * identifier)) ;) (expression_statement "pbVar6 = (byte *)zDb;" (assignment_expression "pbVar6 = (byte *)zDb" identifier = (cast_expression "(byte *)zDb" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (puVar8[*pbVar4] == puVar8[uVar5]) {\n      do {\n        if (uVar5 == 0) goto LAB_00042444;\n        pbVar6 = pbVar6 + 1;\n        pbVar1 = pbVar4 + 1;\n        uVar5 = (uint)*pbVar6;\n        pbVar4 = pbVar4 + 1;\n      } while (puVar8[uVar5] == puVar8[*pbVar1]);\n    }" if (parenthesized_expression "(puVar8[*pbVar4] == puVar8[uVar5])" ( (binary_expression "puVar8[*pbVar4] == puVar8[uVar5]" (subscript_expression "puVar8[*pbVar4]" identifier [ (pointer_expression "*pbVar4" * identifier) ]) == (subscript_expression "puVar8[uVar5]" identifier [ identifier ])) )) (compound_statement "{\n      do {\n        if (uVar5 == 0) goto LAB_00042444;\n        pbVar6 = pbVar6 + 1;\n        pbVar1 = pbVar4 + 1;\n        uVar5 = (uint)*pbVar6;\n        pbVar4 = pbVar4 + 1;\n      } while (puVar8[uVar5] == puVar8[*pbVar1]);\n    }" { (do_statement "do {\n        if (uVar5 == 0) goto LAB_00042444;\n        pbVar6 = pbVar6 + 1;\n        pbVar1 = pbVar4 + 1;\n        uVar5 = (uint)*pbVar6;\n        pbVar4 = pbVar4 + 1;\n      } while (puVar8[uVar5] == puVar8[*pbVar1]);" do (compound_statement "{\n        if (uVar5 == 0) goto LAB_00042444;\n        pbVar6 = pbVar6 + 1;\n        pbVar1 = pbVar4 + 1;\n        uVar5 = (uint)*pbVar6;\n        pbVar4 = pbVar4 + 1;\n      }" { (if_statement "if (uVar5 == 0) goto LAB_00042444;" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00042444;" goto statement_identifier ;)) (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (expression_statement "pbVar1 = pbVar4 + 1;" (assignment_expression "pbVar1 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (expression_statement "uVar5 = (uint)*pbVar6;" (assignment_expression "uVar5 = (uint)*pbVar6" identifier = (binary_expression "(uint)*pbVar6" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar8[uVar5] == puVar8[*pbVar1])" ( (binary_expression "puVar8[uVar5] == puVar8[*pbVar1]" (subscript_expression "puVar8[uVar5]" identifier [ identifier ]) == (subscript_expression "puVar8[*pbVar1]" identifier [ (pointer_expression "*pbVar1" * identifier) ])) )) ;) })) (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" identifier = (binary_expression "uVar9 + 1" identifier + number_literal)) ;) (if_statement "if (iVar7 <= (int)uVar9) {\n      return (Index *)0x0;\n    }" if (parenthesized_expression "(iVar7 <= (int)uVar9)" ( (binary_expression "iVar7 <= (int)uVar9" identifier <= (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      return (Index *)0x0;\n    }" { (return_statement "return (Index *)0x0;" return (cast_expression "(Index *)0x0" ( (type_descriptor "Index *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "int FUN_00042368(int param_1,undefined4 param_2,byte *param_3)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  uint uVar3;\n  byte *pbVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined *puVar7;\n  uint uVar8;\n  \n  iVar6 = *(int *)(param_1 + 0x14);\n  if (iVar6 < 1) {\n    return 0;\n  }\n  uVar8 = 0;\n  puVar7 = PTR_DAT_00190b94 + -0x3c18;\n  do {\n    while( true ) {\n      uVar3 = uVar8 ^ 1;\n      if (1 < (int)uVar8) {\n        uVar3 = uVar8;\n      }\n      puVar5 = (undefined4 *)(*(int *)(param_1 + 0x10) + uVar3 * 0x10);\n      if (param_3 != (byte *)0x0) break;\nLAB_00042444:\n      iVar6 = FUN_0004016c(puVar5[3] + 0x18,param_2,0);\n      if (*(int *)(iVar6 + 8) != 0) {\n        return *(int *)(iVar6 + 8);\n      }\n      iVar6 = *(int *)(param_1 + 0x14);\n      uVar8 = uVar8 + 1;\n      if (iVar6 <= (int)uVar8) {\n        return 0;\n      }\n    }\n    pbVar2 = (byte *)*puVar5;\n    uVar3 = (uint)*param_3;\n    pbVar4 = param_3;\n    if (puVar7[*pbVar2] == puVar7[uVar3]) {\n      do {\n        if (uVar3 == 0) goto LAB_00042444;\n        pbVar4 = pbVar4 + 1;\n        pbVar1 = pbVar2 + 1;\n        uVar3 = (uint)*pbVar4;\n        pbVar2 = pbVar2 + 1;\n      } while (puVar7[uVar3] == puVar7[*pbVar1]);\n    }\n    uVar8 = uVar8 + 1;\n    if (iVar6 <= (int)uVar8) {\n      return 0;\n    }\n  } while( true );\n}\n\n" (function_definition "int FUN_00042368(int param_1,undefined4 param_2,byte *param_3)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  uint uVar3;\n  byte *pbVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined *puVar7;\n  uint uVar8;\n  \n  iVar6 = *(int *)(param_1 + 0x14);\n  if (iVar6 < 1) {\n    return 0;\n  }\n  uVar8 = 0;\n  puVar7 = PTR_DAT_00190b94 + -0x3c18;\n  do {\n    while( true ) {\n      uVar3 = uVar8 ^ 1;\n      if (1 < (int)uVar8) {\n        uVar3 = uVar8;\n      }\n      puVar5 = (undefined4 *)(*(int *)(param_1 + 0x10) + uVar3 * 0x10);\n      if (param_3 != (byte *)0x0) break;\nLAB_00042444:\n      iVar6 = FUN_0004016c(puVar5[3] + 0x18,param_2,0);\n      if (*(int *)(iVar6 + 8) != 0) {\n        return *(int *)(iVar6 + 8);\n      }\n      iVar6 = *(int *)(param_1 + 0x14);\n      uVar8 = uVar8 + 1;\n      if (iVar6 <= (int)uVar8) {\n        return 0;\n      }\n    }\n    pbVar2 = (byte *)*puVar5;\n    uVar3 = (uint)*param_3;\n    pbVar4 = param_3;\n    if (puVar7[*pbVar2] == puVar7[uVar3]) {\n      do {\n        if (uVar3 == 0) goto LAB_00042444;\n        pbVar4 = pbVar4 + 1;\n        pbVar1 = pbVar2 + 1;\n        uVar3 = (uint)*pbVar4;\n        pbVar2 = pbVar2 + 1;\n      } while (puVar7[uVar3] == puVar7[*pbVar1]);\n    }\n    uVar8 = uVar8 + 1;\n    if (iVar6 <= (int)uVar8) {\n      return 0;\n    }\n  } while( true );\n}" primitive_type (function_declarator "FUN_00042368(int param_1,undefined4 param_2,byte *param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,byte *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "byte *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  byte *pbVar1;\n  byte *pbVar2;\n  uint uVar3;\n  byte *pbVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined *puVar7;\n  uint uVar8;\n  \n  iVar6 = *(int *)(param_1 + 0x14);\n  if (iVar6 < 1) {\n    return 0;\n  }\n  uVar8 = 0;\n  puVar7 = PTR_DAT_00190b94 + -0x3c18;\n  do {\n    while( true ) {\n      uVar3 = uVar8 ^ 1;\n      if (1 < (int)uVar8) {\n        uVar3 = uVar8;\n      }\n      puVar5 = (undefined4 *)(*(int *)(param_1 + 0x10) + uVar3 * 0x10);\n      if (param_3 != (byte *)0x0) break;\nLAB_00042444:\n      iVar6 = FUN_0004016c(puVar5[3] + 0x18,param_2,0);\n      if (*(int *)(iVar6 + 8) != 0) {\n        return *(int *)(iVar6 + 8);\n      }\n      iVar6 = *(int *)(param_1 + 0x14);\n      uVar8 = uVar8 + 1;\n      if (iVar6 <= (int)uVar8) {\n        return 0;\n      }\n    }\n    pbVar2 = (byte *)*puVar5;\n    uVar3 = (uint)*param_3;\n    pbVar4 = param_3;\n    if (puVar7[*pbVar2] == puVar7[uVar3]) {\n      do {\n        if (uVar3 == 0) goto LAB_00042444;\n        pbVar4 = pbVar4 + 1;\n        pbVar1 = pbVar2 + 1;\n        uVar3 = (uint)*pbVar4;\n        pbVar2 = pbVar2 + 1;\n      } while (puVar7[uVar3] == puVar7[*pbVar1]);\n    }\n    uVar8 = uVar8 + 1;\n    if (iVar6 <= (int)uVar8) {\n      return 0;\n    }\n  } while( true );\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (expression_statement "iVar6 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (iVar6 < 1) {\n    return 0;\n  }" if (parenthesized_expression "(iVar6 < 1)" ( (binary_expression "iVar6 < 1" identifier < number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "puVar7 = PTR_DAT_00190b94 + -0x3c18;" (assignment_expression "puVar7 = PTR_DAT_00190b94 + -0x3c18" identifier = (binary_expression "PTR_DAT_00190b94 + -0x3c18" identifier + number_literal)) ;) (do_statement "do {\n    while( true ) {\n      uVar3 = uVar8 ^ 1;\n      if (1 < (int)uVar8) {\n        uVar3 = uVar8;\n      }\n      puVar5 = (undefined4 *)(*(int *)(param_1 + 0x10) + uVar3 * 0x10);\n      if (param_3 != (byte *)0x0) break;\nLAB_00042444:\n      iVar6 = FUN_0004016c(puVar5[3] + 0x18,param_2,0);\n      if (*(int *)(iVar6 + 8) != 0) {\n        return *(int *)(iVar6 + 8);\n      }\n      iVar6 = *(int *)(param_1 + 0x14);\n      uVar8 = uVar8 + 1;\n      if (iVar6 <= (int)uVar8) {\n        return 0;\n      }\n    }\n    pbVar2 = (byte *)*puVar5;\n    uVar3 = (uint)*param_3;\n    pbVar4 = param_3;\n    if (puVar7[*pbVar2] == puVar7[uVar3]) {\n      do {\n        if (uVar3 == 0) goto LAB_00042444;\n        pbVar4 = pbVar4 + 1;\n        pbVar1 = pbVar2 + 1;\n        uVar3 = (uint)*pbVar4;\n        pbVar2 = pbVar2 + 1;\n      } while (puVar7[uVar3] == puVar7[*pbVar1]);\n    }\n    uVar8 = uVar8 + 1;\n    if (iVar6 <= (int)uVar8) {\n      return 0;\n    }\n  } while( true );" do (compound_statement "{\n    while( true ) {\n      uVar3 = uVar8 ^ 1;\n      if (1 < (int)uVar8) {\n        uVar3 = uVar8;\n      }\n      puVar5 = (undefined4 *)(*(int *)(param_1 + 0x10) + uVar3 * 0x10);\n      if (param_3 != (byte *)0x0) break;\nLAB_00042444:\n      iVar6 = FUN_0004016c(puVar5[3] + 0x18,param_2,0);\n      if (*(int *)(iVar6 + 8) != 0) {\n        return *(int *)(iVar6 + 8);\n      }\n      iVar6 = *(int *)(param_1 + 0x14);\n      uVar8 = uVar8 + 1;\n      if (iVar6 <= (int)uVar8) {\n        return 0;\n      }\n    }\n    pbVar2 = (byte *)*puVar5;\n    uVar3 = (uint)*param_3;\n    pbVar4 = param_3;\n    if (puVar7[*pbVar2] == puVar7[uVar3]) {\n      do {\n        if (uVar3 == 0) goto LAB_00042444;\n        pbVar4 = pbVar4 + 1;\n        pbVar1 = pbVar2 + 1;\n        uVar3 = (uint)*pbVar4;\n        pbVar2 = pbVar2 + 1;\n      } while (puVar7[uVar3] == puVar7[*pbVar1]);\n    }\n    uVar8 = uVar8 + 1;\n    if (iVar6 <= (int)uVar8) {\n      return 0;\n    }\n  }" { (while_statement "while( true ) {\n      uVar3 = uVar8 ^ 1;\n      if (1 < (int)uVar8) {\n        uVar3 = uVar8;\n      }\n      puVar5 = (undefined4 *)(*(int *)(param_1 + 0x10) + uVar3 * 0x10);\n      if (param_3 != (byte *)0x0) break;\nLAB_00042444:\n      iVar6 = FUN_0004016c(puVar5[3] + 0x18,param_2,0);\n      if (*(int *)(iVar6 + 8) != 0) {\n        return *(int *)(iVar6 + 8);\n      }\n      iVar6 = *(int *)(param_1 + 0x14);\n      uVar8 = uVar8 + 1;\n      if (iVar6 <= (int)uVar8) {\n        return 0;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      uVar3 = uVar8 ^ 1;\n      if (1 < (int)uVar8) {\n        uVar3 = uVar8;\n      }\n      puVar5 = (undefined4 *)(*(int *)(param_1 + 0x10) + uVar3 * 0x10);\n      if (param_3 != (byte *)0x0) break;\nLAB_00042444:\n      iVar6 = FUN_0004016c(puVar5[3] + 0x18,param_2,0);\n      if (*(int *)(iVar6 + 8) != 0) {\n        return *(int *)(iVar6 + 8);\n      }\n      iVar6 = *(int *)(param_1 + 0x14);\n      uVar8 = uVar8 + 1;\n      if (iVar6 <= (int)uVar8) {\n        return 0;\n      }\n    }" { (expression_statement "uVar3 = uVar8 ^ 1;" (assignment_expression "uVar3 = uVar8 ^ 1" identifier = (binary_expression "uVar8 ^ 1" identifier ^ number_literal)) ;) (if_statement "if (1 < (int)uVar8) {\n        uVar3 = uVar8;\n      }" if (parenthesized_expression "(1 < (int)uVar8)" ( (binary_expression "1 < (int)uVar8" number_literal < (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        uVar3 = uVar8;\n      }" { (expression_statement "uVar3 = uVar8;" (assignment_expression "uVar3 = uVar8" identifier = identifier) ;) })) (expression_statement "puVar5 = (undefined4 *)(*(int *)(param_1 + 0x10) + uVar3 * 0x10);" (assignment_expression "puVar5 = (undefined4 *)(*(int *)(param_1 + 0x10) + uVar3 * 0x10)" identifier = (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x10) + uVar3 * 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + uVar3 * 0x10)" ( (binary_expression "*(int *)(param_1 + 0x10) + uVar3 * 0x10" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (binary_expression "uVar3 * 0x10" identifier * number_literal)) )))) ;) (if_statement "if (param_3 != (byte *)0x0) break;" if (parenthesized_expression "(param_3 != (byte *)0x0)" ( (binary_expression "param_3 != (byte *)0x0" identifier != (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (labeled_statement "LAB_00042444:\n      iVar6 = FUN_0004016c(puVar5[3] + 0x18,param_2,0);" statement_identifier : (expression_statement "iVar6 = FUN_0004016c(puVar5[3] + 0x18,param_2,0);" (assignment_expression "iVar6 = FUN_0004016c(puVar5[3] + 0x18,param_2,0)" identifier = (call_expression "FUN_0004016c(puVar5[3] + 0x18,param_2,0)" identifier (argument_list "(puVar5[3] + 0x18,param_2,0)" ( (binary_expression "puVar5[3] + 0x18" (subscript_expression "puVar5[3]" identifier [ number_literal ]) + number_literal) , identifier , number_literal )))) ;)) (if_statement "if (*(int *)(iVar6 + 8) != 0) {\n        return *(int *)(iVar6 + 8);\n      }" if (parenthesized_expression "(*(int *)(iVar6 + 8) != 0)" ( (binary_expression "*(int *)(iVar6 + 8) != 0" (pointer_expression "*(int *)(iVar6 + 8)" * (cast_expression "(int *)(iVar6 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        return *(int *)(iVar6 + 8);\n      }" { (return_statement "return *(int *)(iVar6 + 8);" return (pointer_expression "*(int *)(iVar6 + 8)" * (cast_expression "(int *)(iVar6 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) ;) })) (expression_statement "iVar6 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) (if_statement "if (iVar6 <= (int)uVar8) {\n        return 0;\n      }" if (parenthesized_expression "(iVar6 <= (int)uVar8)" ( (binary_expression "iVar6 <= (int)uVar8" identifier <= (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "pbVar2 = (byte *)*puVar5;" (assignment_expression "pbVar2 = (byte *)*puVar5" identifier = (cast_expression "(byte *)*puVar5" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) ;) (expression_statement "uVar3 = (uint)*param_3;" (assignment_expression "uVar3 = (uint)*param_3" identifier = (binary_expression "(uint)*param_3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "pbVar4 = param_3;" (assignment_expression "pbVar4 = param_3" identifier = identifier) ;) (if_statement "if (puVar7[*pbVar2] == puVar7[uVar3]) {\n      do {\n        if (uVar3 == 0) goto LAB_00042444;\n        pbVar4 = pbVar4 + 1;\n        pbVar1 = pbVar2 + 1;\n        uVar3 = (uint)*pbVar4;\n        pbVar2 = pbVar2 + 1;\n      } while (puVar7[uVar3] == puVar7[*pbVar1]);\n    }" if (parenthesized_expression "(puVar7[*pbVar2] == puVar7[uVar3])" ( (binary_expression "puVar7[*pbVar2] == puVar7[uVar3]" (subscript_expression "puVar7[*pbVar2]" identifier [ (pointer_expression "*pbVar2" * identifier) ]) == (subscript_expression "puVar7[uVar3]" identifier [ identifier ])) )) (compound_statement "{\n      do {\n        if (uVar3 == 0) goto LAB_00042444;\n        pbVar4 = pbVar4 + 1;\n        pbVar1 = pbVar2 + 1;\n        uVar3 = (uint)*pbVar4;\n        pbVar2 = pbVar2 + 1;\n      } while (puVar7[uVar3] == puVar7[*pbVar1]);\n    }" { (do_statement "do {\n        if (uVar3 == 0) goto LAB_00042444;\n        pbVar4 = pbVar4 + 1;\n        pbVar1 = pbVar2 + 1;\n        uVar3 = (uint)*pbVar4;\n        pbVar2 = pbVar2 + 1;\n      } while (puVar7[uVar3] == puVar7[*pbVar1]);" do (compound_statement "{\n        if (uVar3 == 0) goto LAB_00042444;\n        pbVar4 = pbVar4 + 1;\n        pbVar1 = pbVar2 + 1;\n        uVar3 = (uint)*pbVar4;\n        pbVar2 = pbVar2 + 1;\n      }" { (if_statement "if (uVar3 == 0) goto LAB_00042444;" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00042444;" goto statement_identifier ;)) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (expression_statement "pbVar1 = pbVar2 + 1;" (assignment_expression "pbVar1 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar3 = (uint)*pbVar4;" (assignment_expression "uVar3 = (uint)*pbVar4" identifier = (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar7[uVar3] == puVar7[*pbVar1])" ( (binary_expression "puVar7[uVar3] == puVar7[*pbVar1]" (subscript_expression "puVar7[uVar3]" identifier [ identifier ]) == (subscript_expression "puVar7[*pbVar1]" identifier [ (pointer_expression "*pbVar1" * identifier) ])) )) ;) })) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) (if_statement "if (iVar6 <= (int)uVar8) {\n      return 0;\n    }" if (parenthesized_expression "(iVar6 <= (int)uVar8)" ( (binary_expression "iVar6 <= (int)uVar8" identifier <= (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT ^ LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (break_statement break ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) , IDENT , LIT )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (return_statement return LIT ;) })) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (pointer_expression * IDENT) ]) == (subscript_expression IDENT [ IDENT ])) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) == (subscript_expression IDENT [ (pointer_expression * IDENT) ])) )) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (return_statement return LIT ;) })) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "int FUN_00042368(int param_1,undefined4 param_2,byte *param_3)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  uint uVar3;\n  byte *pbVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined *puVar7;\n  uint uVar8;\n  \n  iVar6 = *(int *)(param_1 + 0x14);\n  if (iVar6 < 1) {\n    return 0;\n  }\n  uVar8 = 0;\n  puVar7 = PTR_DAT_00190b94 + -0x3c18;\n  do {\n    while( true ) {\n      uVar3 = uVar8 ^ 1;\n      if (1 < (int)uVar8) {\n        uVar3 = uVar8;\n      }\n      puVar5 = (undefined4 *)(*(int *)(param_1 + 0x10) + uVar3 * 0x10);\n      if (param_3 != (byte *)0x0) break;\nLAB_00042444:\n      iVar6 = FUN_0004016c(puVar5[3] + 0x18,param_2,0);\n      if (*(int *)(iVar6 + 8) != 0) {\n        return *(int *)(iVar6 + 8);\n      }\n      iVar6 = *(int *)(param_1 + 0x14);\n      uVar8 = uVar8 + 1;\n      if (iVar6 <= (int)uVar8) {\n        return 0;\n      }\n    }\n    pbVar2 = (byte *)*puVar5;\n    uVar3 = (uint)*param_3;\n    pbVar4 = param_3;\n    if (puVar7[*pbVar2] == puVar7[uVar3]) {\n      do {\n        if (uVar3 == 0) goto LAB_00042444;\n        pbVar4 = pbVar4 + 1;\n        pbVar1 = pbVar2 + 1;\n        uVar3 = (uint)*pbVar4;\n        pbVar2 = pbVar2 + 1;\n      } while (puVar7[uVar3] == puVar7[*pbVar1]);\n    }\n    uVar8 = uVar8 + 1;\n    if (iVar6 <= (int)uVar8) {\n      return 0;\n    }\n  } while( true );\n}" (primitive_type "int") (function_declarator "FUN_00042368(int param_1,undefined4 param_2,byte *param_3)" (identifier "FUN_00042368") (parameter_list "(int param_1,undefined4 param_2,byte *param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "byte *param_3" (type_identifier "byte") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  byte *pbVar1;\n  byte *pbVar2;\n  uint uVar3;\n  byte *pbVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined *puVar7;\n  uint uVar8;\n  \n  iVar6 = *(int *)(param_1 + 0x14);\n  if (iVar6 < 1) {\n    return 0;\n  }\n  uVar8 = 0;\n  puVar7 = PTR_DAT_00190b94 + -0x3c18;\n  do {\n    while( true ) {\n      uVar3 = uVar8 ^ 1;\n      if (1 < (int)uVar8) {\n        uVar3 = uVar8;\n      }\n      puVar5 = (undefined4 *)(*(int *)(param_1 + 0x10) + uVar3 * 0x10);\n      if (param_3 != (byte *)0x0) break;\nLAB_00042444:\n      iVar6 = FUN_0004016c(puVar5[3] + 0x18,param_2,0);\n      if (*(int *)(iVar6 + 8) != 0) {\n        return *(int *)(iVar6 + 8);\n      }\n      iVar6 = *(int *)(param_1 + 0x14);\n      uVar8 = uVar8 + 1;\n      if (iVar6 <= (int)uVar8) {\n        return 0;\n      }\n    }\n    pbVar2 = (byte *)*puVar5;\n    uVar3 = (uint)*param_3;\n    pbVar4 = param_3;\n    if (puVar7[*pbVar2] == puVar7[uVar3]) {\n      do {\n        if (uVar3 == 0) goto LAB_00042444;\n        pbVar4 = pbVar4 + 1;\n        pbVar1 = pbVar2 + 1;\n        uVar3 = (uint)*pbVar4;\n        pbVar2 = pbVar2 + 1;\n      } while (puVar7[uVar3] == puVar7[*pbVar1]);\n    }\n    uVar8 = uVar8 + 1;\n    if (iVar6 <= (int)uVar8) {\n      return 0;\n    }\n  } while( true );\n}" ({ "{") (declaration "byte *pbVar1;" (type_identifier "byte") (pointer_declarator "*pbVar1" (* "*") (identifier "pbVar1")) (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined *puVar7;" (type_identifier "undefined") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (expression_statement "iVar6 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x14)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (iVar6 < 1) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar6 < 1)" (( "(") (binary_expression "iVar6 < 1" (identifier "iVar6") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" (identifier "uVar8") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar7 = PTR_DAT_00190b94 + -0x3c18;" (assignment_expression "puVar7 = PTR_DAT_00190b94 + -0x3c18" (identifier "puVar7") (= "=") (binary_expression "PTR_DAT_00190b94 + -0x3c18" (identifier "PTR_DAT_00190b94") (+ "+") (number_literal "-0x3c18"))) (; ";")) (do_statement "do {\n    while( true ) {\n      uVar3 = uVar8 ^ 1;\n      if (1 < (int)uVar8) {\n        uVar3 = uVar8;\n      }\n      puVar5 = (undefined4 *)(*(int *)(param_1 + 0x10) + uVar3 * 0x10);\n      if (param_3 != (byte *)0x0) break;\nLAB_00042444:\n      iVar6 = FUN_0004016c(puVar5[3] + 0x18,param_2,0);\n      if (*(int *)(iVar6 + 8) != 0) {\n        return *(int *)(iVar6 + 8);\n      }\n      iVar6 = *(int *)(param_1 + 0x14);\n      uVar8 = uVar8 + 1;\n      if (iVar6 <= (int)uVar8) {\n        return 0;\n      }\n    }\n    pbVar2 = (byte *)*puVar5;\n    uVar3 = (uint)*param_3;\n    pbVar4 = param_3;\n    if (puVar7[*pbVar2] == puVar7[uVar3]) {\n      do {\n        if (uVar3 == 0) goto LAB_00042444;\n        pbVar4 = pbVar4 + 1;\n        pbVar1 = pbVar2 + 1;\n        uVar3 = (uint)*pbVar4;\n        pbVar2 = pbVar2 + 1;\n      } while (puVar7[uVar3] == puVar7[*pbVar1]);\n    }\n    uVar8 = uVar8 + 1;\n    if (iVar6 <= (int)uVar8) {\n      return 0;\n    }\n  } while( true );" (do "do") (compound_statement "{\n    while( true ) {\n      uVar3 = uVar8 ^ 1;\n      if (1 < (int)uVar8) {\n        uVar3 = uVar8;\n      }\n      puVar5 = (undefined4 *)(*(int *)(param_1 + 0x10) + uVar3 * 0x10);\n      if (param_3 != (byte *)0x0) break;\nLAB_00042444:\n      iVar6 = FUN_0004016c(puVar5[3] + 0x18,param_2,0);\n      if (*(int *)(iVar6 + 8) != 0) {\n        return *(int *)(iVar6 + 8);\n      }\n      iVar6 = *(int *)(param_1 + 0x14);\n      uVar8 = uVar8 + 1;\n      if (iVar6 <= (int)uVar8) {\n        return 0;\n      }\n    }\n    pbVar2 = (byte *)*puVar5;\n    uVar3 = (uint)*param_3;\n    pbVar4 = param_3;\n    if (puVar7[*pbVar2] == puVar7[uVar3]) {\n      do {\n        if (uVar3 == 0) goto LAB_00042444;\n        pbVar4 = pbVar4 + 1;\n        pbVar1 = pbVar2 + 1;\n        uVar3 = (uint)*pbVar4;\n        pbVar2 = pbVar2 + 1;\n      } while (puVar7[uVar3] == puVar7[*pbVar1]);\n    }\n    uVar8 = uVar8 + 1;\n    if (iVar6 <= (int)uVar8) {\n      return 0;\n    }\n  }" ({ "{") (while_statement "while( true ) {\n      uVar3 = uVar8 ^ 1;\n      if (1 < (int)uVar8) {\n        uVar3 = uVar8;\n      }\n      puVar5 = (undefined4 *)(*(int *)(param_1 + 0x10) + uVar3 * 0x10);\n      if (param_3 != (byte *)0x0) break;\nLAB_00042444:\n      iVar6 = FUN_0004016c(puVar5[3] + 0x18,param_2,0);\n      if (*(int *)(iVar6 + 8) != 0) {\n        return *(int *)(iVar6 + 8);\n      }\n      iVar6 = *(int *)(param_1 + 0x14);\n      uVar8 = uVar8 + 1;\n      if (iVar6 <= (int)uVar8) {\n        return 0;\n      }\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      uVar3 = uVar8 ^ 1;\n      if (1 < (int)uVar8) {\n        uVar3 = uVar8;\n      }\n      puVar5 = (undefined4 *)(*(int *)(param_1 + 0x10) + uVar3 * 0x10);\n      if (param_3 != (byte *)0x0) break;\nLAB_00042444:\n      iVar6 = FUN_0004016c(puVar5[3] + 0x18,param_2,0);\n      if (*(int *)(iVar6 + 8) != 0) {\n        return *(int *)(iVar6 + 8);\n      }\n      iVar6 = *(int *)(param_1 + 0x14);\n      uVar8 = uVar8 + 1;\n      if (iVar6 <= (int)uVar8) {\n        return 0;\n      }\n    }" ({ "{") (expression_statement "uVar3 = uVar8 ^ 1;" (assignment_expression "uVar3 = uVar8 ^ 1" (identifier "uVar3") (= "=") (binary_expression "uVar8 ^ 1" (identifier "uVar8") (^ "^") (number_literal "1"))) (; ";")) (if_statement "if (1 < (int)uVar8) {\n        uVar3 = uVar8;\n      }" (if "if") (parenthesized_expression "(1 < (int)uVar8)" (( "(") (binary_expression "1 < (int)uVar8" (number_literal "1") (< "<") (cast_expression "(int)uVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar8"))) () ")")) (compound_statement "{\n        uVar3 = uVar8;\n      }" ({ "{") (expression_statement "uVar3 = uVar8;" (assignment_expression "uVar3 = uVar8" (identifier "uVar3") (= "=") (identifier "uVar8")) (; ";")) (} "}"))) (expression_statement "puVar5 = (undefined4 *)(*(int *)(param_1 + 0x10) + uVar3 * 0x10);" (assignment_expression "puVar5 = (undefined4 *)(*(int *)(param_1 + 0x10) + uVar3 * 0x10)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x10) + uVar3 * 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x10) + uVar3 * 0x10)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) + uVar3 * 0x10" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (binary_expression "uVar3 * 0x10" (identifier "uVar3") (* "*") (number_literal "0x10"))) () ")")))) (; ";")) (if_statement "if (param_3 != (byte *)0x0) break;" (if "if") (parenthesized_expression "(param_3 != (byte *)0x0)" (( "(") (binary_expression "param_3 != (byte *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (labeled_statement "LAB_00042444:\n      iVar6 = FUN_0004016c(puVar5[3] + 0x18,param_2,0);" (statement_identifier "LAB_00042444") (: ":") (expression_statement "iVar6 = FUN_0004016c(puVar5[3] + 0x18,param_2,0);" (assignment_expression "iVar6 = FUN_0004016c(puVar5[3] + 0x18,param_2,0)" (identifier "iVar6") (= "=") (call_expression "FUN_0004016c(puVar5[3] + 0x18,param_2,0)" (identifier "FUN_0004016c") (argument_list "(puVar5[3] + 0x18,param_2,0)" (( "(") (binary_expression "puVar5[3] + 0x18" (subscript_expression "puVar5[3]" (identifier "puVar5") ([ "[") (number_literal "3") (] "]")) (+ "+") (number_literal "0x18")) (, ",") (identifier "param_2") (, ",") (number_literal "0") () ")")))) (; ";"))) (if_statement "if (*(int *)(iVar6 + 8) != 0) {\n        return *(int *)(iVar6 + 8);\n      }" (if "if") (parenthesized_expression "(*(int *)(iVar6 + 8) != 0)" (( "(") (binary_expression "*(int *)(iVar6 + 8) != 0" (pointer_expression "*(int *)(iVar6 + 8)" (* "*") (cast_expression "(int *)(iVar6 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 8)" (( "(") (binary_expression "iVar6 + 8" (identifier "iVar6") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        return *(int *)(iVar6 + 8);\n      }" ({ "{") (return_statement "return *(int *)(iVar6 + 8);" (return "return") (pointer_expression "*(int *)(iVar6 + 8)" (* "*") (cast_expression "(int *)(iVar6 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 8)" (( "(") (binary_expression "iVar6 + 8" (identifier "iVar6") (+ "+") (number_literal "8")) () ")")))) (; ";")) (} "}"))) (expression_statement "iVar6 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x14)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" (identifier "uVar8") (= "=") (binary_expression "uVar8 + 1" (identifier "uVar8") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar6 <= (int)uVar8) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(iVar6 <= (int)uVar8)" (( "(") (binary_expression "iVar6 <= (int)uVar8" (identifier "iVar6") (<= "<=") (cast_expression "(int)uVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar8"))) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (expression_statement "pbVar2 = (byte *)*puVar5;" (assignment_expression "pbVar2 = (byte *)*puVar5" (identifier "pbVar2") (= "=") (cast_expression "(byte *)*puVar5" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar5" (* "*") (identifier "puVar5")))) (; ";")) (expression_statement "uVar3 = (uint)*param_3;" (assignment_expression "uVar3 = (uint)*param_3" (identifier "uVar3") (= "=") (binary_expression "(uint)*param_3" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "param_3"))) (; ";")) (expression_statement "pbVar4 = param_3;" (assignment_expression "pbVar4 = param_3" (identifier "pbVar4") (= "=") (identifier "param_3")) (; ";")) (if_statement "if (puVar7[*pbVar2] == puVar7[uVar3]) {\n      do {\n        if (uVar3 == 0) goto LAB_00042444;\n        pbVar4 = pbVar4 + 1;\n        pbVar1 = pbVar2 + 1;\n        uVar3 = (uint)*pbVar4;\n        pbVar2 = pbVar2 + 1;\n      } while (puVar7[uVar3] == puVar7[*pbVar1]);\n    }" (if "if") (parenthesized_expression "(puVar7[*pbVar2] == puVar7[uVar3])" (( "(") (binary_expression "puVar7[*pbVar2] == puVar7[uVar3]" (subscript_expression "puVar7[*pbVar2]" (identifier "puVar7") ([ "[") (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (] "]")) (== "==") (subscript_expression "puVar7[uVar3]" (identifier "puVar7") ([ "[") (identifier "uVar3") (] "]"))) () ")")) (compound_statement "{\n      do {\n        if (uVar3 == 0) goto LAB_00042444;\n        pbVar4 = pbVar4 + 1;\n        pbVar1 = pbVar2 + 1;\n        uVar3 = (uint)*pbVar4;\n        pbVar2 = pbVar2 + 1;\n      } while (puVar7[uVar3] == puVar7[*pbVar1]);\n    }" ({ "{") (do_statement "do {\n        if (uVar3 == 0) goto LAB_00042444;\n        pbVar4 = pbVar4 + 1;\n        pbVar1 = pbVar2 + 1;\n        uVar3 = (uint)*pbVar4;\n        pbVar2 = pbVar2 + 1;\n      } while (puVar7[uVar3] == puVar7[*pbVar1]);" (do "do") (compound_statement "{\n        if (uVar3 == 0) goto LAB_00042444;\n        pbVar4 = pbVar4 + 1;\n        pbVar1 = pbVar2 + 1;\n        uVar3 = (uint)*pbVar4;\n        pbVar2 = pbVar2 + 1;\n      }" ({ "{") (if_statement "if (uVar3 == 0) goto LAB_00042444;" (if "if") (parenthesized_expression "(uVar3 == 0)" (( "(") (binary_expression "uVar3 == 0" (identifier "uVar3") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00042444;" (goto "goto") (statement_identifier "LAB_00042444") (; ";"))) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" (identifier "pbVar4") (= "=") (binary_expression "pbVar4 + 1" (identifier "pbVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar1 = pbVar2 + 1;" (assignment_expression "pbVar1 = pbVar2 + 1" (identifier "pbVar1") (= "=") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar3 = (uint)*pbVar4;" (assignment_expression "uVar3 = (uint)*pbVar4" (identifier "uVar3") (= "=") (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar4"))) (; ";")) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" (identifier "pbVar2") (= "=") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar7[uVar3] == puVar7[*pbVar1])" (( "(") (binary_expression "puVar7[uVar3] == puVar7[*pbVar1]" (subscript_expression "puVar7[uVar3]" (identifier "puVar7") ([ "[") (identifier "uVar3") (] "]")) (== "==") (subscript_expression "puVar7[*pbVar1]" (identifier "puVar7") ([ "[") (pointer_expression "*pbVar1" (* "*") (identifier "pbVar1")) (] "]"))) () ")")) (; ";")) (} "}"))) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" (identifier "uVar8") (= "=") (binary_expression "uVar8 + 1" (identifier "uVar8") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar6 <= (int)uVar8) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar6 <= (int)uVar8)" (( "(") (binary_expression "iVar6 <= (int)uVar8" (identifier "iVar6") (<= "<=") (cast_expression "(int)uVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar8"))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

type_1 * function_1(type_2 *db,char *zName,char *var_5)

{
  type_3 *pbVar1;
  type_4 uVar2;
  type_5 *pHVar3;
  type_3 *var_8;
  type_4 var_6;
  type_3 *var_7;
  int var_1;
  type_6 *puVar8;
  type_4 var_3;
  
  var_1 = db->nDb;
  if (var_1 < 1) {
    return (type_1 *)0x0;
  }
  var_3 = 0;
  puVar8 = var_2 + -0x3c18;
  do {
    while( true ) {
      uVar2 = var_3 ^ 1;
      if (1 < (int)var_3) {
        uVar2 = var_3;
      }
      if ((type_3 *)var_5 != (type_3 *)0x0) break;
LAB_00042444:
      pHVar3 = var_4(&(db->aDb[uVar2].pSchema)->idxHash,zName,(type_4 *)0x0);
      if ((type_1 *)pHVar3->data != (type_1 *)0x0) {
        return (type_1 *)pHVar3->data;
      }
      var_1 = db->nDb;
      var_3 = var_3 + 1;
      if (var_1 <= (int)var_3) {
        return (type_1 *)0x0;
      }
    }
    var_8 = (type_3 *)db->aDb[uVar2].zDbSName;
    var_6 = (type_4)(type_3)*var_5;
    var_7 = (type_3 *)var_5;
    if (puVar8[*var_8] == puVar8[var_6]) {
      do {
        if (var_6 == 0) goto LAB_00042444;
        var_7 = var_7 + 1;
        pbVar1 = var_8 + 1;
        var_6 = (type_4)*var_7;
        var_8 = var_8 + 1;
      } while (puVar8[var_6] == puVar8[*pbVar1]);
    }
    var_3 = var_3 + 1;
    if (var_1 <= (int)var_3) {
      return (type_1 *)0x0;
    }
  } while( true );
}


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

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

{
  byte *pbVar1;
  byte *pbVar2;
  uint uVar3;
  byte *pbVar4;
  undefined4 *puVar5;
  int iVar6;
  undefined *puVar7;
  uint uVar8;
  
  iVar6 = *(int *)(param_1 + 0x14);
  if (iVar6 < 1) {
    return 0;
  }
  uVar8 = 0;
  puVar7 = PTR_DAT_00190b94 + -0x3c18;
  do {
    while( true ) {
      uVar3 = uVar8 ^ 1;
      if (1 < (int)uVar8) {
        uVar3 = uVar8;
      }
      puVar5 = (undefined4 *)(*(int *)(param_1 + 0x10) + uVar3 * 0x10);
      if (param_3 != (byte *)0x0) break;
LAB_00042444:
      iVar6 = FUN_0004016c(puVar5[3] + 0x18,param_2,0);
      if (*(int *)(iVar6 + 8) != 0) {
        return *(int *)(iVar6 + 8);
      }
      iVar6 = *(int *)(param_1 + 0x14);
      uVar8 = uVar8 + 1;
      if (iVar6 <= (int)uVar8) {
        return 0;
      }
    }
    pbVar2 = (byte *)*puVar5;
    uVar3 = (uint)*param_3;
    pbVar4 = param_3;
    if (puVar7[*pbVar2] == puVar7[uVar3]) {
      do {
        if (uVar3 == 0) goto LAB_00042444;
        pbVar4 = pbVar4 + 1;
        pbVar1 = pbVar2 + 1;
        uVar3 = (uint)*pbVar4;
        pbVar2 = pbVar2 + 1;
      } while (puVar7[uVar3] == puVar7[*pbVar1]);
    }
    uVar8 = uVar8 + 1;
    if (iVar6 <= (int)uVar8) {
      return 0;
    }
  } while( true );
}

