
int assignment(char *string,int flags)

{
  int *piVar1;
  int iVar2;
  byte *pbVar3;
  int iVar4;
  uint uVar5;
  
  uVar5 = (uint)(byte)*string;
  piVar1 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();
  iVar4 = *piVar1;
  if ((*(ushort *)(iVar4 + uVar5 * 2) & 4) == 0) {
    if (uVar5 != 0x5f) {
      if ((flags & 1U) == 0) {
        return 0;
      }
      if (uVar5 != 0x5b) {
        return 0;
      }
LAB_0004100c:
      iVar2 = 0;
      goto LAB_00041010;
    }
  }
  else {
    if (uVar5 == 0) {
      return 0;
    }
    if (uVar5 == 0x3d) {
      return 0;
    }
    if (uVar5 == 0x5b) goto LAB_0004100c;
  }
  pbVar3 = (byte *)(string + 1);
  iVar2 = 0;
  do {
    if (uVar5 == 0x2b) {
      if (*pbVar3 == 0x3d) {
        return iVar2 + 1;
      }
      if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {
        return 0;
      }
    }
    else if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {
      return 0;
    }
    uVar5 = (uint)*pbVar3;
    iVar2 = iVar2 + 1;
    pbVar3 = pbVar3 + 1;
    if (uVar5 == 0) {
      return 0;
    }
    if (uVar5 == 0x3d) {
      return iVar2;
    }
  } while (uVar5 != 0x5b);
LAB_00041010:
  iVar4 = (*(code *)PTR_skipsubscript_00144ac8)(string,iVar2,(uint)(flags << 0x1e) >> 0x1f);
  if (string[iVar4] != ']') {
    return 0;
  }
  if (string[iVar4 + 1] == '+') {
    if ((string + iVar4)[2] != '=') {
      return 0;
    }
    return iVar4 + 2;
  }
  if (string[iVar4 + 1] != '=') {
    return 0;
  }
  return iVar4 + 1;
}



int assignment(byte *param_1,uint param_2)

{
  int *piVar1;
  int iVar2;
  byte *pbVar3;
  int iVar4;
  uint uVar5;
  
  uVar5 = (uint)*param_1;
  piVar1 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();
  iVar4 = *piVar1;
  if ((*(ushort *)(iVar4 + uVar5 * 2) & 4) == 0) {
    if (uVar5 != 0x5f) {
      if ((param_2 & 1) == 0) {
        return 0;
      }
      if (uVar5 != 0x5b) {
        return 0;
      }
LAB_0004100c:
      iVar2 = 0;
      goto LAB_00041010;
    }
  }
  else {
    if (uVar5 == 0) {
      return 0;
    }
    if (uVar5 == 0x3d) {
      return 0;
    }
    if (uVar5 == 0x5b) goto LAB_0004100c;
  }
  pbVar3 = param_1 + 1;
  iVar2 = 0;
  do {
    if (uVar5 == 0x2b) {
      if (*pbVar3 == 0x3d) {
        return iVar2 + 1;
      }
      if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {
        return 0;
      }
    }
    else if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {
      return 0;
    }
    uVar5 = (uint)*pbVar3;
    iVar2 = iVar2 + 1;
    pbVar3 = pbVar3 + 1;
    if (uVar5 == 0) {
      return 0;
    }
    if (uVar5 == 0x3d) {
      return iVar2;
    }
  } while (uVar5 != 0x5b);
LAB_00041010:
  iVar4 = (*(code *)PTR_skipsubscript_00144ac8)(param_1,iVar2,(param_2 << 0x1e) >> 0x1f);
  if (param_1[iVar4] != 0x5d) {
    return 0;
  }
  if (param_1[iVar4 + 1] == 0x2b) {
    if ((param_1 + iVar4)[2] != 0x3d) {
      return 0;
    }
    return iVar4 + 2;
  }
  if (param_1[iVar4 + 1] != 0x3d) {
    return 0;
  }
  return iVar4 + 1;
}


lui gp,0x11
addiu gp,gp,-0x49a0
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x6344(gp)
sw gp,0x10(sp)
sw s2,0x20(sp)
or s2,a0,zero
sw s1,0x1c(sp)
or s1,a1,zero
sw ra,0x24(sp)
sw s0,0x18(sp)
jalr t9
_lbu s0,0x0(a0)
lw a1,0x0(v0)
sll v0,s0,0x1
addu v0,a1,v0
lhu v0,0x0(v0)
andi v0,v0,0x4
bne v0,zero,0x00040f70
_lw gp,0x10(sp)
li v0,0x5f
beq s0,v0,0x00040f88
_addiu v1,s2,0x1
andi v0,s1,0x1
beq v0,zero,0x00040f54
_li v0,0x5b
beq s0,v0,0x0004100c
_or v0,zero,zero
or v0,zero,zero
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
beq s0,zero,0x00040f54
_li v0,0x3d
beq s0,v0,0x00040f54
_li v0,0x5b
beq s0,v0,0x00041008
_addiu v1,s2,0x1
or v0,zero,zero
li a3,0x2b
li t1,0x5f
li a2,0x3d
b 0x00040fdc
_li t0,0x5b
addu a0,a1,a0
lhu a0,0x0(a0)
andi a0,a0,0x800
bne a0,zero,0x00040fbc
_nop
bne s0,t1,0x00040f54
_nop
lbu s0,0x0(v1)
addiu v0,v0,0x1
beq s0,zero,0x00040f54
_addiu v1,v1,0x1
beq s0,a2,0x00040f5c
_lw ra,0x24(sp)
beq s0,t0,0x00041010
_lw t9,-0x7a78(gp)
bne s0,a3,0x00040fa0
_sll a0,s0,0x1
lb a0,0x0(v1)
beq a0,a2,0x00041068
_nop
lhu a0,0x56(a1)
andi a0,a0,0x800
bne a0,zero,0x00040fbc
_nop
b 0x00040f58
_or v0,zero,zero
or v0,zero,zero
lw t9,-0x7a78(gp)
ext a2,s1,0x1,0x1
or a1,v0,zero
jalr t9
_or a0,s2,zero
li a1,0x5d
addu a0,s2,v0
or v1,v0,zero
lb v0,0x0(a0)
bne v0,a1,0x00040f58
_or v0,zero,zero
addiu v0,v1,0x1
li a2,0x2b
addu s2,s2,v0
lb a1,0x0(s2)
bne a1,a2,0x00041070
_nop
lb a0,0x2(a0)
li v0,0x3d
bne a0,v0,0x00040f54
_addiu v0,v1,0x2
b 0x00040f5c
_lw ra,0x24(sp)
b 0x00040f58
_addiu v0,v0,0x1
li v1,0x3d
beq a1,v1,0x00040f5c
_lw ra,0x24(sp)
b 0x00040f5c
_or v0,zero,zero
(translation_unit "int assignment(byte *param_1,uint param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  uint uVar5;\n  \n  uVar5 = (uint)*param_1;\n  piVar1 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n  iVar4 = *piVar1;\n  if ((*(ushort *)(iVar4 + uVar5 * 2) & 4) == 0) {\n    if (uVar5 != 0x5f) {\n      if ((param_2 & 1) == 0) {\n        return 0;\n      }\n      if (uVar5 != 0x5b) {\n        return 0;\n      }\nLAB_0004100c:\n      iVar2 = 0;\n      goto LAB_00041010;\n    }\n  }\n  else {\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return 0;\n    }\n    if (uVar5 == 0x5b) goto LAB_0004100c;\n  }\n  pbVar3 = param_1 + 1;\n  iVar2 = 0;\n  do {\n    if (uVar5 == 0x2b) {\n      if (*pbVar3 == 0x3d) {\n        return iVar2 + 1;\n      }\n      if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {\n        return 0;\n      }\n    }\n    else if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {\n      return 0;\n    }\n    uVar5 = (uint)*pbVar3;\n    iVar2 = iVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return iVar2;\n    }\n  } while (uVar5 != 0x5b);\nLAB_00041010:\n  iVar4 = (*(code *)PTR_skipsubscript_00144ac8)(param_1,iVar2,(param_2 << 0x1e) >> 0x1f);\n  if (param_1[iVar4] != 0x5d) {\n    return 0;\n  }\n  if (param_1[iVar4 + 1] == 0x2b) {\n    if ((param_1 + iVar4)[2] != 0x3d) {\n      return 0;\n    }\n    return iVar4 + 2;\n  }\n  if (param_1[iVar4 + 1] != 0x3d) {\n    return 0;\n  }\n  return iVar4 + 1;\n}\n\n" (function_definition "int assignment(byte *param_1,uint param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  uint uVar5;\n  \n  uVar5 = (uint)*param_1;\n  piVar1 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n  iVar4 = *piVar1;\n  if ((*(ushort *)(iVar4 + uVar5 * 2) & 4) == 0) {\n    if (uVar5 != 0x5f) {\n      if ((param_2 & 1) == 0) {\n        return 0;\n      }\n      if (uVar5 != 0x5b) {\n        return 0;\n      }\nLAB_0004100c:\n      iVar2 = 0;\n      goto LAB_00041010;\n    }\n  }\n  else {\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return 0;\n    }\n    if (uVar5 == 0x5b) goto LAB_0004100c;\n  }\n  pbVar3 = param_1 + 1;\n  iVar2 = 0;\n  do {\n    if (uVar5 == 0x2b) {\n      if (*pbVar3 == 0x3d) {\n        return iVar2 + 1;\n      }\n      if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {\n        return 0;\n      }\n    }\n    else if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {\n      return 0;\n    }\n    uVar5 = (uint)*pbVar3;\n    iVar2 = iVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return iVar2;\n    }\n  } while (uVar5 != 0x5b);\nLAB_00041010:\n  iVar4 = (*(code *)PTR_skipsubscript_00144ac8)(param_1,iVar2,(param_2 << 0x1e) >> 0x1f);\n  if (param_1[iVar4] != 0x5d) {\n    return 0;\n  }\n  if (param_1[iVar4 + 1] == 0x2b) {\n    if ((param_1 + iVar4)[2] != 0x3d) {\n      return 0;\n    }\n    return iVar4 + 2;\n  }\n  if (param_1[iVar4 + 1] != 0x3d) {\n    return 0;\n  }\n  return iVar4 + 1;\n}" primitive_type (function_declarator "assignment(byte *param_1,uint param_2)" identifier (parameter_list "(byte *param_1,uint param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  uint uVar5;\n  \n  uVar5 = (uint)*param_1;\n  piVar1 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n  iVar4 = *piVar1;\n  if ((*(ushort *)(iVar4 + uVar5 * 2) & 4) == 0) {\n    if (uVar5 != 0x5f) {\n      if ((param_2 & 1) == 0) {\n        return 0;\n      }\n      if (uVar5 != 0x5b) {\n        return 0;\n      }\nLAB_0004100c:\n      iVar2 = 0;\n      goto LAB_00041010;\n    }\n  }\n  else {\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return 0;\n    }\n    if (uVar5 == 0x5b) goto LAB_0004100c;\n  }\n  pbVar3 = param_1 + 1;\n  iVar2 = 0;\n  do {\n    if (uVar5 == 0x2b) {\n      if (*pbVar3 == 0x3d) {\n        return iVar2 + 1;\n      }\n      if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {\n        return 0;\n      }\n    }\n    else if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {\n      return 0;\n    }\n    uVar5 = (uint)*pbVar3;\n    iVar2 = iVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return iVar2;\n    }\n  } while (uVar5 != 0x5b);\nLAB_00041010:\n  iVar4 = (*(code *)PTR_skipsubscript_00144ac8)(param_1,iVar2,(param_2 << 0x1e) >> 0x1f);\n  if (param_1[iVar4] != 0x5d) {\n    return 0;\n  }\n  if (param_1[iVar4 + 1] == 0x2b) {\n    if ((param_1 + iVar4)[2] != 0x3d) {\n      return 0;\n    }\n    return iVar4 + 2;\n  }\n  if (param_1[iVar4 + 1] != 0x3d) {\n    return 0;\n  }\n  return iVar4 + 1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (expression_statement "uVar5 = (uint)*param_1;" (assignment_expression "uVar5 = (uint)*param_1" identifier = (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "piVar1 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();" (assignment_expression "piVar1 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_001461fc)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_b_loc_001461fc)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_001461fc)" ( (pointer_expression "*(code *)PTR___ctype_b_loc_001461fc" * (cast_expression "(code *)PTR___ctype_b_loc_001461fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (if_statement "if ((*(ushort *)(iVar4 + uVar5 * 2) & 4) == 0) {\n    if (uVar5 != 0x5f) {\n      if ((param_2 & 1) == 0) {\n        return 0;\n      }\n      if (uVar5 != 0x5b) {\n        return 0;\n      }\nLAB_0004100c:\n      iVar2 = 0;\n      goto LAB_00041010;\n    }\n  }\n  else {\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return 0;\n    }\n    if (uVar5 == 0x5b) goto LAB_0004100c;\n  }" if (parenthesized_expression "((*(ushort *)(iVar4 + uVar5 * 2) & 4) == 0)" ( (binary_expression "(*(ushort *)(iVar4 + uVar5 * 2) & 4) == 0" (parenthesized_expression "(*(ushort *)(iVar4 + uVar5 * 2) & 4)" ( (binary_expression "*(ushort *)(iVar4 + uVar5 * 2) & 4" (pointer_expression "*(ushort *)(iVar4 + uVar5 * 2)" * (cast_expression "(ushort *)(iVar4 + uVar5 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + uVar5 * 2)" ( (binary_expression "iVar4 + uVar5 * 2" identifier + (binary_expression "uVar5 * 2" identifier * number_literal)) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    if (uVar5 != 0x5f) {\n      if ((param_2 & 1) == 0) {\n        return 0;\n      }\n      if (uVar5 != 0x5b) {\n        return 0;\n      }\nLAB_0004100c:\n      iVar2 = 0;\n      goto LAB_00041010;\n    }\n  }" { (if_statement "if (uVar5 != 0x5f) {\n      if ((param_2 & 1) == 0) {\n        return 0;\n      }\n      if (uVar5 != 0x5b) {\n        return 0;\n      }\nLAB_0004100c:\n      iVar2 = 0;\n      goto LAB_00041010;\n    }" if (parenthesized_expression "(uVar5 != 0x5f)" ( (binary_expression "uVar5 != 0x5f" identifier != number_literal) )) (compound_statement "{\n      if ((param_2 & 1) == 0) {\n        return 0;\n      }\n      if (uVar5 != 0x5b) {\n        return 0;\n      }\nLAB_0004100c:\n      iVar2 = 0;\n      goto LAB_00041010;\n    }" { (if_statement "if ((param_2 & 1) == 0) {\n        return 0;\n      }" if (parenthesized_expression "((param_2 & 1) == 0)" ( (binary_expression "(param_2 & 1) == 0" (parenthesized_expression "(param_2 & 1)" ( (binary_expression "param_2 & 1" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (uVar5 != 0x5b) {\n        return 0;\n      }" if (parenthesized_expression "(uVar5 != 0x5b)" ( (binary_expression "uVar5 != 0x5b" identifier != number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (labeled_statement "LAB_0004100c:\n      iVar2 = 0;" statement_identifier : (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;)) (goto_statement "goto LAB_00041010;" goto statement_identifier ;) })) }) (else_clause "else {\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return 0;\n    }\n    if (uVar5 == 0x5b) goto LAB_0004100c;\n  }" else (compound_statement "{\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return 0;\n    }\n    if (uVar5 == 0x5b) goto LAB_0004100c;\n  }" { (if_statement "if (uVar5 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (uVar5 == 0x3d) {\n      return 0;\n    }" if (parenthesized_expression "(uVar5 == 0x3d)" ( (binary_expression "uVar5 == 0x3d" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (uVar5 == 0x5b) goto LAB_0004100c;" if (parenthesized_expression "(uVar5 == 0x5b)" ( (binary_expression "uVar5 == 0x5b" identifier == number_literal) )) (goto_statement "goto LAB_0004100c;" goto statement_identifier ;)) }))) (expression_statement "pbVar3 = param_1 + 1;" (assignment_expression "pbVar3 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n    if (uVar5 == 0x2b) {\n      if (*pbVar3 == 0x3d) {\n        return iVar2 + 1;\n      }\n      if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {\n        return 0;\n      }\n    }\n    else if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {\n      return 0;\n    }\n    uVar5 = (uint)*pbVar3;\n    iVar2 = iVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return iVar2;\n    }\n  } while (uVar5 != 0x5b);" do (compound_statement "{\n    if (uVar5 == 0x2b) {\n      if (*pbVar3 == 0x3d) {\n        return iVar2 + 1;\n      }\n      if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {\n        return 0;\n      }\n    }\n    else if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {\n      return 0;\n    }\n    uVar5 = (uint)*pbVar3;\n    iVar2 = iVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return iVar2;\n    }\n  }" { (if_statement "if (uVar5 == 0x2b) {\n      if (*pbVar3 == 0x3d) {\n        return iVar2 + 1;\n      }\n      if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {\n        return 0;\n      }\n    }\n    else if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {\n      return 0;\n    }" if (parenthesized_expression "(uVar5 == 0x2b)" ( (binary_expression "uVar5 == 0x2b" identifier == number_literal) )) (compound_statement "{\n      if (*pbVar3 == 0x3d) {\n        return iVar2 + 1;\n      }\n      if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {\n        return 0;\n      }\n    }" { (if_statement "if (*pbVar3 == 0x3d) {\n        return iVar2 + 1;\n      }" if (parenthesized_expression "(*pbVar3 == 0x3d)" ( (binary_expression "*pbVar3 == 0x3d" (pointer_expression "*pbVar3" * identifier) == number_literal) )) (compound_statement "{\n        return iVar2 + 1;\n      }" { (return_statement "return iVar2 + 1;" return (binary_expression "iVar2 + 1" identifier + number_literal) ;) })) (if_statement "if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {\n        return 0;\n      }" if (parenthesized_expression "((*(ushort *)(iVar4 + 0x56) & 0x800) == 0)" ( (binary_expression "(*(ushort *)(iVar4 + 0x56) & 0x800) == 0" (parenthesized_expression "(*(ushort *)(iVar4 + 0x56) & 0x800)" ( (binary_expression "*(ushort *)(iVar4 + 0x56) & 0x800" (pointer_expression "*(ushort *)(iVar4 + 0x56)" * (cast_expression "(ushort *)(iVar4 + 0x56)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x56)" ( (binary_expression "iVar4 + 0x56" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {\n      return 0;\n    }" else (if_statement "if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {\n      return 0;\n    }" if (parenthesized_expression "(((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f))" ( (binary_expression "((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)" (parenthesized_expression "((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0)" ( (binary_expression "(*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0" (parenthesized_expression "(*(ushort *)(iVar4 + uVar5 * 2) & 0x800)" ( (binary_expression "*(ushort *)(iVar4 + uVar5 * 2) & 0x800" (pointer_expression "*(ushort *)(iVar4 + uVar5 * 2)" * (cast_expression "(ushort *)(iVar4 + uVar5 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + uVar5 * 2)" ( (binary_expression "iVar4 + uVar5 * 2" identifier + (binary_expression "uVar5 * 2" identifier * number_literal)) )))) & number_literal) )) == number_literal) )) && (parenthesized_expression "(uVar5 != 0x5f)" ( (binary_expression "uVar5 != 0x5f" identifier != number_literal) ))) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })))) (expression_statement "uVar5 = (uint)*pbVar3;" (assignment_expression "uVar5 = (uint)*pbVar3" identifier = (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (if_statement "if (uVar5 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (uVar5 == 0x3d) {\n      return iVar2;\n    }" if (parenthesized_expression "(uVar5 == 0x3d)" ( (binary_expression "uVar5 == 0x3d" identifier == number_literal) )) (compound_statement "{\n      return iVar2;\n    }" { (return_statement "return iVar2;" return identifier ;) })) }) while (parenthesized_expression "(uVar5 != 0x5b)" ( (binary_expression "uVar5 != 0x5b" identifier != number_literal) )) ;) (labeled_statement "LAB_00041010:\n  iVar4 = (*(code *)PTR_skipsubscript_00144ac8)(param_1,iVar2,(param_2 << 0x1e) >> 0x1f);" statement_identifier : (expression_statement "iVar4 = (*(code *)PTR_skipsubscript_00144ac8)(param_1,iVar2,(param_2 << 0x1e) >> 0x1f);" (assignment_expression "iVar4 = (*(code *)PTR_skipsubscript_00144ac8)(param_1,iVar2,(param_2 << 0x1e) >> 0x1f)" identifier = (call_expression "(*(code *)PTR_skipsubscript_00144ac8)(param_1,iVar2,(param_2 << 0x1e) >> 0x1f)" (parenthesized_expression "(*(code *)PTR_skipsubscript_00144ac8)" ( (pointer_expression "*(code *)PTR_skipsubscript_00144ac8" * (cast_expression "(code *)PTR_skipsubscript_00144ac8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,iVar2,(param_2 << 0x1e) >> 0x1f)" ( identifier , identifier , (binary_expression "(param_2 << 0x1e) >> 0x1f" (parenthesized_expression "(param_2 << 0x1e)" ( (binary_expression "param_2 << 0x1e" identifier << number_literal) )) >> number_literal) )))) ;)) (if_statement "if (param_1[iVar4] != 0x5d) {\n    return 0;\n  }" if (parenthesized_expression "(param_1[iVar4] != 0x5d)" ( (binary_expression "param_1[iVar4] != 0x5d" (subscript_expression "param_1[iVar4]" identifier [ identifier ]) != number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_1[iVar4 + 1] == 0x2b) {\n    if ((param_1 + iVar4)[2] != 0x3d) {\n      return 0;\n    }\n    return iVar4 + 2;\n  }" if (parenthesized_expression "(param_1[iVar4 + 1] == 0x2b)" ( (binary_expression "param_1[iVar4 + 1] == 0x2b" (subscript_expression "param_1[iVar4 + 1]" identifier [ (binary_expression "iVar4 + 1" identifier + number_literal) ]) == number_literal) )) (compound_statement "{\n    if ((param_1 + iVar4)[2] != 0x3d) {\n      return 0;\n    }\n    return iVar4 + 2;\n  }" { (if_statement "if ((param_1 + iVar4)[2] != 0x3d) {\n      return 0;\n    }" if (parenthesized_expression "((param_1 + iVar4)[2] != 0x3d)" ( (binary_expression "(param_1 + iVar4)[2] != 0x3d" (subscript_expression "(param_1 + iVar4)[2]" (parenthesized_expression "(param_1 + iVar4)" ( (binary_expression "param_1 + iVar4" identifier + identifier) )) [ number_literal ]) != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (return_statement "return iVar4 + 2;" return (binary_expression "iVar4 + 2" identifier + number_literal) ;) })) (if_statement "if (param_1[iVar4 + 1] != 0x3d) {\n    return 0;\n  }" if (parenthesized_expression "(param_1[iVar4 + 1] != 0x3d)" ( (binary_expression "param_1[iVar4 + 1] != 0x3d" (subscript_expression "param_1[iVar4 + 1]" identifier [ (binary_expression "iVar4 + 1" identifier + number_literal) ]) != number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (return_statement "return iVar4 + 1;" return (binary_expression "iVar4 + 1" identifier + number_literal) ;) })))
(translation_unit "int assignment(char *string,int flags)\n\n{\n  int *piVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  uint uVar5;\n  \n  uVar5 = (uint)(byte)*string;\n  piVar1 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n  iVar4 = *piVar1;\n  if ((*(ushort *)(iVar4 + uVar5 * 2) & 4) == 0) {\n    if (uVar5 != 0x5f) {\n      if ((flags & 1U) == 0) {\n        return 0;\n      }\n      if (uVar5 != 0x5b) {\n        return 0;\n      }\nLAB_0004100c:\n      iVar2 = 0;\n      goto LAB_00041010;\n    }\n  }\n  else {\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return 0;\n    }\n    if (uVar5 == 0x5b) goto LAB_0004100c;\n  }\n  pbVar3 = (byte *)(string + 1);\n  iVar2 = 0;\n  do {\n    if (uVar5 == 0x2b) {\n      if (*pbVar3 == 0x3d) {\n        return iVar2 + 1;\n      }\n      if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {\n        return 0;\n      }\n    }\n    else if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {\n      return 0;\n    }\n    uVar5 = (uint)*pbVar3;\n    iVar2 = iVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return iVar2;\n    }\n  } while (uVar5 != 0x5b);\nLAB_00041010:\n  iVar4 = (*(code *)PTR_skipsubscript_00144ac8)(string,iVar2,(uint)(flags << 0x1e) >> 0x1f);\n  if (string[iVar4] != ']') {\n    return 0;\n  }\n  if (string[iVar4 + 1] == '+') {\n    if ((string + iVar4)[2] != '=') {\n      return 0;\n    }\n    return iVar4 + 2;\n  }\n  if (string[iVar4 + 1] != '=') {\n    return 0;\n  }\n  return iVar4 + 1;\n}\n\n" (function_definition "int assignment(char *string,int flags)\n\n{\n  int *piVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  uint uVar5;\n  \n  uVar5 = (uint)(byte)*string;\n  piVar1 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n  iVar4 = *piVar1;\n  if ((*(ushort *)(iVar4 + uVar5 * 2) & 4) == 0) {\n    if (uVar5 != 0x5f) {\n      if ((flags & 1U) == 0) {\n        return 0;\n      }\n      if (uVar5 != 0x5b) {\n        return 0;\n      }\nLAB_0004100c:\n      iVar2 = 0;\n      goto LAB_00041010;\n    }\n  }\n  else {\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return 0;\n    }\n    if (uVar5 == 0x5b) goto LAB_0004100c;\n  }\n  pbVar3 = (byte *)(string + 1);\n  iVar2 = 0;\n  do {\n    if (uVar5 == 0x2b) {\n      if (*pbVar3 == 0x3d) {\n        return iVar2 + 1;\n      }\n      if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {\n        return 0;\n      }\n    }\n    else if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {\n      return 0;\n    }\n    uVar5 = (uint)*pbVar3;\n    iVar2 = iVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return iVar2;\n    }\n  } while (uVar5 != 0x5b);\nLAB_00041010:\n  iVar4 = (*(code *)PTR_skipsubscript_00144ac8)(string,iVar2,(uint)(flags << 0x1e) >> 0x1f);\n  if (string[iVar4] != ']') {\n    return 0;\n  }\n  if (string[iVar4 + 1] == '+') {\n    if ((string + iVar4)[2] != '=') {\n      return 0;\n    }\n    return iVar4 + 2;\n  }\n  if (string[iVar4 + 1] != '=') {\n    return 0;\n  }\n  return iVar4 + 1;\n}" primitive_type (function_declarator "assignment(char *string,int flags)" identifier (parameter_list "(char *string,int flags)" ( (parameter_declaration "char *string" primitive_type (pointer_declarator "*string" * identifier)) , (parameter_declaration "int flags" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  uint uVar5;\n  \n  uVar5 = (uint)(byte)*string;\n  piVar1 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n  iVar4 = *piVar1;\n  if ((*(ushort *)(iVar4 + uVar5 * 2) & 4) == 0) {\n    if (uVar5 != 0x5f) {\n      if ((flags & 1U) == 0) {\n        return 0;\n      }\n      if (uVar5 != 0x5b) {\n        return 0;\n      }\nLAB_0004100c:\n      iVar2 = 0;\n      goto LAB_00041010;\n    }\n  }\n  else {\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return 0;\n    }\n    if (uVar5 == 0x5b) goto LAB_0004100c;\n  }\n  pbVar3 = (byte *)(string + 1);\n  iVar2 = 0;\n  do {\n    if (uVar5 == 0x2b) {\n      if (*pbVar3 == 0x3d) {\n        return iVar2 + 1;\n      }\n      if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {\n        return 0;\n      }\n    }\n    else if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {\n      return 0;\n    }\n    uVar5 = (uint)*pbVar3;\n    iVar2 = iVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return iVar2;\n    }\n  } while (uVar5 != 0x5b);\nLAB_00041010:\n  iVar4 = (*(code *)PTR_skipsubscript_00144ac8)(string,iVar2,(uint)(flags << 0x1e) >> 0x1f);\n  if (string[iVar4] != ']') {\n    return 0;\n  }\n  if (string[iVar4 + 1] == '+') {\n    if ((string + iVar4)[2] != '=') {\n      return 0;\n    }\n    return iVar4 + 2;\n  }\n  if (string[iVar4 + 1] != '=') {\n    return 0;\n  }\n  return iVar4 + 1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (expression_statement "uVar5 = (uint)(byte)*string;" (assignment_expression "uVar5 = (uint)(byte)*string" identifier = (binary_expression "(uint)(byte)*string" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(byte)" ( identifier ))) * identifier)) ;) (expression_statement "piVar1 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();" (assignment_expression "piVar1 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_001461fc)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_b_loc_001461fc)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_001461fc)" ( (pointer_expression "*(code *)PTR___ctype_b_loc_001461fc" * (cast_expression "(code *)PTR___ctype_b_loc_001461fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (if_statement "if ((*(ushort *)(iVar4 + uVar5 * 2) & 4) == 0) {\n    if (uVar5 != 0x5f) {\n      if ((flags & 1U) == 0) {\n        return 0;\n      }\n      if (uVar5 != 0x5b) {\n        return 0;\n      }\nLAB_0004100c:\n      iVar2 = 0;\n      goto LAB_00041010;\n    }\n  }\n  else {\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return 0;\n    }\n    if (uVar5 == 0x5b) goto LAB_0004100c;\n  }" if (parenthesized_expression "((*(ushort *)(iVar4 + uVar5 * 2) & 4) == 0)" ( (binary_expression "(*(ushort *)(iVar4 + uVar5 * 2) & 4) == 0" (parenthesized_expression "(*(ushort *)(iVar4 + uVar5 * 2) & 4)" ( (binary_expression "*(ushort *)(iVar4 + uVar5 * 2) & 4" (pointer_expression "*(ushort *)(iVar4 + uVar5 * 2)" * (cast_expression "(ushort *)(iVar4 + uVar5 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + uVar5 * 2)" ( (binary_expression "iVar4 + uVar5 * 2" identifier + (binary_expression "uVar5 * 2" identifier * number_literal)) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    if (uVar5 != 0x5f) {\n      if ((flags & 1U) == 0) {\n        return 0;\n      }\n      if (uVar5 != 0x5b) {\n        return 0;\n      }\nLAB_0004100c:\n      iVar2 = 0;\n      goto LAB_00041010;\n    }\n  }" { (if_statement "if (uVar5 != 0x5f) {\n      if ((flags & 1U) == 0) {\n        return 0;\n      }\n      if (uVar5 != 0x5b) {\n        return 0;\n      }\nLAB_0004100c:\n      iVar2 = 0;\n      goto LAB_00041010;\n    }" if (parenthesized_expression "(uVar5 != 0x5f)" ( (binary_expression "uVar5 != 0x5f" identifier != number_literal) )) (compound_statement "{\n      if ((flags & 1U) == 0) {\n        return 0;\n      }\n      if (uVar5 != 0x5b) {\n        return 0;\n      }\nLAB_0004100c:\n      iVar2 = 0;\n      goto LAB_00041010;\n    }" { (if_statement "if ((flags & 1U) == 0) {\n        return 0;\n      }" if (parenthesized_expression "((flags & 1U) == 0)" ( (binary_expression "(flags & 1U) == 0" (parenthesized_expression "(flags & 1U)" ( (binary_expression "flags & 1U" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (uVar5 != 0x5b) {\n        return 0;\n      }" if (parenthesized_expression "(uVar5 != 0x5b)" ( (binary_expression "uVar5 != 0x5b" identifier != number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (labeled_statement "LAB_0004100c:\n      iVar2 = 0;" statement_identifier : (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;)) (goto_statement "goto LAB_00041010;" goto statement_identifier ;) })) }) (else_clause "else {\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return 0;\n    }\n    if (uVar5 == 0x5b) goto LAB_0004100c;\n  }" else (compound_statement "{\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return 0;\n    }\n    if (uVar5 == 0x5b) goto LAB_0004100c;\n  }" { (if_statement "if (uVar5 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (uVar5 == 0x3d) {\n      return 0;\n    }" if (parenthesized_expression "(uVar5 == 0x3d)" ( (binary_expression "uVar5 == 0x3d" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (uVar5 == 0x5b) goto LAB_0004100c;" if (parenthesized_expression "(uVar5 == 0x5b)" ( (binary_expression "uVar5 == 0x5b" identifier == number_literal) )) (goto_statement "goto LAB_0004100c;" goto statement_identifier ;)) }))) (expression_statement "pbVar3 = (byte *)(string + 1);" (assignment_expression "pbVar3 = (byte *)(string + 1)" identifier = (cast_expression "(byte *)(string + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(string + 1)" ( (binary_expression "string + 1" identifier + number_literal) )))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n    if (uVar5 == 0x2b) {\n      if (*pbVar3 == 0x3d) {\n        return iVar2 + 1;\n      }\n      if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {\n        return 0;\n      }\n    }\n    else if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {\n      return 0;\n    }\n    uVar5 = (uint)*pbVar3;\n    iVar2 = iVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return iVar2;\n    }\n  } while (uVar5 != 0x5b);" do (compound_statement "{\n    if (uVar5 == 0x2b) {\n      if (*pbVar3 == 0x3d) {\n        return iVar2 + 1;\n      }\n      if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {\n        return 0;\n      }\n    }\n    else if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {\n      return 0;\n    }\n    uVar5 = (uint)*pbVar3;\n    iVar2 = iVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return iVar2;\n    }\n  }" { (if_statement "if (uVar5 == 0x2b) {\n      if (*pbVar3 == 0x3d) {\n        return iVar2 + 1;\n      }\n      if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {\n        return 0;\n      }\n    }\n    else if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {\n      return 0;\n    }" if (parenthesized_expression "(uVar5 == 0x2b)" ( (binary_expression "uVar5 == 0x2b" identifier == number_literal) )) (compound_statement "{\n      if (*pbVar3 == 0x3d) {\n        return iVar2 + 1;\n      }\n      if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {\n        return 0;\n      }\n    }" { (if_statement "if (*pbVar3 == 0x3d) {\n        return iVar2 + 1;\n      }" if (parenthesized_expression "(*pbVar3 == 0x3d)" ( (binary_expression "*pbVar3 == 0x3d" (pointer_expression "*pbVar3" * identifier) == number_literal) )) (compound_statement "{\n        return iVar2 + 1;\n      }" { (return_statement "return iVar2 + 1;" return (binary_expression "iVar2 + 1" identifier + number_literal) ;) })) (if_statement "if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {\n        return 0;\n      }" if (parenthesized_expression "((*(ushort *)(iVar4 + 0x56) & 0x800) == 0)" ( (binary_expression "(*(ushort *)(iVar4 + 0x56) & 0x800) == 0" (parenthesized_expression "(*(ushort *)(iVar4 + 0x56) & 0x800)" ( (binary_expression "*(ushort *)(iVar4 + 0x56) & 0x800" (pointer_expression "*(ushort *)(iVar4 + 0x56)" * (cast_expression "(ushort *)(iVar4 + 0x56)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x56)" ( (binary_expression "iVar4 + 0x56" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {\n      return 0;\n    }" else (if_statement "if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {\n      return 0;\n    }" if (parenthesized_expression "(((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f))" ( (binary_expression "((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)" (parenthesized_expression "((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0)" ( (binary_expression "(*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0" (parenthesized_expression "(*(ushort *)(iVar4 + uVar5 * 2) & 0x800)" ( (binary_expression "*(ushort *)(iVar4 + uVar5 * 2) & 0x800" (pointer_expression "*(ushort *)(iVar4 + uVar5 * 2)" * (cast_expression "(ushort *)(iVar4 + uVar5 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + uVar5 * 2)" ( (binary_expression "iVar4 + uVar5 * 2" identifier + (binary_expression "uVar5 * 2" identifier * number_literal)) )))) & number_literal) )) == number_literal) )) && (parenthesized_expression "(uVar5 != 0x5f)" ( (binary_expression "uVar5 != 0x5f" identifier != number_literal) ))) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })))) (expression_statement "uVar5 = (uint)*pbVar3;" (assignment_expression "uVar5 = (uint)*pbVar3" identifier = (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (if_statement "if (uVar5 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (uVar5 == 0x3d) {\n      return iVar2;\n    }" if (parenthesized_expression "(uVar5 == 0x3d)" ( (binary_expression "uVar5 == 0x3d" identifier == number_literal) )) (compound_statement "{\n      return iVar2;\n    }" { (return_statement "return iVar2;" return identifier ;) })) }) while (parenthesized_expression "(uVar5 != 0x5b)" ( (binary_expression "uVar5 != 0x5b" identifier != number_literal) )) ;) (labeled_statement "LAB_00041010:\n  iVar4 = (*(code *)PTR_skipsubscript_00144ac8)(string,iVar2,(uint)(flags << 0x1e) >> 0x1f);" statement_identifier : (expression_statement "iVar4 = (*(code *)PTR_skipsubscript_00144ac8)(string,iVar2,(uint)(flags << 0x1e) >> 0x1f);" (assignment_expression "iVar4 = (*(code *)PTR_skipsubscript_00144ac8)(string,iVar2,(uint)(flags << 0x1e) >> 0x1f)" identifier = (call_expression "(*(code *)PTR_skipsubscript_00144ac8)(string,iVar2,(uint)(flags << 0x1e) >> 0x1f)" (parenthesized_expression "(*(code *)PTR_skipsubscript_00144ac8)" ( (pointer_expression "*(code *)PTR_skipsubscript_00144ac8" * (cast_expression "(code *)PTR_skipsubscript_00144ac8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(string,iVar2,(uint)(flags << 0x1e) >> 0x1f)" ( identifier , identifier , (binary_expression "(uint)(flags << 0x1e) >> 0x1f" (call_expression "(uint)(flags << 0x1e)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(flags << 0x1e)" ( (binary_expression "flags << 0x1e" identifier << number_literal) ))) >> number_literal) )))) ;)) (if_statement "if (string[iVar4] != ']') {\n    return 0;\n  }" if (parenthesized_expression "(string[iVar4] != ']')" ( (binary_expression "string[iVar4] != ']'" (subscript_expression "string[iVar4]" identifier [ identifier ]) != (char_literal "']'" ' character ')) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (string[iVar4 + 1] == '+') {\n    if ((string + iVar4)[2] != '=') {\n      return 0;\n    }\n    return iVar4 + 2;\n  }" if (parenthesized_expression "(string[iVar4 + 1] == '+')" ( (binary_expression "string[iVar4 + 1] == '+'" (subscript_expression "string[iVar4 + 1]" identifier [ (binary_expression "iVar4 + 1" identifier + number_literal) ]) == (char_literal "'+'" ' character ')) )) (compound_statement "{\n    if ((string + iVar4)[2] != '=') {\n      return 0;\n    }\n    return iVar4 + 2;\n  }" { (if_statement "if ((string + iVar4)[2] != '=') {\n      return 0;\n    }" if (parenthesized_expression "((string + iVar4)[2] != '=')" ( (binary_expression "(string + iVar4)[2] != '='" (subscript_expression "(string + iVar4)[2]" (parenthesized_expression "(string + iVar4)" ( (binary_expression "string + iVar4" identifier + identifier) )) [ number_literal ]) != (char_literal "'='" ' character ')) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (return_statement "return iVar4 + 2;" return (binary_expression "iVar4 + 2" identifier + number_literal) ;) })) (if_statement "if (string[iVar4 + 1] != '=') {\n    return 0;\n  }" if (parenthesized_expression "(string[iVar4 + 1] != '=')" ( (binary_expression "string[iVar4 + 1] != '='" (subscript_expression "string[iVar4 + 1]" identifier [ (binary_expression "iVar4 + 1" identifier + number_literal) ]) != (char_literal "'='" ' character ')) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (return_statement "return iVar4 + 1;" return (binary_expression "iVar4 + 1" identifier + number_literal) ;) })))
(translation_unit "int assignment(byte *param_1,uint param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  uint uVar5;\n  \n  uVar5 = (uint)*param_1;\n  piVar1 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n  iVar4 = *piVar1;\n  if ((*(ushort *)(iVar4 + uVar5 * 2) & 4) == 0) {\n    if (uVar5 != 0x5f) {\n      if ((param_2 & 1) == 0) {\n        return 0;\n      }\n      if (uVar5 != 0x5b) {\n        return 0;\n      }\nLAB_0004100c:\n      iVar2 = 0;\n      goto LAB_00041010;\n    }\n  }\n  else {\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return 0;\n    }\n    if (uVar5 == 0x5b) goto LAB_0004100c;\n  }\n  pbVar3 = param_1 + 1;\n  iVar2 = 0;\n  do {\n    if (uVar5 == 0x2b) {\n      if (*pbVar3 == 0x3d) {\n        return iVar2 + 1;\n      }\n      if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {\n        return 0;\n      }\n    }\n    else if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {\n      return 0;\n    }\n    uVar5 = (uint)*pbVar3;\n    iVar2 = iVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return iVar2;\n    }\n  } while (uVar5 != 0x5b);\nLAB_00041010:\n  iVar4 = (*(code *)PTR_skipsubscript_00144ac8)(param_1,iVar2,(param_2 << 0x1e) >> 0x1f);\n  if (param_1[iVar4] != 0x5d) {\n    return 0;\n  }\n  if (param_1[iVar4 + 1] == 0x2b) {\n    if ((param_1 + iVar4)[2] != 0x3d) {\n      return 0;\n    }\n    return iVar4 + 2;\n  }\n  if (param_1[iVar4 + 1] != 0x3d) {\n    return 0;\n  }\n  return iVar4 + 1;\n}\n\n" (function_definition "int assignment(byte *param_1,uint param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  uint uVar5;\n  \n  uVar5 = (uint)*param_1;\n  piVar1 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n  iVar4 = *piVar1;\n  if ((*(ushort *)(iVar4 + uVar5 * 2) & 4) == 0) {\n    if (uVar5 != 0x5f) {\n      if ((param_2 & 1) == 0) {\n        return 0;\n      }\n      if (uVar5 != 0x5b) {\n        return 0;\n      }\nLAB_0004100c:\n      iVar2 = 0;\n      goto LAB_00041010;\n    }\n  }\n  else {\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return 0;\n    }\n    if (uVar5 == 0x5b) goto LAB_0004100c;\n  }\n  pbVar3 = param_1 + 1;\n  iVar2 = 0;\n  do {\n    if (uVar5 == 0x2b) {\n      if (*pbVar3 == 0x3d) {\n        return iVar2 + 1;\n      }\n      if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {\n        return 0;\n      }\n    }\n    else if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {\n      return 0;\n    }\n    uVar5 = (uint)*pbVar3;\n    iVar2 = iVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return iVar2;\n    }\n  } while (uVar5 != 0x5b);\nLAB_00041010:\n  iVar4 = (*(code *)PTR_skipsubscript_00144ac8)(param_1,iVar2,(param_2 << 0x1e) >> 0x1f);\n  if (param_1[iVar4] != 0x5d) {\n    return 0;\n  }\n  if (param_1[iVar4 + 1] == 0x2b) {\n    if ((param_1 + iVar4)[2] != 0x3d) {\n      return 0;\n    }\n    return iVar4 + 2;\n  }\n  if (param_1[iVar4 + 1] != 0x3d) {\n    return 0;\n  }\n  return iVar4 + 1;\n}" primitive_type (function_declarator "assignment(byte *param_1,uint param_2)" identifier (parameter_list "(byte *param_1,uint param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  uint uVar5;\n  \n  uVar5 = (uint)*param_1;\n  piVar1 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n  iVar4 = *piVar1;\n  if ((*(ushort *)(iVar4 + uVar5 * 2) & 4) == 0) {\n    if (uVar5 != 0x5f) {\n      if ((param_2 & 1) == 0) {\n        return 0;\n      }\n      if (uVar5 != 0x5b) {\n        return 0;\n      }\nLAB_0004100c:\n      iVar2 = 0;\n      goto LAB_00041010;\n    }\n  }\n  else {\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return 0;\n    }\n    if (uVar5 == 0x5b) goto LAB_0004100c;\n  }\n  pbVar3 = param_1 + 1;\n  iVar2 = 0;\n  do {\n    if (uVar5 == 0x2b) {\n      if (*pbVar3 == 0x3d) {\n        return iVar2 + 1;\n      }\n      if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {\n        return 0;\n      }\n    }\n    else if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {\n      return 0;\n    }\n    uVar5 = (uint)*pbVar3;\n    iVar2 = iVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return iVar2;\n    }\n  } while (uVar5 != 0x5b);\nLAB_00041010:\n  iVar4 = (*(code *)PTR_skipsubscript_00144ac8)(param_1,iVar2,(param_2 << 0x1e) >> 0x1f);\n  if (param_1[iVar4] != 0x5d) {\n    return 0;\n  }\n  if (param_1[iVar4 + 1] == 0x2b) {\n    if ((param_1 + iVar4)[2] != 0x3d) {\n      return 0;\n    }\n    return iVar4 + 2;\n  }\n  if (param_1[iVar4 + 1] != 0x3d) {\n    return 0;\n  }\n  return iVar4 + 1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (expression_statement "uVar5 = (uint)*param_1;" (assignment_expression "uVar5 = (uint)*param_1" identifier = (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "piVar1 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();" (assignment_expression "piVar1 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_001461fc)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_b_loc_001461fc)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_001461fc)" ( (pointer_expression "*(code *)PTR___ctype_b_loc_001461fc" * (cast_expression "(code *)PTR___ctype_b_loc_001461fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (if_statement "if ((*(ushort *)(iVar4 + uVar5 * 2) & 4) == 0) {\n    if (uVar5 != 0x5f) {\n      if ((param_2 & 1) == 0) {\n        return 0;\n      }\n      if (uVar5 != 0x5b) {\n        return 0;\n      }\nLAB_0004100c:\n      iVar2 = 0;\n      goto LAB_00041010;\n    }\n  }\n  else {\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return 0;\n    }\n    if (uVar5 == 0x5b) goto LAB_0004100c;\n  }" if (parenthesized_expression "((*(ushort *)(iVar4 + uVar5 * 2) & 4) == 0)" ( (binary_expression "(*(ushort *)(iVar4 + uVar5 * 2) & 4) == 0" (parenthesized_expression "(*(ushort *)(iVar4 + uVar5 * 2) & 4)" ( (binary_expression "*(ushort *)(iVar4 + uVar5 * 2) & 4" (pointer_expression "*(ushort *)(iVar4 + uVar5 * 2)" * (cast_expression "(ushort *)(iVar4 + uVar5 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + uVar5 * 2)" ( (binary_expression "iVar4 + uVar5 * 2" identifier + (binary_expression "uVar5 * 2" identifier * number_literal)) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    if (uVar5 != 0x5f) {\n      if ((param_2 & 1) == 0) {\n        return 0;\n      }\n      if (uVar5 != 0x5b) {\n        return 0;\n      }\nLAB_0004100c:\n      iVar2 = 0;\n      goto LAB_00041010;\n    }\n  }" { (if_statement "if (uVar5 != 0x5f) {\n      if ((param_2 & 1) == 0) {\n        return 0;\n      }\n      if (uVar5 != 0x5b) {\n        return 0;\n      }\nLAB_0004100c:\n      iVar2 = 0;\n      goto LAB_00041010;\n    }" if (parenthesized_expression "(uVar5 != 0x5f)" ( (binary_expression "uVar5 != 0x5f" identifier != number_literal) )) (compound_statement "{\n      if ((param_2 & 1) == 0) {\n        return 0;\n      }\n      if (uVar5 != 0x5b) {\n        return 0;\n      }\nLAB_0004100c:\n      iVar2 = 0;\n      goto LAB_00041010;\n    }" { (if_statement "if ((param_2 & 1) == 0) {\n        return 0;\n      }" if (parenthesized_expression "((param_2 & 1) == 0)" ( (binary_expression "(param_2 & 1) == 0" (parenthesized_expression "(param_2 & 1)" ( (binary_expression "param_2 & 1" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (uVar5 != 0x5b) {\n        return 0;\n      }" if (parenthesized_expression "(uVar5 != 0x5b)" ( (binary_expression "uVar5 != 0x5b" identifier != number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (labeled_statement "LAB_0004100c:\n      iVar2 = 0;" statement_identifier : (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;)) (goto_statement "goto LAB_00041010;" goto statement_identifier ;) })) }) (else_clause "else {\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return 0;\n    }\n    if (uVar5 == 0x5b) goto LAB_0004100c;\n  }" else (compound_statement "{\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return 0;\n    }\n    if (uVar5 == 0x5b) goto LAB_0004100c;\n  }" { (if_statement "if (uVar5 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (uVar5 == 0x3d) {\n      return 0;\n    }" if (parenthesized_expression "(uVar5 == 0x3d)" ( (binary_expression "uVar5 == 0x3d" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (uVar5 == 0x5b) goto LAB_0004100c;" if (parenthesized_expression "(uVar5 == 0x5b)" ( (binary_expression "uVar5 == 0x5b" identifier == number_literal) )) (goto_statement "goto LAB_0004100c;" goto statement_identifier ;)) }))) (expression_statement "pbVar3 = param_1 + 1;" (assignment_expression "pbVar3 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n    if (uVar5 == 0x2b) {\n      if (*pbVar3 == 0x3d) {\n        return iVar2 + 1;\n      }\n      if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {\n        return 0;\n      }\n    }\n    else if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {\n      return 0;\n    }\n    uVar5 = (uint)*pbVar3;\n    iVar2 = iVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return iVar2;\n    }\n  } while (uVar5 != 0x5b);" do (compound_statement "{\n    if (uVar5 == 0x2b) {\n      if (*pbVar3 == 0x3d) {\n        return iVar2 + 1;\n      }\n      if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {\n        return 0;\n      }\n    }\n    else if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {\n      return 0;\n    }\n    uVar5 = (uint)*pbVar3;\n    iVar2 = iVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return iVar2;\n    }\n  }" { (if_statement "if (uVar5 == 0x2b) {\n      if (*pbVar3 == 0x3d) {\n        return iVar2 + 1;\n      }\n      if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {\n        return 0;\n      }\n    }\n    else if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {\n      return 0;\n    }" if (parenthesized_expression "(uVar5 == 0x2b)" ( (binary_expression "uVar5 == 0x2b" identifier == number_literal) )) (compound_statement "{\n      if (*pbVar3 == 0x3d) {\n        return iVar2 + 1;\n      }\n      if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {\n        return 0;\n      }\n    }" { (if_statement "if (*pbVar3 == 0x3d) {\n        return iVar2 + 1;\n      }" if (parenthesized_expression "(*pbVar3 == 0x3d)" ( (binary_expression "*pbVar3 == 0x3d" (pointer_expression "*pbVar3" * identifier) == number_literal) )) (compound_statement "{\n        return iVar2 + 1;\n      }" { (return_statement "return iVar2 + 1;" return (binary_expression "iVar2 + 1" identifier + number_literal) ;) })) (if_statement "if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {\n        return 0;\n      }" if (parenthesized_expression "((*(ushort *)(iVar4 + 0x56) & 0x800) == 0)" ( (binary_expression "(*(ushort *)(iVar4 + 0x56) & 0x800) == 0" (parenthesized_expression "(*(ushort *)(iVar4 + 0x56) & 0x800)" ( (binary_expression "*(ushort *)(iVar4 + 0x56) & 0x800" (pointer_expression "*(ushort *)(iVar4 + 0x56)" * (cast_expression "(ushort *)(iVar4 + 0x56)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x56)" ( (binary_expression "iVar4 + 0x56" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {\n      return 0;\n    }" else (if_statement "if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {\n      return 0;\n    }" if (parenthesized_expression "(((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f))" ( (binary_expression "((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)" (parenthesized_expression "((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0)" ( (binary_expression "(*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0" (parenthesized_expression "(*(ushort *)(iVar4 + uVar5 * 2) & 0x800)" ( (binary_expression "*(ushort *)(iVar4 + uVar5 * 2) & 0x800" (pointer_expression "*(ushort *)(iVar4 + uVar5 * 2)" * (cast_expression "(ushort *)(iVar4 + uVar5 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + uVar5 * 2)" ( (binary_expression "iVar4 + uVar5 * 2" identifier + (binary_expression "uVar5 * 2" identifier * number_literal)) )))) & number_literal) )) == number_literal) )) && (parenthesized_expression "(uVar5 != 0x5f)" ( (binary_expression "uVar5 != 0x5f" identifier != number_literal) ))) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })))) (expression_statement "uVar5 = (uint)*pbVar3;" (assignment_expression "uVar5 = (uint)*pbVar3" identifier = (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (if_statement "if (uVar5 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (uVar5 == 0x3d) {\n      return iVar2;\n    }" if (parenthesized_expression "(uVar5 == 0x3d)" ( (binary_expression "uVar5 == 0x3d" identifier == number_literal) )) (compound_statement "{\n      return iVar2;\n    }" { (return_statement "return iVar2;" return identifier ;) })) }) while (parenthesized_expression "(uVar5 != 0x5b)" ( (binary_expression "uVar5 != 0x5b" identifier != number_literal) )) ;) (labeled_statement "LAB_00041010:\n  iVar4 = (*(code *)PTR_skipsubscript_00144ac8)(param_1,iVar2,(param_2 << 0x1e) >> 0x1f);" statement_identifier : (expression_statement "iVar4 = (*(code *)PTR_skipsubscript_00144ac8)(param_1,iVar2,(param_2 << 0x1e) >> 0x1f);" (assignment_expression "iVar4 = (*(code *)PTR_skipsubscript_00144ac8)(param_1,iVar2,(param_2 << 0x1e) >> 0x1f)" identifier = (call_expression "(*(code *)PTR_skipsubscript_00144ac8)(param_1,iVar2,(param_2 << 0x1e) >> 0x1f)" (parenthesized_expression "(*(code *)PTR_skipsubscript_00144ac8)" ( (pointer_expression "*(code *)PTR_skipsubscript_00144ac8" * (cast_expression "(code *)PTR_skipsubscript_00144ac8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,iVar2,(param_2 << 0x1e) >> 0x1f)" ( identifier , identifier , (binary_expression "(param_2 << 0x1e) >> 0x1f" (parenthesized_expression "(param_2 << 0x1e)" ( (binary_expression "param_2 << 0x1e" identifier << number_literal) )) >> number_literal) )))) ;)) (if_statement "if (param_1[iVar4] != 0x5d) {\n    return 0;\n  }" if (parenthesized_expression "(param_1[iVar4] != 0x5d)" ( (binary_expression "param_1[iVar4] != 0x5d" (subscript_expression "param_1[iVar4]" identifier [ identifier ]) != number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_1[iVar4 + 1] == 0x2b) {\n    if ((param_1 + iVar4)[2] != 0x3d) {\n      return 0;\n    }\n    return iVar4 + 2;\n  }" if (parenthesized_expression "(param_1[iVar4 + 1] == 0x2b)" ( (binary_expression "param_1[iVar4 + 1] == 0x2b" (subscript_expression "param_1[iVar4 + 1]" identifier [ (binary_expression "iVar4 + 1" identifier + number_literal) ]) == number_literal) )) (compound_statement "{\n    if ((param_1 + iVar4)[2] != 0x3d) {\n      return 0;\n    }\n    return iVar4 + 2;\n  }" { (if_statement "if ((param_1 + iVar4)[2] != 0x3d) {\n      return 0;\n    }" if (parenthesized_expression "((param_1 + iVar4)[2] != 0x3d)" ( (binary_expression "(param_1 + iVar4)[2] != 0x3d" (subscript_expression "(param_1 + iVar4)[2]" (parenthesized_expression "(param_1 + iVar4)" ( (binary_expression "param_1 + iVar4" identifier + identifier) )) [ number_literal ]) != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (return_statement "return iVar4 + 2;" return (binary_expression "iVar4 + 2" identifier + number_literal) ;) })) (if_statement "if (param_1[iVar4 + 1] != 0x3d) {\n    return 0;\n  }" if (parenthesized_expression "(param_1[iVar4 + 1] != 0x3d)" ( (binary_expression "param_1[iVar4 + 1] != 0x3d" (subscript_expression "param_1[iVar4 + 1]" identifier [ (binary_expression "iVar4 + 1" identifier + number_literal) ]) != number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (return_statement "return iVar4 + 1;" return (binary_expression "iVar4 + 1" identifier + number_literal) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (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 + (binary_expression IDENT * LIT)) )))) & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (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 IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (return_statement return (binary_expression IDENT + 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 ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) & LIT) )) == LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (return_statement return LIT ;) })))) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , (binary_expression (parenthesized_expression ( (binary_expression IDENT << LIT) )) >> LIT) )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) != LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) [ LIT ]) != LIT) )) (compound_statement { (return_statement return LIT ;) })) (return_statement return (binary_expression IDENT + LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) != LIT) )) (compound_statement { (return_statement return LIT ;) })) (return_statement return (binary_expression IDENT + LIT) ;) })))
(function_definition "int assignment(byte *param_1,uint param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  uint uVar5;\n  \n  uVar5 = (uint)*param_1;\n  piVar1 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n  iVar4 = *piVar1;\n  if ((*(ushort *)(iVar4 + uVar5 * 2) & 4) == 0) {\n    if (uVar5 != 0x5f) {\n      if ((param_2 & 1) == 0) {\n        return 0;\n      }\n      if (uVar5 != 0x5b) {\n        return 0;\n      }\nLAB_0004100c:\n      iVar2 = 0;\n      goto LAB_00041010;\n    }\n  }\n  else {\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return 0;\n    }\n    if (uVar5 == 0x5b) goto LAB_0004100c;\n  }\n  pbVar3 = param_1 + 1;\n  iVar2 = 0;\n  do {\n    if (uVar5 == 0x2b) {\n      if (*pbVar3 == 0x3d) {\n        return iVar2 + 1;\n      }\n      if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {\n        return 0;\n      }\n    }\n    else if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {\n      return 0;\n    }\n    uVar5 = (uint)*pbVar3;\n    iVar2 = iVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return iVar2;\n    }\n  } while (uVar5 != 0x5b);\nLAB_00041010:\n  iVar4 = (*(code *)PTR_skipsubscript_00144ac8)(param_1,iVar2,(param_2 << 0x1e) >> 0x1f);\n  if (param_1[iVar4] != 0x5d) {\n    return 0;\n  }\n  if (param_1[iVar4 + 1] == 0x2b) {\n    if ((param_1 + iVar4)[2] != 0x3d) {\n      return 0;\n    }\n    return iVar4 + 2;\n  }\n  if (param_1[iVar4 + 1] != 0x3d) {\n    return 0;\n  }\n  return iVar4 + 1;\n}" (primitive_type "int") (function_declarator "assignment(byte *param_1,uint param_2)" (identifier "assignment") (parameter_list "(byte *param_1,uint param_2)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  uint uVar5;\n  \n  uVar5 = (uint)*param_1;\n  piVar1 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();\n  iVar4 = *piVar1;\n  if ((*(ushort *)(iVar4 + uVar5 * 2) & 4) == 0) {\n    if (uVar5 != 0x5f) {\n      if ((param_2 & 1) == 0) {\n        return 0;\n      }\n      if (uVar5 != 0x5b) {\n        return 0;\n      }\nLAB_0004100c:\n      iVar2 = 0;\n      goto LAB_00041010;\n    }\n  }\n  else {\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return 0;\n    }\n    if (uVar5 == 0x5b) goto LAB_0004100c;\n  }\n  pbVar3 = param_1 + 1;\n  iVar2 = 0;\n  do {\n    if (uVar5 == 0x2b) {\n      if (*pbVar3 == 0x3d) {\n        return iVar2 + 1;\n      }\n      if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {\n        return 0;\n      }\n    }\n    else if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {\n      return 0;\n    }\n    uVar5 = (uint)*pbVar3;\n    iVar2 = iVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return iVar2;\n    }\n  } while (uVar5 != 0x5b);\nLAB_00041010:\n  iVar4 = (*(code *)PTR_skipsubscript_00144ac8)(param_1,iVar2,(param_2 << 0x1e) >> 0x1f);\n  if (param_1[iVar4] != 0x5d) {\n    return 0;\n  }\n  if (param_1[iVar4 + 1] == 0x2b) {\n    if ((param_1 + iVar4)[2] != 0x3d) {\n      return 0;\n    }\n    return iVar4 + 2;\n  }\n  if (param_1[iVar4 + 1] != 0x3d) {\n    return 0;\n  }\n  return iVar4 + 1;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (expression_statement "uVar5 = (uint)*param_1;" (assignment_expression "uVar5 = (uint)*param_1" (identifier "uVar5") (= "=") (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "param_1"))) (; ";")) (expression_statement "piVar1 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();" (assignment_expression "piVar1 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)()" (identifier "piVar1") (= "=") (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_001461fc)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___ctype_b_loc_001461fc)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_001461fc)" (( "(") (pointer_expression "*(code *)PTR___ctype_b_loc_001461fc" (* "*") (cast_expression "(code *)PTR___ctype_b_loc_001461fc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___ctype_b_loc_001461fc"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" (identifier "iVar4") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (if_statement "if ((*(ushort *)(iVar4 + uVar5 * 2) & 4) == 0) {\n    if (uVar5 != 0x5f) {\n      if ((param_2 & 1) == 0) {\n        return 0;\n      }\n      if (uVar5 != 0x5b) {\n        return 0;\n      }\nLAB_0004100c:\n      iVar2 = 0;\n      goto LAB_00041010;\n    }\n  }\n  else {\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return 0;\n    }\n    if (uVar5 == 0x5b) goto LAB_0004100c;\n  }" (if "if") (parenthesized_expression "((*(ushort *)(iVar4 + uVar5 * 2) & 4) == 0)" (( "(") (binary_expression "(*(ushort *)(iVar4 + uVar5 * 2) & 4) == 0" (parenthesized_expression "(*(ushort *)(iVar4 + uVar5 * 2) & 4)" (( "(") (binary_expression "*(ushort *)(iVar4 + uVar5 * 2) & 4" (pointer_expression "*(ushort *)(iVar4 + uVar5 * 2)" (* "*") (cast_expression "(ushort *)(iVar4 + uVar5 * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + uVar5 * 2)" (( "(") (binary_expression "iVar4 + uVar5 * 2" (identifier "iVar4") (+ "+") (binary_expression "uVar5 * 2" (identifier "uVar5") (* "*") (number_literal "2"))) () ")")))) (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (uVar5 != 0x5f) {\n      if ((param_2 & 1) == 0) {\n        return 0;\n      }\n      if (uVar5 != 0x5b) {\n        return 0;\n      }\nLAB_0004100c:\n      iVar2 = 0;\n      goto LAB_00041010;\n    }\n  }" ({ "{") (if_statement "if (uVar5 != 0x5f) {\n      if ((param_2 & 1) == 0) {\n        return 0;\n      }\n      if (uVar5 != 0x5b) {\n        return 0;\n      }\nLAB_0004100c:\n      iVar2 = 0;\n      goto LAB_00041010;\n    }" (if "if") (parenthesized_expression "(uVar5 != 0x5f)" (( "(") (binary_expression "uVar5 != 0x5f" (identifier "uVar5") (!= "!=") (number_literal "0x5f")) () ")")) (compound_statement "{\n      if ((param_2 & 1) == 0) {\n        return 0;\n      }\n      if (uVar5 != 0x5b) {\n        return 0;\n      }\nLAB_0004100c:\n      iVar2 = 0;\n      goto LAB_00041010;\n    }" ({ "{") (if_statement "if ((param_2 & 1) == 0) {\n        return 0;\n      }" (if "if") (parenthesized_expression "((param_2 & 1) == 0)" (( "(") (binary_expression "(param_2 & 1) == 0" (parenthesized_expression "(param_2 & 1)" (( "(") (binary_expression "param_2 & 1" (identifier "param_2") (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (uVar5 != 0x5b) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(uVar5 != 0x5b)" (( "(") (binary_expression "uVar5 != 0x5b" (identifier "uVar5") (!= "!=") (number_literal "0x5b")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (labeled_statement "LAB_0004100c:\n      iVar2 = 0;" (statement_identifier "LAB_0004100c") (: ":") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";"))) (goto_statement "goto LAB_00041010;" (goto "goto") (statement_identifier "LAB_00041010") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return 0;\n    }\n    if (uVar5 == 0x5b) goto LAB_0004100c;\n  }" (else "else") (compound_statement "{\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return 0;\n    }\n    if (uVar5 == 0x5b) goto LAB_0004100c;\n  }" ({ "{") (if_statement "if (uVar5 == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(uVar5 == 0)" (( "(") (binary_expression "uVar5 == 0" (identifier "uVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (uVar5 == 0x3d) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(uVar5 == 0x3d)" (( "(") (binary_expression "uVar5 == 0x3d" (identifier "uVar5") (== "==") (number_literal "0x3d")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (uVar5 == 0x5b) goto LAB_0004100c;" (if "if") (parenthesized_expression "(uVar5 == 0x5b)" (( "(") (binary_expression "uVar5 == 0x5b" (identifier "uVar5") (== "==") (number_literal "0x5b")) () ")")) (goto_statement "goto LAB_0004100c;" (goto "goto") (statement_identifier "LAB_0004100c") (; ";"))) (} "}")))) (expression_statement "pbVar3 = param_1 + 1;" (assignment_expression "pbVar3 = param_1 + 1" (identifier "pbVar3") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    if (uVar5 == 0x2b) {\n      if (*pbVar3 == 0x3d) {\n        return iVar2 + 1;\n      }\n      if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {\n        return 0;\n      }\n    }\n    else if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {\n      return 0;\n    }\n    uVar5 = (uint)*pbVar3;\n    iVar2 = iVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return iVar2;\n    }\n  } while (uVar5 != 0x5b);" (do "do") (compound_statement "{\n    if (uVar5 == 0x2b) {\n      if (*pbVar3 == 0x3d) {\n        return iVar2 + 1;\n      }\n      if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {\n        return 0;\n      }\n    }\n    else if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {\n      return 0;\n    }\n    uVar5 = (uint)*pbVar3;\n    iVar2 = iVar2 + 1;\n    pbVar3 = pbVar3 + 1;\n    if (uVar5 == 0) {\n      return 0;\n    }\n    if (uVar5 == 0x3d) {\n      return iVar2;\n    }\n  }" ({ "{") (if_statement "if (uVar5 == 0x2b) {\n      if (*pbVar3 == 0x3d) {\n        return iVar2 + 1;\n      }\n      if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {\n        return 0;\n      }\n    }\n    else if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(uVar5 == 0x2b)" (( "(") (binary_expression "uVar5 == 0x2b" (identifier "uVar5") (== "==") (number_literal "0x2b")) () ")")) (compound_statement "{\n      if (*pbVar3 == 0x3d) {\n        return iVar2 + 1;\n      }\n      if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {\n        return 0;\n      }\n    }" ({ "{") (if_statement "if (*pbVar3 == 0x3d) {\n        return iVar2 + 1;\n      }" (if "if") (parenthesized_expression "(*pbVar3 == 0x3d)" (( "(") (binary_expression "*pbVar3 == 0x3d" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (== "==") (number_literal "0x3d")) () ")")) (compound_statement "{\n        return iVar2 + 1;\n      }" ({ "{") (return_statement "return iVar2 + 1;" (return "return") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1")) (; ";")) (} "}"))) (if_statement "if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {\n        return 0;\n      }" (if "if") (parenthesized_expression "((*(ushort *)(iVar4 + 0x56) & 0x800) == 0)" (( "(") (binary_expression "(*(ushort *)(iVar4 + 0x56) & 0x800) == 0" (parenthesized_expression "(*(ushort *)(iVar4 + 0x56) & 0x800)" (( "(") (binary_expression "*(ushort *)(iVar4 + 0x56) & 0x800" (pointer_expression "*(ushort *)(iVar4 + 0x56)" (* "*") (cast_expression "(ushort *)(iVar4 + 0x56)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x56)" (( "(") (binary_expression "iVar4 + 0x56" (identifier "iVar4") (+ "+") (number_literal "0x56")) () ")")))) (& "&") (number_literal "0x800")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (else_clause "else if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {\n      return 0;\n    }" (else "else") (if_statement "if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f))" (( "(") (binary_expression "((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)" (parenthesized_expression "((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0)" (( "(") (binary_expression "(*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0" (parenthesized_expression "(*(ushort *)(iVar4 + uVar5 * 2) & 0x800)" (( "(") (binary_expression "*(ushort *)(iVar4 + uVar5 * 2) & 0x800" (pointer_expression "*(ushort *)(iVar4 + uVar5 * 2)" (* "*") (cast_expression "(ushort *)(iVar4 + uVar5 * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + uVar5 * 2)" (( "(") (binary_expression "iVar4 + uVar5 * 2" (identifier "iVar4") (+ "+") (binary_expression "uVar5 * 2" (identifier "uVar5") (* "*") (number_literal "2"))) () ")")))) (& "&") (number_literal "0x800")) () ")")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(uVar5 != 0x5f)" (( "(") (binary_expression "uVar5 != 0x5f" (identifier "uVar5") (!= "!=") (number_literal "0x5f")) () ")"))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))))) (expression_statement "uVar5 = (uint)*pbVar3;" (assignment_expression "uVar5 = (uint)*pbVar3" (identifier "uVar5") (= "=") (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar3"))) (; ";")) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + 1" (identifier "pbVar3") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (uVar5 == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(uVar5 == 0)" (( "(") (binary_expression "uVar5 == 0" (identifier "uVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (uVar5 == 0x3d) {\n      return iVar2;\n    }" (if "if") (parenthesized_expression "(uVar5 == 0x3d)" (( "(") (binary_expression "uVar5 == 0x3d" (identifier "uVar5") (== "==") (number_literal "0x3d")) () ")")) (compound_statement "{\n      return iVar2;\n    }" ({ "{") (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(uVar5 != 0x5b)" (( "(") (binary_expression "uVar5 != 0x5b" (identifier "uVar5") (!= "!=") (number_literal "0x5b")) () ")")) (; ";")) (labeled_statement "LAB_00041010:\n  iVar4 = (*(code *)PTR_skipsubscript_00144ac8)(param_1,iVar2,(param_2 << 0x1e) >> 0x1f);" (statement_identifier "LAB_00041010") (: ":") (expression_statement "iVar4 = (*(code *)PTR_skipsubscript_00144ac8)(param_1,iVar2,(param_2 << 0x1e) >> 0x1f);" (assignment_expression "iVar4 = (*(code *)PTR_skipsubscript_00144ac8)(param_1,iVar2,(param_2 << 0x1e) >> 0x1f)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_skipsubscript_00144ac8)(param_1,iVar2,(param_2 << 0x1e) >> 0x1f)" (parenthesized_expression "(*(code *)PTR_skipsubscript_00144ac8)" (( "(") (pointer_expression "*(code *)PTR_skipsubscript_00144ac8" (* "*") (cast_expression "(code *)PTR_skipsubscript_00144ac8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_skipsubscript_00144ac8"))) () ")")) (argument_list "(param_1,iVar2,(param_2 << 0x1e) >> 0x1f)" (( "(") (identifier "param_1") (, ",") (identifier "iVar2") (, ",") (binary_expression "(param_2 << 0x1e) >> 0x1f" (parenthesized_expression "(param_2 << 0x1e)" (( "(") (binary_expression "param_2 << 0x1e" (identifier "param_2") (<< "<<") (number_literal "0x1e")) () ")")) (>> ">>") (number_literal "0x1f")) () ")")))) (; ";"))) (if_statement "if (param_1[iVar4] != 0x5d) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_1[iVar4] != 0x5d)" (( "(") (binary_expression "param_1[iVar4] != 0x5d" (subscript_expression "param_1[iVar4]" (identifier "param_1") ([ "[") (identifier "iVar4") (] "]")) (!= "!=") (number_literal "0x5d")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_1[iVar4 + 1] == 0x2b) {\n    if ((param_1 + iVar4)[2] != 0x3d) {\n      return 0;\n    }\n    return iVar4 + 2;\n  }" (if "if") (parenthesized_expression "(param_1[iVar4 + 1] == 0x2b)" (( "(") (binary_expression "param_1[iVar4 + 1] == 0x2b" (subscript_expression "param_1[iVar4 + 1]" (identifier "param_1") ([ "[") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1")) (] "]")) (== "==") (number_literal "0x2b")) () ")")) (compound_statement "{\n    if ((param_1 + iVar4)[2] != 0x3d) {\n      return 0;\n    }\n    return iVar4 + 2;\n  }" ({ "{") (if_statement "if ((param_1 + iVar4)[2] != 0x3d) {\n      return 0;\n    }" (if "if") (parenthesized_expression "((param_1 + iVar4)[2] != 0x3d)" (( "(") (binary_expression "(param_1 + iVar4)[2] != 0x3d" (subscript_expression "(param_1 + iVar4)[2]" (parenthesized_expression "(param_1 + iVar4)" (( "(") (binary_expression "param_1 + iVar4" (identifier "param_1") (+ "+") (identifier "iVar4")) () ")")) ([ "[") (number_literal "2") (] "]")) (!= "!=") (number_literal "0x3d")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (return_statement "return iVar4 + 2;" (return "return") (binary_expression "iVar4 + 2" (identifier "iVar4") (+ "+") (number_literal "2")) (; ";")) (} "}"))) (if_statement "if (param_1[iVar4 + 1] != 0x3d) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_1[iVar4 + 1] != 0x3d)" (( "(") (binary_expression "param_1[iVar4 + 1] != 0x3d" (subscript_expression "param_1[iVar4 + 1]" (identifier "param_1") ([ "[") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1")) (] "]")) (!= "!=") (number_literal "0x3d")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (return_statement "return iVar4 + 1;" (return "return") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1")) (; ";")) (} "}")))

int function_1(char *var_1,int var_4)

{
  int *piVar1;
  int var_5;
  type_1 *var_6;
  int var_2;
  type_2 var_3;
  
  var_3 = (type_2)(type_1)*var_1;
  piVar1 = (int *)(*(type_3 *)PTR___ctype_b_loc_001461fc)();
  var_2 = *piVar1;
  if ((*(type_4 *)(var_2 + var_3 * 2) & 4) == 0) {
    if (var_3 != 0x5f) {
      if ((var_4 & 1U) == 0) {
        return 0;
      }
      if (var_3 != 0x5b) {
        return 0;
      }
LAB_0004100c:
      var_5 = 0;
      goto LAB_00041010;
    }
  }
  else {
    if (var_3 == 0) {
      return 0;
    }
    if (var_3 == 0x3d) {
      return 0;
    }
    if (var_3 == 0x5b) goto LAB_0004100c;
  }
  var_6 = (type_1 *)(var_1 + 1);
  var_5 = 0;
  do {
    if (var_3 == 0x2b) {
      if (*var_6 == 0x3d) {
        return var_5 + 1;
      }
      if ((*(type_4 *)(var_2 + 0x56) & 0x800) == 0) {
        return 0;
      }
    }
    else if (((*(type_4 *)(var_2 + var_3 * 2) & 0x800) == 0) && (var_3 != 0x5f)) {
      return 0;
    }
    var_3 = (type_2)*var_6;
    var_5 = var_5 + 1;
    var_6 = var_6 + 1;
    if (var_3 == 0) {
      return 0;
    }
    if (var_3 == 0x3d) {
      return var_5;
    }
  } while (var_3 != 0x5b);
LAB_00041010:
  var_2 = (*(type_3 *)PTR_skipsubscript_00144ac8)(var_1,var_5,(type_2)(var_4 << 0x1e) >> 0x1f);
  if (var_1[var_2] != ']') {
    return 0;
  }
  if (var_1[var_2 + 1] == '+') {
    if ((var_1 + var_2)[2] != '=') {
      return 0;
    }
    return var_2 + 2;
  }
  if (var_1[var_2 + 1] != '=') {
    return 0;
  }
  return var_2 + 1;
}


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

int MASKED(byte *param_1,uint param_2)

{
  int *piVar1;
  int iVar2;
  byte *pbVar3;
  int iVar4;
  uint uVar5;
  
  uVar5 = (uint)*param_1;
  piVar1 = (int *)(*(code *)PTR___ctype_b_loc_001461fc)();
  iVar4 = *piVar1;
  if ((*(ushort *)(iVar4 + uVar5 * 2) & 4) == 0) {
    if (uVar5 != 0x5f) {
      if ((param_2 & 1) == 0) {
        return 0;
      }
      if (uVar5 != 0x5b) {
        return 0;
      }
LAB_0004100c:
      iVar2 = 0;
      goto LAB_00041010;
    }
  }
  else {
    if (uVar5 == 0) {
      return 0;
    }
    if (uVar5 == 0x3d) {
      return 0;
    }
    if (uVar5 == 0x5b) goto LAB_0004100c;
  }
  pbVar3 = param_1 + 1;
  iVar2 = 0;
  do {
    if (uVar5 == 0x2b) {
      if (*pbVar3 == 0x3d) {
        return iVar2 + 1;
      }
      if ((*(ushort *)(iVar4 + 0x56) & 0x800) == 0) {
        return 0;
      }
    }
    else if (((*(ushort *)(iVar4 + uVar5 * 2) & 0x800) == 0) && (uVar5 != 0x5f)) {
      return 0;
    }
    uVar5 = (uint)*pbVar3;
    iVar2 = iVar2 + 1;
    pbVar3 = pbVar3 + 1;
    if (uVar5 == 0) {
      return 0;
    }
    if (uVar5 == 0x3d) {
      return iVar2;
    }
  } while (uVar5 != 0x5b);
LAB_00041010:
  iVar4 = (*(code *)PTR_skipsubscript_00144ac8)(param_1,iVar2,(param_2 << 0x1e) >> 0x1f);
  if (param_1[iVar4] != 0x5d) {
    return 0;
  }
  if (param_1[iVar4 + 1] == 0x2b) {
    if ((param_1 + iVar4)[2] != 0x3d) {
      return 0;
    }
    return iVar4 + 2;
  }
  if (param_1[iVar4 + 1] != 0x3d) {
    return 0;
  }
  return iVar4 + 1;
}

