
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* WARNING: Enum "STT": Some values do not have unique names */
/* DWARF original prototype: uint64_t value(Defined_expression * this, Expression_eval_info * eei)
    */

uint64_t __thiscall
gold::Defined_expression::value(Defined_expression *this,Expression_eval_info *eei)

{
  Symbol *pSVar1;
  bool bVar2;
  
  pSVar1 = Symbol_table::lookup(eei->symtab,(this->symbol_name_)._M_dataplus._M_p,(char *)0x0);
  if (pSVar1 != (Symbol *)0x0) {
    if ((pSVar1->field_0x2a & 7) == 0) {
      if ((pSVar1->field_0x2b & 0x20) == 0) {
        bVar2 = Symbol::is_common_shndx((pSVar1->u2_).shndx);
        bVar2 = !bVar2;
      }
      else {
        bVar2 = (pSVar1->u2_).shndx != 0;
      }
    }
    else {
      bVar2 = (pSVar1->field_0x2a & 7) != 4;
    }
    return (uint64_t)bVar2;
  }
  return 0;
}



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

byte FUN_001bcb80(int param_1,undefined4 *param_2)

{
  int iVar1;
  byte bVar2;
  
  iVar1 = FUN_00179ab0(*param_2,*(undefined4 *)(param_1 + 4),0);
  if (iVar1 != 0) {
    if ((*(byte *)(iVar1 + 0x2a) & 7) == 0) {
      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {
        bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc));
        bVar2 = bVar2 ^ 1;
      }
      else {
        bVar2 = *(int *)(iVar1 + 0xc) != 0;
      }
    }
    else {
      bVar2 = (*(byte *)(iVar1 + 0x2a) & 7) != 4;
    }
    return bVar2;
  }
  return 0;
}


PUSH EBX
CALL 0x00035840
ADD EBX,0x1d247a
SUB ESP,0xc
PUSH 0x0
MOV EAX,dword ptr [ESP + 0x18]
PUSH dword ptr [EAX + 0x4]
MOV EAX,dword ptr [ESP + 0x20]
PUSH dword ptr [EAX]
CALL 0x00179ab0
ADD ESP,0x10
MOV ECX,EAX
TEST EAX,EAX
JZ 0x001bcbe0
MOVZX EAX,byte ptr [EAX + 0x2a]
AND EAX,0x7
JNZ 0x001bcbd0
MOV EAX,dword ptr [ECX + 0xc]
TEST byte ptr [ECX + 0x2b],0x20
JZ 0x001bcbf0
TEST EAX,EAX
SETNZ AL
ADD ESP,0x8
MOVZX EAX,AL
XOR EDX,EDX
POP EBX
RET
CMP AL,0x4
SETNZ AL
JMP 0x001bcbc3
ADD ESP,0x8
XOR EAX,EAX
XOR EDX,EDX
POP EBX
RET
SUB ESP,0xc
PUSH EAX
CALL 0x00177470
ADD ESP,0x10
XOR EAX,0x1
JMP 0x001bcbc3
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbyte FUN_001bcb80(int param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  byte bVar2;\n  \n  iVar1 = FUN_00179ab0(*param_2,*(undefined4 *)(param_1 + 4),0);\n  if (iVar1 != 0) {\n    if ((*(byte *)(iVar1 + 0x2a) & 7) == 0) {\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc));\n        bVar2 = bVar2 ^ 1;\n      }\n      else {\n        bVar2 = *(int *)(iVar1 + 0xc) != 0;\n      }\n    }\n    else {\n      bVar2 = (*(byte *)(iVar1 + 0x2a) & 7) != 4;\n    }\n    return bVar2;\n  }\n  return 0;\n}\n\n" comment (function_definition "byte FUN_001bcb80(int param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  byte bVar2;\n  \n  iVar1 = FUN_00179ab0(*param_2,*(undefined4 *)(param_1 + 4),0);\n  if (iVar1 != 0) {\n    if ((*(byte *)(iVar1 + 0x2a) & 7) == 0) {\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc));\n        bVar2 = bVar2 ^ 1;\n      }\n      else {\n        bVar2 = *(int *)(iVar1 + 0xc) != 0;\n      }\n    }\n    else {\n      bVar2 = (*(byte *)(iVar1 + 0x2a) & 7) != 4;\n    }\n    return bVar2;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_001bcb80(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  byte bVar2;\n  \n  iVar1 = FUN_00179ab0(*param_2,*(undefined4 *)(param_1 + 4),0);\n  if (iVar1 != 0) {\n    if ((*(byte *)(iVar1 + 0x2a) & 7) == 0) {\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc));\n        bVar2 = bVar2 ^ 1;\n      }\n      else {\n        bVar2 = *(int *)(iVar1 + 0xc) != 0;\n      }\n    }\n    else {\n      bVar2 = (*(byte *)(iVar1 + 0x2a) & 7) != 4;\n    }\n    return bVar2;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (expression_statement "iVar1 = FUN_00179ab0(*param_2,*(undefined4 *)(param_1 + 4),0);" (assignment_expression "iVar1 = FUN_00179ab0(*param_2,*(undefined4 *)(param_1 + 4),0)" identifier = (call_expression "FUN_00179ab0(*param_2,*(undefined4 *)(param_1 + 4),0)" identifier (argument_list "(*param_2,*(undefined4 *)(param_1 + 4),0)" ( (pointer_expression "*param_2" * identifier) , (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    if ((*(byte *)(iVar1 + 0x2a) & 7) == 0) {\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc));\n        bVar2 = bVar2 ^ 1;\n      }\n      else {\n        bVar2 = *(int *)(iVar1 + 0xc) != 0;\n      }\n    }\n    else {\n      bVar2 = (*(byte *)(iVar1 + 0x2a) & 7) != 4;\n    }\n    return bVar2;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((*(byte *)(iVar1 + 0x2a) & 7) == 0) {\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc));\n        bVar2 = bVar2 ^ 1;\n      }\n      else {\n        bVar2 = *(int *)(iVar1 + 0xc) != 0;\n      }\n    }\n    else {\n      bVar2 = (*(byte *)(iVar1 + 0x2a) & 7) != 4;\n    }\n    return bVar2;\n  }" { (if_statement "if ((*(byte *)(iVar1 + 0x2a) & 7) == 0) {\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc));\n        bVar2 = bVar2 ^ 1;\n      }\n      else {\n        bVar2 = *(int *)(iVar1 + 0xc) != 0;\n      }\n    }\n    else {\n      bVar2 = (*(byte *)(iVar1 + 0x2a) & 7) != 4;\n    }" if (parenthesized_expression "((*(byte *)(iVar1 + 0x2a) & 7) == 0)" ( (binary_expression "(*(byte *)(iVar1 + 0x2a) & 7) == 0" (parenthesized_expression "(*(byte *)(iVar1 + 0x2a) & 7)" ( (binary_expression "*(byte *)(iVar1 + 0x2a) & 7" (pointer_expression "*(byte *)(iVar1 + 0x2a)" * (cast_expression "(byte *)(iVar1 + 0x2a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2a)" ( (binary_expression "iVar1 + 0x2a" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc));\n        bVar2 = bVar2 ^ 1;\n      }\n      else {\n        bVar2 = *(int *)(iVar1 + 0xc) != 0;\n      }\n    }" { (if_statement "if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc));\n        bVar2 = bVar2 ^ 1;\n      }\n      else {\n        bVar2 = *(int *)(iVar1 + 0xc) != 0;\n      }" if (parenthesized_expression "((*(byte *)(iVar1 + 0x2b) & 0x20) == 0)" ( (binary_expression "(*(byte *)(iVar1 + 0x2b) & 0x20) == 0" (parenthesized_expression "(*(byte *)(iVar1 + 0x2b) & 0x20)" ( (binary_expression "*(byte *)(iVar1 + 0x2b) & 0x20" (pointer_expression "*(byte *)(iVar1 + 0x2b)" * (cast_expression "(byte *)(iVar1 + 0x2b)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2b)" ( (binary_expression "iVar1 + 0x2b" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc));\n        bVar2 = bVar2 ^ 1;\n      }" { (expression_statement "bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc));" (assignment_expression "bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc))" identifier = (call_expression "FUN_00177470(*(int *)(iVar1 + 0xc))" identifier (argument_list "(*(int *)(iVar1 + 0xc))" ( (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) )))) ;) (expression_statement "bVar2 = bVar2 ^ 1;" (assignment_expression "bVar2 = bVar2 ^ 1" identifier = (binary_expression "bVar2 ^ 1" identifier ^ number_literal)) ;) }) (else_clause "else {\n        bVar2 = *(int *)(iVar1 + 0xc) != 0;\n      }" else (compound_statement "{\n        bVar2 = *(int *)(iVar1 + 0xc) != 0;\n      }" { (expression_statement "bVar2 = *(int *)(iVar1 + 0xc) != 0;" (assignment_expression "bVar2 = *(int *)(iVar1 + 0xc) != 0" identifier = (binary_expression "*(int *)(iVar1 + 0xc) != 0" (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) != number_literal)) ;) }))) }) (else_clause "else {\n      bVar2 = (*(byte *)(iVar1 + 0x2a) & 7) != 4;\n    }" else (compound_statement "{\n      bVar2 = (*(byte *)(iVar1 + 0x2a) & 7) != 4;\n    }" { (expression_statement "bVar2 = (*(byte *)(iVar1 + 0x2a) & 7) != 4;" (assignment_expression "bVar2 = (*(byte *)(iVar1 + 0x2a) & 7) != 4" identifier = (binary_expression "(*(byte *)(iVar1 + 0x2a) & 7) != 4" (parenthesized_expression "(*(byte *)(iVar1 + 0x2a) & 7)" ( (binary_expression "*(byte *)(iVar1 + 0x2a) & 7" (pointer_expression "*(byte *)(iVar1 + 0x2a)" * (cast_expression "(byte *)(iVar1 + 0x2a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2a)" ( (binary_expression "iVar1 + 0x2a" identifier + number_literal) )))) & number_literal) )) != number_literal)) ;) }))) (return_statement "return bVar2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* WARNING: Enum "STT": Some values do not have unique names */\n/* DWARF original prototype: uint64_t value(Defined_expression * this, Expression_eval_info * eei)\n    */\n\nuint64_t __thiscall\ngold::Defined_expression::value(Defined_expression *this,Expression_eval_info *eei)\n\n{\n  Symbol *pSVar1;\n  bool bVar2;\n  \n  pSVar1 = Symbol_table::lookup(eei->symtab,(this->symbol_name_)._M_dataplus._M_p,(char *)0x0);\n  if (pSVar1 != (Symbol *)0x0) {\n    if ((pSVar1->field_0x2a & 7) == 0) {\n      if ((pSVar1->field_0x2b & 0x20) == 0) {\n        bVar2 = Symbol::is_common_shndx((pSVar1->u2_).shndx);\n        bVar2 = !bVar2;\n      }\n      else {\n        bVar2 = (pSVar1->u2_).shndx != 0;\n      }\n    }\n    else {\n      bVar2 = (pSVar1->field_0x2a & 7) != 4;\n    }\n    return (uint64_t)bVar2;\n  }\n  return 0;\n}\n\n" comment comment comment comment (function_definition "uint64_t __thiscall\ngold::Defined_expression::value(Defined_expression *this,Expression_eval_info *eei)\n\n{\n  Symbol *pSVar1;\n  bool bVar2;\n  \n  pSVar1 = Symbol_table::lookup(eei->symtab,(this->symbol_name_)._M_dataplus._M_p,(char *)0x0);\n  if (pSVar1 != (Symbol *)0x0) {\n    if ((pSVar1->field_0x2a & 7) == 0) {\n      if ((pSVar1->field_0x2b & 0x20) == 0) {\n        bVar2 = Symbol::is_common_shndx((pSVar1->u2_).shndx);\n        bVar2 = !bVar2;\n      }\n      else {\n        bVar2 = (pSVar1->u2_).shndx != 0;\n      }\n    }\n    else {\n      bVar2 = (pSVar1->field_0x2a & 7) != 4;\n    }\n    return (uint64_t)bVar2;\n  }\n  return 0;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Defined_expression::" identifier : : identifier : :) (function_declarator "value(Defined_expression *this,Expression_eval_info *eei)" identifier (parameter_list "(Defined_expression *this,Expression_eval_info *eei)" ( (parameter_declaration "Defined_expression *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Expression_eval_info *eei" type_identifier (pointer_declarator "*eei" * identifier)) ))) (compound_statement "{\n  Symbol *pSVar1;\n  bool bVar2;\n  \n  pSVar1 = Symbol_table::lookup(eei->symtab,(this->symbol_name_)._M_dataplus._M_p,(char *)0x0);\n  if (pSVar1 != (Symbol *)0x0) {\n    if ((pSVar1->field_0x2a & 7) == 0) {\n      if ((pSVar1->field_0x2b & 0x20) == 0) {\n        bVar2 = Symbol::is_common_shndx((pSVar1->u2_).shndx);\n        bVar2 = !bVar2;\n      }\n      else {\n        bVar2 = (pSVar1->u2_).shndx != 0;\n      }\n    }\n    else {\n      bVar2 = (pSVar1->field_0x2a & 7) != 4;\n    }\n    return (uint64_t)bVar2;\n  }\n  return 0;\n}" { (declaration "Symbol *pSVar1;" type_identifier (pointer_declarator "*pSVar1" * identifier) ;) (declaration "bool bVar2;" primitive_type identifier ;) (ERROR "pSVar1 = Symbol_table::" (assignment_expression "pSVar1 = Symbol_table" identifier = identifier) : :) (expression_statement "lookup(eei->symtab,(this->symbol_name_)._M_dataplus._M_p,(char *)0x0);" (call_expression "lookup(eei->symtab,(this->symbol_name_)._M_dataplus._M_p,(char *)0x0)" identifier (argument_list "(eei->symtab,(this->symbol_name_)._M_dataplus._M_p,(char *)0x0)" ( (field_expression "eei->symtab" identifier -> field_identifier) , (field_expression "(this->symbol_name_)._M_dataplus._M_p" (field_expression "(this->symbol_name_)._M_dataplus" (parenthesized_expression "(this->symbol_name_)" ( (field_expression "this->symbol_name_" identifier -> field_identifier) )) . field_identifier) . field_identifier) , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (if_statement "if (pSVar1 != (Symbol *)0x0) {\n    if ((pSVar1->field_0x2a & 7) == 0) {\n      if ((pSVar1->field_0x2b & 0x20) == 0) {\n        bVar2 = Symbol::is_common_shndx((pSVar1->u2_).shndx);\n        bVar2 = !bVar2;\n      }\n      else {\n        bVar2 = (pSVar1->u2_).shndx != 0;\n      }\n    }\n    else {\n      bVar2 = (pSVar1->field_0x2a & 7) != 4;\n    }\n    return (uint64_t)bVar2;\n  }" if (parenthesized_expression "(pSVar1 != (Symbol *)0x0)" ( (binary_expression "pSVar1 != (Symbol *)0x0" identifier != (cast_expression "(Symbol *)0x0" ( (type_descriptor "Symbol *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if ((pSVar1->field_0x2a & 7) == 0) {\n      if ((pSVar1->field_0x2b & 0x20) == 0) {\n        bVar2 = Symbol::is_common_shndx((pSVar1->u2_).shndx);\n        bVar2 = !bVar2;\n      }\n      else {\n        bVar2 = (pSVar1->u2_).shndx != 0;\n      }\n    }\n    else {\n      bVar2 = (pSVar1->field_0x2a & 7) != 4;\n    }\n    return (uint64_t)bVar2;\n  }" { (if_statement "if ((pSVar1->field_0x2a & 7) == 0) {\n      if ((pSVar1->field_0x2b & 0x20) == 0) {\n        bVar2 = Symbol::is_common_shndx((pSVar1->u2_).shndx);\n        bVar2 = !bVar2;\n      }\n      else {\n        bVar2 = (pSVar1->u2_).shndx != 0;\n      }\n    }\n    else {\n      bVar2 = (pSVar1->field_0x2a & 7) != 4;\n    }" if (parenthesized_expression "((pSVar1->field_0x2a & 7) == 0)" ( (binary_expression "(pSVar1->field_0x2a & 7) == 0" (parenthesized_expression "(pSVar1->field_0x2a & 7)" ( (binary_expression "pSVar1->field_0x2a & 7" (field_expression "pSVar1->field_0x2a" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      if ((pSVar1->field_0x2b & 0x20) == 0) {\n        bVar2 = Symbol::is_common_shndx((pSVar1->u2_).shndx);\n        bVar2 = !bVar2;\n      }\n      else {\n        bVar2 = (pSVar1->u2_).shndx != 0;\n      }\n    }" { (if_statement "if ((pSVar1->field_0x2b & 0x20) == 0) {\n        bVar2 = Symbol::is_common_shndx((pSVar1->u2_).shndx);\n        bVar2 = !bVar2;\n      }\n      else {\n        bVar2 = (pSVar1->u2_).shndx != 0;\n      }" if (parenthesized_expression "((pSVar1->field_0x2b & 0x20) == 0)" ( (binary_expression "(pSVar1->field_0x2b & 0x20) == 0" (parenthesized_expression "(pSVar1->field_0x2b & 0x20)" ( (binary_expression "pSVar1->field_0x2b & 0x20" (field_expression "pSVar1->field_0x2b" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n        bVar2 = Symbol::is_common_shndx((pSVar1->u2_).shndx);\n        bVar2 = !bVar2;\n      }" { (ERROR "bVar2 = Symbol::" (assignment_expression "bVar2 = Symbol" identifier = identifier) : :) (expression_statement "is_common_shndx((pSVar1->u2_).shndx);" (call_expression "is_common_shndx((pSVar1->u2_).shndx)" identifier (argument_list "((pSVar1->u2_).shndx)" ( (field_expression "(pSVar1->u2_).shndx" (parenthesized_expression "(pSVar1->u2_)" ( (field_expression "pSVar1->u2_" identifier -> field_identifier) )) . field_identifier) ))) ;) (expression_statement "bVar2 = !bVar2;" (assignment_expression "bVar2 = !bVar2" identifier = (unary_expression "!bVar2" ! identifier)) ;) }) (else_clause "else {\n        bVar2 = (pSVar1->u2_).shndx != 0;\n      }" else (compound_statement "{\n        bVar2 = (pSVar1->u2_).shndx != 0;\n      }" { (expression_statement "bVar2 = (pSVar1->u2_).shndx != 0;" (assignment_expression "bVar2 = (pSVar1->u2_).shndx != 0" identifier = (binary_expression "(pSVar1->u2_).shndx != 0" (field_expression "(pSVar1->u2_).shndx" (parenthesized_expression "(pSVar1->u2_)" ( (field_expression "pSVar1->u2_" identifier -> field_identifier) )) . field_identifier) != number_literal)) ;) }))) }) (else_clause "else {\n      bVar2 = (pSVar1->field_0x2a & 7) != 4;\n    }" else (compound_statement "{\n      bVar2 = (pSVar1->field_0x2a & 7) != 4;\n    }" { (expression_statement "bVar2 = (pSVar1->field_0x2a & 7) != 4;" (assignment_expression "bVar2 = (pSVar1->field_0x2a & 7) != 4" identifier = (binary_expression "(pSVar1->field_0x2a & 7) != 4" (parenthesized_expression "(pSVar1->field_0x2a & 7)" ( (binary_expression "pSVar1->field_0x2a & 7" (field_expression "pSVar1->field_0x2a" identifier -> field_identifier) & number_literal) )) != number_literal)) ;) }))) (return_statement "return (uint64_t)bVar2;" return (cast_expression "(uint64_t)bVar2" ( (type_descriptor "uint64_t" primitive_type) ) identifier) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "byte FUN_001bcb80(int param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  byte bVar2;\n  \n  iVar1 = FUN_00179ab0(*param_2,*(undefined4 *)(param_1 + 4),0);\n  if (iVar1 != 0) {\n    if ((*(byte *)(iVar1 + 0x2a) & 7) == 0) {\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc));\n        bVar2 = bVar2 ^ 1;\n      }\n      else {\n        bVar2 = *(int *)(iVar1 + 0xc) != 0;\n      }\n    }\n    else {\n      bVar2 = (*(byte *)(iVar1 + 0x2a) & 7) != 4;\n    }\n    return bVar2;\n  }\n  return 0;\n}\n\n" (function_definition "byte FUN_001bcb80(int param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  byte bVar2;\n  \n  iVar1 = FUN_00179ab0(*param_2,*(undefined4 *)(param_1 + 4),0);\n  if (iVar1 != 0) {\n    if ((*(byte *)(iVar1 + 0x2a) & 7) == 0) {\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc));\n        bVar2 = bVar2 ^ 1;\n      }\n      else {\n        bVar2 = *(int *)(iVar1 + 0xc) != 0;\n      }\n    }\n    else {\n      bVar2 = (*(byte *)(iVar1 + 0x2a) & 7) != 4;\n    }\n    return bVar2;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_001bcb80(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  byte bVar2;\n  \n  iVar1 = FUN_00179ab0(*param_2,*(undefined4 *)(param_1 + 4),0);\n  if (iVar1 != 0) {\n    if ((*(byte *)(iVar1 + 0x2a) & 7) == 0) {\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc));\n        bVar2 = bVar2 ^ 1;\n      }\n      else {\n        bVar2 = *(int *)(iVar1 + 0xc) != 0;\n      }\n    }\n    else {\n      bVar2 = (*(byte *)(iVar1 + 0x2a) & 7) != 4;\n    }\n    return bVar2;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (expression_statement "iVar1 = FUN_00179ab0(*param_2,*(undefined4 *)(param_1 + 4),0);" (assignment_expression "iVar1 = FUN_00179ab0(*param_2,*(undefined4 *)(param_1 + 4),0)" identifier = (call_expression "FUN_00179ab0(*param_2,*(undefined4 *)(param_1 + 4),0)" identifier (argument_list "(*param_2,*(undefined4 *)(param_1 + 4),0)" ( (pointer_expression "*param_2" * identifier) , (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    if ((*(byte *)(iVar1 + 0x2a) & 7) == 0) {\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc));\n        bVar2 = bVar2 ^ 1;\n      }\n      else {\n        bVar2 = *(int *)(iVar1 + 0xc) != 0;\n      }\n    }\n    else {\n      bVar2 = (*(byte *)(iVar1 + 0x2a) & 7) != 4;\n    }\n    return bVar2;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((*(byte *)(iVar1 + 0x2a) & 7) == 0) {\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc));\n        bVar2 = bVar2 ^ 1;\n      }\n      else {\n        bVar2 = *(int *)(iVar1 + 0xc) != 0;\n      }\n    }\n    else {\n      bVar2 = (*(byte *)(iVar1 + 0x2a) & 7) != 4;\n    }\n    return bVar2;\n  }" { (if_statement "if ((*(byte *)(iVar1 + 0x2a) & 7) == 0) {\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc));\n        bVar2 = bVar2 ^ 1;\n      }\n      else {\n        bVar2 = *(int *)(iVar1 + 0xc) != 0;\n      }\n    }\n    else {\n      bVar2 = (*(byte *)(iVar1 + 0x2a) & 7) != 4;\n    }" if (parenthesized_expression "((*(byte *)(iVar1 + 0x2a) & 7) == 0)" ( (binary_expression "(*(byte *)(iVar1 + 0x2a) & 7) == 0" (parenthesized_expression "(*(byte *)(iVar1 + 0x2a) & 7)" ( (binary_expression "*(byte *)(iVar1 + 0x2a) & 7" (pointer_expression "*(byte *)(iVar1 + 0x2a)" * (cast_expression "(byte *)(iVar1 + 0x2a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2a)" ( (binary_expression "iVar1 + 0x2a" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc));\n        bVar2 = bVar2 ^ 1;\n      }\n      else {\n        bVar2 = *(int *)(iVar1 + 0xc) != 0;\n      }\n    }" { (if_statement "if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc));\n        bVar2 = bVar2 ^ 1;\n      }\n      else {\n        bVar2 = *(int *)(iVar1 + 0xc) != 0;\n      }" if (parenthesized_expression "((*(byte *)(iVar1 + 0x2b) & 0x20) == 0)" ( (binary_expression "(*(byte *)(iVar1 + 0x2b) & 0x20) == 0" (parenthesized_expression "(*(byte *)(iVar1 + 0x2b) & 0x20)" ( (binary_expression "*(byte *)(iVar1 + 0x2b) & 0x20" (pointer_expression "*(byte *)(iVar1 + 0x2b)" * (cast_expression "(byte *)(iVar1 + 0x2b)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2b)" ( (binary_expression "iVar1 + 0x2b" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc));\n        bVar2 = bVar2 ^ 1;\n      }" { (expression_statement "bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc));" (assignment_expression "bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc))" identifier = (call_expression "FUN_00177470(*(int *)(iVar1 + 0xc))" identifier (argument_list "(*(int *)(iVar1 + 0xc))" ( (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) )))) ;) (expression_statement "bVar2 = bVar2 ^ 1;" (assignment_expression "bVar2 = bVar2 ^ 1" identifier = (binary_expression "bVar2 ^ 1" identifier ^ number_literal)) ;) }) (else_clause "else {\n        bVar2 = *(int *)(iVar1 + 0xc) != 0;\n      }" else (compound_statement "{\n        bVar2 = *(int *)(iVar1 + 0xc) != 0;\n      }" { (expression_statement "bVar2 = *(int *)(iVar1 + 0xc) != 0;" (assignment_expression "bVar2 = *(int *)(iVar1 + 0xc) != 0" identifier = (binary_expression "*(int *)(iVar1 + 0xc) != 0" (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) != number_literal)) ;) }))) }) (else_clause "else {\n      bVar2 = (*(byte *)(iVar1 + 0x2a) & 7) != 4;\n    }" else (compound_statement "{\n      bVar2 = (*(byte *)(iVar1 + 0x2a) & 7) != 4;\n    }" { (expression_statement "bVar2 = (*(byte *)(iVar1 + 0x2a) & 7) != 4;" (assignment_expression "bVar2 = (*(byte *)(iVar1 + 0x2a) & 7) != 4" identifier = (binary_expression "(*(byte *)(iVar1 + 0x2a) & 7) != 4" (parenthesized_expression "(*(byte *)(iVar1 + 0x2a) & 7)" ( (binary_expression "*(byte *)(iVar1 + 0x2a) & 7" (pointer_expression "*(byte *)(iVar1 + 0x2a)" * (cast_expression "(byte *)(iVar1 + 0x2a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2a)" ( (binary_expression "iVar1 + 0x2a" identifier + number_literal) )))) & number_literal) )) != number_literal)) ;) }))) (return_statement "return bVar2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT ^ LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT)) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT)) ;) }))) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "byte FUN_001bcb80(int param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  byte bVar2;\n  \n  iVar1 = FUN_00179ab0(*param_2,*(undefined4 *)(param_1 + 4),0);\n  if (iVar1 != 0) {\n    if ((*(byte *)(iVar1 + 0x2a) & 7) == 0) {\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc));\n        bVar2 = bVar2 ^ 1;\n      }\n      else {\n        bVar2 = *(int *)(iVar1 + 0xc) != 0;\n      }\n    }\n    else {\n      bVar2 = (*(byte *)(iVar1 + 0x2a) & 7) != 4;\n    }\n    return bVar2;\n  }\n  return 0;\n}" (type_identifier "byte") (function_declarator "FUN_001bcb80(int param_1,undefined4 *param_2)" (identifier "FUN_001bcb80") (parameter_list "(int param_1,undefined4 *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  byte bVar2;\n  \n  iVar1 = FUN_00179ab0(*param_2,*(undefined4 *)(param_1 + 4),0);\n  if (iVar1 != 0) {\n    if ((*(byte *)(iVar1 + 0x2a) & 7) == 0) {\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc));\n        bVar2 = bVar2 ^ 1;\n      }\n      else {\n        bVar2 = *(int *)(iVar1 + 0xc) != 0;\n      }\n    }\n    else {\n      bVar2 = (*(byte *)(iVar1 + 0x2a) & 7) != 4;\n    }\n    return bVar2;\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (expression_statement "iVar1 = FUN_00179ab0(*param_2,*(undefined4 *)(param_1 + 4),0);" (assignment_expression "iVar1 = FUN_00179ab0(*param_2,*(undefined4 *)(param_1 + 4),0)" (identifier "iVar1") (= "=") (call_expression "FUN_00179ab0(*param_2,*(undefined4 *)(param_1 + 4),0)" (identifier "FUN_00179ab0") (argument_list "(*param_2,*(undefined4 *)(param_1 + 4),0)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    if ((*(byte *)(iVar1 + 0x2a) & 7) == 0) {\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc));\n        bVar2 = bVar2 ^ 1;\n      }\n      else {\n        bVar2 = *(int *)(iVar1 + 0xc) != 0;\n      }\n    }\n    else {\n      bVar2 = (*(byte *)(iVar1 + 0x2a) & 7) != 4;\n    }\n    return bVar2;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if ((*(byte *)(iVar1 + 0x2a) & 7) == 0) {\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc));\n        bVar2 = bVar2 ^ 1;\n      }\n      else {\n        bVar2 = *(int *)(iVar1 + 0xc) != 0;\n      }\n    }\n    else {\n      bVar2 = (*(byte *)(iVar1 + 0x2a) & 7) != 4;\n    }\n    return bVar2;\n  }" ({ "{") (if_statement "if ((*(byte *)(iVar1 + 0x2a) & 7) == 0) {\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc));\n        bVar2 = bVar2 ^ 1;\n      }\n      else {\n        bVar2 = *(int *)(iVar1 + 0xc) != 0;\n      }\n    }\n    else {\n      bVar2 = (*(byte *)(iVar1 + 0x2a) & 7) != 4;\n    }" (if "if") (parenthesized_expression "((*(byte *)(iVar1 + 0x2a) & 7) == 0)" (( "(") (binary_expression "(*(byte *)(iVar1 + 0x2a) & 7) == 0" (parenthesized_expression "(*(byte *)(iVar1 + 0x2a) & 7)" (( "(") (binary_expression "*(byte *)(iVar1 + 0x2a) & 7" (pointer_expression "*(byte *)(iVar1 + 0x2a)" (* "*") (cast_expression "(byte *)(iVar1 + 0x2a)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x2a)" (( "(") (binary_expression "iVar1 + 0x2a" (identifier "iVar1") (+ "+") (number_literal "0x2a")) () ")")))) (& "&") (number_literal "7")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc));\n        bVar2 = bVar2 ^ 1;\n      }\n      else {\n        bVar2 = *(int *)(iVar1 + 0xc) != 0;\n      }\n    }" ({ "{") (if_statement "if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {\n        bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc));\n        bVar2 = bVar2 ^ 1;\n      }\n      else {\n        bVar2 = *(int *)(iVar1 + 0xc) != 0;\n      }" (if "if") (parenthesized_expression "((*(byte *)(iVar1 + 0x2b) & 0x20) == 0)" (( "(") (binary_expression "(*(byte *)(iVar1 + 0x2b) & 0x20) == 0" (parenthesized_expression "(*(byte *)(iVar1 + 0x2b) & 0x20)" (( "(") (binary_expression "*(byte *)(iVar1 + 0x2b) & 0x20" (pointer_expression "*(byte *)(iVar1 + 0x2b)" (* "*") (cast_expression "(byte *)(iVar1 + 0x2b)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x2b)" (( "(") (binary_expression "iVar1 + 0x2b" (identifier "iVar1") (+ "+") (number_literal "0x2b")) () ")")))) (& "&") (number_literal "0x20")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc));\n        bVar2 = bVar2 ^ 1;\n      }" ({ "{") (expression_statement "bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc));" (assignment_expression "bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc))" (identifier "bVar2") (= "=") (call_expression "FUN_00177470(*(int *)(iVar1 + 0xc))" (identifier "FUN_00177470") (argument_list "(*(int *)(iVar1 + 0xc))" (( "(") (pointer_expression "*(int *)(iVar1 + 0xc)" (* "*") (cast_expression "(int *)(iVar1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")")))) () ")")))) (; ";")) (expression_statement "bVar2 = bVar2 ^ 1;" (assignment_expression "bVar2 = bVar2 ^ 1" (identifier "bVar2") (= "=") (binary_expression "bVar2 ^ 1" (identifier "bVar2") (^ "^") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n        bVar2 = *(int *)(iVar1 + 0xc) != 0;\n      }" (else "else") (compound_statement "{\n        bVar2 = *(int *)(iVar1 + 0xc) != 0;\n      }" ({ "{") (expression_statement "bVar2 = *(int *)(iVar1 + 0xc) != 0;" (assignment_expression "bVar2 = *(int *)(iVar1 + 0xc) != 0" (identifier "bVar2") (= "=") (binary_expression "*(int *)(iVar1 + 0xc) != 0" (pointer_expression "*(int *)(iVar1 + 0xc)" (* "*") (cast_expression "(int *)(iVar1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0"))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n      bVar2 = (*(byte *)(iVar1 + 0x2a) & 7) != 4;\n    }" (else "else") (compound_statement "{\n      bVar2 = (*(byte *)(iVar1 + 0x2a) & 7) != 4;\n    }" ({ "{") (expression_statement "bVar2 = (*(byte *)(iVar1 + 0x2a) & 7) != 4;" (assignment_expression "bVar2 = (*(byte *)(iVar1 + 0x2a) & 7) != 4" (identifier "bVar2") (= "=") (binary_expression "(*(byte *)(iVar1 + 0x2a) & 7) != 4" (parenthesized_expression "(*(byte *)(iVar1 + 0x2a) & 7)" (( "(") (binary_expression "*(byte *)(iVar1 + 0x2a) & 7" (pointer_expression "*(byte *)(iVar1 + 0x2a)" (* "*") (cast_expression "(byte *)(iVar1 + 0x2a)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x2a)" (( "(") (binary_expression "iVar1 + 0x2a" (identifier "iVar1") (+ "+") (number_literal "0x2a")) () ")")))) (& "&") (number_literal "7")) () ")")) (!= "!=") (number_literal "4"))) (; ";")) (} "}")))) (return_statement "return bVar2;" (return "return") (identifier "bVar2") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* WARNING: Enum "STT": Some values do not have unique names */
/* DWARF original prototype: uint64_t value(Defined_expression * this, Expression_eval_info * eei)
    */

uint64_t __thiscall
gold::type_1::function_1(type_1 *this,type_2 *eei)

{
  type_3 *var_2;
  bool bVar2;
  
  var_2 = Symbol_table::var_1(eei->symtab,(this->symbol_name_)._M_dataplus._M_p,(char *)0x0);
  if (var_2 != (type_3 *)0x0) {
    if ((var_2->field_0x2a & 7) == 0) {
      if ((var_2->field_0x2b & 0x20) == 0) {
        bVar2 = type_3::var_3((var_2->u2_).shndx);
        bVar2 = !bVar2;
      }
      else {
        bVar2 = (var_2->u2_).shndx != 0;
      }
    }
    else {
      bVar2 = (var_2->field_0x2a & 7) != 4;
    }
    return (uint64_t)bVar2;
  }
  return 0;
}


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

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

byte MASKED(int param_1,undefined4 *param_2)

{
  int iVar1;
  byte bVar2;
  
  iVar1 = FUN_00179ab0(*param_2,*(undefined4 *)(param_1 + 4),0);
  if (iVar1 != 0) {
    if ((*(byte *)(iVar1 + 0x2a) & 7) == 0) {
      if ((*(byte *)(iVar1 + 0x2b) & 0x20) == 0) {
        bVar2 = FUN_00177470(*(int *)(iVar1 + 0xc));
        bVar2 = bVar2 ^ 1;
      }
      else {
        bVar2 = *(int *)(iVar1 + 0xc) != 0;
      }
    }
    else {
      bVar2 = (*(byte *)(iVar1 + 0x2a) & 7) != 4;
    }
    return bVar2;
  }
  return 0;
}

