
/* DWARF original prototype: reg_errcode_t check_subexp_matching_top(re_match_context_t * mctx,
   re_node_set * cur_nodes, Idx str_idx, re_node_set * cur_nodes) */

reg_errcode_t
check_subexp_matching_top
          (re_match_context_t *mctx,re_node_set *cur_nodes,Idx str_idx,re_node_set *cur_nodes_1)

{
  re_token_t *prVar1;
  re_sub_match_top_t *prVar2;
  int iVar3;
  uint uVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  re_dfa_t *prVar8;
  re_sub_match_top_t **pprVar9;
  
  iVar5 = cur_nodes->alloc;
  prVar8 = mctx->dfa;
  if (0 < iVar5) {
    iVar6 = 0;
    do {
      while( true ) {
        iVar7 = *(int *)(*(int *)str_idx + iVar6 * 4);
        prVar1 = prVar8->nodes + iVar7;
        iVar6 = iVar6 + 1;
        if (((prVar1->field_0x4 == '\b') && (uVar4 = (prVar1->opr).idx, (int)uVar4 < 0x20)) &&
           ((prVar8->used_bkref_map >> (uVar4 & 0x1f) & 1) != 0)) break;
        if (iVar5 <= iVar6) {
          return _REG_NOERROR;
        }
      }
      iVar5 = mctx->nsub_tops;
      pprVar9 = mctx->sub_tops;
      if (iVar5 == mctx->asub_tops) {
        iVar3 = iVar5 << 1;
        pprVar9 = (re_sub_match_top_t **)(*(code *)PTR_realloc_000afde8)(pprVar9,iVar5 << 3);
        if (pprVar9 == (re_sub_match_top_t **)0x0) {
          return _REG_ESPACE;
        }
        iVar5 = mctx->nsub_tops;
        mctx->sub_tops = pprVar9;
        mctx->asub_tops = iVar3;
      }
      prVar2 = (re_sub_match_top_t *)(*(code *)PTR_calloc_000afdb8)(1,0x18);
      pprVar9[iVar5] = prVar2;
      if (prVar2 == (re_sub_match_top_t *)0x0) {
        return _REG_ESPACE;
      }
      mctx->nsub_tops = iVar5 + 1;
      prVar2->node = iVar7;
      prVar2->str_idx = (Idx)cur_nodes_1;
      iVar5 = cur_nodes->alloc;
    } while (iVar6 < iVar5);
  }
  return _REG_NOERROR;
}



undefined4 FUN_00075654(int param_1,int *param_2,int *param_3,undefined4 param_4)

{
  uint *puVar1;
  undefined4 *puVar2;
  int iVar3;
  uint uVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  int *piVar9;
  
  iVar6 = *param_2;
  piVar9 = *(int **)(param_1 + 0x54);
  if (0 < iVar6) {
    iVar7 = 0;
    do {
      while( true ) {
        iVar8 = *(int *)(*param_3 + iVar7 * 4);
        puVar1 = (uint *)(*piVar9 + iVar8 * 8);
        iVar7 = iVar7 + 1;
        if (((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&
           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)) break;
        if (iVar6 <= iVar7) {
          return 0;
        }
      }
      iVar5 = *(int *)(param_1 + 0x7c);
      iVar6 = *(int *)(param_1 + 0x84);
      if (iVar5 == *(int *)(param_1 + 0x80)) {
        iVar3 = iVar5 << 1;
        iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3);
        if (iVar6 == 0) {
          return 0xc;
        }
        iVar5 = *(int *)(param_1 + 0x7c);
        *(int *)(param_1 + 0x84) = iVar6;
        *(int *)(param_1 + 0x80) = iVar3;
      }
      puVar2 = (undefined4 *)(*(code *)PTR_calloc_000afdb8)(1,0x18);
      *(undefined4 **)(iVar6 + iVar5 * 4) = puVar2;
      if (puVar2 == (undefined4 *)0x0) {
        return 0xc;
      }
      *(int *)(param_1 + 0x7c) = iVar5 + 1;
      puVar2[1] = iVar8;
      *puVar2 = param_4;
      iVar6 = *param_2;
    } while (iVar7 < iVar6);
  }
  return 0;
}


lui gp,0x4
addiu gp,gp,0x1ddc
addu gp,gp,t9
addiu sp,sp,-0x48
sw s7,0x3c(sp)
or s7,a1,zero
sw gp,0x10(sp)
sw s3,0x2c(sp)
sw ra,0x44(sp)
sw s8,0x40(sp)
sw s6,0x38(sp)
sw s5,0x34(sp)
sw s4,0x30(sp)
sw s2,0x28(sp)
sw s1,0x24(sp)
sw s0,0x20(sp)
lw a1,0x0(a1)
blez a1,0x0007576c
_lw s3,0x54(a0)
or s6,a0,zero
or s5,a2,zero
or s2,a3,zero
or s0,zero,zero
b 0x000756c4
_li s4,0x8
slt v0,s0,a1
beq v0,zero,0x00075770
_or v0,zero,zero
lw a0,0x0(s5)
sll v1,s0,0x2
lw v0,0x0(s3)
addu v1,a0,v1
lw s1,0x0(v1)
sll v1,s1,0x3
addu v0,v0,v1
lbu v1,0x4(v0)
bne v1,s4,0x000756b8
_addiu s0,s0,0x1
lw v1,0x0(v0)
slti v0,v1,0x20
beq v0,zero,0x000756bc
_slt v0,s0,a1
lw v0,0x50(s3)
srlv v0,v0,v1
andi v0,v0,0x1
beq v0,zero,0x000756bc
_slt v0,s0,a1
lw v1,0x7c(s6)
lw v0,0x80(s6)
beq v1,v0,0x000757a8
_lw s8,0x84(s6)
lw t9,-0x7678(gp)
li a0,0x1
li a1,0x18
jalr t9
_sw v1,0x1c(sp)
lw v1,0x1c(sp)
lw gp,0x10(sp)
sll a0,v1,0x2
addiu v1,v1,0x1
addu a2,s8,a0
beq v0,zero,0x000757a0
_sw v0,0x0(a2)
sw v1,0x7c(s6)
sw s1,0x4(v0)
sw s2,0x0(v0)
lw a1,0x0(s7)
slt v0,s0,a1
bne v0,zero,0x000756c4
_nop
or v0,zero,zero
lw ra,0x44(sp)
lw s8,0x40(sp)
lw s7,0x3c(sp)
lw s6,0x38(sp)
lw s5,0x34(sp)
lw s4,0x30(sp)
lw s3,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x48
b 0x00075770
_li v0,0xc
lw t9,-0x7648(gp)
sll v0,v1,0x1
sll a1,v1,0x3
or a0,s8,zero
jalr t9
_sw v0,0x1c(sp)
lw gp,0x10(sp)
beq v0,zero,0x000757a0
_or s8,v0,zero
lw v1,0x7c(s6)
sw v0,0x84(s6)
lw v0,0x1c(sp)
b 0x00075720
_sw v0,0x80(s6)
(translation_unit "undefined4 FUN_00075654(int param_1,int *param_2,int *param_3,undefined4 param_4)\n\n{\n  uint *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int *piVar9;\n  \n  iVar6 = *param_2;\n  piVar9 = *(int **)(param_1 + 0x54);\n  if (0 < iVar6) {\n    iVar7 = 0;\n    do {\n      while( true ) {\n        iVar8 = *(int *)(*param_3 + iVar7 * 4);\n        puVar1 = (uint *)(*piVar9 + iVar8 * 8);\n        iVar7 = iVar7 + 1;\n        if (((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar6 <= iVar7) {\n          return 0;\n        }\n      }\n      iVar5 = *(int *)(param_1 + 0x7c);\n      iVar6 = *(int *)(param_1 + 0x84);\n      if (iVar5 == *(int *)(param_1 + 0x80)) {\n        iVar3 = iVar5 << 1;\n        iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        iVar5 = *(int *)(param_1 + 0x7c);\n        *(int *)(param_1 + 0x84) = iVar6;\n        *(int *)(param_1 + 0x80) = iVar3;\n      }\n      puVar2 = (undefined4 *)(*(code *)PTR_calloc_000afdb8)(1,0x18);\n      *(undefined4 **)(iVar6 + iVar5 * 4) = puVar2;\n      if (puVar2 == (undefined4 *)0x0) {\n        return 0xc;\n      }\n      *(int *)(param_1 + 0x7c) = iVar5 + 1;\n      puVar2[1] = iVar8;\n      *puVar2 = param_4;\n      iVar6 = *param_2;\n    } while (iVar7 < iVar6);\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00075654(int param_1,int *param_2,int *param_3,undefined4 param_4)\n\n{\n  uint *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int *piVar9;\n  \n  iVar6 = *param_2;\n  piVar9 = *(int **)(param_1 + 0x54);\n  if (0 < iVar6) {\n    iVar7 = 0;\n    do {\n      while( true ) {\n        iVar8 = *(int *)(*param_3 + iVar7 * 4);\n        puVar1 = (uint *)(*piVar9 + iVar8 * 8);\n        iVar7 = iVar7 + 1;\n        if (((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar6 <= iVar7) {\n          return 0;\n        }\n      }\n      iVar5 = *(int *)(param_1 + 0x7c);\n      iVar6 = *(int *)(param_1 + 0x84);\n      if (iVar5 == *(int *)(param_1 + 0x80)) {\n        iVar3 = iVar5 << 1;\n        iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        iVar5 = *(int *)(param_1 + 0x7c);\n        *(int *)(param_1 + 0x84) = iVar6;\n        *(int *)(param_1 + 0x80) = iVar3;\n      }\n      puVar2 = (undefined4 *)(*(code *)PTR_calloc_000afdb8)(1,0x18);\n      *(undefined4 **)(iVar6 + iVar5 * 4) = puVar2;\n      if (puVar2 == (undefined4 *)0x0) {\n        return 0xc;\n      }\n      *(int *)(param_1 + 0x7c) = iVar5 + 1;\n      puVar2[1] = iVar8;\n      *puVar2 = param_4;\n      iVar6 = *param_2;\n    } while (iVar7 < iVar6);\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00075654(int param_1,int *param_2,int *param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,int *param_2,int *param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  uint *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int *piVar9;\n  \n  iVar6 = *param_2;\n  piVar9 = *(int **)(param_1 + 0x54);\n  if (0 < iVar6) {\n    iVar7 = 0;\n    do {\n      while( true ) {\n        iVar8 = *(int *)(*param_3 + iVar7 * 4);\n        puVar1 = (uint *)(*piVar9 + iVar8 * 8);\n        iVar7 = iVar7 + 1;\n        if (((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar6 <= iVar7) {\n          return 0;\n        }\n      }\n      iVar5 = *(int *)(param_1 + 0x7c);\n      iVar6 = *(int *)(param_1 + 0x84);\n      if (iVar5 == *(int *)(param_1 + 0x80)) {\n        iVar3 = iVar5 << 1;\n        iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        iVar5 = *(int *)(param_1 + 0x7c);\n        *(int *)(param_1 + 0x84) = iVar6;\n        *(int *)(param_1 + 0x80) = iVar3;\n      }\n      puVar2 = (undefined4 *)(*(code *)PTR_calloc_000afdb8)(1,0x18);\n      *(undefined4 **)(iVar6 + iVar5 * 4) = puVar2;\n      if (puVar2 == (undefined4 *)0x0) {\n        return 0xc;\n      }\n      *(int *)(param_1 + 0x7c) = iVar5 + 1;\n      puVar2[1] = iVar8;\n      *puVar2 = param_4;\n      iVar6 = *param_2;\n    } while (iVar7 < iVar6);\n  }\n  return 0;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (expression_statement "iVar6 = *param_2;" (assignment_expression "iVar6 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "piVar9 = *(int **)(param_1 + 0x54);" (assignment_expression "piVar9 = *(int **)(param_1 + 0x54)" identifier = (pointer_expression "*(int **)(param_1 + 0x54)" * (cast_expression "(int **)(param_1 + 0x54)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) ))))) ;) (if_statement "if (0 < iVar6) {\n    iVar7 = 0;\n    do {\n      while( true ) {\n        iVar8 = *(int *)(*param_3 + iVar7 * 4);\n        puVar1 = (uint *)(*piVar9 + iVar8 * 8);\n        iVar7 = iVar7 + 1;\n        if (((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar6 <= iVar7) {\n          return 0;\n        }\n      }\n      iVar5 = *(int *)(param_1 + 0x7c);\n      iVar6 = *(int *)(param_1 + 0x84);\n      if (iVar5 == *(int *)(param_1 + 0x80)) {\n        iVar3 = iVar5 << 1;\n        iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        iVar5 = *(int *)(param_1 + 0x7c);\n        *(int *)(param_1 + 0x84) = iVar6;\n        *(int *)(param_1 + 0x80) = iVar3;\n      }\n      puVar2 = (undefined4 *)(*(code *)PTR_calloc_000afdb8)(1,0x18);\n      *(undefined4 **)(iVar6 + iVar5 * 4) = puVar2;\n      if (puVar2 == (undefined4 *)0x0) {\n        return 0xc;\n      }\n      *(int *)(param_1 + 0x7c) = iVar5 + 1;\n      puVar2[1] = iVar8;\n      *puVar2 = param_4;\n      iVar6 = *param_2;\n    } while (iVar7 < iVar6);\n  }" if (parenthesized_expression "(0 < iVar6)" ( (binary_expression "0 < iVar6" number_literal < identifier) )) (compound_statement "{\n    iVar7 = 0;\n    do {\n      while( true ) {\n        iVar8 = *(int *)(*param_3 + iVar7 * 4);\n        puVar1 = (uint *)(*piVar9 + iVar8 * 8);\n        iVar7 = iVar7 + 1;\n        if (((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar6 <= iVar7) {\n          return 0;\n        }\n      }\n      iVar5 = *(int *)(param_1 + 0x7c);\n      iVar6 = *(int *)(param_1 + 0x84);\n      if (iVar5 == *(int *)(param_1 + 0x80)) {\n        iVar3 = iVar5 << 1;\n        iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        iVar5 = *(int *)(param_1 + 0x7c);\n        *(int *)(param_1 + 0x84) = iVar6;\n        *(int *)(param_1 + 0x80) = iVar3;\n      }\n      puVar2 = (undefined4 *)(*(code *)PTR_calloc_000afdb8)(1,0x18);\n      *(undefined4 **)(iVar6 + iVar5 * 4) = puVar2;\n      if (puVar2 == (undefined4 *)0x0) {\n        return 0xc;\n      }\n      *(int *)(param_1 + 0x7c) = iVar5 + 1;\n      puVar2[1] = iVar8;\n      *puVar2 = param_4;\n      iVar6 = *param_2;\n    } while (iVar7 < iVar6);\n  }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n      while( true ) {\n        iVar8 = *(int *)(*param_3 + iVar7 * 4);\n        puVar1 = (uint *)(*piVar9 + iVar8 * 8);\n        iVar7 = iVar7 + 1;\n        if (((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar6 <= iVar7) {\n          return 0;\n        }\n      }\n      iVar5 = *(int *)(param_1 + 0x7c);\n      iVar6 = *(int *)(param_1 + 0x84);\n      if (iVar5 == *(int *)(param_1 + 0x80)) {\n        iVar3 = iVar5 << 1;\n        iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        iVar5 = *(int *)(param_1 + 0x7c);\n        *(int *)(param_1 + 0x84) = iVar6;\n        *(int *)(param_1 + 0x80) = iVar3;\n      }\n      puVar2 = (undefined4 *)(*(code *)PTR_calloc_000afdb8)(1,0x18);\n      *(undefined4 **)(iVar6 + iVar5 * 4) = puVar2;\n      if (puVar2 == (undefined4 *)0x0) {\n        return 0xc;\n      }\n      *(int *)(param_1 + 0x7c) = iVar5 + 1;\n      puVar2[1] = iVar8;\n      *puVar2 = param_4;\n      iVar6 = *param_2;\n    } while (iVar7 < iVar6);" do (compound_statement "{\n      while( true ) {\n        iVar8 = *(int *)(*param_3 + iVar7 * 4);\n        puVar1 = (uint *)(*piVar9 + iVar8 * 8);\n        iVar7 = iVar7 + 1;\n        if (((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar6 <= iVar7) {\n          return 0;\n        }\n      }\n      iVar5 = *(int *)(param_1 + 0x7c);\n      iVar6 = *(int *)(param_1 + 0x84);\n      if (iVar5 == *(int *)(param_1 + 0x80)) {\n        iVar3 = iVar5 << 1;\n        iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        iVar5 = *(int *)(param_1 + 0x7c);\n        *(int *)(param_1 + 0x84) = iVar6;\n        *(int *)(param_1 + 0x80) = iVar3;\n      }\n      puVar2 = (undefined4 *)(*(code *)PTR_calloc_000afdb8)(1,0x18);\n      *(undefined4 **)(iVar6 + iVar5 * 4) = puVar2;\n      if (puVar2 == (undefined4 *)0x0) {\n        return 0xc;\n      }\n      *(int *)(param_1 + 0x7c) = iVar5 + 1;\n      puVar2[1] = iVar8;\n      *puVar2 = param_4;\n      iVar6 = *param_2;\n    }" { (while_statement "while( true ) {\n        iVar8 = *(int *)(*param_3 + iVar7 * 4);\n        puVar1 = (uint *)(*piVar9 + iVar8 * 8);\n        iVar7 = iVar7 + 1;\n        if (((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar6 <= iVar7) {\n          return 0;\n        }\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar8 = *(int *)(*param_3 + iVar7 * 4);\n        puVar1 = (uint *)(*piVar9 + iVar8 * 8);\n        iVar7 = iVar7 + 1;\n        if (((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar6 <= iVar7) {\n          return 0;\n        }\n      }" { (expression_statement "iVar8 = *(int *)(*param_3 + iVar7 * 4);" (assignment_expression "iVar8 = *(int *)(*param_3 + iVar7 * 4)" identifier = (pointer_expression "*(int *)(*param_3 + iVar7 * 4)" * (cast_expression "(int *)(*param_3 + iVar7 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_3 + iVar7 * 4)" ( (binary_expression "*param_3 + iVar7 * 4" (pointer_expression "*param_3" * identifier) + (binary_expression "iVar7 * 4" identifier * number_literal)) ))))) ;) (expression_statement "puVar1 = (uint *)(*piVar9 + iVar8 * 8);" (assignment_expression "puVar1 = (uint *)(*piVar9 + iVar8 * 8)" identifier = (cast_expression "(uint *)(*piVar9 + iVar8 * 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar9 + iVar8 * 8)" ( (binary_expression "*piVar9 + iVar8 * 8" (pointer_expression "*piVar9" * identifier) + (binary_expression "iVar8 * 8" identifier * number_literal)) )))) ;) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (if_statement "if (((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)) break;" if (parenthesized_expression "(((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0))" ( (binary_expression "((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)" (parenthesized_expression "((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20))" ( (binary_expression "(*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)" (parenthesized_expression "(*(char *)(puVar1 + 1) == '\b')" ( (binary_expression "*(char *)(puVar1 + 1) == '\b'" (pointer_expression "*(char *)(puVar1 + 1)" * (cast_expression "(char *)(puVar1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 1)" ( (binary_expression "puVar1 + 1" identifier + number_literal) )))) == (char_literal "'\b'" ' escape_sequence ')) )) && (parenthesized_expression "(uVar4 = *puVar1, (int)uVar4 < 0x20)" ( (comma_expression "uVar4 = *puVar1, (int)uVar4 < 0x20" (assignment_expression "uVar4 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) , (binary_expression "(int)uVar4 < 0x20" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal)) ))) )) && (parenthesized_expression "(((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)" ( (binary_expression "((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0" (parenthesized_expression "((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1)" ( (binary_expression "(uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1" (binary_expression "(uint)piVar9[0x14] >> (uVar4 & 0x1f)" (cast_expression "(uint)piVar9[0x14]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar9[0x14]" identifier [ number_literal ])) >> (parenthesized_expression "(uVar4 & 0x1f)" ( (binary_expression "uVar4 & 0x1f" identifier & number_literal) ))) & number_literal) )) != number_literal) ))) )) (break_statement "break;" break ;)) (if_statement "if (iVar6 <= iVar7) {\n          return 0;\n        }" if (parenthesized_expression "(iVar6 <= iVar7)" ( (binary_expression "iVar6 <= iVar7" identifier <= identifier) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "iVar5 = *(int *)(param_1 + 0x7c);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x7c)" identifier = (pointer_expression "*(int *)(param_1 + 0x7c)" * (cast_expression "(int *)(param_1 + 0x7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = *(int *)(param_1 + 0x84);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x84)" identifier = (pointer_expression "*(int *)(param_1 + 0x84)" * (cast_expression "(int *)(param_1 + 0x84)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x84)" ( (binary_expression "param_1 + 0x84" identifier + number_literal) ))))) ;) (if_statement "if (iVar5 == *(int *)(param_1 + 0x80)) {\n        iVar3 = iVar5 << 1;\n        iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        iVar5 = *(int *)(param_1 + 0x7c);\n        *(int *)(param_1 + 0x84) = iVar6;\n        *(int *)(param_1 + 0x80) = iVar3;\n      }" if (parenthesized_expression "(iVar5 == *(int *)(param_1 + 0x80))" ( (binary_expression "iVar5 == *(int *)(param_1 + 0x80)" identifier == (pointer_expression "*(int *)(param_1 + 0x80)" * (cast_expression "(int *)(param_1 + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) ))))) )) (compound_statement "{\n        iVar3 = iVar5 << 1;\n        iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        iVar5 = *(int *)(param_1 + 0x7c);\n        *(int *)(param_1 + 0x84) = iVar6;\n        *(int *)(param_1 + 0x80) = iVar3;\n      }" { (expression_statement "iVar3 = iVar5 << 1;" (assignment_expression "iVar3 = iVar5 << 1" identifier = (binary_expression "iVar5 << 1" identifier << number_literal)) ;) (expression_statement "iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3);" (assignment_expression "iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3)" identifier = (call_expression "(*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3)" (parenthesized_expression "(*(code *)PTR_realloc_000afde8)" ( (pointer_expression "*(code *)PTR_realloc_000afde8" * (cast_expression "(code *)PTR_realloc_000afde8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6,iVar5 << 3)" ( identifier , (binary_expression "iVar5 << 3" identifier << number_literal) )))) ;) (if_statement "if (iVar6 == 0) {\n          return 0xc;\n        }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n          return 0xc;\n        }" { (return_statement "return 0xc;" return number_literal ;) })) (expression_statement "iVar5 = *(int *)(param_1 + 0x7c);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x7c)" identifier = (pointer_expression "*(int *)(param_1 + 0x7c)" * (cast_expression "(int *)(param_1 + 0x7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 0x84) = iVar6;" (assignment_expression "*(int *)(param_1 + 0x84) = iVar6" (pointer_expression "*(int *)(param_1 + 0x84)" * (cast_expression "(int *)(param_1 + 0x84)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x84)" ( (binary_expression "param_1 + 0x84" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0x80) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x80) = iVar3" (pointer_expression "*(int *)(param_1 + 0x80)" * (cast_expression "(int *)(param_1 + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR_calloc_000afdb8)(1,0x18);" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR_calloc_000afdb8)(1,0x18)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_calloc_000afdb8)(1,0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_calloc_000afdb8)(1,0x18)" (parenthesized_expression "(*(code *)PTR_calloc_000afdb8)" ( (pointer_expression "*(code *)PTR_calloc_000afdb8" * (cast_expression "(code *)PTR_calloc_000afdb8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x18)" ( number_literal , number_literal ))))) ;) (expression_statement "*(undefined4 **)(iVar6 + iVar5 * 4) = puVar2;" (assignment_expression "*(undefined4 **)(iVar6 + iVar5 * 4) = puVar2" (pointer_expression "*(undefined4 **)(iVar6 + iVar5 * 4)" * (cast_expression "(undefined4 **)(iVar6 + iVar5 * 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + iVar5 * 4)" ( (binary_expression "iVar6 + iVar5 * 4" identifier + (binary_expression "iVar5 * 4" identifier * number_literal)) )))) = identifier) ;) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n        return 0xc;\n      }" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return 0xc;\n      }" { (return_statement "return 0xc;" return number_literal ;) })) (expression_statement "*(int *)(param_1 + 0x7c) = iVar5 + 1;" (assignment_expression "*(int *)(param_1 + 0x7c) = iVar5 + 1" (pointer_expression "*(int *)(param_1 + 0x7c)" * (cast_expression "(int *)(param_1 + 0x7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) )))) = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "puVar2[1] = iVar8;" (assignment_expression "puVar2[1] = iVar8" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar2 = param_4;" (assignment_expression "*puVar2 = param_4" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "iVar6 = *param_2;" (assignment_expression "iVar6 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) }) while (parenthesized_expression "(iVar7 < iVar6)" ( (binary_expression "iVar7 < iVar6" identifier < identifier) )) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* DWARF original prototype: reg_errcode_t check_subexp_matching_top(re_match_context_t * mctx,\n   re_node_set * cur_nodes, Idx str_idx, re_node_set * cur_nodes) */\n\nreg_errcode_t\ncheck_subexp_matching_top\n          (re_match_context_t *mctx,re_node_set *cur_nodes,Idx str_idx,re_node_set *cur_nodes_1)\n\n{\n  re_token_t *prVar1;\n  re_sub_match_top_t *prVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  re_dfa_t *prVar8;\n  re_sub_match_top_t **pprVar9;\n  \n  iVar5 = cur_nodes->alloc;\n  prVar8 = mctx->dfa;\n  if (0 < iVar5) {\n    iVar6 = 0;\n    do {\n      while( true ) {\n        iVar7 = *(int *)(*(int *)str_idx + iVar6 * 4);\n        prVar1 = prVar8->nodes + iVar7;\n        iVar6 = iVar6 + 1;\n        if (((prVar1->field_0x4 == '\b') && (uVar4 = (prVar1->opr).idx, (int)uVar4 < 0x20)) &&\n           ((prVar8->used_bkref_map >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar5 <= iVar6) {\n          return _REG_NOERROR;\n        }\n      }\n      iVar5 = mctx->nsub_tops;\n      pprVar9 = mctx->sub_tops;\n      if (iVar5 == mctx->asub_tops) {\n        iVar3 = iVar5 << 1;\n        pprVar9 = (re_sub_match_top_t **)(*(code *)PTR_realloc_000afde8)(pprVar9,iVar5 << 3);\n        if (pprVar9 == (re_sub_match_top_t **)0x0) {\n          return _REG_ESPACE;\n        }\n        iVar5 = mctx->nsub_tops;\n        mctx->sub_tops = pprVar9;\n        mctx->asub_tops = iVar3;\n      }\n      prVar2 = (re_sub_match_top_t *)(*(code *)PTR_calloc_000afdb8)(1,0x18);\n      pprVar9[iVar5] = prVar2;\n      if (prVar2 == (re_sub_match_top_t *)0x0) {\n        return _REG_ESPACE;\n      }\n      mctx->nsub_tops = iVar5 + 1;\n      prVar2->node = iVar7;\n      prVar2->str_idx = (Idx)cur_nodes_1;\n      iVar5 = cur_nodes->alloc;\n    } while (iVar6 < iVar5);\n  }\n  return _REG_NOERROR;\n}\n\n" comment (function_definition "reg_errcode_t\ncheck_subexp_matching_top\n          (re_match_context_t *mctx,re_node_set *cur_nodes,Idx str_idx,re_node_set *cur_nodes_1)\n\n{\n  re_token_t *prVar1;\n  re_sub_match_top_t *prVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  re_dfa_t *prVar8;\n  re_sub_match_top_t **pprVar9;\n  \n  iVar5 = cur_nodes->alloc;\n  prVar8 = mctx->dfa;\n  if (0 < iVar5) {\n    iVar6 = 0;\n    do {\n      while( true ) {\n        iVar7 = *(int *)(*(int *)str_idx + iVar6 * 4);\n        prVar1 = prVar8->nodes + iVar7;\n        iVar6 = iVar6 + 1;\n        if (((prVar1->field_0x4 == '\b') && (uVar4 = (prVar1->opr).idx, (int)uVar4 < 0x20)) &&\n           ((prVar8->used_bkref_map >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar5 <= iVar6) {\n          return _REG_NOERROR;\n        }\n      }\n      iVar5 = mctx->nsub_tops;\n      pprVar9 = mctx->sub_tops;\n      if (iVar5 == mctx->asub_tops) {\n        iVar3 = iVar5 << 1;\n        pprVar9 = (re_sub_match_top_t **)(*(code *)PTR_realloc_000afde8)(pprVar9,iVar5 << 3);\n        if (pprVar9 == (re_sub_match_top_t **)0x0) {\n          return _REG_ESPACE;\n        }\n        iVar5 = mctx->nsub_tops;\n        mctx->sub_tops = pprVar9;\n        mctx->asub_tops = iVar3;\n      }\n      prVar2 = (re_sub_match_top_t *)(*(code *)PTR_calloc_000afdb8)(1,0x18);\n      pprVar9[iVar5] = prVar2;\n      if (prVar2 == (re_sub_match_top_t *)0x0) {\n        return _REG_ESPACE;\n      }\n      mctx->nsub_tops = iVar5 + 1;\n      prVar2->node = iVar7;\n      prVar2->str_idx = (Idx)cur_nodes_1;\n      iVar5 = cur_nodes->alloc;\n    } while (iVar6 < iVar5);\n  }\n  return _REG_NOERROR;\n}" type_identifier (function_declarator "check_subexp_matching_top\n          (re_match_context_t *mctx,re_node_set *cur_nodes,Idx str_idx,re_node_set *cur_nodes_1)" identifier (parameter_list "(re_match_context_t *mctx,re_node_set *cur_nodes,Idx str_idx,re_node_set *cur_nodes_1)" ( (parameter_declaration "re_match_context_t *mctx" type_identifier (pointer_declarator "*mctx" * identifier)) , (parameter_declaration "re_node_set *cur_nodes" type_identifier (pointer_declarator "*cur_nodes" * identifier)) , (parameter_declaration "Idx str_idx" type_identifier identifier) , (parameter_declaration "re_node_set *cur_nodes_1" type_identifier (pointer_declarator "*cur_nodes_1" * identifier)) ))) (compound_statement "{\n  re_token_t *prVar1;\n  re_sub_match_top_t *prVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  re_dfa_t *prVar8;\n  re_sub_match_top_t **pprVar9;\n  \n  iVar5 = cur_nodes->alloc;\n  prVar8 = mctx->dfa;\n  if (0 < iVar5) {\n    iVar6 = 0;\n    do {\n      while( true ) {\n        iVar7 = *(int *)(*(int *)str_idx + iVar6 * 4);\n        prVar1 = prVar8->nodes + iVar7;\n        iVar6 = iVar6 + 1;\n        if (((prVar1->field_0x4 == '\b') && (uVar4 = (prVar1->opr).idx, (int)uVar4 < 0x20)) &&\n           ((prVar8->used_bkref_map >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar5 <= iVar6) {\n          return _REG_NOERROR;\n        }\n      }\n      iVar5 = mctx->nsub_tops;\n      pprVar9 = mctx->sub_tops;\n      if (iVar5 == mctx->asub_tops) {\n        iVar3 = iVar5 << 1;\n        pprVar9 = (re_sub_match_top_t **)(*(code *)PTR_realloc_000afde8)(pprVar9,iVar5 << 3);\n        if (pprVar9 == (re_sub_match_top_t **)0x0) {\n          return _REG_ESPACE;\n        }\n        iVar5 = mctx->nsub_tops;\n        mctx->sub_tops = pprVar9;\n        mctx->asub_tops = iVar3;\n      }\n      prVar2 = (re_sub_match_top_t *)(*(code *)PTR_calloc_000afdb8)(1,0x18);\n      pprVar9[iVar5] = prVar2;\n      if (prVar2 == (re_sub_match_top_t *)0x0) {\n        return _REG_ESPACE;\n      }\n      mctx->nsub_tops = iVar5 + 1;\n      prVar2->node = iVar7;\n      prVar2->str_idx = (Idx)cur_nodes_1;\n      iVar5 = cur_nodes->alloc;\n    } while (iVar6 < iVar5);\n  }\n  return _REG_NOERROR;\n}" { (declaration "re_token_t *prVar1;" type_identifier (pointer_declarator "*prVar1" * identifier) ;) (declaration "re_sub_match_top_t *prVar2;" type_identifier (pointer_declarator "*prVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "re_dfa_t *prVar8;" type_identifier (pointer_declarator "*prVar8" * identifier) ;) (declaration "re_sub_match_top_t **pprVar9;" type_identifier (pointer_declarator "**pprVar9" * (pointer_declarator "*pprVar9" * identifier)) ;) (expression_statement "iVar5 = cur_nodes->alloc;" (assignment_expression "iVar5 = cur_nodes->alloc" identifier = (field_expression "cur_nodes->alloc" identifier -> field_identifier)) ;) (expression_statement "prVar8 = mctx->dfa;" (assignment_expression "prVar8 = mctx->dfa" identifier = (field_expression "mctx->dfa" identifier -> field_identifier)) ;) (if_statement "if (0 < iVar5) {\n    iVar6 = 0;\n    do {\n      while( true ) {\n        iVar7 = *(int *)(*(int *)str_idx + iVar6 * 4);\n        prVar1 = prVar8->nodes + iVar7;\n        iVar6 = iVar6 + 1;\n        if (((prVar1->field_0x4 == '\b') && (uVar4 = (prVar1->opr).idx, (int)uVar4 < 0x20)) &&\n           ((prVar8->used_bkref_map >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar5 <= iVar6) {\n          return _REG_NOERROR;\n        }\n      }\n      iVar5 = mctx->nsub_tops;\n      pprVar9 = mctx->sub_tops;\n      if (iVar5 == mctx->asub_tops) {\n        iVar3 = iVar5 << 1;\n        pprVar9 = (re_sub_match_top_t **)(*(code *)PTR_realloc_000afde8)(pprVar9,iVar5 << 3);\n        if (pprVar9 == (re_sub_match_top_t **)0x0) {\n          return _REG_ESPACE;\n        }\n        iVar5 = mctx->nsub_tops;\n        mctx->sub_tops = pprVar9;\n        mctx->asub_tops = iVar3;\n      }\n      prVar2 = (re_sub_match_top_t *)(*(code *)PTR_calloc_000afdb8)(1,0x18);\n      pprVar9[iVar5] = prVar2;\n      if (prVar2 == (re_sub_match_top_t *)0x0) {\n        return _REG_ESPACE;\n      }\n      mctx->nsub_tops = iVar5 + 1;\n      prVar2->node = iVar7;\n      prVar2->str_idx = (Idx)cur_nodes_1;\n      iVar5 = cur_nodes->alloc;\n    } while (iVar6 < iVar5);\n  }" if (parenthesized_expression "(0 < iVar5)" ( (binary_expression "0 < iVar5" number_literal < identifier) )) (compound_statement "{\n    iVar6 = 0;\n    do {\n      while( true ) {\n        iVar7 = *(int *)(*(int *)str_idx + iVar6 * 4);\n        prVar1 = prVar8->nodes + iVar7;\n        iVar6 = iVar6 + 1;\n        if (((prVar1->field_0x4 == '\b') && (uVar4 = (prVar1->opr).idx, (int)uVar4 < 0x20)) &&\n           ((prVar8->used_bkref_map >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar5 <= iVar6) {\n          return _REG_NOERROR;\n        }\n      }\n      iVar5 = mctx->nsub_tops;\n      pprVar9 = mctx->sub_tops;\n      if (iVar5 == mctx->asub_tops) {\n        iVar3 = iVar5 << 1;\n        pprVar9 = (re_sub_match_top_t **)(*(code *)PTR_realloc_000afde8)(pprVar9,iVar5 << 3);\n        if (pprVar9 == (re_sub_match_top_t **)0x0) {\n          return _REG_ESPACE;\n        }\n        iVar5 = mctx->nsub_tops;\n        mctx->sub_tops = pprVar9;\n        mctx->asub_tops = iVar3;\n      }\n      prVar2 = (re_sub_match_top_t *)(*(code *)PTR_calloc_000afdb8)(1,0x18);\n      pprVar9[iVar5] = prVar2;\n      if (prVar2 == (re_sub_match_top_t *)0x0) {\n        return _REG_ESPACE;\n      }\n      mctx->nsub_tops = iVar5 + 1;\n      prVar2->node = iVar7;\n      prVar2->str_idx = (Idx)cur_nodes_1;\n      iVar5 = cur_nodes->alloc;\n    } while (iVar6 < iVar5);\n  }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n      while( true ) {\n        iVar7 = *(int *)(*(int *)str_idx + iVar6 * 4);\n        prVar1 = prVar8->nodes + iVar7;\n        iVar6 = iVar6 + 1;\n        if (((prVar1->field_0x4 == '\b') && (uVar4 = (prVar1->opr).idx, (int)uVar4 < 0x20)) &&\n           ((prVar8->used_bkref_map >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar5 <= iVar6) {\n          return _REG_NOERROR;\n        }\n      }\n      iVar5 = mctx->nsub_tops;\n      pprVar9 = mctx->sub_tops;\n      if (iVar5 == mctx->asub_tops) {\n        iVar3 = iVar5 << 1;\n        pprVar9 = (re_sub_match_top_t **)(*(code *)PTR_realloc_000afde8)(pprVar9,iVar5 << 3);\n        if (pprVar9 == (re_sub_match_top_t **)0x0) {\n          return _REG_ESPACE;\n        }\n        iVar5 = mctx->nsub_tops;\n        mctx->sub_tops = pprVar9;\n        mctx->asub_tops = iVar3;\n      }\n      prVar2 = (re_sub_match_top_t *)(*(code *)PTR_calloc_000afdb8)(1,0x18);\n      pprVar9[iVar5] = prVar2;\n      if (prVar2 == (re_sub_match_top_t *)0x0) {\n        return _REG_ESPACE;\n      }\n      mctx->nsub_tops = iVar5 + 1;\n      prVar2->node = iVar7;\n      prVar2->str_idx = (Idx)cur_nodes_1;\n      iVar5 = cur_nodes->alloc;\n    } while (iVar6 < iVar5);" do (compound_statement "{\n      while( true ) {\n        iVar7 = *(int *)(*(int *)str_idx + iVar6 * 4);\n        prVar1 = prVar8->nodes + iVar7;\n        iVar6 = iVar6 + 1;\n        if (((prVar1->field_0x4 == '\b') && (uVar4 = (prVar1->opr).idx, (int)uVar4 < 0x20)) &&\n           ((prVar8->used_bkref_map >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar5 <= iVar6) {\n          return _REG_NOERROR;\n        }\n      }\n      iVar5 = mctx->nsub_tops;\n      pprVar9 = mctx->sub_tops;\n      if (iVar5 == mctx->asub_tops) {\n        iVar3 = iVar5 << 1;\n        pprVar9 = (re_sub_match_top_t **)(*(code *)PTR_realloc_000afde8)(pprVar9,iVar5 << 3);\n        if (pprVar9 == (re_sub_match_top_t **)0x0) {\n          return _REG_ESPACE;\n        }\n        iVar5 = mctx->nsub_tops;\n        mctx->sub_tops = pprVar9;\n        mctx->asub_tops = iVar3;\n      }\n      prVar2 = (re_sub_match_top_t *)(*(code *)PTR_calloc_000afdb8)(1,0x18);\n      pprVar9[iVar5] = prVar2;\n      if (prVar2 == (re_sub_match_top_t *)0x0) {\n        return _REG_ESPACE;\n      }\n      mctx->nsub_tops = iVar5 + 1;\n      prVar2->node = iVar7;\n      prVar2->str_idx = (Idx)cur_nodes_1;\n      iVar5 = cur_nodes->alloc;\n    }" { (while_statement "while( true ) {\n        iVar7 = *(int *)(*(int *)str_idx + iVar6 * 4);\n        prVar1 = prVar8->nodes + iVar7;\n        iVar6 = iVar6 + 1;\n        if (((prVar1->field_0x4 == '\b') && (uVar4 = (prVar1->opr).idx, (int)uVar4 < 0x20)) &&\n           ((prVar8->used_bkref_map >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar5 <= iVar6) {\n          return _REG_NOERROR;\n        }\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar7 = *(int *)(*(int *)str_idx + iVar6 * 4);\n        prVar1 = prVar8->nodes + iVar7;\n        iVar6 = iVar6 + 1;\n        if (((prVar1->field_0x4 == '\b') && (uVar4 = (prVar1->opr).idx, (int)uVar4 < 0x20)) &&\n           ((prVar8->used_bkref_map >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar5 <= iVar6) {\n          return _REG_NOERROR;\n        }\n      }" { (expression_statement "iVar7 = *(int *)(*(int *)str_idx + iVar6 * 4);" (assignment_expression "iVar7 = *(int *)(*(int *)str_idx + iVar6 * 4)" identifier = (pointer_expression "*(int *)(*(int *)str_idx + iVar6 * 4)" * (cast_expression "(int *)(*(int *)str_idx + iVar6 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)str_idx + iVar6 * 4)" ( (binary_expression "*(int *)str_idx + iVar6 * 4" (pointer_expression "*(int *)str_idx" * (cast_expression "(int *)str_idx" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + (binary_expression "iVar6 * 4" identifier * number_literal)) ))))) ;) (expression_statement "prVar1 = prVar8->nodes + iVar7;" (assignment_expression "prVar1 = prVar8->nodes + iVar7" identifier = (binary_expression "prVar8->nodes + iVar7" (field_expression "prVar8->nodes" identifier -> field_identifier) + identifier)) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (if_statement "if (((prVar1->field_0x4 == '\b') && (uVar4 = (prVar1->opr).idx, (int)uVar4 < 0x20)) &&\n           ((prVar8->used_bkref_map >> (uVar4 & 0x1f) & 1) != 0)) break;" if (parenthesized_expression "(((prVar1->field_0x4 == '\b') && (uVar4 = (prVar1->opr).idx, (int)uVar4 < 0x20)) &&\n           ((prVar8->used_bkref_map >> (uVar4 & 0x1f) & 1) != 0))" ( (binary_expression "((prVar1->field_0x4 == '\b') && (uVar4 = (prVar1->opr).idx, (int)uVar4 < 0x20)) &&\n           ((prVar8->used_bkref_map >> (uVar4 & 0x1f) & 1) != 0)" (parenthesized_expression "((prVar1->field_0x4 == '\b') && (uVar4 = (prVar1->opr).idx, (int)uVar4 < 0x20))" ( (binary_expression "(prVar1->field_0x4 == '\b') && (uVar4 = (prVar1->opr).idx, (int)uVar4 < 0x20)" (parenthesized_expression "(prVar1->field_0x4 == '\b')" ( (binary_expression "prVar1->field_0x4 == '\b'" (field_expression "prVar1->field_0x4" identifier -> field_identifier) == (char_literal "'\b'" ' escape_sequence ')) )) && (parenthesized_expression "(uVar4 = (prVar1->opr).idx, (int)uVar4 < 0x20)" ( (comma_expression "uVar4 = (prVar1->opr).idx, (int)uVar4 < 0x20" (assignment_expression "uVar4 = (prVar1->opr).idx" identifier = (field_expression "(prVar1->opr).idx" (parenthesized_expression "(prVar1->opr)" ( (field_expression "prVar1->opr" identifier -> field_identifier) )) . field_identifier)) , (binary_expression "(int)uVar4 < 0x20" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal)) ))) )) && (parenthesized_expression "((prVar8->used_bkref_map >> (uVar4 & 0x1f) & 1) != 0)" ( (binary_expression "(prVar8->used_bkref_map >> (uVar4 & 0x1f) & 1) != 0" (parenthesized_expression "(prVar8->used_bkref_map >> (uVar4 & 0x1f) & 1)" ( (binary_expression "prVar8->used_bkref_map >> (uVar4 & 0x1f) & 1" (binary_expression "prVar8->used_bkref_map >> (uVar4 & 0x1f)" (field_expression "prVar8->used_bkref_map" identifier -> field_identifier) >> (parenthesized_expression "(uVar4 & 0x1f)" ( (binary_expression "uVar4 & 0x1f" identifier & number_literal) ))) & number_literal) )) != number_literal) ))) )) (break_statement "break;" break ;)) (if_statement "if (iVar5 <= iVar6) {\n          return _REG_NOERROR;\n        }" if (parenthesized_expression "(iVar5 <= iVar6)" ( (binary_expression "iVar5 <= iVar6" identifier <= identifier) )) (compound_statement "{\n          return _REG_NOERROR;\n        }" { (return_statement "return _REG_NOERROR;" return identifier ;) })) })) (expression_statement "iVar5 = mctx->nsub_tops;" (assignment_expression "iVar5 = mctx->nsub_tops" identifier = (field_expression "mctx->nsub_tops" identifier -> field_identifier)) ;) (expression_statement "pprVar9 = mctx->sub_tops;" (assignment_expression "pprVar9 = mctx->sub_tops" identifier = (field_expression "mctx->sub_tops" identifier -> field_identifier)) ;) (if_statement "if (iVar5 == mctx->asub_tops) {\n        iVar3 = iVar5 << 1;\n        pprVar9 = (re_sub_match_top_t **)(*(code *)PTR_realloc_000afde8)(pprVar9,iVar5 << 3);\n        if (pprVar9 == (re_sub_match_top_t **)0x0) {\n          return _REG_ESPACE;\n        }\n        iVar5 = mctx->nsub_tops;\n        mctx->sub_tops = pprVar9;\n        mctx->asub_tops = iVar3;\n      }" if (parenthesized_expression "(iVar5 == mctx->asub_tops)" ( (binary_expression "iVar5 == mctx->asub_tops" identifier == (field_expression "mctx->asub_tops" identifier -> field_identifier)) )) (compound_statement "{\n        iVar3 = iVar5 << 1;\n        pprVar9 = (re_sub_match_top_t **)(*(code *)PTR_realloc_000afde8)(pprVar9,iVar5 << 3);\n        if (pprVar9 == (re_sub_match_top_t **)0x0) {\n          return _REG_ESPACE;\n        }\n        iVar5 = mctx->nsub_tops;\n        mctx->sub_tops = pprVar9;\n        mctx->asub_tops = iVar3;\n      }" { (expression_statement "iVar3 = iVar5 << 1;" (assignment_expression "iVar3 = iVar5 << 1" identifier = (binary_expression "iVar5 << 1" identifier << number_literal)) ;) (expression_statement "pprVar9 = (re_sub_match_top_t **)(*(code *)PTR_realloc_000afde8)(pprVar9,iVar5 << 3);" (assignment_expression "pprVar9 = (re_sub_match_top_t **)(*(code *)PTR_realloc_000afde8)(pprVar9,iVar5 << 3)" identifier = (cast_expression "(re_sub_match_top_t **)(*(code *)PTR_realloc_000afde8)(pprVar9,iVar5 << 3)" ( (type_descriptor "re_sub_match_top_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "(*(code *)PTR_realloc_000afde8)(pprVar9,iVar5 << 3)" (parenthesized_expression "(*(code *)PTR_realloc_000afde8)" ( (pointer_expression "*(code *)PTR_realloc_000afde8" * (cast_expression "(code *)PTR_realloc_000afde8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pprVar9,iVar5 << 3)" ( identifier , (binary_expression "iVar5 << 3" identifier << number_literal) ))))) ;) (if_statement "if (pprVar9 == (re_sub_match_top_t **)0x0) {\n          return _REG_ESPACE;\n        }" if (parenthesized_expression "(pprVar9 == (re_sub_match_top_t **)0x0)" ( (binary_expression "pprVar9 == (re_sub_match_top_t **)0x0" identifier == (cast_expression "(re_sub_match_top_t **)0x0" ( (type_descriptor "re_sub_match_top_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n          return _REG_ESPACE;\n        }" { (return_statement "return _REG_ESPACE;" return identifier ;) })) (expression_statement "iVar5 = mctx->nsub_tops;" (assignment_expression "iVar5 = mctx->nsub_tops" identifier = (field_expression "mctx->nsub_tops" identifier -> field_identifier)) ;) (expression_statement "mctx->sub_tops = pprVar9;" (assignment_expression "mctx->sub_tops = pprVar9" (field_expression "mctx->sub_tops" identifier -> field_identifier) = identifier) ;) (expression_statement "mctx->asub_tops = iVar3;" (assignment_expression "mctx->asub_tops = iVar3" (field_expression "mctx->asub_tops" identifier -> field_identifier) = identifier) ;) })) (expression_statement "prVar2 = (re_sub_match_top_t *)(*(code *)PTR_calloc_000afdb8)(1,0x18);" (assignment_expression "prVar2 = (re_sub_match_top_t *)(*(code *)PTR_calloc_000afdb8)(1,0x18)" identifier = (cast_expression "(re_sub_match_top_t *)(*(code *)PTR_calloc_000afdb8)(1,0x18)" ( (type_descriptor "re_sub_match_top_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_calloc_000afdb8)(1,0x18)" (parenthesized_expression "(*(code *)PTR_calloc_000afdb8)" ( (pointer_expression "*(code *)PTR_calloc_000afdb8" * (cast_expression "(code *)PTR_calloc_000afdb8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x18)" ( number_literal , number_literal ))))) ;) (expression_statement "pprVar9[iVar5] = prVar2;" (assignment_expression "pprVar9[iVar5] = prVar2" (subscript_expression "pprVar9[iVar5]" identifier [ identifier ]) = identifier) ;) (if_statement "if (prVar2 == (re_sub_match_top_t *)0x0) {\n        return _REG_ESPACE;\n      }" if (parenthesized_expression "(prVar2 == (re_sub_match_top_t *)0x0)" ( (binary_expression "prVar2 == (re_sub_match_top_t *)0x0" identifier == (cast_expression "(re_sub_match_top_t *)0x0" ( (type_descriptor "re_sub_match_top_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return _REG_ESPACE;\n      }" { (return_statement "return _REG_ESPACE;" return identifier ;) })) (expression_statement "mctx->nsub_tops = iVar5 + 1;" (assignment_expression "mctx->nsub_tops = iVar5 + 1" (field_expression "mctx->nsub_tops" identifier -> field_identifier) = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "prVar2->node = iVar7;" (assignment_expression "prVar2->node = iVar7" (field_expression "prVar2->node" identifier -> field_identifier) = identifier) ;) (expression_statement "prVar2->str_idx = (Idx)cur_nodes_1;" (assignment_expression "prVar2->str_idx = (Idx)cur_nodes_1" (field_expression "prVar2->str_idx" identifier -> field_identifier) = (cast_expression "(Idx)cur_nodes_1" ( (type_descriptor "Idx" type_identifier) ) identifier)) ;) (expression_statement "iVar5 = cur_nodes->alloc;" (assignment_expression "iVar5 = cur_nodes->alloc" identifier = (field_expression "cur_nodes->alloc" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(iVar6 < iVar5)" ( (binary_expression "iVar6 < iVar5" identifier < identifier) )) ;) })) (return_statement "return _REG_NOERROR;" return identifier ;) })))
(translation_unit "undefined4 FUN_00075654(int param_1,int *param_2,int *param_3,undefined4 param_4)\n\n{\n  uint *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int *piVar9;\n  \n  iVar6 = *param_2;\n  piVar9 = *(int **)(param_1 + 0x54);\n  if (0 < iVar6) {\n    iVar7 = 0;\n    do {\n      while( true ) {\n        iVar8 = *(int *)(*param_3 + iVar7 * 4);\n        puVar1 = (uint *)(*piVar9 + iVar8 * 8);\n        iVar7 = iVar7 + 1;\n        if (((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar6 <= iVar7) {\n          return 0;\n        }\n      }\n      iVar5 = *(int *)(param_1 + 0x7c);\n      iVar6 = *(int *)(param_1 + 0x84);\n      if (iVar5 == *(int *)(param_1 + 0x80)) {\n        iVar3 = iVar5 << 1;\n        iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        iVar5 = *(int *)(param_1 + 0x7c);\n        *(int *)(param_1 + 0x84) = iVar6;\n        *(int *)(param_1 + 0x80) = iVar3;\n      }\n      puVar2 = (undefined4 *)(*(code *)PTR_calloc_000afdb8)(1,0x18);\n      *(undefined4 **)(iVar6 + iVar5 * 4) = puVar2;\n      if (puVar2 == (undefined4 *)0x0) {\n        return 0xc;\n      }\n      *(int *)(param_1 + 0x7c) = iVar5 + 1;\n      puVar2[1] = iVar8;\n      *puVar2 = param_4;\n      iVar6 = *param_2;\n    } while (iVar7 < iVar6);\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00075654(int param_1,int *param_2,int *param_3,undefined4 param_4)\n\n{\n  uint *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int *piVar9;\n  \n  iVar6 = *param_2;\n  piVar9 = *(int **)(param_1 + 0x54);\n  if (0 < iVar6) {\n    iVar7 = 0;\n    do {\n      while( true ) {\n        iVar8 = *(int *)(*param_3 + iVar7 * 4);\n        puVar1 = (uint *)(*piVar9 + iVar8 * 8);\n        iVar7 = iVar7 + 1;\n        if (((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar6 <= iVar7) {\n          return 0;\n        }\n      }\n      iVar5 = *(int *)(param_1 + 0x7c);\n      iVar6 = *(int *)(param_1 + 0x84);\n      if (iVar5 == *(int *)(param_1 + 0x80)) {\n        iVar3 = iVar5 << 1;\n        iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        iVar5 = *(int *)(param_1 + 0x7c);\n        *(int *)(param_1 + 0x84) = iVar6;\n        *(int *)(param_1 + 0x80) = iVar3;\n      }\n      puVar2 = (undefined4 *)(*(code *)PTR_calloc_000afdb8)(1,0x18);\n      *(undefined4 **)(iVar6 + iVar5 * 4) = puVar2;\n      if (puVar2 == (undefined4 *)0x0) {\n        return 0xc;\n      }\n      *(int *)(param_1 + 0x7c) = iVar5 + 1;\n      puVar2[1] = iVar8;\n      *puVar2 = param_4;\n      iVar6 = *param_2;\n    } while (iVar7 < iVar6);\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00075654(int param_1,int *param_2,int *param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,int *param_2,int *param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  uint *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int *piVar9;\n  \n  iVar6 = *param_2;\n  piVar9 = *(int **)(param_1 + 0x54);\n  if (0 < iVar6) {\n    iVar7 = 0;\n    do {\n      while( true ) {\n        iVar8 = *(int *)(*param_3 + iVar7 * 4);\n        puVar1 = (uint *)(*piVar9 + iVar8 * 8);\n        iVar7 = iVar7 + 1;\n        if (((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar6 <= iVar7) {\n          return 0;\n        }\n      }\n      iVar5 = *(int *)(param_1 + 0x7c);\n      iVar6 = *(int *)(param_1 + 0x84);\n      if (iVar5 == *(int *)(param_1 + 0x80)) {\n        iVar3 = iVar5 << 1;\n        iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        iVar5 = *(int *)(param_1 + 0x7c);\n        *(int *)(param_1 + 0x84) = iVar6;\n        *(int *)(param_1 + 0x80) = iVar3;\n      }\n      puVar2 = (undefined4 *)(*(code *)PTR_calloc_000afdb8)(1,0x18);\n      *(undefined4 **)(iVar6 + iVar5 * 4) = puVar2;\n      if (puVar2 == (undefined4 *)0x0) {\n        return 0xc;\n      }\n      *(int *)(param_1 + 0x7c) = iVar5 + 1;\n      puVar2[1] = iVar8;\n      *puVar2 = param_4;\n      iVar6 = *param_2;\n    } while (iVar7 < iVar6);\n  }\n  return 0;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (expression_statement "iVar6 = *param_2;" (assignment_expression "iVar6 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "piVar9 = *(int **)(param_1 + 0x54);" (assignment_expression "piVar9 = *(int **)(param_1 + 0x54)" identifier = (pointer_expression "*(int **)(param_1 + 0x54)" * (cast_expression "(int **)(param_1 + 0x54)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) ))))) ;) (if_statement "if (0 < iVar6) {\n    iVar7 = 0;\n    do {\n      while( true ) {\n        iVar8 = *(int *)(*param_3 + iVar7 * 4);\n        puVar1 = (uint *)(*piVar9 + iVar8 * 8);\n        iVar7 = iVar7 + 1;\n        if (((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar6 <= iVar7) {\n          return 0;\n        }\n      }\n      iVar5 = *(int *)(param_1 + 0x7c);\n      iVar6 = *(int *)(param_1 + 0x84);\n      if (iVar5 == *(int *)(param_1 + 0x80)) {\n        iVar3 = iVar5 << 1;\n        iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        iVar5 = *(int *)(param_1 + 0x7c);\n        *(int *)(param_1 + 0x84) = iVar6;\n        *(int *)(param_1 + 0x80) = iVar3;\n      }\n      puVar2 = (undefined4 *)(*(code *)PTR_calloc_000afdb8)(1,0x18);\n      *(undefined4 **)(iVar6 + iVar5 * 4) = puVar2;\n      if (puVar2 == (undefined4 *)0x0) {\n        return 0xc;\n      }\n      *(int *)(param_1 + 0x7c) = iVar5 + 1;\n      puVar2[1] = iVar8;\n      *puVar2 = param_4;\n      iVar6 = *param_2;\n    } while (iVar7 < iVar6);\n  }" if (parenthesized_expression "(0 < iVar6)" ( (binary_expression "0 < iVar6" number_literal < identifier) )) (compound_statement "{\n    iVar7 = 0;\n    do {\n      while( true ) {\n        iVar8 = *(int *)(*param_3 + iVar7 * 4);\n        puVar1 = (uint *)(*piVar9 + iVar8 * 8);\n        iVar7 = iVar7 + 1;\n        if (((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar6 <= iVar7) {\n          return 0;\n        }\n      }\n      iVar5 = *(int *)(param_1 + 0x7c);\n      iVar6 = *(int *)(param_1 + 0x84);\n      if (iVar5 == *(int *)(param_1 + 0x80)) {\n        iVar3 = iVar5 << 1;\n        iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        iVar5 = *(int *)(param_1 + 0x7c);\n        *(int *)(param_1 + 0x84) = iVar6;\n        *(int *)(param_1 + 0x80) = iVar3;\n      }\n      puVar2 = (undefined4 *)(*(code *)PTR_calloc_000afdb8)(1,0x18);\n      *(undefined4 **)(iVar6 + iVar5 * 4) = puVar2;\n      if (puVar2 == (undefined4 *)0x0) {\n        return 0xc;\n      }\n      *(int *)(param_1 + 0x7c) = iVar5 + 1;\n      puVar2[1] = iVar8;\n      *puVar2 = param_4;\n      iVar6 = *param_2;\n    } while (iVar7 < iVar6);\n  }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n      while( true ) {\n        iVar8 = *(int *)(*param_3 + iVar7 * 4);\n        puVar1 = (uint *)(*piVar9 + iVar8 * 8);\n        iVar7 = iVar7 + 1;\n        if (((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar6 <= iVar7) {\n          return 0;\n        }\n      }\n      iVar5 = *(int *)(param_1 + 0x7c);\n      iVar6 = *(int *)(param_1 + 0x84);\n      if (iVar5 == *(int *)(param_1 + 0x80)) {\n        iVar3 = iVar5 << 1;\n        iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        iVar5 = *(int *)(param_1 + 0x7c);\n        *(int *)(param_1 + 0x84) = iVar6;\n        *(int *)(param_1 + 0x80) = iVar3;\n      }\n      puVar2 = (undefined4 *)(*(code *)PTR_calloc_000afdb8)(1,0x18);\n      *(undefined4 **)(iVar6 + iVar5 * 4) = puVar2;\n      if (puVar2 == (undefined4 *)0x0) {\n        return 0xc;\n      }\n      *(int *)(param_1 + 0x7c) = iVar5 + 1;\n      puVar2[1] = iVar8;\n      *puVar2 = param_4;\n      iVar6 = *param_2;\n    } while (iVar7 < iVar6);" do (compound_statement "{\n      while( true ) {\n        iVar8 = *(int *)(*param_3 + iVar7 * 4);\n        puVar1 = (uint *)(*piVar9 + iVar8 * 8);\n        iVar7 = iVar7 + 1;\n        if (((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar6 <= iVar7) {\n          return 0;\n        }\n      }\n      iVar5 = *(int *)(param_1 + 0x7c);\n      iVar6 = *(int *)(param_1 + 0x84);\n      if (iVar5 == *(int *)(param_1 + 0x80)) {\n        iVar3 = iVar5 << 1;\n        iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        iVar5 = *(int *)(param_1 + 0x7c);\n        *(int *)(param_1 + 0x84) = iVar6;\n        *(int *)(param_1 + 0x80) = iVar3;\n      }\n      puVar2 = (undefined4 *)(*(code *)PTR_calloc_000afdb8)(1,0x18);\n      *(undefined4 **)(iVar6 + iVar5 * 4) = puVar2;\n      if (puVar2 == (undefined4 *)0x0) {\n        return 0xc;\n      }\n      *(int *)(param_1 + 0x7c) = iVar5 + 1;\n      puVar2[1] = iVar8;\n      *puVar2 = param_4;\n      iVar6 = *param_2;\n    }" { (while_statement "while( true ) {\n        iVar8 = *(int *)(*param_3 + iVar7 * 4);\n        puVar1 = (uint *)(*piVar9 + iVar8 * 8);\n        iVar7 = iVar7 + 1;\n        if (((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar6 <= iVar7) {\n          return 0;\n        }\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar8 = *(int *)(*param_3 + iVar7 * 4);\n        puVar1 = (uint *)(*piVar9 + iVar8 * 8);\n        iVar7 = iVar7 + 1;\n        if (((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar6 <= iVar7) {\n          return 0;\n        }\n      }" { (expression_statement "iVar8 = *(int *)(*param_3 + iVar7 * 4);" (assignment_expression "iVar8 = *(int *)(*param_3 + iVar7 * 4)" identifier = (pointer_expression "*(int *)(*param_3 + iVar7 * 4)" * (cast_expression "(int *)(*param_3 + iVar7 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_3 + iVar7 * 4)" ( (binary_expression "*param_3 + iVar7 * 4" (pointer_expression "*param_3" * identifier) + (binary_expression "iVar7 * 4" identifier * number_literal)) ))))) ;) (expression_statement "puVar1 = (uint *)(*piVar9 + iVar8 * 8);" (assignment_expression "puVar1 = (uint *)(*piVar9 + iVar8 * 8)" identifier = (cast_expression "(uint *)(*piVar9 + iVar8 * 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar9 + iVar8 * 8)" ( (binary_expression "*piVar9 + iVar8 * 8" (pointer_expression "*piVar9" * identifier) + (binary_expression "iVar8 * 8" identifier * number_literal)) )))) ;) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (if_statement "if (((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)) break;" if (parenthesized_expression "(((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0))" ( (binary_expression "((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)" (parenthesized_expression "((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20))" ( (binary_expression "(*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)" (parenthesized_expression "(*(char *)(puVar1 + 1) == '\b')" ( (binary_expression "*(char *)(puVar1 + 1) == '\b'" (pointer_expression "*(char *)(puVar1 + 1)" * (cast_expression "(char *)(puVar1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 1)" ( (binary_expression "puVar1 + 1" identifier + number_literal) )))) == (char_literal "'\b'" ' escape_sequence ')) )) && (parenthesized_expression "(uVar4 = *puVar1, (int)uVar4 < 0x20)" ( (comma_expression "uVar4 = *puVar1, (int)uVar4 < 0x20" (assignment_expression "uVar4 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) , (binary_expression "(int)uVar4 < 0x20" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal)) ))) )) && (parenthesized_expression "(((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)" ( (binary_expression "((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0" (parenthesized_expression "((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1)" ( (binary_expression "(uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1" (binary_expression "(uint)piVar9[0x14] >> (uVar4 & 0x1f)" (cast_expression "(uint)piVar9[0x14]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar9[0x14]" identifier [ number_literal ])) >> (parenthesized_expression "(uVar4 & 0x1f)" ( (binary_expression "uVar4 & 0x1f" identifier & number_literal) ))) & number_literal) )) != number_literal) ))) )) (break_statement "break;" break ;)) (if_statement "if (iVar6 <= iVar7) {\n          return 0;\n        }" if (parenthesized_expression "(iVar6 <= iVar7)" ( (binary_expression "iVar6 <= iVar7" identifier <= identifier) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "iVar5 = *(int *)(param_1 + 0x7c);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x7c)" identifier = (pointer_expression "*(int *)(param_1 + 0x7c)" * (cast_expression "(int *)(param_1 + 0x7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = *(int *)(param_1 + 0x84);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x84)" identifier = (pointer_expression "*(int *)(param_1 + 0x84)" * (cast_expression "(int *)(param_1 + 0x84)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x84)" ( (binary_expression "param_1 + 0x84" identifier + number_literal) ))))) ;) (if_statement "if (iVar5 == *(int *)(param_1 + 0x80)) {\n        iVar3 = iVar5 << 1;\n        iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        iVar5 = *(int *)(param_1 + 0x7c);\n        *(int *)(param_1 + 0x84) = iVar6;\n        *(int *)(param_1 + 0x80) = iVar3;\n      }" if (parenthesized_expression "(iVar5 == *(int *)(param_1 + 0x80))" ( (binary_expression "iVar5 == *(int *)(param_1 + 0x80)" identifier == (pointer_expression "*(int *)(param_1 + 0x80)" * (cast_expression "(int *)(param_1 + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) ))))) )) (compound_statement "{\n        iVar3 = iVar5 << 1;\n        iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        iVar5 = *(int *)(param_1 + 0x7c);\n        *(int *)(param_1 + 0x84) = iVar6;\n        *(int *)(param_1 + 0x80) = iVar3;\n      }" { (expression_statement "iVar3 = iVar5 << 1;" (assignment_expression "iVar3 = iVar5 << 1" identifier = (binary_expression "iVar5 << 1" identifier << number_literal)) ;) (expression_statement "iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3);" (assignment_expression "iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3)" identifier = (call_expression "(*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3)" (parenthesized_expression "(*(code *)PTR_realloc_000afde8)" ( (pointer_expression "*(code *)PTR_realloc_000afde8" * (cast_expression "(code *)PTR_realloc_000afde8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6,iVar5 << 3)" ( identifier , (binary_expression "iVar5 << 3" identifier << number_literal) )))) ;) (if_statement "if (iVar6 == 0) {\n          return 0xc;\n        }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n          return 0xc;\n        }" { (return_statement "return 0xc;" return number_literal ;) })) (expression_statement "iVar5 = *(int *)(param_1 + 0x7c);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x7c)" identifier = (pointer_expression "*(int *)(param_1 + 0x7c)" * (cast_expression "(int *)(param_1 + 0x7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 0x84) = iVar6;" (assignment_expression "*(int *)(param_1 + 0x84) = iVar6" (pointer_expression "*(int *)(param_1 + 0x84)" * (cast_expression "(int *)(param_1 + 0x84)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x84)" ( (binary_expression "param_1 + 0x84" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0x80) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x80) = iVar3" (pointer_expression "*(int *)(param_1 + 0x80)" * (cast_expression "(int *)(param_1 + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR_calloc_000afdb8)(1,0x18);" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR_calloc_000afdb8)(1,0x18)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_calloc_000afdb8)(1,0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_calloc_000afdb8)(1,0x18)" (parenthesized_expression "(*(code *)PTR_calloc_000afdb8)" ( (pointer_expression "*(code *)PTR_calloc_000afdb8" * (cast_expression "(code *)PTR_calloc_000afdb8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x18)" ( number_literal , number_literal ))))) ;) (expression_statement "*(undefined4 **)(iVar6 + iVar5 * 4) = puVar2;" (assignment_expression "*(undefined4 **)(iVar6 + iVar5 * 4) = puVar2" (pointer_expression "*(undefined4 **)(iVar6 + iVar5 * 4)" * (cast_expression "(undefined4 **)(iVar6 + iVar5 * 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + iVar5 * 4)" ( (binary_expression "iVar6 + iVar5 * 4" identifier + (binary_expression "iVar5 * 4" identifier * number_literal)) )))) = identifier) ;) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n        return 0xc;\n      }" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return 0xc;\n      }" { (return_statement "return 0xc;" return number_literal ;) })) (expression_statement "*(int *)(param_1 + 0x7c) = iVar5 + 1;" (assignment_expression "*(int *)(param_1 + 0x7c) = iVar5 + 1" (pointer_expression "*(int *)(param_1 + 0x7c)" * (cast_expression "(int *)(param_1 + 0x7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) )))) = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "puVar2[1] = iVar8;" (assignment_expression "puVar2[1] = iVar8" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar2 = param_4;" (assignment_expression "*puVar2 = param_4" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "iVar6 = *param_2;" (assignment_expression "iVar6 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) }) while (parenthesized_expression "(iVar7 < iVar6)" ( (binary_expression "iVar7 < iVar6" identifier < identifier) )) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * IDENT)) , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT)) ))) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) >> (parenthesized_expression ( (binary_expression IDENT & LIT) ))) & LIT) )) != LIT) ))) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return LIT ;) })) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT << LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT << LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_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 (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00075654(int param_1,int *param_2,int *param_3,undefined4 param_4)\n\n{\n  uint *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int *piVar9;\n  \n  iVar6 = *param_2;\n  piVar9 = *(int **)(param_1 + 0x54);\n  if (0 < iVar6) {\n    iVar7 = 0;\n    do {\n      while( true ) {\n        iVar8 = *(int *)(*param_3 + iVar7 * 4);\n        puVar1 = (uint *)(*piVar9 + iVar8 * 8);\n        iVar7 = iVar7 + 1;\n        if (((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar6 <= iVar7) {\n          return 0;\n        }\n      }\n      iVar5 = *(int *)(param_1 + 0x7c);\n      iVar6 = *(int *)(param_1 + 0x84);\n      if (iVar5 == *(int *)(param_1 + 0x80)) {\n        iVar3 = iVar5 << 1;\n        iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        iVar5 = *(int *)(param_1 + 0x7c);\n        *(int *)(param_1 + 0x84) = iVar6;\n        *(int *)(param_1 + 0x80) = iVar3;\n      }\n      puVar2 = (undefined4 *)(*(code *)PTR_calloc_000afdb8)(1,0x18);\n      *(undefined4 **)(iVar6 + iVar5 * 4) = puVar2;\n      if (puVar2 == (undefined4 *)0x0) {\n        return 0xc;\n      }\n      *(int *)(param_1 + 0x7c) = iVar5 + 1;\n      puVar2[1] = iVar8;\n      *puVar2 = param_4;\n      iVar6 = *param_2;\n    } while (iVar7 < iVar6);\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00075654(int param_1,int *param_2,int *param_3,undefined4 param_4)" (identifier "FUN_00075654") (parameter_list "(int param_1,int *param_2,int *param_3,undefined4 param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  uint *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int *piVar9;\n  \n  iVar6 = *param_2;\n  piVar9 = *(int **)(param_1 + 0x54);\n  if (0 < iVar6) {\n    iVar7 = 0;\n    do {\n      while( true ) {\n        iVar8 = *(int *)(*param_3 + iVar7 * 4);\n        puVar1 = (uint *)(*piVar9 + iVar8 * 8);\n        iVar7 = iVar7 + 1;\n        if (((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar6 <= iVar7) {\n          return 0;\n        }\n      }\n      iVar5 = *(int *)(param_1 + 0x7c);\n      iVar6 = *(int *)(param_1 + 0x84);\n      if (iVar5 == *(int *)(param_1 + 0x80)) {\n        iVar3 = iVar5 << 1;\n        iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        iVar5 = *(int *)(param_1 + 0x7c);\n        *(int *)(param_1 + 0x84) = iVar6;\n        *(int *)(param_1 + 0x80) = iVar3;\n      }\n      puVar2 = (undefined4 *)(*(code *)PTR_calloc_000afdb8)(1,0x18);\n      *(undefined4 **)(iVar6 + iVar5 * 4) = puVar2;\n      if (puVar2 == (undefined4 *)0x0) {\n        return 0xc;\n      }\n      *(int *)(param_1 + 0x7c) = iVar5 + 1;\n      puVar2[1] = iVar8;\n      *puVar2 = param_4;\n      iVar6 = *param_2;\n    } while (iVar7 < iVar6);\n  }\n  return 0;\n}" ({ "{") (declaration "uint *puVar1;" (type_identifier "uint") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int *piVar9;" (primitive_type "int") (pointer_declarator "*piVar9" (* "*") (identifier "piVar9")) (; ";")) (expression_statement "iVar6 = *param_2;" (assignment_expression "iVar6 = *param_2" (identifier "iVar6") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "piVar9 = *(int **)(param_1 + 0x54);" (assignment_expression "piVar9 = *(int **)(param_1 + 0x54)" (identifier "piVar9") (= "=") (pointer_expression "*(int **)(param_1 + 0x54)" (* "*") (cast_expression "(int **)(param_1 + 0x54)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")"))))) (; ";")) (if_statement "if (0 < iVar6) {\n    iVar7 = 0;\n    do {\n      while( true ) {\n        iVar8 = *(int *)(*param_3 + iVar7 * 4);\n        puVar1 = (uint *)(*piVar9 + iVar8 * 8);\n        iVar7 = iVar7 + 1;\n        if (((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar6 <= iVar7) {\n          return 0;\n        }\n      }\n      iVar5 = *(int *)(param_1 + 0x7c);\n      iVar6 = *(int *)(param_1 + 0x84);\n      if (iVar5 == *(int *)(param_1 + 0x80)) {\n        iVar3 = iVar5 << 1;\n        iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        iVar5 = *(int *)(param_1 + 0x7c);\n        *(int *)(param_1 + 0x84) = iVar6;\n        *(int *)(param_1 + 0x80) = iVar3;\n      }\n      puVar2 = (undefined4 *)(*(code *)PTR_calloc_000afdb8)(1,0x18);\n      *(undefined4 **)(iVar6 + iVar5 * 4) = puVar2;\n      if (puVar2 == (undefined4 *)0x0) {\n        return 0xc;\n      }\n      *(int *)(param_1 + 0x7c) = iVar5 + 1;\n      puVar2[1] = iVar8;\n      *puVar2 = param_4;\n      iVar6 = *param_2;\n    } while (iVar7 < iVar6);\n  }" (if "if") (parenthesized_expression "(0 < iVar6)" (( "(") (binary_expression "0 < iVar6" (number_literal "0") (< "<") (identifier "iVar6")) () ")")) (compound_statement "{\n    iVar7 = 0;\n    do {\n      while( true ) {\n        iVar8 = *(int *)(*param_3 + iVar7 * 4);\n        puVar1 = (uint *)(*piVar9 + iVar8 * 8);\n        iVar7 = iVar7 + 1;\n        if (((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar6 <= iVar7) {\n          return 0;\n        }\n      }\n      iVar5 = *(int *)(param_1 + 0x7c);\n      iVar6 = *(int *)(param_1 + 0x84);\n      if (iVar5 == *(int *)(param_1 + 0x80)) {\n        iVar3 = iVar5 << 1;\n        iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        iVar5 = *(int *)(param_1 + 0x7c);\n        *(int *)(param_1 + 0x84) = iVar6;\n        *(int *)(param_1 + 0x80) = iVar3;\n      }\n      puVar2 = (undefined4 *)(*(code *)PTR_calloc_000afdb8)(1,0x18);\n      *(undefined4 **)(iVar6 + iVar5 * 4) = puVar2;\n      if (puVar2 == (undefined4 *)0x0) {\n        return 0xc;\n      }\n      *(int *)(param_1 + 0x7c) = iVar5 + 1;\n      puVar2[1] = iVar8;\n      *puVar2 = param_4;\n      iVar6 = *param_2;\n    } while (iVar7 < iVar6);\n  }" ({ "{") (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      while( true ) {\n        iVar8 = *(int *)(*param_3 + iVar7 * 4);\n        puVar1 = (uint *)(*piVar9 + iVar8 * 8);\n        iVar7 = iVar7 + 1;\n        if (((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar6 <= iVar7) {\n          return 0;\n        }\n      }\n      iVar5 = *(int *)(param_1 + 0x7c);\n      iVar6 = *(int *)(param_1 + 0x84);\n      if (iVar5 == *(int *)(param_1 + 0x80)) {\n        iVar3 = iVar5 << 1;\n        iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        iVar5 = *(int *)(param_1 + 0x7c);\n        *(int *)(param_1 + 0x84) = iVar6;\n        *(int *)(param_1 + 0x80) = iVar3;\n      }\n      puVar2 = (undefined4 *)(*(code *)PTR_calloc_000afdb8)(1,0x18);\n      *(undefined4 **)(iVar6 + iVar5 * 4) = puVar2;\n      if (puVar2 == (undefined4 *)0x0) {\n        return 0xc;\n      }\n      *(int *)(param_1 + 0x7c) = iVar5 + 1;\n      puVar2[1] = iVar8;\n      *puVar2 = param_4;\n      iVar6 = *param_2;\n    } while (iVar7 < iVar6);" (do "do") (compound_statement "{\n      while( true ) {\n        iVar8 = *(int *)(*param_3 + iVar7 * 4);\n        puVar1 = (uint *)(*piVar9 + iVar8 * 8);\n        iVar7 = iVar7 + 1;\n        if (((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar6 <= iVar7) {\n          return 0;\n        }\n      }\n      iVar5 = *(int *)(param_1 + 0x7c);\n      iVar6 = *(int *)(param_1 + 0x84);\n      if (iVar5 == *(int *)(param_1 + 0x80)) {\n        iVar3 = iVar5 << 1;\n        iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        iVar5 = *(int *)(param_1 + 0x7c);\n        *(int *)(param_1 + 0x84) = iVar6;\n        *(int *)(param_1 + 0x80) = iVar3;\n      }\n      puVar2 = (undefined4 *)(*(code *)PTR_calloc_000afdb8)(1,0x18);\n      *(undefined4 **)(iVar6 + iVar5 * 4) = puVar2;\n      if (puVar2 == (undefined4 *)0x0) {\n        return 0xc;\n      }\n      *(int *)(param_1 + 0x7c) = iVar5 + 1;\n      puVar2[1] = iVar8;\n      *puVar2 = param_4;\n      iVar6 = *param_2;\n    }" ({ "{") (while_statement "while( true ) {\n        iVar8 = *(int *)(*param_3 + iVar7 * 4);\n        puVar1 = (uint *)(*piVar9 + iVar8 * 8);\n        iVar7 = iVar7 + 1;\n        if (((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar6 <= iVar7) {\n          return 0;\n        }\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        iVar8 = *(int *)(*param_3 + iVar7 * 4);\n        puVar1 = (uint *)(*piVar9 + iVar8 * 8);\n        iVar7 = iVar7 + 1;\n        if (((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)) break;\n        if (iVar6 <= iVar7) {\n          return 0;\n        }\n      }" ({ "{") (expression_statement "iVar8 = *(int *)(*param_3 + iVar7 * 4);" (assignment_expression "iVar8 = *(int *)(*param_3 + iVar7 * 4)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(*param_3 + iVar7 * 4)" (* "*") (cast_expression "(int *)(*param_3 + iVar7 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_3 + iVar7 * 4)" (( "(") (binary_expression "*param_3 + iVar7 * 4" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (+ "+") (binary_expression "iVar7 * 4" (identifier "iVar7") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "puVar1 = (uint *)(*piVar9 + iVar8 * 8);" (assignment_expression "puVar1 = (uint *)(*piVar9 + iVar8 * 8)" (identifier "puVar1") (= "=") (cast_expression "(uint *)(*piVar9 + iVar8 * 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar9 + iVar8 * 8)" (( "(") (binary_expression "*piVar9 + iVar8 * 8" (pointer_expression "*piVar9" (* "*") (identifier "piVar9")) (+ "+") (binary_expression "iVar8 * 8" (identifier "iVar8") (* "*") (number_literal "8"))) () ")")))) (; ";")) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)) break;" (if "if") (parenthesized_expression "(((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0))" (( "(") (binary_expression "((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&\n           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)" (parenthesized_expression "((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20))" (( "(") (binary_expression "(*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)" (parenthesized_expression "(*(char *)(puVar1 + 1) == '\b')" (( "(") (binary_expression "*(char *)(puVar1 + 1) == '\b'" (pointer_expression "*(char *)(puVar1 + 1)" (* "*") (cast_expression "(char *)(puVar1 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 1)" (( "(") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1")) () ")")))) (== "==") (char_literal "'\b'" (' "'") (escape_sequence "\b") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(uVar4 = *puVar1, (int)uVar4 < 0x20)" (( "(") (comma_expression "uVar4 = *puVar1, (int)uVar4 < 0x20" (assignment_expression "uVar4 = *puVar1" (identifier "uVar4") (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (, ",") (binary_expression "(int)uVar4 < 0x20" (cast_expression "(int)uVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar4")) (< "<") (number_literal "0x20"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)" (( "(") (binary_expression "((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0" (parenthesized_expression "((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1)" (( "(") (binary_expression "(uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1" (binary_expression "(uint)piVar9[0x14] >> (uVar4 & 0x1f)" (cast_expression "(uint)piVar9[0x14]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "piVar9[0x14]" (identifier "piVar9") ([ "[") (number_literal "0x14") (] "]"))) (>> ">>") (parenthesized_expression "(uVar4 & 0x1f)" (( "(") (binary_expression "uVar4 & 0x1f" (identifier "uVar4") (& "&") (number_literal "0x1f")) () ")"))) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if (iVar6 <= iVar7) {\n          return 0;\n        }" (if "if") (parenthesized_expression "(iVar6 <= iVar7)" (( "(") (binary_expression "iVar6 <= iVar7" (identifier "iVar6") (<= "<=") (identifier "iVar7")) () ")")) (compound_statement "{\n          return 0;\n        }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar5 = *(int *)(param_1 + 0x7c);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x7c)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_1 + 0x7c)" (* "*") (cast_expression "(int *)(param_1 + 0x7c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x7c)" (( "(") (binary_expression "param_1 + 0x7c" (identifier "param_1") (+ "+") (number_literal "0x7c")) () ")"))))) (; ";")) (expression_statement "iVar6 = *(int *)(param_1 + 0x84);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x84)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(param_1 + 0x84)" (* "*") (cast_expression "(int *)(param_1 + 0x84)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x84)" (( "(") (binary_expression "param_1 + 0x84" (identifier "param_1") (+ "+") (number_literal "0x84")) () ")"))))) (; ";")) (if_statement "if (iVar5 == *(int *)(param_1 + 0x80)) {\n        iVar3 = iVar5 << 1;\n        iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        iVar5 = *(int *)(param_1 + 0x7c);\n        *(int *)(param_1 + 0x84) = iVar6;\n        *(int *)(param_1 + 0x80) = iVar3;\n      }" (if "if") (parenthesized_expression "(iVar5 == *(int *)(param_1 + 0x80))" (( "(") (binary_expression "iVar5 == *(int *)(param_1 + 0x80)" (identifier "iVar5") (== "==") (pointer_expression "*(int *)(param_1 + 0x80)" (* "*") (cast_expression "(int *)(param_1 + 0x80)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x80)" (( "(") (binary_expression "param_1 + 0x80" (identifier "param_1") (+ "+") (number_literal "0x80")) () ")"))))) () ")")) (compound_statement "{\n        iVar3 = iVar5 << 1;\n        iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3);\n        if (iVar6 == 0) {\n          return 0xc;\n        }\n        iVar5 = *(int *)(param_1 + 0x7c);\n        *(int *)(param_1 + 0x84) = iVar6;\n        *(int *)(param_1 + 0x80) = iVar3;\n      }" ({ "{") (expression_statement "iVar3 = iVar5 << 1;" (assignment_expression "iVar3 = iVar5 << 1" (identifier "iVar3") (= "=") (binary_expression "iVar5 << 1" (identifier "iVar5") (<< "<<") (number_literal "1"))) (; ";")) (expression_statement "iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3);" (assignment_expression "iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3)" (identifier "iVar6") (= "=") (call_expression "(*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3)" (parenthesized_expression "(*(code *)PTR_realloc_000afde8)" (( "(") (pointer_expression "*(code *)PTR_realloc_000afde8" (* "*") (cast_expression "(code *)PTR_realloc_000afde8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_realloc_000afde8"))) () ")")) (argument_list "(iVar6,iVar5 << 3)" (( "(") (identifier "iVar6") (, ",") (binary_expression "iVar5 << 3" (identifier "iVar5") (<< "<<") (number_literal "3")) () ")")))) (; ";")) (if_statement "if (iVar6 == 0) {\n          return 0xc;\n        }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          return 0xc;\n        }" ({ "{") (return_statement "return 0xc;" (return "return") (number_literal "0xc") (; ";")) (} "}"))) (expression_statement "iVar5 = *(int *)(param_1 + 0x7c);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x7c)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_1 + 0x7c)" (* "*") (cast_expression "(int *)(param_1 + 0x7c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x7c)" (( "(") (binary_expression "param_1 + 0x7c" (identifier "param_1") (+ "+") (number_literal "0x7c")) () ")"))))) (; ";")) (expression_statement "*(int *)(param_1 + 0x84) = iVar6;" (assignment_expression "*(int *)(param_1 + 0x84) = iVar6" (pointer_expression "*(int *)(param_1 + 0x84)" (* "*") (cast_expression "(int *)(param_1 + 0x84)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x84)" (( "(") (binary_expression "param_1 + 0x84" (identifier "param_1") (+ "+") (number_literal "0x84")) () ")")))) (= "=") (identifier "iVar6")) (; ";")) (expression_statement "*(int *)(param_1 + 0x80) = iVar3;" (assignment_expression "*(int *)(param_1 + 0x80) = iVar3" (pointer_expression "*(int *)(param_1 + 0x80)" (* "*") (cast_expression "(int *)(param_1 + 0x80)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x80)" (( "(") (binary_expression "param_1 + 0x80" (identifier "param_1") (+ "+") (number_literal "0x80")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (} "}"))) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR_calloc_000afdb8)(1,0x18);" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR_calloc_000afdb8)(1,0x18)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR_calloc_000afdb8)(1,0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_calloc_000afdb8)(1,0x18)" (parenthesized_expression "(*(code *)PTR_calloc_000afdb8)" (( "(") (pointer_expression "*(code *)PTR_calloc_000afdb8" (* "*") (cast_expression "(code *)PTR_calloc_000afdb8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_calloc_000afdb8"))) () ")")) (argument_list "(1,0x18)" (( "(") (number_literal "1") (, ",") (number_literal "0x18") () ")"))))) (; ";")) (expression_statement "*(undefined4 **)(iVar6 + iVar5 * 4) = puVar2;" (assignment_expression "*(undefined4 **)(iVar6 + iVar5 * 4) = puVar2" (pointer_expression "*(undefined4 **)(iVar6 + iVar5 * 4)" (* "*") (cast_expression "(undefined4 **)(iVar6 + iVar5 * 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar6 + iVar5 * 4)" (( "(") (binary_expression "iVar6 + iVar5 * 4" (identifier "iVar6") (+ "+") (binary_expression "iVar5 * 4" (identifier "iVar5") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "puVar2")) (; ";")) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n        return 0xc;\n      }" (if "if") (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar2 == (undefined4 *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        return 0xc;\n      }" ({ "{") (return_statement "return 0xc;" (return "return") (number_literal "0xc") (; ";")) (} "}"))) (expression_statement "*(int *)(param_1 + 0x7c) = iVar5 + 1;" (assignment_expression "*(int *)(param_1 + 0x7c) = iVar5 + 1" (pointer_expression "*(int *)(param_1 + 0x7c)" (* "*") (cast_expression "(int *)(param_1 + 0x7c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x7c)" (( "(") (binary_expression "param_1 + 0x7c" (identifier "param_1") (+ "+") (number_literal "0x7c")) () ")")))) (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar2[1] = iVar8;" (assignment_expression "puVar2[1] = iVar8" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar8")) (; ";")) (expression_statement "*puVar2 = param_4;" (assignment_expression "*puVar2 = param_4" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "iVar6 = *param_2;" (assignment_expression "iVar6 = *param_2" (identifier "iVar6") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar7 < iVar6)" (( "(") (binary_expression "iVar7 < iVar6" (identifier "iVar7") (< "<") (identifier "iVar6")) () ")")) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (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: (char_literal (escape_sequence)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal))) right: (number_literal))))) consequence: (break_statement)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (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 (return_statement (number_literal)))) (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: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (return_statement (number_literal)))))

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

{
  uint *puVar1;
  undefined4 *puVar2;
  int iVar3;
  uint uVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  int *piVar9;
  
  iVar6 = *param_2;
  piVar9 = *(int **)(param_1 + 0x54);
  if (0 < iVar6) {
    iVar7 = 0;
    do {
      while( true ) {
        iVar8 = *(int *)(*param_3 + iVar7 * 4);
        puVar1 = (uint *)(*piVar9 + iVar8 * 8);
        iVar7 = iVar7 + 1;
        if (((*(char *)(puVar1 + 1) == '\b') && (uVar4 = *puVar1, (int)uVar4 < 0x20)) &&
           (((uint)piVar9[0x14] >> (uVar4 & 0x1f) & 1) != 0)) break;
        if (iVar6 <= iVar7) {
          return 0;
        }
      }
      iVar5 = *(int *)(param_1 + 0x7c);
      iVar6 = *(int *)(param_1 + 0x84);
      if (iVar5 == *(int *)(param_1 + 0x80)) {
        iVar3 = iVar5 << 1;
        iVar6 = (*(code *)PTR_realloc_000afde8)(iVar6,iVar5 << 3);
        if (iVar6 == 0) {
          return 0xc;
        }
        iVar5 = *(int *)(param_1 + 0x7c);
        *(int *)(param_1 + 0x84) = iVar6;
        *(int *)(param_1 + 0x80) = iVar3;
      }
      puVar2 = (undefined4 *)(*(code *)PTR_calloc_000afdb8)(1,0x18);
      *(undefined4 **)(iVar6 + iVar5 * 4) = puVar2;
      if (puVar2 == (undefined4 *)0x0) {
        return 0xc;
      }
      *(int *)(param_1 + 0x7c) = iVar5 + 1;
      puVar2[1] = iVar8;
      *puVar2 = param_4;
      iVar6 = *param_2;
    } while (iVar7 < iVar6);
  }
  return 0;
}

