
/* WARNING: Removing unreachable block (ram,0x00027c00) */

_Bool check_node_accept(re_match_context_t *mctx,re_token_t *node,Idx idx)

{
  byte bVar1;
  byte bVar2;
  uint uVar3;
  _Bool _Var4;
  uint uVar5;
  
  bVar1 = (mctx->input).mbs[idx];
  uVar5 = (uint)bVar1;
  bVar2 = node->field_0x4;
  if (bVar2 == 3) {
    if (((node->opr).sbcset[(int)uVar5 >> 5] >> (uVar5 & 0x1f) & 1) == 0) {
      return false;
    }
  }
  else if (bVar2 < 4) {
    if (bVar2 != 1) {
      return false;
    }
    if ((node->opr).c != uVar5) {
      return false;
    }
  }
  else {
    if (bVar2 != 5) {
      if (bVar2 != 7) {
        return false;
      }
      if ((char)bVar1 < '\0') {
        return false;
      }
    }
    if (uVar5 == 10) {
      if ((mctx->dfa->syntax & 0x40) == 0) {
        return false;
      }
    }
    else if ((uVar5 == 0) && ((mctx->dfa->syntax & 0x80) != 0)) {
      return false;
    }
  }
  if ((*(uint *)&node->field_0x4 & 0xffc000) == 0) {
    return true;
  }
  uVar3 = re_string_context_at(&mctx->input,idx,mctx->eflags);
  uVar5 = (uint)(*(int *)&node->field_0x4 << 8) >> 0x16;
  if ((uVar5 & 4) == 0) {
    if (((uVar5 & 8) != 0) && ((uVar3 & 1) != 0)) {
      return false;
    }
  }
  else {
    if ((uVar3 & 1) == 0) {
      return false;
    }
    if ((uVar5 & 8) != 0) {
      return false;
    }
  }
  if (((uVar5 & 0x20) == 0) || ((uVar3 & 2) != 0)) {
    _Var4 = SUB41((uVar3 << 0x1c) >> 0x1f,0);
    if ((uVar5 & 0x80) == 0) {
      _Var4 = true;
    }
  }
  else {
    _Var4 = false;
  }
  return _Var4;
}



/* WARNING: Removing unreachable block (ram,0x00027c00) */

uint FUN_00027ab0(int param_1,byte *param_2,int param_3)

{
  byte bVar1;
  byte bVar2;
  uint uVar3;
  uint uVar4;
  
  bVar1 = *(byte *)(*(int *)(param_1 + 4) + param_3);
  uVar4 = (uint)bVar1;
  bVar2 = param_2[4];
  if (bVar2 == 3) {
    if ((*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f) & 1) == 0) {
      return 0;
    }
  }
  else if (bVar2 < 4) {
    if (bVar2 != 1) {
      return 0;
    }
    if (*param_2 != uVar4) {
      return 0;
    }
  }
  else {
    if (bVar2 != 5) {
      if (bVar2 != 7) {
        return 0;
      }
      if ((char)bVar1 < '\0') {
        return 0;
      }
    }
    if (uVar4 == 10) {
      if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {
        return 0;
      }
    }
    else if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {
      return 0;
    }
  }
  if ((*(uint *)(param_2 + 4) & 0xffc000) == 0) {
    return 1;
  }
  uVar3 = FUN_00027970(param_1,param_3,*(undefined4 *)(param_1 + 0x58));
  uVar4 = (uint)(*(int *)(param_2 + 4) << 8) >> 0x16;
  if ((uVar4 & 4) == 0) {
    if (((uVar4 & 8) != 0) && ((uVar3 & 1) != 0)) {
      return 0;
    }
  }
  else {
    if ((uVar3 & 1) == 0) {
      return 0;
    }
    if ((uVar4 & 8) != 0) {
      return 0;
    }
  }
  if (((uVar4 & 0x20) == 0) || ((uVar3 & 2) != 0)) {
    uVar3 = (uVar3 << 0x1c) >> 0x1f;
    if ((uVar4 & 0x80) == 0) {
      uVar3 = 1;
    }
  }
  else {
    uVar3 = 0;
  }
  return uVar3;
}


lui gp,0x3
addiu gp,gp,-0x2960
addu gp,gp,t9
lw v0,0x4(a0)
addu v0,v0,a2
lbu v1,0x0(v0)
lbu v0,0x4(a1)
li a3,0x3
beq v0,a3,0x00027b5c
_sltiu a3,v0,0x4
bne a3,zero,0x00027b2c
_li a3,0x5
beq v0,a3,0x00027afc
_li a3,0x7
bne v0,a3,0x00027b54
_nop
seb v0,v1
bltz v0,0x00027c64
_nop
li v0,0xa
beq v1,v0,0x00027c08
_nop
bne v1,zero,0x00027b88
_nop
lw v0,0x54(a0)
lw v0,0x80(v0)
andi v0,v0,0x80
beq v0,zero,0x00027b88
_or v0,zero,zero
jr ra
_nop
li a3,0x1
bne v0,a3,0x00027b4c
_nop
lbu v0,0x0(a1)
beq v0,v1,0x00027b88
_or v0,zero,zero
jr ra
_nop
jr ra
_or v0,zero,zero
jr ra
_or v0,zero,zero
bltz v1,0x00027c00
_or v0,v1,zero
sra v0,v0,0x5
lw a3,0x0(a1)
sll v0,v0,0x2
addu v0,a3,v0
lw v0,0x0(v0)
srlv v1,v0,v1
andi v1,v1,0x1
beq v1,zero,0x00027c5c
_nop
lw v0,0x4(a1)
lui v1,0xff
ori v1,v1,0xc000
and v0,v0,v1
beq v0,zero,0x00027c6c
_lw t9,-0x7ef0(gp)
addiu sp,sp,-0x20
sw ra,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
or v0,a2,zero
or s0,a1,zero
lw a2,0x58(a0)
or a1,v0,zero
addiu t9,t9,0x7970
bal 0x00027970
_nop
lw gp,0x10(sp)
lw v1,0x4(s0)
ext v1,v1,0xe,0xa
andi a0,v1,0x4
beq a0,zero,0x00027c24
_andi a0,v1,0x8
andi a0,v0,0x1
beq a0,zero,0x00027c74
_andi a0,v1,0x8
beq a0,zero,0x00027c38
_andi a0,v1,0x20
b 0x00027c90
_or v0,zero,zero
b 0x00027b64
_addiu v0,v1,0x1f
lw v0,0x54(a0)
lw v0,0x80(v0)
andi v0,v0,0x40
bne v0,zero,0x00027b88
_or v0,zero,zero
jr ra
_nop
beq a0,zero,0x00027c34
_andi a0,v0,0x1
bne a0,zero,0x00027c7c
_nop
andi a0,v1,0x20
beq a0,zero,0x00027c48
_andi a0,v0,0x2
beq a0,zero,0x00027c84
_nop
andi v1,v1,0x80
beq v1,zero,0x00027c8c
_ext v0,v0,0x3,0x1
b 0x00027c94
_lw ra,0x1c(sp)
jr ra
_or v0,zero,zero
jr ra
_or v0,zero,zero
jr ra
_li v0,0x1
b 0x00027c90
_or v0,zero,zero
b 0x00027c90
_or v0,zero,zero
b 0x00027c90
_or v0,zero,zero
li v0,0x1
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "/* WARNING: Removing unreachable block (ram,0x00027c00) */\n\nuint FUN_00027ab0(int param_1,byte *param_2,int param_3)\n\n{\n  byte bVar1;\n  byte bVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  bVar1 = *(byte *)(*(int *)(param_1 + 4) + param_3);\n  uVar4 = (uint)bVar1;\n  bVar2 = param_2[4];\n  if (bVar2 == 3) {\n    if ((*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f) & 1) == 0) {\n      return 0;\n    }\n  }\n  else if (bVar2 < 4) {\n    if (bVar2 != 1) {\n      return 0;\n    }\n    if (*param_2 != uVar4) {\n      return 0;\n    }\n  }\n  else {\n    if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return 0;\n      }\n      if ((char)bVar1 < '\0') {\n        return 0;\n      }\n    }\n    if (uVar4 == 10) {\n      if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }\n    }\n    else if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }\n  }\n  if ((*(uint *)(param_2 + 4) & 0xffc000) == 0) {\n    return 1;\n  }\n  uVar3 = FUN_00027970(param_1,param_3,*(undefined4 *)(param_1 + 0x58));\n  uVar4 = (uint)(*(int *)(param_2 + 4) << 8) >> 0x16;\n  if ((uVar4 & 4) == 0) {\n    if (((uVar4 & 8) != 0) && ((uVar3 & 1) != 0)) {\n      return 0;\n    }\n  }\n  else {\n    if ((uVar3 & 1) == 0) {\n      return 0;\n    }\n    if ((uVar4 & 8) != 0) {\n      return 0;\n    }\n  }\n  if (((uVar4 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n    uVar3 = (uVar3 << 0x1c) >> 0x1f;\n    if ((uVar4 & 0x80) == 0) {\n      uVar3 = 1;\n    }\n  }\n  else {\n    uVar3 = 0;\n  }\n  return uVar3;\n}\n\n" comment (function_definition "uint FUN_00027ab0(int param_1,byte *param_2,int param_3)\n\n{\n  byte bVar1;\n  byte bVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  bVar1 = *(byte *)(*(int *)(param_1 + 4) + param_3);\n  uVar4 = (uint)bVar1;\n  bVar2 = param_2[4];\n  if (bVar2 == 3) {\n    if ((*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f) & 1) == 0) {\n      return 0;\n    }\n  }\n  else if (bVar2 < 4) {\n    if (bVar2 != 1) {\n      return 0;\n    }\n    if (*param_2 != uVar4) {\n      return 0;\n    }\n  }\n  else {\n    if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return 0;\n      }\n      if ((char)bVar1 < '\0') {\n        return 0;\n      }\n    }\n    if (uVar4 == 10) {\n      if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }\n    }\n    else if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }\n  }\n  if ((*(uint *)(param_2 + 4) & 0xffc000) == 0) {\n    return 1;\n  }\n  uVar3 = FUN_00027970(param_1,param_3,*(undefined4 *)(param_1 + 0x58));\n  uVar4 = (uint)(*(int *)(param_2 + 4) << 8) >> 0x16;\n  if ((uVar4 & 4) == 0) {\n    if (((uVar4 & 8) != 0) && ((uVar3 & 1) != 0)) {\n      return 0;\n    }\n  }\n  else {\n    if ((uVar3 & 1) == 0) {\n      return 0;\n    }\n    if ((uVar4 & 8) != 0) {\n      return 0;\n    }\n  }\n  if (((uVar4 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n    uVar3 = (uVar3 << 0x1c) >> 0x1f;\n    if ((uVar4 & 0x80) == 0) {\n      uVar3 = 1;\n    }\n  }\n  else {\n    uVar3 = 0;\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_00027ab0(int param_1,byte *param_2,int param_3)" identifier (parameter_list "(int param_1,byte *param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  bVar1 = *(byte *)(*(int *)(param_1 + 4) + param_3);\n  uVar4 = (uint)bVar1;\n  bVar2 = param_2[4];\n  if (bVar2 == 3) {\n    if ((*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f) & 1) == 0) {\n      return 0;\n    }\n  }\n  else if (bVar2 < 4) {\n    if (bVar2 != 1) {\n      return 0;\n    }\n    if (*param_2 != uVar4) {\n      return 0;\n    }\n  }\n  else {\n    if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return 0;\n      }\n      if ((char)bVar1 < '\0') {\n        return 0;\n      }\n    }\n    if (uVar4 == 10) {\n      if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }\n    }\n    else if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }\n  }\n  if ((*(uint *)(param_2 + 4) & 0xffc000) == 0) {\n    return 1;\n  }\n  uVar3 = FUN_00027970(param_1,param_3,*(undefined4 *)(param_1 + 0x58));\n  uVar4 = (uint)(*(int *)(param_2 + 4) << 8) >> 0x16;\n  if ((uVar4 & 4) == 0) {\n    if (((uVar4 & 8) != 0) && ((uVar3 & 1) != 0)) {\n      return 0;\n    }\n  }\n  else {\n    if ((uVar3 & 1) == 0) {\n      return 0;\n    }\n    if ((uVar4 & 8) != 0) {\n      return 0;\n    }\n  }\n  if (((uVar4 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n    uVar3 = (uVar3 << 0x1c) >> 0x1f;\n    if ((uVar4 & 0x80) == 0) {\n      uVar3 = 1;\n    }\n  }\n  else {\n    uVar3 = 0;\n  }\n  return uVar3;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "bVar1 = *(byte *)(*(int *)(param_1 + 4) + param_3);" (assignment_expression "bVar1 = *(byte *)(*(int *)(param_1 + 4) + param_3)" identifier = (pointer_expression "*(byte *)(*(int *)(param_1 + 4) + param_3)" * (cast_expression "(byte *)(*(int *)(param_1 + 4) + param_3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 4) + param_3)" ( (binary_expression "*(int *)(param_1 + 4) + param_3" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + identifier) ))))) ;) (expression_statement "uVar4 = (uint)bVar1;" (assignment_expression "uVar4 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "bVar2 = param_2[4];" (assignment_expression "bVar2 = param_2[4]" identifier = (subscript_expression "param_2[4]" identifier [ number_literal ])) ;) (if_statement "if (bVar2 == 3) {\n    if ((*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f) & 1) == 0) {\n      return 0;\n    }\n  }\n  else if (bVar2 < 4) {\n    if (bVar2 != 1) {\n      return 0;\n    }\n    if (*param_2 != uVar4) {\n      return 0;\n    }\n  }\n  else {\n    if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return 0;\n      }\n      if ((char)bVar1 < '\0') {\n        return 0;\n      }\n    }\n    if (uVar4 == 10) {\n      if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }\n    }\n    else if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }\n  }" if (parenthesized_expression "(bVar2 == 3)" ( (binary_expression "bVar2 == 3" identifier == number_literal) )) (compound_statement "{\n    if ((*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f) & 1) == 0) {\n      return 0;\n    }\n  }" { (if_statement "if ((*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f) & 1) == 0) {\n      return 0;\n    }" if (parenthesized_expression "((*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f) & 1) == 0)" ( (binary_expression "(*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f) & 1) == 0" (parenthesized_expression "(*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f) & 1)" ( (binary_expression "*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f) & 1" (binary_expression "*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f)" (pointer_expression "*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4)" * (cast_expression "(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_2 + ((int)uVar4 >> 5) * 4)" ( (binary_expression "*(int *)param_2 + ((int)uVar4 >> 5) * 4" (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + (binary_expression "((int)uVar4 >> 5) * 4" (parenthesized_expression "((int)uVar4 >> 5)" ( (binary_expression "(int)uVar4 >> 5" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) * number_literal)) )))) >> (parenthesized_expression "(uVar4 & 0x1f)" ( (binary_expression "uVar4 & 0x1f" identifier & number_literal) ))) & number_literal) )) == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else if (bVar2 < 4) {\n    if (bVar2 != 1) {\n      return 0;\n    }\n    if (*param_2 != uVar4) {\n      return 0;\n    }\n  }\n  else {\n    if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return 0;\n      }\n      if ((char)bVar1 < '\0') {\n        return 0;\n      }\n    }\n    if (uVar4 == 10) {\n      if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }\n    }\n    else if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }\n  }" else (if_statement "if (bVar2 < 4) {\n    if (bVar2 != 1) {\n      return 0;\n    }\n    if (*param_2 != uVar4) {\n      return 0;\n    }\n  }\n  else {\n    if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return 0;\n      }\n      if ((char)bVar1 < '\0') {\n        return 0;\n      }\n    }\n    if (uVar4 == 10) {\n      if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }\n    }\n    else if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }\n  }" if (parenthesized_expression "(bVar2 < 4)" ( (binary_expression "bVar2 < 4" identifier < number_literal) )) (compound_statement "{\n    if (bVar2 != 1) {\n      return 0;\n    }\n    if (*param_2 != uVar4) {\n      return 0;\n    }\n  }" { (if_statement "if (bVar2 != 1) {\n      return 0;\n    }" if (parenthesized_expression "(bVar2 != 1)" ( (binary_expression "bVar2 != 1" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (*param_2 != uVar4) {\n      return 0;\n    }" if (parenthesized_expression "(*param_2 != uVar4)" ( (binary_expression "*param_2 != uVar4" (pointer_expression "*param_2" * identifier) != identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return 0;\n      }\n      if ((char)bVar1 < '\0') {\n        return 0;\n      }\n    }\n    if (uVar4 == 10) {\n      if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }\n    }\n    else if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }\n  }" else (compound_statement "{\n    if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return 0;\n      }\n      if ((char)bVar1 < '\0') {\n        return 0;\n      }\n    }\n    if (uVar4 == 10) {\n      if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }\n    }\n    else if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }\n  }" { (if_statement "if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return 0;\n      }\n      if ((char)bVar1 < '\0') {\n        return 0;\n      }\n    }" if (parenthesized_expression "(bVar2 != 5)" ( (binary_expression "bVar2 != 5" identifier != number_literal) )) (compound_statement "{\n      if (bVar2 != 7) {\n        return 0;\n      }\n      if ((char)bVar1 < '\0') {\n        return 0;\n      }\n    }" { (if_statement "if (bVar2 != 7) {\n        return 0;\n      }" if (parenthesized_expression "(bVar2 != 7)" ( (binary_expression "bVar2 != 7" identifier != number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((char)bVar1 < '\0') {\n        return 0;\n      }" if (parenthesized_expression "((char)bVar1 < '\0')" ( (binary_expression "(char)bVar1 < '\0'" (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) })) (if_statement "if (uVar4 == 10) {\n      if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }\n    }\n    else if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }" if (parenthesized_expression "(uVar4 == 10)" ( (binary_expression "uVar4 == 10" identifier == number_literal) )) (compound_statement "{\n      if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }\n    }" { (if_statement "if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }" if (parenthesized_expression "((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0)" ( (binary_expression "(*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0" (parenthesized_expression "(*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40)" ( (binary_expression "*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40" (pointer_expression "*(uint *)(*(int *)(param_1 + 0x54) + 0x80)" * (cast_expression "(uint *)(*(int *)(param_1 + 0x54) + 0x80)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x54) + 0x80)" ( (binary_expression "*(int *)(param_1 + 0x54) + 0x80" (pointer_expression "*(int *)(param_1 + 0x54)" * (cast_expression "(int *)(param_1 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }" else (if_statement "if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }" if (parenthesized_expression "((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0))" ( (binary_expression "(uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)" (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) && (parenthesized_expression "((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)" ( (binary_expression "(*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0" (parenthesized_expression "(*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80)" ( (binary_expression "*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80" (pointer_expression "*(uint *)(*(int *)(param_1 + 0x54) + 0x80)" * (cast_expression "(uint *)(*(int *)(param_1 + 0x54) + 0x80)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x54) + 0x80)" ( (binary_expression "*(int *)(param_1 + 0x54) + 0x80" (pointer_expression "*(int *)(param_1 + 0x54)" * (cast_expression "(int *)(param_1 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })))) }))))) (if_statement "if ((*(uint *)(param_2 + 4) & 0xffc000) == 0) {\n    return 1;\n  }" if (parenthesized_expression "((*(uint *)(param_2 + 4) & 0xffc000) == 0)" ( (binary_expression "(*(uint *)(param_2 + 4) & 0xffc000) == 0" (parenthesized_expression "(*(uint *)(param_2 + 4) & 0xffc000)" ( (binary_expression "*(uint *)(param_2 + 4) & 0xffc000" (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar3 = FUN_00027970(param_1,param_3,*(undefined4 *)(param_1 + 0x58));" (assignment_expression "uVar3 = FUN_00027970(param_1,param_3,*(undefined4 *)(param_1 + 0x58))" identifier = (call_expression "FUN_00027970(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) )))) )))) ;) (expression_statement "uVar4 = (uint)(*(int *)(param_2 + 4) << 8) >> 0x16;" (assignment_expression "uVar4 = (uint)(*(int *)(param_2 + 4) << 8) >> 0x16" identifier = (binary_expression "(uint)(*(int *)(param_2 + 4) << 8) >> 0x16" (call_expression "(uint)(*(int *)(param_2 + 4) << 8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_2 + 4) << 8)" ( (binary_expression "*(int *)(param_2 + 4) << 8" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) << number_literal) ))) >> number_literal)) ;) (if_statement "if ((uVar4 & 4) == 0) {\n    if (((uVar4 & 8) != 0) && ((uVar3 & 1) != 0)) {\n      return 0;\n    }\n  }\n  else {\n    if ((uVar3 & 1) == 0) {\n      return 0;\n    }\n    if ((uVar4 & 8) != 0) {\n      return 0;\n    }\n  }" if (parenthesized_expression "((uVar4 & 4) == 0)" ( (binary_expression "(uVar4 & 4) == 0" (parenthesized_expression "(uVar4 & 4)" ( (binary_expression "uVar4 & 4" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if (((uVar4 & 8) != 0) && ((uVar3 & 1) != 0)) {\n      return 0;\n    }\n  }" { (if_statement "if (((uVar4 & 8) != 0) && ((uVar3 & 1) != 0)) {\n      return 0;\n    }" if (parenthesized_expression "(((uVar4 & 8) != 0) && ((uVar3 & 1) != 0))" ( (binary_expression "((uVar4 & 8) != 0) && ((uVar3 & 1) != 0)" (parenthesized_expression "((uVar4 & 8) != 0)" ( (binary_expression "(uVar4 & 8) != 0" (parenthesized_expression "(uVar4 & 8)" ( (binary_expression "uVar4 & 8" identifier & number_literal) )) != number_literal) )) && (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 "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    if ((uVar3 & 1) == 0) {\n      return 0;\n    }\n    if ((uVar4 & 8) != 0) {\n      return 0;\n    }\n  }" else (compound_statement "{\n    if ((uVar3 & 1) == 0) {\n      return 0;\n    }\n    if ((uVar4 & 8) != 0) {\n      return 0;\n    }\n  }" { (if_statement "if ((uVar3 & 1) == 0) {\n      return 0;\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 "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((uVar4 & 8) != 0) {\n      return 0;\n    }" if (parenthesized_expression "((uVar4 & 8) != 0)" ( (binary_expression "(uVar4 & 8) != 0" (parenthesized_expression "(uVar4 & 8)" ( (binary_expression "uVar4 & 8" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }))) (if_statement "if (((uVar4 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n    uVar3 = (uVar3 << 0x1c) >> 0x1f;\n    if ((uVar4 & 0x80) == 0) {\n      uVar3 = 1;\n    }\n  }\n  else {\n    uVar3 = 0;\n  }" if (parenthesized_expression "(((uVar4 & 0x20) == 0) || ((uVar3 & 2) != 0))" ( (binary_expression "((uVar4 & 0x20) == 0) || ((uVar3 & 2) != 0)" (parenthesized_expression "((uVar4 & 0x20) == 0)" ( (binary_expression "(uVar4 & 0x20) == 0" (parenthesized_expression "(uVar4 & 0x20)" ( (binary_expression "uVar4 & 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    uVar3 = (uVar3 << 0x1c) >> 0x1f;\n    if ((uVar4 & 0x80) == 0) {\n      uVar3 = 1;\n    }\n  }" { (expression_statement "uVar3 = (uVar3 << 0x1c) >> 0x1f;" (assignment_expression "uVar3 = (uVar3 << 0x1c) >> 0x1f" identifier = (binary_expression "(uVar3 << 0x1c) >> 0x1f" (parenthesized_expression "(uVar3 << 0x1c)" ( (binary_expression "uVar3 << 0x1c" identifier << number_literal) )) >> number_literal)) ;) (if_statement "if ((uVar4 & 0x80) == 0) {\n      uVar3 = 1;\n    }" if (parenthesized_expression "((uVar4 & 0x80) == 0)" ( (binary_expression "(uVar4 & 0x80) == 0" (parenthesized_expression "(uVar4 & 0x80)" ( (binary_expression "uVar4 & 0x80" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      uVar3 = 1;\n    }" { (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) })) }) (else_clause "else {\n    uVar3 = 0;\n  }" else (compound_statement "{\n    uVar3 = 0;\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Removing unreachable block (ram,0x00027c00) */\n\n_Bool check_node_accept(re_match_context_t *mctx,re_token_t *node,Idx idx)\n\n{\n  byte bVar1;\n  byte bVar2;\n  uint uVar3;\n  _Bool _Var4;\n  uint uVar5;\n  \n  bVar1 = (mctx->input).mbs[idx];\n  uVar5 = (uint)bVar1;\n  bVar2 = node->field_0x4;\n  if (bVar2 == 3) {\n    if (((node->opr).sbcset[(int)uVar5 >> 5] >> (uVar5 & 0x1f) & 1) == 0) {\n      return false;\n    }\n  }\n  else if (bVar2 < 4) {\n    if (bVar2 != 1) {\n      return false;\n    }\n    if ((node->opr).c != uVar5) {\n      return false;\n    }\n  }\n  else {\n    if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return false;\n      }\n      if ((char)bVar1 < '\0') {\n        return false;\n      }\n    }\n    if (uVar5 == 10) {\n      if ((mctx->dfa->syntax & 0x40) == 0) {\n        return false;\n      }\n    }\n    else if ((uVar5 == 0) && ((mctx->dfa->syntax & 0x80) != 0)) {\n      return false;\n    }\n  }\n  if ((*(uint *)&node->field_0x4 & 0xffc000) == 0) {\n    return true;\n  }\n  uVar3 = re_string_context_at(&mctx->input,idx,mctx->eflags);\n  uVar5 = (uint)(*(int *)&node->field_0x4 << 8) >> 0x16;\n  if ((uVar5 & 4) == 0) {\n    if (((uVar5 & 8) != 0) && ((uVar3 & 1) != 0)) {\n      return false;\n    }\n  }\n  else {\n    if ((uVar3 & 1) == 0) {\n      return false;\n    }\n    if ((uVar5 & 8) != 0) {\n      return false;\n    }\n  }\n  if (((uVar5 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n    _Var4 = SUB41((uVar3 << 0x1c) >> 0x1f,0);\n    if ((uVar5 & 0x80) == 0) {\n      _Var4 = true;\n    }\n  }\n  else {\n    _Var4 = false;\n  }\n  return _Var4;\n}\n\n" comment (function_definition "_Bool check_node_accept(re_match_context_t *mctx,re_token_t *node,Idx idx)\n\n{\n  byte bVar1;\n  byte bVar2;\n  uint uVar3;\n  _Bool _Var4;\n  uint uVar5;\n  \n  bVar1 = (mctx->input).mbs[idx];\n  uVar5 = (uint)bVar1;\n  bVar2 = node->field_0x4;\n  if (bVar2 == 3) {\n    if (((node->opr).sbcset[(int)uVar5 >> 5] >> (uVar5 & 0x1f) & 1) == 0) {\n      return false;\n    }\n  }\n  else if (bVar2 < 4) {\n    if (bVar2 != 1) {\n      return false;\n    }\n    if ((node->opr).c != uVar5) {\n      return false;\n    }\n  }\n  else {\n    if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return false;\n      }\n      if ((char)bVar1 < '\0') {\n        return false;\n      }\n    }\n    if (uVar5 == 10) {\n      if ((mctx->dfa->syntax & 0x40) == 0) {\n        return false;\n      }\n    }\n    else if ((uVar5 == 0) && ((mctx->dfa->syntax & 0x80) != 0)) {\n      return false;\n    }\n  }\n  if ((*(uint *)&node->field_0x4 & 0xffc000) == 0) {\n    return true;\n  }\n  uVar3 = re_string_context_at(&mctx->input,idx,mctx->eflags);\n  uVar5 = (uint)(*(int *)&node->field_0x4 << 8) >> 0x16;\n  if ((uVar5 & 4) == 0) {\n    if (((uVar5 & 8) != 0) && ((uVar3 & 1) != 0)) {\n      return false;\n    }\n  }\n  else {\n    if ((uVar3 & 1) == 0) {\n      return false;\n    }\n    if ((uVar5 & 8) != 0) {\n      return false;\n    }\n  }\n  if (((uVar5 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n    _Var4 = SUB41((uVar3 << 0x1c) >> 0x1f,0);\n    if ((uVar5 & 0x80) == 0) {\n      _Var4 = true;\n    }\n  }\n  else {\n    _Var4 = false;\n  }\n  return _Var4;\n}" type_identifier (function_declarator "check_node_accept(re_match_context_t *mctx,re_token_t *node,Idx idx)" identifier (parameter_list "(re_match_context_t *mctx,re_token_t *node,Idx idx)" ( (parameter_declaration "re_match_context_t *mctx" type_identifier (pointer_declarator "*mctx" * identifier)) , (parameter_declaration "re_token_t *node" type_identifier (pointer_declarator "*node" * identifier)) , (parameter_declaration "Idx idx" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  uint uVar3;\n  _Bool _Var4;\n  uint uVar5;\n  \n  bVar1 = (mctx->input).mbs[idx];\n  uVar5 = (uint)bVar1;\n  bVar2 = node->field_0x4;\n  if (bVar2 == 3) {\n    if (((node->opr).sbcset[(int)uVar5 >> 5] >> (uVar5 & 0x1f) & 1) == 0) {\n      return false;\n    }\n  }\n  else if (bVar2 < 4) {\n    if (bVar2 != 1) {\n      return false;\n    }\n    if ((node->opr).c != uVar5) {\n      return false;\n    }\n  }\n  else {\n    if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return false;\n      }\n      if ((char)bVar1 < '\0') {\n        return false;\n      }\n    }\n    if (uVar5 == 10) {\n      if ((mctx->dfa->syntax & 0x40) == 0) {\n        return false;\n      }\n    }\n    else if ((uVar5 == 0) && ((mctx->dfa->syntax & 0x80) != 0)) {\n      return false;\n    }\n  }\n  if ((*(uint *)&node->field_0x4 & 0xffc000) == 0) {\n    return true;\n  }\n  uVar3 = re_string_context_at(&mctx->input,idx,mctx->eflags);\n  uVar5 = (uint)(*(int *)&node->field_0x4 << 8) >> 0x16;\n  if ((uVar5 & 4) == 0) {\n    if (((uVar5 & 8) != 0) && ((uVar3 & 1) != 0)) {\n      return false;\n    }\n  }\n  else {\n    if ((uVar3 & 1) == 0) {\n      return false;\n    }\n    if ((uVar5 & 8) != 0) {\n      return false;\n    }\n  }\n  if (((uVar5 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n    _Var4 = SUB41((uVar3 << 0x1c) >> 0x1f,0);\n    if ((uVar5 & 0x80) == 0) {\n      _Var4 = true;\n    }\n  }\n  else {\n    _Var4 = false;\n  }\n  return _Var4;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "_Bool _Var4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (expression_statement "bVar1 = (mctx->input).mbs[idx];" (assignment_expression "bVar1 = (mctx->input).mbs[idx]" identifier = (subscript_expression "(mctx->input).mbs[idx]" (field_expression "(mctx->input).mbs" (parenthesized_expression "(mctx->input)" ( (field_expression "mctx->input" identifier -> field_identifier) )) . field_identifier) [ identifier ])) ;) (expression_statement "uVar5 = (uint)bVar1;" (assignment_expression "uVar5 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "bVar2 = node->field_0x4;" (assignment_expression "bVar2 = node->field_0x4" identifier = (field_expression "node->field_0x4" identifier -> field_identifier)) ;) (if_statement "if (bVar2 == 3) {\n    if (((node->opr).sbcset[(int)uVar5 >> 5] >> (uVar5 & 0x1f) & 1) == 0) {\n      return false;\n    }\n  }\n  else if (bVar2 < 4) {\n    if (bVar2 != 1) {\n      return false;\n    }\n    if ((node->opr).c != uVar5) {\n      return false;\n    }\n  }\n  else {\n    if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return false;\n      }\n      if ((char)bVar1 < '\0') {\n        return false;\n      }\n    }\n    if (uVar5 == 10) {\n      if ((mctx->dfa->syntax & 0x40) == 0) {\n        return false;\n      }\n    }\n    else if ((uVar5 == 0) && ((mctx->dfa->syntax & 0x80) != 0)) {\n      return false;\n    }\n  }" if (parenthesized_expression "(bVar2 == 3)" ( (binary_expression "bVar2 == 3" identifier == number_literal) )) (compound_statement "{\n    if (((node->opr).sbcset[(int)uVar5 >> 5] >> (uVar5 & 0x1f) & 1) == 0) {\n      return false;\n    }\n  }" { (if_statement "if (((node->opr).sbcset[(int)uVar5 >> 5] >> (uVar5 & 0x1f) & 1) == 0) {\n      return false;\n    }" if (parenthesized_expression "(((node->opr).sbcset[(int)uVar5 >> 5] >> (uVar5 & 0x1f) & 1) == 0)" ( (binary_expression "((node->opr).sbcset[(int)uVar5 >> 5] >> (uVar5 & 0x1f) & 1) == 0" (parenthesized_expression "((node->opr).sbcset[(int)uVar5 >> 5] >> (uVar5 & 0x1f) & 1)" ( (binary_expression "(node->opr).sbcset[(int)uVar5 >> 5] >> (uVar5 & 0x1f) & 1" (binary_expression "(node->opr).sbcset[(int)uVar5 >> 5] >> (uVar5 & 0x1f)" (subscript_expression "(node->opr).sbcset[(int)uVar5 >> 5]" (field_expression "(node->opr).sbcset" (parenthesized_expression "(node->opr)" ( (field_expression "node->opr" identifier -> field_identifier) )) . field_identifier) [ (binary_expression "(int)uVar5 >> 5" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ]) >> (parenthesized_expression "(uVar5 & 0x1f)" ( (binary_expression "uVar5 & 0x1f" identifier & number_literal) ))) & number_literal) )) == number_literal) )) (compound_statement "{\n      return false;\n    }" { (return_statement "return false;" return false ;) })) }) (else_clause "else if (bVar2 < 4) {\n    if (bVar2 != 1) {\n      return false;\n    }\n    if ((node->opr).c != uVar5) {\n      return false;\n    }\n  }\n  else {\n    if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return false;\n      }\n      if ((char)bVar1 < '\0') {\n        return false;\n      }\n    }\n    if (uVar5 == 10) {\n      if ((mctx->dfa->syntax & 0x40) == 0) {\n        return false;\n      }\n    }\n    else if ((uVar5 == 0) && ((mctx->dfa->syntax & 0x80) != 0)) {\n      return false;\n    }\n  }" else (if_statement "if (bVar2 < 4) {\n    if (bVar2 != 1) {\n      return false;\n    }\n    if ((node->opr).c != uVar5) {\n      return false;\n    }\n  }\n  else {\n    if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return false;\n      }\n      if ((char)bVar1 < '\0') {\n        return false;\n      }\n    }\n    if (uVar5 == 10) {\n      if ((mctx->dfa->syntax & 0x40) == 0) {\n        return false;\n      }\n    }\n    else if ((uVar5 == 0) && ((mctx->dfa->syntax & 0x80) != 0)) {\n      return false;\n    }\n  }" if (parenthesized_expression "(bVar2 < 4)" ( (binary_expression "bVar2 < 4" identifier < number_literal) )) (compound_statement "{\n    if (bVar2 != 1) {\n      return false;\n    }\n    if ((node->opr).c != uVar5) {\n      return false;\n    }\n  }" { (if_statement "if (bVar2 != 1) {\n      return false;\n    }" if (parenthesized_expression "(bVar2 != 1)" ( (binary_expression "bVar2 != 1" identifier != number_literal) )) (compound_statement "{\n      return false;\n    }" { (return_statement "return false;" return false ;) })) (if_statement "if ((node->opr).c != uVar5) {\n      return false;\n    }" if (parenthesized_expression "((node->opr).c != uVar5)" ( (binary_expression "(node->opr).c != uVar5" (field_expression "(node->opr).c" (parenthesized_expression "(node->opr)" ( (field_expression "node->opr" identifier -> field_identifier) )) . field_identifier) != identifier) )) (compound_statement "{\n      return false;\n    }" { (return_statement "return false;" return false ;) })) }) (else_clause "else {\n    if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return false;\n      }\n      if ((char)bVar1 < '\0') {\n        return false;\n      }\n    }\n    if (uVar5 == 10) {\n      if ((mctx->dfa->syntax & 0x40) == 0) {\n        return false;\n      }\n    }\n    else if ((uVar5 == 0) && ((mctx->dfa->syntax & 0x80) != 0)) {\n      return false;\n    }\n  }" else (compound_statement "{\n    if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return false;\n      }\n      if ((char)bVar1 < '\0') {\n        return false;\n      }\n    }\n    if (uVar5 == 10) {\n      if ((mctx->dfa->syntax & 0x40) == 0) {\n        return false;\n      }\n    }\n    else if ((uVar5 == 0) && ((mctx->dfa->syntax & 0x80) != 0)) {\n      return false;\n    }\n  }" { (if_statement "if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return false;\n      }\n      if ((char)bVar1 < '\0') {\n        return false;\n      }\n    }" if (parenthesized_expression "(bVar2 != 5)" ( (binary_expression "bVar2 != 5" identifier != number_literal) )) (compound_statement "{\n      if (bVar2 != 7) {\n        return false;\n      }\n      if ((char)bVar1 < '\0') {\n        return false;\n      }\n    }" { (if_statement "if (bVar2 != 7) {\n        return false;\n      }" if (parenthesized_expression "(bVar2 != 7)" ( (binary_expression "bVar2 != 7" identifier != number_literal) )) (compound_statement "{\n        return false;\n      }" { (return_statement "return false;" return false ;) })) (if_statement "if ((char)bVar1 < '\0') {\n        return false;\n      }" if (parenthesized_expression "((char)bVar1 < '\0')" ( (binary_expression "(char)bVar1 < '\0'" (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        return false;\n      }" { (return_statement "return false;" return false ;) })) })) (if_statement "if (uVar5 == 10) {\n      if ((mctx->dfa->syntax & 0x40) == 0) {\n        return false;\n      }\n    }\n    else if ((uVar5 == 0) && ((mctx->dfa->syntax & 0x80) != 0)) {\n      return false;\n    }" if (parenthesized_expression "(uVar5 == 10)" ( (binary_expression "uVar5 == 10" identifier == number_literal) )) (compound_statement "{\n      if ((mctx->dfa->syntax & 0x40) == 0) {\n        return false;\n      }\n    }" { (if_statement "if ((mctx->dfa->syntax & 0x40) == 0) {\n        return false;\n      }" if (parenthesized_expression "((mctx->dfa->syntax & 0x40) == 0)" ( (binary_expression "(mctx->dfa->syntax & 0x40) == 0" (parenthesized_expression "(mctx->dfa->syntax & 0x40)" ( (binary_expression "mctx->dfa->syntax & 0x40" (field_expression "mctx->dfa->syntax" (field_expression "mctx->dfa" identifier -> field_identifier) -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n        return false;\n      }" { (return_statement "return false;" return false ;) })) }) (else_clause "else if ((uVar5 == 0) && ((mctx->dfa->syntax & 0x80) != 0)) {\n      return false;\n    }" else (if_statement "if ((uVar5 == 0) && ((mctx->dfa->syntax & 0x80) != 0)) {\n      return false;\n    }" if (parenthesized_expression "((uVar5 == 0) && ((mctx->dfa->syntax & 0x80) != 0))" ( (binary_expression "(uVar5 == 0) && ((mctx->dfa->syntax & 0x80) != 0)" (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) && (parenthesized_expression "((mctx->dfa->syntax & 0x80) != 0)" ( (binary_expression "(mctx->dfa->syntax & 0x80) != 0" (parenthesized_expression "(mctx->dfa->syntax & 0x80)" ( (binary_expression "mctx->dfa->syntax & 0x80" (field_expression "mctx->dfa->syntax" (field_expression "mctx->dfa" identifier -> field_identifier) -> field_identifier) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n      return false;\n    }" { (return_statement "return false;" return false ;) })))) }))))) (if_statement "if ((*(uint *)&node->field_0x4 & 0xffc000) == 0) {\n    return true;\n  }" if (parenthesized_expression "((*(uint *)&node->field_0x4 & 0xffc000) == 0)" ( (binary_expression "(*(uint *)&node->field_0x4 & 0xffc000) == 0" (parenthesized_expression "(*(uint *)&node->field_0x4 & 0xffc000)" ( (binary_expression "*(uint *)&node->field_0x4 & 0xffc000" (pointer_expression "*(uint *)&node->field_0x4" * (cast_expression "(uint *)&node->field_0x4" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&node->field_0x4" & (field_expression "node->field_0x4" identifier -> field_identifier)))) & number_literal) )) == number_literal) )) (compound_statement "{\n    return true;\n  }" { (return_statement "return true;" return true ;) })) (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 "uVar5 = (uint)(*(int *)&node->field_0x4 << 8) >> 0x16;" (assignment_expression "uVar5 = (uint)(*(int *)&node->field_0x4 << 8) >> 0x16" identifier = (binary_expression "(uint)(*(int *)&node->field_0x4 << 8) >> 0x16" (call_expression "(uint)(*(int *)&node->field_0x4 << 8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)&node->field_0x4 << 8)" ( (binary_expression "*(int *)&node->field_0x4 << 8" (pointer_expression "*(int *)&node->field_0x4" * (cast_expression "(int *)&node->field_0x4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&node->field_0x4" & (field_expression "node->field_0x4" identifier -> field_identifier)))) << number_literal) ))) >> number_literal)) ;) (if_statement "if ((uVar5 & 4) == 0) {\n    if (((uVar5 & 8) != 0) && ((uVar3 & 1) != 0)) {\n      return false;\n    }\n  }\n  else {\n    if ((uVar3 & 1) == 0) {\n      return false;\n    }\n    if ((uVar5 & 8) != 0) {\n      return false;\n    }\n  }" if (parenthesized_expression "((uVar5 & 4) == 0)" ( (binary_expression "(uVar5 & 4) == 0" (parenthesized_expression "(uVar5 & 4)" ( (binary_expression "uVar5 & 4" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if (((uVar5 & 8) != 0) && ((uVar3 & 1) != 0)) {\n      return false;\n    }\n  }" { (if_statement "if (((uVar5 & 8) != 0) && ((uVar3 & 1) != 0)) {\n      return false;\n    }" if (parenthesized_expression "(((uVar5 & 8) != 0) && ((uVar3 & 1) != 0))" ( (binary_expression "((uVar5 & 8) != 0) && ((uVar3 & 1) != 0)" (parenthesized_expression "((uVar5 & 8) != 0)" ( (binary_expression "(uVar5 & 8) != 0" (parenthesized_expression "(uVar5 & 8)" ( (binary_expression "uVar5 & 8" identifier & number_literal) )) != number_literal) )) && (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 "{\n      return false;\n    }" { (return_statement "return false;" return false ;) })) }) (else_clause "else {\n    if ((uVar3 & 1) == 0) {\n      return false;\n    }\n    if ((uVar5 & 8) != 0) {\n      return false;\n    }\n  }" else (compound_statement "{\n    if ((uVar3 & 1) == 0) {\n      return false;\n    }\n    if ((uVar5 & 8) != 0) {\n      return false;\n    }\n  }" { (if_statement "if ((uVar3 & 1) == 0) {\n      return false;\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 "{\n      return false;\n    }" { (return_statement "return false;" return false ;) })) (if_statement "if ((uVar5 & 8) != 0) {\n      return false;\n    }" if (parenthesized_expression "((uVar5 & 8) != 0)" ( (binary_expression "(uVar5 & 8) != 0" (parenthesized_expression "(uVar5 & 8)" ( (binary_expression "uVar5 & 8" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      return false;\n    }" { (return_statement "return false;" return false ;) })) }))) (if_statement "if (((uVar5 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n    _Var4 = SUB41((uVar3 << 0x1c) >> 0x1f,0);\n    if ((uVar5 & 0x80) == 0) {\n      _Var4 = true;\n    }\n  }\n  else {\n    _Var4 = false;\n  }" if (parenthesized_expression "(((uVar5 & 0x20) == 0) || ((uVar3 & 2) != 0))" ( (binary_expression "((uVar5 & 0x20) == 0) || ((uVar3 & 2) != 0)" (parenthesized_expression "((uVar5 & 0x20) == 0)" ( (binary_expression "(uVar5 & 0x20) == 0" (parenthesized_expression "(uVar5 & 0x20)" ( (binary_expression "uVar5 & 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    _Var4 = SUB41((uVar3 << 0x1c) >> 0x1f,0);\n    if ((uVar5 & 0x80) == 0) {\n      _Var4 = true;\n    }\n  }" { (expression_statement "_Var4 = SUB41((uVar3 << 0x1c) >> 0x1f,0);" (assignment_expression "_Var4 = SUB41((uVar3 << 0x1c) >> 0x1f,0)" identifier = (call_expression "SUB41((uVar3 << 0x1c) >> 0x1f,0)" identifier (argument_list "((uVar3 << 0x1c) >> 0x1f,0)" ( (binary_expression "(uVar3 << 0x1c) >> 0x1f" (parenthesized_expression "(uVar3 << 0x1c)" ( (binary_expression "uVar3 << 0x1c" identifier << number_literal) )) >> number_literal) , number_literal )))) ;) (if_statement "if ((uVar5 & 0x80) == 0) {\n      _Var4 = true;\n    }" if (parenthesized_expression "((uVar5 & 0x80) == 0)" ( (binary_expression "(uVar5 & 0x80) == 0" (parenthesized_expression "(uVar5 & 0x80)" ( (binary_expression "uVar5 & 0x80" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      _Var4 = true;\n    }" { (expression_statement "_Var4 = true;" (assignment_expression "_Var4 = true" identifier = true) ;) })) }) (else_clause "else {\n    _Var4 = false;\n  }" else (compound_statement "{\n    _Var4 = false;\n  }" { (expression_statement "_Var4 = false;" (assignment_expression "_Var4 = false" identifier = false) ;) }))) (return_statement "return _Var4;" return identifier ;) })))
(translation_unit "uint FUN_00027ab0(int param_1,byte *param_2,int param_3)\n\n{\n  byte bVar1;\n  byte bVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  bVar1 = *(byte *)(*(int *)(param_1 + 4) + param_3);\n  uVar4 = (uint)bVar1;\n  bVar2 = param_2[4];\n  if (bVar2 == 3) {\n    if ((*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f) & 1) == 0) {\n      return 0;\n    }\n  }\n  else if (bVar2 < 4) {\n    if (bVar2 != 1) {\n      return 0;\n    }\n    if (*param_2 != uVar4) {\n      return 0;\n    }\n  }\n  else {\n    if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return 0;\n      }\n      if ((char)bVar1 < '\0') {\n        return 0;\n      }\n    }\n    if (uVar4 == 10) {\n      if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }\n    }\n    else if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }\n  }\n  if ((*(uint *)(param_2 + 4) & 0xffc000) == 0) {\n    return 1;\n  }\n  uVar3 = FUN_00027970(param_1,param_3,*(undefined4 *)(param_1 + 0x58));\n  uVar4 = (uint)(*(int *)(param_2 + 4) << 8) >> 0x16;\n  if ((uVar4 & 4) == 0) {\n    if (((uVar4 & 8) != 0) && ((uVar3 & 1) != 0)) {\n      return 0;\n    }\n  }\n  else {\n    if ((uVar3 & 1) == 0) {\n      return 0;\n    }\n    if ((uVar4 & 8) != 0) {\n      return 0;\n    }\n  }\n  if (((uVar4 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n    uVar3 = (uVar3 << 0x1c) >> 0x1f;\n    if ((uVar4 & 0x80) == 0) {\n      uVar3 = 1;\n    }\n  }\n  else {\n    uVar3 = 0;\n  }\n  return uVar3;\n}\n\n" (function_definition "uint FUN_00027ab0(int param_1,byte *param_2,int param_3)\n\n{\n  byte bVar1;\n  byte bVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  bVar1 = *(byte *)(*(int *)(param_1 + 4) + param_3);\n  uVar4 = (uint)bVar1;\n  bVar2 = param_2[4];\n  if (bVar2 == 3) {\n    if ((*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f) & 1) == 0) {\n      return 0;\n    }\n  }\n  else if (bVar2 < 4) {\n    if (bVar2 != 1) {\n      return 0;\n    }\n    if (*param_2 != uVar4) {\n      return 0;\n    }\n  }\n  else {\n    if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return 0;\n      }\n      if ((char)bVar1 < '\0') {\n        return 0;\n      }\n    }\n    if (uVar4 == 10) {\n      if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }\n    }\n    else if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }\n  }\n  if ((*(uint *)(param_2 + 4) & 0xffc000) == 0) {\n    return 1;\n  }\n  uVar3 = FUN_00027970(param_1,param_3,*(undefined4 *)(param_1 + 0x58));\n  uVar4 = (uint)(*(int *)(param_2 + 4) << 8) >> 0x16;\n  if ((uVar4 & 4) == 0) {\n    if (((uVar4 & 8) != 0) && ((uVar3 & 1) != 0)) {\n      return 0;\n    }\n  }\n  else {\n    if ((uVar3 & 1) == 0) {\n      return 0;\n    }\n    if ((uVar4 & 8) != 0) {\n      return 0;\n    }\n  }\n  if (((uVar4 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n    uVar3 = (uVar3 << 0x1c) >> 0x1f;\n    if ((uVar4 & 0x80) == 0) {\n      uVar3 = 1;\n    }\n  }\n  else {\n    uVar3 = 0;\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_00027ab0(int param_1,byte *param_2,int param_3)" identifier (parameter_list "(int param_1,byte *param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  bVar1 = *(byte *)(*(int *)(param_1 + 4) + param_3);\n  uVar4 = (uint)bVar1;\n  bVar2 = param_2[4];\n  if (bVar2 == 3) {\n    if ((*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f) & 1) == 0) {\n      return 0;\n    }\n  }\n  else if (bVar2 < 4) {\n    if (bVar2 != 1) {\n      return 0;\n    }\n    if (*param_2 != uVar4) {\n      return 0;\n    }\n  }\n  else {\n    if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return 0;\n      }\n      if ((char)bVar1 < '\0') {\n        return 0;\n      }\n    }\n    if (uVar4 == 10) {\n      if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }\n    }\n    else if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }\n  }\n  if ((*(uint *)(param_2 + 4) & 0xffc000) == 0) {\n    return 1;\n  }\n  uVar3 = FUN_00027970(param_1,param_3,*(undefined4 *)(param_1 + 0x58));\n  uVar4 = (uint)(*(int *)(param_2 + 4) << 8) >> 0x16;\n  if ((uVar4 & 4) == 0) {\n    if (((uVar4 & 8) != 0) && ((uVar3 & 1) != 0)) {\n      return 0;\n    }\n  }\n  else {\n    if ((uVar3 & 1) == 0) {\n      return 0;\n    }\n    if ((uVar4 & 8) != 0) {\n      return 0;\n    }\n  }\n  if (((uVar4 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n    uVar3 = (uVar3 << 0x1c) >> 0x1f;\n    if ((uVar4 & 0x80) == 0) {\n      uVar3 = 1;\n    }\n  }\n  else {\n    uVar3 = 0;\n  }\n  return uVar3;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "bVar1 = *(byte *)(*(int *)(param_1 + 4) + param_3);" (assignment_expression "bVar1 = *(byte *)(*(int *)(param_1 + 4) + param_3)" identifier = (pointer_expression "*(byte *)(*(int *)(param_1 + 4) + param_3)" * (cast_expression "(byte *)(*(int *)(param_1 + 4) + param_3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 4) + param_3)" ( (binary_expression "*(int *)(param_1 + 4) + param_3" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + identifier) ))))) ;) (expression_statement "uVar4 = (uint)bVar1;" (assignment_expression "uVar4 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "bVar2 = param_2[4];" (assignment_expression "bVar2 = param_2[4]" identifier = (subscript_expression "param_2[4]" identifier [ number_literal ])) ;) (if_statement "if (bVar2 == 3) {\n    if ((*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f) & 1) == 0) {\n      return 0;\n    }\n  }\n  else if (bVar2 < 4) {\n    if (bVar2 != 1) {\n      return 0;\n    }\n    if (*param_2 != uVar4) {\n      return 0;\n    }\n  }\n  else {\n    if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return 0;\n      }\n      if ((char)bVar1 < '\0') {\n        return 0;\n      }\n    }\n    if (uVar4 == 10) {\n      if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }\n    }\n    else if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }\n  }" if (parenthesized_expression "(bVar2 == 3)" ( (binary_expression "bVar2 == 3" identifier == number_literal) )) (compound_statement "{\n    if ((*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f) & 1) == 0) {\n      return 0;\n    }\n  }" { (if_statement "if ((*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f) & 1) == 0) {\n      return 0;\n    }" if (parenthesized_expression "((*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f) & 1) == 0)" ( (binary_expression "(*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f) & 1) == 0" (parenthesized_expression "(*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f) & 1)" ( (binary_expression "*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f) & 1" (binary_expression "*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f)" (pointer_expression "*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4)" * (cast_expression "(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_2 + ((int)uVar4 >> 5) * 4)" ( (binary_expression "*(int *)param_2 + ((int)uVar4 >> 5) * 4" (pointer_expression "*(int *)param_2" * (cast_expression "(int *)param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + (binary_expression "((int)uVar4 >> 5) * 4" (parenthesized_expression "((int)uVar4 >> 5)" ( (binary_expression "(int)uVar4 >> 5" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) * number_literal)) )))) >> (parenthesized_expression "(uVar4 & 0x1f)" ( (binary_expression "uVar4 & 0x1f" identifier & number_literal) ))) & number_literal) )) == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else if (bVar2 < 4) {\n    if (bVar2 != 1) {\n      return 0;\n    }\n    if (*param_2 != uVar4) {\n      return 0;\n    }\n  }\n  else {\n    if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return 0;\n      }\n      if ((char)bVar1 < '\0') {\n        return 0;\n      }\n    }\n    if (uVar4 == 10) {\n      if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }\n    }\n    else if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }\n  }" else (if_statement "if (bVar2 < 4) {\n    if (bVar2 != 1) {\n      return 0;\n    }\n    if (*param_2 != uVar4) {\n      return 0;\n    }\n  }\n  else {\n    if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return 0;\n      }\n      if ((char)bVar1 < '\0') {\n        return 0;\n      }\n    }\n    if (uVar4 == 10) {\n      if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }\n    }\n    else if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }\n  }" if (parenthesized_expression "(bVar2 < 4)" ( (binary_expression "bVar2 < 4" identifier < number_literal) )) (compound_statement "{\n    if (bVar2 != 1) {\n      return 0;\n    }\n    if (*param_2 != uVar4) {\n      return 0;\n    }\n  }" { (if_statement "if (bVar2 != 1) {\n      return 0;\n    }" if (parenthesized_expression "(bVar2 != 1)" ( (binary_expression "bVar2 != 1" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (*param_2 != uVar4) {\n      return 0;\n    }" if (parenthesized_expression "(*param_2 != uVar4)" ( (binary_expression "*param_2 != uVar4" (pointer_expression "*param_2" * identifier) != identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return 0;\n      }\n      if ((char)bVar1 < '\0') {\n        return 0;\n      }\n    }\n    if (uVar4 == 10) {\n      if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }\n    }\n    else if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }\n  }" else (compound_statement "{\n    if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return 0;\n      }\n      if ((char)bVar1 < '\0') {\n        return 0;\n      }\n    }\n    if (uVar4 == 10) {\n      if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }\n    }\n    else if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }\n  }" { (if_statement "if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return 0;\n      }\n      if ((char)bVar1 < '\0') {\n        return 0;\n      }\n    }" if (parenthesized_expression "(bVar2 != 5)" ( (binary_expression "bVar2 != 5" identifier != number_literal) )) (compound_statement "{\n      if (bVar2 != 7) {\n        return 0;\n      }\n      if ((char)bVar1 < '\0') {\n        return 0;\n      }\n    }" { (if_statement "if (bVar2 != 7) {\n        return 0;\n      }" if (parenthesized_expression "(bVar2 != 7)" ( (binary_expression "bVar2 != 7" identifier != number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((char)bVar1 < '\0') {\n        return 0;\n      }" if (parenthesized_expression "((char)bVar1 < '\0')" ( (binary_expression "(char)bVar1 < '\0'" (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) })) (if_statement "if (uVar4 == 10) {\n      if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }\n    }\n    else if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }" if (parenthesized_expression "(uVar4 == 10)" ( (binary_expression "uVar4 == 10" identifier == number_literal) )) (compound_statement "{\n      if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }\n    }" { (if_statement "if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }" if (parenthesized_expression "((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0)" ( (binary_expression "(*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0" (parenthesized_expression "(*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40)" ( (binary_expression "*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40" (pointer_expression "*(uint *)(*(int *)(param_1 + 0x54) + 0x80)" * (cast_expression "(uint *)(*(int *)(param_1 + 0x54) + 0x80)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x54) + 0x80)" ( (binary_expression "*(int *)(param_1 + 0x54) + 0x80" (pointer_expression "*(int *)(param_1 + 0x54)" * (cast_expression "(int *)(param_1 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }" else (if_statement "if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }" if (parenthesized_expression "((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0))" ( (binary_expression "(uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)" (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) && (parenthesized_expression "((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)" ( (binary_expression "(*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0" (parenthesized_expression "(*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80)" ( (binary_expression "*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80" (pointer_expression "*(uint *)(*(int *)(param_1 + 0x54) + 0x80)" * (cast_expression "(uint *)(*(int *)(param_1 + 0x54) + 0x80)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x54) + 0x80)" ( (binary_expression "*(int *)(param_1 + 0x54) + 0x80" (pointer_expression "*(int *)(param_1 + 0x54)" * (cast_expression "(int *)(param_1 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })))) }))))) (if_statement "if ((*(uint *)(param_2 + 4) & 0xffc000) == 0) {\n    return 1;\n  }" if (parenthesized_expression "((*(uint *)(param_2 + 4) & 0xffc000) == 0)" ( (binary_expression "(*(uint *)(param_2 + 4) & 0xffc000) == 0" (parenthesized_expression "(*(uint *)(param_2 + 4) & 0xffc000)" ( (binary_expression "*(uint *)(param_2 + 4) & 0xffc000" (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar3 = FUN_00027970(param_1,param_3,*(undefined4 *)(param_1 + 0x58));" (assignment_expression "uVar3 = FUN_00027970(param_1,param_3,*(undefined4 *)(param_1 + 0x58))" identifier = (call_expression "FUN_00027970(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) )))) )))) ;) (expression_statement "uVar4 = (uint)(*(int *)(param_2 + 4) << 8) >> 0x16;" (assignment_expression "uVar4 = (uint)(*(int *)(param_2 + 4) << 8) >> 0x16" identifier = (binary_expression "(uint)(*(int *)(param_2 + 4) << 8) >> 0x16" (call_expression "(uint)(*(int *)(param_2 + 4) << 8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_2 + 4) << 8)" ( (binary_expression "*(int *)(param_2 + 4) << 8" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) << number_literal) ))) >> number_literal)) ;) (if_statement "if ((uVar4 & 4) == 0) {\n    if (((uVar4 & 8) != 0) && ((uVar3 & 1) != 0)) {\n      return 0;\n    }\n  }\n  else {\n    if ((uVar3 & 1) == 0) {\n      return 0;\n    }\n    if ((uVar4 & 8) != 0) {\n      return 0;\n    }\n  }" if (parenthesized_expression "((uVar4 & 4) == 0)" ( (binary_expression "(uVar4 & 4) == 0" (parenthesized_expression "(uVar4 & 4)" ( (binary_expression "uVar4 & 4" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if (((uVar4 & 8) != 0) && ((uVar3 & 1) != 0)) {\n      return 0;\n    }\n  }" { (if_statement "if (((uVar4 & 8) != 0) && ((uVar3 & 1) != 0)) {\n      return 0;\n    }" if (parenthesized_expression "(((uVar4 & 8) != 0) && ((uVar3 & 1) != 0))" ( (binary_expression "((uVar4 & 8) != 0) && ((uVar3 & 1) != 0)" (parenthesized_expression "((uVar4 & 8) != 0)" ( (binary_expression "(uVar4 & 8) != 0" (parenthesized_expression "(uVar4 & 8)" ( (binary_expression "uVar4 & 8" identifier & number_literal) )) != number_literal) )) && (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 "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    if ((uVar3 & 1) == 0) {\n      return 0;\n    }\n    if ((uVar4 & 8) != 0) {\n      return 0;\n    }\n  }" else (compound_statement "{\n    if ((uVar3 & 1) == 0) {\n      return 0;\n    }\n    if ((uVar4 & 8) != 0) {\n      return 0;\n    }\n  }" { (if_statement "if ((uVar3 & 1) == 0) {\n      return 0;\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 "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((uVar4 & 8) != 0) {\n      return 0;\n    }" if (parenthesized_expression "((uVar4 & 8) != 0)" ( (binary_expression "(uVar4 & 8) != 0" (parenthesized_expression "(uVar4 & 8)" ( (binary_expression "uVar4 & 8" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }))) (if_statement "if (((uVar4 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n    uVar3 = (uVar3 << 0x1c) >> 0x1f;\n    if ((uVar4 & 0x80) == 0) {\n      uVar3 = 1;\n    }\n  }\n  else {\n    uVar3 = 0;\n  }" if (parenthesized_expression "(((uVar4 & 0x20) == 0) || ((uVar3 & 2) != 0))" ( (binary_expression "((uVar4 & 0x20) == 0) || ((uVar3 & 2) != 0)" (parenthesized_expression "((uVar4 & 0x20) == 0)" ( (binary_expression "(uVar4 & 0x20) == 0" (parenthesized_expression "(uVar4 & 0x20)" ( (binary_expression "uVar4 & 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    uVar3 = (uVar3 << 0x1c) >> 0x1f;\n    if ((uVar4 & 0x80) == 0) {\n      uVar3 = 1;\n    }\n  }" { (expression_statement "uVar3 = (uVar3 << 0x1c) >> 0x1f;" (assignment_expression "uVar3 = (uVar3 << 0x1c) >> 0x1f" identifier = (binary_expression "(uVar3 << 0x1c) >> 0x1f" (parenthesized_expression "(uVar3 << 0x1c)" ( (binary_expression "uVar3 << 0x1c" identifier << number_literal) )) >> number_literal)) ;) (if_statement "if ((uVar4 & 0x80) == 0) {\n      uVar3 = 1;\n    }" if (parenthesized_expression "((uVar4 & 0x80) == 0)" ( (binary_expression "(uVar4 & 0x80) == 0" (parenthesized_expression "(uVar4 & 0x80)" ( (binary_expression "uVar4 & 0x80" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      uVar3 = 1;\n    }" { (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) })) }) (else_clause "else {\n    uVar3 = 0;\n  }" else (compound_statement "{\n    uVar3 = 0;\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (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 ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )) * LIT)) )))) >> (parenthesized_expression ( (binary_expression IDENT & LIT) ))) & LIT) )) == LIT) )) (compound_statement { (return_statement return LIT ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != IDENT) )) (compound_statement { (return_statement return LIT ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return LIT ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (return_statement return LIT ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) & LIT) )) != LIT) ))) )) (compound_statement { (return_statement return LIT ;) })))) }))))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (return_statement return LIT ;) })) (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) )))) )))) ;) (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 (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (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 { (return_statement return LIT ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (return_statement return LIT ;) })) }))) (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 { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT << LIT) )) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "uint FUN_00027ab0(int param_1,byte *param_2,int param_3)\n\n{\n  byte bVar1;\n  byte bVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  bVar1 = *(byte *)(*(int *)(param_1 + 4) + param_3);\n  uVar4 = (uint)bVar1;\n  bVar2 = param_2[4];\n  if (bVar2 == 3) {\n    if ((*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f) & 1) == 0) {\n      return 0;\n    }\n  }\n  else if (bVar2 < 4) {\n    if (bVar2 != 1) {\n      return 0;\n    }\n    if (*param_2 != uVar4) {\n      return 0;\n    }\n  }\n  else {\n    if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return 0;\n      }\n      if ((char)bVar1 < '\0') {\n        return 0;\n      }\n    }\n    if (uVar4 == 10) {\n      if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }\n    }\n    else if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }\n  }\n  if ((*(uint *)(param_2 + 4) & 0xffc000) == 0) {\n    return 1;\n  }\n  uVar3 = FUN_00027970(param_1,param_3,*(undefined4 *)(param_1 + 0x58));\n  uVar4 = (uint)(*(int *)(param_2 + 4) << 8) >> 0x16;\n  if ((uVar4 & 4) == 0) {\n    if (((uVar4 & 8) != 0) && ((uVar3 & 1) != 0)) {\n      return 0;\n    }\n  }\n  else {\n    if ((uVar3 & 1) == 0) {\n      return 0;\n    }\n    if ((uVar4 & 8) != 0) {\n      return 0;\n    }\n  }\n  if (((uVar4 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n    uVar3 = (uVar3 << 0x1c) >> 0x1f;\n    if ((uVar4 & 0x80) == 0) {\n      uVar3 = 1;\n    }\n  }\n  else {\n    uVar3 = 0;\n  }\n  return uVar3;\n}" (type_identifier "uint") (function_declarator "FUN_00027ab0(int param_1,byte *param_2,int param_3)" (identifier "FUN_00027ab0") (parameter_list "(int param_1,byte *param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "byte *param_2" (type_identifier "byte") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  bVar1 = *(byte *)(*(int *)(param_1 + 4) + param_3);\n  uVar4 = (uint)bVar1;\n  bVar2 = param_2[4];\n  if (bVar2 == 3) {\n    if ((*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f) & 1) == 0) {\n      return 0;\n    }\n  }\n  else if (bVar2 < 4) {\n    if (bVar2 != 1) {\n      return 0;\n    }\n    if (*param_2 != uVar4) {\n      return 0;\n    }\n  }\n  else {\n    if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return 0;\n      }\n      if ((char)bVar1 < '\0') {\n        return 0;\n      }\n    }\n    if (uVar4 == 10) {\n      if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }\n    }\n    else if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }\n  }\n  if ((*(uint *)(param_2 + 4) & 0xffc000) == 0) {\n    return 1;\n  }\n  uVar3 = FUN_00027970(param_1,param_3,*(undefined4 *)(param_1 + 0x58));\n  uVar4 = (uint)(*(int *)(param_2 + 4) << 8) >> 0x16;\n  if ((uVar4 & 4) == 0) {\n    if (((uVar4 & 8) != 0) && ((uVar3 & 1) != 0)) {\n      return 0;\n    }\n  }\n  else {\n    if ((uVar3 & 1) == 0) {\n      return 0;\n    }\n    if ((uVar4 & 8) != 0) {\n      return 0;\n    }\n  }\n  if (((uVar4 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n    uVar3 = (uVar3 << 0x1c) >> 0x1f;\n    if ((uVar4 & 0x80) == 0) {\n      uVar3 = 1;\n    }\n  }\n  else {\n    uVar3 = 0;\n  }\n  return uVar3;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (expression_statement "bVar1 = *(byte *)(*(int *)(param_1 + 4) + param_3);" (assignment_expression "bVar1 = *(byte *)(*(int *)(param_1 + 4) + param_3)" (identifier "bVar1") (= "=") (pointer_expression "*(byte *)(*(int *)(param_1 + 4) + param_3)" (* "*") (cast_expression "(byte *)(*(int *)(param_1 + 4) + param_3)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 4) + param_3)" (( "(") (binary_expression "*(int *)(param_1 + 4) + param_3" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (+ "+") (identifier "param_3")) () ")"))))) (; ";")) (expression_statement "uVar4 = (uint)bVar1;" (assignment_expression "uVar4 = (uint)bVar1" (identifier "uVar4") (= "=") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1"))) (; ";")) (expression_statement "bVar2 = param_2[4];" (assignment_expression "bVar2 = param_2[4]" (identifier "bVar2") (= "=") (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]"))) (; ";")) (if_statement "if (bVar2 == 3) {\n    if ((*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f) & 1) == 0) {\n      return 0;\n    }\n  }\n  else if (bVar2 < 4) {\n    if (bVar2 != 1) {\n      return 0;\n    }\n    if (*param_2 != uVar4) {\n      return 0;\n    }\n  }\n  else {\n    if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return 0;\n      }\n      if ((char)bVar1 < '\0') {\n        return 0;\n      }\n    }\n    if (uVar4 == 10) {\n      if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }\n    }\n    else if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }\n  }" (if "if") (parenthesized_expression "(bVar2 == 3)" (( "(") (binary_expression "bVar2 == 3" (identifier "bVar2") (== "==") (number_literal "3")) () ")")) (compound_statement "{\n    if ((*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f) & 1) == 0) {\n      return 0;\n    }\n  }" ({ "{") (if_statement "if ((*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f) & 1) == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "((*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f) & 1) == 0)" (( "(") (binary_expression "(*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f) & 1) == 0" (parenthesized_expression "(*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f) & 1)" (( "(") (binary_expression "*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f) & 1" (binary_expression "*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f)" (pointer_expression "*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4)" (* "*") (cast_expression "(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)param_2 + ((int)uVar4 >> 5) * 4)" (( "(") (binary_expression "*(int *)param_2 + ((int)uVar4 >> 5) * 4" (pointer_expression "*(int *)param_2" (* "*") (cast_expression "(int *)param_2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_2"))) (+ "+") (binary_expression "((int)uVar4 >> 5) * 4" (parenthesized_expression "((int)uVar4 >> 5)" (( "(") (binary_expression "(int)uVar4 >> 5" (cast_expression "(int)uVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar4")) (>> ">>") (number_literal "5")) () ")")) (* "*") (number_literal "4"))) () ")")))) (>> ">>") (parenthesized_expression "(uVar4 & 0x1f)" (( "(") (binary_expression "uVar4 & 0x1f" (identifier "uVar4") (& "&") (number_literal "0x1f")) () ")"))) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (else_clause "else if (bVar2 < 4) {\n    if (bVar2 != 1) {\n      return 0;\n    }\n    if (*param_2 != uVar4) {\n      return 0;\n    }\n  }\n  else {\n    if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return 0;\n      }\n      if ((char)bVar1 < '\0') {\n        return 0;\n      }\n    }\n    if (uVar4 == 10) {\n      if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }\n    }\n    else if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }\n  }" (else "else") (if_statement "if (bVar2 < 4) {\n    if (bVar2 != 1) {\n      return 0;\n    }\n    if (*param_2 != uVar4) {\n      return 0;\n    }\n  }\n  else {\n    if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return 0;\n      }\n      if ((char)bVar1 < '\0') {\n        return 0;\n      }\n    }\n    if (uVar4 == 10) {\n      if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }\n    }\n    else if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }\n  }" (if "if") (parenthesized_expression "(bVar2 < 4)" (( "(") (binary_expression "bVar2 < 4" (identifier "bVar2") (< "<") (number_literal "4")) () ")")) (compound_statement "{\n    if (bVar2 != 1) {\n      return 0;\n    }\n    if (*param_2 != uVar4) {\n      return 0;\n    }\n  }" ({ "{") (if_statement "if (bVar2 != 1) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(bVar2 != 1)" (( "(") (binary_expression "bVar2 != 1" (identifier "bVar2") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (*param_2 != uVar4) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(*param_2 != uVar4)" (( "(") (binary_expression "*param_2 != uVar4" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (!= "!=") (identifier "uVar4")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return 0;\n      }\n      if ((char)bVar1 < '\0') {\n        return 0;\n      }\n    }\n    if (uVar4 == 10) {\n      if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }\n    }\n    else if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }\n  }" (else "else") (compound_statement "{\n    if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return 0;\n      }\n      if ((char)bVar1 < '\0') {\n        return 0;\n      }\n    }\n    if (uVar4 == 10) {\n      if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }\n    }\n    else if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }\n  }" ({ "{") (if_statement "if (bVar2 != 5) {\n      if (bVar2 != 7) {\n        return 0;\n      }\n      if ((char)bVar1 < '\0') {\n        return 0;\n      }\n    }" (if "if") (parenthesized_expression "(bVar2 != 5)" (( "(") (binary_expression "bVar2 != 5" (identifier "bVar2") (!= "!=") (number_literal "5")) () ")")) (compound_statement "{\n      if (bVar2 != 7) {\n        return 0;\n      }\n      if ((char)bVar1 < '\0') {\n        return 0;\n      }\n    }" ({ "{") (if_statement "if (bVar2 != 7) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(bVar2 != 7)" (( "(") (binary_expression "bVar2 != 7" (identifier "bVar2") (!= "!=") (number_literal "7")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if ((char)bVar1 < '\0') {\n        return 0;\n      }" (if "if") (parenthesized_expression "((char)bVar1 < '\0')" (( "(") (binary_expression "(char)bVar1 < '\0'" (cast_expression "(char)bVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "bVar1")) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (if_statement "if (uVar4 == 10) {\n      if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }\n    }\n    else if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(uVar4 == 10)" (( "(") (binary_expression "uVar4 == 10" (identifier "uVar4") (== "==") (number_literal "10")) () ")")) (compound_statement "{\n      if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }\n    }" ({ "{") (if_statement "if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {\n        return 0;\n      }" (if "if") (parenthesized_expression "((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0)" (( "(") (binary_expression "(*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0" (parenthesized_expression "(*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40)" (( "(") (binary_expression "*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40" (pointer_expression "*(uint *)(*(int *)(param_1 + 0x54) + 0x80)" (* "*") (cast_expression "(uint *)(*(int *)(param_1 + 0x54) + 0x80)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x54) + 0x80)" (( "(") (binary_expression "*(int *)(param_1 + 0x54) + 0x80" (pointer_expression "*(int *)(param_1 + 0x54)" (* "*") (cast_expression "(int *)(param_1 + 0x54)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")")))) (+ "+") (number_literal "0x80")) () ")")))) (& "&") (number_literal "0x40")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (else_clause "else if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }" (else "else") (if_statement "if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {\n      return 0;\n    }" (if "if") (parenthesized_expression "((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0))" (( "(") (binary_expression "(uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)" (parenthesized_expression "(uVar4 == 0)" (( "(") (binary_expression "uVar4 == 0" (identifier "uVar4") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)" (( "(") (binary_expression "(*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0" (parenthesized_expression "(*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80)" (( "(") (binary_expression "*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80" (pointer_expression "*(uint *)(*(int *)(param_1 + 0x54) + 0x80)" (* "*") (cast_expression "(uint *)(*(int *)(param_1 + 0x54) + 0x80)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x54) + 0x80)" (( "(") (binary_expression "*(int *)(param_1 + 0x54) + 0x80" (pointer_expression "*(int *)(param_1 + 0x54)" (* "*") (cast_expression "(int *)(param_1 + 0x54)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")")))) (+ "+") (number_literal "0x80")) () ")")))) (& "&") (number_literal "0x80")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))))) (} "}")))))) (if_statement "if ((*(uint *)(param_2 + 4) & 0xffc000) == 0) {\n    return 1;\n  }" (if "if") (parenthesized_expression "((*(uint *)(param_2 + 4) & 0xffc000) == 0)" (( "(") (binary_expression "(*(uint *)(param_2 + 4) & 0xffc000) == 0" (parenthesized_expression "(*(uint *)(param_2 + 4) & 0xffc000)" (( "(") (binary_expression "*(uint *)(param_2 + 4) & 0xffc000" (pointer_expression "*(uint *)(param_2 + 4)" (* "*") (cast_expression "(uint *)(param_2 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (& "&") (number_literal "0xffc000")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 1;\n  }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "uVar3 = FUN_00027970(param_1,param_3,*(undefined4 *)(param_1 + 0x58));" (assignment_expression "uVar3 = FUN_00027970(param_1,param_3,*(undefined4 *)(param_1 + 0x58))" (identifier "uVar3") (= "=") (call_expression "FUN_00027970(param_1,param_3,*(undefined4 *)(param_1 + 0x58))" (identifier "FUN_00027970") (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")) () ")")))) () ")")))) (; ";")) (expression_statement "uVar4 = (uint)(*(int *)(param_2 + 4) << 8) >> 0x16;" (assignment_expression "uVar4 = (uint)(*(int *)(param_2 + 4) << 8) >> 0x16" (identifier "uVar4") (= "=") (binary_expression "(uint)(*(int *)(param_2 + 4) << 8) >> 0x16" (call_expression "(uint)(*(int *)(param_2 + 4) << 8)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(int *)(param_2 + 4) << 8)" (( "(") (binary_expression "*(int *)(param_2 + 4) << 8" (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (<< "<<") (number_literal "8")) () ")"))) (>> ">>") (number_literal "0x16"))) (; ";")) (if_statement "if ((uVar4 & 4) == 0) {\n    if (((uVar4 & 8) != 0) && ((uVar3 & 1) != 0)) {\n      return 0;\n    }\n  }\n  else {\n    if ((uVar3 & 1) == 0) {\n      return 0;\n    }\n    if ((uVar4 & 8) != 0) {\n      return 0;\n    }\n  }" (if "if") (parenthesized_expression "((uVar4 & 4) == 0)" (( "(") (binary_expression "(uVar4 & 4) == 0" (parenthesized_expression "(uVar4 & 4)" (( "(") (binary_expression "uVar4 & 4" (identifier "uVar4") (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (((uVar4 & 8) != 0) && ((uVar3 & 1) != 0)) {\n      return 0;\n    }\n  }" ({ "{") (if_statement "if (((uVar4 & 8) != 0) && ((uVar3 & 1) != 0)) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(((uVar4 & 8) != 0) && ((uVar3 & 1) != 0))" (( "(") (binary_expression "((uVar4 & 8) != 0) && ((uVar3 & 1) != 0)" (parenthesized_expression "((uVar4 & 8) != 0)" (( "(") (binary_expression "(uVar4 & 8) != 0" (parenthesized_expression "(uVar4 & 8)" (( "(") (binary_expression "uVar4 & 8" (identifier "uVar4") (& "&") (number_literal "8")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (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 "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if ((uVar3 & 1) == 0) {\n      return 0;\n    }\n    if ((uVar4 & 8) != 0) {\n      return 0;\n    }\n  }" (else "else") (compound_statement "{\n    if ((uVar3 & 1) == 0) {\n      return 0;\n    }\n    if ((uVar4 & 8) != 0) {\n      return 0;\n    }\n  }" ({ "{") (if_statement "if ((uVar3 & 1) == 0) {\n      return 0;\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 "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if ((uVar4 & 8) != 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "((uVar4 & 8) != 0)" (( "(") (binary_expression "(uVar4 & 8) != 0" (parenthesized_expression "(uVar4 & 8)" (( "(") (binary_expression "uVar4 & 8" (identifier "uVar4") (& "&") (number_literal "8")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")))) (if_statement "if (((uVar4 & 0x20) == 0) || ((uVar3 & 2) != 0)) {\n    uVar3 = (uVar3 << 0x1c) >> 0x1f;\n    if ((uVar4 & 0x80) == 0) {\n      uVar3 = 1;\n    }\n  }\n  else {\n    uVar3 = 0;\n  }" (if "if") (parenthesized_expression "(((uVar4 & 0x20) == 0) || ((uVar3 & 2) != 0))" (( "(") (binary_expression "((uVar4 & 0x20) == 0) || ((uVar3 & 2) != 0)" (parenthesized_expression "((uVar4 & 0x20) == 0)" (( "(") (binary_expression "(uVar4 & 0x20) == 0" (parenthesized_expression "(uVar4 & 0x20)" (( "(") (binary_expression "uVar4 & 0x20" (identifier "uVar4") (& "&") (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    uVar3 = (uVar3 << 0x1c) >> 0x1f;\n    if ((uVar4 & 0x80) == 0) {\n      uVar3 = 1;\n    }\n  }" ({ "{") (expression_statement "uVar3 = (uVar3 << 0x1c) >> 0x1f;" (assignment_expression "uVar3 = (uVar3 << 0x1c) >> 0x1f" (identifier "uVar3") (= "=") (binary_expression "(uVar3 << 0x1c) >> 0x1f" (parenthesized_expression "(uVar3 << 0x1c)" (( "(") (binary_expression "uVar3 << 0x1c" (identifier "uVar3") (<< "<<") (number_literal "0x1c")) () ")")) (>> ">>") (number_literal "0x1f"))) (; ";")) (if_statement "if ((uVar4 & 0x80) == 0) {\n      uVar3 = 1;\n    }" (if "if") (parenthesized_expression "((uVar4 & 0x80) == 0)" (( "(") (binary_expression "(uVar4 & 0x80) == 0" (parenthesized_expression "(uVar4 & 0x80)" (( "(") (binary_expression "uVar4 & 0x80" (identifier "uVar4") (& "&") (number_literal "0x80")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = 1;\n    }" ({ "{") (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" (identifier "uVar3") (= "=") (number_literal "1")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    uVar3 = 0;\n  }" (else "else") (compound_statement "{\n    uVar3 = 0;\n  }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (} "}")))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

/* WARNING: Removing unreachable block (ram,0x00027c00) */

type_1 function_1(type_2 *mctx,type_3 *node,type_4 idx)

{
  type_5 bVar1;
  type_5 var_1;
  type_6 var_4;
  type_1 _Var4;
  type_6 var_2;
  
  bVar1 = (mctx->input).mbs[idx];
  var_2 = (type_6)bVar1;
  var_1 = node->field_0x4;
  if (var_1 == 3) {
    if (((node->opr).sbcset[(int)var_2 >> 5] >> (var_2 & 0x1f) & 1) == 0) {
      return false;
    }
  }
  else if (var_1 < 4) {
    if (var_1 != 1) {
      return false;
    }
    if ((node->opr).c != var_2) {
      return false;
    }
  }
  else {
    if (var_1 != 5) {
      if (var_1 != 7) {
        return false;
      }
      if ((char)bVar1 < '\0') {
        return false;
      }
    }
    if (var_2 == 10) {
      if ((mctx->dfa->syntax & 0x40) == 0) {
        return false;
      }
    }
    else if ((var_2 == 0) && ((mctx->dfa->syntax & 0x80) != 0)) {
      return false;
    }
  }
  if ((*(type_6 *)&node->field_0x4 & 0xffc000) == 0) {
    return true;
  }
  var_4 = var_3(&mctx->input,idx,mctx->eflags);
  var_2 = (type_6)(*(int *)&node->field_0x4 << 8) >> 0x16;
  if ((var_2 & 4) == 0) {
    if (((var_2 & 8) != 0) && ((var_4 & 1) != 0)) {
      return false;
    }
  }
  else {
    if ((var_4 & 1) == 0) {
      return false;
    }
    if ((var_2 & 8) != 0) {
      return false;
    }
  }
  if (((var_2 & 0x20) == 0) || ((var_4 & 2) != 0)) {
    _Var4 = var_5((var_4 << 0x1c) >> 0x1f,0);
    if ((var_2 & 0x80) == 0) {
      _Var4 = true;
    }
  }
  else {
    _Var4 = false;
  }
  return _Var4;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) 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: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) right: (number_literal)))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier))) consequence: (compound_statement (return_statement (number_literal))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (return_statement (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) right: (number_literal))) right: (number_literal))))) consequence: (compound_statement (return_statement (number_literal))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (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))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (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))))))))) (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: (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: (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 (number_literal))))) alternative: (else_clause (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 (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 (return_statement (number_literal))))))) (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 (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) 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: (number_literal)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))))

/* WARNING: Removing unreachable block (ram,0x00027c00) */

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

{
  byte bVar1;
  byte bVar2;
  uint uVar3;
  uint uVar4;
  
  bVar1 = *(byte *)(*(int *)(param_1 + 4) + param_3);
  uVar4 = (uint)bVar1;
  bVar2 = param_2[4];
  if (bVar2 == 3) {
    if ((*(uint *)(*(int *)param_2 + ((int)uVar4 >> 5) * 4) >> (uVar4 & 0x1f) & 1) == 0) {
      return 0;
    }
  }
  else if (bVar2 < 4) {
    if (bVar2 != 1) {
      return 0;
    }
    if (*param_2 != uVar4) {
      return 0;
    }
  }
  else {
    if (bVar2 != 5) {
      if (bVar2 != 7) {
        return 0;
      }
      if ((char)bVar1 < '\0') {
        return 0;
      }
    }
    if (uVar4 == 10) {
      if ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x40) == 0) {
        return 0;
      }
    }
    else if ((uVar4 == 0) && ((*(uint *)(*(int *)(param_1 + 0x54) + 0x80) & 0x80) != 0)) {
      return 0;
    }
  }
  if ((*(uint *)(param_2 + 4) & 0xffc000) == 0) {
    return 1;
  }
  uVar3 = FUN_00027970(param_1,param_3,*(undefined4 *)(param_1 + 0x58));
  uVar4 = (uint)(*(int *)(param_2 + 4) << 8) >> 0x16;
  if ((uVar4 & 4) == 0) {
    if (((uVar4 & 8) != 0) && ((uVar3 & 1) != 0)) {
      return 0;
    }
  }
  else {
    if ((uVar3 & 1) == 0) {
      return 0;
    }
    if ((uVar4 & 8) != 0) {
      return 0;
    }
  }
  if (((uVar4 & 0x20) == 0) || ((uVar3 & 2) != 0)) {
    uVar3 = (uVar3 << 0x1c) >> 0x1f;
    if ((uVar4 & 0x80) == 0) {
      uVar3 = 1;
    }
  }
  else {
    uVar3 = 0;
  }
  return uVar3;
}

