
/* DWARF original prototype: Idx check_halt_state_context(re_match_context_t * mctx, re_dfastate_t *
   state, Idx idx, re_dfastate_t * state) */

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

{
  bool bVar1;
  uint uVar2;
  uint uVar3;
  Idx IVar4;
  uint uVar5;
  Idx *pIVar6;
  re_dfastate_t *prVar7;
  re_token_t *prVar8;
  
  uVar3 = re_string_context_at(&mctx->input,(Idx)state_1,mctx->eflags);
  if (0 < (int)state) {
    prVar7 = (re_dfastate_t *)0x0;
    pIVar6 = *(Idx **)idx;
    prVar8 = mctx->dfa->nodes;
    do {
      IVar4 = *pIVar6;
      uVar2 = (uint)(*(int *)&prVar8[IVar4].field_0x4 << 8) >> 0x16;
      if (prVar8[IVar4].field_0x4 == '\x02') {
        if (uVar2 == 0) {
          return IVar4;
        }
        uVar5 = uVar2 & 8;
        if ((uVar2 & 4) == 0) {
          bVar1 = uVar5 != 0;
          uVar5 = uVar3 & 1;
          if (bVar1) goto joined_r0x000204fc;
LAB_000204b8:
          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&
             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {
            return IVar4;
          }
        }
        else if ((uVar3 & 1) != 0) {
joined_r0x000204fc:
          if (uVar5 == 0) goto LAB_000204b8;
        }
      }
      prVar7 = (re_dfastate_t *)((int)&prVar7->hash + 1);
      pIVar6 = pIVar6 + 1;
    } while (prVar7 != state);
  }
  return 0;
}



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

{
  bool bVar1;
  uint uVar2;
  uint uVar3;
  int iVar4;
  int iVar5;
  uint uVar6;
  int *piVar7;
  int iVar8;
  
  uVar3 = FUN_00020130(param_1,param_4,*(undefined4 *)(param_1 + 0x58));
  if (0 < param_2) {
    iVar8 = 0;
    piVar7 = (int *)*param_3;
    do {
      iVar4 = *piVar7;
      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;
      uVar2 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;
      if (*(char *)(iVar5 + 4) == '\x02') {
        if (uVar2 == 0) {
          return iVar4;
        }
        uVar6 = uVar2 & 8;
        if ((uVar2 & 4) == 0) {
          bVar1 = uVar6 != 0;
          uVar6 = uVar3 & 1;
          if (bVar1) goto joined_r0x000204fc;
LAB_000204b8:
          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&
             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {
            return iVar4;
          }
        }
        else if ((uVar3 & 1) != 0) {
joined_r0x000204fc:
          if (uVar6 == 0) goto LAB_000204b8;
        }
      }
      iVar8 = iVar8 + 1;
      piVar7 = piVar7 + 1;
    } while (iVar8 != param_2);
  }
  return 0;
}


lui gp,0x2
addiu gp,gp,0x7cc4
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x7edc(gp)
sw s2,0x20(sp)
or s2,a2,zero
sw s1,0x1c(sp)
addiu t9,t9,0x130
sw s0,0x18(sp)
or s0,a1,zero
sw gp,0x10(sp)
or a1,a3,zero
sw ra,0x24(sp)
or s1,a0,zero
bal 0x00020130
_lw a2,0x58(a0)
blez s0,0x00020514
_lw ra,0x24(sp)
lw v1,0x54(s1)
or a2,zero,zero
lw a1,0x0(s2)
li t1,0x2
andi t4,v0,0x8
andi t3,v0,0x2
lw t0,0x0(v1)
andi t2,v0,0x1
lw v0,0x0(a1)
sll v1,v0,0x3
addu v1,t0,v1
lw a0,0x4(v1)
lbu a3,0x4(v1)
bne a3,t1,0x00020504
_ext v1,a0,0xe,0xa
beq v1,zero,0x000204dc
_andi a0,v1,0x4
beq a0,zero,0x000204f4
_andi a0,v1,0x8
beq t2,zero,0x00020504
_nop
bne a0,zero,0x00020504
_nop
andi a0,v1,0x20
beq a0,zero,0x000204c8
_nop
beq t3,zero,0x00020504
_nop
andi v1,v1,0x80
beq v1,zero,0x000204e0
_lw ra,0x24(sp)
beq t4,zero,0x00020504
_nop
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
beq a0,zero,0x000204b8
_andi a0,v1,0x20
beq t2,zero,0x000204b8
_nop
addiu a2,a2,0x1
bne a2,s0,0x00020478
_addiu a1,a1,0x4
lw ra,0x24(sp)
or v0,zero,zero
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "int FUN_0002040c(int param_1,int param_2,undefined4 *param_3,undefined4 param_4)\n\n{\n  bool bVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  int *piVar7;\n  int iVar8;\n  \n  uVar3 = FUN_00020130(param_1,param_4,*(undefined4 *)(param_1 + 0x58));\n  if (0 < param_2) {\n    iVar8 = 0;\n    piVar7 = (int *)*param_3;\n    do {\n      iVar4 = *piVar7;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar2 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar2 == 0) {\n          return iVar4;\n        }\n        uVar6 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }\n      }\n      iVar8 = iVar8 + 1;\n      piVar7 = piVar7 + 1;\n    } while (iVar8 != param_2);\n  }\n  return 0;\n}\n\n" (function_definition "int FUN_0002040c(int param_1,int param_2,undefined4 *param_3,undefined4 param_4)\n\n{\n  bool bVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  int *piVar7;\n  int iVar8;\n  \n  uVar3 = FUN_00020130(param_1,param_4,*(undefined4 *)(param_1 + 0x58));\n  if (0 < param_2) {\n    iVar8 = 0;\n    piVar7 = (int *)*param_3;\n    do {\n      iVar4 = *piVar7;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar2 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar2 == 0) {\n          return iVar4;\n        }\n        uVar6 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }\n      }\n      iVar8 = iVar8 + 1;\n      piVar7 = piVar7 + 1;\n    } while (iVar8 != param_2);\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_0002040c(int param_1,int param_2,undefined4 *param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,int param_2,undefined4 *param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  bool bVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  int *piVar7;\n  int iVar8;\n  \n  uVar3 = FUN_00020130(param_1,param_4,*(undefined4 *)(param_1 + 0x58));\n  if (0 < param_2) {\n    iVar8 = 0;\n    piVar7 = (int *)*param_3;\n    do {\n      iVar4 = *piVar7;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar2 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar2 == 0) {\n          return iVar4;\n        }\n        uVar6 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }\n      }\n      iVar8 = iVar8 + 1;\n      piVar7 = piVar7 + 1;\n    } while (iVar8 != param_2);\n  }\n  return 0;\n}" { (declaration "bool bVar1;" primitive_type 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 "uint uVar6;" type_identifier identifier ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (expression_statement "uVar3 = FUN_00020130(param_1,param_4,*(undefined4 *)(param_1 + 0x58));" (assignment_expression "uVar3 = FUN_00020130(param_1,param_4,*(undefined4 *)(param_1 + 0x58))" identifier = (call_expression "FUN_00020130(param_1,param_4,*(undefined4 *)(param_1 + 0x58))" identifier (argument_list "(param_1,param_4,*(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 < param_2) {\n    iVar8 = 0;\n    piVar7 = (int *)*param_3;\n    do {\n      iVar4 = *piVar7;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar2 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar2 == 0) {\n          return iVar4;\n        }\n        uVar6 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }\n      }\n      iVar8 = iVar8 + 1;\n      piVar7 = piVar7 + 1;\n    } while (iVar8 != param_2);\n  }" if (parenthesized_expression "(0 < param_2)" ( (binary_expression "0 < param_2" number_literal < identifier) )) (compound_statement "{\n    iVar8 = 0;\n    piVar7 = (int *)*param_3;\n    do {\n      iVar4 = *piVar7;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar2 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar2 == 0) {\n          return iVar4;\n        }\n        uVar6 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }\n      }\n      iVar8 = iVar8 + 1;\n      piVar7 = piVar7 + 1;\n    } while (iVar8 != param_2);\n  }" { (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (expression_statement "piVar7 = (int *)*param_3;" (assignment_expression "piVar7 = (int *)*param_3" identifier = (cast_expression "(int *)*param_3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_3" * identifier))) ;) (do_statement "do {\n      iVar4 = *piVar7;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar2 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar2 == 0) {\n          return iVar4;\n        }\n        uVar6 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }\n      }\n      iVar8 = iVar8 + 1;\n      piVar7 = piVar7 + 1;\n    } while (iVar8 != param_2);" do (compound_statement "{\n      iVar4 = *piVar7;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar2 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar2 == 0) {\n          return iVar4;\n        }\n        uVar6 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }\n      }\n      iVar8 = iVar8 + 1;\n      piVar7 = piVar7 + 1;\n    }" { (expression_statement "iVar4 = *piVar7;" (assignment_expression "iVar4 = *piVar7" identifier = (pointer_expression "*piVar7" * 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 "uVar2 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;" (assignment_expression "uVar2 = (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 (uVar2 == 0) {\n          return iVar4;\n        }\n        uVar6 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\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 (uVar2 == 0) {\n          return iVar4;\n        }\n        uVar6 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }\n      }" { (if_statement "if (uVar2 == 0) {\n          return iVar4;\n        }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          return iVar4;\n        }" { (return_statement "return iVar4;" return identifier ;) })) (expression_statement "uVar6 = uVar2 & 8;" (assignment_expression "uVar6 = uVar2 & 8" identifier = (binary_expression "uVar2 & 8" identifier & number_literal)) ;) (if_statement "if ((uVar2 & 4) == 0) {\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }" if (parenthesized_expression "((uVar2 & 4) == 0)" ( (binary_expression "(uVar2 & 4) == 0" (parenthesized_expression "(uVar2 & 4)" ( (binary_expression "uVar2 & 4" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }" { (expression_statement "bVar1 = uVar6 != 0;" (assignment_expression "bVar1 = uVar6 != 0" identifier = (binary_expression "uVar6 != 0" identifier != number_literal)) ;) (expression_statement "uVar6 = uVar3 & 1;" (assignment_expression "uVar6 = uVar3 & 1" identifier = (binary_expression "uVar3 & 1" identifier & number_literal)) ;) (if_statement "if (bVar1) goto joined_r0x000204fc;" if (parenthesized_expression "(bVar1)" ( identifier )) (goto_statement "goto joined_r0x000204fc;" goto statement_identifier ;)) (labeled_statement "LAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }" statement_identifier : (if_statement "if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }" if (parenthesized_expression "((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0))))" ( (binary_expression "(((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))" (parenthesized_expression "(((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0))" ( (binary_expression "((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)" (parenthesized_expression "((uVar2 & 0x20) == 0)" ( (binary_expression "(uVar2 & 0x20) == 0" (parenthesized_expression "(uVar2 & 0x20)" ( (binary_expression "uVar2 & 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) ))) )) && (parenthesized_expression "(((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))" ( (parenthesized_expression "((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0))" ( (binary_expression "(uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)" (binary_expression "(uVar2 & 0x80) == 0" (parenthesized_expression "(uVar2 & 0x80)" ( (binary_expression "uVar2 & 0x80" identifier & number_literal) )) == number_literal) || (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 if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }" else (if_statement "if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }" if (parenthesized_expression "((uVar3 & 1) != 0)" ( (binary_expression "(uVar3 & 1) != 0" (parenthesized_expression "(uVar3 & 1)" ( (binary_expression "uVar3 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }" { (labeled_statement "joined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;" statement_identifier : (if_statement "if (uVar6 == 0) goto LAB_000204b8;" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000204b8;" goto statement_identifier ;))) })))) })) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (expression_statement "piVar7 = piVar7 + 1;" (assignment_expression "piVar7 = piVar7 + 1" identifier = (binary_expression "piVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar8 != param_2)" ( (binary_expression "iVar8 != param_2" identifier != identifier) )) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* DWARF original prototype: Idx check_halt_state_context(re_match_context_t * mctx, re_dfastate_t *\n   state, Idx idx, re_dfastate_t * state) */\n\nIdx check_halt_state_context\n              (re_match_context_t *mctx,re_dfastate_t *state,Idx idx,re_dfastate_t *state_1)\n\n{\n  bool bVar1;\n  uint uVar2;\n  uint uVar3;\n  Idx IVar4;\n  uint uVar5;\n  Idx *pIVar6;\n  re_dfastate_t *prVar7;\n  re_token_t *prVar8;\n  \n  uVar3 = re_string_context_at(&mctx->input,(Idx)state_1,mctx->eflags);\n  if (0 < (int)state) {\n    prVar7 = (re_dfastate_t *)0x0;\n    pIVar6 = *(Idx **)idx;\n    prVar8 = mctx->dfa->nodes;\n    do {\n      IVar4 = *pIVar6;\n      uVar2 = (uint)(*(int *)&prVar8[IVar4].field_0x4 << 8) >> 0x16;\n      if (prVar8[IVar4].field_0x4 == '\x02') {\n        if (uVar2 == 0) {\n          return IVar4;\n        }\n        uVar5 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar5 != 0;\n          uVar5 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return IVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar5 == 0) goto LAB_000204b8;\n        }\n      }\n      prVar7 = (re_dfastate_t *)((int)&prVar7->hash + 1);\n      pIVar6 = pIVar6 + 1;\n    } while (prVar7 != state);\n  }\n  return 0;\n}\n\n" comment (function_definition "Idx check_halt_state_context\n              (re_match_context_t *mctx,re_dfastate_t *state,Idx idx,re_dfastate_t *state_1)\n\n{\n  bool bVar1;\n  uint uVar2;\n  uint uVar3;\n  Idx IVar4;\n  uint uVar5;\n  Idx *pIVar6;\n  re_dfastate_t *prVar7;\n  re_token_t *prVar8;\n  \n  uVar3 = re_string_context_at(&mctx->input,(Idx)state_1,mctx->eflags);\n  if (0 < (int)state) {\n    prVar7 = (re_dfastate_t *)0x0;\n    pIVar6 = *(Idx **)idx;\n    prVar8 = mctx->dfa->nodes;\n    do {\n      IVar4 = *pIVar6;\n      uVar2 = (uint)(*(int *)&prVar8[IVar4].field_0x4 << 8) >> 0x16;\n      if (prVar8[IVar4].field_0x4 == '\x02') {\n        if (uVar2 == 0) {\n          return IVar4;\n        }\n        uVar5 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar5 != 0;\n          uVar5 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return IVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar5 == 0) goto LAB_000204b8;\n        }\n      }\n      prVar7 = (re_dfastate_t *)((int)&prVar7->hash + 1);\n      pIVar6 = pIVar6 + 1;\n    } while (prVar7 != state);\n  }\n  return 0;\n}" type_identifier (function_declarator "check_halt_state_context\n              (re_match_context_t *mctx,re_dfastate_t *state,Idx idx,re_dfastate_t *state_1)" identifier (parameter_list "(re_match_context_t *mctx,re_dfastate_t *state,Idx idx,re_dfastate_t *state_1)" ( (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) , (parameter_declaration "re_dfastate_t *state_1" type_identifier (pointer_declarator "*state_1" * identifier)) ))) (compound_statement "{\n  bool bVar1;\n  uint uVar2;\n  uint uVar3;\n  Idx IVar4;\n  uint uVar5;\n  Idx *pIVar6;\n  re_dfastate_t *prVar7;\n  re_token_t *prVar8;\n  \n  uVar3 = re_string_context_at(&mctx->input,(Idx)state_1,mctx->eflags);\n  if (0 < (int)state) {\n    prVar7 = (re_dfastate_t *)0x0;\n    pIVar6 = *(Idx **)idx;\n    prVar8 = mctx->dfa->nodes;\n    do {\n      IVar4 = *pIVar6;\n      uVar2 = (uint)(*(int *)&prVar8[IVar4].field_0x4 << 8) >> 0x16;\n      if (prVar8[IVar4].field_0x4 == '\x02') {\n        if (uVar2 == 0) {\n          return IVar4;\n        }\n        uVar5 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar5 != 0;\n          uVar5 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return IVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar5 == 0) goto LAB_000204b8;\n        }\n      }\n      prVar7 = (re_dfastate_t *)((int)&prVar7->hash + 1);\n      pIVar6 = pIVar6 + 1;\n    } while (prVar7 != state);\n  }\n  return 0;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "Idx IVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "Idx *pIVar6;" type_identifier (pointer_declarator "*pIVar6" * identifier) ;) (declaration "re_dfastate_t *prVar7;" type_identifier (pointer_declarator "*prVar7" * identifier) ;) (declaration "re_token_t *prVar8;" type_identifier (pointer_declarator "*prVar8" * identifier) ;) (expression_statement "uVar3 = re_string_context_at(&mctx->input,(Idx)state_1,mctx->eflags);" (assignment_expression "uVar3 = re_string_context_at(&mctx->input,(Idx)state_1,mctx->eflags)" identifier = (call_expression "re_string_context_at(&mctx->input,(Idx)state_1,mctx->eflags)" identifier (argument_list "(&mctx->input,(Idx)state_1,mctx->eflags)" ( (pointer_expression "&mctx->input" & (field_expression "mctx->input" identifier -> field_identifier)) , (cast_expression "(Idx)state_1" ( (type_descriptor "Idx" type_identifier) ) identifier) , (field_expression "mctx->eflags" identifier -> field_identifier) )))) ;) (if_statement "if (0 < (int)state) {\n    prVar7 = (re_dfastate_t *)0x0;\n    pIVar6 = *(Idx **)idx;\n    prVar8 = mctx->dfa->nodes;\n    do {\n      IVar4 = *pIVar6;\n      uVar2 = (uint)(*(int *)&prVar8[IVar4].field_0x4 << 8) >> 0x16;\n      if (prVar8[IVar4].field_0x4 == '\x02') {\n        if (uVar2 == 0) {\n          return IVar4;\n        }\n        uVar5 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar5 != 0;\n          uVar5 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return IVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar5 == 0) goto LAB_000204b8;\n        }\n      }\n      prVar7 = (re_dfastate_t *)((int)&prVar7->hash + 1);\n      pIVar6 = pIVar6 + 1;\n    } while (prVar7 != state);\n  }" if (parenthesized_expression "(0 < (int)state)" ( (binary_expression "0 < (int)state" number_literal < (cast_expression "(int)state" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    prVar7 = (re_dfastate_t *)0x0;\n    pIVar6 = *(Idx **)idx;\n    prVar8 = mctx->dfa->nodes;\n    do {\n      IVar4 = *pIVar6;\n      uVar2 = (uint)(*(int *)&prVar8[IVar4].field_0x4 << 8) >> 0x16;\n      if (prVar8[IVar4].field_0x4 == '\x02') {\n        if (uVar2 == 0) {\n          return IVar4;\n        }\n        uVar5 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar5 != 0;\n          uVar5 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return IVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar5 == 0) goto LAB_000204b8;\n        }\n      }\n      prVar7 = (re_dfastate_t *)((int)&prVar7->hash + 1);\n      pIVar6 = pIVar6 + 1;\n    } while (prVar7 != state);\n  }" { (expression_statement "prVar7 = (re_dfastate_t *)0x0;" (assignment_expression "prVar7 = (re_dfastate_t *)0x0" identifier = (cast_expression "(re_dfastate_t *)0x0" ( (type_descriptor "re_dfastate_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pIVar6 = *(Idx **)idx;" (assignment_expression "pIVar6 = *(Idx **)idx" identifier = (pointer_expression "*(Idx **)idx" * (cast_expression "(Idx **)idx" ( (type_descriptor "Idx **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (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)) ;) (do_statement "do {\n      IVar4 = *pIVar6;\n      uVar2 = (uint)(*(int *)&prVar8[IVar4].field_0x4 << 8) >> 0x16;\n      if (prVar8[IVar4].field_0x4 == '\x02') {\n        if (uVar2 == 0) {\n          return IVar4;\n        }\n        uVar5 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar5 != 0;\n          uVar5 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return IVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar5 == 0) goto LAB_000204b8;\n        }\n      }\n      prVar7 = (re_dfastate_t *)((int)&prVar7->hash + 1);\n      pIVar6 = pIVar6 + 1;\n    } while (prVar7 != state);" do (compound_statement "{\n      IVar4 = *pIVar6;\n      uVar2 = (uint)(*(int *)&prVar8[IVar4].field_0x4 << 8) >> 0x16;\n      if (prVar8[IVar4].field_0x4 == '\x02') {\n        if (uVar2 == 0) {\n          return IVar4;\n        }\n        uVar5 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar5 != 0;\n          uVar5 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return IVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar5 == 0) goto LAB_000204b8;\n        }\n      }\n      prVar7 = (re_dfastate_t *)((int)&prVar7->hash + 1);\n      pIVar6 = pIVar6 + 1;\n    }" { (expression_statement "IVar4 = *pIVar6;" (assignment_expression "IVar4 = *pIVar6" identifier = (pointer_expression "*pIVar6" * identifier)) ;) (expression_statement "uVar2 = (uint)(*(int *)&prVar8[IVar4].field_0x4 << 8) >> 0x16;" (assignment_expression "uVar2 = (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 (uVar2 == 0) {\n          return IVar4;\n        }\n        uVar5 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar5 != 0;\n          uVar5 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return IVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar5 == 0) goto LAB_000204b8;\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 (uVar2 == 0) {\n          return IVar4;\n        }\n        uVar5 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar5 != 0;\n          uVar5 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return IVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar5 == 0) goto LAB_000204b8;\n        }\n      }" { (if_statement "if (uVar2 == 0) {\n          return IVar4;\n        }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          return IVar4;\n        }" { (return_statement "return IVar4;" return identifier ;) })) (expression_statement "uVar5 = uVar2 & 8;" (assignment_expression "uVar5 = uVar2 & 8" identifier = (binary_expression "uVar2 & 8" identifier & number_literal)) ;) (if_statement "if ((uVar2 & 4) == 0) {\n          bVar1 = uVar5 != 0;\n          uVar5 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return IVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar5 == 0) goto LAB_000204b8;\n        }" if (parenthesized_expression "((uVar2 & 4) == 0)" ( (binary_expression "(uVar2 & 4) == 0" (parenthesized_expression "(uVar2 & 4)" ( (binary_expression "uVar2 & 4" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n          bVar1 = uVar5 != 0;\n          uVar5 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return IVar4;\n          }\n        }" { (expression_statement "bVar1 = uVar5 != 0;" (assignment_expression "bVar1 = uVar5 != 0" identifier = (binary_expression "uVar5 != 0" identifier != number_literal)) ;) (expression_statement "uVar5 = uVar3 & 1;" (assignment_expression "uVar5 = uVar3 & 1" identifier = (binary_expression "uVar3 & 1" identifier & number_literal)) ;) (if_statement "if (bVar1) goto joined_r0x000204fc;" if (parenthesized_expression "(bVar1)" ( identifier )) (goto_statement "goto joined_r0x000204fc;" goto statement_identifier ;)) (labeled_statement "LAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return IVar4;\n          }" statement_identifier : (if_statement "if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return IVar4;\n          }" if (parenthesized_expression "((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0))))" ( (binary_expression "(((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))" (parenthesized_expression "(((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0))" ( (binary_expression "((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)" (parenthesized_expression "((uVar2 & 0x20) == 0)" ( (binary_expression "(uVar2 & 0x20) == 0" (parenthesized_expression "(uVar2 & 0x20)" ( (binary_expression "uVar2 & 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) ))) )) && (parenthesized_expression "(((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))" ( (parenthesized_expression "((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0))" ( (binary_expression "(uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)" (binary_expression "(uVar2 & 0x80) == 0" (parenthesized_expression "(uVar2 & 0x80)" ( (binary_expression "uVar2 & 0x80" identifier & number_literal) )) == number_literal) || (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 if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar5 == 0) goto LAB_000204b8;\n        }" else (if_statement "if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar5 == 0) goto LAB_000204b8;\n        }" if (parenthesized_expression "((uVar3 & 1) != 0)" ( (binary_expression "(uVar3 & 1) != 0" (parenthesized_expression "(uVar3 & 1)" ( (binary_expression "uVar3 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\njoined_r0x000204fc:\n          if (uVar5 == 0) goto LAB_000204b8;\n        }" { (labeled_statement "joined_r0x000204fc:\n          if (uVar5 == 0) goto LAB_000204b8;" statement_identifier : (if_statement "if (uVar5 == 0) goto LAB_000204b8;" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000204b8;" goto statement_identifier ;))) })))) })) (expression_statement "prVar7 = (re_dfastate_t *)((int)&prVar7->hash + 1);" (assignment_expression "prVar7 = (re_dfastate_t *)((int)&prVar7->hash + 1)" identifier = (cast_expression "(re_dfastate_t *)((int)&prVar7->hash + 1)" ( (type_descriptor "re_dfastate_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&prVar7->hash + 1)" ( (binary_expression "(int)&prVar7->hash + 1" (cast_expression "(int)&prVar7->hash" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&prVar7->hash" & (field_expression "prVar7->hash" identifier -> field_identifier))) + number_literal) )))) ;) (expression_statement "pIVar6 = pIVar6 + 1;" (assignment_expression "pIVar6 = pIVar6 + 1" identifier = (binary_expression "pIVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(prVar7 != state)" ( (binary_expression "prVar7 != state" identifier != identifier) )) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int FUN_0002040c(int param_1,int param_2,undefined4 *param_3,undefined4 param_4)\n\n{\n  bool bVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  int *piVar7;\n  int iVar8;\n  \n  uVar3 = FUN_00020130(param_1,param_4,*(undefined4 *)(param_1 + 0x58));\n  if (0 < param_2) {\n    iVar8 = 0;\n    piVar7 = (int *)*param_3;\n    do {\n      iVar4 = *piVar7;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar2 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar2 == 0) {\n          return iVar4;\n        }\n        uVar6 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }\n      }\n      iVar8 = iVar8 + 1;\n      piVar7 = piVar7 + 1;\n    } while (iVar8 != param_2);\n  }\n  return 0;\n}\n\n" (function_definition "int FUN_0002040c(int param_1,int param_2,undefined4 *param_3,undefined4 param_4)\n\n{\n  bool bVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  int *piVar7;\n  int iVar8;\n  \n  uVar3 = FUN_00020130(param_1,param_4,*(undefined4 *)(param_1 + 0x58));\n  if (0 < param_2) {\n    iVar8 = 0;\n    piVar7 = (int *)*param_3;\n    do {\n      iVar4 = *piVar7;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar2 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar2 == 0) {\n          return iVar4;\n        }\n        uVar6 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }\n      }\n      iVar8 = iVar8 + 1;\n      piVar7 = piVar7 + 1;\n    } while (iVar8 != param_2);\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_0002040c(int param_1,int param_2,undefined4 *param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,int param_2,undefined4 *param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  bool bVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  int *piVar7;\n  int iVar8;\n  \n  uVar3 = FUN_00020130(param_1,param_4,*(undefined4 *)(param_1 + 0x58));\n  if (0 < param_2) {\n    iVar8 = 0;\n    piVar7 = (int *)*param_3;\n    do {\n      iVar4 = *piVar7;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar2 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar2 == 0) {\n          return iVar4;\n        }\n        uVar6 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }\n      }\n      iVar8 = iVar8 + 1;\n      piVar7 = piVar7 + 1;\n    } while (iVar8 != param_2);\n  }\n  return 0;\n}" { (declaration "bool bVar1;" primitive_type 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 "uint uVar6;" type_identifier identifier ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (expression_statement "uVar3 = FUN_00020130(param_1,param_4,*(undefined4 *)(param_1 + 0x58));" (assignment_expression "uVar3 = FUN_00020130(param_1,param_4,*(undefined4 *)(param_1 + 0x58))" identifier = (call_expression "FUN_00020130(param_1,param_4,*(undefined4 *)(param_1 + 0x58))" identifier (argument_list "(param_1,param_4,*(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 < param_2) {\n    iVar8 = 0;\n    piVar7 = (int *)*param_3;\n    do {\n      iVar4 = *piVar7;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar2 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar2 == 0) {\n          return iVar4;\n        }\n        uVar6 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }\n      }\n      iVar8 = iVar8 + 1;\n      piVar7 = piVar7 + 1;\n    } while (iVar8 != param_2);\n  }" if (parenthesized_expression "(0 < param_2)" ( (binary_expression "0 < param_2" number_literal < identifier) )) (compound_statement "{\n    iVar8 = 0;\n    piVar7 = (int *)*param_3;\n    do {\n      iVar4 = *piVar7;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar2 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar2 == 0) {\n          return iVar4;\n        }\n        uVar6 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }\n      }\n      iVar8 = iVar8 + 1;\n      piVar7 = piVar7 + 1;\n    } while (iVar8 != param_2);\n  }" { (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (expression_statement "piVar7 = (int *)*param_3;" (assignment_expression "piVar7 = (int *)*param_3" identifier = (cast_expression "(int *)*param_3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_3" * identifier))) ;) (do_statement "do {\n      iVar4 = *piVar7;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar2 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar2 == 0) {\n          return iVar4;\n        }\n        uVar6 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }\n      }\n      iVar8 = iVar8 + 1;\n      piVar7 = piVar7 + 1;\n    } while (iVar8 != param_2);" do (compound_statement "{\n      iVar4 = *piVar7;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar2 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar2 == 0) {\n          return iVar4;\n        }\n        uVar6 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }\n      }\n      iVar8 = iVar8 + 1;\n      piVar7 = piVar7 + 1;\n    }" { (expression_statement "iVar4 = *piVar7;" (assignment_expression "iVar4 = *piVar7" identifier = (pointer_expression "*piVar7" * 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 "uVar2 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;" (assignment_expression "uVar2 = (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 (uVar2 == 0) {\n          return iVar4;\n        }\n        uVar6 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\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 (uVar2 == 0) {\n          return iVar4;\n        }\n        uVar6 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }\n      }" { (if_statement "if (uVar2 == 0) {\n          return iVar4;\n        }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          return iVar4;\n        }" { (return_statement "return iVar4;" return identifier ;) })) (expression_statement "uVar6 = uVar2 & 8;" (assignment_expression "uVar6 = uVar2 & 8" identifier = (binary_expression "uVar2 & 8" identifier & number_literal)) ;) (if_statement "if ((uVar2 & 4) == 0) {\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }" if (parenthesized_expression "((uVar2 & 4) == 0)" ( (binary_expression "(uVar2 & 4) == 0" (parenthesized_expression "(uVar2 & 4)" ( (binary_expression "uVar2 & 4" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }" { (expression_statement "bVar1 = uVar6 != 0;" (assignment_expression "bVar1 = uVar6 != 0" identifier = (binary_expression "uVar6 != 0" identifier != number_literal)) ;) (expression_statement "uVar6 = uVar3 & 1;" (assignment_expression "uVar6 = uVar3 & 1" identifier = (binary_expression "uVar3 & 1" identifier & number_literal)) ;) (if_statement "if (bVar1) goto joined_r0x000204fc;" if (parenthesized_expression "(bVar1)" ( identifier )) (goto_statement "goto joined_r0x000204fc;" goto statement_identifier ;)) (labeled_statement "LAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }" statement_identifier : (if_statement "if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }" if (parenthesized_expression "((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0))))" ( (binary_expression "(((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))" (parenthesized_expression "(((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0))" ( (binary_expression "((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)" (parenthesized_expression "((uVar2 & 0x20) == 0)" ( (binary_expression "(uVar2 & 0x20) == 0" (parenthesized_expression "(uVar2 & 0x20)" ( (binary_expression "uVar2 & 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) ))) )) && (parenthesized_expression "(((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))" ( (parenthesized_expression "((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0))" ( (binary_expression "(uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)" (binary_expression "(uVar2 & 0x80) == 0" (parenthesized_expression "(uVar2 & 0x80)" ( (binary_expression "uVar2 & 0x80" identifier & number_literal) )) == number_literal) || (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 if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }" else (if_statement "if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }" if (parenthesized_expression "((uVar3 & 1) != 0)" ( (binary_expression "(uVar3 & 1) != 0" (parenthesized_expression "(uVar3 & 1)" ( (binary_expression "uVar3 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }" { (labeled_statement "joined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;" statement_identifier : (if_statement "if (uVar6 == 0) goto LAB_000204b8;" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000204b8;" goto statement_identifier ;))) })))) })) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (expression_statement "piVar7 = piVar7 + 1;" (assignment_expression "piVar7 = piVar7 + 1" identifier = (binary_expression "piVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar8 != param_2)" ( (binary_expression "iVar8 != param_2" identifier != identifier) )) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (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 < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (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 ;) })) (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 { (expression_statement (assignment_expression IDENT = (binary_expression IDENT != LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( IDENT )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (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) ))) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) ))) )) ))) )) (compound_statement { (return_statement return IDENT ;) }))) }) (else_clause else (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 ;))) })))) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (return_statement return LIT ;) })))
(function_definition "int FUN_0002040c(int param_1,int param_2,undefined4 *param_3,undefined4 param_4)\n\n{\n  bool bVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  int *piVar7;\n  int iVar8;\n  \n  uVar3 = FUN_00020130(param_1,param_4,*(undefined4 *)(param_1 + 0x58));\n  if (0 < param_2) {\n    iVar8 = 0;\n    piVar7 = (int *)*param_3;\n    do {\n      iVar4 = *piVar7;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar2 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar2 == 0) {\n          return iVar4;\n        }\n        uVar6 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }\n      }\n      iVar8 = iVar8 + 1;\n      piVar7 = piVar7 + 1;\n    } while (iVar8 != param_2);\n  }\n  return 0;\n}" (primitive_type "int") (function_declarator "FUN_0002040c(int param_1,int param_2,undefined4 *param_3,undefined4 param_4)" (identifier "FUN_0002040c") (parameter_list "(int param_1,int param_2,undefined4 *param_3,undefined4 param_4)" (( "(") (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") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  bool bVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  uint uVar6;\n  int *piVar7;\n  int iVar8;\n  \n  uVar3 = FUN_00020130(param_1,param_4,*(undefined4 *)(param_1 + 0x58));\n  if (0 < param_2) {\n    iVar8 = 0;\n    piVar7 = (int *)*param_3;\n    do {\n      iVar4 = *piVar7;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar2 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar2 == 0) {\n          return iVar4;\n        }\n        uVar6 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }\n      }\n      iVar8 = iVar8 + 1;\n      piVar7 = piVar7 + 1;\n    } while (iVar8 != param_2);\n  }\n  return 0;\n}" ({ "{") (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (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 "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "int *piVar7;" (primitive_type "int") (pointer_declarator "*piVar7" (* "*") (identifier "piVar7")) (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (expression_statement "uVar3 = FUN_00020130(param_1,param_4,*(undefined4 *)(param_1 + 0x58));" (assignment_expression "uVar3 = FUN_00020130(param_1,param_4,*(undefined4 *)(param_1 + 0x58))" (identifier "uVar3") (= "=") (call_expression "FUN_00020130(param_1,param_4,*(undefined4 *)(param_1 + 0x58))" (identifier "FUN_00020130") (argument_list "(param_1,param_4,*(undefined4 *)(param_1 + 0x58))" (( "(") (identifier "param_1") (, ",") (identifier "param_4") (, ",") (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 < param_2) {\n    iVar8 = 0;\n    piVar7 = (int *)*param_3;\n    do {\n      iVar4 = *piVar7;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar2 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar2 == 0) {\n          return iVar4;\n        }\n        uVar6 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }\n      }\n      iVar8 = iVar8 + 1;\n      piVar7 = piVar7 + 1;\n    } while (iVar8 != param_2);\n  }" (if "if") (parenthesized_expression "(0 < param_2)" (( "(") (binary_expression "0 < param_2" (number_literal "0") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n    iVar8 = 0;\n    piVar7 = (int *)*param_3;\n    do {\n      iVar4 = *piVar7;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar2 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar2 == 0) {\n          return iVar4;\n        }\n        uVar6 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }\n      }\n      iVar8 = iVar8 + 1;\n      piVar7 = piVar7 + 1;\n    } while (iVar8 != param_2);\n  }" ({ "{") (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" (identifier "iVar8") (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar7 = (int *)*param_3;" (assignment_expression "piVar7 = (int *)*param_3" (identifier "piVar7") (= "=") (cast_expression "(int *)*param_3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_3" (* "*") (identifier "param_3")))) (; ";")) (do_statement "do {\n      iVar4 = *piVar7;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar2 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar2 == 0) {\n          return iVar4;\n        }\n        uVar6 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }\n      }\n      iVar8 = iVar8 + 1;\n      piVar7 = piVar7 + 1;\n    } while (iVar8 != param_2);" (do "do") (compound_statement "{\n      iVar4 = *piVar7;\n      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;\n      uVar2 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;\n      if (*(char *)(iVar5 + 4) == '\x02') {\n        if (uVar2 == 0) {\n          return iVar4;\n        }\n        uVar6 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }\n      }\n      iVar8 = iVar8 + 1;\n      piVar7 = piVar7 + 1;\n    }" ({ "{") (expression_statement "iVar4 = *piVar7;" (assignment_expression "iVar4 = *piVar7" (identifier "iVar4") (= "=") (pointer_expression "*piVar7" (* "*") (identifier "piVar7"))) (; ";")) (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 "uVar2 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;" (assignment_expression "uVar2 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16" (identifier "uVar2") (= "=") (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 (uVar2 == 0) {\n          return iVar4;\n        }\n        uVar6 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\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 (uVar2 == 0) {\n          return iVar4;\n        }\n        uVar6 = uVar2 & 8;\n        if ((uVar2 & 4) == 0) {\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }\n      }" ({ "{") (if_statement "if (uVar2 == 0) {\n          return iVar4;\n        }" (if "if") (parenthesized_expression "(uVar2 == 0)" (( "(") (binary_expression "uVar2 == 0" (identifier "uVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          return iVar4;\n        }" ({ "{") (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}"))) (expression_statement "uVar6 = uVar2 & 8;" (assignment_expression "uVar6 = uVar2 & 8" (identifier "uVar6") (= "=") (binary_expression "uVar2 & 8" (identifier "uVar2") (& "&") (number_literal "8"))) (; ";")) (if_statement "if ((uVar2 & 4) == 0) {\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }\n        else if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }" (if "if") (parenthesized_expression "((uVar2 & 4) == 0)" (( "(") (binary_expression "(uVar2 & 4) == 0" (parenthesized_expression "(uVar2 & 4)" (( "(") (binary_expression "uVar2 & 4" (identifier "uVar2") (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          bVar1 = uVar6 != 0;\n          uVar6 = uVar3 & 1;\n          if (bVar1) goto joined_r0x000204fc;\nLAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }\n        }" ({ "{") (expression_statement "bVar1 = uVar6 != 0;" (assignment_expression "bVar1 = uVar6 != 0" (identifier "bVar1") (= "=") (binary_expression "uVar6 != 0" (identifier "uVar6") (!= "!=") (number_literal "0"))) (; ";")) (expression_statement "uVar6 = uVar3 & 1;" (assignment_expression "uVar6 = uVar3 & 1" (identifier "uVar6") (= "=") (binary_expression "uVar3 & 1" (identifier "uVar3") (& "&") (number_literal "1"))) (; ";")) (if_statement "if (bVar1) goto joined_r0x000204fc;" (if "if") (parenthesized_expression "(bVar1)" (( "(") (identifier "bVar1") () ")")) (goto_statement "goto joined_r0x000204fc;" (goto "goto") (statement_identifier "joined_r0x000204fc") (; ";"))) (labeled_statement "LAB_000204b8:\n          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }" (statement_identifier "LAB_000204b8") (: ":") (if_statement "if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {\n            return iVar4;\n          }" (if "if") (parenthesized_expression "((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0))))" (( "(") (binary_expression "(((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&\n             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))" (parenthesized_expression "(((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0))" (( "(") (binary_expression "((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)" (parenthesized_expression "((uVar2 & 0x20) == 0)" (( "(") (binary_expression "(uVar2 & 0x20) == 0" (parenthesized_expression "(uVar2 & 0x20)" (( "(") (binary_expression "uVar2 & 0x20" (identifier "uVar2") (& "&") (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")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))" (( "(") (parenthesized_expression "((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0))" (( "(") (binary_expression "(uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)" (binary_expression "(uVar2 & 0x80) == 0" (parenthesized_expression "(uVar2 & 0x80)" (( "(") (binary_expression "uVar2 & 0x80" (identifier "uVar2") (& "&") (number_literal "0x80")) () ")")) (== "==") (number_literal "0")) (|| "||") (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 if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }" (else "else") (if_statement "if ((uVar3 & 1) != 0) {\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }" (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")) () ")")) (compound_statement "{\njoined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;\n        }" ({ "{") (labeled_statement "joined_r0x000204fc:\n          if (uVar6 == 0) goto LAB_000204b8;" (statement_identifier "joined_r0x000204fc") (: ":") (if_statement "if (uVar6 == 0) goto LAB_000204b8;" (if "if") (parenthesized_expression "(uVar6 == 0)" (( "(") (binary_expression "uVar6 == 0" (identifier "uVar6") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000204b8;" (goto "goto") (statement_identifier "LAB_000204b8") (; ";")))) (} "}"))))) (} "}"))) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + 1" (identifier "iVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar7 = piVar7 + 1;" (assignment_expression "piVar7 = piVar7 + 1" (identifier "piVar7") (= "=") (binary_expression "piVar7 + 1" (identifier "piVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar8 != param_2)" (( "(") (binary_expression "iVar8 != param_2" (identifier "iVar8") (!= "!=") (identifier "param_2")) () ")")) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "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: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) 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: (type_identifier) 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: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (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)))) (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 (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)))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (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))))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (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 (return_statement (identifier)))))) alternative: (else_clause (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)))))))))) (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: (identifier) right: (identifier)))))) (return_statement (number_literal)))))

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

{
  bool bVar1;
  uint uVar2;
  uint uVar3;
  int iVar4;
  int iVar5;
  uint uVar6;
  int *piVar7;
  int iVar8;
  
  uVar3 = FUN_00020130(param_1,param_4,*(undefined4 *)(param_1 + 0x58));
  if (0 < param_2) {
    iVar8 = 0;
    piVar7 = (int *)*param_3;
    do {
      iVar4 = *piVar7;
      iVar5 = **(int **)(param_1 + 0x54) + iVar4 * 8;
      uVar2 = (uint)(*(int *)(iVar5 + 4) << 8) >> 0x16;
      if (*(char *)(iVar5 + 4) == '\x02') {
        if (uVar2 == 0) {
          return iVar4;
        }
        uVar6 = uVar2 & 8;
        if ((uVar2 & 4) == 0) {
          bVar1 = uVar6 != 0;
          uVar6 = uVar3 & 1;
          if (bVar1) goto joined_r0x000204fc;
LAB_000204b8:
          if ((((uVar2 & 0x20) == 0) || ((uVar3 & 2) != 0)) &&
             (((uVar2 & 0x80) == 0 || ((uVar3 & 8) != 0)))) {
            return iVar4;
          }
        }
        else if ((uVar3 & 1) != 0) {
joined_r0x000204fc:
          if (uVar6 == 0) goto LAB_000204b8;
        }
      }
      iVar8 = iVar8 + 1;
      piVar7 = piVar7 + 1;
    } while (iVar8 != param_2);
  }
  return 0;
}

