
/* DWARF original prototype: bool attributes_compatible(Memory_region * this, Elf_Xword flags,
   Elf_Xword type) */

bool __thiscall
gold::Memory_region::attributes_compatible(Memory_region *this,Elf_Xword flags,Elf_Xword type)

{
  bool bVar1;
  uint uVar2;
  uint uVar3;
  
  uVar2 = this->attributes_;
  if (uVar2 == 0) {
    return false;
  }
  bVar1 = true;
  do {
    while (uVar3 = -uVar2 & uVar2, uVar3 == 2) {
      if ((flags & 1) == 0) {
        bVar1 = false;
      }
LAB_0015ade0:
      uVar2 = uVar2 & uVar2 - 1;
      if (uVar2 == 0) {
        return bVar1;
      }
    }
    if (uVar3 < 3) {
      if ((uVar3 == 1) && ((flags & 4) == 0)) {
        bVar1 = false;
      }
      goto LAB_0015ade0;
    }
    if (uVar3 != 8) {
      if ((uVar3 == 0x10) && ((type & 8) != 0)) {
        bVar1 = false;
      }
      goto LAB_0015ade0;
    }
    if ((flags & 2) == 0) {
      bVar1 = false;
    }
    uVar2 = uVar2 & uVar2 - 1;
    if (uVar2 == 0) {
      return bVar1;
    }
  } while( true );
}



undefined4 FUN_0015ada0(int param_1,uint param_2,undefined4 param_3,uint param_4)

{
  undefined4 uVar1;
  uint uVar2;
  uint uVar3;
  
  uVar2 = *(uint *)(param_1 + 0x18);
  if (uVar2 == 0) {
    return 0;
  }
  uVar1 = 1;
  do {
    while (uVar3 = -uVar2 & uVar2, uVar3 == 2) {
      if ((param_2 & 1) == 0) {
        uVar1 = 0;
      }
LAB_0015ade0:
      uVar2 = uVar2 & uVar2 - 1;
      if (uVar2 == 0) {
        return uVar1;
      }
    }
    if (uVar3 < 3) {
      if ((uVar3 == 1) && ((param_2 & 4) == 0)) {
        uVar1 = 0;
      }
      goto LAB_0015ade0;
    }
    if (uVar3 != 8) {
      if ((uVar3 == 0x10) && ((param_4 & 8) != 0)) {
        uVar1 = 0;
      }
      goto LAB_0015ade0;
    }
    if ((param_2 & 2) == 0) {
      uVar1 = 0;
    }
    uVar2 = uVar2 & uVar2 - 1;
    if (uVar2 == 0) {
      return uVar1;
    }
  } while( true );
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
MOV EAX,dword ptr [ESP + 0x14]
MOV ESI,dword ptr [ESP + 0x18]
MOV EDI,dword ptr [ESP + 0x20]
MOV ECX,dword ptr [EAX + 0x18]
XOR EAX,EAX
TEST ECX,ECX
JZ 0x0015ae09
MOV EBP,ESI
MOV EAX,0x1
XOR EBX,EBX
AND EBP,0x1
JMP 0x0015ade7
CMP EDX,0x10
JNZ 0x0015ade0
TEST EDI,0x8
CMOVNZ EAX,EBX
NOP
LEA EDX,[ECX + -0x1]
AND ECX,EDX
JZ 0x0015ae09
MOV EDX,ECX
NEG EDX
AND EDX,ECX
CMP EDX,0x2
JZ 0x0015ae20
JBE 0x0015ae10
CMP EDX,0x8
JNZ 0x0015add0
TEST ESI,0x2
LEA EDX,[ECX + -0x1]
CMOVZ EAX,EBX
AND ECX,EDX
JNZ 0x0015ade7
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP EDX,0x1
JNZ 0x0015ade0
TEST ESI,0x4
CMOVZ EAX,EBX
JMP 0x0015ade0
TEST EBP,EBP
CMOVZ EAX,EBX
JMP 0x0015ade0
(translation_unit "undefined4 FUN_0015ada0(int param_1,uint param_2,undefined4 param_3,uint param_4)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  uVar2 = *(uint *)(param_1 + 0x18);\n  if (uVar2 == 0) {\n    return 0;\n  }\n  uVar1 = 1;\n  do {\n    while (uVar3 = -uVar2 & uVar2, uVar3 == 2) {\n      if ((param_2 & 1) == 0) {\n        uVar1 = 0;\n      }\nLAB_0015ade0:\n      uVar2 = uVar2 & uVar2 - 1;\n      if (uVar2 == 0) {\n        return uVar1;\n      }\n    }\n    if (uVar3 < 3) {\n      if ((uVar3 == 1) && ((param_2 & 4) == 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }\n    if (uVar3 != 8) {\n      if ((uVar3 == 0x10) && ((param_4 & 8) != 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }\n    if ((param_2 & 2) == 0) {\n      uVar1 = 0;\n    }\n    uVar2 = uVar2 & uVar2 - 1;\n    if (uVar2 == 0) {\n      return uVar1;\n    }\n  } while( true );\n}\n\n" (function_definition "undefined4 FUN_0015ada0(int param_1,uint param_2,undefined4 param_3,uint param_4)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  uVar2 = *(uint *)(param_1 + 0x18);\n  if (uVar2 == 0) {\n    return 0;\n  }\n  uVar1 = 1;\n  do {\n    while (uVar3 = -uVar2 & uVar2, uVar3 == 2) {\n      if ((param_2 & 1) == 0) {\n        uVar1 = 0;\n      }\nLAB_0015ade0:\n      uVar2 = uVar2 & uVar2 - 1;\n      if (uVar2 == 0) {\n        return uVar1;\n      }\n    }\n    if (uVar3 < 3) {\n      if ((uVar3 == 1) && ((param_2 & 4) == 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }\n    if (uVar3 != 8) {\n      if ((uVar3 == 0x10) && ((param_4 & 8) != 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }\n    if ((param_2 & 2) == 0) {\n      uVar1 = 0;\n    }\n    uVar2 = uVar2 & uVar2 - 1;\n    if (uVar2 == 0) {\n      return uVar1;\n    }\n  } while( true );\n}" type_identifier (function_declarator "FUN_0015ada0(int param_1,uint param_2,undefined4 param_3,uint param_4)" identifier (parameter_list "(int param_1,uint param_2,undefined4 param_3,uint param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  uVar2 = *(uint *)(param_1 + 0x18);\n  if (uVar2 == 0) {\n    return 0;\n  }\n  uVar1 = 1;\n  do {\n    while (uVar3 = -uVar2 & uVar2, uVar3 == 2) {\n      if ((param_2 & 1) == 0) {\n        uVar1 = 0;\n      }\nLAB_0015ade0:\n      uVar2 = uVar2 & uVar2 - 1;\n      if (uVar2 == 0) {\n        return uVar1;\n      }\n    }\n    if (uVar3 < 3) {\n      if ((uVar3 == 1) && ((param_2 & 4) == 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }\n    if (uVar3 != 8) {\n      if ((uVar3 == 0x10) && ((param_4 & 8) != 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }\n    if ((param_2 & 2) == 0) {\n      uVar1 = 0;\n    }\n    uVar2 = uVar2 & uVar2 - 1;\n    if (uVar2 == 0) {\n      return uVar1;\n    }\n  } while( true );\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "uVar2 = *(uint *)(param_1 + 0x18);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x18)" identifier = (pointer_expression "*(uint *)(param_1 + 0x18)" * (cast_expression "(uint *)(param_1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (uVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" identifier = number_literal) ;) (do_statement "do {\n    while (uVar3 = -uVar2 & uVar2, uVar3 == 2) {\n      if ((param_2 & 1) == 0) {\n        uVar1 = 0;\n      }\nLAB_0015ade0:\n      uVar2 = uVar2 & uVar2 - 1;\n      if (uVar2 == 0) {\n        return uVar1;\n      }\n    }\n    if (uVar3 < 3) {\n      if ((uVar3 == 1) && ((param_2 & 4) == 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }\n    if (uVar3 != 8) {\n      if ((uVar3 == 0x10) && ((param_4 & 8) != 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }\n    if ((param_2 & 2) == 0) {\n      uVar1 = 0;\n    }\n    uVar2 = uVar2 & uVar2 - 1;\n    if (uVar2 == 0) {\n      return uVar1;\n    }\n  } while( true );" do (compound_statement "{\n    while (uVar3 = -uVar2 & uVar2, uVar3 == 2) {\n      if ((param_2 & 1) == 0) {\n        uVar1 = 0;\n      }\nLAB_0015ade0:\n      uVar2 = uVar2 & uVar2 - 1;\n      if (uVar2 == 0) {\n        return uVar1;\n      }\n    }\n    if (uVar3 < 3) {\n      if ((uVar3 == 1) && ((param_2 & 4) == 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }\n    if (uVar3 != 8) {\n      if ((uVar3 == 0x10) && ((param_4 & 8) != 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }\n    if ((param_2 & 2) == 0) {\n      uVar1 = 0;\n    }\n    uVar2 = uVar2 & uVar2 - 1;\n    if (uVar2 == 0) {\n      return uVar1;\n    }\n  }" { (while_statement "while (uVar3 = -uVar2 & uVar2, uVar3 == 2) {\n      if ((param_2 & 1) == 0) {\n        uVar1 = 0;\n      }\nLAB_0015ade0:\n      uVar2 = uVar2 & uVar2 - 1;\n      if (uVar2 == 0) {\n        return uVar1;\n      }\n    }" while (parenthesized_expression "(uVar3 = -uVar2 & uVar2, uVar3 == 2)" ( (comma_expression "uVar3 = -uVar2 & uVar2, uVar3 == 2" (assignment_expression "uVar3 = -uVar2 & uVar2" identifier = (binary_expression "-uVar2 & uVar2" (unary_expression "-uVar2" - identifier) & identifier)) , (binary_expression "uVar3 == 2" identifier == number_literal)) )) (compound_statement "{\n      if ((param_2 & 1) == 0) {\n        uVar1 = 0;\n      }\nLAB_0015ade0:\n      uVar2 = uVar2 & uVar2 - 1;\n      if (uVar2 == 0) {\n        return uVar1;\n      }\n    }" { (if_statement "if ((param_2 & 1) == 0) {\n        uVar1 = 0;\n      }" if (parenthesized_expression "((param_2 & 1) == 0)" ( (binary_expression "(param_2 & 1) == 0" (parenthesized_expression "(param_2 & 1)" ( (binary_expression "param_2 & 1" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        uVar1 = 0;\n      }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) })) (labeled_statement "LAB_0015ade0:\n      uVar2 = uVar2 & uVar2 - 1;" statement_identifier : (expression_statement "uVar2 = uVar2 & uVar2 - 1;" (assignment_expression "uVar2 = uVar2 & uVar2 - 1" identifier = (binary_expression "uVar2 & uVar2 - 1" identifier & (binary_expression "uVar2 - 1" identifier - number_literal))) ;)) (if_statement "if (uVar2 == 0) {\n        return uVar1;\n      }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        return uVar1;\n      }" { (return_statement "return uVar1;" return identifier ;) })) })) (if_statement "if (uVar3 < 3) {\n      if ((uVar3 == 1) && ((param_2 & 4) == 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }" if (parenthesized_expression "(uVar3 < 3)" ( (binary_expression "uVar3 < 3" identifier < number_literal) )) (compound_statement "{\n      if ((uVar3 == 1) && ((param_2 & 4) == 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }" { (if_statement "if ((uVar3 == 1) && ((param_2 & 4) == 0)) {\n        uVar1 = 0;\n      }" if (parenthesized_expression "((uVar3 == 1) && ((param_2 & 4) == 0))" ( (binary_expression "(uVar3 == 1) && ((param_2 & 4) == 0)" (parenthesized_expression "(uVar3 == 1)" ( (binary_expression "uVar3 == 1" identifier == number_literal) )) && (parenthesized_expression "((param_2 & 4) == 0)" ( (binary_expression "(param_2 & 4) == 0" (parenthesized_expression "(param_2 & 4)" ( (binary_expression "param_2 & 4" identifier & number_literal) )) == number_literal) ))) )) (compound_statement "{\n        uVar1 = 0;\n      }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) })) (goto_statement "goto LAB_0015ade0;" goto statement_identifier ;) })) (if_statement "if (uVar3 != 8) {\n      if ((uVar3 == 0x10) && ((param_4 & 8) != 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }" if (parenthesized_expression "(uVar3 != 8)" ( (binary_expression "uVar3 != 8" identifier != number_literal) )) (compound_statement "{\n      if ((uVar3 == 0x10) && ((param_4 & 8) != 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }" { (if_statement "if ((uVar3 == 0x10) && ((param_4 & 8) != 0)) {\n        uVar1 = 0;\n      }" if (parenthesized_expression "((uVar3 == 0x10) && ((param_4 & 8) != 0))" ( (binary_expression "(uVar3 == 0x10) && ((param_4 & 8) != 0)" (parenthesized_expression "(uVar3 == 0x10)" ( (binary_expression "uVar3 == 0x10" identifier == number_literal) )) && (parenthesized_expression "((param_4 & 8) != 0)" ( (binary_expression "(param_4 & 8) != 0" (parenthesized_expression "(param_4 & 8)" ( (binary_expression "param_4 & 8" identifier & number_literal) )) != number_literal) ))) )) (compound_statement "{\n        uVar1 = 0;\n      }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) })) (goto_statement "goto LAB_0015ade0;" goto statement_identifier ;) })) (if_statement "if ((param_2 & 2) == 0) {\n      uVar1 = 0;\n    }" if (parenthesized_expression "((param_2 & 2) == 0)" ( (binary_expression "(param_2 & 2) == 0" (parenthesized_expression "(param_2 & 2)" ( (binary_expression "param_2 & 2" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      uVar1 = 0;\n    }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) })) (expression_statement "uVar2 = uVar2 & uVar2 - 1;" (assignment_expression "uVar2 = uVar2 & uVar2 - 1" identifier = (binary_expression "uVar2 & uVar2 - 1" identifier & (binary_expression "uVar2 - 1" identifier - number_literal))) ;) (if_statement "if (uVar2 == 0) {\n      return uVar1;\n    }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return uVar1;\n    }" { (return_statement "return uVar1;" return identifier ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* DWARF original prototype: bool attributes_compatible(Memory_region * this, Elf_Xword flags,\n   Elf_Xword type) */\n\nbool __thiscall\ngold::Memory_region::attributes_compatible(Memory_region *this,Elf_Xword flags,Elf_Xword type)\n\n{\n  bool bVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  uVar2 = this->attributes_;\n  if (uVar2 == 0) {\n    return false;\n  }\n  bVar1 = true;\n  do {\n    while (uVar3 = -uVar2 & uVar2, uVar3 == 2) {\n      if ((flags & 1) == 0) {\n        bVar1 = false;\n      }\nLAB_0015ade0:\n      uVar2 = uVar2 & uVar2 - 1;\n      if (uVar2 == 0) {\n        return bVar1;\n      }\n    }\n    if (uVar3 < 3) {\n      if ((uVar3 == 1) && ((flags & 4) == 0)) {\n        bVar1 = false;\n      }\n      goto LAB_0015ade0;\n    }\n    if (uVar3 != 8) {\n      if ((uVar3 == 0x10) && ((type & 8) != 0)) {\n        bVar1 = false;\n      }\n      goto LAB_0015ade0;\n    }\n    if ((flags & 2) == 0) {\n      bVar1 = false;\n    }\n    uVar2 = uVar2 & uVar2 - 1;\n    if (uVar2 == 0) {\n      return bVar1;\n    }\n  } while( true );\n}\n\n" comment (function_definition "bool __thiscall\ngold::Memory_region::attributes_compatible(Memory_region *this,Elf_Xword flags,Elf_Xword type)\n\n{\n  bool bVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  uVar2 = this->attributes_;\n  if (uVar2 == 0) {\n    return false;\n  }\n  bVar1 = true;\n  do {\n    while (uVar3 = -uVar2 & uVar2, uVar3 == 2) {\n      if ((flags & 1) == 0) {\n        bVar1 = false;\n      }\nLAB_0015ade0:\n      uVar2 = uVar2 & uVar2 - 1;\n      if (uVar2 == 0) {\n        return bVar1;\n      }\n    }\n    if (uVar3 < 3) {\n      if ((uVar3 == 1) && ((flags & 4) == 0)) {\n        bVar1 = false;\n      }\n      goto LAB_0015ade0;\n    }\n    if (uVar3 != 8) {\n      if ((uVar3 == 0x10) && ((type & 8) != 0)) {\n        bVar1 = false;\n      }\n      goto LAB_0015ade0;\n    }\n    if ((flags & 2) == 0) {\n      bVar1 = false;\n    }\n    uVar2 = uVar2 & uVar2 - 1;\n    if (uVar2 == 0) {\n      return bVar1;\n    }\n  } while( true );\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Memory_region::" identifier : : identifier : :) (function_declarator "attributes_compatible(Memory_region *this,Elf_Xword flags,Elf_Xword type)" identifier (parameter_list "(Memory_region *this,Elf_Xword flags,Elf_Xword type)" ( (parameter_declaration "Memory_region *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Elf_Xword flags" type_identifier identifier) , (parameter_declaration "Elf_Xword type" type_identifier identifier) ))) (compound_statement "{\n  bool bVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  uVar2 = this->attributes_;\n  if (uVar2 == 0) {\n    return false;\n  }\n  bVar1 = true;\n  do {\n    while (uVar3 = -uVar2 & uVar2, uVar3 == 2) {\n      if ((flags & 1) == 0) {\n        bVar1 = false;\n      }\nLAB_0015ade0:\n      uVar2 = uVar2 & uVar2 - 1;\n      if (uVar2 == 0) {\n        return bVar1;\n      }\n    }\n    if (uVar3 < 3) {\n      if ((uVar3 == 1) && ((flags & 4) == 0)) {\n        bVar1 = false;\n      }\n      goto LAB_0015ade0;\n    }\n    if (uVar3 != 8) {\n      if ((uVar3 == 0x10) && ((type & 8) != 0)) {\n        bVar1 = false;\n      }\n      goto LAB_0015ade0;\n    }\n    if ((flags & 2) == 0) {\n      bVar1 = false;\n    }\n    uVar2 = uVar2 & uVar2 - 1;\n    if (uVar2 == 0) {\n      return bVar1;\n    }\n  } while( true );\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "uVar2 = this->attributes_;" (assignment_expression "uVar2 = this->attributes_" identifier = (field_expression "this->attributes_" identifier -> field_identifier)) ;) (if_statement "if (uVar2 == 0) {\n    return false;\n  }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return false;\n  }" { (return_statement "return false;" return false ;) })) (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (do_statement "do {\n    while (uVar3 = -uVar2 & uVar2, uVar3 == 2) {\n      if ((flags & 1) == 0) {\n        bVar1 = false;\n      }\nLAB_0015ade0:\n      uVar2 = uVar2 & uVar2 - 1;\n      if (uVar2 == 0) {\n        return bVar1;\n      }\n    }\n    if (uVar3 < 3) {\n      if ((uVar3 == 1) && ((flags & 4) == 0)) {\n        bVar1 = false;\n      }\n      goto LAB_0015ade0;\n    }\n    if (uVar3 != 8) {\n      if ((uVar3 == 0x10) && ((type & 8) != 0)) {\n        bVar1 = false;\n      }\n      goto LAB_0015ade0;\n    }\n    if ((flags & 2) == 0) {\n      bVar1 = false;\n    }\n    uVar2 = uVar2 & uVar2 - 1;\n    if (uVar2 == 0) {\n      return bVar1;\n    }\n  } while( true );" do (compound_statement "{\n    while (uVar3 = -uVar2 & uVar2, uVar3 == 2) {\n      if ((flags & 1) == 0) {\n        bVar1 = false;\n      }\nLAB_0015ade0:\n      uVar2 = uVar2 & uVar2 - 1;\n      if (uVar2 == 0) {\n        return bVar1;\n      }\n    }\n    if (uVar3 < 3) {\n      if ((uVar3 == 1) && ((flags & 4) == 0)) {\n        bVar1 = false;\n      }\n      goto LAB_0015ade0;\n    }\n    if (uVar3 != 8) {\n      if ((uVar3 == 0x10) && ((type & 8) != 0)) {\n        bVar1 = false;\n      }\n      goto LAB_0015ade0;\n    }\n    if ((flags & 2) == 0) {\n      bVar1 = false;\n    }\n    uVar2 = uVar2 & uVar2 - 1;\n    if (uVar2 == 0) {\n      return bVar1;\n    }\n  }" { (while_statement "while (uVar3 = -uVar2 & uVar2, uVar3 == 2) {\n      if ((flags & 1) == 0) {\n        bVar1 = false;\n      }\nLAB_0015ade0:\n      uVar2 = uVar2 & uVar2 - 1;\n      if (uVar2 == 0) {\n        return bVar1;\n      }\n    }" while (parenthesized_expression "(uVar3 = -uVar2 & uVar2, uVar3 == 2)" ( (comma_expression "uVar3 = -uVar2 & uVar2, uVar3 == 2" (assignment_expression "uVar3 = -uVar2 & uVar2" identifier = (binary_expression "-uVar2 & uVar2" (unary_expression "-uVar2" - identifier) & identifier)) , (binary_expression "uVar3 == 2" identifier == number_literal)) )) (compound_statement "{\n      if ((flags & 1) == 0) {\n        bVar1 = false;\n      }\nLAB_0015ade0:\n      uVar2 = uVar2 & uVar2 - 1;\n      if (uVar2 == 0) {\n        return bVar1;\n      }\n    }" { (if_statement "if ((flags & 1) == 0) {\n        bVar1 = false;\n      }" if (parenthesized_expression "((flags & 1) == 0)" ( (binary_expression "(flags & 1) == 0" (parenthesized_expression "(flags & 1)" ( (binary_expression "flags & 1" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        bVar1 = false;\n      }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) })) (labeled_statement "LAB_0015ade0:\n      uVar2 = uVar2 & uVar2 - 1;" statement_identifier : (expression_statement "uVar2 = uVar2 & uVar2 - 1;" (assignment_expression "uVar2 = uVar2 & uVar2 - 1" identifier = (binary_expression "uVar2 & uVar2 - 1" identifier & (binary_expression "uVar2 - 1" identifier - number_literal))) ;)) (if_statement "if (uVar2 == 0) {\n        return bVar1;\n      }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        return bVar1;\n      }" { (return_statement "return bVar1;" return identifier ;) })) })) (if_statement "if (uVar3 < 3) {\n      if ((uVar3 == 1) && ((flags & 4) == 0)) {\n        bVar1 = false;\n      }\n      goto LAB_0015ade0;\n    }" if (parenthesized_expression "(uVar3 < 3)" ( (binary_expression "uVar3 < 3" identifier < number_literal) )) (compound_statement "{\n      if ((uVar3 == 1) && ((flags & 4) == 0)) {\n        bVar1 = false;\n      }\n      goto LAB_0015ade0;\n    }" { (if_statement "if ((uVar3 == 1) && ((flags & 4) == 0)) {\n        bVar1 = false;\n      }" if (parenthesized_expression "((uVar3 == 1) && ((flags & 4) == 0))" ( (binary_expression "(uVar3 == 1) && ((flags & 4) == 0)" (parenthesized_expression "(uVar3 == 1)" ( (binary_expression "uVar3 == 1" identifier == number_literal) )) && (parenthesized_expression "((flags & 4) == 0)" ( (binary_expression "(flags & 4) == 0" (parenthesized_expression "(flags & 4)" ( (binary_expression "flags & 4" identifier & number_literal) )) == number_literal) ))) )) (compound_statement "{\n        bVar1 = false;\n      }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) })) (goto_statement "goto LAB_0015ade0;" goto statement_identifier ;) })) (if_statement "if (uVar3 != 8) {\n      if ((uVar3 == 0x10) && ((type & 8) != 0)) {\n        bVar1 = false;\n      }\n      goto LAB_0015ade0;\n    }" if (parenthesized_expression "(uVar3 != 8)" ( (binary_expression "uVar3 != 8" identifier != number_literal) )) (compound_statement "{\n      if ((uVar3 == 0x10) && ((type & 8) != 0)) {\n        bVar1 = false;\n      }\n      goto LAB_0015ade0;\n    }" { (if_statement "if ((uVar3 == 0x10) && ((type & 8) != 0)) {\n        bVar1 = false;\n      }" if (parenthesized_expression "((uVar3 == 0x10) && ((type & 8) != 0))" ( (binary_expression "(uVar3 == 0x10) && ((type & 8) != 0)" (parenthesized_expression "(uVar3 == 0x10)" ( (binary_expression "uVar3 == 0x10" identifier == number_literal) )) && (parenthesized_expression "((type & 8) != 0)" ( (binary_expression "(type & 8) != 0" (parenthesized_expression "(type & 8)" ( (binary_expression "type & 8" identifier & number_literal) )) != number_literal) ))) )) (compound_statement "{\n        bVar1 = false;\n      }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) })) (goto_statement "goto LAB_0015ade0;" goto statement_identifier ;) })) (if_statement "if ((flags & 2) == 0) {\n      bVar1 = false;\n    }" if (parenthesized_expression "((flags & 2) == 0)" ( (binary_expression "(flags & 2) == 0" (parenthesized_expression "(flags & 2)" ( (binary_expression "flags & 2" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      bVar1 = false;\n    }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) })) (expression_statement "uVar2 = uVar2 & uVar2 - 1;" (assignment_expression "uVar2 = uVar2 & uVar2 - 1" identifier = (binary_expression "uVar2 & uVar2 - 1" identifier & (binary_expression "uVar2 - 1" identifier - number_literal))) ;) (if_statement "if (uVar2 == 0) {\n      return bVar1;\n    }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return bVar1;\n    }" { (return_statement "return bVar1;" return identifier ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "undefined4 FUN_0015ada0(int param_1,uint param_2,undefined4 param_3,uint param_4)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  uVar2 = *(uint *)(param_1 + 0x18);\n  if (uVar2 == 0) {\n    return 0;\n  }\n  uVar1 = 1;\n  do {\n    while (uVar3 = -uVar2 & uVar2, uVar3 == 2) {\n      if ((param_2 & 1) == 0) {\n        uVar1 = 0;\n      }\nLAB_0015ade0:\n      uVar2 = uVar2 & uVar2 - 1;\n      if (uVar2 == 0) {\n        return uVar1;\n      }\n    }\n    if (uVar3 < 3) {\n      if ((uVar3 == 1) && ((param_2 & 4) == 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }\n    if (uVar3 != 8) {\n      if ((uVar3 == 0x10) && ((param_4 & 8) != 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }\n    if ((param_2 & 2) == 0) {\n      uVar1 = 0;\n    }\n    uVar2 = uVar2 & uVar2 - 1;\n    if (uVar2 == 0) {\n      return uVar1;\n    }\n  } while( true );\n}\n\n" (function_definition "undefined4 FUN_0015ada0(int param_1,uint param_2,undefined4 param_3,uint param_4)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  uVar2 = *(uint *)(param_1 + 0x18);\n  if (uVar2 == 0) {\n    return 0;\n  }\n  uVar1 = 1;\n  do {\n    while (uVar3 = -uVar2 & uVar2, uVar3 == 2) {\n      if ((param_2 & 1) == 0) {\n        uVar1 = 0;\n      }\nLAB_0015ade0:\n      uVar2 = uVar2 & uVar2 - 1;\n      if (uVar2 == 0) {\n        return uVar1;\n      }\n    }\n    if (uVar3 < 3) {\n      if ((uVar3 == 1) && ((param_2 & 4) == 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }\n    if (uVar3 != 8) {\n      if ((uVar3 == 0x10) && ((param_4 & 8) != 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }\n    if ((param_2 & 2) == 0) {\n      uVar1 = 0;\n    }\n    uVar2 = uVar2 & uVar2 - 1;\n    if (uVar2 == 0) {\n      return uVar1;\n    }\n  } while( true );\n}" type_identifier (function_declarator "FUN_0015ada0(int param_1,uint param_2,undefined4 param_3,uint param_4)" identifier (parameter_list "(int param_1,uint param_2,undefined4 param_3,uint param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  uVar2 = *(uint *)(param_1 + 0x18);\n  if (uVar2 == 0) {\n    return 0;\n  }\n  uVar1 = 1;\n  do {\n    while (uVar3 = -uVar2 & uVar2, uVar3 == 2) {\n      if ((param_2 & 1) == 0) {\n        uVar1 = 0;\n      }\nLAB_0015ade0:\n      uVar2 = uVar2 & uVar2 - 1;\n      if (uVar2 == 0) {\n        return uVar1;\n      }\n    }\n    if (uVar3 < 3) {\n      if ((uVar3 == 1) && ((param_2 & 4) == 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }\n    if (uVar3 != 8) {\n      if ((uVar3 == 0x10) && ((param_4 & 8) != 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }\n    if ((param_2 & 2) == 0) {\n      uVar1 = 0;\n    }\n    uVar2 = uVar2 & uVar2 - 1;\n    if (uVar2 == 0) {\n      return uVar1;\n    }\n  } while( true );\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "uVar2 = *(uint *)(param_1 + 0x18);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x18)" identifier = (pointer_expression "*(uint *)(param_1 + 0x18)" * (cast_expression "(uint *)(param_1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (uVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" identifier = number_literal) ;) (do_statement "do {\n    while (uVar3 = -uVar2 & uVar2, uVar3 == 2) {\n      if ((param_2 & 1) == 0) {\n        uVar1 = 0;\n      }\nLAB_0015ade0:\n      uVar2 = uVar2 & uVar2 - 1;\n      if (uVar2 == 0) {\n        return uVar1;\n      }\n    }\n    if (uVar3 < 3) {\n      if ((uVar3 == 1) && ((param_2 & 4) == 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }\n    if (uVar3 != 8) {\n      if ((uVar3 == 0x10) && ((param_4 & 8) != 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }\n    if ((param_2 & 2) == 0) {\n      uVar1 = 0;\n    }\n    uVar2 = uVar2 & uVar2 - 1;\n    if (uVar2 == 0) {\n      return uVar1;\n    }\n  } while( true );" do (compound_statement "{\n    while (uVar3 = -uVar2 & uVar2, uVar3 == 2) {\n      if ((param_2 & 1) == 0) {\n        uVar1 = 0;\n      }\nLAB_0015ade0:\n      uVar2 = uVar2 & uVar2 - 1;\n      if (uVar2 == 0) {\n        return uVar1;\n      }\n    }\n    if (uVar3 < 3) {\n      if ((uVar3 == 1) && ((param_2 & 4) == 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }\n    if (uVar3 != 8) {\n      if ((uVar3 == 0x10) && ((param_4 & 8) != 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }\n    if ((param_2 & 2) == 0) {\n      uVar1 = 0;\n    }\n    uVar2 = uVar2 & uVar2 - 1;\n    if (uVar2 == 0) {\n      return uVar1;\n    }\n  }" { (while_statement "while (uVar3 = -uVar2 & uVar2, uVar3 == 2) {\n      if ((param_2 & 1) == 0) {\n        uVar1 = 0;\n      }\nLAB_0015ade0:\n      uVar2 = uVar2 & uVar2 - 1;\n      if (uVar2 == 0) {\n        return uVar1;\n      }\n    }" while (parenthesized_expression "(uVar3 = -uVar2 & uVar2, uVar3 == 2)" ( (comma_expression "uVar3 = -uVar2 & uVar2, uVar3 == 2" (assignment_expression "uVar3 = -uVar2 & uVar2" identifier = (binary_expression "-uVar2 & uVar2" (unary_expression "-uVar2" - identifier) & identifier)) , (binary_expression "uVar3 == 2" identifier == number_literal)) )) (compound_statement "{\n      if ((param_2 & 1) == 0) {\n        uVar1 = 0;\n      }\nLAB_0015ade0:\n      uVar2 = uVar2 & uVar2 - 1;\n      if (uVar2 == 0) {\n        return uVar1;\n      }\n    }" { (if_statement "if ((param_2 & 1) == 0) {\n        uVar1 = 0;\n      }" if (parenthesized_expression "((param_2 & 1) == 0)" ( (binary_expression "(param_2 & 1) == 0" (parenthesized_expression "(param_2 & 1)" ( (binary_expression "param_2 & 1" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        uVar1 = 0;\n      }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) })) (labeled_statement "LAB_0015ade0:\n      uVar2 = uVar2 & uVar2 - 1;" statement_identifier : (expression_statement "uVar2 = uVar2 & uVar2 - 1;" (assignment_expression "uVar2 = uVar2 & uVar2 - 1" identifier = (binary_expression "uVar2 & uVar2 - 1" identifier & (binary_expression "uVar2 - 1" identifier - number_literal))) ;)) (if_statement "if (uVar2 == 0) {\n        return uVar1;\n      }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        return uVar1;\n      }" { (return_statement "return uVar1;" return identifier ;) })) })) (if_statement "if (uVar3 < 3) {\n      if ((uVar3 == 1) && ((param_2 & 4) == 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }" if (parenthesized_expression "(uVar3 < 3)" ( (binary_expression "uVar3 < 3" identifier < number_literal) )) (compound_statement "{\n      if ((uVar3 == 1) && ((param_2 & 4) == 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }" { (if_statement "if ((uVar3 == 1) && ((param_2 & 4) == 0)) {\n        uVar1 = 0;\n      }" if (parenthesized_expression "((uVar3 == 1) && ((param_2 & 4) == 0))" ( (binary_expression "(uVar3 == 1) && ((param_2 & 4) == 0)" (parenthesized_expression "(uVar3 == 1)" ( (binary_expression "uVar3 == 1" identifier == number_literal) )) && (parenthesized_expression "((param_2 & 4) == 0)" ( (binary_expression "(param_2 & 4) == 0" (parenthesized_expression "(param_2 & 4)" ( (binary_expression "param_2 & 4" identifier & number_literal) )) == number_literal) ))) )) (compound_statement "{\n        uVar1 = 0;\n      }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) })) (goto_statement "goto LAB_0015ade0;" goto statement_identifier ;) })) (if_statement "if (uVar3 != 8) {\n      if ((uVar3 == 0x10) && ((param_4 & 8) != 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }" if (parenthesized_expression "(uVar3 != 8)" ( (binary_expression "uVar3 != 8" identifier != number_literal) )) (compound_statement "{\n      if ((uVar3 == 0x10) && ((param_4 & 8) != 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }" { (if_statement "if ((uVar3 == 0x10) && ((param_4 & 8) != 0)) {\n        uVar1 = 0;\n      }" if (parenthesized_expression "((uVar3 == 0x10) && ((param_4 & 8) != 0))" ( (binary_expression "(uVar3 == 0x10) && ((param_4 & 8) != 0)" (parenthesized_expression "(uVar3 == 0x10)" ( (binary_expression "uVar3 == 0x10" identifier == number_literal) )) && (parenthesized_expression "((param_4 & 8) != 0)" ( (binary_expression "(param_4 & 8) != 0" (parenthesized_expression "(param_4 & 8)" ( (binary_expression "param_4 & 8" identifier & number_literal) )) != number_literal) ))) )) (compound_statement "{\n        uVar1 = 0;\n      }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) })) (goto_statement "goto LAB_0015ade0;" goto statement_identifier ;) })) (if_statement "if ((param_2 & 2) == 0) {\n      uVar1 = 0;\n    }" if (parenthesized_expression "((param_2 & 2) == 0)" ( (binary_expression "(param_2 & 2) == 0" (parenthesized_expression "(param_2 & 2)" ( (binary_expression "param_2 & 2" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      uVar1 = 0;\n    }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) })) (expression_statement "uVar2 = uVar2 & uVar2 - 1;" (assignment_expression "uVar2 = uVar2 & uVar2 - 1" identifier = (binary_expression "uVar2 & uVar2 - 1" identifier & (binary_expression "uVar2 - 1" identifier - number_literal))) ;) (if_statement "if (uVar2 == 0) {\n      return uVar1;\n    }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return uVar1;\n    }" { (return_statement "return uVar1;" return identifier ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression (unary_expression - IDENT) & IDENT)) , (binary_expression IDENT == LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT & (binary_expression IDENT - LIT))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & (binary_expression IDENT - LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "undefined4 FUN_0015ada0(int param_1,uint param_2,undefined4 param_3,uint param_4)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  uVar2 = *(uint *)(param_1 + 0x18);\n  if (uVar2 == 0) {\n    return 0;\n  }\n  uVar1 = 1;\n  do {\n    while (uVar3 = -uVar2 & uVar2, uVar3 == 2) {\n      if ((param_2 & 1) == 0) {\n        uVar1 = 0;\n      }\nLAB_0015ade0:\n      uVar2 = uVar2 & uVar2 - 1;\n      if (uVar2 == 0) {\n        return uVar1;\n      }\n    }\n    if (uVar3 < 3) {\n      if ((uVar3 == 1) && ((param_2 & 4) == 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }\n    if (uVar3 != 8) {\n      if ((uVar3 == 0x10) && ((param_4 & 8) != 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }\n    if ((param_2 & 2) == 0) {\n      uVar1 = 0;\n    }\n    uVar2 = uVar2 & uVar2 - 1;\n    if (uVar2 == 0) {\n      return uVar1;\n    }\n  } while( true );\n}" (type_identifier "undefined4") (function_declarator "FUN_0015ada0(int param_1,uint param_2,undefined4 param_3,uint param_4)" (identifier "FUN_0015ada0") (parameter_list "(int param_1,uint param_2,undefined4 param_3,uint param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  uVar2 = *(uint *)(param_1 + 0x18);\n  if (uVar2 == 0) {\n    return 0;\n  }\n  uVar1 = 1;\n  do {\n    while (uVar3 = -uVar2 & uVar2, uVar3 == 2) {\n      if ((param_2 & 1) == 0) {\n        uVar1 = 0;\n      }\nLAB_0015ade0:\n      uVar2 = uVar2 & uVar2 - 1;\n      if (uVar2 == 0) {\n        return uVar1;\n      }\n    }\n    if (uVar3 < 3) {\n      if ((uVar3 == 1) && ((param_2 & 4) == 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }\n    if (uVar3 != 8) {\n      if ((uVar3 == 0x10) && ((param_4 & 8) != 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }\n    if ((param_2 & 2) == 0) {\n      uVar1 = 0;\n    }\n    uVar2 = uVar2 & uVar2 - 1;\n    if (uVar2 == 0) {\n      return uVar1;\n    }\n  } while( true );\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (expression_statement "uVar2 = *(uint *)(param_1 + 0x18);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x18)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(param_1 + 0x18)" (* "*") (cast_expression "(uint *)(param_1 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (if_statement "if (uVar2 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(uVar2 == 0)" (( "(") (binary_expression "uVar2 == 0" (identifier "uVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" (identifier "uVar1") (= "=") (number_literal "1")) (; ";")) (do_statement "do {\n    while (uVar3 = -uVar2 & uVar2, uVar3 == 2) {\n      if ((param_2 & 1) == 0) {\n        uVar1 = 0;\n      }\nLAB_0015ade0:\n      uVar2 = uVar2 & uVar2 - 1;\n      if (uVar2 == 0) {\n        return uVar1;\n      }\n    }\n    if (uVar3 < 3) {\n      if ((uVar3 == 1) && ((param_2 & 4) == 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }\n    if (uVar3 != 8) {\n      if ((uVar3 == 0x10) && ((param_4 & 8) != 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }\n    if ((param_2 & 2) == 0) {\n      uVar1 = 0;\n    }\n    uVar2 = uVar2 & uVar2 - 1;\n    if (uVar2 == 0) {\n      return uVar1;\n    }\n  } while( true );" (do "do") (compound_statement "{\n    while (uVar3 = -uVar2 & uVar2, uVar3 == 2) {\n      if ((param_2 & 1) == 0) {\n        uVar1 = 0;\n      }\nLAB_0015ade0:\n      uVar2 = uVar2 & uVar2 - 1;\n      if (uVar2 == 0) {\n        return uVar1;\n      }\n    }\n    if (uVar3 < 3) {\n      if ((uVar3 == 1) && ((param_2 & 4) == 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }\n    if (uVar3 != 8) {\n      if ((uVar3 == 0x10) && ((param_4 & 8) != 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }\n    if ((param_2 & 2) == 0) {\n      uVar1 = 0;\n    }\n    uVar2 = uVar2 & uVar2 - 1;\n    if (uVar2 == 0) {\n      return uVar1;\n    }\n  }" ({ "{") (while_statement "while (uVar3 = -uVar2 & uVar2, uVar3 == 2) {\n      if ((param_2 & 1) == 0) {\n        uVar1 = 0;\n      }\nLAB_0015ade0:\n      uVar2 = uVar2 & uVar2 - 1;\n      if (uVar2 == 0) {\n        return uVar1;\n      }\n    }" (while "while") (parenthesized_expression "(uVar3 = -uVar2 & uVar2, uVar3 == 2)" (( "(") (comma_expression "uVar3 = -uVar2 & uVar2, uVar3 == 2" (assignment_expression "uVar3 = -uVar2 & uVar2" (identifier "uVar3") (= "=") (binary_expression "-uVar2 & uVar2" (unary_expression "-uVar2" (- "-") (identifier "uVar2")) (& "&") (identifier "uVar2"))) (, ",") (binary_expression "uVar3 == 2" (identifier "uVar3") (== "==") (number_literal "2"))) () ")")) (compound_statement "{\n      if ((param_2 & 1) == 0) {\n        uVar1 = 0;\n      }\nLAB_0015ade0:\n      uVar2 = uVar2 & uVar2 - 1;\n      if (uVar2 == 0) {\n        return uVar1;\n      }\n    }" ({ "{") (if_statement "if ((param_2 & 1) == 0) {\n        uVar1 = 0;\n      }" (if "if") (parenthesized_expression "((param_2 & 1) == 0)" (( "(") (binary_expression "(param_2 & 1) == 0" (parenthesized_expression "(param_2 & 1)" (( "(") (binary_expression "param_2 & 1" (identifier "param_2") (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar1 = 0;\n      }" ({ "{") (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (} "}"))) (labeled_statement "LAB_0015ade0:\n      uVar2 = uVar2 & uVar2 - 1;" (statement_identifier "LAB_0015ade0") (: ":") (expression_statement "uVar2 = uVar2 & uVar2 - 1;" (assignment_expression "uVar2 = uVar2 & uVar2 - 1" (identifier "uVar2") (= "=") (binary_expression "uVar2 & uVar2 - 1" (identifier "uVar2") (& "&") (binary_expression "uVar2 - 1" (identifier "uVar2") (- "-") (number_literal "1")))) (; ";"))) (if_statement "if (uVar2 == 0) {\n        return uVar1;\n      }" (if "if") (parenthesized_expression "(uVar2 == 0)" (( "(") (binary_expression "uVar2 == 0" (identifier "uVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return uVar1;\n      }" ({ "{") (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (} "}"))) (if_statement "if (uVar3 < 3) {\n      if ((uVar3 == 1) && ((param_2 & 4) == 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }" (if "if") (parenthesized_expression "(uVar3 < 3)" (( "(") (binary_expression "uVar3 < 3" (identifier "uVar3") (< "<") (number_literal "3")) () ")")) (compound_statement "{\n      if ((uVar3 == 1) && ((param_2 & 4) == 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }" ({ "{") (if_statement "if ((uVar3 == 1) && ((param_2 & 4) == 0)) {\n        uVar1 = 0;\n      }" (if "if") (parenthesized_expression "((uVar3 == 1) && ((param_2 & 4) == 0))" (( "(") (binary_expression "(uVar3 == 1) && ((param_2 & 4) == 0)" (parenthesized_expression "(uVar3 == 1)" (( "(") (binary_expression "uVar3 == 1" (identifier "uVar3") (== "==") (number_literal "1")) () ")")) (&& "&&") (parenthesized_expression "((param_2 & 4) == 0)" (( "(") (binary_expression "(param_2 & 4) == 0" (parenthesized_expression "(param_2 & 4)" (( "(") (binary_expression "param_2 & 4" (identifier "param_2") (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n        uVar1 = 0;\n      }" ({ "{") (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (} "}"))) (goto_statement "goto LAB_0015ade0;" (goto "goto") (statement_identifier "LAB_0015ade0") (; ";")) (} "}"))) (if_statement "if (uVar3 != 8) {\n      if ((uVar3 == 0x10) && ((param_4 & 8) != 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }" (if "if") (parenthesized_expression "(uVar3 != 8)" (( "(") (binary_expression "uVar3 != 8" (identifier "uVar3") (!= "!=") (number_literal "8")) () ")")) (compound_statement "{\n      if ((uVar3 == 0x10) && ((param_4 & 8) != 0)) {\n        uVar1 = 0;\n      }\n      goto LAB_0015ade0;\n    }" ({ "{") (if_statement "if ((uVar3 == 0x10) && ((param_4 & 8) != 0)) {\n        uVar1 = 0;\n      }" (if "if") (parenthesized_expression "((uVar3 == 0x10) && ((param_4 & 8) != 0))" (( "(") (binary_expression "(uVar3 == 0x10) && ((param_4 & 8) != 0)" (parenthesized_expression "(uVar3 == 0x10)" (( "(") (binary_expression "uVar3 == 0x10" (identifier "uVar3") (== "==") (number_literal "0x10")) () ")")) (&& "&&") (parenthesized_expression "((param_4 & 8) != 0)" (( "(") (binary_expression "(param_4 & 8) != 0" (parenthesized_expression "(param_4 & 8)" (( "(") (binary_expression "param_4 & 8" (identifier "param_4") (& "&") (number_literal "8")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n        uVar1 = 0;\n      }" ({ "{") (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (} "}"))) (goto_statement "goto LAB_0015ade0;" (goto "goto") (statement_identifier "LAB_0015ade0") (; ";")) (} "}"))) (if_statement "if ((param_2 & 2) == 0) {\n      uVar1 = 0;\n    }" (if "if") (parenthesized_expression "((param_2 & 2) == 0)" (( "(") (binary_expression "(param_2 & 2) == 0" (parenthesized_expression "(param_2 & 2)" (( "(") (binary_expression "param_2 & 2" (identifier "param_2") (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar1 = 0;\n    }" ({ "{") (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "uVar2 = uVar2 & uVar2 - 1;" (assignment_expression "uVar2 = uVar2 & uVar2 - 1" (identifier "uVar2") (= "=") (binary_expression "uVar2 & uVar2 - 1" (identifier "uVar2") (& "&") (binary_expression "uVar2 - 1" (identifier "uVar2") (- "-") (number_literal "1")))) (; ";")) (if_statement "if (uVar2 == 0) {\n      return uVar1;\n    }" (if "if") (parenthesized_expression "(uVar2 == 0)" (( "(") (binary_expression "uVar2 == 0" (identifier "uVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return uVar1;\n    }" ({ "{") (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

/* DWARF original prototype: bool attributes_compatible(Memory_region * this, Elf_Xword flags,
   Elf_Xword type) */

bool __thiscall
gold::type_1::function_1(type_1 *this,type_2 var_3,type_2 var_4)

{
  bool bVar1;
  type_3 var_1;
  type_3 var_2;
  
  var_1 = this->attributes_;
  if (var_1 == 0) {
    return false;
  }
  bVar1 = true;
  do {
    while (var_2 = -var_1 & var_1, var_2 == 2) {
      if ((var_3 & 1) == 0) {
        bVar1 = false;
      }
LAB_0015ade0:
      var_1 = var_1 & var_1 - 1;
      if (var_1 == 0) {
        return bVar1;
      }
    }
    if (var_2 < 3) {
      if ((var_2 == 1) && ((var_3 & 4) == 0)) {
        bVar1 = false;
      }
      goto LAB_0015ade0;
    }
    if (var_2 != 8) {
      if ((var_2 == 0x10) && ((var_4 & 8) != 0)) {
        bVar1 = false;
      }
      goto LAB_0015ade0;
    }
    if ((var_3 & 2) == 0) {
      bVar1 = false;
    }
    var_1 = var_1 & var_1 - 1;
    if (var_1 == 0) {
      return bVar1;
    }
  } while( true );
}


(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: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (unary_expression argument: (identifier)) right: (identifier))) right: (binary_expression left: (identifier) right: (number_literal)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier))))) condition: (parenthesized_expression (true))))))

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

{
  undefined4 uVar1;
  uint uVar2;
  uint uVar3;
  
  uVar2 = *(uint *)(param_1 + 0x18);
  if (uVar2 == 0) {
    return 0;
  }
  uVar1 = 1;
  do {
    while (uVar3 = -uVar2 & uVar2, uVar3 == 2) {
      if ((param_2 & 1) == 0) {
        uVar1 = 0;
      }
LAB_0015ade0:
      uVar2 = uVar2 & uVar2 - 1;
      if (uVar2 == 0) {
        return uVar1;
      }
    }
    if (uVar3 < 3) {
      if ((uVar3 == 1) && ((param_2 & 4) == 0)) {
        uVar1 = 0;
      }
      goto LAB_0015ade0;
    }
    if (uVar3 != 8) {
      if ((uVar3 == 0x10) && ((param_4 & 8) != 0)) {
        uVar1 = 0;
      }
      goto LAB_0015ade0;
    }
    if ((param_2 & 2) == 0) {
      uVar1 = 0;
    }
    uVar2 = uVar2 & uVar2 - 1;
    if (uVar2 == 0) {
      return uVar1;
    }
  } while( true );
}

