
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int include_symbol(Symbol *sym)

{
  int iVar1;
  uint uVar2;
  
  if (sym == (Symbol *)0x0) {
    return 0;
  }
  if (sym->type != SymIdentifier) {
    uVar2 = 1;
    if (((sym->type == SymToken) && (uVar2 = 0, sym->token_type == 0x10e)) &&
       (sym->source != (char *)0x0)) {
      uVar2 = (uint)symbol_map >> 4 & 1;
    }
    return uVar2;
  }
  if ((*sym->name == '_') && ((symbol_map & 8U) == 0)) {
    return 0;
  }
  iVar1 = sym->arity;
  if (sym->storage == StaticStorage) {
    uVar2 = 6;
    if (iVar1 == -1) goto LAB_0001725c;
    uVar2 = 4;
  }
  else {
    uVar2 = 0;
    if (iVar1 == -1) {
      uVar2 = (uint)(sym->storage != AutoStorage) * 2;
      goto LAB_0001725c;
    }
  }
  if (-1 < iVar1) {
    uVar2 = uVar2 | 1;
  }
LAB_0001725c:
  if (sym->source == (char *)0x0) {
    uVar2 = uVar2 | 0x20;
  }
  return (uint)((symbol_map & uVar2) == uVar2);
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

uint FUN_00017200(int param_1)

{
  int iVar1;
  uint uVar2;
  
  if (param_1 == 0) {
    return 0;
  }
  if (*(int *)(param_1 + 0xc) != 2) {
    uVar2 = 1;
    if (((*(int *)(param_1 + 0xc) == 1) && (uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e)) &&
       (*(int *)(param_1 + 0x28) != 0)) {
      uVar2 = DAT_00036afc >> 4 & 1;
    }
    return uVar2;
  }
  if ((**(char **)(param_1 + 0x10) == '_') && ((DAT_00036afc & 8) == 0)) {
    return 0;
  }
  iVar1 = *(int *)(param_1 + 0x40);
  if (*(int *)(param_1 + 0x3c) == 2) {
    uVar2 = 6;
    if (iVar1 == -1) goto LAB_0001725c;
    uVar2 = 4;
  }
  else {
    uVar2 = 0;
    if (iVar1 == -1) {
      uVar2 = (uint)(*(int *)(param_1 + 0x3c) != 3) * 2;
      goto LAB_0001725c;
    }
  }
  if (-1 < iVar1) {
    uVar2 = uVar2 | 1;
  }
LAB_0001725c:
  if (*(int *)(param_1 + 0x28) == 0) {
    uVar2 = uVar2 | 0x20;
  }
  return (uint)((DAT_00036afc & uVar2) == uVar2);
}


PUSH ESI
PUSH EBX
MOV EDX,dword ptr [ESP + 0xc]
CALL 0x00012800
ADD EBX,0x1ec65
TEST EDX,EDX
JZ 0x000172c0
MOV ECX,dword ptr [EDX + 0xc]
CMP ECX,0x2
JZ 0x00017230
MOV EAX,0x1
CMP ECX,0x1
JZ 0x00017270
POP EBX
POP ESI
RET
LEA EAX,[EBX + 0xc8c]
MOV ECX,dword ptr [EAX]
MOV EAX,dword ptr [EDX + 0x10]
CMP byte ptr [EAX],0x5f
JZ 0x00017298
MOV ESI,dword ptr [EDX + 0x3c]
MOV EBX,dword ptr [EDX + 0x40]
CMP ESI,0x2
JZ 0x000172a8
XOR EAX,EAX
CMP EBX,-0x1
JZ 0x000172d0
MOV ESI,EAX
OR ESI,0x1
TEST EBX,EBX
CMOVNS EAX,ESI
MOV EBX,dword ptr [EDX + 0x28]
TEST EBX,EBX
JZ 0x000172c8
AND ECX,EAX
POP EBX
POP ESI
CMP ECX,EAX
SETZ AL
MOVZX EAX,AL
RET
XOR EAX,EAX
CMP dword ptr [EDX + 0x24],0x10e
JNZ 0x0001722b
MOV EDX,dword ptr [EDX + 0x28]
TEST EDX,EDX
JZ 0x0001722b
LEA EAX,[EBX + 0xc8c]
MOV EAX,dword ptr [EAX]
SHR EAX,0x4
AND EAX,0x1
JMP 0x0001722b
MOV EAX,ECX
AND EAX,0x8
JNZ 0x00017240
JMP 0x0001722b
MOV EAX,0x6
CMP EBX,-0x1
JZ 0x0001725c
MOV EAX,0x4
JMP 0x00017252
XOR EAX,EAX
POP EBX
POP ESI
RET
OR EAX,0x20
JMP 0x00017263
XOR EAX,EAX
CMP ESI,0x3
SETNZ AL
ADD EAX,EAX
JMP 0x0001725c
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint FUN_00017200(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if (*(int *)(param_1 + 0xc) != 2) {\n    uVar2 = 1;\n    if (((*(int *)(param_1 + 0xc) == 1) && (uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e)) &&\n       (*(int *)(param_1 + 0x28) != 0)) {\n      uVar2 = DAT_00036afc >> 4 & 1;\n    }\n    return uVar2;\n  }\n  if ((**(char **)(param_1 + 0x10) == '_') && ((DAT_00036afc & 8) == 0)) {\n    return 0;\n  }\n  iVar1 = *(int *)(param_1 + 0x40);\n  if (*(int *)(param_1 + 0x3c) == 2) {\n    uVar2 = 6;\n    if (iVar1 == -1) goto LAB_0001725c;\n    uVar2 = 4;\n  }\n  else {\n    uVar2 = 0;\n    if (iVar1 == -1) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x3c) != 3) * 2;\n      goto LAB_0001725c;\n    }\n  }\n  if (-1 < iVar1) {\n    uVar2 = uVar2 | 1;\n  }\nLAB_0001725c:\n  if (*(int *)(param_1 + 0x28) == 0) {\n    uVar2 = uVar2 | 0x20;\n  }\n  return (uint)((DAT_00036afc & uVar2) == uVar2);\n}\n\n" comment (function_definition "uint FUN_00017200(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if (*(int *)(param_1 + 0xc) != 2) {\n    uVar2 = 1;\n    if (((*(int *)(param_1 + 0xc) == 1) && (uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e)) &&\n       (*(int *)(param_1 + 0x28) != 0)) {\n      uVar2 = DAT_00036afc >> 4 & 1;\n    }\n    return uVar2;\n  }\n  if ((**(char **)(param_1 + 0x10) == '_') && ((DAT_00036afc & 8) == 0)) {\n    return 0;\n  }\n  iVar1 = *(int *)(param_1 + 0x40);\n  if (*(int *)(param_1 + 0x3c) == 2) {\n    uVar2 = 6;\n    if (iVar1 == -1) goto LAB_0001725c;\n    uVar2 = 4;\n  }\n  else {\n    uVar2 = 0;\n    if (iVar1 == -1) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x3c) != 3) * 2;\n      goto LAB_0001725c;\n    }\n  }\n  if (-1 < iVar1) {\n    uVar2 = uVar2 | 1;\n  }\nLAB_0001725c:\n  if (*(int *)(param_1 + 0x28) == 0) {\n    uVar2 = uVar2 | 0x20;\n  }\n  return (uint)((DAT_00036afc & uVar2) == uVar2);\n}" type_identifier (function_declarator "FUN_00017200(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if (*(int *)(param_1 + 0xc) != 2) {\n    uVar2 = 1;\n    if (((*(int *)(param_1 + 0xc) == 1) && (uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e)) &&\n       (*(int *)(param_1 + 0x28) != 0)) {\n      uVar2 = DAT_00036afc >> 4 & 1;\n    }\n    return uVar2;\n  }\n  if ((**(char **)(param_1 + 0x10) == '_') && ((DAT_00036afc & 8) == 0)) {\n    return 0;\n  }\n  iVar1 = *(int *)(param_1 + 0x40);\n  if (*(int *)(param_1 + 0x3c) == 2) {\n    uVar2 = 6;\n    if (iVar1 == -1) goto LAB_0001725c;\n    uVar2 = 4;\n  }\n  else {\n    uVar2 = 0;\n    if (iVar1 == -1) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x3c) != 3) * 2;\n      goto LAB_0001725c;\n    }\n  }\n  if (-1 < iVar1) {\n    uVar2 = uVar2 | 1;\n  }\nLAB_0001725c:\n  if (*(int *)(param_1 + 0x28) == 0) {\n    uVar2 = uVar2 | 0x20;\n  }\n  return (uint)((DAT_00036afc & uVar2) == uVar2);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (if_statement "if (param_1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (*(int *)(param_1 + 0xc) != 2) {\n    uVar2 = 1;\n    if (((*(int *)(param_1 + 0xc) == 1) && (uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e)) &&\n       (*(int *)(param_1 + 0x28) != 0)) {\n      uVar2 = DAT_00036afc >> 4 & 1;\n    }\n    return uVar2;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 2)" ( (binary_expression "*(int *)(param_1 + 0xc) != 2" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    uVar2 = 1;\n    if (((*(int *)(param_1 + 0xc) == 1) && (uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e)) &&\n       (*(int *)(param_1 + 0x28) != 0)) {\n      uVar2 = DAT_00036afc >> 4 & 1;\n    }\n    return uVar2;\n  }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (if_statement "if (((*(int *)(param_1 + 0xc) == 1) && (uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e)) &&\n       (*(int *)(param_1 + 0x28) != 0)) {\n      uVar2 = DAT_00036afc >> 4 & 1;\n    }" if (parenthesized_expression "(((*(int *)(param_1 + 0xc) == 1) && (uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e)) &&\n       (*(int *)(param_1 + 0x28) != 0))" ( (binary_expression "((*(int *)(param_1 + 0xc) == 1) && (uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e)) &&\n       (*(int *)(param_1 + 0x28) != 0)" (parenthesized_expression "((*(int *)(param_1 + 0xc) == 1) && (uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e))" ( (binary_expression "(*(int *)(param_1 + 0xc) == 1) && (uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e)" (parenthesized_expression "(*(int *)(param_1 + 0xc) == 1)" ( (binary_expression "*(int *)(param_1 + 0xc) == 1" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) == number_literal) )) && (parenthesized_expression "(uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e)" ( (comma_expression "uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e" (assignment_expression "uVar2 = 0" identifier = number_literal) , (binary_expression "*(int *)(param_1 + 0x24) == 0x10e" (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) == number_literal)) ))) )) && (parenthesized_expression "(*(int *)(param_1 + 0x28) != 0)" ( (binary_expression "*(int *)(param_1 + 0x28) != 0" (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n      uVar2 = DAT_00036afc >> 4 & 1;\n    }" { (expression_statement "uVar2 = DAT_00036afc >> 4 & 1;" (assignment_expression "uVar2 = DAT_00036afc >> 4 & 1" identifier = (binary_expression "DAT_00036afc >> 4 & 1" (binary_expression "DAT_00036afc >> 4" identifier >> number_literal) & number_literal)) ;) })) (return_statement "return uVar2;" return identifier ;) })) (if_statement "if ((**(char **)(param_1 + 0x10) == '_') && ((DAT_00036afc & 8) == 0)) {\n    return 0;\n  }" if (parenthesized_expression "((**(char **)(param_1 + 0x10) == '_') && ((DAT_00036afc & 8) == 0))" ( (binary_expression "(**(char **)(param_1 + 0x10) == '_') && ((DAT_00036afc & 8) == 0)" (parenthesized_expression "(**(char **)(param_1 + 0x10) == '_')" ( (binary_expression "**(char **)(param_1 + 0x10) == '_'" (pointer_expression "**(char **)(param_1 + 0x10)" * (pointer_expression "*(char **)(param_1 + 0x10)" * (cast_expression "(char **)(param_1 + 0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) == (char_literal "'_'" ' character ')) )) && (parenthesized_expression "((DAT_00036afc & 8) == 0)" ( (binary_expression "(DAT_00036afc & 8) == 0" (parenthesized_expression "(DAT_00036afc & 8)" ( (binary_expression "DAT_00036afc & 8" identifier & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = *(int *)(param_1 + 0x40);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x40)" identifier = (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + 0x3c) == 2) {\n    uVar2 = 6;\n    if (iVar1 == -1) goto LAB_0001725c;\n    uVar2 = 4;\n  }\n  else {\n    uVar2 = 0;\n    if (iVar1 == -1) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x3c) != 3) * 2;\n      goto LAB_0001725c;\n    }\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x3c) == 2)" ( (binary_expression "*(int *)(param_1 + 0x3c) == 2" (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    uVar2 = 6;\n    if (iVar1 == -1) goto LAB_0001725c;\n    uVar2 = 4;\n  }" { (expression_statement "uVar2 = 6;" (assignment_expression "uVar2 = 6" identifier = number_literal) ;) (if_statement "if (iVar1 == -1) goto LAB_0001725c;" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (goto_statement "goto LAB_0001725c;" goto statement_identifier ;)) (expression_statement "uVar2 = 4;" (assignment_expression "uVar2 = 4" identifier = number_literal) ;) }) (else_clause "else {\n    uVar2 = 0;\n    if (iVar1 == -1) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x3c) != 3) * 2;\n      goto LAB_0001725c;\n    }\n  }" else (compound_statement "{\n    uVar2 = 0;\n    if (iVar1 == -1) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x3c) != 3) * 2;\n      goto LAB_0001725c;\n    }\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (if_statement "if (iVar1 == -1) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x3c) != 3) * 2;\n      goto LAB_0001725c;\n    }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n      uVar2 = (uint)(*(int *)(param_1 + 0x3c) != 3) * 2;\n      goto LAB_0001725c;\n    }" { (expression_statement "uVar2 = (uint)(*(int *)(param_1 + 0x3c) != 3) * 2;" (assignment_expression "uVar2 = (uint)(*(int *)(param_1 + 0x3c) != 3) * 2" identifier = (binary_expression "(uint)(*(int *)(param_1 + 0x3c) != 3) * 2" (call_expression "(uint)(*(int *)(param_1 + 0x3c) != 3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 0x3c) != 3)" ( (binary_expression "*(int *)(param_1 + 0x3c) != 3" (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) != number_literal) ))) * number_literal)) ;) (goto_statement "goto LAB_0001725c;" goto statement_identifier ;) })) }))) (if_statement "if (-1 < iVar1) {\n    uVar2 = uVar2 | 1;\n  }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n    uVar2 = uVar2 | 1;\n  }" { (expression_statement "uVar2 = uVar2 | 1;" (assignment_expression "uVar2 = uVar2 | 1" identifier = (binary_expression "uVar2 | 1" identifier | number_literal)) ;) })) (labeled_statement "LAB_0001725c:\n  if (*(int *)(param_1 + 0x28) == 0) {\n    uVar2 = uVar2 | 0x20;\n  }" statement_identifier : (if_statement "if (*(int *)(param_1 + 0x28) == 0) {\n    uVar2 = uVar2 | 0x20;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x28) == 0)" ( (binary_expression "*(int *)(param_1 + 0x28) == 0" (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    uVar2 = uVar2 | 0x20;\n  }" { (expression_statement "uVar2 = uVar2 | 0x20;" (assignment_expression "uVar2 = uVar2 | 0x20" identifier = (binary_expression "uVar2 | 0x20" identifier | number_literal)) ;) }))) (return_statement "return (uint)((DAT_00036afc & uVar2) == uVar2);" return (call_expression "(uint)((DAT_00036afc & uVar2) == uVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((DAT_00036afc & uVar2) == uVar2)" ( (binary_expression "(DAT_00036afc & uVar2) == uVar2" (parenthesized_expression "(DAT_00036afc & uVar2)" ( (binary_expression "DAT_00036afc & uVar2" identifier & identifier) )) == identifier) ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint include_symbol(Symbol *sym)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  if (sym == (Symbol *)0x0) {\n    return 0;\n  }\n  if (sym->type != SymIdentifier) {\n    uVar2 = 1;\n    if (((sym->type == SymToken) && (uVar2 = 0, sym->token_type == 0x10e)) &&\n       (sym->source != (char *)0x0)) {\n      uVar2 = (uint)symbol_map >> 4 & 1;\n    }\n    return uVar2;\n  }\n  if ((*sym->name == '_') && ((symbol_map & 8U) == 0)) {\n    return 0;\n  }\n  iVar1 = sym->arity;\n  if (sym->storage == StaticStorage) {\n    uVar2 = 6;\n    if (iVar1 == -1) goto LAB_0001725c;\n    uVar2 = 4;\n  }\n  else {\n    uVar2 = 0;\n    if (iVar1 == -1) {\n      uVar2 = (uint)(sym->storage != AutoStorage) * 2;\n      goto LAB_0001725c;\n    }\n  }\n  if (-1 < iVar1) {\n    uVar2 = uVar2 | 1;\n  }\nLAB_0001725c:\n  if (sym->source == (char *)0x0) {\n    uVar2 = uVar2 | 0x20;\n  }\n  return (uint)((symbol_map & uVar2) == uVar2);\n}\n\n" comment (function_definition "int include_symbol(Symbol *sym)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  if (sym == (Symbol *)0x0) {\n    return 0;\n  }\n  if (sym->type != SymIdentifier) {\n    uVar2 = 1;\n    if (((sym->type == SymToken) && (uVar2 = 0, sym->token_type == 0x10e)) &&\n       (sym->source != (char *)0x0)) {\n      uVar2 = (uint)symbol_map >> 4 & 1;\n    }\n    return uVar2;\n  }\n  if ((*sym->name == '_') && ((symbol_map & 8U) == 0)) {\n    return 0;\n  }\n  iVar1 = sym->arity;\n  if (sym->storage == StaticStorage) {\n    uVar2 = 6;\n    if (iVar1 == -1) goto LAB_0001725c;\n    uVar2 = 4;\n  }\n  else {\n    uVar2 = 0;\n    if (iVar1 == -1) {\n      uVar2 = (uint)(sym->storage != AutoStorage) * 2;\n      goto LAB_0001725c;\n    }\n  }\n  if (-1 < iVar1) {\n    uVar2 = uVar2 | 1;\n  }\nLAB_0001725c:\n  if (sym->source == (char *)0x0) {\n    uVar2 = uVar2 | 0x20;\n  }\n  return (uint)((symbol_map & uVar2) == uVar2);\n}" primitive_type (function_declarator "include_symbol(Symbol *sym)" identifier (parameter_list "(Symbol *sym)" ( (parameter_declaration "Symbol *sym" type_identifier (pointer_declarator "*sym" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  if (sym == (Symbol *)0x0) {\n    return 0;\n  }\n  if (sym->type != SymIdentifier) {\n    uVar2 = 1;\n    if (((sym->type == SymToken) && (uVar2 = 0, sym->token_type == 0x10e)) &&\n       (sym->source != (char *)0x0)) {\n      uVar2 = (uint)symbol_map >> 4 & 1;\n    }\n    return uVar2;\n  }\n  if ((*sym->name == '_') && ((symbol_map & 8U) == 0)) {\n    return 0;\n  }\n  iVar1 = sym->arity;\n  if (sym->storage == StaticStorage) {\n    uVar2 = 6;\n    if (iVar1 == -1) goto LAB_0001725c;\n    uVar2 = 4;\n  }\n  else {\n    uVar2 = 0;\n    if (iVar1 == -1) {\n      uVar2 = (uint)(sym->storage != AutoStorage) * 2;\n      goto LAB_0001725c;\n    }\n  }\n  if (-1 < iVar1) {\n    uVar2 = uVar2 | 1;\n  }\nLAB_0001725c:\n  if (sym->source == (char *)0x0) {\n    uVar2 = uVar2 | 0x20;\n  }\n  return (uint)((symbol_map & uVar2) == uVar2);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (if_statement "if (sym == (Symbol *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(sym == (Symbol *)0x0)" ( (binary_expression "sym == (Symbol *)0x0" identifier == (cast_expression "(Symbol *)0x0" ( (type_descriptor "Symbol *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (sym->type != SymIdentifier) {\n    uVar2 = 1;\n    if (((sym->type == SymToken) && (uVar2 = 0, sym->token_type == 0x10e)) &&\n       (sym->source != (char *)0x0)) {\n      uVar2 = (uint)symbol_map >> 4 & 1;\n    }\n    return uVar2;\n  }" if (parenthesized_expression "(sym->type != SymIdentifier)" ( (binary_expression "sym->type != SymIdentifier" (field_expression "sym->type" identifier -> field_identifier) != identifier) )) (compound_statement "{\n    uVar2 = 1;\n    if (((sym->type == SymToken) && (uVar2 = 0, sym->token_type == 0x10e)) &&\n       (sym->source != (char *)0x0)) {\n      uVar2 = (uint)symbol_map >> 4 & 1;\n    }\n    return uVar2;\n  }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (if_statement "if (((sym->type == SymToken) && (uVar2 = 0, sym->token_type == 0x10e)) &&\n       (sym->source != (char *)0x0)) {\n      uVar2 = (uint)symbol_map >> 4 & 1;\n    }" if (parenthesized_expression "(((sym->type == SymToken) && (uVar2 = 0, sym->token_type == 0x10e)) &&\n       (sym->source != (char *)0x0))" ( (binary_expression "((sym->type == SymToken) && (uVar2 = 0, sym->token_type == 0x10e)) &&\n       (sym->source != (char *)0x0)" (parenthesized_expression "((sym->type == SymToken) && (uVar2 = 0, sym->token_type == 0x10e))" ( (binary_expression "(sym->type == SymToken) && (uVar2 = 0, sym->token_type == 0x10e)" (parenthesized_expression "(sym->type == SymToken)" ( (binary_expression "sym->type == SymToken" (field_expression "sym->type" identifier -> field_identifier) == identifier) )) && (parenthesized_expression "(uVar2 = 0, sym->token_type == 0x10e)" ( (comma_expression "uVar2 = 0, sym->token_type == 0x10e" (assignment_expression "uVar2 = 0" identifier = number_literal) , (binary_expression "sym->token_type == 0x10e" (field_expression "sym->token_type" identifier -> field_identifier) == number_literal)) ))) )) && (parenthesized_expression "(sym->source != (char *)0x0)" ( (binary_expression "sym->source != (char *)0x0" (field_expression "sym->source" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n      uVar2 = (uint)symbol_map >> 4 & 1;\n    }" { (expression_statement "uVar2 = (uint)symbol_map >> 4 & 1;" (assignment_expression "uVar2 = (uint)symbol_map >> 4 & 1" identifier = (binary_expression "(uint)symbol_map >> 4 & 1" (binary_expression "(uint)symbol_map >> 4" (cast_expression "(uint)symbol_map" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) & number_literal)) ;) })) (return_statement "return uVar2;" return identifier ;) })) (if_statement "if ((*sym->name == '_') && ((symbol_map & 8U) == 0)) {\n    return 0;\n  }" if (parenthesized_expression "((*sym->name == '_') && ((symbol_map & 8U) == 0))" ( (binary_expression "(*sym->name == '_') && ((symbol_map & 8U) == 0)" (parenthesized_expression "(*sym->name == '_')" ( (binary_expression "*sym->name == '_'" (pointer_expression "*sym->name" * (field_expression "sym->name" identifier -> field_identifier)) == (char_literal "'_'" ' character ')) )) && (parenthesized_expression "((symbol_map & 8U) == 0)" ( (binary_expression "(symbol_map & 8U) == 0" (parenthesized_expression "(symbol_map & 8U)" ( (binary_expression "symbol_map & 8U" identifier & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = sym->arity;" (assignment_expression "iVar1 = sym->arity" identifier = (field_expression "sym->arity" identifier -> field_identifier)) ;) (if_statement "if (sym->storage == StaticStorage) {\n    uVar2 = 6;\n    if (iVar1 == -1) goto LAB_0001725c;\n    uVar2 = 4;\n  }\n  else {\n    uVar2 = 0;\n    if (iVar1 == -1) {\n      uVar2 = (uint)(sym->storage != AutoStorage) * 2;\n      goto LAB_0001725c;\n    }\n  }" if (parenthesized_expression "(sym->storage == StaticStorage)" ( (binary_expression "sym->storage == StaticStorage" (field_expression "sym->storage" identifier -> field_identifier) == identifier) )) (compound_statement "{\n    uVar2 = 6;\n    if (iVar1 == -1) goto LAB_0001725c;\n    uVar2 = 4;\n  }" { (expression_statement "uVar2 = 6;" (assignment_expression "uVar2 = 6" identifier = number_literal) ;) (if_statement "if (iVar1 == -1) goto LAB_0001725c;" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (goto_statement "goto LAB_0001725c;" goto statement_identifier ;)) (expression_statement "uVar2 = 4;" (assignment_expression "uVar2 = 4" identifier = number_literal) ;) }) (else_clause "else {\n    uVar2 = 0;\n    if (iVar1 == -1) {\n      uVar2 = (uint)(sym->storage != AutoStorage) * 2;\n      goto LAB_0001725c;\n    }\n  }" else (compound_statement "{\n    uVar2 = 0;\n    if (iVar1 == -1) {\n      uVar2 = (uint)(sym->storage != AutoStorage) * 2;\n      goto LAB_0001725c;\n    }\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (if_statement "if (iVar1 == -1) {\n      uVar2 = (uint)(sym->storage != AutoStorage) * 2;\n      goto LAB_0001725c;\n    }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n      uVar2 = (uint)(sym->storage != AutoStorage) * 2;\n      goto LAB_0001725c;\n    }" { (expression_statement "uVar2 = (uint)(sym->storage != AutoStorage) * 2;" (assignment_expression "uVar2 = (uint)(sym->storage != AutoStorage) * 2" identifier = (binary_expression "(uint)(sym->storage != AutoStorage) * 2" (call_expression "(uint)(sym->storage != AutoStorage)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(sym->storage != AutoStorage)" ( (binary_expression "sym->storage != AutoStorage" (field_expression "sym->storage" identifier -> field_identifier) != identifier) ))) * number_literal)) ;) (goto_statement "goto LAB_0001725c;" goto statement_identifier ;) })) }))) (if_statement "if (-1 < iVar1) {\n    uVar2 = uVar2 | 1;\n  }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n    uVar2 = uVar2 | 1;\n  }" { (expression_statement "uVar2 = uVar2 | 1;" (assignment_expression "uVar2 = uVar2 | 1" identifier = (binary_expression "uVar2 | 1" identifier | number_literal)) ;) })) (labeled_statement "LAB_0001725c:\n  if (sym->source == (char *)0x0) {\n    uVar2 = uVar2 | 0x20;\n  }" statement_identifier : (if_statement "if (sym->source == (char *)0x0) {\n    uVar2 = uVar2 | 0x20;\n  }" if (parenthesized_expression "(sym->source == (char *)0x0)" ( (binary_expression "sym->source == (char *)0x0" (field_expression "sym->source" identifier -> field_identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar2 = uVar2 | 0x20;\n  }" { (expression_statement "uVar2 = uVar2 | 0x20;" (assignment_expression "uVar2 = uVar2 | 0x20" identifier = (binary_expression "uVar2 | 0x20" identifier | number_literal)) ;) }))) (return_statement "return (uint)((symbol_map & uVar2) == uVar2);" return (call_expression "(uint)((symbol_map & uVar2) == uVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((symbol_map & uVar2) == uVar2)" ( (binary_expression "(symbol_map & uVar2) == uVar2" (parenthesized_expression "(symbol_map & uVar2)" ( (binary_expression "symbol_map & uVar2" identifier & identifier) )) == identifier) ))) ;) })))
(translation_unit "uint FUN_00017200(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if (*(int *)(param_1 + 0xc) != 2) {\n    uVar2 = 1;\n    if (((*(int *)(param_1 + 0xc) == 1) && (uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e)) &&\n       (*(int *)(param_1 + 0x28) != 0)) {\n      uVar2 = DAT_00036afc >> 4 & 1;\n    }\n    return uVar2;\n  }\n  if ((**(char **)(param_1 + 0x10) == '_') && ((DAT_00036afc & 8) == 0)) {\n    return 0;\n  }\n  iVar1 = *(int *)(param_1 + 0x40);\n  if (*(int *)(param_1 + 0x3c) == 2) {\n    uVar2 = 6;\n    if (iVar1 == -1) goto LAB_0001725c;\n    uVar2 = 4;\n  }\n  else {\n    uVar2 = 0;\n    if (iVar1 == -1) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x3c) != 3) * 2;\n      goto LAB_0001725c;\n    }\n  }\n  if (-1 < iVar1) {\n    uVar2 = uVar2 | 1;\n  }\nLAB_0001725c:\n  if (*(int *)(param_1 + 0x28) == 0) {\n    uVar2 = uVar2 | 0x20;\n  }\n  return (uint)((DAT_00036afc & uVar2) == uVar2);\n}\n\n" (function_definition "uint FUN_00017200(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if (*(int *)(param_1 + 0xc) != 2) {\n    uVar2 = 1;\n    if (((*(int *)(param_1 + 0xc) == 1) && (uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e)) &&\n       (*(int *)(param_1 + 0x28) != 0)) {\n      uVar2 = DAT_00036afc >> 4 & 1;\n    }\n    return uVar2;\n  }\n  if ((**(char **)(param_1 + 0x10) == '_') && ((DAT_00036afc & 8) == 0)) {\n    return 0;\n  }\n  iVar1 = *(int *)(param_1 + 0x40);\n  if (*(int *)(param_1 + 0x3c) == 2) {\n    uVar2 = 6;\n    if (iVar1 == -1) goto LAB_0001725c;\n    uVar2 = 4;\n  }\n  else {\n    uVar2 = 0;\n    if (iVar1 == -1) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x3c) != 3) * 2;\n      goto LAB_0001725c;\n    }\n  }\n  if (-1 < iVar1) {\n    uVar2 = uVar2 | 1;\n  }\nLAB_0001725c:\n  if (*(int *)(param_1 + 0x28) == 0) {\n    uVar2 = uVar2 | 0x20;\n  }\n  return (uint)((DAT_00036afc & uVar2) == uVar2);\n}" type_identifier (function_declarator "FUN_00017200(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if (*(int *)(param_1 + 0xc) != 2) {\n    uVar2 = 1;\n    if (((*(int *)(param_1 + 0xc) == 1) && (uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e)) &&\n       (*(int *)(param_1 + 0x28) != 0)) {\n      uVar2 = DAT_00036afc >> 4 & 1;\n    }\n    return uVar2;\n  }\n  if ((**(char **)(param_1 + 0x10) == '_') && ((DAT_00036afc & 8) == 0)) {\n    return 0;\n  }\n  iVar1 = *(int *)(param_1 + 0x40);\n  if (*(int *)(param_1 + 0x3c) == 2) {\n    uVar2 = 6;\n    if (iVar1 == -1) goto LAB_0001725c;\n    uVar2 = 4;\n  }\n  else {\n    uVar2 = 0;\n    if (iVar1 == -1) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x3c) != 3) * 2;\n      goto LAB_0001725c;\n    }\n  }\n  if (-1 < iVar1) {\n    uVar2 = uVar2 | 1;\n  }\nLAB_0001725c:\n  if (*(int *)(param_1 + 0x28) == 0) {\n    uVar2 = uVar2 | 0x20;\n  }\n  return (uint)((DAT_00036afc & uVar2) == uVar2);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (if_statement "if (param_1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (*(int *)(param_1 + 0xc) != 2) {\n    uVar2 = 1;\n    if (((*(int *)(param_1 + 0xc) == 1) && (uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e)) &&\n       (*(int *)(param_1 + 0x28) != 0)) {\n      uVar2 = DAT_00036afc >> 4 & 1;\n    }\n    return uVar2;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 2)" ( (binary_expression "*(int *)(param_1 + 0xc) != 2" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    uVar2 = 1;\n    if (((*(int *)(param_1 + 0xc) == 1) && (uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e)) &&\n       (*(int *)(param_1 + 0x28) != 0)) {\n      uVar2 = DAT_00036afc >> 4 & 1;\n    }\n    return uVar2;\n  }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (if_statement "if (((*(int *)(param_1 + 0xc) == 1) && (uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e)) &&\n       (*(int *)(param_1 + 0x28) != 0)) {\n      uVar2 = DAT_00036afc >> 4 & 1;\n    }" if (parenthesized_expression "(((*(int *)(param_1 + 0xc) == 1) && (uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e)) &&\n       (*(int *)(param_1 + 0x28) != 0))" ( (binary_expression "((*(int *)(param_1 + 0xc) == 1) && (uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e)) &&\n       (*(int *)(param_1 + 0x28) != 0)" (parenthesized_expression "((*(int *)(param_1 + 0xc) == 1) && (uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e))" ( (binary_expression "(*(int *)(param_1 + 0xc) == 1) && (uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e)" (parenthesized_expression "(*(int *)(param_1 + 0xc) == 1)" ( (binary_expression "*(int *)(param_1 + 0xc) == 1" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) == number_literal) )) && (parenthesized_expression "(uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e)" ( (comma_expression "uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e" (assignment_expression "uVar2 = 0" identifier = number_literal) , (binary_expression "*(int *)(param_1 + 0x24) == 0x10e" (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) == number_literal)) ))) )) && (parenthesized_expression "(*(int *)(param_1 + 0x28) != 0)" ( (binary_expression "*(int *)(param_1 + 0x28) != 0" (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n      uVar2 = DAT_00036afc >> 4 & 1;\n    }" { (expression_statement "uVar2 = DAT_00036afc >> 4 & 1;" (assignment_expression "uVar2 = DAT_00036afc >> 4 & 1" identifier = (binary_expression "DAT_00036afc >> 4 & 1" (binary_expression "DAT_00036afc >> 4" identifier >> number_literal) & number_literal)) ;) })) (return_statement "return uVar2;" return identifier ;) })) (if_statement "if ((**(char **)(param_1 + 0x10) == '_') && ((DAT_00036afc & 8) == 0)) {\n    return 0;\n  }" if (parenthesized_expression "((**(char **)(param_1 + 0x10) == '_') && ((DAT_00036afc & 8) == 0))" ( (binary_expression "(**(char **)(param_1 + 0x10) == '_') && ((DAT_00036afc & 8) == 0)" (parenthesized_expression "(**(char **)(param_1 + 0x10) == '_')" ( (binary_expression "**(char **)(param_1 + 0x10) == '_'" (pointer_expression "**(char **)(param_1 + 0x10)" * (pointer_expression "*(char **)(param_1 + 0x10)" * (cast_expression "(char **)(param_1 + 0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) == (char_literal "'_'" ' character ')) )) && (parenthesized_expression "((DAT_00036afc & 8) == 0)" ( (binary_expression "(DAT_00036afc & 8) == 0" (parenthesized_expression "(DAT_00036afc & 8)" ( (binary_expression "DAT_00036afc & 8" identifier & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = *(int *)(param_1 + 0x40);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x40)" identifier = (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + 0x3c) == 2) {\n    uVar2 = 6;\n    if (iVar1 == -1) goto LAB_0001725c;\n    uVar2 = 4;\n  }\n  else {\n    uVar2 = 0;\n    if (iVar1 == -1) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x3c) != 3) * 2;\n      goto LAB_0001725c;\n    }\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x3c) == 2)" ( (binary_expression "*(int *)(param_1 + 0x3c) == 2" (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    uVar2 = 6;\n    if (iVar1 == -1) goto LAB_0001725c;\n    uVar2 = 4;\n  }" { (expression_statement "uVar2 = 6;" (assignment_expression "uVar2 = 6" identifier = number_literal) ;) (if_statement "if (iVar1 == -1) goto LAB_0001725c;" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (goto_statement "goto LAB_0001725c;" goto statement_identifier ;)) (expression_statement "uVar2 = 4;" (assignment_expression "uVar2 = 4" identifier = number_literal) ;) }) (else_clause "else {\n    uVar2 = 0;\n    if (iVar1 == -1) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x3c) != 3) * 2;\n      goto LAB_0001725c;\n    }\n  }" else (compound_statement "{\n    uVar2 = 0;\n    if (iVar1 == -1) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x3c) != 3) * 2;\n      goto LAB_0001725c;\n    }\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (if_statement "if (iVar1 == -1) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x3c) != 3) * 2;\n      goto LAB_0001725c;\n    }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n      uVar2 = (uint)(*(int *)(param_1 + 0x3c) != 3) * 2;\n      goto LAB_0001725c;\n    }" { (expression_statement "uVar2 = (uint)(*(int *)(param_1 + 0x3c) != 3) * 2;" (assignment_expression "uVar2 = (uint)(*(int *)(param_1 + 0x3c) != 3) * 2" identifier = (binary_expression "(uint)(*(int *)(param_1 + 0x3c) != 3) * 2" (call_expression "(uint)(*(int *)(param_1 + 0x3c) != 3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 0x3c) != 3)" ( (binary_expression "*(int *)(param_1 + 0x3c) != 3" (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) != number_literal) ))) * number_literal)) ;) (goto_statement "goto LAB_0001725c;" goto statement_identifier ;) })) }))) (if_statement "if (-1 < iVar1) {\n    uVar2 = uVar2 | 1;\n  }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n    uVar2 = uVar2 | 1;\n  }" { (expression_statement "uVar2 = uVar2 | 1;" (assignment_expression "uVar2 = uVar2 | 1" identifier = (binary_expression "uVar2 | 1" identifier | number_literal)) ;) })) (labeled_statement "LAB_0001725c:\n  if (*(int *)(param_1 + 0x28) == 0) {\n    uVar2 = uVar2 | 0x20;\n  }" statement_identifier : (if_statement "if (*(int *)(param_1 + 0x28) == 0) {\n    uVar2 = uVar2 | 0x20;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x28) == 0)" ( (binary_expression "*(int *)(param_1 + 0x28) == 0" (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    uVar2 = uVar2 | 0x20;\n  }" { (expression_statement "uVar2 = uVar2 | 0x20;" (assignment_expression "uVar2 = uVar2 | 0x20" identifier = (binary_expression "uVar2 | 0x20" identifier | number_literal)) ;) }))) (return_statement "return (uint)((DAT_00036afc & uVar2) == uVar2);" return (call_expression "(uint)((DAT_00036afc & uVar2) == uVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((DAT_00036afc & uVar2) == uVar2)" ( (binary_expression "(DAT_00036afc & uVar2) == uVar2" (parenthesized_expression "(DAT_00036afc & uVar2)" ( (binary_expression "DAT_00036afc & uVar2" identifier & identifier) )) == identifier) ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = LIT) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT)) ))) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT >> LIT) & LIT)) ;) })) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) == (char_literal ' character ')) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) ))) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) * LIT)) ;) (goto_statement goto statement_identifier ;) })) }))) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) }))) (return_statement return (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & IDENT) )) == IDENT) ))) ;) })))
(function_definition "uint FUN_00017200(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if (*(int *)(param_1 + 0xc) != 2) {\n    uVar2 = 1;\n    if (((*(int *)(param_1 + 0xc) == 1) && (uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e)) &&\n       (*(int *)(param_1 + 0x28) != 0)) {\n      uVar2 = DAT_00036afc >> 4 & 1;\n    }\n    return uVar2;\n  }\n  if ((**(char **)(param_1 + 0x10) == '_') && ((DAT_00036afc & 8) == 0)) {\n    return 0;\n  }\n  iVar1 = *(int *)(param_1 + 0x40);\n  if (*(int *)(param_1 + 0x3c) == 2) {\n    uVar2 = 6;\n    if (iVar1 == -1) goto LAB_0001725c;\n    uVar2 = 4;\n  }\n  else {\n    uVar2 = 0;\n    if (iVar1 == -1) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x3c) != 3) * 2;\n      goto LAB_0001725c;\n    }\n  }\n  if (-1 < iVar1) {\n    uVar2 = uVar2 | 1;\n  }\nLAB_0001725c:\n  if (*(int *)(param_1 + 0x28) == 0) {\n    uVar2 = uVar2 | 0x20;\n  }\n  return (uint)((DAT_00036afc & uVar2) == uVar2);\n}" (type_identifier "uint") (function_declarator "FUN_00017200(int param_1)" (identifier "FUN_00017200") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if (*(int *)(param_1 + 0xc) != 2) {\n    uVar2 = 1;\n    if (((*(int *)(param_1 + 0xc) == 1) && (uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e)) &&\n       (*(int *)(param_1 + 0x28) != 0)) {\n      uVar2 = DAT_00036afc >> 4 & 1;\n    }\n    return uVar2;\n  }\n  if ((**(char **)(param_1 + 0x10) == '_') && ((DAT_00036afc & 8) == 0)) {\n    return 0;\n  }\n  iVar1 = *(int *)(param_1 + 0x40);\n  if (*(int *)(param_1 + 0x3c) == 2) {\n    uVar2 = 6;\n    if (iVar1 == -1) goto LAB_0001725c;\n    uVar2 = 4;\n  }\n  else {\n    uVar2 = 0;\n    if (iVar1 == -1) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x3c) != 3) * 2;\n      goto LAB_0001725c;\n    }\n  }\n  if (-1 < iVar1) {\n    uVar2 = uVar2 | 1;\n  }\nLAB_0001725c:\n  if (*(int *)(param_1 + 0x28) == 0) {\n    uVar2 = uVar2 | 0x20;\n  }\n  return (uint)((DAT_00036afc & uVar2) == uVar2);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (if_statement "if (param_1 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0xc) != 2) {\n    uVar2 = 1;\n    if (((*(int *)(param_1 + 0xc) == 1) && (uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e)) &&\n       (*(int *)(param_1 + 0x28) != 0)) {\n      uVar2 = DAT_00036afc >> 4 & 1;\n    }\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0xc) != 2)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) != 2" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n    uVar2 = 1;\n    if (((*(int *)(param_1 + 0xc) == 1) && (uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e)) &&\n       (*(int *)(param_1 + 0x28) != 0)) {\n      uVar2 = DAT_00036afc >> 4 & 1;\n    }\n    return uVar2;\n  }" ({ "{") (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (if_statement "if (((*(int *)(param_1 + 0xc) == 1) && (uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e)) &&\n       (*(int *)(param_1 + 0x28) != 0)) {\n      uVar2 = DAT_00036afc >> 4 & 1;\n    }" (if "if") (parenthesized_expression "(((*(int *)(param_1 + 0xc) == 1) && (uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e)) &&\n       (*(int *)(param_1 + 0x28) != 0))" (( "(") (binary_expression "((*(int *)(param_1 + 0xc) == 1) && (uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e)) &&\n       (*(int *)(param_1 + 0x28) != 0)" (parenthesized_expression "((*(int *)(param_1 + 0xc) == 1) && (uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e))" (( "(") (binary_expression "(*(int *)(param_1 + 0xc) == 1) && (uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e)" (parenthesized_expression "(*(int *)(param_1 + 0xc) == 1)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) == 1" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (== "==") (number_literal "1")) () ")")) (&& "&&") (parenthesized_expression "(uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e)" (( "(") (comma_expression "uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (, ",") (binary_expression "*(int *)(param_1 + 0x24) == 0x10e" (pointer_expression "*(int *)(param_1 + 0x24)" (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (== "==") (number_literal "0x10e"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_1 + 0x28) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x28) != 0" (pointer_expression "*(int *)(param_1 + 0x28)" (* "*") (cast_expression "(int *)(param_1 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      uVar2 = DAT_00036afc >> 4 & 1;\n    }" ({ "{") (expression_statement "uVar2 = DAT_00036afc >> 4 & 1;" (assignment_expression "uVar2 = DAT_00036afc >> 4 & 1" (identifier "uVar2") (= "=") (binary_expression "DAT_00036afc >> 4 & 1" (binary_expression "DAT_00036afc >> 4" (identifier "DAT_00036afc") (>> ">>") (number_literal "4")) (& "&") (number_literal "1"))) (; ";")) (} "}"))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (if_statement "if ((**(char **)(param_1 + 0x10) == '_') && ((DAT_00036afc & 8) == 0)) {\n    return 0;\n  }" (if "if") (parenthesized_expression "((**(char **)(param_1 + 0x10) == '_') && ((DAT_00036afc & 8) == 0))" (( "(") (binary_expression "(**(char **)(param_1 + 0x10) == '_') && ((DAT_00036afc & 8) == 0)" (parenthesized_expression "(**(char **)(param_1 + 0x10) == '_')" (( "(") (binary_expression "**(char **)(param_1 + 0x10) == '_'" (pointer_expression "**(char **)(param_1 + 0x10)" (* "*") (pointer_expression "*(char **)(param_1 + 0x10)" (* "*") (cast_expression "(char **)(param_1 + 0x10)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (== "==") (char_literal "'_'" (' "'") (character "_") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "((DAT_00036afc & 8) == 0)" (( "(") (binary_expression "(DAT_00036afc & 8) == 0" (parenthesized_expression "(DAT_00036afc & 8)" (( "(") (binary_expression "DAT_00036afc & 8" (identifier "DAT_00036afc") (& "&") (number_literal "8")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar1 = *(int *)(param_1 + 0x40);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x40)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x40)" (* "*") (cast_expression "(int *)(param_1 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")"))))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x3c) == 2) {\n    uVar2 = 6;\n    if (iVar1 == -1) goto LAB_0001725c;\n    uVar2 = 4;\n  }\n  else {\n    uVar2 = 0;\n    if (iVar1 == -1) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x3c) != 3) * 2;\n      goto LAB_0001725c;\n    }\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x3c) == 2)" (( "(") (binary_expression "*(int *)(param_1 + 0x3c) == 2" (pointer_expression "*(int *)(param_1 + 0x3c)" (* "*") (cast_expression "(int *)(param_1 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")")))) (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    uVar2 = 6;\n    if (iVar1 == -1) goto LAB_0001725c;\n    uVar2 = 4;\n  }" ({ "{") (expression_statement "uVar2 = 6;" (assignment_expression "uVar2 = 6" (identifier "uVar2") (= "=") (number_literal "6")) (; ";")) (if_statement "if (iVar1 == -1) goto LAB_0001725c;" (if "if") (parenthesized_expression "(iVar1 == -1)" (( "(") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1")) () ")")) (goto_statement "goto LAB_0001725c;" (goto "goto") (statement_identifier "LAB_0001725c") (; ";"))) (expression_statement "uVar2 = 4;" (assignment_expression "uVar2 = 4" (identifier "uVar2") (= "=") (number_literal "4")) (; ";")) (} "}")) (else_clause "else {\n    uVar2 = 0;\n    if (iVar1 == -1) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x3c) != 3) * 2;\n      goto LAB_0001725c;\n    }\n  }" (else "else") (compound_statement "{\n    uVar2 = 0;\n    if (iVar1 == -1) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x3c) != 3) * 2;\n      goto LAB_0001725c;\n    }\n  }" ({ "{") (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar1 == -1) {\n      uVar2 = (uint)(*(int *)(param_1 + 0x3c) != 3) * 2;\n      goto LAB_0001725c;\n    }" (if "if") (parenthesized_expression "(iVar1 == -1)" (( "(") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      uVar2 = (uint)(*(int *)(param_1 + 0x3c) != 3) * 2;\n      goto LAB_0001725c;\n    }" ({ "{") (expression_statement "uVar2 = (uint)(*(int *)(param_1 + 0x3c) != 3) * 2;" (assignment_expression "uVar2 = (uint)(*(int *)(param_1 + 0x3c) != 3) * 2" (identifier "uVar2") (= "=") (binary_expression "(uint)(*(int *)(param_1 + 0x3c) != 3) * 2" (call_expression "(uint)(*(int *)(param_1 + 0x3c) != 3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(int *)(param_1 + 0x3c) != 3)" (( "(") (binary_expression "*(int *)(param_1 + 0x3c) != 3" (pointer_expression "*(int *)(param_1 + 0x3c)" (* "*") (cast_expression "(int *)(param_1 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")")))) (!= "!=") (number_literal "3")) () ")"))) (* "*") (number_literal "2"))) (; ";")) (goto_statement "goto LAB_0001725c;" (goto "goto") (statement_identifier "LAB_0001725c") (; ";")) (} "}"))) (} "}")))) (if_statement "if (-1 < iVar1) {\n    uVar2 = uVar2 | 1;\n  }" (if "if") (parenthesized_expression "(-1 < iVar1)" (( "(") (binary_expression "-1 < iVar1" (number_literal "-1") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n    uVar2 = uVar2 | 1;\n  }" ({ "{") (expression_statement "uVar2 = uVar2 | 1;" (assignment_expression "uVar2 = uVar2 | 1" (identifier "uVar2") (= "=") (binary_expression "uVar2 | 1" (identifier "uVar2") (| "|") (number_literal "1"))) (; ";")) (} "}"))) (labeled_statement "LAB_0001725c:\n  if (*(int *)(param_1 + 0x28) == 0) {\n    uVar2 = uVar2 | 0x20;\n  }" (statement_identifier "LAB_0001725c") (: ":") (if_statement "if (*(int *)(param_1 + 0x28) == 0) {\n    uVar2 = uVar2 | 0x20;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x28) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x28) == 0" (pointer_expression "*(int *)(param_1 + 0x28)" (* "*") (cast_expression "(int *)(param_1 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = uVar2 | 0x20;\n  }" ({ "{") (expression_statement "uVar2 = uVar2 | 0x20;" (assignment_expression "uVar2 = uVar2 | 0x20" (identifier "uVar2") (= "=") (binary_expression "uVar2 | 0x20" (identifier "uVar2") (| "|") (number_literal "0x20"))) (; ";")) (} "}")))) (return_statement "return (uint)((DAT_00036afc & uVar2) == uVar2);" (return "return") (call_expression "(uint)((DAT_00036afc & uVar2) == uVar2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((DAT_00036afc & uVar2) == uVar2)" (( "(") (binary_expression "(DAT_00036afc & uVar2) == uVar2" (parenthesized_expression "(DAT_00036afc & uVar2)" (( "(") (binary_expression "DAT_00036afc & uVar2" (identifier "DAT_00036afc") (& "&") (identifier "uVar2")) () ")")) (== "==") (identifier "uVar2")) () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int function_1(type_1 *var_1)

{
  int var_6;
  type_2 var_8;
  
  if (var_1 == (type_1 *)0x0) {
    return 0;
  }
  if (var_1->type != var_2) {
    var_8 = 1;
    if (((var_1->type == var_3) && (var_8 = 0, var_1->token_type == 0x10e)) &&
       (var_1->source != (char *)0x0)) {
      var_8 = (type_2)var_4 >> 4 & 1;
    }
    return var_8;
  }
  if ((*var_1->name == '_') && ((var_4 & 8U) == 0)) {
    return 0;
  }
  var_6 = var_1->arity;
  if (var_1->storage == var_5) {
    var_8 = 6;
    if (var_6 == -1) goto LAB_0001725c;
    var_8 = 4;
  }
  else {
    var_8 = 0;
    if (var_6 == -1) {
      var_8 = (type_2)(var_1->storage != var_7) * 2;
      goto LAB_0001725c;
    }
  }
  if (-1 < var_6) {
    var_8 = var_8 | 1;
  }
LAB_0001725c:
  if (var_1->source == (char *)0x0) {
    var_8 = var_8 | 0x20;
  }
  return (type_2)((var_4 & var_8) == var_8);
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

uint MASKED(int param_1)

{
  int iVar1;
  uint uVar2;
  
  if (param_1 == 0) {
    return 0;
  }
  if (*(int *)(param_1 + 0xc) != 2) {
    uVar2 = 1;
    if (((*(int *)(param_1 + 0xc) == 1) && (uVar2 = 0, *(int *)(param_1 + 0x24) == 0x10e)) &&
       (*(int *)(param_1 + 0x28) != 0)) {
      uVar2 = DAT_00036afc >> 4 & 1;
    }
    return uVar2;
  }
  if ((**(char **)(param_1 + 0x10) == '_') && ((DAT_00036afc & 8) == 0)) {
    return 0;
  }
  iVar1 = *(int *)(param_1 + 0x40);
  if (*(int *)(param_1 + 0x3c) == 2) {
    uVar2 = 6;
    if (iVar1 == -1) goto LAB_0001725c;
    uVar2 = 4;
  }
  else {
    uVar2 = 0;
    if (iVar1 == -1) {
      uVar2 = (uint)(*(int *)(param_1 + 0x3c) != 3) * 2;
      goto LAB_0001725c;
    }
  }
  if (-1 < iVar1) {
    uVar2 = uVar2 | 1;
  }
LAB_0001725c:
  if (*(int *)(param_1 + 0x28) == 0) {
    uVar2 = uVar2 | 0x20;
  }
  return (uint)((DAT_00036afc & uVar2) == uVar2);
}

