
HashElem * findElementWithHash(Hash *pH,char *pKey,uint *pHash)

{
  byte *pbVar1;
  int iVar2;
  HashElem *pHVar3;
  uint uVar4;
  uint uVar5;
  char *pcVar6;
  byte *pbVar7;
  _ht *p_Var8;
  
  uVar4 = 0;
  if (pH->ht == (_ht *)0x0) {
    pHVar3 = pH->first;
    uVar5 = pH->count;
  }
  else {
    uVar5 = (uint)(byte)*pKey;
    pbVar7 = (byte *)(pKey + 1);
    if (uVar5 == 0) {
      uVar4 = 0;
    }
    else {
      uVar4 = 0;
      do {
        iVar2 = uVar5 - 0x70f8;
        uVar5 = (uint)*pbVar7;
        pbVar7 = pbVar7 + 1;
        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;
      } while (uVar5 != 0);
    }
    if (pH->htsize == 0) {
      trap(7);
    }
    uVar4 = uVar4 % pH->htsize;
    p_Var8 = pH->ht + uVar4;
    pHVar3 = p_Var8->chain;
    uVar5 = p_Var8->count;
  }
  if (pHash != (uint *)0x0) {
    *pHash = uVar4;
  }
  if (uVar5 != 0) {
    do {
      pbVar7 = (byte *)pHVar3->pKey;
      uVar4 = (uint)*pbVar7;
      pcVar6 = pKey;
      if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[(byte)*pKey - 0x70f8]) {
        do {
          if (uVar4 == 0) {
            return pHVar3;
          }
          pbVar7 = pbVar7 + 1;
          pbVar1 = (byte *)(pcVar6 + 1);
          uVar4 = (uint)*pbVar7;
          pcVar6 = pcVar6 + 1;
        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);
      }
      uVar5 = uVar5 - 1;
      pHVar3 = pHVar3->next;
    } while (uVar5 != 0);
    return (HashElem *)(PTR_DAT_0015c5d8 + -0x33e0);
  }
  return (HashElem *)(PTR_DAT_0015c5d8 + -0x33e0);
}



undefined * FUN_0001e094(uint *param_1,byte *param_2,uint *param_3)

{
  byte *pbVar1;
  int iVar2;
  int *piVar3;
  uint uVar4;
  uint uVar5;
  byte *pbVar6;
  byte *pbVar7;
  uint *puVar8;
  
  uVar4 = 0;
  if (param_1[3] == 0) {
    piVar3 = (int *)param_1[2];
    uVar5 = param_1[1];
  }
  else {
    uVar5 = (uint)*param_2;
    pbVar7 = param_2 + 1;
    if (uVar5 == 0) {
      uVar4 = 0;
    }
    else {
      uVar4 = 0;
      do {
        iVar2 = uVar5 - 0x70f8;
        uVar5 = (uint)*pbVar7;
        pbVar7 = pbVar7 + 1;
        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;
      } while (uVar5 != 0);
    }
    if (*param_1 == 0) {
      trap(7);
    }
    uVar4 = uVar4 % *param_1;
    puVar8 = (uint *)(param_1[3] + uVar4 * 8);
    piVar3 = (int *)puVar8[1];
    uVar5 = *puVar8;
  }
  if (param_3 != (uint *)0x0) {
    *param_3 = uVar4;
  }
  if (uVar5 != 0) {
    do {
      pbVar7 = (byte *)piVar3[3];
      uVar4 = (uint)*pbVar7;
      pbVar6 = param_2;
      if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*param_2 - 0x70f8]) {
        do {
          if (uVar4 == 0) {
            return (undefined *)piVar3;
          }
          pbVar7 = pbVar7 + 1;
          pbVar1 = pbVar6 + 1;
          uVar4 = (uint)*pbVar7;
          pbVar6 = pbVar6 + 1;
        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);
      }
      uVar5 = uVar5 - 1;
      piVar3 = (int *)*piVar3;
    } while (uVar5 != 0);
    return PTR_DAT_0015c5d8 + -0x33e0;
  }
  return PTR_DAT_0015c5d8 + -0x33e0;
}


lui gp,0x14
addiu gp,gp,0x651c
addu gp,gp,t9
lw t3,0xc(a0)
beq t3,zero,0x0001e198
_or v1,zero,zero
lbu v1,0x0(a1)
beq v1,zero,0x0001e1a4
_addiu a3,a1,0x1
lw t0,-0x7f18(gp)
lui t2,0x9e37
or v0,zero,zero
addiu t2,t2,0x79b1
addiu t0,t0,-0x70f8
addu t1,t0,v1
lbu v1,0x0(a3)
addiu a3,a3,0x1
lbu t1,0x0(t1)
addu v0,t1,v0
bne v1,zero,0x0001e0cc
_mul v0,v0,t2
lw v1,0x0(a0)
teq v1,zero
divu v0,v1
mfhi v1
sll v0,v1,0x3
addu t3,t3,v0
lw v0,0x4(t3)
lw t2,0x0(t3)
beq a2,zero,0x0001e114
_nop
sw v1,0x0(a2)
beq t2,zero,0x0001e1ac
_lw t0,-0x7f18(gp)
lbu v1,0x0(a1)
addiu t0,t0,-0x70f8
addu v1,t0,v1
lbu t3,0x0(v1)
lw a0,0xc(v0)
lbu v1,0x0(a0)
addu a2,t0,v1
lbu a2,0x0(a2)
bne a2,t3,0x0001e17c
_nop
beq v1,zero,0x0001e190
_or a2,a1,zero
b 0x0001e15c
_addiu a0,a0,0x1
beq a3,zero,0x0001e190
_addiu a0,a0,0x1
lbu v1,0x1(a2)
lbu a3,0x0(a0)
addu v1,t0,v1
addu t1,t0,a3
lbu v1,0x0(v1)
lbu t1,0x0(t1)
beq t1,v1,0x0001e154
_addiu a2,a2,0x1
addiu t2,t2,-0x1
bne t2,zero,0x0001e12c
_lw v0,0x0(v0)
lw v0,-0x7fd8(gp)
addiu v0,v0,-0x33e0
jr ra
_nop
lw v0,0x8(a0)
b 0x0001e108
_lw t2,0x4(a0)
b 0x0001e0e8
_or v0,zero,zero
lw v0,-0x7fd8(gp)
jr ra
_addiu v0,v0,-0x33e0
(translation_unit "undefined * FUN_0001e094(uint *param_1,byte *param_2,uint *param_3)\n\n{\n  byte *pbVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint *puVar8;\n  \n  uVar4 = 0;\n  if (param_1[3] == 0) {\n    piVar3 = (int *)param_1[2];\n    uVar5 = param_1[1];\n  }\n  else {\n    uVar5 = (uint)*param_2;\n    pbVar7 = param_2 + 1;\n    if (uVar5 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }\n    if (*param_1 == 0) {\n      trap(7);\n    }\n    uVar4 = uVar4 % *param_1;\n    puVar8 = (uint *)(param_1[3] + uVar4 * 8);\n    piVar3 = (int *)puVar8[1];\n    uVar5 = *puVar8;\n  }\n  if (param_3 != (uint *)0x0) {\n    *param_3 = uVar4;\n  }\n  if (uVar5 != 0) {\n    do {\n      pbVar7 = (byte *)piVar3[3];\n      uVar4 = (uint)*pbVar7;\n      pbVar6 = param_2;\n      if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*param_2 - 0x70f8]) {\n        do {\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }\n      uVar5 = uVar5 - 1;\n      piVar3 = (int *)*piVar3;\n    } while (uVar5 != 0);\n    return PTR_DAT_0015c5d8 + -0x33e0;\n  }\n  return PTR_DAT_0015c5d8 + -0x33e0;\n}\n\n" (function_definition "undefined * FUN_0001e094(uint *param_1,byte *param_2,uint *param_3)\n\n{\n  byte *pbVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint *puVar8;\n  \n  uVar4 = 0;\n  if (param_1[3] == 0) {\n    piVar3 = (int *)param_1[2];\n    uVar5 = param_1[1];\n  }\n  else {\n    uVar5 = (uint)*param_2;\n    pbVar7 = param_2 + 1;\n    if (uVar5 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }\n    if (*param_1 == 0) {\n      trap(7);\n    }\n    uVar4 = uVar4 % *param_1;\n    puVar8 = (uint *)(param_1[3] + uVar4 * 8);\n    piVar3 = (int *)puVar8[1];\n    uVar5 = *puVar8;\n  }\n  if (param_3 != (uint *)0x0) {\n    *param_3 = uVar4;\n  }\n  if (uVar5 != 0) {\n    do {\n      pbVar7 = (byte *)piVar3[3];\n      uVar4 = (uint)*pbVar7;\n      pbVar6 = param_2;\n      if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*param_2 - 0x70f8]) {\n        do {\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }\n      uVar5 = uVar5 - 1;\n      piVar3 = (int *)*piVar3;\n    } while (uVar5 != 0);\n    return PTR_DAT_0015c5d8 + -0x33e0;\n  }\n  return PTR_DAT_0015c5d8 + -0x33e0;\n}" type_identifier (pointer_declarator "* FUN_0001e094(uint *param_1,byte *param_2,uint *param_3)" * (function_declarator "FUN_0001e094(uint *param_1,byte *param_2,uint *param_3)" identifier (parameter_list "(uint *param_1,byte *param_2,uint *param_3)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  byte *pbVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint *puVar8;\n  \n  uVar4 = 0;\n  if (param_1[3] == 0) {\n    piVar3 = (int *)param_1[2];\n    uVar5 = param_1[1];\n  }\n  else {\n    uVar5 = (uint)*param_2;\n    pbVar7 = param_2 + 1;\n    if (uVar5 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }\n    if (*param_1 == 0) {\n      trap(7);\n    }\n    uVar4 = uVar4 % *param_1;\n    puVar8 = (uint *)(param_1[3] + uVar4 * 8);\n    piVar3 = (int *)puVar8[1];\n    uVar5 = *puVar8;\n  }\n  if (param_3 != (uint *)0x0) {\n    *param_3 = uVar4;\n  }\n  if (uVar5 != 0) {\n    do {\n      pbVar7 = (byte *)piVar3[3];\n      uVar4 = (uint)*pbVar7;\n      pbVar6 = param_2;\n      if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*param_2 - 0x70f8]) {\n        do {\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }\n      uVar5 = uVar5 - 1;\n      piVar3 = (int *)*piVar3;\n    } while (uVar5 != 0);\n    return PTR_DAT_0015c5d8 + -0x33e0;\n  }\n  return PTR_DAT_0015c5d8 + -0x33e0;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "uint *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (if_statement "if (param_1[3] == 0) {\n    piVar3 = (int *)param_1[2];\n    uVar5 = param_1[1];\n  }\n  else {\n    uVar5 = (uint)*param_2;\n    pbVar7 = param_2 + 1;\n    if (uVar5 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }\n    if (*param_1 == 0) {\n      trap(7);\n    }\n    uVar4 = uVar4 % *param_1;\n    puVar8 = (uint *)(param_1[3] + uVar4 * 8);\n    piVar3 = (int *)puVar8[1];\n    uVar5 = *puVar8;\n  }" if (parenthesized_expression "(param_1[3] == 0)" ( (binary_expression "param_1[3] == 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    piVar3 = (int *)param_1[2];\n    uVar5 = param_1[1];\n  }" { (expression_statement "piVar3 = (int *)param_1[2];" (assignment_expression "piVar3 = (int *)param_1[2]" identifier = (cast_expression "(int *)param_1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (expression_statement "uVar5 = param_1[1];" (assignment_expression "uVar5 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n    uVar5 = (uint)*param_2;\n    pbVar7 = param_2 + 1;\n    if (uVar5 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }\n    if (*param_1 == 0) {\n      trap(7);\n    }\n    uVar4 = uVar4 % *param_1;\n    puVar8 = (uint *)(param_1[3] + uVar4 * 8);\n    piVar3 = (int *)puVar8[1];\n    uVar5 = *puVar8;\n  }" else (compound_statement "{\n    uVar5 = (uint)*param_2;\n    pbVar7 = param_2 + 1;\n    if (uVar5 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }\n    if (*param_1 == 0) {\n      trap(7);\n    }\n    uVar4 = uVar4 % *param_1;\n    puVar8 = (uint *)(param_1[3] + uVar4 * 8);\n    piVar3 = (int *)puVar8[1];\n    uVar5 = *puVar8;\n  }" { (expression_statement "uVar5 = (uint)*param_2;" (assignment_expression "uVar5 = (uint)*param_2" identifier = (binary_expression "(uint)*param_2" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "pbVar7 = param_2 + 1;" (assignment_expression "pbVar7 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (if_statement "if (uVar5 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar4 = 0;\n    }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }" else (compound_statement "{\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);" do (compound_statement "{\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      }" { (expression_statement "iVar2 = uVar5 - 0x70f8;" (assignment_expression "iVar2 = uVar5 - 0x70f8" identifier = (binary_expression "uVar5 - 0x70f8" identifier - number_literal)) ;) (expression_statement "uVar5 = (uint)*pbVar7;" (assignment_expression "uVar5 = (uint)*pbVar7" identifier = (binary_expression "(uint)*pbVar7" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;" (assignment_expression "uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f" identifier = (binary_expression "((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f" (parenthesized_expression "((byte)PTR_DAT_0015c698[iVar2] + uVar4)" ( (binary_expression "(byte)PTR_DAT_0015c698[iVar2] + uVar4" (cast_expression "(byte)PTR_DAT_0015c698[iVar2]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "PTR_DAT_0015c698[iVar2]" identifier [ identifier ])) + identifier) )) * number_literal)) ;) }) while (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) ;) }))) (if_statement "if (*param_1 == 0) {\n      trap(7);\n    }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n      trap(7);\n    }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "uVar4 = uVar4 % *param_1;" (assignment_expression "uVar4 = uVar4 % *param_1" identifier = (binary_expression "uVar4 % *param_1" identifier % (pointer_expression "*param_1" * identifier))) ;) (expression_statement "puVar8 = (uint *)(param_1[3] + uVar4 * 8);" (assignment_expression "puVar8 = (uint *)(param_1[3] + uVar4 * 8)" identifier = (cast_expression "(uint *)(param_1[3] + uVar4 * 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[3] + uVar4 * 8)" ( (binary_expression "param_1[3] + uVar4 * 8" (subscript_expression "param_1[3]" identifier [ number_literal ]) + (binary_expression "uVar4 * 8" identifier * number_literal)) )))) ;) (expression_statement "piVar3 = (int *)puVar8[1];" (assignment_expression "piVar3 = (int *)puVar8[1]" identifier = (cast_expression "(int *)puVar8[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar8[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar5 = *puVar8;" (assignment_expression "uVar5 = *puVar8" identifier = (pointer_expression "*puVar8" * identifier)) ;) }))) (if_statement "if (param_3 != (uint *)0x0) {\n    *param_3 = uVar4;\n  }" if (parenthesized_expression "(param_3 != (uint *)0x0)" ( (binary_expression "param_3 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_3 = uVar4;\n  }" { (expression_statement "*param_3 = uVar4;" (assignment_expression "*param_3 = uVar4" (pointer_expression "*param_3" * identifier) = identifier) ;) })) (if_statement "if (uVar5 != 0) {\n    do {\n      pbVar7 = (byte *)piVar3[3];\n      uVar4 = (uint)*pbVar7;\n      pbVar6 = param_2;\n      if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*param_2 - 0x70f8]) {\n        do {\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }\n      uVar5 = uVar5 - 1;\n      piVar3 = (int *)*piVar3;\n    } while (uVar5 != 0);\n    return PTR_DAT_0015c5d8 + -0x33e0;\n  }" if (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      pbVar7 = (byte *)piVar3[3];\n      uVar4 = (uint)*pbVar7;\n      pbVar6 = param_2;\n      if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*param_2 - 0x70f8]) {\n        do {\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }\n      uVar5 = uVar5 - 1;\n      piVar3 = (int *)*piVar3;\n    } while (uVar5 != 0);\n    return PTR_DAT_0015c5d8 + -0x33e0;\n  }" { (do_statement "do {\n      pbVar7 = (byte *)piVar3[3];\n      uVar4 = (uint)*pbVar7;\n      pbVar6 = param_2;\n      if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*param_2 - 0x70f8]) {\n        do {\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }\n      uVar5 = uVar5 - 1;\n      piVar3 = (int *)*piVar3;\n    } while (uVar5 != 0);" do (compound_statement "{\n      pbVar7 = (byte *)piVar3[3];\n      uVar4 = (uint)*pbVar7;\n      pbVar6 = param_2;\n      if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*param_2 - 0x70f8]) {\n        do {\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }\n      uVar5 = uVar5 - 1;\n      piVar3 = (int *)*piVar3;\n    }" { (expression_statement "pbVar7 = (byte *)piVar3[3];" (assignment_expression "pbVar7 = (byte *)piVar3[3]" identifier = (cast_expression "(byte *)piVar3[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[3]" identifier [ number_literal ]))) ;) (expression_statement "uVar4 = (uint)*pbVar7;" (assignment_expression "uVar4 = (uint)*pbVar7" identifier = (binary_expression "(uint)*pbVar7" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "pbVar6 = param_2;" (assignment_expression "pbVar6 = param_2" identifier = identifier) ;) (if_statement "if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*param_2 - 0x70f8]) {\n        do {\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }" if (parenthesized_expression "(PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*param_2 - 0x70f8])" ( (binary_expression "PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*param_2 - 0x70f8]" (subscript_expression "PTR_DAT_0015c698[uVar4 - 0x70f8]" identifier [ (binary_expression "uVar4 - 0x70f8" identifier - number_literal) ]) == (subscript_expression "PTR_DAT_0015c698[*param_2 - 0x70f8]" identifier [ (binary_expression "*param_2 - 0x70f8" (pointer_expression "*param_2" * identifier) - number_literal) ])) )) (compound_statement "{\n        do {\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }" { (do_statement "do {\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);" do (compound_statement "{\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        }" { (if_statement "if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (compound_statement "{\n            return (undefined *)piVar3;\n          }" { (return_statement "return (undefined *)piVar3;" return (cast_expression "(undefined *)piVar3" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ;) })) (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) (expression_statement "pbVar1 = pbVar6 + 1;" (assignment_expression "pbVar1 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = (uint)*pbVar7;" (assignment_expression "uVar4 = (uint)*pbVar7" identifier = (binary_expression "(uint)*pbVar7" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8])" ( (binary_expression "PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]" (subscript_expression "PTR_DAT_0015c698[uVar4 - 0x70f8]" identifier [ (binary_expression "uVar4 - 0x70f8" identifier - number_literal) ]) == (subscript_expression "PTR_DAT_0015c698[*pbVar1 - 0x70f8]" identifier [ (binary_expression "*pbVar1 - 0x70f8" (pointer_expression "*pbVar1" * identifier) - number_literal) ])) )) ;) })) (expression_statement "uVar5 = uVar5 - 1;" (assignment_expression "uVar5 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ;) (expression_statement "piVar3 = (int *)*piVar3;" (assignment_expression "piVar3 = (int *)*piVar3" identifier = (cast_expression "(int *)*piVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier))) ;) }) while (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) ;) (return_statement "return PTR_DAT_0015c5d8 + -0x33e0;" return (binary_expression "PTR_DAT_0015c5d8 + -0x33e0" identifier + number_literal) ;) })) (return_statement "return PTR_DAT_0015c5d8 + -0x33e0;" return (binary_expression "PTR_DAT_0015c5d8 + -0x33e0" identifier + number_literal) ;) })))
(translation_unit "HashElem * findElementWithHash(Hash *pH,char *pKey,uint *pHash)\n\n{\n  byte *pbVar1;\n  int iVar2;\n  HashElem *pHVar3;\n  uint uVar4;\n  uint uVar5;\n  char *pcVar6;\n  byte *pbVar7;\n  _ht *p_Var8;\n  \n  uVar4 = 0;\n  if (pH->ht == (_ht *)0x0) {\n    pHVar3 = pH->first;\n    uVar5 = pH->count;\n  }\n  else {\n    uVar5 = (uint)(byte)*pKey;\n    pbVar7 = (byte *)(pKey + 1);\n    if (uVar5 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }\n    if (pH->htsize == 0) {\n      trap(7);\n    }\n    uVar4 = uVar4 % pH->htsize;\n    p_Var8 = pH->ht + uVar4;\n    pHVar3 = p_Var8->chain;\n    uVar5 = p_Var8->count;\n  }\n  if (pHash != (uint *)0x0) {\n    *pHash = uVar4;\n  }\n  if (uVar5 != 0) {\n    do {\n      pbVar7 = (byte *)pHVar3->pKey;\n      uVar4 = (uint)*pbVar7;\n      pcVar6 = pKey;\n      if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[(byte)*pKey - 0x70f8]) {\n        do {\n          if (uVar4 == 0) {\n            return pHVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = (byte *)(pcVar6 + 1);\n          uVar4 = (uint)*pbVar7;\n          pcVar6 = pcVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }\n      uVar5 = uVar5 - 1;\n      pHVar3 = pHVar3->next;\n    } while (uVar5 != 0);\n    return (HashElem *)(PTR_DAT_0015c5d8 + -0x33e0);\n  }\n  return (HashElem *)(PTR_DAT_0015c5d8 + -0x33e0);\n}\n\n" (function_definition "HashElem * findElementWithHash(Hash *pH,char *pKey,uint *pHash)\n\n{\n  byte *pbVar1;\n  int iVar2;\n  HashElem *pHVar3;\n  uint uVar4;\n  uint uVar5;\n  char *pcVar6;\n  byte *pbVar7;\n  _ht *p_Var8;\n  \n  uVar4 = 0;\n  if (pH->ht == (_ht *)0x0) {\n    pHVar3 = pH->first;\n    uVar5 = pH->count;\n  }\n  else {\n    uVar5 = (uint)(byte)*pKey;\n    pbVar7 = (byte *)(pKey + 1);\n    if (uVar5 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }\n    if (pH->htsize == 0) {\n      trap(7);\n    }\n    uVar4 = uVar4 % pH->htsize;\n    p_Var8 = pH->ht + uVar4;\n    pHVar3 = p_Var8->chain;\n    uVar5 = p_Var8->count;\n  }\n  if (pHash != (uint *)0x0) {\n    *pHash = uVar4;\n  }\n  if (uVar5 != 0) {\n    do {\n      pbVar7 = (byte *)pHVar3->pKey;\n      uVar4 = (uint)*pbVar7;\n      pcVar6 = pKey;\n      if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[(byte)*pKey - 0x70f8]) {\n        do {\n          if (uVar4 == 0) {\n            return pHVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = (byte *)(pcVar6 + 1);\n          uVar4 = (uint)*pbVar7;\n          pcVar6 = pcVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }\n      uVar5 = uVar5 - 1;\n      pHVar3 = pHVar3->next;\n    } while (uVar5 != 0);\n    return (HashElem *)(PTR_DAT_0015c5d8 + -0x33e0);\n  }\n  return (HashElem *)(PTR_DAT_0015c5d8 + -0x33e0);\n}" type_identifier (pointer_declarator "* findElementWithHash(Hash *pH,char *pKey,uint *pHash)" * (function_declarator "findElementWithHash(Hash *pH,char *pKey,uint *pHash)" identifier (parameter_list "(Hash *pH,char *pKey,uint *pHash)" ( (parameter_declaration "Hash *pH" type_identifier (pointer_declarator "*pH" * identifier)) , (parameter_declaration "char *pKey" primitive_type (pointer_declarator "*pKey" * identifier)) , (parameter_declaration "uint *pHash" type_identifier (pointer_declarator "*pHash" * identifier)) )))) (compound_statement "{\n  byte *pbVar1;\n  int iVar2;\n  HashElem *pHVar3;\n  uint uVar4;\n  uint uVar5;\n  char *pcVar6;\n  byte *pbVar7;\n  _ht *p_Var8;\n  \n  uVar4 = 0;\n  if (pH->ht == (_ht *)0x0) {\n    pHVar3 = pH->first;\n    uVar5 = pH->count;\n  }\n  else {\n    uVar5 = (uint)(byte)*pKey;\n    pbVar7 = (byte *)(pKey + 1);\n    if (uVar5 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }\n    if (pH->htsize == 0) {\n      trap(7);\n    }\n    uVar4 = uVar4 % pH->htsize;\n    p_Var8 = pH->ht + uVar4;\n    pHVar3 = p_Var8->chain;\n    uVar5 = p_Var8->count;\n  }\n  if (pHash != (uint *)0x0) {\n    *pHash = uVar4;\n  }\n  if (uVar5 != 0) {\n    do {\n      pbVar7 = (byte *)pHVar3->pKey;\n      uVar4 = (uint)*pbVar7;\n      pcVar6 = pKey;\n      if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[(byte)*pKey - 0x70f8]) {\n        do {\n          if (uVar4 == 0) {\n            return pHVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = (byte *)(pcVar6 + 1);\n          uVar4 = (uint)*pbVar7;\n          pcVar6 = pcVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }\n      uVar5 = uVar5 - 1;\n      pHVar3 = pHVar3->next;\n    } while (uVar5 != 0);\n    return (HashElem *)(PTR_DAT_0015c5d8 + -0x33e0);\n  }\n  return (HashElem *)(PTR_DAT_0015c5d8 + -0x33e0);\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "HashElem *pHVar3;" type_identifier (pointer_declarator "*pHVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "_ht *p_Var8;" type_identifier (pointer_declarator "*p_Var8" * identifier) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (if_statement "if (pH->ht == (_ht *)0x0) {\n    pHVar3 = pH->first;\n    uVar5 = pH->count;\n  }\n  else {\n    uVar5 = (uint)(byte)*pKey;\n    pbVar7 = (byte *)(pKey + 1);\n    if (uVar5 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }\n    if (pH->htsize == 0) {\n      trap(7);\n    }\n    uVar4 = uVar4 % pH->htsize;\n    p_Var8 = pH->ht + uVar4;\n    pHVar3 = p_Var8->chain;\n    uVar5 = p_Var8->count;\n  }" if (parenthesized_expression "(pH->ht == (_ht *)0x0)" ( (binary_expression "pH->ht == (_ht *)0x0" (field_expression "pH->ht" identifier -> field_identifier) == (cast_expression "(_ht *)0x0" ( (type_descriptor "_ht *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pHVar3 = pH->first;\n    uVar5 = pH->count;\n  }" { (expression_statement "pHVar3 = pH->first;" (assignment_expression "pHVar3 = pH->first" identifier = (field_expression "pH->first" identifier -> field_identifier)) ;) (expression_statement "uVar5 = pH->count;" (assignment_expression "uVar5 = pH->count" identifier = (field_expression "pH->count" identifier -> field_identifier)) ;) }) (else_clause "else {\n    uVar5 = (uint)(byte)*pKey;\n    pbVar7 = (byte *)(pKey + 1);\n    if (uVar5 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }\n    if (pH->htsize == 0) {\n      trap(7);\n    }\n    uVar4 = uVar4 % pH->htsize;\n    p_Var8 = pH->ht + uVar4;\n    pHVar3 = p_Var8->chain;\n    uVar5 = p_Var8->count;\n  }" else (compound_statement "{\n    uVar5 = (uint)(byte)*pKey;\n    pbVar7 = (byte *)(pKey + 1);\n    if (uVar5 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }\n    if (pH->htsize == 0) {\n      trap(7);\n    }\n    uVar4 = uVar4 % pH->htsize;\n    p_Var8 = pH->ht + uVar4;\n    pHVar3 = p_Var8->chain;\n    uVar5 = p_Var8->count;\n  }" { (expression_statement "uVar5 = (uint)(byte)*pKey;" (assignment_expression "uVar5 = (uint)(byte)*pKey" identifier = (binary_expression "(uint)(byte)*pKey" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(byte)" ( identifier ))) * identifier)) ;) (expression_statement "pbVar7 = (byte *)(pKey + 1);" (assignment_expression "pbVar7 = (byte *)(pKey + 1)" identifier = (cast_expression "(byte *)(pKey + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pKey + 1)" ( (binary_expression "pKey + 1" identifier + number_literal) )))) ;) (if_statement "if (uVar5 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar4 = 0;\n    }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }" else (compound_statement "{\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);" do (compound_statement "{\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      }" { (expression_statement "iVar2 = uVar5 - 0x70f8;" (assignment_expression "iVar2 = uVar5 - 0x70f8" identifier = (binary_expression "uVar5 - 0x70f8" identifier - number_literal)) ;) (expression_statement "uVar5 = (uint)*pbVar7;" (assignment_expression "uVar5 = (uint)*pbVar7" identifier = (binary_expression "(uint)*pbVar7" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;" (assignment_expression "uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f" identifier = (binary_expression "((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f" (parenthesized_expression "((byte)PTR_DAT_0015c698[iVar2] + uVar4)" ( (binary_expression "(byte)PTR_DAT_0015c698[iVar2] + uVar4" (cast_expression "(byte)PTR_DAT_0015c698[iVar2]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "PTR_DAT_0015c698[iVar2]" identifier [ identifier ])) + identifier) )) * number_literal)) ;) }) while (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) ;) }))) (if_statement "if (pH->htsize == 0) {\n      trap(7);\n    }" if (parenthesized_expression "(pH->htsize == 0)" ( (binary_expression "pH->htsize == 0" (field_expression "pH->htsize" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n      trap(7);\n    }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "uVar4 = uVar4 % pH->htsize;" (assignment_expression "uVar4 = uVar4 % pH->htsize" identifier = (binary_expression "uVar4 % pH->htsize" identifier % (field_expression "pH->htsize" identifier -> field_identifier))) ;) (expression_statement "p_Var8 = pH->ht + uVar4;" (assignment_expression "p_Var8 = pH->ht + uVar4" identifier = (binary_expression "pH->ht + uVar4" (field_expression "pH->ht" identifier -> field_identifier) + identifier)) ;) (expression_statement "pHVar3 = p_Var8->chain;" (assignment_expression "pHVar3 = p_Var8->chain" identifier = (field_expression "p_Var8->chain" identifier -> field_identifier)) ;) (expression_statement "uVar5 = p_Var8->count;" (assignment_expression "uVar5 = p_Var8->count" identifier = (field_expression "p_Var8->count" identifier -> field_identifier)) ;) }))) (if_statement "if (pHash != (uint *)0x0) {\n    *pHash = uVar4;\n  }" if (parenthesized_expression "(pHash != (uint *)0x0)" ( (binary_expression "pHash != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *pHash = uVar4;\n  }" { (expression_statement "*pHash = uVar4;" (assignment_expression "*pHash = uVar4" (pointer_expression "*pHash" * identifier) = identifier) ;) })) (if_statement "if (uVar5 != 0) {\n    do {\n      pbVar7 = (byte *)pHVar3->pKey;\n      uVar4 = (uint)*pbVar7;\n      pcVar6 = pKey;\n      if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[(byte)*pKey - 0x70f8]) {\n        do {\n          if (uVar4 == 0) {\n            return pHVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = (byte *)(pcVar6 + 1);\n          uVar4 = (uint)*pbVar7;\n          pcVar6 = pcVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }\n      uVar5 = uVar5 - 1;\n      pHVar3 = pHVar3->next;\n    } while (uVar5 != 0);\n    return (HashElem *)(PTR_DAT_0015c5d8 + -0x33e0);\n  }" if (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      pbVar7 = (byte *)pHVar3->pKey;\n      uVar4 = (uint)*pbVar7;\n      pcVar6 = pKey;\n      if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[(byte)*pKey - 0x70f8]) {\n        do {\n          if (uVar4 == 0) {\n            return pHVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = (byte *)(pcVar6 + 1);\n          uVar4 = (uint)*pbVar7;\n          pcVar6 = pcVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }\n      uVar5 = uVar5 - 1;\n      pHVar3 = pHVar3->next;\n    } while (uVar5 != 0);\n    return (HashElem *)(PTR_DAT_0015c5d8 + -0x33e0);\n  }" { (do_statement "do {\n      pbVar7 = (byte *)pHVar3->pKey;\n      uVar4 = (uint)*pbVar7;\n      pcVar6 = pKey;\n      if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[(byte)*pKey - 0x70f8]) {\n        do {\n          if (uVar4 == 0) {\n            return pHVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = (byte *)(pcVar6 + 1);\n          uVar4 = (uint)*pbVar7;\n          pcVar6 = pcVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }\n      uVar5 = uVar5 - 1;\n      pHVar3 = pHVar3->next;\n    } while (uVar5 != 0);" do (compound_statement "{\n      pbVar7 = (byte *)pHVar3->pKey;\n      uVar4 = (uint)*pbVar7;\n      pcVar6 = pKey;\n      if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[(byte)*pKey - 0x70f8]) {\n        do {\n          if (uVar4 == 0) {\n            return pHVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = (byte *)(pcVar6 + 1);\n          uVar4 = (uint)*pbVar7;\n          pcVar6 = pcVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }\n      uVar5 = uVar5 - 1;\n      pHVar3 = pHVar3->next;\n    }" { (expression_statement "pbVar7 = (byte *)pHVar3->pKey;" (assignment_expression "pbVar7 = (byte *)pHVar3->pKey" identifier = (cast_expression "(byte *)pHVar3->pKey" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pHVar3->pKey" identifier -> field_identifier))) ;) (expression_statement "uVar4 = (uint)*pbVar7;" (assignment_expression "uVar4 = (uint)*pbVar7" identifier = (binary_expression "(uint)*pbVar7" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "pcVar6 = pKey;" (assignment_expression "pcVar6 = pKey" identifier = identifier) ;) (if_statement "if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[(byte)*pKey - 0x70f8]) {\n        do {\n          if (uVar4 == 0) {\n            return pHVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = (byte *)(pcVar6 + 1);\n          uVar4 = (uint)*pbVar7;\n          pcVar6 = pcVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }" if (parenthesized_expression "(PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[(byte)*pKey - 0x70f8])" ( (binary_expression "PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[(byte)*pKey - 0x70f8]" (subscript_expression "PTR_DAT_0015c698[uVar4 - 0x70f8]" identifier [ (binary_expression "uVar4 - 0x70f8" identifier - number_literal) ]) == (subscript_expression "PTR_DAT_0015c698[(byte)*pKey - 0x70f8]" identifier [ (binary_expression "(byte)*pKey - 0x70f8" (binary_expression "(byte)*pKey" (parenthesized_expression "(byte)" ( identifier )) * identifier) - number_literal) ])) )) (compound_statement "{\n        do {\n          if (uVar4 == 0) {\n            return pHVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = (byte *)(pcVar6 + 1);\n          uVar4 = (uint)*pbVar7;\n          pcVar6 = pcVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }" { (do_statement "do {\n          if (uVar4 == 0) {\n            return pHVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = (byte *)(pcVar6 + 1);\n          uVar4 = (uint)*pbVar7;\n          pcVar6 = pcVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);" do (compound_statement "{\n          if (uVar4 == 0) {\n            return pHVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = (byte *)(pcVar6 + 1);\n          uVar4 = (uint)*pbVar7;\n          pcVar6 = pcVar6 + 1;\n        }" { (if_statement "if (uVar4 == 0) {\n            return pHVar3;\n          }" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (compound_statement "{\n            return pHVar3;\n          }" { (return_statement "return pHVar3;" return identifier ;) })) (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) (expression_statement "pbVar1 = (byte *)(pcVar6 + 1);" (assignment_expression "pbVar1 = (byte *)(pcVar6 + 1)" identifier = (cast_expression "(byte *)(pcVar6 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar6 + 1)" ( (binary_expression "pcVar6 + 1" identifier + number_literal) )))) ;) (expression_statement "uVar4 = (uint)*pbVar7;" (assignment_expression "uVar4 = (uint)*pbVar7" identifier = (binary_expression "(uint)*pbVar7" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "pcVar6 = pcVar6 + 1;" (assignment_expression "pcVar6 = pcVar6 + 1" identifier = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8])" ( (binary_expression "PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]" (subscript_expression "PTR_DAT_0015c698[uVar4 - 0x70f8]" identifier [ (binary_expression "uVar4 - 0x70f8" identifier - number_literal) ]) == (subscript_expression "PTR_DAT_0015c698[*pbVar1 - 0x70f8]" identifier [ (binary_expression "*pbVar1 - 0x70f8" (pointer_expression "*pbVar1" * identifier) - number_literal) ])) )) ;) })) (expression_statement "uVar5 = uVar5 - 1;" (assignment_expression "uVar5 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ;) (expression_statement "pHVar3 = pHVar3->next;" (assignment_expression "pHVar3 = pHVar3->next" identifier = (field_expression "pHVar3->next" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) ;) (return_statement "return (HashElem *)(PTR_DAT_0015c5d8 + -0x33e0);" return (cast_expression "(HashElem *)(PTR_DAT_0015c5d8 + -0x33e0)" ( (type_descriptor "HashElem *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0015c5d8 + -0x33e0)" ( (binary_expression "PTR_DAT_0015c5d8 + -0x33e0" identifier + number_literal) ))) ;) })) (return_statement "return (HashElem *)(PTR_DAT_0015c5d8 + -0x33e0);" return (cast_expression "(HashElem *)(PTR_DAT_0015c5d8 + -0x33e0)" ( (type_descriptor "HashElem *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0015c5d8 + -0x33e0)" ( (binary_expression "PTR_DAT_0015c5d8 + -0x33e0" identifier + number_literal) ))) ;) })))
(translation_unit "undefined * FUN_0001e094(uint *param_1,byte *param_2,uint *param_3)\n\n{\n  byte *pbVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint *puVar8;\n  \n  uVar4 = 0;\n  if (param_1[3] == 0) {\n    piVar3 = (int *)param_1[2];\n    uVar5 = param_1[1];\n  }\n  else {\n    uVar5 = (uint)*param_2;\n    pbVar7 = param_2 + 1;\n    if (uVar5 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }\n    if (*param_1 == 0) {\n      trap(7);\n    }\n    uVar4 = uVar4 % *param_1;\n    puVar8 = (uint *)(param_1[3] + uVar4 * 8);\n    piVar3 = (int *)puVar8[1];\n    uVar5 = *puVar8;\n  }\n  if (param_3 != (uint *)0x0) {\n    *param_3 = uVar4;\n  }\n  if (uVar5 != 0) {\n    do {\n      pbVar7 = (byte *)piVar3[3];\n      uVar4 = (uint)*pbVar7;\n      pbVar6 = param_2;\n      if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*param_2 - 0x70f8]) {\n        do {\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }\n      uVar5 = uVar5 - 1;\n      piVar3 = (int *)*piVar3;\n    } while (uVar5 != 0);\n    return PTR_DAT_0015c5d8 + -0x33e0;\n  }\n  return PTR_DAT_0015c5d8 + -0x33e0;\n}\n\n" (function_definition "undefined * FUN_0001e094(uint *param_1,byte *param_2,uint *param_3)\n\n{\n  byte *pbVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint *puVar8;\n  \n  uVar4 = 0;\n  if (param_1[3] == 0) {\n    piVar3 = (int *)param_1[2];\n    uVar5 = param_1[1];\n  }\n  else {\n    uVar5 = (uint)*param_2;\n    pbVar7 = param_2 + 1;\n    if (uVar5 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }\n    if (*param_1 == 0) {\n      trap(7);\n    }\n    uVar4 = uVar4 % *param_1;\n    puVar8 = (uint *)(param_1[3] + uVar4 * 8);\n    piVar3 = (int *)puVar8[1];\n    uVar5 = *puVar8;\n  }\n  if (param_3 != (uint *)0x0) {\n    *param_3 = uVar4;\n  }\n  if (uVar5 != 0) {\n    do {\n      pbVar7 = (byte *)piVar3[3];\n      uVar4 = (uint)*pbVar7;\n      pbVar6 = param_2;\n      if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*param_2 - 0x70f8]) {\n        do {\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }\n      uVar5 = uVar5 - 1;\n      piVar3 = (int *)*piVar3;\n    } while (uVar5 != 0);\n    return PTR_DAT_0015c5d8 + -0x33e0;\n  }\n  return PTR_DAT_0015c5d8 + -0x33e0;\n}" type_identifier (pointer_declarator "* FUN_0001e094(uint *param_1,byte *param_2,uint *param_3)" * (function_declarator "FUN_0001e094(uint *param_1,byte *param_2,uint *param_3)" identifier (parameter_list "(uint *param_1,byte *param_2,uint *param_3)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  byte *pbVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint *puVar8;\n  \n  uVar4 = 0;\n  if (param_1[3] == 0) {\n    piVar3 = (int *)param_1[2];\n    uVar5 = param_1[1];\n  }\n  else {\n    uVar5 = (uint)*param_2;\n    pbVar7 = param_2 + 1;\n    if (uVar5 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }\n    if (*param_1 == 0) {\n      trap(7);\n    }\n    uVar4 = uVar4 % *param_1;\n    puVar8 = (uint *)(param_1[3] + uVar4 * 8);\n    piVar3 = (int *)puVar8[1];\n    uVar5 = *puVar8;\n  }\n  if (param_3 != (uint *)0x0) {\n    *param_3 = uVar4;\n  }\n  if (uVar5 != 0) {\n    do {\n      pbVar7 = (byte *)piVar3[3];\n      uVar4 = (uint)*pbVar7;\n      pbVar6 = param_2;\n      if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*param_2 - 0x70f8]) {\n        do {\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }\n      uVar5 = uVar5 - 1;\n      piVar3 = (int *)*piVar3;\n    } while (uVar5 != 0);\n    return PTR_DAT_0015c5d8 + -0x33e0;\n  }\n  return PTR_DAT_0015c5d8 + -0x33e0;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "uint *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (if_statement "if (param_1[3] == 0) {\n    piVar3 = (int *)param_1[2];\n    uVar5 = param_1[1];\n  }\n  else {\n    uVar5 = (uint)*param_2;\n    pbVar7 = param_2 + 1;\n    if (uVar5 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }\n    if (*param_1 == 0) {\n      trap(7);\n    }\n    uVar4 = uVar4 % *param_1;\n    puVar8 = (uint *)(param_1[3] + uVar4 * 8);\n    piVar3 = (int *)puVar8[1];\n    uVar5 = *puVar8;\n  }" if (parenthesized_expression "(param_1[3] == 0)" ( (binary_expression "param_1[3] == 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    piVar3 = (int *)param_1[2];\n    uVar5 = param_1[1];\n  }" { (expression_statement "piVar3 = (int *)param_1[2];" (assignment_expression "piVar3 = (int *)param_1[2]" identifier = (cast_expression "(int *)param_1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (expression_statement "uVar5 = param_1[1];" (assignment_expression "uVar5 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n    uVar5 = (uint)*param_2;\n    pbVar7 = param_2 + 1;\n    if (uVar5 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }\n    if (*param_1 == 0) {\n      trap(7);\n    }\n    uVar4 = uVar4 % *param_1;\n    puVar8 = (uint *)(param_1[3] + uVar4 * 8);\n    piVar3 = (int *)puVar8[1];\n    uVar5 = *puVar8;\n  }" else (compound_statement "{\n    uVar5 = (uint)*param_2;\n    pbVar7 = param_2 + 1;\n    if (uVar5 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }\n    if (*param_1 == 0) {\n      trap(7);\n    }\n    uVar4 = uVar4 % *param_1;\n    puVar8 = (uint *)(param_1[3] + uVar4 * 8);\n    piVar3 = (int *)puVar8[1];\n    uVar5 = *puVar8;\n  }" { (expression_statement "uVar5 = (uint)*param_2;" (assignment_expression "uVar5 = (uint)*param_2" identifier = (binary_expression "(uint)*param_2" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "pbVar7 = param_2 + 1;" (assignment_expression "pbVar7 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (if_statement "if (uVar5 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar4 = 0;\n    }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }" else (compound_statement "{\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);" do (compound_statement "{\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      }" { (expression_statement "iVar2 = uVar5 - 0x70f8;" (assignment_expression "iVar2 = uVar5 - 0x70f8" identifier = (binary_expression "uVar5 - 0x70f8" identifier - number_literal)) ;) (expression_statement "uVar5 = (uint)*pbVar7;" (assignment_expression "uVar5 = (uint)*pbVar7" identifier = (binary_expression "(uint)*pbVar7" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;" (assignment_expression "uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f" identifier = (binary_expression "((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f" (parenthesized_expression "((byte)PTR_DAT_0015c698[iVar2] + uVar4)" ( (binary_expression "(byte)PTR_DAT_0015c698[iVar2] + uVar4" (cast_expression "(byte)PTR_DAT_0015c698[iVar2]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "PTR_DAT_0015c698[iVar2]" identifier [ identifier ])) + identifier) )) * number_literal)) ;) }) while (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) ;) }))) (if_statement "if (*param_1 == 0) {\n      trap(7);\n    }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n      trap(7);\n    }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "uVar4 = uVar4 % *param_1;" (assignment_expression "uVar4 = uVar4 % *param_1" identifier = (binary_expression "uVar4 % *param_1" identifier % (pointer_expression "*param_1" * identifier))) ;) (expression_statement "puVar8 = (uint *)(param_1[3] + uVar4 * 8);" (assignment_expression "puVar8 = (uint *)(param_1[3] + uVar4 * 8)" identifier = (cast_expression "(uint *)(param_1[3] + uVar4 * 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[3] + uVar4 * 8)" ( (binary_expression "param_1[3] + uVar4 * 8" (subscript_expression "param_1[3]" identifier [ number_literal ]) + (binary_expression "uVar4 * 8" identifier * number_literal)) )))) ;) (expression_statement "piVar3 = (int *)puVar8[1];" (assignment_expression "piVar3 = (int *)puVar8[1]" identifier = (cast_expression "(int *)puVar8[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar8[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar5 = *puVar8;" (assignment_expression "uVar5 = *puVar8" identifier = (pointer_expression "*puVar8" * identifier)) ;) }))) (if_statement "if (param_3 != (uint *)0x0) {\n    *param_3 = uVar4;\n  }" if (parenthesized_expression "(param_3 != (uint *)0x0)" ( (binary_expression "param_3 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_3 = uVar4;\n  }" { (expression_statement "*param_3 = uVar4;" (assignment_expression "*param_3 = uVar4" (pointer_expression "*param_3" * identifier) = identifier) ;) })) (if_statement "if (uVar5 != 0) {\n    do {\n      pbVar7 = (byte *)piVar3[3];\n      uVar4 = (uint)*pbVar7;\n      pbVar6 = param_2;\n      if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*param_2 - 0x70f8]) {\n        do {\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }\n      uVar5 = uVar5 - 1;\n      piVar3 = (int *)*piVar3;\n    } while (uVar5 != 0);\n    return PTR_DAT_0015c5d8 + -0x33e0;\n  }" if (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      pbVar7 = (byte *)piVar3[3];\n      uVar4 = (uint)*pbVar7;\n      pbVar6 = param_2;\n      if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*param_2 - 0x70f8]) {\n        do {\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }\n      uVar5 = uVar5 - 1;\n      piVar3 = (int *)*piVar3;\n    } while (uVar5 != 0);\n    return PTR_DAT_0015c5d8 + -0x33e0;\n  }" { (do_statement "do {\n      pbVar7 = (byte *)piVar3[3];\n      uVar4 = (uint)*pbVar7;\n      pbVar6 = param_2;\n      if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*param_2 - 0x70f8]) {\n        do {\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }\n      uVar5 = uVar5 - 1;\n      piVar3 = (int *)*piVar3;\n    } while (uVar5 != 0);" do (compound_statement "{\n      pbVar7 = (byte *)piVar3[3];\n      uVar4 = (uint)*pbVar7;\n      pbVar6 = param_2;\n      if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*param_2 - 0x70f8]) {\n        do {\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }\n      uVar5 = uVar5 - 1;\n      piVar3 = (int *)*piVar3;\n    }" { (expression_statement "pbVar7 = (byte *)piVar3[3];" (assignment_expression "pbVar7 = (byte *)piVar3[3]" identifier = (cast_expression "(byte *)piVar3[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[3]" identifier [ number_literal ]))) ;) (expression_statement "uVar4 = (uint)*pbVar7;" (assignment_expression "uVar4 = (uint)*pbVar7" identifier = (binary_expression "(uint)*pbVar7" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "pbVar6 = param_2;" (assignment_expression "pbVar6 = param_2" identifier = identifier) ;) (if_statement "if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*param_2 - 0x70f8]) {\n        do {\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }" if (parenthesized_expression "(PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*param_2 - 0x70f8])" ( (binary_expression "PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*param_2 - 0x70f8]" (subscript_expression "PTR_DAT_0015c698[uVar4 - 0x70f8]" identifier [ (binary_expression "uVar4 - 0x70f8" identifier - number_literal) ]) == (subscript_expression "PTR_DAT_0015c698[*param_2 - 0x70f8]" identifier [ (binary_expression "*param_2 - 0x70f8" (pointer_expression "*param_2" * identifier) - number_literal) ])) )) (compound_statement "{\n        do {\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }" { (do_statement "do {\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);" do (compound_statement "{\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        }" { (if_statement "if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (compound_statement "{\n            return (undefined *)piVar3;\n          }" { (return_statement "return (undefined *)piVar3;" return (cast_expression "(undefined *)piVar3" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ;) })) (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) (expression_statement "pbVar1 = pbVar6 + 1;" (assignment_expression "pbVar1 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = (uint)*pbVar7;" (assignment_expression "uVar4 = (uint)*pbVar7" identifier = (binary_expression "(uint)*pbVar7" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8])" ( (binary_expression "PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]" (subscript_expression "PTR_DAT_0015c698[uVar4 - 0x70f8]" identifier [ (binary_expression "uVar4 - 0x70f8" identifier - number_literal) ]) == (subscript_expression "PTR_DAT_0015c698[*pbVar1 - 0x70f8]" identifier [ (binary_expression "*pbVar1 - 0x70f8" (pointer_expression "*pbVar1" * identifier) - number_literal) ])) )) ;) })) (expression_statement "uVar5 = uVar5 - 1;" (assignment_expression "uVar5 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ;) (expression_statement "piVar3 = (int *)*piVar3;" (assignment_expression "piVar3 = (int *)*piVar3" identifier = (cast_expression "(int *)*piVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier))) ;) }) while (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) ;) (return_statement "return PTR_DAT_0015c5d8 + -0x33e0;" return (binary_expression "PTR_DAT_0015c5d8 + -0x33e0" identifier + number_literal) ;) })) (return_statement "return PTR_DAT_0015c5d8 + -0x33e0;" return (binary_expression "PTR_DAT_0015c5d8 + -0x33e0" identifier + number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ IDENT ])) + IDENT) )) * LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT % (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT - LIT) ]) == (subscript_expression IDENT [ (binary_expression (pointer_expression * IDENT) - LIT) ])) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT - LIT) ]) == (subscript_expression IDENT [ (binary_expression (pointer_expression * IDENT) - LIT) ])) )) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (return_statement return (binary_expression IDENT + LIT) ;) })) (return_statement return (binary_expression IDENT + LIT) ;) })))
(function_definition "undefined * FUN_0001e094(uint *param_1,byte *param_2,uint *param_3)\n\n{\n  byte *pbVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint *puVar8;\n  \n  uVar4 = 0;\n  if (param_1[3] == 0) {\n    piVar3 = (int *)param_1[2];\n    uVar5 = param_1[1];\n  }\n  else {\n    uVar5 = (uint)*param_2;\n    pbVar7 = param_2 + 1;\n    if (uVar5 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }\n    if (*param_1 == 0) {\n      trap(7);\n    }\n    uVar4 = uVar4 % *param_1;\n    puVar8 = (uint *)(param_1[3] + uVar4 * 8);\n    piVar3 = (int *)puVar8[1];\n    uVar5 = *puVar8;\n  }\n  if (param_3 != (uint *)0x0) {\n    *param_3 = uVar4;\n  }\n  if (uVar5 != 0) {\n    do {\n      pbVar7 = (byte *)piVar3[3];\n      uVar4 = (uint)*pbVar7;\n      pbVar6 = param_2;\n      if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*param_2 - 0x70f8]) {\n        do {\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }\n      uVar5 = uVar5 - 1;\n      piVar3 = (int *)*piVar3;\n    } while (uVar5 != 0);\n    return PTR_DAT_0015c5d8 + -0x33e0;\n  }\n  return PTR_DAT_0015c5d8 + -0x33e0;\n}" (type_identifier "undefined") (pointer_declarator "* FUN_0001e094(uint *param_1,byte *param_2,uint *param_3)" (* "*") (function_declarator "FUN_0001e094(uint *param_1,byte *param_2,uint *param_3)" (identifier "FUN_0001e094") (parameter_list "(uint *param_1,byte *param_2,uint *param_3)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "byte *param_2" (type_identifier "byte") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "uint *param_3" (type_identifier "uint") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")")))) (compound_statement "{\n  byte *pbVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint *puVar8;\n  \n  uVar4 = 0;\n  if (param_1[3] == 0) {\n    piVar3 = (int *)param_1[2];\n    uVar5 = param_1[1];\n  }\n  else {\n    uVar5 = (uint)*param_2;\n    pbVar7 = param_2 + 1;\n    if (uVar5 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }\n    if (*param_1 == 0) {\n      trap(7);\n    }\n    uVar4 = uVar4 % *param_1;\n    puVar8 = (uint *)(param_1[3] + uVar4 * 8);\n    piVar3 = (int *)puVar8[1];\n    uVar5 = *puVar8;\n  }\n  if (param_3 != (uint *)0x0) {\n    *param_3 = uVar4;\n  }\n  if (uVar5 != 0) {\n    do {\n      pbVar7 = (byte *)piVar3[3];\n      uVar4 = (uint)*pbVar7;\n      pbVar6 = param_2;\n      if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*param_2 - 0x70f8]) {\n        do {\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }\n      uVar5 = uVar5 - 1;\n      piVar3 = (int *)*piVar3;\n    } while (uVar5 != 0);\n    return PTR_DAT_0015c5d8 + -0x33e0;\n  }\n  return PTR_DAT_0015c5d8 + -0x33e0;\n}" ({ "{") (declaration "byte *pbVar1;" (type_identifier "byte") (pointer_declarator "*pbVar1" (* "*") (identifier "pbVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "byte *pbVar6;" (type_identifier "byte") (pointer_declarator "*pbVar6" (* "*") (identifier "pbVar6")) (; ";")) (declaration "byte *pbVar7;" (type_identifier "byte") (pointer_declarator "*pbVar7" (* "*") (identifier "pbVar7")) (; ";")) (declaration "uint *puVar8;" (type_identifier "uint") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_1[3] == 0) {\n    piVar3 = (int *)param_1[2];\n    uVar5 = param_1[1];\n  }\n  else {\n    uVar5 = (uint)*param_2;\n    pbVar7 = param_2 + 1;\n    if (uVar5 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }\n    if (*param_1 == 0) {\n      trap(7);\n    }\n    uVar4 = uVar4 % *param_1;\n    puVar8 = (uint *)(param_1[3] + uVar4 * 8);\n    piVar3 = (int *)puVar8[1];\n    uVar5 = *puVar8;\n  }" (if "if") (parenthesized_expression "(param_1[3] == 0)" (( "(") (binary_expression "param_1[3] == 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    piVar3 = (int *)param_1[2];\n    uVar5 = param_1[1];\n  }" ({ "{") (expression_statement "piVar3 = (int *)param_1[2];" (assignment_expression "piVar3 = (int *)param_1[2]" (identifier "piVar3") (= "=") (cast_expression "(int *)param_1[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "uVar5 = param_1[1];" (assignment_expression "uVar5 = param_1[1]" (identifier "uVar5") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n    uVar5 = (uint)*param_2;\n    pbVar7 = param_2 + 1;\n    if (uVar5 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }\n    if (*param_1 == 0) {\n      trap(7);\n    }\n    uVar4 = uVar4 % *param_1;\n    puVar8 = (uint *)(param_1[3] + uVar4 * 8);\n    piVar3 = (int *)puVar8[1];\n    uVar5 = *puVar8;\n  }" (else "else") (compound_statement "{\n    uVar5 = (uint)*param_2;\n    pbVar7 = param_2 + 1;\n    if (uVar5 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }\n    if (*param_1 == 0) {\n      trap(7);\n    }\n    uVar4 = uVar4 % *param_1;\n    puVar8 = (uint *)(param_1[3] + uVar4 * 8);\n    piVar3 = (int *)puVar8[1];\n    uVar5 = *puVar8;\n  }" ({ "{") (expression_statement "uVar5 = (uint)*param_2;" (assignment_expression "uVar5 = (uint)*param_2" (identifier "uVar5") (= "=") (binary_expression "(uint)*param_2" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "param_2"))) (; ";")) (expression_statement "pbVar7 = param_2 + 1;" (assignment_expression "pbVar7 = param_2 + 1" (identifier "pbVar7") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (uVar5 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }" (if "if") (parenthesized_expression "(uVar5 == 0)" (( "(") (binary_expression "uVar5 == 0" (identifier "uVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar4 = 0;\n    }" ({ "{") (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }" (else "else") (compound_statement "{\n      uVar4 = 0;\n      do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);\n    }" ({ "{") (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      } while (uVar5 != 0);" (do "do") (compound_statement "{\n        iVar2 = uVar5 - 0x70f8;\n        uVar5 = (uint)*pbVar7;\n        pbVar7 = pbVar7 + 1;\n        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;\n      }" ({ "{") (expression_statement "iVar2 = uVar5 - 0x70f8;" (assignment_expression "iVar2 = uVar5 - 0x70f8" (identifier "iVar2") (= "=") (binary_expression "uVar5 - 0x70f8" (identifier "uVar5") (- "-") (number_literal "0x70f8"))) (; ";")) (expression_statement "uVar5 = (uint)*pbVar7;" (assignment_expression "uVar5 = (uint)*pbVar7" (identifier "uVar5") (= "=") (binary_expression "(uint)*pbVar7" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar7"))) (; ";")) (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" (identifier "pbVar7") (= "=") (binary_expression "pbVar7 + 1" (identifier "pbVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;" (assignment_expression "uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f" (identifier "uVar4") (= "=") (binary_expression "((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f" (parenthesized_expression "((byte)PTR_DAT_0015c698[iVar2] + uVar4)" (( "(") (binary_expression "(byte)PTR_DAT_0015c698[iVar2] + uVar4" (cast_expression "(byte)PTR_DAT_0015c698[iVar2]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "PTR_DAT_0015c698[iVar2]" (identifier "PTR_DAT_0015c698") ([ "[") (identifier "iVar2") (] "]"))) (+ "+") (identifier "uVar4")) () ")")) (* "*") (number_literal "-0x61c8864f"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar5 != 0)" (( "(") (binary_expression "uVar5 != 0" (identifier "uVar5") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}")))) (if_statement "if (*param_1 == 0) {\n      trap(7);\n    }" (if "if") (parenthesized_expression "(*param_1 == 0)" (( "(") (binary_expression "*param_1 == 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      trap(7);\n    }" ({ "{") (expression_statement "trap(7);" (call_expression "trap(7)" (identifier "trap") (argument_list "(7)" (( "(") (number_literal "7") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar4 = uVar4 % *param_1;" (assignment_expression "uVar4 = uVar4 % *param_1" (identifier "uVar4") (= "=") (binary_expression "uVar4 % *param_1" (identifier "uVar4") (% "%") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "puVar8 = (uint *)(param_1[3] + uVar4 * 8);" (assignment_expression "puVar8 = (uint *)(param_1[3] + uVar4 * 8)" (identifier "puVar8") (= "=") (cast_expression "(uint *)(param_1[3] + uVar4 * 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[3] + uVar4 * 8)" (( "(") (binary_expression "param_1[3] + uVar4 * 8" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (+ "+") (binary_expression "uVar4 * 8" (identifier "uVar4") (* "*") (number_literal "8"))) () ")")))) (; ";")) (expression_statement "piVar3 = (int *)puVar8[1];" (assignment_expression "piVar3 = (int *)puVar8[1]" (identifier "piVar3") (= "=") (cast_expression "(int *)puVar8[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar8[1]" (identifier "puVar8") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "uVar5 = *puVar8;" (assignment_expression "uVar5 = *puVar8" (identifier "uVar5") (= "=") (pointer_expression "*puVar8" (* "*") (identifier "puVar8"))) (; ";")) (} "}")))) (if_statement "if (param_3 != (uint *)0x0) {\n    *param_3 = uVar4;\n  }" (if "if") (parenthesized_expression "(param_3 != (uint *)0x0)" (( "(") (binary_expression "param_3 != (uint *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *param_3 = uVar4;\n  }" ({ "{") (expression_statement "*param_3 = uVar4;" (assignment_expression "*param_3 = uVar4" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "uVar4")) (; ";")) (} "}"))) (if_statement "if (uVar5 != 0) {\n    do {\n      pbVar7 = (byte *)piVar3[3];\n      uVar4 = (uint)*pbVar7;\n      pbVar6 = param_2;\n      if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*param_2 - 0x70f8]) {\n        do {\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }\n      uVar5 = uVar5 - 1;\n      piVar3 = (int *)*piVar3;\n    } while (uVar5 != 0);\n    return PTR_DAT_0015c5d8 + -0x33e0;\n  }" (if "if") (parenthesized_expression "(uVar5 != 0)" (( "(") (binary_expression "uVar5 != 0" (identifier "uVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    do {\n      pbVar7 = (byte *)piVar3[3];\n      uVar4 = (uint)*pbVar7;\n      pbVar6 = param_2;\n      if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*param_2 - 0x70f8]) {\n        do {\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }\n      uVar5 = uVar5 - 1;\n      piVar3 = (int *)*piVar3;\n    } while (uVar5 != 0);\n    return PTR_DAT_0015c5d8 + -0x33e0;\n  }" ({ "{") (do_statement "do {\n      pbVar7 = (byte *)piVar3[3];\n      uVar4 = (uint)*pbVar7;\n      pbVar6 = param_2;\n      if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*param_2 - 0x70f8]) {\n        do {\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }\n      uVar5 = uVar5 - 1;\n      piVar3 = (int *)*piVar3;\n    } while (uVar5 != 0);" (do "do") (compound_statement "{\n      pbVar7 = (byte *)piVar3[3];\n      uVar4 = (uint)*pbVar7;\n      pbVar6 = param_2;\n      if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*param_2 - 0x70f8]) {\n        do {\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }\n      uVar5 = uVar5 - 1;\n      piVar3 = (int *)*piVar3;\n    }" ({ "{") (expression_statement "pbVar7 = (byte *)piVar3[3];" (assignment_expression "pbVar7 = (byte *)piVar3[3]" (identifier "pbVar7") (= "=") (cast_expression "(byte *)piVar3[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[3]" (identifier "piVar3") ([ "[") (number_literal "3") (] "]")))) (; ";")) (expression_statement "uVar4 = (uint)*pbVar7;" (assignment_expression "uVar4 = (uint)*pbVar7" (identifier "uVar4") (= "=") (binary_expression "(uint)*pbVar7" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar7"))) (; ";")) (expression_statement "pbVar6 = param_2;" (assignment_expression "pbVar6 = param_2" (identifier "pbVar6") (= "=") (identifier "param_2")) (; ";")) (if_statement "if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*param_2 - 0x70f8]) {\n        do {\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }" (if "if") (parenthesized_expression "(PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*param_2 - 0x70f8])" (( "(") (binary_expression "PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*param_2 - 0x70f8]" (subscript_expression "PTR_DAT_0015c698[uVar4 - 0x70f8]" (identifier "PTR_DAT_0015c698") ([ "[") (binary_expression "uVar4 - 0x70f8" (identifier "uVar4") (- "-") (number_literal "0x70f8")) (] "]")) (== "==") (subscript_expression "PTR_DAT_0015c698[*param_2 - 0x70f8]" (identifier "PTR_DAT_0015c698") ([ "[") (binary_expression "*param_2 - 0x70f8" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (- "-") (number_literal "0x70f8")) (] "]"))) () ")")) (compound_statement "{\n        do {\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);\n      }" ({ "{") (do_statement "do {\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);" (do "do") (compound_statement "{\n          if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }\n          pbVar7 = pbVar7 + 1;\n          pbVar1 = pbVar6 + 1;\n          uVar4 = (uint)*pbVar7;\n          pbVar6 = pbVar6 + 1;\n        }" ({ "{") (if_statement "if (uVar4 == 0) {\n            return (undefined *)piVar3;\n          }" (if "if") (parenthesized_expression "(uVar4 == 0)" (( "(") (binary_expression "uVar4 == 0" (identifier "uVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            return (undefined *)piVar3;\n          }" ({ "{") (return_statement "return (undefined *)piVar3;" (return "return") (cast_expression "(undefined *)piVar3" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "piVar3")) (; ";")) (} "}"))) (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" (identifier "pbVar7") (= "=") (binary_expression "pbVar7 + 1" (identifier "pbVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar1 = pbVar6 + 1;" (assignment_expression "pbVar1 = pbVar6 + 1" (identifier "pbVar1") (= "=") (binary_expression "pbVar6 + 1" (identifier "pbVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar4 = (uint)*pbVar7;" (assignment_expression "uVar4 = (uint)*pbVar7" (identifier "uVar4") (= "=") (binary_expression "(uint)*pbVar7" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar7"))) (; ";")) (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" (identifier "pbVar6") (= "=") (binary_expression "pbVar6 + 1" (identifier "pbVar6") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8])" (( "(") (binary_expression "PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]" (subscript_expression "PTR_DAT_0015c698[uVar4 - 0x70f8]" (identifier "PTR_DAT_0015c698") ([ "[") (binary_expression "uVar4 - 0x70f8" (identifier "uVar4") (- "-") (number_literal "0x70f8")) (] "]")) (== "==") (subscript_expression "PTR_DAT_0015c698[*pbVar1 - 0x70f8]" (identifier "PTR_DAT_0015c698") ([ "[") (binary_expression "*pbVar1 - 0x70f8" (pointer_expression "*pbVar1" (* "*") (identifier "pbVar1")) (- "-") (number_literal "0x70f8")) (] "]"))) () ")")) (; ";")) (} "}"))) (expression_statement "uVar5 = uVar5 - 1;" (assignment_expression "uVar5 = uVar5 - 1" (identifier "uVar5") (= "=") (binary_expression "uVar5 - 1" (identifier "uVar5") (- "-") (number_literal "1"))) (; ";")) (expression_statement "piVar3 = (int *)*piVar3;" (assignment_expression "piVar3 = (int *)*piVar3" (identifier "piVar3") (= "=") (cast_expression "(int *)*piVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar3" (* "*") (identifier "piVar3")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar5 != 0)" (( "(") (binary_expression "uVar5 != 0" (identifier "uVar5") (!= "!=") (number_literal "0")) () ")")) (; ";")) (return_statement "return PTR_DAT_0015c5d8 + -0x33e0;" (return "return") (binary_expression "PTR_DAT_0015c5d8 + -0x33e0" (identifier "PTR_DAT_0015c5d8") (+ "+") (number_literal "-0x33e0")) (; ";")) (} "}"))) (return_statement "return PTR_DAT_0015c5d8 + -0x33e0;" (return "return") (binary_expression "PTR_DAT_0015c5d8 + -0x33e0" (identifier "PTR_DAT_0015c5d8") (+ "+") (number_literal "-0x33e0")) (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_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 (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (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: (parenthesized_expression (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (identifier))) right: (identifier))) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (pointer_expression argument: (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: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))) right: (subscript_expression argument: (identifier) index: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) consequence: (compound_statement (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))) right: (subscript_expression argument: (identifier) index: (binary_expression left: (pointer_expression argument: (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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (return_statement (binary_expression left: (identifier) right: (number_literal))))) (return_statement (binary_expression left: (identifier) right: (number_literal))))))

undefined * MASKED(uint *param_1,byte *param_2,uint *param_3)

{
  byte *pbVar1;
  int iVar2;
  int *piVar3;
  uint uVar4;
  uint uVar5;
  byte *pbVar6;
  byte *pbVar7;
  uint *puVar8;
  
  uVar4 = 0;
  if (param_1[3] == 0) {
    piVar3 = (int *)param_1[2];
    uVar5 = param_1[1];
  }
  else {
    uVar5 = (uint)*param_2;
    pbVar7 = param_2 + 1;
    if (uVar5 == 0) {
      uVar4 = 0;
    }
    else {
      uVar4 = 0;
      do {
        iVar2 = uVar5 - 0x70f8;
        uVar5 = (uint)*pbVar7;
        pbVar7 = pbVar7 + 1;
        uVar4 = ((byte)PTR_DAT_0015c698[iVar2] + uVar4) * -0x61c8864f;
      } while (uVar5 != 0);
    }
    if (*param_1 == 0) {
      trap(7);
    }
    uVar4 = uVar4 % *param_1;
    puVar8 = (uint *)(param_1[3] + uVar4 * 8);
    piVar3 = (int *)puVar8[1];
    uVar5 = *puVar8;
  }
  if (param_3 != (uint *)0x0) {
    *param_3 = uVar4;
  }
  if (uVar5 != 0) {
    do {
      pbVar7 = (byte *)piVar3[3];
      uVar4 = (uint)*pbVar7;
      pbVar6 = param_2;
      if (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*param_2 - 0x70f8]) {
        do {
          if (uVar4 == 0) {
            return (undefined *)piVar3;
          }
          pbVar7 = pbVar7 + 1;
          pbVar1 = pbVar6 + 1;
          uVar4 = (uint)*pbVar7;
          pbVar6 = pbVar6 + 1;
        } while (PTR_DAT_0015c698[uVar4 - 0x70f8] == PTR_DAT_0015c698[*pbVar1 - 0x70f8]);
      }
      uVar5 = uVar5 - 1;
      piVar3 = (int *)*piVar3;
    } while (uVar5 != 0);
    return PTR_DAT_0015c5d8 + -0x33e0;
  }
  return PTR_DAT_0015c5d8 + -0x33e0;
}

