
void jsonParseFillInParentage(JsonParse *pParse,u32 i,u32 iParent)

{
  int iVar1;
  u32 i_00;
  JsonNode *pJVar2;
  uint uVar3;
  
  pJVar2 = pParse->aNode + i;
  pParse->aUp[i] = iParent;
  if (pJVar2->eType == '\x06') {
    if (pJVar2->n != 0) {
      uVar3 = 1;
      i_00 = i + 1;
      do {
        jsonParseFillInParentage(pParse,i_00,i);
        iVar1 = 1;
        if (5 < pJVar2[uVar3].eType) {
          iVar1 = pJVar2[uVar3].n + 1;
        }
        uVar3 = uVar3 + iVar1;
        i_00 = i + uVar3;
      } while (uVar3 <= pJVar2->n);
      return;
    }
  }
  else if ((pJVar2->eType == '\a') && (pJVar2->n != 0)) {
    uVar3 = 1;
    iVar1 = i + 1;
    do {
      pParse->aUp[iVar1] = i;
      jsonParseFillInParentage(pParse,iVar1 + 1,i);
      iVar1 = 2;
      if (5 < pJVar2[uVar3 + 1].eType) {
        iVar1 = pJVar2[uVar3 + 1].n + 2;
      }
      uVar3 = uVar3 + iVar1;
      iVar1 = i + uVar3;
    } while (uVar3 <= pJVar2->n);
  }
  return;
}



void FUN_00022eb4(int param_1,int param_2,undefined4 param_3)

{
  int iVar1;
  char *pcVar2;
  uint uVar3;
  
  pcVar2 = (char *)(*(int *)(param_1 + 8) + param_2 * 0xc);
  *(undefined4 *)(*(int *)(param_1 + 0x10) + param_2 * 4) = param_3;
  if (*pcVar2 == '\x06') {
    if (*(int *)(pcVar2 + 4) != 0) {
      uVar3 = 1;
      iVar1 = param_2 + 1;
      do {
        FUN_00022eb4(param_1,iVar1,param_2);
        iVar1 = 1;
        if (5 < (byte)pcVar2[uVar3 * 0xc]) {
          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;
        }
        uVar3 = uVar3 + iVar1;
        iVar1 = param_2 + uVar3;
      } while (uVar3 <= *(uint *)(pcVar2 + 4));
      return;
    }
  }
  else if ((*pcVar2 == '\a') && (*(int *)(pcVar2 + 4) != 0)) {
    uVar3 = 1;
    iVar1 = param_2 + 1;
    do {
      *(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2;
      FUN_00022eb4(param_1,iVar1 + 1,param_2);
      iVar1 = 2;
      if (5 < (byte)pcVar2[(uVar3 + 1) * 0xc]) {
        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;
      }
      uVar3 = uVar3 + iVar1;
      iVar1 = param_2 + uVar3;
    } while (uVar3 <= *(uint *)(pcVar2 + 4));
  }
  return;
}


lui gp,0x14
addiu gp,gp,0x6fc
addu gp,gp,t9
addiu sp,sp,-0x30
sll v0,a1,0x1
sw s4,0x28(sp)
or s4,a0,zero
sw s1,0x1c(sp)
or s1,a1,zero
sw gp,0x10(sp)
addu v0,v0,s1
sw ra,0x2c(sp)
sll a1,a1,0x2
sw s3,0x24(sp)
sll v0,v0,0x2
sw s2,0x20(sp)
sw s0,0x18(sp)
lw v1,0x10(a0)
lw s2,0x8(a0)
li a0,0x6
addu v1,v1,a1
addu s2,s2,v0
sw a2,0x0(v1)
lbu v0,0x0(s2)
beq v0,a0,0x00022fc0
_li v1,0x7
bne v0,v1,0x00022fa4
_lw ra,0x2c(sp)
lw v0,0x4(s2)
beq v0,zero,0x00022fa4
_lw s0,-0x7f54(gp)
li s3,0x1
addiu s0,s0,0x2eb4
addu a1,s1,s3
lw v0,0x10(s4)
or a0,s4,zero
sll v1,a1,0x2
addiu a1,a1,0x1
addu v0,v0,v1
or a2,s1,zero
or t9,s0,zero
bal 0x00022eb4
_sw s1,0x0(v0)
addiu v1,s3,0x1
sll v0,v1,0x1
addu v0,v0,v1
sll v0,v0,0x2
addu v0,s2,v0
lbu v1,0x0(v0)
sltiu v1,v1,0x6
bne v1,zero,0x00022f8c
_li a0,0x2
lw a0,0x4(v0)
addiu a0,a0,0x2
lw v0,0x4(s2)
addu s3,s3,a0
sltu v0,v0,s3
beq v0,zero,0x00022f3c
_addu a1,s1,s3
lw ra,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
lw v0,0x4(s2)
beq v0,zero,0x00022fa0
_lw s0,-0x7f54(gp)
li s3,0x1
addiu s0,s0,0x2eb4
addu a1,s1,s3
or a0,s4,zero
or t9,s0,zero
bal 0x00022eb4
_or a2,s1,zero
sll v0,s3,0x1
addu v0,v0,s3
sll v0,v0,0x2
addu v0,s2,v0
lbu v1,0x0(v0)
sltiu v1,v1,0x6
bne v1,zero,0x00023010
_li a0,0x1
lw a0,0x4(v0)
addiu a0,a0,0x1
lw v0,0x4(s2)
addu s3,s3,a0
sltu v0,v0,s3
beq v0,zero,0x00022fd8
_addu a1,s1,s3
lw ra,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "void FUN_00022eb4(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  char *pcVar2;\n  uint uVar3;\n  \n  pcVar2 = (char *)(*(int *)(param_1 + 8) + param_2 * 0xc);\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + param_2 * 4) = param_3;\n  if (*pcVar2 == '\x06') {\n    if (*(int *)(pcVar2 + 4) != 0) {\n      uVar3 = 1;\n      iVar1 = param_2 + 1;\n      do {\n        FUN_00022eb4(param_1,iVar1,param_2);\n        iVar1 = 1;\n        if (5 < (byte)pcVar2[uVar3 * 0xc]) {\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        iVar1 = param_2 + uVar3;\n      } while (uVar3 <= *(uint *)(pcVar2 + 4));\n      return;\n    }\n  }\n  else if ((*pcVar2 == '\a') && (*(int *)(pcVar2 + 4) != 0)) {\n    uVar3 = 1;\n    iVar1 = param_2 + 1;\n    do {\n      *(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2;\n      FUN_00022eb4(param_1,iVar1 + 1,param_2);\n      iVar1 = 2;\n      if (5 < (byte)pcVar2[(uVar3 + 1) * 0xc]) {\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = param_2 + uVar3;\n    } while (uVar3 <= *(uint *)(pcVar2 + 4));\n  }\n  return;\n}\n\n" (function_definition "void FUN_00022eb4(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  char *pcVar2;\n  uint uVar3;\n  \n  pcVar2 = (char *)(*(int *)(param_1 + 8) + param_2 * 0xc);\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + param_2 * 4) = param_3;\n  if (*pcVar2 == '\x06') {\n    if (*(int *)(pcVar2 + 4) != 0) {\n      uVar3 = 1;\n      iVar1 = param_2 + 1;\n      do {\n        FUN_00022eb4(param_1,iVar1,param_2);\n        iVar1 = 1;\n        if (5 < (byte)pcVar2[uVar3 * 0xc]) {\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        iVar1 = param_2 + uVar3;\n      } while (uVar3 <= *(uint *)(pcVar2 + 4));\n      return;\n    }\n  }\n  else if ((*pcVar2 == '\a') && (*(int *)(pcVar2 + 4) != 0)) {\n    uVar3 = 1;\n    iVar1 = param_2 + 1;\n    do {\n      *(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2;\n      FUN_00022eb4(param_1,iVar1 + 1,param_2);\n      iVar1 = 2;\n      if (5 < (byte)pcVar2[(uVar3 + 1) * 0xc]) {\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = param_2 + uVar3;\n    } while (uVar3 <= *(uint *)(pcVar2 + 4));\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00022eb4(int param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  uint uVar3;\n  \n  pcVar2 = (char *)(*(int *)(param_1 + 8) + param_2 * 0xc);\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + param_2 * 4) = param_3;\n  if (*pcVar2 == '\x06') {\n    if (*(int *)(pcVar2 + 4) != 0) {\n      uVar3 = 1;\n      iVar1 = param_2 + 1;\n      do {\n        FUN_00022eb4(param_1,iVar1,param_2);\n        iVar1 = 1;\n        if (5 < (byte)pcVar2[uVar3 * 0xc]) {\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        iVar1 = param_2 + uVar3;\n      } while (uVar3 <= *(uint *)(pcVar2 + 4));\n      return;\n    }\n  }\n  else if ((*pcVar2 == '\a') && (*(int *)(pcVar2 + 4) != 0)) {\n    uVar3 = 1;\n    iVar1 = param_2 + 1;\n    do {\n      *(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2;\n      FUN_00022eb4(param_1,iVar1 + 1,param_2);\n      iVar1 = 2;\n      if (5 < (byte)pcVar2[(uVar3 + 1) * 0xc]) {\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = param_2 + uVar3;\n    } while (uVar3 <= *(uint *)(pcVar2 + 4));\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "pcVar2 = (char *)(*(int *)(param_1 + 8) + param_2 * 0xc);" (assignment_expression "pcVar2 = (char *)(*(int *)(param_1 + 8) + param_2 * 0xc)" identifier = (cast_expression "(char *)(*(int *)(param_1 + 8) + param_2 * 0xc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 8) + param_2 * 0xc)" ( (binary_expression "*(int *)(param_1 + 8) + param_2 * 0xc" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + (binary_expression "param_2 * 0xc" identifier * number_literal)) )))) ;) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x10) + param_2 * 4) = param_3;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + param_2 * 4) = param_3" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + param_2 * 4)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x10) + param_2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + param_2 * 4)" ( (binary_expression "*(int *)(param_1 + 0x10) + param_2 * 4" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (binary_expression "param_2 * 4" identifier * number_literal)) )))) = identifier) ;) (if_statement "if (*pcVar2 == '\x06') {\n    if (*(int *)(pcVar2 + 4) != 0) {\n      uVar3 = 1;\n      iVar1 = param_2 + 1;\n      do {\n        FUN_00022eb4(param_1,iVar1,param_2);\n        iVar1 = 1;\n        if (5 < (byte)pcVar2[uVar3 * 0xc]) {\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        iVar1 = param_2 + uVar3;\n      } while (uVar3 <= *(uint *)(pcVar2 + 4));\n      return;\n    }\n  }\n  else if ((*pcVar2 == '\a') && (*(int *)(pcVar2 + 4) != 0)) {\n    uVar3 = 1;\n    iVar1 = param_2 + 1;\n    do {\n      *(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2;\n      FUN_00022eb4(param_1,iVar1 + 1,param_2);\n      iVar1 = 2;\n      if (5 < (byte)pcVar2[(uVar3 + 1) * 0xc]) {\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = param_2 + uVar3;\n    } while (uVar3 <= *(uint *)(pcVar2 + 4));\n  }" if (parenthesized_expression "(*pcVar2 == '\x06')" ( (binary_expression "*pcVar2 == '\x06'" (pointer_expression "*pcVar2" * identifier) == (char_literal "'\x06'" ' escape_sequence ')) )) (compound_statement "{\n    if (*(int *)(pcVar2 + 4) != 0) {\n      uVar3 = 1;\n      iVar1 = param_2 + 1;\n      do {\n        FUN_00022eb4(param_1,iVar1,param_2);\n        iVar1 = 1;\n        if (5 < (byte)pcVar2[uVar3 * 0xc]) {\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        iVar1 = param_2 + uVar3;\n      } while (uVar3 <= *(uint *)(pcVar2 + 4));\n      return;\n    }\n  }" { (if_statement "if (*(int *)(pcVar2 + 4) != 0) {\n      uVar3 = 1;\n      iVar1 = param_2 + 1;\n      do {\n        FUN_00022eb4(param_1,iVar1,param_2);\n        iVar1 = 1;\n        if (5 < (byte)pcVar2[uVar3 * 0xc]) {\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        iVar1 = param_2 + uVar3;\n      } while (uVar3 <= *(uint *)(pcVar2 + 4));\n      return;\n    }" if (parenthesized_expression "(*(int *)(pcVar2 + 4) != 0)" ( (binary_expression "*(int *)(pcVar2 + 4) != 0" (pointer_expression "*(int *)(pcVar2 + 4)" * (cast_expression "(int *)(pcVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar2 + 4)" ( (binary_expression "pcVar2 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      uVar3 = 1;\n      iVar1 = param_2 + 1;\n      do {\n        FUN_00022eb4(param_1,iVar1,param_2);\n        iVar1 = 1;\n        if (5 < (byte)pcVar2[uVar3 * 0xc]) {\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        iVar1 = param_2 + uVar3;\n      } while (uVar3 <= *(uint *)(pcVar2 + 4));\n      return;\n    }" { (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (expression_statement "iVar1 = param_2 + 1;" (assignment_expression "iVar1 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (do_statement "do {\n        FUN_00022eb4(param_1,iVar1,param_2);\n        iVar1 = 1;\n        if (5 < (byte)pcVar2[uVar3 * 0xc]) {\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        iVar1 = param_2 + uVar3;\n      } while (uVar3 <= *(uint *)(pcVar2 + 4));" do (compound_statement "{\n        FUN_00022eb4(param_1,iVar1,param_2);\n        iVar1 = 1;\n        if (5 < (byte)pcVar2[uVar3 * 0xc]) {\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        iVar1 = param_2 + uVar3;\n      }" { (expression_statement "FUN_00022eb4(param_1,iVar1,param_2);" (call_expression "FUN_00022eb4(param_1,iVar1,param_2)" identifier (argument_list "(param_1,iVar1,param_2)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (if_statement "if (5 < (byte)pcVar2[uVar3 * 0xc]) {\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }" if (parenthesized_expression "(5 < (byte)pcVar2[uVar3 * 0xc])" ( (binary_expression "5 < (byte)pcVar2[uVar3 * 0xc]" number_literal < (cast_expression "(byte)pcVar2[uVar3 * 0xc]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "pcVar2[uVar3 * 0xc]" identifier [ (binary_expression "uVar3 * 0xc" identifier * number_literal) ]))) )) (compound_statement "{\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }" { (expression_statement "iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;" (assignment_expression "iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1" identifier = (binary_expression "*(int *)(pcVar2 + uVar3 * 0xc + 4) + 1" (pointer_expression "*(int *)(pcVar2 + uVar3 * 0xc + 4)" * (cast_expression "(int *)(pcVar2 + uVar3 * 0xc + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar2 + uVar3 * 0xc + 4)" ( (binary_expression "pcVar2 + uVar3 * 0xc + 4" (binary_expression "pcVar2 + uVar3 * 0xc" identifier + (binary_expression "uVar3 * 0xc" identifier * number_literal)) + number_literal) )))) + number_literal)) ;) })) (expression_statement "uVar3 = uVar3 + iVar1;" (assignment_expression "uVar3 = uVar3 + iVar1" identifier = (binary_expression "uVar3 + iVar1" identifier + identifier)) ;) (expression_statement "iVar1 = param_2 + uVar3;" (assignment_expression "iVar1 = param_2 + uVar3" identifier = (binary_expression "param_2 + uVar3" identifier + identifier)) ;) }) while (parenthesized_expression "(uVar3 <= *(uint *)(pcVar2 + 4))" ( (binary_expression "uVar3 <= *(uint *)(pcVar2 + 4)" identifier <= (pointer_expression "*(uint *)(pcVar2 + 4)" * (cast_expression "(uint *)(pcVar2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar2 + 4)" ( (binary_expression "pcVar2 + 4" identifier + number_literal) ))))) )) ;) (return_statement "return;" return ;) })) }) (else_clause "else if ((*pcVar2 == '\a') && (*(int *)(pcVar2 + 4) != 0)) {\n    uVar3 = 1;\n    iVar1 = param_2 + 1;\n    do {\n      *(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2;\n      FUN_00022eb4(param_1,iVar1 + 1,param_2);\n      iVar1 = 2;\n      if (5 < (byte)pcVar2[(uVar3 + 1) * 0xc]) {\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = param_2 + uVar3;\n    } while (uVar3 <= *(uint *)(pcVar2 + 4));\n  }" else (if_statement "if ((*pcVar2 == '\a') && (*(int *)(pcVar2 + 4) != 0)) {\n    uVar3 = 1;\n    iVar1 = param_2 + 1;\n    do {\n      *(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2;\n      FUN_00022eb4(param_1,iVar1 + 1,param_2);\n      iVar1 = 2;\n      if (5 < (byte)pcVar2[(uVar3 + 1) * 0xc]) {\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = param_2 + uVar3;\n    } while (uVar3 <= *(uint *)(pcVar2 + 4));\n  }" if (parenthesized_expression "((*pcVar2 == '\a') && (*(int *)(pcVar2 + 4) != 0))" ( (binary_expression "(*pcVar2 == '\a') && (*(int *)(pcVar2 + 4) != 0)" (parenthesized_expression "(*pcVar2 == '\a')" ( (binary_expression "*pcVar2 == '\a'" (pointer_expression "*pcVar2" * identifier) == (char_literal "'\a'" ' escape_sequence ')) )) && (parenthesized_expression "(*(int *)(pcVar2 + 4) != 0)" ( (binary_expression "*(int *)(pcVar2 + 4) != 0" (pointer_expression "*(int *)(pcVar2 + 4)" * (cast_expression "(int *)(pcVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar2 + 4)" ( (binary_expression "pcVar2 + 4" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    uVar3 = 1;\n    iVar1 = param_2 + 1;\n    do {\n      *(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2;\n      FUN_00022eb4(param_1,iVar1 + 1,param_2);\n      iVar1 = 2;\n      if (5 < (byte)pcVar2[(uVar3 + 1) * 0xc]) {\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = param_2 + uVar3;\n    } while (uVar3 <= *(uint *)(pcVar2 + 4));\n  }" { (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (expression_statement "iVar1 = param_2 + 1;" (assignment_expression "iVar1 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (do_statement "do {\n      *(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2;\n      FUN_00022eb4(param_1,iVar1 + 1,param_2);\n      iVar1 = 2;\n      if (5 < (byte)pcVar2[(uVar3 + 1) * 0xc]) {\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = param_2 + uVar3;\n    } while (uVar3 <= *(uint *)(pcVar2 + 4));" do (compound_statement "{\n      *(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2;\n      FUN_00022eb4(param_1,iVar1 + 1,param_2);\n      iVar1 = 2;\n      if (5 < (byte)pcVar2[(uVar3 + 1) * 0xc]) {\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = param_2 + uVar3;\n    }" { (expression_statement "*(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2;" (assignment_expression "*(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2" (pointer_expression "*(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4)" * (cast_expression "(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + iVar1 * 4)" ( (binary_expression "*(int *)(param_1 + 0x10) + iVar1 * 4" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "FUN_00022eb4(param_1,iVar1 + 1,param_2);" (call_expression "FUN_00022eb4(param_1,iVar1 + 1,param_2)" identifier (argument_list "(param_1,iVar1 + 1,param_2)" ( identifier , (binary_expression "iVar1 + 1" identifier + number_literal) , identifier ))) ;) (expression_statement "iVar1 = 2;" (assignment_expression "iVar1 = 2" identifier = number_literal) ;) (if_statement "if (5 < (byte)pcVar2[(uVar3 + 1) * 0xc]) {\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }" if (parenthesized_expression "(5 < (byte)pcVar2[(uVar3 + 1) * 0xc])" ( (binary_expression "5 < (byte)pcVar2[(uVar3 + 1) * 0xc]" number_literal < (cast_expression "(byte)pcVar2[(uVar3 + 1) * 0xc]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "pcVar2[(uVar3 + 1) * 0xc]" identifier [ (binary_expression "(uVar3 + 1) * 0xc" (parenthesized_expression "(uVar3 + 1)" ( (binary_expression "uVar3 + 1" identifier + number_literal) )) * number_literal) ]))) )) (compound_statement "{\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }" { (expression_statement "iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;" (assignment_expression "iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2" identifier = (binary_expression "*(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2" (pointer_expression "*(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4)" * (cast_expression "(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar2 + (uVar3 + 1) * 0xc + 4)" ( (binary_expression "pcVar2 + (uVar3 + 1) * 0xc + 4" (binary_expression "pcVar2 + (uVar3 + 1) * 0xc" identifier + (binary_expression "(uVar3 + 1) * 0xc" (parenthesized_expression "(uVar3 + 1)" ( (binary_expression "uVar3 + 1" identifier + number_literal) )) * number_literal)) + number_literal) )))) + number_literal)) ;) })) (expression_statement "uVar3 = uVar3 + iVar1;" (assignment_expression "uVar3 = uVar3 + iVar1" identifier = (binary_expression "uVar3 + iVar1" identifier + identifier)) ;) (expression_statement "iVar1 = param_2 + uVar3;" (assignment_expression "iVar1 = param_2 + uVar3" identifier = (binary_expression "param_2 + uVar3" identifier + identifier)) ;) }) while (parenthesized_expression "(uVar3 <= *(uint *)(pcVar2 + 4))" ( (binary_expression "uVar3 <= *(uint *)(pcVar2 + 4)" identifier <= (pointer_expression "*(uint *)(pcVar2 + 4)" * (cast_expression "(uint *)(pcVar2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar2 + 4)" ( (binary_expression "pcVar2 + 4" identifier + number_literal) ))))) )) ;) })))) (return_statement "return;" return ;) })))
(translation_unit "void jsonParseFillInParentage(JsonParse *pParse,u32 i,u32 iParent)\n\n{\n  int iVar1;\n  u32 i_00;\n  JsonNode *pJVar2;\n  uint uVar3;\n  \n  pJVar2 = pParse->aNode + i;\n  pParse->aUp[i] = iParent;\n  if (pJVar2->eType == '\x06') {\n    if (pJVar2->n != 0) {\n      uVar3 = 1;\n      i_00 = i + 1;\n      do {\n        jsonParseFillInParentage(pParse,i_00,i);\n        iVar1 = 1;\n        if (5 < pJVar2[uVar3].eType) {\n          iVar1 = pJVar2[uVar3].n + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        i_00 = i + uVar3;\n      } while (uVar3 <= pJVar2->n);\n      return;\n    }\n  }\n  else if ((pJVar2->eType == '\a') && (pJVar2->n != 0)) {\n    uVar3 = 1;\n    iVar1 = i + 1;\n    do {\n      pParse->aUp[iVar1] = i;\n      jsonParseFillInParentage(pParse,iVar1 + 1,i);\n      iVar1 = 2;\n      if (5 < pJVar2[uVar3 + 1].eType) {\n        iVar1 = pJVar2[uVar3 + 1].n + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = i + uVar3;\n    } while (uVar3 <= pJVar2->n);\n  }\n  return;\n}\n\n" (function_definition "void jsonParseFillInParentage(JsonParse *pParse,u32 i,u32 iParent)\n\n{\n  int iVar1;\n  u32 i_00;\n  JsonNode *pJVar2;\n  uint uVar3;\n  \n  pJVar2 = pParse->aNode + i;\n  pParse->aUp[i] = iParent;\n  if (pJVar2->eType == '\x06') {\n    if (pJVar2->n != 0) {\n      uVar3 = 1;\n      i_00 = i + 1;\n      do {\n        jsonParseFillInParentage(pParse,i_00,i);\n        iVar1 = 1;\n        if (5 < pJVar2[uVar3].eType) {\n          iVar1 = pJVar2[uVar3].n + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        i_00 = i + uVar3;\n      } while (uVar3 <= pJVar2->n);\n      return;\n    }\n  }\n  else if ((pJVar2->eType == '\a') && (pJVar2->n != 0)) {\n    uVar3 = 1;\n    iVar1 = i + 1;\n    do {\n      pParse->aUp[iVar1] = i;\n      jsonParseFillInParentage(pParse,iVar1 + 1,i);\n      iVar1 = 2;\n      if (5 < pJVar2[uVar3 + 1].eType) {\n        iVar1 = pJVar2[uVar3 + 1].n + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = i + uVar3;\n    } while (uVar3 <= pJVar2->n);\n  }\n  return;\n}" primitive_type (function_declarator "jsonParseFillInParentage(JsonParse *pParse,u32 i,u32 iParent)" identifier (parameter_list "(JsonParse *pParse,u32 i,u32 iParent)" ( (parameter_declaration "JsonParse *pParse" type_identifier (pointer_declarator "*pParse" * identifier)) , (parameter_declaration "u32 i" type_identifier identifier) , (parameter_declaration "u32 iParent" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  u32 i_00;\n  JsonNode *pJVar2;\n  uint uVar3;\n  \n  pJVar2 = pParse->aNode + i;\n  pParse->aUp[i] = iParent;\n  if (pJVar2->eType == '\x06') {\n    if (pJVar2->n != 0) {\n      uVar3 = 1;\n      i_00 = i + 1;\n      do {\n        jsonParseFillInParentage(pParse,i_00,i);\n        iVar1 = 1;\n        if (5 < pJVar2[uVar3].eType) {\n          iVar1 = pJVar2[uVar3].n + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        i_00 = i + uVar3;\n      } while (uVar3 <= pJVar2->n);\n      return;\n    }\n  }\n  else if ((pJVar2->eType == '\a') && (pJVar2->n != 0)) {\n    uVar3 = 1;\n    iVar1 = i + 1;\n    do {\n      pParse->aUp[iVar1] = i;\n      jsonParseFillInParentage(pParse,iVar1 + 1,i);\n      iVar1 = 2;\n      if (5 < pJVar2[uVar3 + 1].eType) {\n        iVar1 = pJVar2[uVar3 + 1].n + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = i + uVar3;\n    } while (uVar3 <= pJVar2->n);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "u32 i_00;" type_identifier identifier ;) (declaration "JsonNode *pJVar2;" type_identifier (pointer_declarator "*pJVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "pJVar2 = pParse->aNode + i;" (assignment_expression "pJVar2 = pParse->aNode + i" identifier = (binary_expression "pParse->aNode + i" (field_expression "pParse->aNode" identifier -> field_identifier) + identifier)) ;) (expression_statement "pParse->aUp[i] = iParent;" (assignment_expression "pParse->aUp[i] = iParent" (subscript_expression "pParse->aUp[i]" (field_expression "pParse->aUp" identifier -> field_identifier) [ identifier ]) = identifier) ;) (if_statement "if (pJVar2->eType == '\x06') {\n    if (pJVar2->n != 0) {\n      uVar3 = 1;\n      i_00 = i + 1;\n      do {\n        jsonParseFillInParentage(pParse,i_00,i);\n        iVar1 = 1;\n        if (5 < pJVar2[uVar3].eType) {\n          iVar1 = pJVar2[uVar3].n + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        i_00 = i + uVar3;\n      } while (uVar3 <= pJVar2->n);\n      return;\n    }\n  }\n  else if ((pJVar2->eType == '\a') && (pJVar2->n != 0)) {\n    uVar3 = 1;\n    iVar1 = i + 1;\n    do {\n      pParse->aUp[iVar1] = i;\n      jsonParseFillInParentage(pParse,iVar1 + 1,i);\n      iVar1 = 2;\n      if (5 < pJVar2[uVar3 + 1].eType) {\n        iVar1 = pJVar2[uVar3 + 1].n + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = i + uVar3;\n    } while (uVar3 <= pJVar2->n);\n  }" if (parenthesized_expression "(pJVar2->eType == '\x06')" ( (binary_expression "pJVar2->eType == '\x06'" (field_expression "pJVar2->eType" identifier -> field_identifier) == (char_literal "'\x06'" ' escape_sequence ')) )) (compound_statement "{\n    if (pJVar2->n != 0) {\n      uVar3 = 1;\n      i_00 = i + 1;\n      do {\n        jsonParseFillInParentage(pParse,i_00,i);\n        iVar1 = 1;\n        if (5 < pJVar2[uVar3].eType) {\n          iVar1 = pJVar2[uVar3].n + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        i_00 = i + uVar3;\n      } while (uVar3 <= pJVar2->n);\n      return;\n    }\n  }" { (if_statement "if (pJVar2->n != 0) {\n      uVar3 = 1;\n      i_00 = i + 1;\n      do {\n        jsonParseFillInParentage(pParse,i_00,i);\n        iVar1 = 1;\n        if (5 < pJVar2[uVar3].eType) {\n          iVar1 = pJVar2[uVar3].n + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        i_00 = i + uVar3;\n      } while (uVar3 <= pJVar2->n);\n      return;\n    }" if (parenthesized_expression "(pJVar2->n != 0)" ( (binary_expression "pJVar2->n != 0" (field_expression "pJVar2->n" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n      uVar3 = 1;\n      i_00 = i + 1;\n      do {\n        jsonParseFillInParentage(pParse,i_00,i);\n        iVar1 = 1;\n        if (5 < pJVar2[uVar3].eType) {\n          iVar1 = pJVar2[uVar3].n + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        i_00 = i + uVar3;\n      } while (uVar3 <= pJVar2->n);\n      return;\n    }" { (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (expression_statement "i_00 = i + 1;" (assignment_expression "i_00 = i + 1" identifier = (binary_expression "i + 1" identifier + number_literal)) ;) (do_statement "do {\n        jsonParseFillInParentage(pParse,i_00,i);\n        iVar1 = 1;\n        if (5 < pJVar2[uVar3].eType) {\n          iVar1 = pJVar2[uVar3].n + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        i_00 = i + uVar3;\n      } while (uVar3 <= pJVar2->n);" do (compound_statement "{\n        jsonParseFillInParentage(pParse,i_00,i);\n        iVar1 = 1;\n        if (5 < pJVar2[uVar3].eType) {\n          iVar1 = pJVar2[uVar3].n + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        i_00 = i + uVar3;\n      }" { (expression_statement "jsonParseFillInParentage(pParse,i_00,i);" (call_expression "jsonParseFillInParentage(pParse,i_00,i)" identifier (argument_list "(pParse,i_00,i)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (if_statement "if (5 < pJVar2[uVar3].eType) {\n          iVar1 = pJVar2[uVar3].n + 1;\n        }" if (parenthesized_expression "(5 < pJVar2[uVar3].eType)" ( (binary_expression "5 < pJVar2[uVar3].eType" number_literal < (field_expression "pJVar2[uVar3].eType" (subscript_expression "pJVar2[uVar3]" identifier [ identifier ]) . field_identifier)) )) (compound_statement "{\n          iVar1 = pJVar2[uVar3].n + 1;\n        }" { (expression_statement "iVar1 = pJVar2[uVar3].n + 1;" (assignment_expression "iVar1 = pJVar2[uVar3].n + 1" identifier = (binary_expression "pJVar2[uVar3].n + 1" (field_expression "pJVar2[uVar3].n" (subscript_expression "pJVar2[uVar3]" identifier [ identifier ]) . field_identifier) + number_literal)) ;) })) (expression_statement "uVar3 = uVar3 + iVar1;" (assignment_expression "uVar3 = uVar3 + iVar1" identifier = (binary_expression "uVar3 + iVar1" identifier + identifier)) ;) (expression_statement "i_00 = i + uVar3;" (assignment_expression "i_00 = i + uVar3" identifier = (binary_expression "i + uVar3" identifier + identifier)) ;) }) while (parenthesized_expression "(uVar3 <= pJVar2->n)" ( (binary_expression "uVar3 <= pJVar2->n" identifier <= (field_expression "pJVar2->n" identifier -> field_identifier)) )) ;) (return_statement "return;" return ;) })) }) (else_clause "else if ((pJVar2->eType == '\a') && (pJVar2->n != 0)) {\n    uVar3 = 1;\n    iVar1 = i + 1;\n    do {\n      pParse->aUp[iVar1] = i;\n      jsonParseFillInParentage(pParse,iVar1 + 1,i);\n      iVar1 = 2;\n      if (5 < pJVar2[uVar3 + 1].eType) {\n        iVar1 = pJVar2[uVar3 + 1].n + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = i + uVar3;\n    } while (uVar3 <= pJVar2->n);\n  }" else (if_statement "if ((pJVar2->eType == '\a') && (pJVar2->n != 0)) {\n    uVar3 = 1;\n    iVar1 = i + 1;\n    do {\n      pParse->aUp[iVar1] = i;\n      jsonParseFillInParentage(pParse,iVar1 + 1,i);\n      iVar1 = 2;\n      if (5 < pJVar2[uVar3 + 1].eType) {\n        iVar1 = pJVar2[uVar3 + 1].n + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = i + uVar3;\n    } while (uVar3 <= pJVar2->n);\n  }" if (parenthesized_expression "((pJVar2->eType == '\a') && (pJVar2->n != 0))" ( (binary_expression "(pJVar2->eType == '\a') && (pJVar2->n != 0)" (parenthesized_expression "(pJVar2->eType == '\a')" ( (binary_expression "pJVar2->eType == '\a'" (field_expression "pJVar2->eType" identifier -> field_identifier) == (char_literal "'\a'" ' escape_sequence ')) )) && (parenthesized_expression "(pJVar2->n != 0)" ( (binary_expression "pJVar2->n != 0" (field_expression "pJVar2->n" identifier -> field_identifier) != number_literal) ))) )) (compound_statement "{\n    uVar3 = 1;\n    iVar1 = i + 1;\n    do {\n      pParse->aUp[iVar1] = i;\n      jsonParseFillInParentage(pParse,iVar1 + 1,i);\n      iVar1 = 2;\n      if (5 < pJVar2[uVar3 + 1].eType) {\n        iVar1 = pJVar2[uVar3 + 1].n + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = i + uVar3;\n    } while (uVar3 <= pJVar2->n);\n  }" { (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (expression_statement "iVar1 = i + 1;" (assignment_expression "iVar1 = i + 1" identifier = (binary_expression "i + 1" identifier + number_literal)) ;) (do_statement "do {\n      pParse->aUp[iVar1] = i;\n      jsonParseFillInParentage(pParse,iVar1 + 1,i);\n      iVar1 = 2;\n      if (5 < pJVar2[uVar3 + 1].eType) {\n        iVar1 = pJVar2[uVar3 + 1].n + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = i + uVar3;\n    } while (uVar3 <= pJVar2->n);" do (compound_statement "{\n      pParse->aUp[iVar1] = i;\n      jsonParseFillInParentage(pParse,iVar1 + 1,i);\n      iVar1 = 2;\n      if (5 < pJVar2[uVar3 + 1].eType) {\n        iVar1 = pJVar2[uVar3 + 1].n + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = i + uVar3;\n    }" { (expression_statement "pParse->aUp[iVar1] = i;" (assignment_expression "pParse->aUp[iVar1] = i" (subscript_expression "pParse->aUp[iVar1]" (field_expression "pParse->aUp" identifier -> field_identifier) [ identifier ]) = identifier) ;) (expression_statement "jsonParseFillInParentage(pParse,iVar1 + 1,i);" (call_expression "jsonParseFillInParentage(pParse,iVar1 + 1,i)" identifier (argument_list "(pParse,iVar1 + 1,i)" ( identifier , (binary_expression "iVar1 + 1" identifier + number_literal) , identifier ))) ;) (expression_statement "iVar1 = 2;" (assignment_expression "iVar1 = 2" identifier = number_literal) ;) (if_statement "if (5 < pJVar2[uVar3 + 1].eType) {\n        iVar1 = pJVar2[uVar3 + 1].n + 2;\n      }" if (parenthesized_expression "(5 < pJVar2[uVar3 + 1].eType)" ( (binary_expression "5 < pJVar2[uVar3 + 1].eType" number_literal < (field_expression "pJVar2[uVar3 + 1].eType" (subscript_expression "pJVar2[uVar3 + 1]" identifier [ (binary_expression "uVar3 + 1" identifier + number_literal) ]) . field_identifier)) )) (compound_statement "{\n        iVar1 = pJVar2[uVar3 + 1].n + 2;\n      }" { (expression_statement "iVar1 = pJVar2[uVar3 + 1].n + 2;" (assignment_expression "iVar1 = pJVar2[uVar3 + 1].n + 2" identifier = (binary_expression "pJVar2[uVar3 + 1].n + 2" (field_expression "pJVar2[uVar3 + 1].n" (subscript_expression "pJVar2[uVar3 + 1]" identifier [ (binary_expression "uVar3 + 1" identifier + number_literal) ]) . field_identifier) + number_literal)) ;) })) (expression_statement "uVar3 = uVar3 + iVar1;" (assignment_expression "uVar3 = uVar3 + iVar1" identifier = (binary_expression "uVar3 + iVar1" identifier + identifier)) ;) (expression_statement "iVar1 = i + uVar3;" (assignment_expression "iVar1 = i + uVar3" identifier = (binary_expression "i + uVar3" identifier + identifier)) ;) }) while (parenthesized_expression "(uVar3 <= pJVar2->n)" ( (binary_expression "uVar3 <= pJVar2->n" identifier <= (field_expression "pJVar2->n" identifier -> field_identifier)) )) ;) })))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00022eb4(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  char *pcVar2;\n  uint uVar3;\n  \n  pcVar2 = (char *)(*(int *)(param_1 + 8) + param_2 * 0xc);\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + param_2 * 4) = param_3;\n  if (*pcVar2 == '\x06') {\n    if (*(int *)(pcVar2 + 4) != 0) {\n      uVar3 = 1;\n      iVar1 = param_2 + 1;\n      do {\n        FUN_00022eb4(param_1,iVar1,param_2);\n        iVar1 = 1;\n        if (5 < (byte)pcVar2[uVar3 * 0xc]) {\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        iVar1 = param_2 + uVar3;\n      } while (uVar3 <= *(uint *)(pcVar2 + 4));\n      return;\n    }\n  }\n  else if ((*pcVar2 == '\a') && (*(int *)(pcVar2 + 4) != 0)) {\n    uVar3 = 1;\n    iVar1 = param_2 + 1;\n    do {\n      *(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2;\n      FUN_00022eb4(param_1,iVar1 + 1,param_2);\n      iVar1 = 2;\n      if (5 < (byte)pcVar2[(uVar3 + 1) * 0xc]) {\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = param_2 + uVar3;\n    } while (uVar3 <= *(uint *)(pcVar2 + 4));\n  }\n  return;\n}\n\n" (function_definition "void FUN_00022eb4(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  char *pcVar2;\n  uint uVar3;\n  \n  pcVar2 = (char *)(*(int *)(param_1 + 8) + param_2 * 0xc);\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + param_2 * 4) = param_3;\n  if (*pcVar2 == '\x06') {\n    if (*(int *)(pcVar2 + 4) != 0) {\n      uVar3 = 1;\n      iVar1 = param_2 + 1;\n      do {\n        FUN_00022eb4(param_1,iVar1,param_2);\n        iVar1 = 1;\n        if (5 < (byte)pcVar2[uVar3 * 0xc]) {\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        iVar1 = param_2 + uVar3;\n      } while (uVar3 <= *(uint *)(pcVar2 + 4));\n      return;\n    }\n  }\n  else if ((*pcVar2 == '\a') && (*(int *)(pcVar2 + 4) != 0)) {\n    uVar3 = 1;\n    iVar1 = param_2 + 1;\n    do {\n      *(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2;\n      FUN_00022eb4(param_1,iVar1 + 1,param_2);\n      iVar1 = 2;\n      if (5 < (byte)pcVar2[(uVar3 + 1) * 0xc]) {\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = param_2 + uVar3;\n    } while (uVar3 <= *(uint *)(pcVar2 + 4));\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00022eb4(int param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  uint uVar3;\n  \n  pcVar2 = (char *)(*(int *)(param_1 + 8) + param_2 * 0xc);\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + param_2 * 4) = param_3;\n  if (*pcVar2 == '\x06') {\n    if (*(int *)(pcVar2 + 4) != 0) {\n      uVar3 = 1;\n      iVar1 = param_2 + 1;\n      do {\n        FUN_00022eb4(param_1,iVar1,param_2);\n        iVar1 = 1;\n        if (5 < (byte)pcVar2[uVar3 * 0xc]) {\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        iVar1 = param_2 + uVar3;\n      } while (uVar3 <= *(uint *)(pcVar2 + 4));\n      return;\n    }\n  }\n  else if ((*pcVar2 == '\a') && (*(int *)(pcVar2 + 4) != 0)) {\n    uVar3 = 1;\n    iVar1 = param_2 + 1;\n    do {\n      *(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2;\n      FUN_00022eb4(param_1,iVar1 + 1,param_2);\n      iVar1 = 2;\n      if (5 < (byte)pcVar2[(uVar3 + 1) * 0xc]) {\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = param_2 + uVar3;\n    } while (uVar3 <= *(uint *)(pcVar2 + 4));\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "pcVar2 = (char *)(*(int *)(param_1 + 8) + param_2 * 0xc);" (assignment_expression "pcVar2 = (char *)(*(int *)(param_1 + 8) + param_2 * 0xc)" identifier = (cast_expression "(char *)(*(int *)(param_1 + 8) + param_2 * 0xc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 8) + param_2 * 0xc)" ( (binary_expression "*(int *)(param_1 + 8) + param_2 * 0xc" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + (binary_expression "param_2 * 0xc" identifier * number_literal)) )))) ;) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x10) + param_2 * 4) = param_3;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + param_2 * 4) = param_3" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + param_2 * 4)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x10) + param_2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + param_2 * 4)" ( (binary_expression "*(int *)(param_1 + 0x10) + param_2 * 4" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (binary_expression "param_2 * 4" identifier * number_literal)) )))) = identifier) ;) (if_statement "if (*pcVar2 == '\x06') {\n    if (*(int *)(pcVar2 + 4) != 0) {\n      uVar3 = 1;\n      iVar1 = param_2 + 1;\n      do {\n        FUN_00022eb4(param_1,iVar1,param_2);\n        iVar1 = 1;\n        if (5 < (byte)pcVar2[uVar3 * 0xc]) {\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        iVar1 = param_2 + uVar3;\n      } while (uVar3 <= *(uint *)(pcVar2 + 4));\n      return;\n    }\n  }\n  else if ((*pcVar2 == '\a') && (*(int *)(pcVar2 + 4) != 0)) {\n    uVar3 = 1;\n    iVar1 = param_2 + 1;\n    do {\n      *(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2;\n      FUN_00022eb4(param_1,iVar1 + 1,param_2);\n      iVar1 = 2;\n      if (5 < (byte)pcVar2[(uVar3 + 1) * 0xc]) {\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = param_2 + uVar3;\n    } while (uVar3 <= *(uint *)(pcVar2 + 4));\n  }" if (parenthesized_expression "(*pcVar2 == '\x06')" ( (binary_expression "*pcVar2 == '\x06'" (pointer_expression "*pcVar2" * identifier) == (char_literal "'\x06'" ' escape_sequence ')) )) (compound_statement "{\n    if (*(int *)(pcVar2 + 4) != 0) {\n      uVar3 = 1;\n      iVar1 = param_2 + 1;\n      do {\n        FUN_00022eb4(param_1,iVar1,param_2);\n        iVar1 = 1;\n        if (5 < (byte)pcVar2[uVar3 * 0xc]) {\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        iVar1 = param_2 + uVar3;\n      } while (uVar3 <= *(uint *)(pcVar2 + 4));\n      return;\n    }\n  }" { (if_statement "if (*(int *)(pcVar2 + 4) != 0) {\n      uVar3 = 1;\n      iVar1 = param_2 + 1;\n      do {\n        FUN_00022eb4(param_1,iVar1,param_2);\n        iVar1 = 1;\n        if (5 < (byte)pcVar2[uVar3 * 0xc]) {\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        iVar1 = param_2 + uVar3;\n      } while (uVar3 <= *(uint *)(pcVar2 + 4));\n      return;\n    }" if (parenthesized_expression "(*(int *)(pcVar2 + 4) != 0)" ( (binary_expression "*(int *)(pcVar2 + 4) != 0" (pointer_expression "*(int *)(pcVar2 + 4)" * (cast_expression "(int *)(pcVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar2 + 4)" ( (binary_expression "pcVar2 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      uVar3 = 1;\n      iVar1 = param_2 + 1;\n      do {\n        FUN_00022eb4(param_1,iVar1,param_2);\n        iVar1 = 1;\n        if (5 < (byte)pcVar2[uVar3 * 0xc]) {\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        iVar1 = param_2 + uVar3;\n      } while (uVar3 <= *(uint *)(pcVar2 + 4));\n      return;\n    }" { (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (expression_statement "iVar1 = param_2 + 1;" (assignment_expression "iVar1 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (do_statement "do {\n        FUN_00022eb4(param_1,iVar1,param_2);\n        iVar1 = 1;\n        if (5 < (byte)pcVar2[uVar3 * 0xc]) {\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        iVar1 = param_2 + uVar3;\n      } while (uVar3 <= *(uint *)(pcVar2 + 4));" do (compound_statement "{\n        FUN_00022eb4(param_1,iVar1,param_2);\n        iVar1 = 1;\n        if (5 < (byte)pcVar2[uVar3 * 0xc]) {\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        iVar1 = param_2 + uVar3;\n      }" { (expression_statement "FUN_00022eb4(param_1,iVar1,param_2);" (call_expression "FUN_00022eb4(param_1,iVar1,param_2)" identifier (argument_list "(param_1,iVar1,param_2)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (if_statement "if (5 < (byte)pcVar2[uVar3 * 0xc]) {\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }" if (parenthesized_expression "(5 < (byte)pcVar2[uVar3 * 0xc])" ( (binary_expression "5 < (byte)pcVar2[uVar3 * 0xc]" number_literal < (cast_expression "(byte)pcVar2[uVar3 * 0xc]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "pcVar2[uVar3 * 0xc]" identifier [ (binary_expression "uVar3 * 0xc" identifier * number_literal) ]))) )) (compound_statement "{\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }" { (expression_statement "iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;" (assignment_expression "iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1" identifier = (binary_expression "*(int *)(pcVar2 + uVar3 * 0xc + 4) + 1" (pointer_expression "*(int *)(pcVar2 + uVar3 * 0xc + 4)" * (cast_expression "(int *)(pcVar2 + uVar3 * 0xc + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar2 + uVar3 * 0xc + 4)" ( (binary_expression "pcVar2 + uVar3 * 0xc + 4" (binary_expression "pcVar2 + uVar3 * 0xc" identifier + (binary_expression "uVar3 * 0xc" identifier * number_literal)) + number_literal) )))) + number_literal)) ;) })) (expression_statement "uVar3 = uVar3 + iVar1;" (assignment_expression "uVar3 = uVar3 + iVar1" identifier = (binary_expression "uVar3 + iVar1" identifier + identifier)) ;) (expression_statement "iVar1 = param_2 + uVar3;" (assignment_expression "iVar1 = param_2 + uVar3" identifier = (binary_expression "param_2 + uVar3" identifier + identifier)) ;) }) while (parenthesized_expression "(uVar3 <= *(uint *)(pcVar2 + 4))" ( (binary_expression "uVar3 <= *(uint *)(pcVar2 + 4)" identifier <= (pointer_expression "*(uint *)(pcVar2 + 4)" * (cast_expression "(uint *)(pcVar2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar2 + 4)" ( (binary_expression "pcVar2 + 4" identifier + number_literal) ))))) )) ;) (return_statement "return;" return ;) })) }) (else_clause "else if ((*pcVar2 == '\a') && (*(int *)(pcVar2 + 4) != 0)) {\n    uVar3 = 1;\n    iVar1 = param_2 + 1;\n    do {\n      *(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2;\n      FUN_00022eb4(param_1,iVar1 + 1,param_2);\n      iVar1 = 2;\n      if (5 < (byte)pcVar2[(uVar3 + 1) * 0xc]) {\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = param_2 + uVar3;\n    } while (uVar3 <= *(uint *)(pcVar2 + 4));\n  }" else (if_statement "if ((*pcVar2 == '\a') && (*(int *)(pcVar2 + 4) != 0)) {\n    uVar3 = 1;\n    iVar1 = param_2 + 1;\n    do {\n      *(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2;\n      FUN_00022eb4(param_1,iVar1 + 1,param_2);\n      iVar1 = 2;\n      if (5 < (byte)pcVar2[(uVar3 + 1) * 0xc]) {\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = param_2 + uVar3;\n    } while (uVar3 <= *(uint *)(pcVar2 + 4));\n  }" if (parenthesized_expression "((*pcVar2 == '\a') && (*(int *)(pcVar2 + 4) != 0))" ( (binary_expression "(*pcVar2 == '\a') && (*(int *)(pcVar2 + 4) != 0)" (parenthesized_expression "(*pcVar2 == '\a')" ( (binary_expression "*pcVar2 == '\a'" (pointer_expression "*pcVar2" * identifier) == (char_literal "'\a'" ' escape_sequence ')) )) && (parenthesized_expression "(*(int *)(pcVar2 + 4) != 0)" ( (binary_expression "*(int *)(pcVar2 + 4) != 0" (pointer_expression "*(int *)(pcVar2 + 4)" * (cast_expression "(int *)(pcVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar2 + 4)" ( (binary_expression "pcVar2 + 4" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    uVar3 = 1;\n    iVar1 = param_2 + 1;\n    do {\n      *(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2;\n      FUN_00022eb4(param_1,iVar1 + 1,param_2);\n      iVar1 = 2;\n      if (5 < (byte)pcVar2[(uVar3 + 1) * 0xc]) {\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = param_2 + uVar3;\n    } while (uVar3 <= *(uint *)(pcVar2 + 4));\n  }" { (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (expression_statement "iVar1 = param_2 + 1;" (assignment_expression "iVar1 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (do_statement "do {\n      *(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2;\n      FUN_00022eb4(param_1,iVar1 + 1,param_2);\n      iVar1 = 2;\n      if (5 < (byte)pcVar2[(uVar3 + 1) * 0xc]) {\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = param_2 + uVar3;\n    } while (uVar3 <= *(uint *)(pcVar2 + 4));" do (compound_statement "{\n      *(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2;\n      FUN_00022eb4(param_1,iVar1 + 1,param_2);\n      iVar1 = 2;\n      if (5 < (byte)pcVar2[(uVar3 + 1) * 0xc]) {\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = param_2 + uVar3;\n    }" { (expression_statement "*(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2;" (assignment_expression "*(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2" (pointer_expression "*(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4)" * (cast_expression "(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + iVar1 * 4)" ( (binary_expression "*(int *)(param_1 + 0x10) + iVar1 * 4" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "FUN_00022eb4(param_1,iVar1 + 1,param_2);" (call_expression "FUN_00022eb4(param_1,iVar1 + 1,param_2)" identifier (argument_list "(param_1,iVar1 + 1,param_2)" ( identifier , (binary_expression "iVar1 + 1" identifier + number_literal) , identifier ))) ;) (expression_statement "iVar1 = 2;" (assignment_expression "iVar1 = 2" identifier = number_literal) ;) (if_statement "if (5 < (byte)pcVar2[(uVar3 + 1) * 0xc]) {\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }" if (parenthesized_expression "(5 < (byte)pcVar2[(uVar3 + 1) * 0xc])" ( (binary_expression "5 < (byte)pcVar2[(uVar3 + 1) * 0xc]" number_literal < (cast_expression "(byte)pcVar2[(uVar3 + 1) * 0xc]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "pcVar2[(uVar3 + 1) * 0xc]" identifier [ (binary_expression "(uVar3 + 1) * 0xc" (parenthesized_expression "(uVar3 + 1)" ( (binary_expression "uVar3 + 1" identifier + number_literal) )) * number_literal) ]))) )) (compound_statement "{\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }" { (expression_statement "iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;" (assignment_expression "iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2" identifier = (binary_expression "*(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2" (pointer_expression "*(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4)" * (cast_expression "(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar2 + (uVar3 + 1) * 0xc + 4)" ( (binary_expression "pcVar2 + (uVar3 + 1) * 0xc + 4" (binary_expression "pcVar2 + (uVar3 + 1) * 0xc" identifier + (binary_expression "(uVar3 + 1) * 0xc" (parenthesized_expression "(uVar3 + 1)" ( (binary_expression "uVar3 + 1" identifier + number_literal) )) * number_literal)) + number_literal) )))) + number_literal)) ;) })) (expression_statement "uVar3 = uVar3 + iVar1;" (assignment_expression "uVar3 = uVar3 + iVar1" identifier = (binary_expression "uVar3 + iVar1" identifier + identifier)) ;) (expression_statement "iVar1 = param_2 + uVar3;" (assignment_expression "iVar1 = param_2 + uVar3" identifier = (binary_expression "param_2 + uVar3" identifier + identifier)) ;) }) while (parenthesized_expression "(uVar3 <= *(uint *)(pcVar2 + 4))" ( (binary_expression "uVar3 <= *(uint *)(pcVar2 + 4)" identifier <= (pointer_expression "*(uint *)(pcVar2 + 4)" * (cast_expression "(uint *)(pcVar2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar2 + 4)" ( (binary_expression "pcVar2 + 4" identifier + number_literal) ))))) )) ;) })))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ (binary_expression IDENT * LIT) ]))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT) )))) + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) (return_statement return ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT) ]))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT)) + LIT) )))) + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) })))) (return_statement return ;) })))
(function_definition "void FUN_00022eb4(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  char *pcVar2;\n  uint uVar3;\n  \n  pcVar2 = (char *)(*(int *)(param_1 + 8) + param_2 * 0xc);\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + param_2 * 4) = param_3;\n  if (*pcVar2 == '\x06') {\n    if (*(int *)(pcVar2 + 4) != 0) {\n      uVar3 = 1;\n      iVar1 = param_2 + 1;\n      do {\n        FUN_00022eb4(param_1,iVar1,param_2);\n        iVar1 = 1;\n        if (5 < (byte)pcVar2[uVar3 * 0xc]) {\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        iVar1 = param_2 + uVar3;\n      } while (uVar3 <= *(uint *)(pcVar2 + 4));\n      return;\n    }\n  }\n  else if ((*pcVar2 == '\a') && (*(int *)(pcVar2 + 4) != 0)) {\n    uVar3 = 1;\n    iVar1 = param_2 + 1;\n    do {\n      *(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2;\n      FUN_00022eb4(param_1,iVar1 + 1,param_2);\n      iVar1 = 2;\n      if (5 < (byte)pcVar2[(uVar3 + 1) * 0xc]) {\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = param_2 + uVar3;\n    } while (uVar3 <= *(uint *)(pcVar2 + 4));\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00022eb4(int param_1,int param_2,undefined4 param_3)" (identifier "FUN_00022eb4") (parameter_list "(int param_1,int param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  uint uVar3;\n  \n  pcVar2 = (char *)(*(int *)(param_1 + 8) + param_2 * 0xc);\n  *(undefined4 *)(*(int *)(param_1 + 0x10) + param_2 * 4) = param_3;\n  if (*pcVar2 == '\x06') {\n    if (*(int *)(pcVar2 + 4) != 0) {\n      uVar3 = 1;\n      iVar1 = param_2 + 1;\n      do {\n        FUN_00022eb4(param_1,iVar1,param_2);\n        iVar1 = 1;\n        if (5 < (byte)pcVar2[uVar3 * 0xc]) {\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        iVar1 = param_2 + uVar3;\n      } while (uVar3 <= *(uint *)(pcVar2 + 4));\n      return;\n    }\n  }\n  else if ((*pcVar2 == '\a') && (*(int *)(pcVar2 + 4) != 0)) {\n    uVar3 = 1;\n    iVar1 = param_2 + 1;\n    do {\n      *(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2;\n      FUN_00022eb4(param_1,iVar1 + 1,param_2);\n      iVar1 = 2;\n      if (5 < (byte)pcVar2[(uVar3 + 1) * 0xc]) {\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = param_2 + uVar3;\n    } while (uVar3 <= *(uint *)(pcVar2 + 4));\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (expression_statement "pcVar2 = (char *)(*(int *)(param_1 + 8) + param_2 * 0xc);" (assignment_expression "pcVar2 = (char *)(*(int *)(param_1 + 8) + param_2 * 0xc)" (identifier "pcVar2") (= "=") (cast_expression "(char *)(*(int *)(param_1 + 8) + param_2 * 0xc)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 8) + param_2 * 0xc)" (( "(") (binary_expression "*(int *)(param_1 + 8) + param_2 * 0xc" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (+ "+") (binary_expression "param_2 * 0xc" (identifier "param_2") (* "*") (number_literal "0xc"))) () ")")))) (; ";")) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x10) + param_2 * 4) = param_3;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + param_2 * 4) = param_3" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x10) + param_2 * 4)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x10) + param_2 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x10) + param_2 * 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) + param_2 * 4" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (binary_expression "param_2 * 4" (identifier "param_2") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "param_3")) (; ";")) (if_statement "if (*pcVar2 == '\x06') {\n    if (*(int *)(pcVar2 + 4) != 0) {\n      uVar3 = 1;\n      iVar1 = param_2 + 1;\n      do {\n        FUN_00022eb4(param_1,iVar1,param_2);\n        iVar1 = 1;\n        if (5 < (byte)pcVar2[uVar3 * 0xc]) {\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        iVar1 = param_2 + uVar3;\n      } while (uVar3 <= *(uint *)(pcVar2 + 4));\n      return;\n    }\n  }\n  else if ((*pcVar2 == '\a') && (*(int *)(pcVar2 + 4) != 0)) {\n    uVar3 = 1;\n    iVar1 = param_2 + 1;\n    do {\n      *(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2;\n      FUN_00022eb4(param_1,iVar1 + 1,param_2);\n      iVar1 = 2;\n      if (5 < (byte)pcVar2[(uVar3 + 1) * 0xc]) {\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = param_2 + uVar3;\n    } while (uVar3 <= *(uint *)(pcVar2 + 4));\n  }" (if "if") (parenthesized_expression "(*pcVar2 == '\x06')" (( "(") (binary_expression "*pcVar2 == '\x06'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (== "==") (char_literal "'\x06'" (' "'") (escape_sequence "\x06") (' "'"))) () ")")) (compound_statement "{\n    if (*(int *)(pcVar2 + 4) != 0) {\n      uVar3 = 1;\n      iVar1 = param_2 + 1;\n      do {\n        FUN_00022eb4(param_1,iVar1,param_2);\n        iVar1 = 1;\n        if (5 < (byte)pcVar2[uVar3 * 0xc]) {\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        iVar1 = param_2 + uVar3;\n      } while (uVar3 <= *(uint *)(pcVar2 + 4));\n      return;\n    }\n  }" ({ "{") (if_statement "if (*(int *)(pcVar2 + 4) != 0) {\n      uVar3 = 1;\n      iVar1 = param_2 + 1;\n      do {\n        FUN_00022eb4(param_1,iVar1,param_2);\n        iVar1 = 1;\n        if (5 < (byte)pcVar2[uVar3 * 0xc]) {\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        iVar1 = param_2 + uVar3;\n      } while (uVar3 <= *(uint *)(pcVar2 + 4));\n      return;\n    }" (if "if") (parenthesized_expression "(*(int *)(pcVar2 + 4) != 0)" (( "(") (binary_expression "*(int *)(pcVar2 + 4) != 0" (pointer_expression "*(int *)(pcVar2 + 4)" (* "*") (cast_expression "(int *)(pcVar2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar2 + 4)" (( "(") (binary_expression "pcVar2 + 4" (identifier "pcVar2") (+ "+") (number_literal "4")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = 1;\n      iVar1 = param_2 + 1;\n      do {\n        FUN_00022eb4(param_1,iVar1,param_2);\n        iVar1 = 1;\n        if (5 < (byte)pcVar2[uVar3 * 0xc]) {\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        iVar1 = param_2 + uVar3;\n      } while (uVar3 <= *(uint *)(pcVar2 + 4));\n      return;\n    }" ({ "{") (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" (identifier "uVar3") (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar1 = param_2 + 1;" (assignment_expression "iVar1 = param_2 + 1" (identifier "iVar1") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (do_statement "do {\n        FUN_00022eb4(param_1,iVar1,param_2);\n        iVar1 = 1;\n        if (5 < (byte)pcVar2[uVar3 * 0xc]) {\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        iVar1 = param_2 + uVar3;\n      } while (uVar3 <= *(uint *)(pcVar2 + 4));" (do "do") (compound_statement "{\n        FUN_00022eb4(param_1,iVar1,param_2);\n        iVar1 = 1;\n        if (5 < (byte)pcVar2[uVar3 * 0xc]) {\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }\n        uVar3 = uVar3 + iVar1;\n        iVar1 = param_2 + uVar3;\n      }" ({ "{") (expression_statement "FUN_00022eb4(param_1,iVar1,param_2);" (call_expression "FUN_00022eb4(param_1,iVar1,param_2)" (identifier "FUN_00022eb4") (argument_list "(param_1,iVar1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "iVar1") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" (identifier "iVar1") (= "=") (number_literal "1")) (; ";")) (if_statement "if (5 < (byte)pcVar2[uVar3 * 0xc]) {\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }" (if "if") (parenthesized_expression "(5 < (byte)pcVar2[uVar3 * 0xc])" (( "(") (binary_expression "5 < (byte)pcVar2[uVar3 * 0xc]" (number_literal "5") (< "<") (cast_expression "(byte)pcVar2[uVar3 * 0xc]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "pcVar2[uVar3 * 0xc]" (identifier "pcVar2") ([ "[") (binary_expression "uVar3 * 0xc" (identifier "uVar3") (* "*") (number_literal "0xc")) (] "]")))) () ")")) (compound_statement "{\n          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;\n        }" ({ "{") (expression_statement "iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;" (assignment_expression "iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1" (identifier "iVar1") (= "=") (binary_expression "*(int *)(pcVar2 + uVar3 * 0xc + 4) + 1" (pointer_expression "*(int *)(pcVar2 + uVar3 * 0xc + 4)" (* "*") (cast_expression "(int *)(pcVar2 + uVar3 * 0xc + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar2 + uVar3 * 0xc + 4)" (( "(") (binary_expression "pcVar2 + uVar3 * 0xc + 4" (binary_expression "pcVar2 + uVar3 * 0xc" (identifier "pcVar2") (+ "+") (binary_expression "uVar3 * 0xc" (identifier "uVar3") (* "*") (number_literal "0xc"))) (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "uVar3 = uVar3 + iVar1;" (assignment_expression "uVar3 = uVar3 + iVar1" (identifier "uVar3") (= "=") (binary_expression "uVar3 + iVar1" (identifier "uVar3") (+ "+") (identifier "iVar1"))) (; ";")) (expression_statement "iVar1 = param_2 + uVar3;" (assignment_expression "iVar1 = param_2 + uVar3" (identifier "iVar1") (= "=") (binary_expression "param_2 + uVar3" (identifier "param_2") (+ "+") (identifier "uVar3"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar3 <= *(uint *)(pcVar2 + 4))" (( "(") (binary_expression "uVar3 <= *(uint *)(pcVar2 + 4)" (identifier "uVar3") (<= "<=") (pointer_expression "*(uint *)(pcVar2 + 4)" (* "*") (cast_expression "(uint *)(pcVar2 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar2 + 4)" (( "(") (binary_expression "pcVar2 + 4" (identifier "pcVar2") (+ "+") (number_literal "4")) () ")"))))) () ")")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")) (else_clause "else if ((*pcVar2 == '\a') && (*(int *)(pcVar2 + 4) != 0)) {\n    uVar3 = 1;\n    iVar1 = param_2 + 1;\n    do {\n      *(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2;\n      FUN_00022eb4(param_1,iVar1 + 1,param_2);\n      iVar1 = 2;\n      if (5 < (byte)pcVar2[(uVar3 + 1) * 0xc]) {\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = param_2 + uVar3;\n    } while (uVar3 <= *(uint *)(pcVar2 + 4));\n  }" (else "else") (if_statement "if ((*pcVar2 == '\a') && (*(int *)(pcVar2 + 4) != 0)) {\n    uVar3 = 1;\n    iVar1 = param_2 + 1;\n    do {\n      *(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2;\n      FUN_00022eb4(param_1,iVar1 + 1,param_2);\n      iVar1 = 2;\n      if (5 < (byte)pcVar2[(uVar3 + 1) * 0xc]) {\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = param_2 + uVar3;\n    } while (uVar3 <= *(uint *)(pcVar2 + 4));\n  }" (if "if") (parenthesized_expression "((*pcVar2 == '\a') && (*(int *)(pcVar2 + 4) != 0))" (( "(") (binary_expression "(*pcVar2 == '\a') && (*(int *)(pcVar2 + 4) != 0)" (parenthesized_expression "(*pcVar2 == '\a')" (( "(") (binary_expression "*pcVar2 == '\a'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (== "==") (char_literal "'\a'" (' "'") (escape_sequence "\a") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(pcVar2 + 4) != 0)" (( "(") (binary_expression "*(int *)(pcVar2 + 4) != 0" (pointer_expression "*(int *)(pcVar2 + 4)" (* "*") (cast_expression "(int *)(pcVar2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar2 + 4)" (( "(") (binary_expression "pcVar2 + 4" (identifier "pcVar2") (+ "+") (number_literal "4")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    uVar3 = 1;\n    iVar1 = param_2 + 1;\n    do {\n      *(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2;\n      FUN_00022eb4(param_1,iVar1 + 1,param_2);\n      iVar1 = 2;\n      if (5 < (byte)pcVar2[(uVar3 + 1) * 0xc]) {\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = param_2 + uVar3;\n    } while (uVar3 <= *(uint *)(pcVar2 + 4));\n  }" ({ "{") (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" (identifier "uVar3") (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar1 = param_2 + 1;" (assignment_expression "iVar1 = param_2 + 1" (identifier "iVar1") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (do_statement "do {\n      *(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2;\n      FUN_00022eb4(param_1,iVar1 + 1,param_2);\n      iVar1 = 2;\n      if (5 < (byte)pcVar2[(uVar3 + 1) * 0xc]) {\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = param_2 + uVar3;\n    } while (uVar3 <= *(uint *)(pcVar2 + 4));" (do "do") (compound_statement "{\n      *(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2;\n      FUN_00022eb4(param_1,iVar1 + 1,param_2);\n      iVar1 = 2;\n      if (5 < (byte)pcVar2[(uVar3 + 1) * 0xc]) {\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }\n      uVar3 = uVar3 + iVar1;\n      iVar1 = param_2 + uVar3;\n    }" ({ "{") (expression_statement "*(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2;" (assignment_expression "*(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2" (pointer_expression "*(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x10) + iVar1 * 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) + iVar1 * 4" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "FUN_00022eb4(param_1,iVar1 + 1,param_2);" (call_expression "FUN_00022eb4(param_1,iVar1 + 1,param_2)" (identifier "FUN_00022eb4") (argument_list "(param_1,iVar1 + 1,param_2)" (( "(") (identifier "param_1") (, ",") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1")) (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "iVar1 = 2;" (assignment_expression "iVar1 = 2" (identifier "iVar1") (= "=") (number_literal "2")) (; ";")) (if_statement "if (5 < (byte)pcVar2[(uVar3 + 1) * 0xc]) {\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }" (if "if") (parenthesized_expression "(5 < (byte)pcVar2[(uVar3 + 1) * 0xc])" (( "(") (binary_expression "5 < (byte)pcVar2[(uVar3 + 1) * 0xc]" (number_literal "5") (< "<") (cast_expression "(byte)pcVar2[(uVar3 + 1) * 0xc]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "pcVar2[(uVar3 + 1) * 0xc]" (identifier "pcVar2") ([ "[") (binary_expression "(uVar3 + 1) * 0xc" (parenthesized_expression "(uVar3 + 1)" (( "(") (binary_expression "uVar3 + 1" (identifier "uVar3") (+ "+") (number_literal "1")) () ")")) (* "*") (number_literal "0xc")) (] "]")))) () ")")) (compound_statement "{\n        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;\n      }" ({ "{") (expression_statement "iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;" (assignment_expression "iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2" (identifier "iVar1") (= "=") (binary_expression "*(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2" (pointer_expression "*(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4)" (* "*") (cast_expression "(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar2 + (uVar3 + 1) * 0xc + 4)" (( "(") (binary_expression "pcVar2 + (uVar3 + 1) * 0xc + 4" (binary_expression "pcVar2 + (uVar3 + 1) * 0xc" (identifier "pcVar2") (+ "+") (binary_expression "(uVar3 + 1) * 0xc" (parenthesized_expression "(uVar3 + 1)" (( "(") (binary_expression "uVar3 + 1" (identifier "uVar3") (+ "+") (number_literal "1")) () ")")) (* "*") (number_literal "0xc"))) (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "2"))) (; ";")) (} "}"))) (expression_statement "uVar3 = uVar3 + iVar1;" (assignment_expression "uVar3 = uVar3 + iVar1" (identifier "uVar3") (= "=") (binary_expression "uVar3 + iVar1" (identifier "uVar3") (+ "+") (identifier "iVar1"))) (; ";")) (expression_statement "iVar1 = param_2 + uVar3;" (assignment_expression "iVar1 = param_2 + uVar3" (identifier "iVar1") (= "=") (binary_expression "param_2 + uVar3" (identifier "param_2") (+ "+") (identifier "uVar3"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar3 <= *(uint *)(pcVar2 + 4))" (( "(") (binary_expression "uVar3 <= *(uint *)(pcVar2 + 4)" (identifier "uVar3") (<= "<=") (pointer_expression "*(uint *)(pcVar2 + 4)" (* "*") (cast_expression "(uint *)(pcVar2 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar2 + 4)" (( "(") (binary_expression "pcVar2 + 4" (identifier "pcVar2") (+ "+") (number_literal "4")) () ")"))))) () ")")) (; ";")) (} "}"))))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *pParse,type_2 var_1,type_2 iParent)

{
  int var_3;
  type_2 i_00;
  type_3 *pJVar2;
  type_4 var_2;
  
  pJVar2 = pParse->aNode + var_1;
  pParse->aUp[var_1] = iParent;
  if (pJVar2->eType == '\x06') {
    if (pJVar2->n != 0) {
      var_2 = 1;
      i_00 = var_1 + 1;
      do {
        function_1(pParse,i_00,var_1);
        var_3 = 1;
        if (5 < pJVar2[var_2].eType) {
          var_3 = pJVar2[var_2].n + 1;
        }
        var_2 = var_2 + var_3;
        i_00 = var_1 + var_2;
      } while (var_2 <= pJVar2->n);
      return;
    }
  }
  else if ((pJVar2->eType == '\a') && (pJVar2->n != 0)) {
    var_2 = 1;
    var_3 = var_1 + 1;
    do {
      pParse->aUp[var_3] = var_1;
      function_1(pParse,var_3 + 1,var_1);
      var_3 = 2;
      if (5 < pJVar2[var_2 + 1].eType) {
        var_3 = pJVar2[var_2 + 1].n + 2;
      }
      var_2 = var_2 + var_3;
      var_3 = var_1 + var_2;
    } while (var_2 <= pJVar2->n);
  }
  return;
}


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

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

{
  int iVar1;
  char *pcVar2;
  uint uVar3;
  
  pcVar2 = (char *)(*(int *)(param_1 + 8) + param_2 * 0xc);
  *(undefined4 *)(*(int *)(param_1 + 0x10) + param_2 * 4) = param_3;
  if (*pcVar2 == '\x06') {
    if (*(int *)(pcVar2 + 4) != 0) {
      uVar3 = 1;
      iVar1 = param_2 + 1;
      do {
        MASKED(param_1,iVar1,param_2);
        iVar1 = 1;
        if (5 < (byte)pcVar2[uVar3 * 0xc]) {
          iVar1 = *(int *)(pcVar2 + uVar3 * 0xc + 4) + 1;
        }
        uVar3 = uVar3 + iVar1;
        iVar1 = param_2 + uVar3;
      } while (uVar3 <= *(uint *)(pcVar2 + 4));
      return;
    }
  }
  else if ((*pcVar2 == '\a') && (*(int *)(pcVar2 + 4) != 0)) {
    uVar3 = 1;
    iVar1 = param_2 + 1;
    do {
      *(int *)(*(int *)(param_1 + 0x10) + iVar1 * 4) = param_2;
      MASKED(param_1,iVar1 + 1,param_2);
      iVar1 = 2;
      if (5 < (byte)pcVar2[(uVar3 + 1) * 0xc]) {
        iVar1 = *(int *)(pcVar2 + (uVar3 + 1) * 0xc + 4) + 2;
      }
      uVar3 = uVar3 + iVar1;
      iVar1 = param_2 + uVar3;
    } while (uVar3 <= *(uint *)(pcVar2 + 4));
  }
  return;
}

