
Idx check_halt_state_context(re_match_context_t *mctx,re_dfastate_t *state,Idx idx)

{
  uint uVar1;
  uint uVar2;
  uint uVar3;
  int iVar4;
  int *piVar5;
  int iVar6;
  int iVar7;
  re_token_t *prVar8;
  
  uVar3 = re_string_context_at(&mctx->input,idx,mctx->eflags);
  iVar7 = (state->nodes).nelem;
  if (0 < iVar7) {
    prVar8 = mctx->dfa->nodes;
    piVar5 = (state->nodes).elems;
    iVar6 = 0;
    do {
      iVar4 = *piVar5;
      uVar1 = (uint)(*(int *)&prVar8[iVar4].field_0x4 << 8) >> 0x16;
      if (prVar8[iVar4].field_0x4 == '\x02') {
        if (uVar1 == 0) {
          return iVar4;
        }
        if ((uVar1 & 4) == 0) {
          uVar2 = uVar3 & 1;
          if ((uVar1 & 8) != 0) {
joined_r0x00022120:
            if (uVar2 != 0) goto LAB_000220e4;
          }
          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {
            if ((uVar1 & 0x80) == 0) {
              return iVar4;
            }
            if ((uVar3 & 8) != 0) {
              return iVar4;
            }
          }
        }
        else {
          uVar2 = uVar1 & 8;
          if ((uVar3 & 1) != 0) goto joined_r0x00022120;
        }
      }
LAB_000220e4:
      iVar6 = iVar6 + 1;
      piVar5 = piVar5 + 1;
    } while (iVar7 != iVar6);
  }
  return 0;
}



int FUN_0002201c(int param_1,int param_2,undefined4 param_3)

{
  uint uVar1;
  uint uVar2;
  uint uVar3;
  int iVar4;
  int iVar5;
  int *piVar6;
  int iVar7;
  
  uVar3 = FUN_00021cf4(param_1,param_3,*(undefined4 *)(param_1 + 0x58));
  if (0 < *(int *)(param_2 + 8)) {
    piVar6 = *(int **)(param_2 + 0xc);
    iVar7 = 0;
    do {
      iVar4 = *piVar6;
      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;
      uVar1 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;
      if (*(char *)(iVar5 + 4) == '\x02') {
        if (uVar1 == 0) {
          return iVar4;
        }
        if ((uVar1 & 4) == 0) {
          uVar2 = uVar3 & 1;
          if ((uVar1 & 8) != 0) {
joined_r0x00022120:
            if (uVar2 != 0) goto LAB_000220e4;
          }
          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {
            if ((uVar1 & 0x80) == 0) {
              return iVar4;
            }
            if ((uVar3 & 8) != 0) {
              return iVar4;
            }
          }
        }
        else {
          uVar2 = uVar1 & 8;
          if ((uVar3 & 1) != 0) goto joined_r0x00022120;
        }
      }
LAB_000220e4:
      iVar7 = iVar7 + 1;
      piVar6 = piVar6 + 1;
    } while (*(int *)(param_2 + 8) != iVar7);
  }
  return 0;
}


lui gp,0x3
addiu gp,gp,-0x2f1c
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
or s1,a0,zero
or s0,a1,zero
or a1,a2,zero
lw a2,0x58(a0)
lw t9,-0x7f0c(gp)
addiu t9,t9,0x1cf4
bal 0x00021cf4
_nop
lw gp,0x10(sp)
lw a3,0x8(s0)
blez a3,0x000220d8
_nop
lw v1,0x54(s1)
lw t1,0x0(v1)
lw a1,0xc(s0)
or a2,zero,zero
li t0,0x2
andi t4,v0,0x8
andi t3,v0,0x2
b 0x000220ec
_andi t2,v0,0x1
beq v1,zero,0x000220a0
_andi v1,a0,0x20
bne t2,zero,0x000220e0
_nop
beq v1,zero,0x000220b0
_nop
beq t3,zero,0x000220e0
_nop
andi a0,a0,0x80
beq a0,zero,0x000220c8
_lw ra,0x24(sp)
beq t4,zero,0x000220e0
_nop
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
b 0x000220c4
_or v0,zero,zero
addiu a2,a2,0x1
beq a3,a2,0x00022130
_addiu a1,a1,0x4
lw v0,0x0(a1)
sll v1,v0,0x3
addu v1,t1,v1
lw a0,0x4(v1)
lbu v1,0x4(v1)
bne v1,t0,0x000220e0
_ext a0,a0,0xe,0xa
beq a0,zero,0x000220c4
_andi v1,a0,0x4
beq v1,zero,0x00022090
_andi v1,a0,0x8
beq t2,zero,0x000220e0
_nop
beq v1,zero,0x000220a0
_andi v1,a0,0x20
b 0x000220e4
_addiu a2,a2,0x1
b 0x000220c4
_or v0,zero,zero
(translation_unit "int FUN_0002201c(int param_1,int param_2,undefined4 param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  \n  uVar3 = FUN_00021cf4(param_1,param_3,*(undefined4 *)(param_1 + 0x58));\n  if (0 < *(int *)(param_2 + 8)) {\n    piVar6 = *(int **)(param_2 + 0xc);\n    iVar7 = 0;\n    do {\n      iVar4 = *piVar6;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar1 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }\nLAB_000220e4:\n      iVar7 = iVar7 + 1;\n      piVar6 = piVar6 + 1;\n    } while (*(int *)(param_2 + 8) != iVar7);\n  }\n  return 0;\n}\n\n" (function_definition "int FUN_0002201c(int param_1,int param_2,undefined4 param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  \n  uVar3 = FUN_00021cf4(param_1,param_3,*(undefined4 *)(param_1 + 0x58));\n  if (0 < *(int *)(param_2 + 8)) {\n    piVar6 = *(int **)(param_2 + 0xc);\n    iVar7 = 0;\n    do {\n      iVar4 = *piVar6;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar1 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }\nLAB_000220e4:\n      iVar7 = iVar7 + 1;\n      piVar6 = piVar6 + 1;\n    } while (*(int *)(param_2 + 8) != iVar7);\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_0002201c(int param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  \n  uVar3 = FUN_00021cf4(param_1,param_3,*(undefined4 *)(param_1 + 0x58));\n  if (0 < *(int *)(param_2 + 8)) {\n    piVar6 = *(int **)(param_2 + 0xc);\n    iVar7 = 0;\n    do {\n      iVar4 = *piVar6;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar1 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }\nLAB_000220e4:\n      iVar7 = iVar7 + 1;\n      piVar6 = piVar6 + 1;\n    } while (*(int *)(param_2 + 8) != iVar7);\n  }\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (expression_statement "uVar3 = FUN_00021cf4(param_1,param_3,*(undefined4 *)(param_1 + 0x58));" (assignment_expression "uVar3 = FUN_00021cf4(param_1,param_3,*(undefined4 *)(param_1 + 0x58))" identifier = (call_expression "FUN_00021cf4(param_1,param_3,*(undefined4 *)(param_1 + 0x58))" identifier (argument_list "(param_1,param_3,*(undefined4 *)(param_1 + 0x58))" ( identifier , identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x58)" * (cast_expression "(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) )))) ;) (if_statement "if (0 < *(int *)(param_2 + 8)) {\n    piVar6 = *(int **)(param_2 + 0xc);\n    iVar7 = 0;\n    do {\n      iVar4 = *piVar6;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar1 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }\nLAB_000220e4:\n      iVar7 = iVar7 + 1;\n      piVar6 = piVar6 + 1;\n    } while (*(int *)(param_2 + 8) != iVar7);\n  }" if (parenthesized_expression "(0 < *(int *)(param_2 + 8))" ( (binary_expression "0 < *(int *)(param_2 + 8)" number_literal < (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n    piVar6 = *(int **)(param_2 + 0xc);\n    iVar7 = 0;\n    do {\n      iVar4 = *piVar6;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar1 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }\nLAB_000220e4:\n      iVar7 = iVar7 + 1;\n      piVar6 = piVar6 + 1;\n    } while (*(int *)(param_2 + 8) != iVar7);\n  }" { (expression_statement "piVar6 = *(int **)(param_2 + 0xc);" (assignment_expression "piVar6 = *(int **)(param_2 + 0xc)" identifier = (pointer_expression "*(int **)(param_2 + 0xc)" * (cast_expression "(int **)(param_2 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar4 = *piVar6;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar1 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }\nLAB_000220e4:\n      iVar7 = iVar7 + 1;\n      piVar6 = piVar6 + 1;\n    } while (*(int *)(param_2 + 8) != iVar7);" do (compound_statement "{\n      iVar4 = *piVar6;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar1 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }\nLAB_000220e4:\n      iVar7 = iVar7 + 1;\n      piVar6 = piVar6 + 1;\n    }" { (expression_statement "iVar4 = *piVar6;" (assignment_expression "iVar4 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) (expression_statement "iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;" (assignment_expression "iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8" identifier = (binary_expression "**(int **)(param_1 + 0x54) + iVar4 * 8" (pointer_expression "**(int **)(param_1 + 0x54)" * (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) ))))) + (binary_expression "iVar4 * 8" identifier * number_literal))) ;) (expression_statement "uVar1 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;" (assignment_expression "uVar1 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16" identifier = (binary_expression "(uint)(*(int *)(iVar5 + 4) << 8) >> 0x16" (call_expression "(uint)(*(int *)(iVar5 + 4) << 8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(iVar5 + 4) << 8)" ( (binary_expression "*(int *)(iVar5 + 4) << 8" (pointer_expression "*(int *)(iVar5 + 4)" * (cast_expression "(int *)(iVar5 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 4)" ( (binary_expression "iVar5 + 4" identifier + number_literal) )))) << number_literal) ))) >> number_literal)) ;) (if_statement "if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }" if (parenthesized_expression "(*(char *)(iVar5 + 4) == '\x02')" ( (binary_expression "*(char *)(iVar5 + 4) == '\x02'" (pointer_expression "*(char *)(iVar5 + 4)" * (cast_expression "(char *)(iVar5 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 4)" ( (binary_expression "iVar5 + 4" identifier + number_literal) )))) == (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }" { (if_statement "if (uVar1 == 0) {\n          return iVar4;\n        }" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          return iVar4;\n        }" { (return_statement "return iVar4;" return identifier ;) })) (if_statement "if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }" if (parenthesized_expression "((uVar1 & 4) == 0)" ( (binary_expression "(uVar1 & 4) == 0" (parenthesized_expression "(uVar1 & 4)" ( (binary_expression "uVar1 & 4" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }" { (expression_statement "uVar2 = uVar3 & 1;" (assignment_expression "uVar2 = uVar3 & 1" identifier = (binary_expression "uVar3 & 1" identifier & number_literal)) ;) (if_statement "if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }" if (parenthesized_expression "((uVar1 & 8) != 0)" ( (binary_expression "(uVar1 & 8) != 0" (parenthesized_expression "(uVar1 & 8)" ( (binary_expression "uVar1 & 8" identifier & number_literal) )) != number_literal) )) (compound_statement "{\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }" { (labeled_statement "joined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;" statement_identifier : (if_statement "if (uVar2 != 0) goto LAB_000220e4;" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000220e4;" goto statement_identifier ;))) })) (if_statement "if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }" if (parenthesized_expression "(((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0))" ( (binary_expression "((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)" (parenthesized_expression "((uVar1 & 0x20) == 0)" ( (binary_expression "(uVar1 & 0x20) == 0" (parenthesized_expression "(uVar1 & 0x20)" ( (binary_expression "uVar1 & 0x20" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "((uVar3 & 2) != 0)" ( (binary_expression "(uVar3 & 2) != 0" (parenthesized_expression "(uVar3 & 2)" ( (binary_expression "uVar3 & 2" identifier & number_literal) )) != number_literal) ))) )) (compound_statement "{\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }" { (if_statement "if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }" if (parenthesized_expression "((uVar1 & 0x80) == 0)" ( (binary_expression "(uVar1 & 0x80) == 0" (parenthesized_expression "(uVar1 & 0x80)" ( (binary_expression "uVar1 & 0x80" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n              return iVar4;\n            }" { (return_statement "return iVar4;" return identifier ;) })) (if_statement "if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }" if (parenthesized_expression "((uVar3 & 8) != 0)" ( (binary_expression "(uVar3 & 8) != 0" (parenthesized_expression "(uVar3 & 8)" ( (binary_expression "uVar3 & 8" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n              return iVar4;\n            }" { (return_statement "return iVar4;" return identifier ;) })) })) }) (else_clause "else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }" else (compound_statement "{\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }" { (expression_statement "uVar2 = uVar1 & 8;" (assignment_expression "uVar2 = uVar1 & 8" identifier = (binary_expression "uVar1 & 8" identifier & number_literal)) ;) (if_statement "if ((uVar3 & 1) != 0) goto joined_r0x00022120;" if (parenthesized_expression "((uVar3 & 1) != 0)" ( (binary_expression "(uVar3 & 1) != 0" (parenthesized_expression "(uVar3 & 1)" ( (binary_expression "uVar3 & 1" identifier & number_literal) )) != number_literal) )) (goto_statement "goto joined_r0x00022120;" goto statement_identifier ;)) }))) })) (labeled_statement "LAB_000220e4:\n      iVar7 = iVar7 + 1;" statement_identifier : (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;)) (expression_statement "piVar6 = piVar6 + 1;" (assignment_expression "piVar6 = piVar6 + 1" identifier = (binary_expression "piVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*(int *)(param_2 + 8) != iVar7)" ( (binary_expression "*(int *)(param_2 + 8) != iVar7" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) != identifier) )) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "Idx check_halt_state_context(re_match_context_t *mctx,re_dfastate_t *state,Idx idx)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  int iVar7;\n  re_token_t *prVar8;\n  \n  uVar3 = re_string_context_at(&mctx->input,idx,mctx->eflags);\n  iVar7 = (state->nodes).nelem;\n  if (0 < iVar7) {\n    prVar8 = mctx->dfa->nodes;\n    piVar5 = (state->nodes).elems;\n    iVar6 = 0;\n    do {\n      iVar4 = *piVar5;\n      uVar1 = (uint)(*(int *)&prVar8[iVar4].field_0x4 << 8) >> 0x16;\n      if (prVar8[iVar4].field_0x4 == '\x02') {\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }\nLAB_000220e4:\n      iVar6 = iVar6 + 1;\n      piVar5 = piVar5 + 1;\n    } while (iVar7 != iVar6);\n  }\n  return 0;\n}\n\n" (function_definition "Idx check_halt_state_context(re_match_context_t *mctx,re_dfastate_t *state,Idx idx)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  int iVar7;\n  re_token_t *prVar8;\n  \n  uVar3 = re_string_context_at(&mctx->input,idx,mctx->eflags);\n  iVar7 = (state->nodes).nelem;\n  if (0 < iVar7) {\n    prVar8 = mctx->dfa->nodes;\n    piVar5 = (state->nodes).elems;\n    iVar6 = 0;\n    do {\n      iVar4 = *piVar5;\n      uVar1 = (uint)(*(int *)&prVar8[iVar4].field_0x4 << 8) >> 0x16;\n      if (prVar8[iVar4].field_0x4 == '\x02') {\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }\nLAB_000220e4:\n      iVar6 = iVar6 + 1;\n      piVar5 = piVar5 + 1;\n    } while (iVar7 != iVar6);\n  }\n  return 0;\n}" type_identifier (function_declarator "check_halt_state_context(re_match_context_t *mctx,re_dfastate_t *state,Idx idx)" identifier (parameter_list "(re_match_context_t *mctx,re_dfastate_t *state,Idx idx)" ( (parameter_declaration "re_match_context_t *mctx" type_identifier (pointer_declarator "*mctx" * identifier)) , (parameter_declaration "re_dfastate_t *state" type_identifier (pointer_declarator "*state" * identifier)) , (parameter_declaration "Idx idx" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  int iVar7;\n  re_token_t *prVar8;\n  \n  uVar3 = re_string_context_at(&mctx->input,idx,mctx->eflags);\n  iVar7 = (state->nodes).nelem;\n  if (0 < iVar7) {\n    prVar8 = mctx->dfa->nodes;\n    piVar5 = (state->nodes).elems;\n    iVar6 = 0;\n    do {\n      iVar4 = *piVar5;\n      uVar1 = (uint)(*(int *)&prVar8[iVar4].field_0x4 << 8) >> 0x16;\n      if (prVar8[iVar4].field_0x4 == '\x02') {\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }\nLAB_000220e4:\n      iVar6 = iVar6 + 1;\n      piVar5 = piVar5 + 1;\n    } while (iVar7 != iVar6);\n  }\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "re_token_t *prVar8;" type_identifier (pointer_declarator "*prVar8" * identifier) ;) (expression_statement "uVar3 = re_string_context_at(&mctx->input,idx,mctx->eflags);" (assignment_expression "uVar3 = re_string_context_at(&mctx->input,idx,mctx->eflags)" identifier = (call_expression "re_string_context_at(&mctx->input,idx,mctx->eflags)" identifier (argument_list "(&mctx->input,idx,mctx->eflags)" ( (pointer_expression "&mctx->input" & (field_expression "mctx->input" identifier -> field_identifier)) , identifier , (field_expression "mctx->eflags" identifier -> field_identifier) )))) ;) (expression_statement "iVar7 = (state->nodes).nelem;" (assignment_expression "iVar7 = (state->nodes).nelem" identifier = (field_expression "(state->nodes).nelem" (parenthesized_expression "(state->nodes)" ( (field_expression "state->nodes" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if (0 < iVar7) {\n    prVar8 = mctx->dfa->nodes;\n    piVar5 = (state->nodes).elems;\n    iVar6 = 0;\n    do {\n      iVar4 = *piVar5;\n      uVar1 = (uint)(*(int *)&prVar8[iVar4].field_0x4 << 8) >> 0x16;\n      if (prVar8[iVar4].field_0x4 == '\x02') {\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }\nLAB_000220e4:\n      iVar6 = iVar6 + 1;\n      piVar5 = piVar5 + 1;\n    } while (iVar7 != iVar6);\n  }" if (parenthesized_expression "(0 < iVar7)" ( (binary_expression "0 < iVar7" number_literal < identifier) )) (compound_statement "{\n    prVar8 = mctx->dfa->nodes;\n    piVar5 = (state->nodes).elems;\n    iVar6 = 0;\n    do {\n      iVar4 = *piVar5;\n      uVar1 = (uint)(*(int *)&prVar8[iVar4].field_0x4 << 8) >> 0x16;\n      if (prVar8[iVar4].field_0x4 == '\x02') {\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }\nLAB_000220e4:\n      iVar6 = iVar6 + 1;\n      piVar5 = piVar5 + 1;\n    } while (iVar7 != iVar6);\n  }" { (expression_statement "prVar8 = mctx->dfa->nodes;" (assignment_expression "prVar8 = mctx->dfa->nodes" identifier = (field_expression "mctx->dfa->nodes" (field_expression "mctx->dfa" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "piVar5 = (state->nodes).elems;" (assignment_expression "piVar5 = (state->nodes).elems" identifier = (field_expression "(state->nodes).elems" (parenthesized_expression "(state->nodes)" ( (field_expression "state->nodes" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar4 = *piVar5;\n      uVar1 = (uint)(*(int *)&prVar8[iVar4].field_0x4 << 8) >> 0x16;\n      if (prVar8[iVar4].field_0x4 == '\x02') {\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }\nLAB_000220e4:\n      iVar6 = iVar6 + 1;\n      piVar5 = piVar5 + 1;\n    } while (iVar7 != iVar6);" do (compound_statement "{\n      iVar4 = *piVar5;\n      uVar1 = (uint)(*(int *)&prVar8[iVar4].field_0x4 << 8) >> 0x16;\n      if (prVar8[iVar4].field_0x4 == '\x02') {\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }\nLAB_000220e4:\n      iVar6 = iVar6 + 1;\n      piVar5 = piVar5 + 1;\n    }" { (expression_statement "iVar4 = *piVar5;" (assignment_expression "iVar4 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "uVar1 = (uint)(*(int *)&prVar8[iVar4].field_0x4 << 8) >> 0x16;" (assignment_expression "uVar1 = (uint)(*(int *)&prVar8[iVar4].field_0x4 << 8) >> 0x16" identifier = (binary_expression "(uint)(*(int *)&prVar8[iVar4].field_0x4 << 8) >> 0x16" (call_expression "(uint)(*(int *)&prVar8[iVar4].field_0x4 << 8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)&prVar8[iVar4].field_0x4 << 8)" ( (binary_expression "*(int *)&prVar8[iVar4].field_0x4 << 8" (pointer_expression "*(int *)&prVar8[iVar4].field_0x4" * (cast_expression "(int *)&prVar8[iVar4].field_0x4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&prVar8[iVar4].field_0x4" & (field_expression "prVar8[iVar4].field_0x4" (subscript_expression "prVar8[iVar4]" identifier [ identifier ]) . field_identifier)))) << number_literal) ))) >> number_literal)) ;) (if_statement "if (prVar8[iVar4].field_0x4 == '\x02') {\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }" if (parenthesized_expression "(prVar8[iVar4].field_0x4 == '\x02')" ( (binary_expression "prVar8[iVar4].field_0x4 == '\x02'" (field_expression "prVar8[iVar4].field_0x4" (subscript_expression "prVar8[iVar4]" identifier [ identifier ]) . field_identifier) == (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }" { (if_statement "if (uVar1 == 0) {\n          return iVar4;\n        }" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          return iVar4;\n        }" { (return_statement "return iVar4;" return identifier ;) })) (if_statement "if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }" if (parenthesized_expression "((uVar1 & 4) == 0)" ( (binary_expression "(uVar1 & 4) == 0" (parenthesized_expression "(uVar1 & 4)" ( (binary_expression "uVar1 & 4" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }" { (expression_statement "uVar2 = uVar3 & 1;" (assignment_expression "uVar2 = uVar3 & 1" identifier = (binary_expression "uVar3 & 1" identifier & number_literal)) ;) (if_statement "if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }" if (parenthesized_expression "((uVar1 & 8) != 0)" ( (binary_expression "(uVar1 & 8) != 0" (parenthesized_expression "(uVar1 & 8)" ( (binary_expression "uVar1 & 8" identifier & number_literal) )) != number_literal) )) (compound_statement "{\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }" { (labeled_statement "joined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;" statement_identifier : (if_statement "if (uVar2 != 0) goto LAB_000220e4;" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000220e4;" goto statement_identifier ;))) })) (if_statement "if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }" if (parenthesized_expression "(((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0))" ( (binary_expression "((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)" (parenthesized_expression "((uVar1 & 0x20) == 0)" ( (binary_expression "(uVar1 & 0x20) == 0" (parenthesized_expression "(uVar1 & 0x20)" ( (binary_expression "uVar1 & 0x20" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "((uVar3 & 2) != 0)" ( (binary_expression "(uVar3 & 2) != 0" (parenthesized_expression "(uVar3 & 2)" ( (binary_expression "uVar3 & 2" identifier & number_literal) )) != number_literal) ))) )) (compound_statement "{\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }" { (if_statement "if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }" if (parenthesized_expression "((uVar1 & 0x80) == 0)" ( (binary_expression "(uVar1 & 0x80) == 0" (parenthesized_expression "(uVar1 & 0x80)" ( (binary_expression "uVar1 & 0x80" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n              return iVar4;\n            }" { (return_statement "return iVar4;" return identifier ;) })) (if_statement "if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }" if (parenthesized_expression "((uVar3 & 8) != 0)" ( (binary_expression "(uVar3 & 8) != 0" (parenthesized_expression "(uVar3 & 8)" ( (binary_expression "uVar3 & 8" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n              return iVar4;\n            }" { (return_statement "return iVar4;" return identifier ;) })) })) }) (else_clause "else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }" else (compound_statement "{\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }" { (expression_statement "uVar2 = uVar1 & 8;" (assignment_expression "uVar2 = uVar1 & 8" identifier = (binary_expression "uVar1 & 8" identifier & number_literal)) ;) (if_statement "if ((uVar3 & 1) != 0) goto joined_r0x00022120;" if (parenthesized_expression "((uVar3 & 1) != 0)" ( (binary_expression "(uVar3 & 1) != 0" (parenthesized_expression "(uVar3 & 1)" ( (binary_expression "uVar3 & 1" identifier & number_literal) )) != number_literal) )) (goto_statement "goto joined_r0x00022120;" goto statement_identifier ;)) }))) })) (labeled_statement "LAB_000220e4:\n      iVar6 = iVar6 + 1;" statement_identifier : (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;)) (expression_statement "piVar5 = piVar5 + 1;" (assignment_expression "piVar5 = piVar5 + 1" identifier = (binary_expression "piVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar7 != iVar6)" ( (binary_expression "iVar7 != iVar6" identifier != identifier) )) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int FUN_0002201c(int param_1,int param_2,undefined4 param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  \n  uVar3 = FUN_00021cf4(param_1,param_3,*(undefined4 *)(param_1 + 0x58));\n  if (0 < *(int *)(param_2 + 8)) {\n    piVar6 = *(int **)(param_2 + 0xc);\n    iVar7 = 0;\n    do {\n      iVar4 = *piVar6;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar1 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }\nLAB_000220e4:\n      iVar7 = iVar7 + 1;\n      piVar6 = piVar6 + 1;\n    } while (*(int *)(param_2 + 8) != iVar7);\n  }\n  return 0;\n}\n\n" (function_definition "int FUN_0002201c(int param_1,int param_2,undefined4 param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  \n  uVar3 = FUN_00021cf4(param_1,param_3,*(undefined4 *)(param_1 + 0x58));\n  if (0 < *(int *)(param_2 + 8)) {\n    piVar6 = *(int **)(param_2 + 0xc);\n    iVar7 = 0;\n    do {\n      iVar4 = *piVar6;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar1 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }\nLAB_000220e4:\n      iVar7 = iVar7 + 1;\n      piVar6 = piVar6 + 1;\n    } while (*(int *)(param_2 + 8) != iVar7);\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_0002201c(int param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  \n  uVar3 = FUN_00021cf4(param_1,param_3,*(undefined4 *)(param_1 + 0x58));\n  if (0 < *(int *)(param_2 + 8)) {\n    piVar6 = *(int **)(param_2 + 0xc);\n    iVar7 = 0;\n    do {\n      iVar4 = *piVar6;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar1 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }\nLAB_000220e4:\n      iVar7 = iVar7 + 1;\n      piVar6 = piVar6 + 1;\n    } while (*(int *)(param_2 + 8) != iVar7);\n  }\n  return 0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (expression_statement "uVar3 = FUN_00021cf4(param_1,param_3,*(undefined4 *)(param_1 + 0x58));" (assignment_expression "uVar3 = FUN_00021cf4(param_1,param_3,*(undefined4 *)(param_1 + 0x58))" identifier = (call_expression "FUN_00021cf4(param_1,param_3,*(undefined4 *)(param_1 + 0x58))" identifier (argument_list "(param_1,param_3,*(undefined4 *)(param_1 + 0x58))" ( identifier , identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x58)" * (cast_expression "(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) )))) ;) (if_statement "if (0 < *(int *)(param_2 + 8)) {\n    piVar6 = *(int **)(param_2 + 0xc);\n    iVar7 = 0;\n    do {\n      iVar4 = *piVar6;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar1 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }\nLAB_000220e4:\n      iVar7 = iVar7 + 1;\n      piVar6 = piVar6 + 1;\n    } while (*(int *)(param_2 + 8) != iVar7);\n  }" if (parenthesized_expression "(0 < *(int *)(param_2 + 8))" ( (binary_expression "0 < *(int *)(param_2 + 8)" number_literal < (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n    piVar6 = *(int **)(param_2 + 0xc);\n    iVar7 = 0;\n    do {\n      iVar4 = *piVar6;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar1 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }\nLAB_000220e4:\n      iVar7 = iVar7 + 1;\n      piVar6 = piVar6 + 1;\n    } while (*(int *)(param_2 + 8) != iVar7);\n  }" { (expression_statement "piVar6 = *(int **)(param_2 + 0xc);" (assignment_expression "piVar6 = *(int **)(param_2 + 0xc)" identifier = (pointer_expression "*(int **)(param_2 + 0xc)" * (cast_expression "(int **)(param_2 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar4 = *piVar6;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar1 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }\nLAB_000220e4:\n      iVar7 = iVar7 + 1;\n      piVar6 = piVar6 + 1;\n    } while (*(int *)(param_2 + 8) != iVar7);" do (compound_statement "{\n      iVar4 = *piVar6;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar1 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }\nLAB_000220e4:\n      iVar7 = iVar7 + 1;\n      piVar6 = piVar6 + 1;\n    }" { (expression_statement "iVar4 = *piVar6;" (assignment_expression "iVar4 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) (expression_statement "iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;" (assignment_expression "iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8" identifier = (binary_expression "**(int **)(param_1 + 0x54) + iVar4 * 8" (pointer_expression "**(int **)(param_1 + 0x54)" * (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) ))))) + (binary_expression "iVar4 * 8" identifier * number_literal))) ;) (expression_statement "uVar1 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;" (assignment_expression "uVar1 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16" identifier = (binary_expression "(uint)(*(int *)(iVar5 + 4) << 8) >> 0x16" (call_expression "(uint)(*(int *)(iVar5 + 4) << 8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(iVar5 + 4) << 8)" ( (binary_expression "*(int *)(iVar5 + 4) << 8" (pointer_expression "*(int *)(iVar5 + 4)" * (cast_expression "(int *)(iVar5 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 4)" ( (binary_expression "iVar5 + 4" identifier + number_literal) )))) << number_literal) ))) >> number_literal)) ;) (if_statement "if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }" if (parenthesized_expression "(*(char *)(iVar5 + 4) == '\x02')" ( (binary_expression "*(char *)(iVar5 + 4) == '\x02'" (pointer_expression "*(char *)(iVar5 + 4)" * (cast_expression "(char *)(iVar5 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 4)" ( (binary_expression "iVar5 + 4" identifier + number_literal) )))) == (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }" { (if_statement "if (uVar1 == 0) {\n          return iVar4;\n        }" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          return iVar4;\n        }" { (return_statement "return iVar4;" return identifier ;) })) (if_statement "if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }" if (parenthesized_expression "((uVar1 & 4) == 0)" ( (binary_expression "(uVar1 & 4) == 0" (parenthesized_expression "(uVar1 & 4)" ( (binary_expression "uVar1 & 4" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }" { (expression_statement "uVar2 = uVar3 & 1;" (assignment_expression "uVar2 = uVar3 & 1" identifier = (binary_expression "uVar3 & 1" identifier & number_literal)) ;) (if_statement "if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }" if (parenthesized_expression "((uVar1 & 8) != 0)" ( (binary_expression "(uVar1 & 8) != 0" (parenthesized_expression "(uVar1 & 8)" ( (binary_expression "uVar1 & 8" identifier & number_literal) )) != number_literal) )) (compound_statement "{\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }" { (labeled_statement "joined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;" statement_identifier : (if_statement "if (uVar2 != 0) goto LAB_000220e4;" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000220e4;" goto statement_identifier ;))) })) (if_statement "if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }" if (parenthesized_expression "(((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0))" ( (binary_expression "((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)" (parenthesized_expression "((uVar1 & 0x20) == 0)" ( (binary_expression "(uVar1 & 0x20) == 0" (parenthesized_expression "(uVar1 & 0x20)" ( (binary_expression "uVar1 & 0x20" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "((uVar3 & 2) != 0)" ( (binary_expression "(uVar3 & 2) != 0" (parenthesized_expression "(uVar3 & 2)" ( (binary_expression "uVar3 & 2" identifier & number_literal) )) != number_literal) ))) )) (compound_statement "{\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }" { (if_statement "if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }" if (parenthesized_expression "((uVar1 & 0x80) == 0)" ( (binary_expression "(uVar1 & 0x80) == 0" (parenthesized_expression "(uVar1 & 0x80)" ( (binary_expression "uVar1 & 0x80" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n              return iVar4;\n            }" { (return_statement "return iVar4;" return identifier ;) })) (if_statement "if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }" if (parenthesized_expression "((uVar3 & 8) != 0)" ( (binary_expression "(uVar3 & 8) != 0" (parenthesized_expression "(uVar3 & 8)" ( (binary_expression "uVar3 & 8" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n              return iVar4;\n            }" { (return_statement "return iVar4;" return identifier ;) })) })) }) (else_clause "else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }" else (compound_statement "{\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }" { (expression_statement "uVar2 = uVar1 & 8;" (assignment_expression "uVar2 = uVar1 & 8" identifier = (binary_expression "uVar1 & 8" identifier & number_literal)) ;) (if_statement "if ((uVar3 & 1) != 0) goto joined_r0x00022120;" if (parenthesized_expression "((uVar3 & 1) != 0)" ( (binary_expression "(uVar3 & 1) != 0" (parenthesized_expression "(uVar3 & 1)" ( (binary_expression "uVar3 & 1" identifier & number_literal) )) != number_literal) )) (goto_statement "goto joined_r0x00022120;" goto statement_identifier ;)) }))) })) (labeled_statement "LAB_000220e4:\n      iVar7 = iVar7 + 1;" statement_identifier : (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;)) (expression_statement "piVar6 = piVar6 + 1;" (assignment_expression "piVar6 = piVar6 + 1" identifier = (binary_expression "piVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*(int *)(param_2 + 8) != iVar7)" ( (binary_expression "*(int *)(param_2 + 8) != iVar7" (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) != 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 IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + (binary_expression IDENT * LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) << LIT) ))) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;))) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (return_statement return IDENT ;) })) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (goto_statement goto statement_identifier ;)) }))) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) )) ;) })) (return_statement return LIT ;) })))
(function_definition "int FUN_0002201c(int param_1,int param_2,undefined4 param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  \n  uVar3 = FUN_00021cf4(param_1,param_3,*(undefined4 *)(param_1 + 0x58));\n  if (0 < *(int *)(param_2 + 8)) {\n    piVar6 = *(int **)(param_2 + 0xc);\n    iVar7 = 0;\n    do {\n      iVar4 = *piVar6;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar1 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }\nLAB_000220e4:\n      iVar7 = iVar7 + 1;\n      piVar6 = piVar6 + 1;\n    } while (*(int *)(param_2 + 8) != iVar7);\n  }\n  return 0;\n}" (primitive_type "int") (function_declarator "FUN_0002201c(int param_1,int param_2,undefined4 param_3)" (identifier "FUN_0002201c") (parameter_list "(int param_1,int param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  \n  uVar3 = FUN_00021cf4(param_1,param_3,*(undefined4 *)(param_1 + 0x58));\n  if (0 < *(int *)(param_2 + 8)) {\n    piVar6 = *(int **)(param_2 + 0xc);\n    iVar7 = 0;\n    do {\n      iVar4 = *piVar6;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar1 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }\nLAB_000220e4:\n      iVar7 = iVar7 + 1;\n      piVar6 = piVar6 + 1;\n    } while (*(int *)(param_2 + 8) != iVar7);\n  }\n  return 0;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (expression_statement "uVar3 = FUN_00021cf4(param_1,param_3,*(undefined4 *)(param_1 + 0x58));" (assignment_expression "uVar3 = FUN_00021cf4(param_1,param_3,*(undefined4 *)(param_1 + 0x58))" (identifier "uVar3") (= "=") (call_expression "FUN_00021cf4(param_1,param_3,*(undefined4 *)(param_1 + 0x58))" (identifier "FUN_00021cf4") (argument_list "(param_1,param_3,*(undefined4 *)(param_1 + 0x58))" (( "(") (identifier "param_1") (, ",") (identifier "param_3") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x58)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x58)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")")))) () ")")))) (; ";")) (if_statement "if (0 < *(int *)(param_2 + 8)) {\n    piVar6 = *(int **)(param_2 + 0xc);\n    iVar7 = 0;\n    do {\n      iVar4 = *piVar6;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar1 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }\nLAB_000220e4:\n      iVar7 = iVar7 + 1;\n      piVar6 = piVar6 + 1;\n    } while (*(int *)(param_2 + 8) != iVar7);\n  }" (if "if") (parenthesized_expression "(0 < *(int *)(param_2 + 8))" (( "(") (binary_expression "0 < *(int *)(param_2 + 8)" (number_literal "0") (< "<") (pointer_expression "*(int *)(param_2 + 8)" (* "*") (cast_expression "(int *)(param_2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")"))))) () ")")) (compound_statement "{\n    piVar6 = *(int **)(param_2 + 0xc);\n    iVar7 = 0;\n    do {\n      iVar4 = *piVar6;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar1 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }\nLAB_000220e4:\n      iVar7 = iVar7 + 1;\n      piVar6 = piVar6 + 1;\n    } while (*(int *)(param_2 + 8) != iVar7);\n  }" ({ "{") (expression_statement "piVar6 = *(int **)(param_2 + 0xc);" (assignment_expression "piVar6 = *(int **)(param_2 + 0xc)" (identifier "piVar6") (= "=") (pointer_expression "*(int **)(param_2 + 0xc)" (* "*") (cast_expression "(int **)(param_2 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      iVar4 = *piVar6;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar1 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }\nLAB_000220e4:\n      iVar7 = iVar7 + 1;\n      piVar6 = piVar6 + 1;\n    } while (*(int *)(param_2 + 8) != iVar7);" (do "do") (compound_statement "{\n      iVar4 = *piVar6;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar1 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }\nLAB_000220e4:\n      iVar7 = iVar7 + 1;\n      piVar6 = piVar6 + 1;\n    }" ({ "{") (expression_statement "iVar4 = *piVar6;" (assignment_expression "iVar4 = *piVar6" (identifier "iVar4") (= "=") (pointer_expression "*piVar6" (* "*") (identifier "piVar6"))) (; ";")) (expression_statement "iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;" (assignment_expression "iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8" (identifier "iVar5") (= "=") (binary_expression "**(int **)(param_1 + 0x54) + iVar4 * 8" (pointer_expression "**(int **)(param_1 + 0x54)" (* "*") (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")) () ")"))))) (+ "+") (binary_expression "iVar4 * 8" (identifier "iVar4") (* "*") (number_literal "8")))) (; ";")) (expression_statement "uVar1 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;" (assignment_expression "uVar1 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16" (identifier "uVar1") (= "=") (binary_expression "(uint)(*(int *)(iVar5 + 4) << 8) >> 0x16" (call_expression "(uint)(*(int *)(iVar5 + 4) << 8)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(int *)(iVar5 + 4) << 8)" (( "(") (binary_expression "*(int *)(iVar5 + 4) << 8" (pointer_expression "*(int *)(iVar5 + 4)" (* "*") (cast_expression "(int *)(iVar5 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 4)" (( "(") (binary_expression "iVar5 + 4" (identifier "iVar5") (+ "+") (number_literal "4")) () ")")))) (<< "<<") (number_literal "8")) () ")"))) (>> ">>") (number_literal "0x16"))) (; ";")) (if_statement "if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }" (if "if") (parenthesized_expression "(*(char *)(iVar5 + 4) == '\x02')" (( "(") (binary_expression "*(char *)(iVar5 + 4) == '\x02'" (pointer_expression "*(char *)(iVar5 + 4)" (* "*") (cast_expression "(char *)(iVar5 + 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 4)" (( "(") (binary_expression "iVar5 + 4" (identifier "iVar5") (+ "+") (number_literal "4")) () ")")))) (== "==") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) () ")")) (compound_statement "{\n        if (uVar1 == 0) {\n          return iVar4;\n        }\n        if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }\n      }" ({ "{") (if_statement "if (uVar1 == 0) {\n          return iVar4;\n        }" (if "if") (parenthesized_expression "(uVar1 == 0)" (( "(") (binary_expression "uVar1 == 0" (identifier "uVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          return iVar4;\n        }" ({ "{") (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}"))) (if_statement "if ((uVar1 & 4) == 0) {\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }\n        else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }" (if "if") (parenthesized_expression "((uVar1 & 4) == 0)" (( "(") (binary_expression "(uVar1 & 4) == 0" (parenthesized_expression "(uVar1 & 4)" (( "(") (binary_expression "uVar1 & 4" (identifier "uVar1") (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          uVar2 = uVar3 & 1;\n          if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }\n          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }\n        }" ({ "{") (expression_statement "uVar2 = uVar3 & 1;" (assignment_expression "uVar2 = uVar3 & 1" (identifier "uVar2") (= "=") (binary_expression "uVar3 & 1" (identifier "uVar3") (& "&") (number_literal "1"))) (; ";")) (if_statement "if ((uVar1 & 8) != 0) {\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }" (if "if") (parenthesized_expression "((uVar1 & 8) != 0)" (( "(") (binary_expression "(uVar1 & 8) != 0" (parenthesized_expression "(uVar1 & 8)" (( "(") (binary_expression "uVar1 & 8" (identifier "uVar1") (& "&") (number_literal "8")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\njoined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;\n          }" ({ "{") (labeled_statement "joined_r0x00022120:\n            if (uVar2 != 0) goto LAB_000220e4;" (statement_identifier "joined_r0x00022120") (: ":") (if_statement "if (uVar2 != 0) goto LAB_000220e4;" (if "if") (parenthesized_expression "(uVar2 != 0)" (( "(") (binary_expression "uVar2 != 0" (identifier "uVar2") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000220e4;" (goto "goto") (statement_identifier "LAB_000220e4") (; ";")))) (} "}"))) (if_statement "if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }" (if "if") (parenthesized_expression "(((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0))" (( "(") (binary_expression "((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)" (parenthesized_expression "((uVar1 & 0x20) == 0)" (( "(") (binary_expression "(uVar1 & 0x20) == 0" (parenthesized_expression "(uVar1 & 0x20)" (( "(") (binary_expression "uVar1 & 0x20" (identifier "uVar1") (& "&") (number_literal "0x20")) () ")")) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((uVar3 & 2) != 0)" (( "(") (binary_expression "(uVar3 & 2) != 0" (parenthesized_expression "(uVar3 & 2)" (( "(") (binary_expression "uVar3 & 2" (identifier "uVar3") (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n            if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }\n            if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }\n          }" ({ "{") (if_statement "if ((uVar1 & 0x80) == 0) {\n              return iVar4;\n            }" (if "if") (parenthesized_expression "((uVar1 & 0x80) == 0)" (( "(") (binary_expression "(uVar1 & 0x80) == 0" (parenthesized_expression "(uVar1 & 0x80)" (( "(") (binary_expression "uVar1 & 0x80" (identifier "uVar1") (& "&") (number_literal "0x80")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              return iVar4;\n            }" ({ "{") (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}"))) (if_statement "if ((uVar3 & 8) != 0) {\n              return iVar4;\n            }" (if "if") (parenthesized_expression "((uVar3 & 8) != 0)" (( "(") (binary_expression "(uVar3 & 8) != 0" (parenthesized_expression "(uVar3 & 8)" (( "(") (binary_expression "uVar3 & 8" (identifier "uVar3") (& "&") (number_literal "8")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              return iVar4;\n            }" ({ "{") (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}"))) (} "}"))) (} "}")) (else_clause "else {\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }" (else "else") (compound_statement "{\n          uVar2 = uVar1 & 8;\n          if ((uVar3 & 1) != 0) goto joined_r0x00022120;\n        }" ({ "{") (expression_statement "uVar2 = uVar1 & 8;" (assignment_expression "uVar2 = uVar1 & 8" (identifier "uVar2") (= "=") (binary_expression "uVar1 & 8" (identifier "uVar1") (& "&") (number_literal "8"))) (; ";")) (if_statement "if ((uVar3 & 1) != 0) goto joined_r0x00022120;" (if "if") (parenthesized_expression "((uVar3 & 1) != 0)" (( "(") (binary_expression "(uVar3 & 1) != 0" (parenthesized_expression "(uVar3 & 1)" (( "(") (binary_expression "uVar3 & 1" (identifier "uVar3") (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto joined_r0x00022120;" (goto "goto") (statement_identifier "joined_r0x00022120") (; ";"))) (} "}")))) (} "}"))) (labeled_statement "LAB_000220e4:\n      iVar7 = iVar7 + 1;" (statement_identifier "LAB_000220e4") (: ":") (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";"))) (expression_statement "piVar6 = piVar6 + 1;" (assignment_expression "piVar6 = piVar6 + 1" (identifier "piVar6") (= "=") (binary_expression "piVar6 + 1" (identifier "piVar6") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*(int *)(param_2 + 8) != iVar7)" (( "(") (binary_expression "*(int *)(param_2 + 8) != iVar7" (pointer_expression "*(int *)(param_2 + 8)" (* "*") (cast_expression "(int *)(param_2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (identifier "iVar7")) () ")")) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

type_1 function_1(type_2 *mctx,type_3 *state,type_1 idx)

{
  type_4 var_3;
  type_4 var_5;
  type_4 var_4;
  int iVar4;
  int *var_7;
  int var_6;
  int var_2;
  type_5 *prVar8;
  
  var_4 = var_1(&mctx->input,idx,mctx->eflags);
  var_2 = (state->nodes).nelem;
  if (0 < var_2) {
    prVar8 = mctx->dfa->nodes;
    var_7 = (state->nodes).elems;
    var_6 = 0;
    do {
      iVar4 = *var_7;
      var_3 = (type_4)(*(int *)&prVar8[iVar4].field_0x4 << 8) >> 0x16;
      if (prVar8[iVar4].field_0x4 == '\x02') {
        if (var_3 == 0) {
          return iVar4;
        }
        if ((var_3 & 4) == 0) {
          var_5 = var_4 & 1;
          if ((var_3 & 8) != 0) {
joined_r0x00022120:
            if (var_5 != 0) goto LAB_000220e4;
          }
          if (((var_3 & 0x20) == 0) || ((var_4 & 2) != 0)) {
            if ((var_3 & 0x80) == 0) {
              return iVar4;
            }
            if ((var_4 & 8) != 0) {
              return iVar4;
            }
          }
        }
        else {
          var_5 = var_3 & 8;
          if ((var_4 & 1) != 0) goto joined_r0x00022120;
        }
      }
LAB_000220e4:
      var_6 = var_6 + 1;
      var_7 = var_7 + 1;
    } while (var_2 != var_6);
  }
  return 0;
}


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

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

{
  uint uVar1;
  uint uVar2;
  uint uVar3;
  int iVar4;
  int iVar5;
  int *piVar6;
  int iVar7;
  
  uVar3 = FUN_00021cf4(param_1,param_3,*(undefined4 *)(param_1 + 0x58));
  if (0 < *(int *)(param_2 + 8)) {
    piVar6 = *(int **)(param_2 + 0xc);
    iVar7 = 0;
    do {
      iVar4 = *piVar6;
      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;
      uVar1 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;
      if (*(char *)(iVar5 + 4) == '\x02') {
        if (uVar1 == 0) {
          return iVar4;
        }
        if ((uVar1 & 4) == 0) {
          uVar2 = uVar3 & 1;
          if ((uVar1 & 8) != 0) {
joined_r0x00022120:
            if (uVar2 != 0) goto LAB_000220e4;
          }
          if (((uVar1 & 0x20) == 0) || ((uVar3 & 2) != 0)) {
            if ((uVar1 & 0x80) == 0) {
              return iVar4;
            }
            if ((uVar3 & 8) != 0) {
              return iVar4;
            }
          }
        }
        else {
          uVar2 = uVar1 & 8;
          if ((uVar3 & 1) != 0) goto joined_r0x00022120;
        }
      }
LAB_000220e4:
      iVar7 = iVar7 + 1;
      piVar6 = piVar6 + 1;
    } while (*(int *)(param_2 + 8) != iVar7);
  }
  return 0;
}

