
KeyInfo * sqlite3KeyInfoOfIndex(Parse *pParse,Index *pIdx)

{
  KeyInfo *pKVar1;
  CollSeq *pCVar2;
  u8 *puVar3;
  u32 uVar4;
  u8 *puVar5;
  int iVar6;
  uint uVar7;
  CollSeq **ppCVar8;
  uint uVar9;
  char *pcVar10;
  
  uVar9 = (uint)pIdx->nColumn;
  if (pParse->nErr == 0) {
    if ((pIdx->field_0x37 & 0x10) == 0) {
      iVar6 = 0;
      uVar7 = uVar9;
    }
    else {
      uVar7 = (uint)pIdx->nKeyCol;
      iVar6 = uVar9 - uVar7;
    }
    pKVar1 = (KeyInfo *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(pParse->db,uVar7,iVar6);
    if (pKVar1 != (KeyInfo *)0x0) {
      if (uVar9 != 0) {
        ppCVar8 = pKVar1->aColl;
        pcVar10 = PTR_DAT_00190b94 + -0x3dd0;
        uVar7 = 0;
        do {
          pCVar2 = (CollSeq *)0x0;
          if (pIdx->azColl[uVar7] != pcVar10) {
            pCVar2 = sqlite3LocateCollSeq(pParse,pIdx->azColl[uVar7]);
          }
          *ppCVar8 = pCVar2;
          ppCVar8 = ppCVar8 + 1;
          puVar5 = pIdx->aSortOrder + uVar7;
          puVar3 = pKVar1->aSortOrder + uVar7;
          uVar7 = uVar7 + 1;
          *puVar3 = *puVar5;
        } while (uVar9 != uVar7);
      }
      if (pParse->nErr == 0) {
        return pKVar1;
      }
      if (-1 < (char)pIdx->field_0x38) {
        pIdx->field_0x38 = pIdx->field_0x38 & 0x7f | 0x80;
        pParse->rc = 0x201;
      }
      uVar4 = pKVar1->nRef - 1;
      pKVar1->nRef = uVar4;
      if (uVar4 == 0) {
        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(pKVar1);
        return (KeyInfo *)0x0;
      }
    }
  }
  return (KeyInfo *)0x0;
}



int * FUN_00099b98(undefined4 *param_1,int param_2)

{
  int *piVar1;
  undefined1 *puVar2;
  undefined *puVar3;
  undefined1 *puVar4;
  int iVar5;
  uint uVar6;
  int *piVar7;
  uint uVar8;
  undefined *puVar9;
  
  uVar8 = (uint)*(ushort *)(param_2 + 0x34);
  if (param_1[9] == 0) {
    if ((*(byte *)(param_2 + 0x37) & 0x10) == 0) {
      iVar5 = 0;
      uVar6 = uVar8;
    }
    else {
      uVar6 = (uint)*(ushort *)(param_2 + 0x32);
      iVar5 = uVar8 - uVar6;
    }
    piVar1 = (int *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(*param_1,uVar6,iVar5);
    if (piVar1 != (int *)0x0) {
      if (uVar8 != 0) {
        piVar7 = piVar1 + 5;
        puVar9 = PTR_DAT_00190b94 + -0x3dd0;
        uVar6 = 0;
        do {
          iVar5 = 0;
          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);
          if (puVar3 != puVar9) {
            iVar5 = FUN_00099ab4(param_1,puVar3);
          }
          *piVar7 = iVar5;
          piVar7 = piVar7 + 1;
          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);
          puVar2 = (undefined1 *)(piVar1[4] + uVar6);
          uVar6 = uVar6 + 1;
          *puVar2 = *puVar4;
        } while (uVar8 != uVar6);
      }
      if (param_1[9] == 0) {
        return piVar1;
      }
      if (-1 < *(char *)(param_2 + 0x38)) {
        *(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80;
        param_1[3] = 0x201;
      }
      iVar5 = *piVar1;
      *piVar1 = iVar5 + -1;
      if (iVar5 + -1 == 0) {
        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1);
        return (int *)0x0;
      }
    }
  }
  return (int *)0x0;
}


lui gp,0x10
addiu gp,gp,-0x1278
addu gp,gp,t9
addiu sp,sp,-0x40
sw gp,0x10(sp)
sw ra,0x3c(sp)
sw s7,0x38(sp)
sw s6,0x34(sp)
sw s5,0x30(sp)
sw s4,0x2c(sp)
sw s3,0x28(sp)
sw s2,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
lw s0,0x24(a0)
bne s0,zero,0x00099cc8
_lhu s6,0x34(a1)
lbu v0,0x37(a1)
or s4,a0,zero
or s2,a1,zero
andi v0,v0,0x10
bne v0,zero,0x00099cfc
_lw a0,0x0(a0)
or a2,zero,zero
or a1,s6,zero
lw t9,-0x7d78(gp)
addiu t9,t9,0x1dec
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x00099cc8
_or s5,v0,zero
beq s6,zero,0x00099c8c
_nop
lw s7,-0x7d8c(gp)
addiu s3,v0,0x14
lw s1,-0x7d5c(gp)
addiu s7,s7,-0x3dd0
addiu s1,s1,-0x654c
lw a2,0x20(s2)
sll v1,s0,0x2
or a0,s4,zero
or v0,zero,zero
addu v1,a2,v1
lw v1,0x0(v1)
beq v1,s7,0x00099c64
_or a1,v1,zero
or t9,s1,zero
bal 0x00099ab4
_nop
lw gp,0x10(sp)
sw v0,0x0(s3)
addiu s3,s3,0x4
lw v1,0x1c(s2)
lw v0,0x10(s5)
addu v1,v1,s0
addu v0,v0,s0
addiu s0,s0,0x1
lbu v1,0x0(v1)
bne s6,s0,0x00099c34
_sb v1,0x0(v0)
lw v0,0x24(s4)
beq v0,zero,0x00099cd0
_lw ra,0x3c(sp)
lb v0,0x38(s2)
bltz v0,0x00099cb8
_li v1,0x1
lbu v0,0x38(s2)
ins v0,v1,0x7,0x1
sb v0,0x38(s2)
li v0,0x201
sw v0,0xc(s4)
lw v0,0x0(s5)
addiu v0,v0,-0x1
beq v0,zero,0x00099d08
_sw v0,0x0(s5)
or s5,zero,zero
lw ra,0x3c(sp)
or v0,s5,zero
lw s7,0x38(sp)
lw s6,0x34(sp)
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x40
lhu a1,0x32(a1)
b 0x00099bfc
_subu a2,s6,a1
lw t9,-0x7d7c(gp)
or a0,s5,zero
addiu t9,t9,-0x316c
jalr t9
_or s5,zero,zero
b 0x00099cd0
_lw ra,0x3c(sp)
(translation_unit "int * FUN_00099b98(undefined4 *param_1,int param_2)\n\n{\n  int *piVar1;\n  undefined1 *puVar2;\n  undefined *puVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  uint uVar6;\n  int *piVar7;\n  uint uVar8;\n  undefined *puVar9;\n  \n  uVar8 = (uint)*(ushort *)(param_2 + 0x34);\n  if (param_1[9] == 0) {\n    if ((*(byte *)(param_2 + 0x37) & 0x10) == 0) {\n      iVar5 = 0;\n      uVar6 = uVar8;\n    }\n    else {\n      uVar6 = (uint)*(ushort *)(param_2 + 0x32);\n      iVar5 = uVar8 - uVar6;\n    }\n    piVar1 = (int *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(*param_1,uVar6,iVar5);\n    if (piVar1 != (int *)0x0) {\n      if (uVar8 != 0) {\n        piVar7 = piVar1 + 5;\n        puVar9 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar6 = 0;\n        do {\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        } while (uVar8 != uVar6);\n      }\n      if (param_1[9] == 0) {\n        return piVar1;\n      }\n      if (-1 < *(char *)(param_2 + 0x38)) {\n        *(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80;\n        param_1[3] = 0x201;\n      }\n      iVar5 = *piVar1;\n      *piVar1 = iVar5 + -1;\n      if (iVar5 + -1 == 0) {\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1);\n        return (int *)0x0;\n      }\n    }\n  }\n  return (int *)0x0;\n}\n\n" (function_definition "int * FUN_00099b98(undefined4 *param_1,int param_2)\n\n{\n  int *piVar1;\n  undefined1 *puVar2;\n  undefined *puVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  uint uVar6;\n  int *piVar7;\n  uint uVar8;\n  undefined *puVar9;\n  \n  uVar8 = (uint)*(ushort *)(param_2 + 0x34);\n  if (param_1[9] == 0) {\n    if ((*(byte *)(param_2 + 0x37) & 0x10) == 0) {\n      iVar5 = 0;\n      uVar6 = uVar8;\n    }\n    else {\n      uVar6 = (uint)*(ushort *)(param_2 + 0x32);\n      iVar5 = uVar8 - uVar6;\n    }\n    piVar1 = (int *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(*param_1,uVar6,iVar5);\n    if (piVar1 != (int *)0x0) {\n      if (uVar8 != 0) {\n        piVar7 = piVar1 + 5;\n        puVar9 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar6 = 0;\n        do {\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        } while (uVar8 != uVar6);\n      }\n      if (param_1[9] == 0) {\n        return piVar1;\n      }\n      if (-1 < *(char *)(param_2 + 0x38)) {\n        *(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80;\n        param_1[3] = 0x201;\n      }\n      iVar5 = *piVar1;\n      *piVar1 = iVar5 + -1;\n      if (iVar5 + -1 == 0) {\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1);\n        return (int *)0x0;\n      }\n    }\n  }\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* FUN_00099b98(undefined4 *param_1,int param_2)" * (function_declarator "FUN_00099b98(undefined4 *param_1,int param_2)" identifier (parameter_list "(undefined4 *param_1,int param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  int *piVar1;\n  undefined1 *puVar2;\n  undefined *puVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  uint uVar6;\n  int *piVar7;\n  uint uVar8;\n  undefined *puVar9;\n  \n  uVar8 = (uint)*(ushort *)(param_2 + 0x34);\n  if (param_1[9] == 0) {\n    if ((*(byte *)(param_2 + 0x37) & 0x10) == 0) {\n      iVar5 = 0;\n      uVar6 = uVar8;\n    }\n    else {\n      uVar6 = (uint)*(ushort *)(param_2 + 0x32);\n      iVar5 = uVar8 - uVar6;\n    }\n    piVar1 = (int *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(*param_1,uVar6,iVar5);\n    if (piVar1 != (int *)0x0) {\n      if (uVar8 != 0) {\n        piVar7 = piVar1 + 5;\n        puVar9 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar6 = 0;\n        do {\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        } while (uVar8 != uVar6);\n      }\n      if (param_1[9] == 0) {\n        return piVar1;\n      }\n      if (-1 < *(char *)(param_2 + 0x38)) {\n        *(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80;\n        param_1[3] = 0x201;\n      }\n      iVar5 = *piVar1;\n      *piVar1 = iVar5 + -1;\n      if (iVar5 + -1 == 0) {\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1);\n        return (int *)0x0;\n      }\n    }\n  }\n  return (int *)0x0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (expression_statement "uVar8 = (uint)*(ushort *)(param_2 + 0x34);" (assignment_expression "uVar8 = (uint)*(ushort *)(param_2 + 0x34)" identifier = (binary_expression "(uint)*(ushort *)(param_2 + 0x34)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(param_2 + 0x34)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x34)" ( (binary_expression "param_2 + 0x34" identifier + number_literal) ))))) ;) (if_statement "if (param_1[9] == 0) {\n    if ((*(byte *)(param_2 + 0x37) & 0x10) == 0) {\n      iVar5 = 0;\n      uVar6 = uVar8;\n    }\n    else {\n      uVar6 = (uint)*(ushort *)(param_2 + 0x32);\n      iVar5 = uVar8 - uVar6;\n    }\n    piVar1 = (int *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(*param_1,uVar6,iVar5);\n    if (piVar1 != (int *)0x0) {\n      if (uVar8 != 0) {\n        piVar7 = piVar1 + 5;\n        puVar9 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar6 = 0;\n        do {\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        } while (uVar8 != uVar6);\n      }\n      if (param_1[9] == 0) {\n        return piVar1;\n      }\n      if (-1 < *(char *)(param_2 + 0x38)) {\n        *(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80;\n        param_1[3] = 0x201;\n      }\n      iVar5 = *piVar1;\n      *piVar1 = iVar5 + -1;\n      if (iVar5 + -1 == 0) {\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1);\n        return (int *)0x0;\n      }\n    }\n  }" if (parenthesized_expression "(param_1[9] == 0)" ( (binary_expression "param_1[9] == 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    if ((*(byte *)(param_2 + 0x37) & 0x10) == 0) {\n      iVar5 = 0;\n      uVar6 = uVar8;\n    }\n    else {\n      uVar6 = (uint)*(ushort *)(param_2 + 0x32);\n      iVar5 = uVar8 - uVar6;\n    }\n    piVar1 = (int *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(*param_1,uVar6,iVar5);\n    if (piVar1 != (int *)0x0) {\n      if (uVar8 != 0) {\n        piVar7 = piVar1 + 5;\n        puVar9 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar6 = 0;\n        do {\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        } while (uVar8 != uVar6);\n      }\n      if (param_1[9] == 0) {\n        return piVar1;\n      }\n      if (-1 < *(char *)(param_2 + 0x38)) {\n        *(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80;\n        param_1[3] = 0x201;\n      }\n      iVar5 = *piVar1;\n      *piVar1 = iVar5 + -1;\n      if (iVar5 + -1 == 0) {\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1);\n        return (int *)0x0;\n      }\n    }\n  }" { (if_statement "if ((*(byte *)(param_2 + 0x37) & 0x10) == 0) {\n      iVar5 = 0;\n      uVar6 = uVar8;\n    }\n    else {\n      uVar6 = (uint)*(ushort *)(param_2 + 0x32);\n      iVar5 = uVar8 - uVar6;\n    }" if (parenthesized_expression "((*(byte *)(param_2 + 0x37) & 0x10) == 0)" ( (binary_expression "(*(byte *)(param_2 + 0x37) & 0x10) == 0" (parenthesized_expression "(*(byte *)(param_2 + 0x37) & 0x10)" ( (binary_expression "*(byte *)(param_2 + 0x37) & 0x10" (pointer_expression "*(byte *)(param_2 + 0x37)" * (cast_expression "(byte *)(param_2 + 0x37)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x37)" ( (binary_expression "param_2 + 0x37" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      iVar5 = 0;\n      uVar6 = uVar8;\n    }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "uVar6 = uVar8;" (assignment_expression "uVar6 = uVar8" identifier = identifier) ;) }) (else_clause "else {\n      uVar6 = (uint)*(ushort *)(param_2 + 0x32);\n      iVar5 = uVar8 - uVar6;\n    }" else (compound_statement "{\n      uVar6 = (uint)*(ushort *)(param_2 + 0x32);\n      iVar5 = uVar8 - uVar6;\n    }" { (expression_statement "uVar6 = (uint)*(ushort *)(param_2 + 0x32);" (assignment_expression "uVar6 = (uint)*(ushort *)(param_2 + 0x32)" identifier = (binary_expression "(uint)*(ushort *)(param_2 + 0x32)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(param_2 + 0x32)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x32)" ( (binary_expression "param_2 + 0x32" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = uVar8 - uVar6;" (assignment_expression "iVar5 = uVar8 - uVar6" identifier = (binary_expression "uVar8 - uVar6" identifier - identifier)) ;) }))) (expression_statement "piVar1 = (int *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(*param_1,uVar6,iVar5);" (assignment_expression "piVar1 = (int *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(*param_1,uVar6,iVar5)" identifier = (cast_expression "(int *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(*param_1,uVar6,iVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(*param_1,uVar6,iVar5)" (parenthesized_expression "(*(code *)(PTR_LAB_00190ba8 + 0x1dec))" ( (pointer_expression "*(code *)(PTR_LAB_00190ba8 + 0x1dec)" * (cast_expression "(code *)(PTR_LAB_00190ba8 + 0x1dec)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190ba8 + 0x1dec)" ( (binary_expression "PTR_LAB_00190ba8 + 0x1dec" identifier + number_literal) )))) )) (argument_list "(*param_1,uVar6,iVar5)" ( (pointer_expression "*param_1" * identifier) , identifier , identifier ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n      if (uVar8 != 0) {\n        piVar7 = piVar1 + 5;\n        puVar9 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar6 = 0;\n        do {\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        } while (uVar8 != uVar6);\n      }\n      if (param_1[9] == 0) {\n        return piVar1;\n      }\n      if (-1 < *(char *)(param_2 + 0x38)) {\n        *(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80;\n        param_1[3] = 0x201;\n      }\n      iVar5 = *piVar1;\n      *piVar1 = iVar5 + -1;\n      if (iVar5 + -1 == 0) {\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1);\n        return (int *)0x0;\n      }\n    }" if (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (uVar8 != 0) {\n        piVar7 = piVar1 + 5;\n        puVar9 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar6 = 0;\n        do {\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        } while (uVar8 != uVar6);\n      }\n      if (param_1[9] == 0) {\n        return piVar1;\n      }\n      if (-1 < *(char *)(param_2 + 0x38)) {\n        *(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80;\n        param_1[3] = 0x201;\n      }\n      iVar5 = *piVar1;\n      *piVar1 = iVar5 + -1;\n      if (iVar5 + -1 == 0) {\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1);\n        return (int *)0x0;\n      }\n    }" { (if_statement "if (uVar8 != 0) {\n        piVar7 = piVar1 + 5;\n        puVar9 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar6 = 0;\n        do {\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        } while (uVar8 != uVar6);\n      }" if (parenthesized_expression "(uVar8 != 0)" ( (binary_expression "uVar8 != 0" identifier != number_literal) )) (compound_statement "{\n        piVar7 = piVar1 + 5;\n        puVar9 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar6 = 0;\n        do {\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        } while (uVar8 != uVar6);\n      }" { (expression_statement "piVar7 = piVar1 + 5;" (assignment_expression "piVar7 = piVar1 + 5" identifier = (binary_expression "piVar1 + 5" identifier + number_literal)) ;) (expression_statement "puVar9 = PTR_DAT_00190b94 + -0x3dd0;" (assignment_expression "puVar9 = PTR_DAT_00190b94 + -0x3dd0" identifier = (binary_expression "PTR_DAT_00190b94 + -0x3dd0" identifier + number_literal)) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        } while (uVar8 != uVar6);" do (compound_statement "{\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);" (assignment_expression "puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4)" identifier = (pointer_expression "*(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4)" * (cast_expression "(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_2 + 0x20) + uVar6 * 4)" ( (binary_expression "*(int *)(param_2 + 0x20) + uVar6 * 4" (pointer_expression "*(int *)(param_2 + 0x20)" * (cast_expression "(int *)(param_2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) + (binary_expression "uVar6 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }" if (parenthesized_expression "(puVar3 != puVar9)" ( (binary_expression "puVar3 != puVar9" identifier != identifier) )) (compound_statement "{\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }" { (expression_statement "iVar5 = FUN_00099ab4(param_1,puVar3);" (assignment_expression "iVar5 = FUN_00099ab4(param_1,puVar3)" identifier = (call_expression "FUN_00099ab4(param_1,puVar3)" identifier (argument_list "(param_1,puVar3)" ( identifier , identifier )))) ;) })) (expression_statement "*piVar7 = iVar5;" (assignment_expression "*piVar7 = iVar5" (pointer_expression "*piVar7" * identifier) = identifier) ;) (expression_statement "piVar7 = piVar7 + 1;" (assignment_expression "piVar7 = piVar7 + 1" identifier = (binary_expression "piVar7 + 1" identifier + number_literal)) ;) (expression_statement "puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);" (assignment_expression "puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6)" identifier = (cast_expression "(undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0x1c) + uVar6)" ( (binary_expression "*(int *)(param_2 + 0x1c) + uVar6" (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) + identifier) )))) ;) (expression_statement "puVar2 = (undefined1 *)(piVar1[4] + uVar6);" (assignment_expression "puVar2 = (undefined1 *)(piVar1[4] + uVar6)" identifier = (cast_expression "(undefined1 *)(piVar1[4] + uVar6)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1[4] + uVar6)" ( (binary_expression "piVar1[4] + uVar6" (subscript_expression "piVar1[4]" identifier [ number_literal ]) + identifier) )))) ;) (expression_statement "uVar6 = uVar6 + 1;" (assignment_expression "uVar6 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (expression_statement "*puVar2 = *puVar4;" (assignment_expression "*puVar2 = *puVar4" (pointer_expression "*puVar2" * identifier) = (pointer_expression "*puVar4" * identifier)) ;) }) while (parenthesized_expression "(uVar8 != uVar6)" ( (binary_expression "uVar8 != uVar6" identifier != identifier) )) ;) })) (if_statement "if (param_1[9] == 0) {\n        return piVar1;\n      }" if (parenthesized_expression "(param_1[9] == 0)" ( (binary_expression "param_1[9] == 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        return piVar1;\n      }" { (return_statement "return piVar1;" return identifier ;) })) (if_statement "if (-1 < *(char *)(param_2 + 0x38)) {\n        *(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80;\n        param_1[3] = 0x201;\n      }" if (parenthesized_expression "(-1 < *(char *)(param_2 + 0x38))" ( (binary_expression "-1 < *(char *)(param_2 + 0x38)" number_literal < (pointer_expression "*(char *)(param_2 + 0x38)" * (cast_expression "(char *)(param_2 + 0x38)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x38)" ( (binary_expression "param_2 + 0x38" identifier + number_literal) ))))) )) (compound_statement "{\n        *(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80;\n        param_1[3] = 0x201;\n      }" { (expression_statement "*(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80;" (assignment_expression "*(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80" (pointer_expression "*(byte *)(param_2 + 0x38)" * (cast_expression "(byte *)(param_2 + 0x38)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x38)" ( (binary_expression "param_2 + 0x38" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_2 + 0x38) & 0x7f | 0x80" (binary_expression "*(byte *)(param_2 + 0x38) & 0x7f" (pointer_expression "*(byte *)(param_2 + 0x38)" * (cast_expression "(byte *)(param_2 + 0x38)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x38)" ( (binary_expression "param_2 + 0x38" identifier + number_literal) )))) & number_literal) | number_literal)) ;) (expression_statement "param_1[3] = 0x201;" (assignment_expression "param_1[3] = 0x201" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) })) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = iVar5 + -1;" (assignment_expression "*piVar1 = iVar5 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (if_statement "if (iVar5 + -1 == 0) {\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1);\n        return (int *)0x0;\n      }" if (parenthesized_expression "(iVar5 + -1 == 0)" ( (binary_expression "iVar5 + -1 == 0" (binary_expression "iVar5 + -1" identifier + number_literal) == number_literal) )) (compound_statement "{\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1);\n        return (int *)0x0;\n      }" { (expression_statement "(*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1);" (call_expression "(*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1)" (parenthesized_expression "(*(code *)(PTR_LAB_00190ba4 + -0x316c))" ( (pointer_expression "*(code *)(PTR_LAB_00190ba4 + -0x316c)" * (cast_expression "(code *)(PTR_LAB_00190ba4 + -0x316c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190ba4 + -0x316c)" ( (binary_expression "PTR_LAB_00190ba4 + -0x316c" identifier + number_literal) )))) )) (argument_list "(piVar1)" ( identifier ))) ;) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) })) })) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "KeyInfo * sqlite3KeyInfoOfIndex(Parse *pParse,Index *pIdx)\n\n{\n  KeyInfo *pKVar1;\n  CollSeq *pCVar2;\n  u8 *puVar3;\n  u32 uVar4;\n  u8 *puVar5;\n  int iVar6;\n  uint uVar7;\n  CollSeq **ppCVar8;\n  uint uVar9;\n  char *pcVar10;\n  \n  uVar9 = (uint)pIdx->nColumn;\n  if (pParse->nErr == 0) {\n    if ((pIdx->field_0x37 & 0x10) == 0) {\n      iVar6 = 0;\n      uVar7 = uVar9;\n    }\n    else {\n      uVar7 = (uint)pIdx->nKeyCol;\n      iVar6 = uVar9 - uVar7;\n    }\n    pKVar1 = (KeyInfo *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(pParse->db,uVar7,iVar6);\n    if (pKVar1 != (KeyInfo *)0x0) {\n      if (uVar9 != 0) {\n        ppCVar8 = pKVar1->aColl;\n        pcVar10 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar7 = 0;\n        do {\n          pCVar2 = (CollSeq *)0x0;\n          if (pIdx->azColl[uVar7] != pcVar10) {\n            pCVar2 = sqlite3LocateCollSeq(pParse,pIdx->azColl[uVar7]);\n          }\n          *ppCVar8 = pCVar2;\n          ppCVar8 = ppCVar8 + 1;\n          puVar5 = pIdx->aSortOrder + uVar7;\n          puVar3 = pKVar1->aSortOrder + uVar7;\n          uVar7 = uVar7 + 1;\n          *puVar3 = *puVar5;\n        } while (uVar9 != uVar7);\n      }\n      if (pParse->nErr == 0) {\n        return pKVar1;\n      }\n      if (-1 < (char)pIdx->field_0x38) {\n        pIdx->field_0x38 = pIdx->field_0x38 & 0x7f | 0x80;\n        pParse->rc = 0x201;\n      }\n      uVar4 = pKVar1->nRef - 1;\n      pKVar1->nRef = uVar4;\n      if (uVar4 == 0) {\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(pKVar1);\n        return (KeyInfo *)0x0;\n      }\n    }\n  }\n  return (KeyInfo *)0x0;\n}\n\n" (function_definition "KeyInfo * sqlite3KeyInfoOfIndex(Parse *pParse,Index *pIdx)\n\n{\n  KeyInfo *pKVar1;\n  CollSeq *pCVar2;\n  u8 *puVar3;\n  u32 uVar4;\n  u8 *puVar5;\n  int iVar6;\n  uint uVar7;\n  CollSeq **ppCVar8;\n  uint uVar9;\n  char *pcVar10;\n  \n  uVar9 = (uint)pIdx->nColumn;\n  if (pParse->nErr == 0) {\n    if ((pIdx->field_0x37 & 0x10) == 0) {\n      iVar6 = 0;\n      uVar7 = uVar9;\n    }\n    else {\n      uVar7 = (uint)pIdx->nKeyCol;\n      iVar6 = uVar9 - uVar7;\n    }\n    pKVar1 = (KeyInfo *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(pParse->db,uVar7,iVar6);\n    if (pKVar1 != (KeyInfo *)0x0) {\n      if (uVar9 != 0) {\n        ppCVar8 = pKVar1->aColl;\n        pcVar10 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar7 = 0;\n        do {\n          pCVar2 = (CollSeq *)0x0;\n          if (pIdx->azColl[uVar7] != pcVar10) {\n            pCVar2 = sqlite3LocateCollSeq(pParse,pIdx->azColl[uVar7]);\n          }\n          *ppCVar8 = pCVar2;\n          ppCVar8 = ppCVar8 + 1;\n          puVar5 = pIdx->aSortOrder + uVar7;\n          puVar3 = pKVar1->aSortOrder + uVar7;\n          uVar7 = uVar7 + 1;\n          *puVar3 = *puVar5;\n        } while (uVar9 != uVar7);\n      }\n      if (pParse->nErr == 0) {\n        return pKVar1;\n      }\n      if (-1 < (char)pIdx->field_0x38) {\n        pIdx->field_0x38 = pIdx->field_0x38 & 0x7f | 0x80;\n        pParse->rc = 0x201;\n      }\n      uVar4 = pKVar1->nRef - 1;\n      pKVar1->nRef = uVar4;\n      if (uVar4 == 0) {\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(pKVar1);\n        return (KeyInfo *)0x0;\n      }\n    }\n  }\n  return (KeyInfo *)0x0;\n}" type_identifier (pointer_declarator "* sqlite3KeyInfoOfIndex(Parse *pParse,Index *pIdx)" * (function_declarator "sqlite3KeyInfoOfIndex(Parse *pParse,Index *pIdx)" identifier (parameter_list "(Parse *pParse,Index *pIdx)" ( (parameter_declaration "Parse *pParse" type_identifier (pointer_declarator "*pParse" * identifier)) , (parameter_declaration "Index *pIdx" type_identifier (pointer_declarator "*pIdx" * identifier)) )))) (compound_statement "{\n  KeyInfo *pKVar1;\n  CollSeq *pCVar2;\n  u8 *puVar3;\n  u32 uVar4;\n  u8 *puVar5;\n  int iVar6;\n  uint uVar7;\n  CollSeq **ppCVar8;\n  uint uVar9;\n  char *pcVar10;\n  \n  uVar9 = (uint)pIdx->nColumn;\n  if (pParse->nErr == 0) {\n    if ((pIdx->field_0x37 & 0x10) == 0) {\n      iVar6 = 0;\n      uVar7 = uVar9;\n    }\n    else {\n      uVar7 = (uint)pIdx->nKeyCol;\n      iVar6 = uVar9 - uVar7;\n    }\n    pKVar1 = (KeyInfo *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(pParse->db,uVar7,iVar6);\n    if (pKVar1 != (KeyInfo *)0x0) {\n      if (uVar9 != 0) {\n        ppCVar8 = pKVar1->aColl;\n        pcVar10 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar7 = 0;\n        do {\n          pCVar2 = (CollSeq *)0x0;\n          if (pIdx->azColl[uVar7] != pcVar10) {\n            pCVar2 = sqlite3LocateCollSeq(pParse,pIdx->azColl[uVar7]);\n          }\n          *ppCVar8 = pCVar2;\n          ppCVar8 = ppCVar8 + 1;\n          puVar5 = pIdx->aSortOrder + uVar7;\n          puVar3 = pKVar1->aSortOrder + uVar7;\n          uVar7 = uVar7 + 1;\n          *puVar3 = *puVar5;\n        } while (uVar9 != uVar7);\n      }\n      if (pParse->nErr == 0) {\n        return pKVar1;\n      }\n      if (-1 < (char)pIdx->field_0x38) {\n        pIdx->field_0x38 = pIdx->field_0x38 & 0x7f | 0x80;\n        pParse->rc = 0x201;\n      }\n      uVar4 = pKVar1->nRef - 1;\n      pKVar1->nRef = uVar4;\n      if (uVar4 == 0) {\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(pKVar1);\n        return (KeyInfo *)0x0;\n      }\n    }\n  }\n  return (KeyInfo *)0x0;\n}" { (declaration "KeyInfo *pKVar1;" type_identifier (pointer_declarator "*pKVar1" * identifier) ;) (declaration "CollSeq *pCVar2;" type_identifier (pointer_declarator "*pCVar2" * identifier) ;) (declaration "u8 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "u32 uVar4;" type_identifier identifier ;) (declaration "u8 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "CollSeq **ppCVar8;" type_identifier (pointer_declarator "**ppCVar8" * (pointer_declarator "*ppCVar8" * identifier)) ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (expression_statement "uVar9 = (uint)pIdx->nColumn;" (assignment_expression "uVar9 = (uint)pIdx->nColumn" identifier = (cast_expression "(uint)pIdx->nColumn" ( (type_descriptor "uint" type_identifier) ) (field_expression "pIdx->nColumn" identifier -> field_identifier))) ;) (if_statement "if (pParse->nErr == 0) {\n    if ((pIdx->field_0x37 & 0x10) == 0) {\n      iVar6 = 0;\n      uVar7 = uVar9;\n    }\n    else {\n      uVar7 = (uint)pIdx->nKeyCol;\n      iVar6 = uVar9 - uVar7;\n    }\n    pKVar1 = (KeyInfo *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(pParse->db,uVar7,iVar6);\n    if (pKVar1 != (KeyInfo *)0x0) {\n      if (uVar9 != 0) {\n        ppCVar8 = pKVar1->aColl;\n        pcVar10 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar7 = 0;\n        do {\n          pCVar2 = (CollSeq *)0x0;\n          if (pIdx->azColl[uVar7] != pcVar10) {\n            pCVar2 = sqlite3LocateCollSeq(pParse,pIdx->azColl[uVar7]);\n          }\n          *ppCVar8 = pCVar2;\n          ppCVar8 = ppCVar8 + 1;\n          puVar5 = pIdx->aSortOrder + uVar7;\n          puVar3 = pKVar1->aSortOrder + uVar7;\n          uVar7 = uVar7 + 1;\n          *puVar3 = *puVar5;\n        } while (uVar9 != uVar7);\n      }\n      if (pParse->nErr == 0) {\n        return pKVar1;\n      }\n      if (-1 < (char)pIdx->field_0x38) {\n        pIdx->field_0x38 = pIdx->field_0x38 & 0x7f | 0x80;\n        pParse->rc = 0x201;\n      }\n      uVar4 = pKVar1->nRef - 1;\n      pKVar1->nRef = uVar4;\n      if (uVar4 == 0) {\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(pKVar1);\n        return (KeyInfo *)0x0;\n      }\n    }\n  }" if (parenthesized_expression "(pParse->nErr == 0)" ( (binary_expression "pParse->nErr == 0" (field_expression "pParse->nErr" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    if ((pIdx->field_0x37 & 0x10) == 0) {\n      iVar6 = 0;\n      uVar7 = uVar9;\n    }\n    else {\n      uVar7 = (uint)pIdx->nKeyCol;\n      iVar6 = uVar9 - uVar7;\n    }\n    pKVar1 = (KeyInfo *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(pParse->db,uVar7,iVar6);\n    if (pKVar1 != (KeyInfo *)0x0) {\n      if (uVar9 != 0) {\n        ppCVar8 = pKVar1->aColl;\n        pcVar10 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar7 = 0;\n        do {\n          pCVar2 = (CollSeq *)0x0;\n          if (pIdx->azColl[uVar7] != pcVar10) {\n            pCVar2 = sqlite3LocateCollSeq(pParse,pIdx->azColl[uVar7]);\n          }\n          *ppCVar8 = pCVar2;\n          ppCVar8 = ppCVar8 + 1;\n          puVar5 = pIdx->aSortOrder + uVar7;\n          puVar3 = pKVar1->aSortOrder + uVar7;\n          uVar7 = uVar7 + 1;\n          *puVar3 = *puVar5;\n        } while (uVar9 != uVar7);\n      }\n      if (pParse->nErr == 0) {\n        return pKVar1;\n      }\n      if (-1 < (char)pIdx->field_0x38) {\n        pIdx->field_0x38 = pIdx->field_0x38 & 0x7f | 0x80;\n        pParse->rc = 0x201;\n      }\n      uVar4 = pKVar1->nRef - 1;\n      pKVar1->nRef = uVar4;\n      if (uVar4 == 0) {\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(pKVar1);\n        return (KeyInfo *)0x0;\n      }\n    }\n  }" { (if_statement "if ((pIdx->field_0x37 & 0x10) == 0) {\n      iVar6 = 0;\n      uVar7 = uVar9;\n    }\n    else {\n      uVar7 = (uint)pIdx->nKeyCol;\n      iVar6 = uVar9 - uVar7;\n    }" if (parenthesized_expression "((pIdx->field_0x37 & 0x10) == 0)" ( (binary_expression "(pIdx->field_0x37 & 0x10) == 0" (parenthesized_expression "(pIdx->field_0x37 & 0x10)" ( (binary_expression "pIdx->field_0x37 & 0x10" (field_expression "pIdx->field_0x37" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      iVar6 = 0;\n      uVar7 = uVar9;\n    }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "uVar7 = uVar9;" (assignment_expression "uVar7 = uVar9" identifier = identifier) ;) }) (else_clause "else {\n      uVar7 = (uint)pIdx->nKeyCol;\n      iVar6 = uVar9 - uVar7;\n    }" else (compound_statement "{\n      uVar7 = (uint)pIdx->nKeyCol;\n      iVar6 = uVar9 - uVar7;\n    }" { (expression_statement "uVar7 = (uint)pIdx->nKeyCol;" (assignment_expression "uVar7 = (uint)pIdx->nKeyCol" identifier = (cast_expression "(uint)pIdx->nKeyCol" ( (type_descriptor "uint" type_identifier) ) (field_expression "pIdx->nKeyCol" identifier -> field_identifier))) ;) (expression_statement "iVar6 = uVar9 - uVar7;" (assignment_expression "iVar6 = uVar9 - uVar7" identifier = (binary_expression "uVar9 - uVar7" identifier - identifier)) ;) }))) (expression_statement "pKVar1 = (KeyInfo *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(pParse->db,uVar7,iVar6);" (assignment_expression "pKVar1 = (KeyInfo *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(pParse->db,uVar7,iVar6)" identifier = (cast_expression "(KeyInfo *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(pParse->db,uVar7,iVar6)" ( (type_descriptor "KeyInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(pParse->db,uVar7,iVar6)" (parenthesized_expression "(*(code *)(PTR_LAB_00190ba8 + 0x1dec))" ( (pointer_expression "*(code *)(PTR_LAB_00190ba8 + 0x1dec)" * (cast_expression "(code *)(PTR_LAB_00190ba8 + 0x1dec)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190ba8 + 0x1dec)" ( (binary_expression "PTR_LAB_00190ba8 + 0x1dec" identifier + number_literal) )))) )) (argument_list "(pParse->db,uVar7,iVar6)" ( (field_expression "pParse->db" identifier -> field_identifier) , identifier , identifier ))))) ;) (if_statement "if (pKVar1 != (KeyInfo *)0x0) {\n      if (uVar9 != 0) {\n        ppCVar8 = pKVar1->aColl;\n        pcVar10 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar7 = 0;\n        do {\n          pCVar2 = (CollSeq *)0x0;\n          if (pIdx->azColl[uVar7] != pcVar10) {\n            pCVar2 = sqlite3LocateCollSeq(pParse,pIdx->azColl[uVar7]);\n          }\n          *ppCVar8 = pCVar2;\n          ppCVar8 = ppCVar8 + 1;\n          puVar5 = pIdx->aSortOrder + uVar7;\n          puVar3 = pKVar1->aSortOrder + uVar7;\n          uVar7 = uVar7 + 1;\n          *puVar3 = *puVar5;\n        } while (uVar9 != uVar7);\n      }\n      if (pParse->nErr == 0) {\n        return pKVar1;\n      }\n      if (-1 < (char)pIdx->field_0x38) {\n        pIdx->field_0x38 = pIdx->field_0x38 & 0x7f | 0x80;\n        pParse->rc = 0x201;\n      }\n      uVar4 = pKVar1->nRef - 1;\n      pKVar1->nRef = uVar4;\n      if (uVar4 == 0) {\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(pKVar1);\n        return (KeyInfo *)0x0;\n      }\n    }" if (parenthesized_expression "(pKVar1 != (KeyInfo *)0x0)" ( (binary_expression "pKVar1 != (KeyInfo *)0x0" identifier != (cast_expression "(KeyInfo *)0x0" ( (type_descriptor "KeyInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (uVar9 != 0) {\n        ppCVar8 = pKVar1->aColl;\n        pcVar10 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar7 = 0;\n        do {\n          pCVar2 = (CollSeq *)0x0;\n          if (pIdx->azColl[uVar7] != pcVar10) {\n            pCVar2 = sqlite3LocateCollSeq(pParse,pIdx->azColl[uVar7]);\n          }\n          *ppCVar8 = pCVar2;\n          ppCVar8 = ppCVar8 + 1;\n          puVar5 = pIdx->aSortOrder + uVar7;\n          puVar3 = pKVar1->aSortOrder + uVar7;\n          uVar7 = uVar7 + 1;\n          *puVar3 = *puVar5;\n        } while (uVar9 != uVar7);\n      }\n      if (pParse->nErr == 0) {\n        return pKVar1;\n      }\n      if (-1 < (char)pIdx->field_0x38) {\n        pIdx->field_0x38 = pIdx->field_0x38 & 0x7f | 0x80;\n        pParse->rc = 0x201;\n      }\n      uVar4 = pKVar1->nRef - 1;\n      pKVar1->nRef = uVar4;\n      if (uVar4 == 0) {\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(pKVar1);\n        return (KeyInfo *)0x0;\n      }\n    }" { (if_statement "if (uVar9 != 0) {\n        ppCVar8 = pKVar1->aColl;\n        pcVar10 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar7 = 0;\n        do {\n          pCVar2 = (CollSeq *)0x0;\n          if (pIdx->azColl[uVar7] != pcVar10) {\n            pCVar2 = sqlite3LocateCollSeq(pParse,pIdx->azColl[uVar7]);\n          }\n          *ppCVar8 = pCVar2;\n          ppCVar8 = ppCVar8 + 1;\n          puVar5 = pIdx->aSortOrder + uVar7;\n          puVar3 = pKVar1->aSortOrder + uVar7;\n          uVar7 = uVar7 + 1;\n          *puVar3 = *puVar5;\n        } while (uVar9 != uVar7);\n      }" if (parenthesized_expression "(uVar9 != 0)" ( (binary_expression "uVar9 != 0" identifier != number_literal) )) (compound_statement "{\n        ppCVar8 = pKVar1->aColl;\n        pcVar10 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar7 = 0;\n        do {\n          pCVar2 = (CollSeq *)0x0;\n          if (pIdx->azColl[uVar7] != pcVar10) {\n            pCVar2 = sqlite3LocateCollSeq(pParse,pIdx->azColl[uVar7]);\n          }\n          *ppCVar8 = pCVar2;\n          ppCVar8 = ppCVar8 + 1;\n          puVar5 = pIdx->aSortOrder + uVar7;\n          puVar3 = pKVar1->aSortOrder + uVar7;\n          uVar7 = uVar7 + 1;\n          *puVar3 = *puVar5;\n        } while (uVar9 != uVar7);\n      }" { (expression_statement "ppCVar8 = pKVar1->aColl;" (assignment_expression "ppCVar8 = pKVar1->aColl" identifier = (field_expression "pKVar1->aColl" identifier -> field_identifier)) ;) (expression_statement "pcVar10 = PTR_DAT_00190b94 + -0x3dd0;" (assignment_expression "pcVar10 = PTR_DAT_00190b94 + -0x3dd0" identifier = (binary_expression "PTR_DAT_00190b94 + -0x3dd0" identifier + number_literal)) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n          pCVar2 = (CollSeq *)0x0;\n          if (pIdx->azColl[uVar7] != pcVar10) {\n            pCVar2 = sqlite3LocateCollSeq(pParse,pIdx->azColl[uVar7]);\n          }\n          *ppCVar8 = pCVar2;\n          ppCVar8 = ppCVar8 + 1;\n          puVar5 = pIdx->aSortOrder + uVar7;\n          puVar3 = pKVar1->aSortOrder + uVar7;\n          uVar7 = uVar7 + 1;\n          *puVar3 = *puVar5;\n        } while (uVar9 != uVar7);" do (compound_statement "{\n          pCVar2 = (CollSeq *)0x0;\n          if (pIdx->azColl[uVar7] != pcVar10) {\n            pCVar2 = sqlite3LocateCollSeq(pParse,pIdx->azColl[uVar7]);\n          }\n          *ppCVar8 = pCVar2;\n          ppCVar8 = ppCVar8 + 1;\n          puVar5 = pIdx->aSortOrder + uVar7;\n          puVar3 = pKVar1->aSortOrder + uVar7;\n          uVar7 = uVar7 + 1;\n          *puVar3 = *puVar5;\n        }" { (expression_statement "pCVar2 = (CollSeq *)0x0;" (assignment_expression "pCVar2 = (CollSeq *)0x0" identifier = (cast_expression "(CollSeq *)0x0" ( (type_descriptor "CollSeq *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (pIdx->azColl[uVar7] != pcVar10) {\n            pCVar2 = sqlite3LocateCollSeq(pParse,pIdx->azColl[uVar7]);\n          }" if (parenthesized_expression "(pIdx->azColl[uVar7] != pcVar10)" ( (binary_expression "pIdx->azColl[uVar7] != pcVar10" (subscript_expression "pIdx->azColl[uVar7]" (field_expression "pIdx->azColl" identifier -> field_identifier) [ identifier ]) != identifier) )) (compound_statement "{\n            pCVar2 = sqlite3LocateCollSeq(pParse,pIdx->azColl[uVar7]);\n          }" { (expression_statement "pCVar2 = sqlite3LocateCollSeq(pParse,pIdx->azColl[uVar7]);" (assignment_expression "pCVar2 = sqlite3LocateCollSeq(pParse,pIdx->azColl[uVar7])" identifier = (call_expression "sqlite3LocateCollSeq(pParse,pIdx->azColl[uVar7])" identifier (argument_list "(pParse,pIdx->azColl[uVar7])" ( identifier , (subscript_expression "pIdx->azColl[uVar7]" (field_expression "pIdx->azColl" identifier -> field_identifier) [ identifier ]) )))) ;) })) (expression_statement "*ppCVar8 = pCVar2;" (assignment_expression "*ppCVar8 = pCVar2" (pointer_expression "*ppCVar8" * identifier) = identifier) ;) (expression_statement "ppCVar8 = ppCVar8 + 1;" (assignment_expression "ppCVar8 = ppCVar8 + 1" identifier = (binary_expression "ppCVar8 + 1" identifier + number_literal)) ;) (expression_statement "puVar5 = pIdx->aSortOrder + uVar7;" (assignment_expression "puVar5 = pIdx->aSortOrder + uVar7" identifier = (binary_expression "pIdx->aSortOrder + uVar7" (field_expression "pIdx->aSortOrder" identifier -> field_identifier) + identifier)) ;) (expression_statement "puVar3 = pKVar1->aSortOrder + uVar7;" (assignment_expression "puVar3 = pKVar1->aSortOrder + uVar7" identifier = (binary_expression "pKVar1->aSortOrder + uVar7" (field_expression "pKVar1->aSortOrder" identifier -> field_identifier) + identifier)) ;) (expression_statement "uVar7 = uVar7 + 1;" (assignment_expression "uVar7 = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) (expression_statement "*puVar3 = *puVar5;" (assignment_expression "*puVar3 = *puVar5" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*puVar5" * identifier)) ;) }) while (parenthesized_expression "(uVar9 != uVar7)" ( (binary_expression "uVar9 != uVar7" identifier != identifier) )) ;) })) (if_statement "if (pParse->nErr == 0) {\n        return pKVar1;\n      }" if (parenthesized_expression "(pParse->nErr == 0)" ( (binary_expression "pParse->nErr == 0" (field_expression "pParse->nErr" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n        return pKVar1;\n      }" { (return_statement "return pKVar1;" return identifier ;) })) (if_statement "if (-1 < (char)pIdx->field_0x38) {\n        pIdx->field_0x38 = pIdx->field_0x38 & 0x7f | 0x80;\n        pParse->rc = 0x201;\n      }" if (parenthesized_expression "(-1 < (char)pIdx->field_0x38)" ( (binary_expression "-1 < (char)pIdx->field_0x38" number_literal < (cast_expression "(char)pIdx->field_0x38" ( (type_descriptor "char" primitive_type) ) (field_expression "pIdx->field_0x38" identifier -> field_identifier))) )) (compound_statement "{\n        pIdx->field_0x38 = pIdx->field_0x38 & 0x7f | 0x80;\n        pParse->rc = 0x201;\n      }" { (expression_statement "pIdx->field_0x38 = pIdx->field_0x38 & 0x7f | 0x80;" (assignment_expression "pIdx->field_0x38 = pIdx->field_0x38 & 0x7f | 0x80" (field_expression "pIdx->field_0x38" identifier -> field_identifier) = (binary_expression "pIdx->field_0x38 & 0x7f | 0x80" (binary_expression "pIdx->field_0x38 & 0x7f" (field_expression "pIdx->field_0x38" identifier -> field_identifier) & number_literal) | number_literal)) ;) (expression_statement "pParse->rc = 0x201;" (assignment_expression "pParse->rc = 0x201" (field_expression "pParse->rc" identifier -> field_identifier) = number_literal) ;) })) (expression_statement "uVar4 = pKVar1->nRef - 1;" (assignment_expression "uVar4 = pKVar1->nRef - 1" identifier = (binary_expression "pKVar1->nRef - 1" (field_expression "pKVar1->nRef" identifier -> field_identifier) - number_literal)) ;) (expression_statement "pKVar1->nRef = uVar4;" (assignment_expression "pKVar1->nRef = uVar4" (field_expression "pKVar1->nRef" identifier -> field_identifier) = identifier) ;) (if_statement "if (uVar4 == 0) {\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(pKVar1);\n        return (KeyInfo *)0x0;\n      }" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(pKVar1);\n        return (KeyInfo *)0x0;\n      }" { (expression_statement "(*(code *)(PTR_LAB_00190ba4 + -0x316c))(pKVar1);" (call_expression "(*(code *)(PTR_LAB_00190ba4 + -0x316c))(pKVar1)" (parenthesized_expression "(*(code *)(PTR_LAB_00190ba4 + -0x316c))" ( (pointer_expression "*(code *)(PTR_LAB_00190ba4 + -0x316c)" * (cast_expression "(code *)(PTR_LAB_00190ba4 + -0x316c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190ba4 + -0x316c)" ( (binary_expression "PTR_LAB_00190ba4 + -0x316c" identifier + number_literal) )))) )) (argument_list "(pKVar1)" ( identifier ))) ;) (return_statement "return (KeyInfo *)0x0;" return (cast_expression "(KeyInfo *)0x0" ( (type_descriptor "KeyInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) })) })) (return_statement "return (KeyInfo *)0x0;" return (cast_expression "(KeyInfo *)0x0" ( (type_descriptor "KeyInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "int * FUN_00099b98(undefined4 *param_1,int param_2)\n\n{\n  int *piVar1;\n  undefined1 *puVar2;\n  undefined *puVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  uint uVar6;\n  int *piVar7;\n  uint uVar8;\n  undefined *puVar9;\n  \n  uVar8 = (uint)*(ushort *)(param_2 + 0x34);\n  if (param_1[9] == 0) {\n    if ((*(byte *)(param_2 + 0x37) & 0x10) == 0) {\n      iVar5 = 0;\n      uVar6 = uVar8;\n    }\n    else {\n      uVar6 = (uint)*(ushort *)(param_2 + 0x32);\n      iVar5 = uVar8 - uVar6;\n    }\n    piVar1 = (int *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(*param_1,uVar6,iVar5);\n    if (piVar1 != (int *)0x0) {\n      if (uVar8 != 0) {\n        piVar7 = piVar1 + 5;\n        puVar9 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar6 = 0;\n        do {\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        } while (uVar8 != uVar6);\n      }\n      if (param_1[9] == 0) {\n        return piVar1;\n      }\n      if (-1 < *(char *)(param_2 + 0x38)) {\n        *(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80;\n        param_1[3] = 0x201;\n      }\n      iVar5 = *piVar1;\n      *piVar1 = iVar5 + -1;\n      if (iVar5 + -1 == 0) {\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1);\n        return (int *)0x0;\n      }\n    }\n  }\n  return (int *)0x0;\n}\n\n" (function_definition "int * FUN_00099b98(undefined4 *param_1,int param_2)\n\n{\n  int *piVar1;\n  undefined1 *puVar2;\n  undefined *puVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  uint uVar6;\n  int *piVar7;\n  uint uVar8;\n  undefined *puVar9;\n  \n  uVar8 = (uint)*(ushort *)(param_2 + 0x34);\n  if (param_1[9] == 0) {\n    if ((*(byte *)(param_2 + 0x37) & 0x10) == 0) {\n      iVar5 = 0;\n      uVar6 = uVar8;\n    }\n    else {\n      uVar6 = (uint)*(ushort *)(param_2 + 0x32);\n      iVar5 = uVar8 - uVar6;\n    }\n    piVar1 = (int *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(*param_1,uVar6,iVar5);\n    if (piVar1 != (int *)0x0) {\n      if (uVar8 != 0) {\n        piVar7 = piVar1 + 5;\n        puVar9 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar6 = 0;\n        do {\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        } while (uVar8 != uVar6);\n      }\n      if (param_1[9] == 0) {\n        return piVar1;\n      }\n      if (-1 < *(char *)(param_2 + 0x38)) {\n        *(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80;\n        param_1[3] = 0x201;\n      }\n      iVar5 = *piVar1;\n      *piVar1 = iVar5 + -1;\n      if (iVar5 + -1 == 0) {\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1);\n        return (int *)0x0;\n      }\n    }\n  }\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* FUN_00099b98(undefined4 *param_1,int param_2)" * (function_declarator "FUN_00099b98(undefined4 *param_1,int param_2)" identifier (parameter_list "(undefined4 *param_1,int param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  int *piVar1;\n  undefined1 *puVar2;\n  undefined *puVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  uint uVar6;\n  int *piVar7;\n  uint uVar8;\n  undefined *puVar9;\n  \n  uVar8 = (uint)*(ushort *)(param_2 + 0x34);\n  if (param_1[9] == 0) {\n    if ((*(byte *)(param_2 + 0x37) & 0x10) == 0) {\n      iVar5 = 0;\n      uVar6 = uVar8;\n    }\n    else {\n      uVar6 = (uint)*(ushort *)(param_2 + 0x32);\n      iVar5 = uVar8 - uVar6;\n    }\n    piVar1 = (int *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(*param_1,uVar6,iVar5);\n    if (piVar1 != (int *)0x0) {\n      if (uVar8 != 0) {\n        piVar7 = piVar1 + 5;\n        puVar9 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar6 = 0;\n        do {\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        } while (uVar8 != uVar6);\n      }\n      if (param_1[9] == 0) {\n        return piVar1;\n      }\n      if (-1 < *(char *)(param_2 + 0x38)) {\n        *(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80;\n        param_1[3] = 0x201;\n      }\n      iVar5 = *piVar1;\n      *piVar1 = iVar5 + -1;\n      if (iVar5 + -1 == 0) {\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1);\n        return (int *)0x0;\n      }\n    }\n  }\n  return (int *)0x0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (expression_statement "uVar8 = (uint)*(ushort *)(param_2 + 0x34);" (assignment_expression "uVar8 = (uint)*(ushort *)(param_2 + 0x34)" identifier = (binary_expression "(uint)*(ushort *)(param_2 + 0x34)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(param_2 + 0x34)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x34)" ( (binary_expression "param_2 + 0x34" identifier + number_literal) ))))) ;) (if_statement "if (param_1[9] == 0) {\n    if ((*(byte *)(param_2 + 0x37) & 0x10) == 0) {\n      iVar5 = 0;\n      uVar6 = uVar8;\n    }\n    else {\n      uVar6 = (uint)*(ushort *)(param_2 + 0x32);\n      iVar5 = uVar8 - uVar6;\n    }\n    piVar1 = (int *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(*param_1,uVar6,iVar5);\n    if (piVar1 != (int *)0x0) {\n      if (uVar8 != 0) {\n        piVar7 = piVar1 + 5;\n        puVar9 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar6 = 0;\n        do {\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        } while (uVar8 != uVar6);\n      }\n      if (param_1[9] == 0) {\n        return piVar1;\n      }\n      if (-1 < *(char *)(param_2 + 0x38)) {\n        *(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80;\n        param_1[3] = 0x201;\n      }\n      iVar5 = *piVar1;\n      *piVar1 = iVar5 + -1;\n      if (iVar5 + -1 == 0) {\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1);\n        return (int *)0x0;\n      }\n    }\n  }" if (parenthesized_expression "(param_1[9] == 0)" ( (binary_expression "param_1[9] == 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    if ((*(byte *)(param_2 + 0x37) & 0x10) == 0) {\n      iVar5 = 0;\n      uVar6 = uVar8;\n    }\n    else {\n      uVar6 = (uint)*(ushort *)(param_2 + 0x32);\n      iVar5 = uVar8 - uVar6;\n    }\n    piVar1 = (int *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(*param_1,uVar6,iVar5);\n    if (piVar1 != (int *)0x0) {\n      if (uVar8 != 0) {\n        piVar7 = piVar1 + 5;\n        puVar9 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar6 = 0;\n        do {\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        } while (uVar8 != uVar6);\n      }\n      if (param_1[9] == 0) {\n        return piVar1;\n      }\n      if (-1 < *(char *)(param_2 + 0x38)) {\n        *(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80;\n        param_1[3] = 0x201;\n      }\n      iVar5 = *piVar1;\n      *piVar1 = iVar5 + -1;\n      if (iVar5 + -1 == 0) {\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1);\n        return (int *)0x0;\n      }\n    }\n  }" { (if_statement "if ((*(byte *)(param_2 + 0x37) & 0x10) == 0) {\n      iVar5 = 0;\n      uVar6 = uVar8;\n    }\n    else {\n      uVar6 = (uint)*(ushort *)(param_2 + 0x32);\n      iVar5 = uVar8 - uVar6;\n    }" if (parenthesized_expression "((*(byte *)(param_2 + 0x37) & 0x10) == 0)" ( (binary_expression "(*(byte *)(param_2 + 0x37) & 0x10) == 0" (parenthesized_expression "(*(byte *)(param_2 + 0x37) & 0x10)" ( (binary_expression "*(byte *)(param_2 + 0x37) & 0x10" (pointer_expression "*(byte *)(param_2 + 0x37)" * (cast_expression "(byte *)(param_2 + 0x37)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x37)" ( (binary_expression "param_2 + 0x37" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      iVar5 = 0;\n      uVar6 = uVar8;\n    }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "uVar6 = uVar8;" (assignment_expression "uVar6 = uVar8" identifier = identifier) ;) }) (else_clause "else {\n      uVar6 = (uint)*(ushort *)(param_2 + 0x32);\n      iVar5 = uVar8 - uVar6;\n    }" else (compound_statement "{\n      uVar6 = (uint)*(ushort *)(param_2 + 0x32);\n      iVar5 = uVar8 - uVar6;\n    }" { (expression_statement "uVar6 = (uint)*(ushort *)(param_2 + 0x32);" (assignment_expression "uVar6 = (uint)*(ushort *)(param_2 + 0x32)" identifier = (binary_expression "(uint)*(ushort *)(param_2 + 0x32)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(param_2 + 0x32)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x32)" ( (binary_expression "param_2 + 0x32" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = uVar8 - uVar6;" (assignment_expression "iVar5 = uVar8 - uVar6" identifier = (binary_expression "uVar8 - uVar6" identifier - identifier)) ;) }))) (expression_statement "piVar1 = (int *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(*param_1,uVar6,iVar5);" (assignment_expression "piVar1 = (int *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(*param_1,uVar6,iVar5)" identifier = (cast_expression "(int *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(*param_1,uVar6,iVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(*param_1,uVar6,iVar5)" (parenthesized_expression "(*(code *)(PTR_LAB_00190ba8 + 0x1dec))" ( (pointer_expression "*(code *)(PTR_LAB_00190ba8 + 0x1dec)" * (cast_expression "(code *)(PTR_LAB_00190ba8 + 0x1dec)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190ba8 + 0x1dec)" ( (binary_expression "PTR_LAB_00190ba8 + 0x1dec" identifier + number_literal) )))) )) (argument_list "(*param_1,uVar6,iVar5)" ( (pointer_expression "*param_1" * identifier) , identifier , identifier ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n      if (uVar8 != 0) {\n        piVar7 = piVar1 + 5;\n        puVar9 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar6 = 0;\n        do {\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        } while (uVar8 != uVar6);\n      }\n      if (param_1[9] == 0) {\n        return piVar1;\n      }\n      if (-1 < *(char *)(param_2 + 0x38)) {\n        *(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80;\n        param_1[3] = 0x201;\n      }\n      iVar5 = *piVar1;\n      *piVar1 = iVar5 + -1;\n      if (iVar5 + -1 == 0) {\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1);\n        return (int *)0x0;\n      }\n    }" if (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (uVar8 != 0) {\n        piVar7 = piVar1 + 5;\n        puVar9 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar6 = 0;\n        do {\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        } while (uVar8 != uVar6);\n      }\n      if (param_1[9] == 0) {\n        return piVar1;\n      }\n      if (-1 < *(char *)(param_2 + 0x38)) {\n        *(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80;\n        param_1[3] = 0x201;\n      }\n      iVar5 = *piVar1;\n      *piVar1 = iVar5 + -1;\n      if (iVar5 + -1 == 0) {\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1);\n        return (int *)0x0;\n      }\n    }" { (if_statement "if (uVar8 != 0) {\n        piVar7 = piVar1 + 5;\n        puVar9 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar6 = 0;\n        do {\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        } while (uVar8 != uVar6);\n      }" if (parenthesized_expression "(uVar8 != 0)" ( (binary_expression "uVar8 != 0" identifier != number_literal) )) (compound_statement "{\n        piVar7 = piVar1 + 5;\n        puVar9 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar6 = 0;\n        do {\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        } while (uVar8 != uVar6);\n      }" { (expression_statement "piVar7 = piVar1 + 5;" (assignment_expression "piVar7 = piVar1 + 5" identifier = (binary_expression "piVar1 + 5" identifier + number_literal)) ;) (expression_statement "puVar9 = PTR_DAT_00190b94 + -0x3dd0;" (assignment_expression "puVar9 = PTR_DAT_00190b94 + -0x3dd0" identifier = (binary_expression "PTR_DAT_00190b94 + -0x3dd0" identifier + number_literal)) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        } while (uVar8 != uVar6);" do (compound_statement "{\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);" (assignment_expression "puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4)" identifier = (pointer_expression "*(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4)" * (cast_expression "(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_2 + 0x20) + uVar6 * 4)" ( (binary_expression "*(int *)(param_2 + 0x20) + uVar6 * 4" (pointer_expression "*(int *)(param_2 + 0x20)" * (cast_expression "(int *)(param_2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) + (binary_expression "uVar6 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }" if (parenthesized_expression "(puVar3 != puVar9)" ( (binary_expression "puVar3 != puVar9" identifier != identifier) )) (compound_statement "{\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }" { (expression_statement "iVar5 = FUN_00099ab4(param_1,puVar3);" (assignment_expression "iVar5 = FUN_00099ab4(param_1,puVar3)" identifier = (call_expression "FUN_00099ab4(param_1,puVar3)" identifier (argument_list "(param_1,puVar3)" ( identifier , identifier )))) ;) })) (expression_statement "*piVar7 = iVar5;" (assignment_expression "*piVar7 = iVar5" (pointer_expression "*piVar7" * identifier) = identifier) ;) (expression_statement "piVar7 = piVar7 + 1;" (assignment_expression "piVar7 = piVar7 + 1" identifier = (binary_expression "piVar7 + 1" identifier + number_literal)) ;) (expression_statement "puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);" (assignment_expression "puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6)" identifier = (cast_expression "(undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0x1c) + uVar6)" ( (binary_expression "*(int *)(param_2 + 0x1c) + uVar6" (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) + identifier) )))) ;) (expression_statement "puVar2 = (undefined1 *)(piVar1[4] + uVar6);" (assignment_expression "puVar2 = (undefined1 *)(piVar1[4] + uVar6)" identifier = (cast_expression "(undefined1 *)(piVar1[4] + uVar6)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1[4] + uVar6)" ( (binary_expression "piVar1[4] + uVar6" (subscript_expression "piVar1[4]" identifier [ number_literal ]) + identifier) )))) ;) (expression_statement "uVar6 = uVar6 + 1;" (assignment_expression "uVar6 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (expression_statement "*puVar2 = *puVar4;" (assignment_expression "*puVar2 = *puVar4" (pointer_expression "*puVar2" * identifier) = (pointer_expression "*puVar4" * identifier)) ;) }) while (parenthesized_expression "(uVar8 != uVar6)" ( (binary_expression "uVar8 != uVar6" identifier != identifier) )) ;) })) (if_statement "if (param_1[9] == 0) {\n        return piVar1;\n      }" if (parenthesized_expression "(param_1[9] == 0)" ( (binary_expression "param_1[9] == 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        return piVar1;\n      }" { (return_statement "return piVar1;" return identifier ;) })) (if_statement "if (-1 < *(char *)(param_2 + 0x38)) {\n        *(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80;\n        param_1[3] = 0x201;\n      }" if (parenthesized_expression "(-1 < *(char *)(param_2 + 0x38))" ( (binary_expression "-1 < *(char *)(param_2 + 0x38)" number_literal < (pointer_expression "*(char *)(param_2 + 0x38)" * (cast_expression "(char *)(param_2 + 0x38)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x38)" ( (binary_expression "param_2 + 0x38" identifier + number_literal) ))))) )) (compound_statement "{\n        *(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80;\n        param_1[3] = 0x201;\n      }" { (expression_statement "*(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80;" (assignment_expression "*(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80" (pointer_expression "*(byte *)(param_2 + 0x38)" * (cast_expression "(byte *)(param_2 + 0x38)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x38)" ( (binary_expression "param_2 + 0x38" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_2 + 0x38) & 0x7f | 0x80" (binary_expression "*(byte *)(param_2 + 0x38) & 0x7f" (pointer_expression "*(byte *)(param_2 + 0x38)" * (cast_expression "(byte *)(param_2 + 0x38)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x38)" ( (binary_expression "param_2 + 0x38" identifier + number_literal) )))) & number_literal) | number_literal)) ;) (expression_statement "param_1[3] = 0x201;" (assignment_expression "param_1[3] = 0x201" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) })) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = iVar5 + -1;" (assignment_expression "*piVar1 = iVar5 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (if_statement "if (iVar5 + -1 == 0) {\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1);\n        return (int *)0x0;\n      }" if (parenthesized_expression "(iVar5 + -1 == 0)" ( (binary_expression "iVar5 + -1 == 0" (binary_expression "iVar5 + -1" identifier + number_literal) == number_literal) )) (compound_statement "{\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1);\n        return (int *)0x0;\n      }" { (expression_statement "(*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1);" (call_expression "(*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1)" (parenthesized_expression "(*(code *)(PTR_LAB_00190ba4 + -0x316c))" ( (pointer_expression "*(code *)(PTR_LAB_00190ba4 + -0x316c)" * (cast_expression "(code *)(PTR_LAB_00190ba4 + -0x316c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190ba4 + -0x316c)" ( (binary_expression "PTR_LAB_00190ba4 + -0x316c" identifier + number_literal) )))) )) (argument_list "(piVar1)" ( identifier ))) ;) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) })) })) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( (pointer_expression * IDENT) , IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (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 != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (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) )))) + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) | LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( IDENT ))) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) })) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "int * FUN_00099b98(undefined4 *param_1,int param_2)\n\n{\n  int *piVar1;\n  undefined1 *puVar2;\n  undefined *puVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  uint uVar6;\n  int *piVar7;\n  uint uVar8;\n  undefined *puVar9;\n  \n  uVar8 = (uint)*(ushort *)(param_2 + 0x34);\n  if (param_1[9] == 0) {\n    if ((*(byte *)(param_2 + 0x37) & 0x10) == 0) {\n      iVar5 = 0;\n      uVar6 = uVar8;\n    }\n    else {\n      uVar6 = (uint)*(ushort *)(param_2 + 0x32);\n      iVar5 = uVar8 - uVar6;\n    }\n    piVar1 = (int *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(*param_1,uVar6,iVar5);\n    if (piVar1 != (int *)0x0) {\n      if (uVar8 != 0) {\n        piVar7 = piVar1 + 5;\n        puVar9 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar6 = 0;\n        do {\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        } while (uVar8 != uVar6);\n      }\n      if (param_1[9] == 0) {\n        return piVar1;\n      }\n      if (-1 < *(char *)(param_2 + 0x38)) {\n        *(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80;\n        param_1[3] = 0x201;\n      }\n      iVar5 = *piVar1;\n      *piVar1 = iVar5 + -1;\n      if (iVar5 + -1 == 0) {\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1);\n        return (int *)0x0;\n      }\n    }\n  }\n  return (int *)0x0;\n}" (primitive_type "int") (pointer_declarator "* FUN_00099b98(undefined4 *param_1,int param_2)" (* "*") (function_declarator "FUN_00099b98(undefined4 *param_1,int param_2)" (identifier "FUN_00099b98") (parameter_list "(undefined4 *param_1,int param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")")))) (compound_statement "{\n  int *piVar1;\n  undefined1 *puVar2;\n  undefined *puVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  uint uVar6;\n  int *piVar7;\n  uint uVar8;\n  undefined *puVar9;\n  \n  uVar8 = (uint)*(ushort *)(param_2 + 0x34);\n  if (param_1[9] == 0) {\n    if ((*(byte *)(param_2 + 0x37) & 0x10) == 0) {\n      iVar5 = 0;\n      uVar6 = uVar8;\n    }\n    else {\n      uVar6 = (uint)*(ushort *)(param_2 + 0x32);\n      iVar5 = uVar8 - uVar6;\n    }\n    piVar1 = (int *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(*param_1,uVar6,iVar5);\n    if (piVar1 != (int *)0x0) {\n      if (uVar8 != 0) {\n        piVar7 = piVar1 + 5;\n        puVar9 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar6 = 0;\n        do {\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        } while (uVar8 != uVar6);\n      }\n      if (param_1[9] == 0) {\n        return piVar1;\n      }\n      if (-1 < *(char *)(param_2 + 0x38)) {\n        *(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80;\n        param_1[3] = 0x201;\n      }\n      iVar5 = *piVar1;\n      *piVar1 = iVar5 + -1;\n      if (iVar5 + -1 == 0) {\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1);\n        return (int *)0x0;\n      }\n    }\n  }\n  return (int *)0x0;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "undefined1 *puVar2;" (type_identifier "undefined1") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined1 *puVar4;" (type_identifier "undefined1") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "int *piVar7;" (primitive_type "int") (pointer_declarator "*piVar7" (* "*") (identifier "piVar7")) (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "undefined *puVar9;" (type_identifier "undefined") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (expression_statement "uVar8 = (uint)*(ushort *)(param_2 + 0x34);" (assignment_expression "uVar8 = (uint)*(ushort *)(param_2 + 0x34)" (identifier "uVar8") (= "=") (binary_expression "(uint)*(ushort *)(param_2 + 0x34)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(ushort *)(param_2 + 0x34)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x34)" (( "(") (binary_expression "param_2 + 0x34" (identifier "param_2") (+ "+") (number_literal "0x34")) () ")"))))) (; ";")) (if_statement "if (param_1[9] == 0) {\n    if ((*(byte *)(param_2 + 0x37) & 0x10) == 0) {\n      iVar5 = 0;\n      uVar6 = uVar8;\n    }\n    else {\n      uVar6 = (uint)*(ushort *)(param_2 + 0x32);\n      iVar5 = uVar8 - uVar6;\n    }\n    piVar1 = (int *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(*param_1,uVar6,iVar5);\n    if (piVar1 != (int *)0x0) {\n      if (uVar8 != 0) {\n        piVar7 = piVar1 + 5;\n        puVar9 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar6 = 0;\n        do {\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        } while (uVar8 != uVar6);\n      }\n      if (param_1[9] == 0) {\n        return piVar1;\n      }\n      if (-1 < *(char *)(param_2 + 0x38)) {\n        *(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80;\n        param_1[3] = 0x201;\n      }\n      iVar5 = *piVar1;\n      *piVar1 = iVar5 + -1;\n      if (iVar5 + -1 == 0) {\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1);\n        return (int *)0x0;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(param_1[9] == 0)" (( "(") (binary_expression "param_1[9] == 0" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if ((*(byte *)(param_2 + 0x37) & 0x10) == 0) {\n      iVar5 = 0;\n      uVar6 = uVar8;\n    }\n    else {\n      uVar6 = (uint)*(ushort *)(param_2 + 0x32);\n      iVar5 = uVar8 - uVar6;\n    }\n    piVar1 = (int *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(*param_1,uVar6,iVar5);\n    if (piVar1 != (int *)0x0) {\n      if (uVar8 != 0) {\n        piVar7 = piVar1 + 5;\n        puVar9 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar6 = 0;\n        do {\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        } while (uVar8 != uVar6);\n      }\n      if (param_1[9] == 0) {\n        return piVar1;\n      }\n      if (-1 < *(char *)(param_2 + 0x38)) {\n        *(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80;\n        param_1[3] = 0x201;\n      }\n      iVar5 = *piVar1;\n      *piVar1 = iVar5 + -1;\n      if (iVar5 + -1 == 0) {\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1);\n        return (int *)0x0;\n      }\n    }\n  }" ({ "{") (if_statement "if ((*(byte *)(param_2 + 0x37) & 0x10) == 0) {\n      iVar5 = 0;\n      uVar6 = uVar8;\n    }\n    else {\n      uVar6 = (uint)*(ushort *)(param_2 + 0x32);\n      iVar5 = uVar8 - uVar6;\n    }" (if "if") (parenthesized_expression "((*(byte *)(param_2 + 0x37) & 0x10) == 0)" (( "(") (binary_expression "(*(byte *)(param_2 + 0x37) & 0x10) == 0" (parenthesized_expression "(*(byte *)(param_2 + 0x37) & 0x10)" (( "(") (binary_expression "*(byte *)(param_2 + 0x37) & 0x10" (pointer_expression "*(byte *)(param_2 + 0x37)" (* "*") (cast_expression "(byte *)(param_2 + 0x37)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x37)" (( "(") (binary_expression "param_2 + 0x37" (identifier "param_2") (+ "+") (number_literal "0x37")) () ")")))) (& "&") (number_literal "0x10")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar5 = 0;\n      uVar6 = uVar8;\n    }" ({ "{") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar6 = uVar8;" (assignment_expression "uVar6 = uVar8" (identifier "uVar6") (= "=") (identifier "uVar8")) (; ";")) (} "}")) (else_clause "else {\n      uVar6 = (uint)*(ushort *)(param_2 + 0x32);\n      iVar5 = uVar8 - uVar6;\n    }" (else "else") (compound_statement "{\n      uVar6 = (uint)*(ushort *)(param_2 + 0x32);\n      iVar5 = uVar8 - uVar6;\n    }" ({ "{") (expression_statement "uVar6 = (uint)*(ushort *)(param_2 + 0x32);" (assignment_expression "uVar6 = (uint)*(ushort *)(param_2 + 0x32)" (identifier "uVar6") (= "=") (binary_expression "(uint)*(ushort *)(param_2 + 0x32)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(ushort *)(param_2 + 0x32)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x32)" (( "(") (binary_expression "param_2 + 0x32" (identifier "param_2") (+ "+") (number_literal "0x32")) () ")"))))) (; ";")) (expression_statement "iVar5 = uVar8 - uVar6;" (assignment_expression "iVar5 = uVar8 - uVar6" (identifier "iVar5") (= "=") (binary_expression "uVar8 - uVar6" (identifier "uVar8") (- "-") (identifier "uVar6"))) (; ";")) (} "}")))) (expression_statement "piVar1 = (int *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(*param_1,uVar6,iVar5);" (assignment_expression "piVar1 = (int *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(*param_1,uVar6,iVar5)" (identifier "piVar1") (= "=") (cast_expression "(int *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(*param_1,uVar6,iVar5)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(*param_1,uVar6,iVar5)" (parenthesized_expression "(*(code *)(PTR_LAB_00190ba8 + 0x1dec))" (( "(") (pointer_expression "*(code *)(PTR_LAB_00190ba8 + 0x1dec)" (* "*") (cast_expression "(code *)(PTR_LAB_00190ba8 + 0x1dec)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_00190ba8 + 0x1dec)" (( "(") (binary_expression "PTR_LAB_00190ba8 + 0x1dec" (identifier "PTR_LAB_00190ba8") (+ "+") (number_literal "0x1dec")) () ")")))) () ")")) (argument_list "(*param_1,uVar6,iVar5)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (identifier "uVar6") (, ",") (identifier "iVar5") () ")"))))) (; ";")) (if_statement "if (piVar1 != (int *)0x0) {\n      if (uVar8 != 0) {\n        piVar7 = piVar1 + 5;\n        puVar9 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar6 = 0;\n        do {\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        } while (uVar8 != uVar6);\n      }\n      if (param_1[9] == 0) {\n        return piVar1;\n      }\n      if (-1 < *(char *)(param_2 + 0x38)) {\n        *(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80;\n        param_1[3] = 0x201;\n      }\n      iVar5 = *piVar1;\n      *piVar1 = iVar5 + -1;\n      if (iVar5 + -1 == 0) {\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1);\n        return (int *)0x0;\n      }\n    }" (if "if") (parenthesized_expression "(piVar1 != (int *)0x0)" (( "(") (binary_expression "piVar1 != (int *)0x0" (identifier "piVar1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      if (uVar8 != 0) {\n        piVar7 = piVar1 + 5;\n        puVar9 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar6 = 0;\n        do {\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        } while (uVar8 != uVar6);\n      }\n      if (param_1[9] == 0) {\n        return piVar1;\n      }\n      if (-1 < *(char *)(param_2 + 0x38)) {\n        *(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80;\n        param_1[3] = 0x201;\n      }\n      iVar5 = *piVar1;\n      *piVar1 = iVar5 + -1;\n      if (iVar5 + -1 == 0) {\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1);\n        return (int *)0x0;\n      }\n    }" ({ "{") (if_statement "if (uVar8 != 0) {\n        piVar7 = piVar1 + 5;\n        puVar9 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar6 = 0;\n        do {\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        } while (uVar8 != uVar6);\n      }" (if "if") (parenthesized_expression "(uVar8 != 0)" (( "(") (binary_expression "uVar8 != 0" (identifier "uVar8") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        piVar7 = piVar1 + 5;\n        puVar9 = PTR_DAT_00190b94 + -0x3dd0;\n        uVar6 = 0;\n        do {\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        } while (uVar8 != uVar6);\n      }" ({ "{") (expression_statement "piVar7 = piVar1 + 5;" (assignment_expression "piVar7 = piVar1 + 5" (identifier "piVar7") (= "=") (binary_expression "piVar1 + 5" (identifier "piVar1") (+ "+") (number_literal "5"))) (; ";")) (expression_statement "puVar9 = PTR_DAT_00190b94 + -0x3dd0;" (assignment_expression "puVar9 = PTR_DAT_00190b94 + -0x3dd0" (identifier "puVar9") (= "=") (binary_expression "PTR_DAT_00190b94 + -0x3dd0" (identifier "PTR_DAT_00190b94") (+ "+") (number_literal "-0x3dd0"))) (; ";")) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        } while (uVar8 != uVar6);" (do "do") (compound_statement "{\n          iVar5 = 0;\n          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);\n          if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }\n          *piVar7 = iVar5;\n          piVar7 = piVar7 + 1;\n          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);\n          puVar2 = (undefined1 *)(piVar1[4] + uVar6);\n          uVar6 = uVar6 + 1;\n          *puVar2 = *puVar4;\n        }" ({ "{") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);" (assignment_expression "puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4)" (identifier "puVar3") (= "=") (pointer_expression "*(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4)" (* "*") (cast_expression "(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_2 + 0x20) + uVar6 * 4)" (( "(") (binary_expression "*(int *)(param_2 + 0x20) + uVar6 * 4" (pointer_expression "*(int *)(param_2 + 0x20)" (* "*") (cast_expression "(int *)(param_2 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")")))) (+ "+") (binary_expression "uVar6 * 4" (identifier "uVar6") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if (puVar3 != puVar9) {\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }" (if "if") (parenthesized_expression "(puVar3 != puVar9)" (( "(") (binary_expression "puVar3 != puVar9" (identifier "puVar3") (!= "!=") (identifier "puVar9")) () ")")) (compound_statement "{\n            iVar5 = FUN_00099ab4(param_1,puVar3);\n          }" ({ "{") (expression_statement "iVar5 = FUN_00099ab4(param_1,puVar3);" (assignment_expression "iVar5 = FUN_00099ab4(param_1,puVar3)" (identifier "iVar5") (= "=") (call_expression "FUN_00099ab4(param_1,puVar3)" (identifier "FUN_00099ab4") (argument_list "(param_1,puVar3)" (( "(") (identifier "param_1") (, ",") (identifier "puVar3") () ")")))) (; ";")) (} "}"))) (expression_statement "*piVar7 = iVar5;" (assignment_expression "*piVar7 = iVar5" (pointer_expression "*piVar7" (* "*") (identifier "piVar7")) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "piVar7 = piVar7 + 1;" (assignment_expression "piVar7 = piVar7 + 1" (identifier "piVar7") (= "=") (binary_expression "piVar7 + 1" (identifier "piVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);" (assignment_expression "puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6)" (identifier "puVar4") (= "=") (cast_expression "(undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_2 + 0x1c) + uVar6)" (( "(") (binary_expression "*(int *)(param_2 + 0x1c) + uVar6" (pointer_expression "*(int *)(param_2 + 0x1c)" (* "*") (cast_expression "(int *)(param_2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")")))) (+ "+") (identifier "uVar6")) () ")")))) (; ";")) (expression_statement "puVar2 = (undefined1 *)(piVar1[4] + uVar6);" (assignment_expression "puVar2 = (undefined1 *)(piVar1[4] + uVar6)" (identifier "puVar2") (= "=") (cast_expression "(undefined1 *)(piVar1[4] + uVar6)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1[4] + uVar6)" (( "(") (binary_expression "piVar1[4] + uVar6" (subscript_expression "piVar1[4]" (identifier "piVar1") ([ "[") (number_literal "4") (] "]")) (+ "+") (identifier "uVar6")) () ")")))) (; ";")) (expression_statement "uVar6 = uVar6 + 1;" (assignment_expression "uVar6 = uVar6 + 1" (identifier "uVar6") (= "=") (binary_expression "uVar6 + 1" (identifier "uVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar2 = *puVar4;" (assignment_expression "*puVar2 = *puVar4" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (pointer_expression "*puVar4" (* "*") (identifier "puVar4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar8 != uVar6)" (( "(") (binary_expression "uVar8 != uVar6" (identifier "uVar8") (!= "!=") (identifier "uVar6")) () ")")) (; ";")) (} "}"))) (if_statement "if (param_1[9] == 0) {\n        return piVar1;\n      }" (if "if") (parenthesized_expression "(param_1[9] == 0)" (( "(") (binary_expression "param_1[9] == 0" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return piVar1;\n      }" ({ "{") (return_statement "return piVar1;" (return "return") (identifier "piVar1") (; ";")) (} "}"))) (if_statement "if (-1 < *(char *)(param_2 + 0x38)) {\n        *(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80;\n        param_1[3] = 0x201;\n      }" (if "if") (parenthesized_expression "(-1 < *(char *)(param_2 + 0x38))" (( "(") (binary_expression "-1 < *(char *)(param_2 + 0x38)" (number_literal "-1") (< "<") (pointer_expression "*(char *)(param_2 + 0x38)" (* "*") (cast_expression "(char *)(param_2 + 0x38)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x38)" (( "(") (binary_expression "param_2 + 0x38" (identifier "param_2") (+ "+") (number_literal "0x38")) () ")"))))) () ")")) (compound_statement "{\n        *(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80;\n        param_1[3] = 0x201;\n      }" ({ "{") (expression_statement "*(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80;" (assignment_expression "*(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80" (pointer_expression "*(byte *)(param_2 + 0x38)" (* "*") (cast_expression "(byte *)(param_2 + 0x38)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x38)" (( "(") (binary_expression "param_2 + 0x38" (identifier "param_2") (+ "+") (number_literal "0x38")) () ")")))) (= "=") (binary_expression "*(byte *)(param_2 + 0x38) & 0x7f | 0x80" (binary_expression "*(byte *)(param_2 + 0x38) & 0x7f" (pointer_expression "*(byte *)(param_2 + 0x38)" (* "*") (cast_expression "(byte *)(param_2 + 0x38)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x38)" (( "(") (binary_expression "param_2 + 0x38" (identifier "param_2") (+ "+") (number_literal "0x38")) () ")")))) (& "&") (number_literal "0x7f")) (| "|") (number_literal "0x80"))) (; ";")) (expression_statement "param_1[3] = 0x201;" (assignment_expression "param_1[3] = 0x201" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0x201")) (; ";")) (} "}"))) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *piVar1" (identifier "iVar5") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "*piVar1 = iVar5 + -1;" (assignment_expression "*piVar1 = iVar5 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (iVar5 + -1 == 0) {\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1);\n        return (int *)0x0;\n      }" (if "if") (parenthesized_expression "(iVar5 + -1 == 0)" (( "(") (binary_expression "iVar5 + -1 == 0" (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1);\n        return (int *)0x0;\n      }" ({ "{") (expression_statement "(*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1);" (call_expression "(*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1)" (parenthesized_expression "(*(code *)(PTR_LAB_00190ba4 + -0x316c))" (( "(") (pointer_expression "*(code *)(PTR_LAB_00190ba4 + -0x316c)" (* "*") (cast_expression "(code *)(PTR_LAB_00190ba4 + -0x316c)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_00190ba4 + -0x316c)" (( "(") (binary_expression "PTR_LAB_00190ba4 + -0x316c" (identifier "PTR_LAB_00190ba4") (+ "+") (number_literal "-0x316c")) () ")")))) () ")")) (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")"))) (; ";")) (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (} "}"))) (} "}"))) (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}")))

type_1 * function_1(type_2 *pParse,type_3 *pIdx)

{
  type_1 *var_4;
  type_4 *pCVar2;
  type_5 *puVar3;
  type_6 var_9;
  type_5 *puVar5;
  int iVar6;
  type_7 var_2;
  type_4 **var_8;
  type_7 var_1;
  char *var_6;
  
  var_1 = (type_7)pIdx->nColumn;
  if (pParse->nErr == 0) {
    if ((pIdx->field_0x37 & 0x10) == 0) {
      iVar6 = 0;
      var_2 = var_1;
    }
    else {
      var_2 = (type_7)pIdx->nKeyCol;
      iVar6 = var_1 - var_2;
    }
    var_4 = (type_1 *)(*(type_8 *)(var_3 + 0x1dec))(pParse->db,var_2,iVar6);
    if (var_4 != (type_1 *)0x0) {
      if (var_1 != 0) {
        var_8 = var_4->aColl;
        var_6 = var_5 + -0x3dd0;
        var_2 = 0;
        do {
          pCVar2 = (type_4 *)0x0;
          if (pIdx->azColl[var_2] != var_6) {
            pCVar2 = var_7(pParse,pIdx->azColl[var_2]);
          }
          *var_8 = pCVar2;
          var_8 = var_8 + 1;
          puVar5 = pIdx->aSortOrder + var_2;
          puVar3 = var_4->aSortOrder + var_2;
          var_2 = var_2 + 1;
          *puVar3 = *puVar5;
        } while (var_1 != var_2);
      }
      if (pParse->nErr == 0) {
        return var_4;
      }
      if (-1 < (char)pIdx->field_0x38) {
        pIdx->field_0x38 = pIdx->field_0x38 & 0x7f | 0x80;
        pParse->rc = 0x201;
      }
      var_9 = var_4->nRef - 1;
      var_4->nRef = var_9;
      if (var_9 == 0) {
        (*(type_8 *)(var_10 + -0x316c))(var_4);
        return (type_1 *)0x0;
      }
    }
  }
  return (type_1 *)0x0;
}


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

int * MASKED(undefined4 *param_1,int param_2)

{
  int *piVar1;
  undefined1 *puVar2;
  undefined *puVar3;
  undefined1 *puVar4;
  int iVar5;
  uint uVar6;
  int *piVar7;
  uint uVar8;
  undefined *puVar9;
  
  uVar8 = (uint)*(ushort *)(param_2 + 0x34);
  if (param_1[9] == 0) {
    if ((*(byte *)(param_2 + 0x37) & 0x10) == 0) {
      iVar5 = 0;
      uVar6 = uVar8;
    }
    else {
      uVar6 = (uint)*(ushort *)(param_2 + 0x32);
      iVar5 = uVar8 - uVar6;
    }
    piVar1 = (int *)(*(code *)(PTR_LAB_00190ba8 + 0x1dec))(*param_1,uVar6,iVar5);
    if (piVar1 != (int *)0x0) {
      if (uVar8 != 0) {
        piVar7 = piVar1 + 5;
        puVar9 = PTR_DAT_00190b94 + -0x3dd0;
        uVar6 = 0;
        do {
          iVar5 = 0;
          puVar3 = *(undefined **)(*(int *)(param_2 + 0x20) + uVar6 * 4);
          if (puVar3 != puVar9) {
            iVar5 = FUN_00099ab4(param_1,puVar3);
          }
          *piVar7 = iVar5;
          piVar7 = piVar7 + 1;
          puVar4 = (undefined1 *)(*(int *)(param_2 + 0x1c) + uVar6);
          puVar2 = (undefined1 *)(piVar1[4] + uVar6);
          uVar6 = uVar6 + 1;
          *puVar2 = *puVar4;
        } while (uVar8 != uVar6);
      }
      if (param_1[9] == 0) {
        return piVar1;
      }
      if (-1 < *(char *)(param_2 + 0x38)) {
        *(byte *)(param_2 + 0x38) = *(byte *)(param_2 + 0x38) & 0x7f | 0x80;
        param_1[3] = 0x201;
      }
      iVar5 = *piVar1;
      *piVar1 = iVar5 + -1;
      if (iVar5 + -1 == 0) {
        (*(code *)(PTR_LAB_00190ba4 + -0x316c))(piVar1);
        return (int *)0x0;
      }
    }
  }
  return (int *)0x0;
}

