
/* DWARF original prototype: bool has_dynamic_reloc_list(Output_segment * this, Output_data_list *
   pdl) */

bool __thiscall
gold::Output_segment::has_dynamic_reloc_list(Output_segment *this,Output_data_list *pdl)

{
  int iVar1;
  int iVar2;
  pointer ppOVar3;
  pointer ppOVar4;
  
  ppOVar3 = (pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).
            _M_impl._M_start;
  ppOVar4 = (pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).
            _M_impl._M_finish;
  if (ppOVar3 == ppOVar4) {
    return false;
  }
  iVar1 = *(int *)&(*ppOVar3)->field_0x20 << 4;
  iVar2 = iVar1;
  while( true ) {
    if (-(iVar2 >> 0x1f) != 0) {
      return SUB41(-(iVar2 >> 0x1f),0);
    }
    ppOVar3 = ppOVar3 + 1;
    if (ppOVar3 == ppOVar4) break;
    iVar2 = *(int *)&(*ppOVar3)->field_0x20 << 4;
  }
  return SUB41((uint)iVar1 >> 0x1f,0);
}



int FUN_00187024(undefined4 param_1,undefined4 *param_2)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  
  piVar3 = (int *)*param_2;
  if (piVar3 == (int *)param_2[1]) {
    return 0;
  }
  iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);
  iVar2 = iVar1;
  while( true ) {
    if (iVar1 != 0) {
      return iVar1;
    }
    piVar3 = piVar3 + 1;
    if (piVar3 == (int *)param_2[1]) break;
    iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);
  }
  return iVar2;
}


lw v1,0x0(a1)
lw a1,0x4(a1)
beq v1,a1,0x00187080
_nop
lw v0,0x0(v1)
lw v0,0x20(v0)
ext v0,v0,0x1b,0x1
bne v0,zero,0x00187078
_nop
b 0x00187064
_addiu v1,v1,0x4
lw a0,0x0(v1)
lw a0,0x20(a0)
ext a0,a0,0x1b,0x1
bne a0,zero,0x00187074
_addiu v1,v1,0x4
bne v1,a1,0x00187050
_nop
jr ra
_nop
or v0,a0,zero
jr ra
_nop
jr ra
_or v0,zero,zero
(translation_unit "int FUN_00187024(undefined4 param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar3 = (int *)*param_2;\n  if (piVar3 == (int *)param_2[1]) {\n    return 0;\n  }\n  iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);\n  iVar2 = iVar1;\n  while( true ) {\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    piVar3 = piVar3 + 1;\n    if (piVar3 == (int *)param_2[1]) break;\n    iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);\n  }\n  return iVar2;\n}\n\n" (function_definition "int FUN_00187024(undefined4 param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar3 = (int *)*param_2;\n  if (piVar3 == (int *)param_2[1]) {\n    return 0;\n  }\n  iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);\n  iVar2 = iVar1;\n  while( true ) {\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    piVar3 = piVar3 + 1;\n    if (piVar3 == (int *)param_2[1]) break;\n    iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_00187024(undefined4 param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar3 = (int *)*param_2;\n  if (piVar3 == (int *)param_2[1]) {\n    return 0;\n  }\n  iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);\n  iVar2 = iVar1;\n  while( true ) {\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    piVar3 = piVar3 + 1;\n    if (piVar3 == (int *)param_2[1]) break;\n    iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "piVar3 = (int *)*param_2;" (assignment_expression "piVar3 = (int *)*param_2" identifier = (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (piVar3 == (int *)param_2[1]) {\n    return 0;\n  }" if (parenthesized_expression "(piVar3 == (int *)param_2[1])" ( (binary_expression "piVar3 == (int *)param_2[1]" identifier == (cast_expression "(int *)param_2[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);" (assignment_expression "iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f)" identifier = (unary_expression "-((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f)" - (parenthesized_expression "((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f)" ( (binary_expression "(*(int *)(*piVar3 + 0x20) << 4) >> 0x1f" (parenthesized_expression "(*(int *)(*piVar3 + 0x20) << 4)" ( (binary_expression "*(int *)(*piVar3 + 0x20) << 4" (pointer_expression "*(int *)(*piVar3 + 0x20)" * (cast_expression "(int *)(*piVar3 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + 0x20)" ( (binary_expression "*piVar3 + 0x20" (pointer_expression "*piVar3" * identifier) + number_literal) )))) << number_literal) )) >> number_literal) )))) ;) (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" identifier = identifier) ;) (while_statement "while( true ) {\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    piVar3 = piVar3 + 1;\n    if (piVar3 == (int *)param_2[1]) break;\n    iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    piVar3 = piVar3 + 1;\n    if (piVar3 == (int *)param_2[1]) break;\n    iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);\n  }" { (if_statement "if (iVar1 != 0) {\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar1;\n    }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" identifier = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) (if_statement "if (piVar3 == (int *)param_2[1]) break;" if (parenthesized_expression "(piVar3 == (int *)param_2[1])" ( (binary_expression "piVar3 == (int *)param_2[1]" identifier == (cast_expression "(int *)param_2[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);" (assignment_expression "iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f)" identifier = (unary_expression "-((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f)" - (parenthesized_expression "((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f)" ( (binary_expression "(*(int *)(*piVar3 + 0x20) << 4) >> 0x1f" (parenthesized_expression "(*(int *)(*piVar3 + 0x20) << 4)" ( (binary_expression "*(int *)(*piVar3 + 0x20) << 4" (pointer_expression "*(int *)(*piVar3 + 0x20)" * (cast_expression "(int *)(*piVar3 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + 0x20)" ( (binary_expression "*piVar3 + 0x20" (pointer_expression "*piVar3" * identifier) + number_literal) )))) << number_literal) )) >> number_literal) )))) ;) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "/* DWARF original prototype: bool has_dynamic_reloc_list(Output_segment * this, Output_data_list *\n   pdl) */\n\nbool __thiscall\ngold::Output_segment::has_dynamic_reloc_list(Output_segment *this,Output_data_list *pdl)\n\n{\n  int iVar1;\n  int iVar2;\n  pointer ppOVar3;\n  pointer ppOVar4;\n  \n  ppOVar3 = (pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).\n            _M_impl._M_start;\n  ppOVar4 = (pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).\n            _M_impl._M_finish;\n  if (ppOVar3 == ppOVar4) {\n    return false;\n  }\n  iVar1 = *(int *)&(*ppOVar3)->field_0x20 << 4;\n  iVar2 = iVar1;\n  while( true ) {\n    if (-(iVar2 >> 0x1f) != 0) {\n      return SUB41(-(iVar2 >> 0x1f),0);\n    }\n    ppOVar3 = ppOVar3 + 1;\n    if (ppOVar3 == ppOVar4) break;\n    iVar2 = *(int *)&(*ppOVar3)->field_0x20 << 4;\n  }\n  return SUB41((uint)iVar1 >> 0x1f,0);\n}\n\n" comment (function_definition "bool __thiscall\ngold::Output_segment::has_dynamic_reloc_list(Output_segment *this,Output_data_list *pdl)\n\n{\n  int iVar1;\n  int iVar2;\n  pointer ppOVar3;\n  pointer ppOVar4;\n  \n  ppOVar3 = (pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).\n            _M_impl._M_start;\n  ppOVar4 = (pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).\n            _M_impl._M_finish;\n  if (ppOVar3 == ppOVar4) {\n    return false;\n  }\n  iVar1 = *(int *)&(*ppOVar3)->field_0x20 << 4;\n  iVar2 = iVar1;\n  while( true ) {\n    if (-(iVar2 >> 0x1f) != 0) {\n      return SUB41(-(iVar2 >> 0x1f),0);\n    }\n    ppOVar3 = ppOVar3 + 1;\n    if (ppOVar3 == ppOVar4) break;\n    iVar2 = *(int *)&(*ppOVar3)->field_0x20 << 4;\n  }\n  return SUB41((uint)iVar1 >> 0x1f,0);\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Output_segment::" identifier : : identifier : :) (function_declarator "has_dynamic_reloc_list(Output_segment *this,Output_data_list *pdl)" identifier (parameter_list "(Output_segment *this,Output_data_list *pdl)" ( (parameter_declaration "Output_segment *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Output_data_list *pdl" type_identifier (pointer_declarator "*pdl" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  pointer ppOVar3;\n  pointer ppOVar4;\n  \n  ppOVar3 = (pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).\n            _M_impl._M_start;\n  ppOVar4 = (pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).\n            _M_impl._M_finish;\n  if (ppOVar3 == ppOVar4) {\n    return false;\n  }\n  iVar1 = *(int *)&(*ppOVar3)->field_0x20 << 4;\n  iVar2 = iVar1;\n  while( true ) {\n    if (-(iVar2 >> 0x1f) != 0) {\n      return SUB41(-(iVar2 >> 0x1f),0);\n    }\n    ppOVar3 = ppOVar3 + 1;\n    if (ppOVar3 == ppOVar4) break;\n    iVar2 = *(int *)&(*ppOVar3)->field_0x20 << 4;\n  }\n  return SUB41((uint)iVar1 >> 0x1f,0);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "pointer ppOVar3;" type_identifier identifier ;) (declaration "pointer ppOVar4;" type_identifier identifier ;) (expression_statement "ppOVar3 = (pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).\n            _M_impl._M_start;" (assignment_expression "ppOVar3 = (pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).\n            _M_impl._M_start" identifier = (field_expression "(pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).\n            _M_impl._M_start" (field_expression "(pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).\n            _M_impl" (parenthesized_expression "(pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>)" ( (ERROR "pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::" (comma_expression "pdl->super__Vector_base<gold::Output_data*,_std" (binary_expression "pdl->super__Vector_base<gold::Output_data*" (binary_expression "pdl->super__Vector_base<gold" (field_expression "pdl->super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Output_data" : : identifier) * identifier) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : :) (binary_expression "Output_data*>_>" (binary_expression "Output_data*>_" identifier * (ERROR ">" >) identifier) > identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "ppOVar4 = (pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).\n            _M_impl._M_finish;" (assignment_expression "ppOVar4 = (pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).\n            _M_impl._M_finish" identifier = (field_expression "(pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).\n            _M_impl._M_finish" (field_expression "(pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).\n            _M_impl" (parenthesized_expression "(pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>)" ( (ERROR "pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::" (comma_expression "pdl->super__Vector_base<gold::Output_data*,_std" (binary_expression "pdl->super__Vector_base<gold::Output_data*" (binary_expression "pdl->super__Vector_base<gold" (field_expression "pdl->super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Output_data" : : identifier) * identifier) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : :) (binary_expression "Output_data*>_>" (binary_expression "Output_data*>_" identifier * (ERROR ">" >) identifier) > identifier) )) . field_identifier) . field_identifier)) ;) (if_statement "if (ppOVar3 == ppOVar4) {\n    return false;\n  }" if (parenthesized_expression "(ppOVar3 == ppOVar4)" ( (binary_expression "ppOVar3 == ppOVar4" identifier == identifier) )) (compound_statement "{\n    return false;\n  }" { (return_statement "return false;" return false ;) })) (expression_statement "iVar1 = *(int *)&(*ppOVar3)->field_0x20 << 4;" (assignment_expression "iVar1 = *(int *)&(*ppOVar3)->field_0x20 << 4" identifier = (binary_expression "*(int *)&(*ppOVar3)->field_0x20 << 4" (pointer_expression "*(int *)&(*ppOVar3)->field_0x20" * (cast_expression "(int *)&(*ppOVar3)->field_0x20" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&(*ppOVar3)->field_0x20" & (field_expression "(*ppOVar3)->field_0x20" (parenthesized_expression "(*ppOVar3)" ( (pointer_expression "*ppOVar3" * identifier) )) -> field_identifier)))) << number_literal)) ;) (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" identifier = identifier) ;) (while_statement "while( true ) {\n    if (-(iVar2 >> 0x1f) != 0) {\n      return SUB41(-(iVar2 >> 0x1f),0);\n    }\n    ppOVar3 = ppOVar3 + 1;\n    if (ppOVar3 == ppOVar4) break;\n    iVar2 = *(int *)&(*ppOVar3)->field_0x20 << 4;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (-(iVar2 >> 0x1f) != 0) {\n      return SUB41(-(iVar2 >> 0x1f),0);\n    }\n    ppOVar3 = ppOVar3 + 1;\n    if (ppOVar3 == ppOVar4) break;\n    iVar2 = *(int *)&(*ppOVar3)->field_0x20 << 4;\n  }" { (if_statement "if (-(iVar2 >> 0x1f) != 0) {\n      return SUB41(-(iVar2 >> 0x1f),0);\n    }" if (parenthesized_expression "(-(iVar2 >> 0x1f) != 0)" ( (binary_expression "-(iVar2 >> 0x1f) != 0" (unary_expression "-(iVar2 >> 0x1f)" - (parenthesized_expression "(iVar2 >> 0x1f)" ( (binary_expression "iVar2 >> 0x1f" identifier >> number_literal) ))) != number_literal) )) (compound_statement "{\n      return SUB41(-(iVar2 >> 0x1f),0);\n    }" { (return_statement "return SUB41(-(iVar2 >> 0x1f),0);" return (call_expression "SUB41(-(iVar2 >> 0x1f),0)" identifier (argument_list "(-(iVar2 >> 0x1f),0)" ( (unary_expression "-(iVar2 >> 0x1f)" - (parenthesized_expression "(iVar2 >> 0x1f)" ( (binary_expression "iVar2 >> 0x1f" identifier >> number_literal) ))) , number_literal ))) ;) })) (expression_statement "ppOVar3 = ppOVar3 + 1;" (assignment_expression "ppOVar3 = ppOVar3 + 1" identifier = (binary_expression "ppOVar3 + 1" identifier + number_literal)) ;) (if_statement "if (ppOVar3 == ppOVar4) break;" if (parenthesized_expression "(ppOVar3 == ppOVar4)" ( (binary_expression "ppOVar3 == ppOVar4" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = *(int *)&(*ppOVar3)->field_0x20 << 4;" (assignment_expression "iVar2 = *(int *)&(*ppOVar3)->field_0x20 << 4" identifier = (binary_expression "*(int *)&(*ppOVar3)->field_0x20 << 4" (pointer_expression "*(int *)&(*ppOVar3)->field_0x20" * (cast_expression "(int *)&(*ppOVar3)->field_0x20" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&(*ppOVar3)->field_0x20" & (field_expression "(*ppOVar3)->field_0x20" (parenthesized_expression "(*ppOVar3)" ( (pointer_expression "*ppOVar3" * identifier) )) -> field_identifier)))) << number_literal)) ;) })) (return_statement "return SUB41((uint)iVar1 >> 0x1f,0);" return (call_expression "SUB41((uint)iVar1 >> 0x1f,0)" identifier (argument_list "((uint)iVar1 >> 0x1f,0)" ( (binary_expression "(uint)iVar1 >> 0x1f" (cast_expression "(uint)iVar1" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) , number_literal ))) ;) })))
(translation_unit "int FUN_00187024(undefined4 param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar3 = (int *)*param_2;\n  if (piVar3 == (int *)param_2[1]) {\n    return 0;\n  }\n  iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);\n  iVar2 = iVar1;\n  while( true ) {\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    piVar3 = piVar3 + 1;\n    if (piVar3 == (int *)param_2[1]) break;\n    iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);\n  }\n  return iVar2;\n}\n\n" (function_definition "int FUN_00187024(undefined4 param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar3 = (int *)*param_2;\n  if (piVar3 == (int *)param_2[1]) {\n    return 0;\n  }\n  iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);\n  iVar2 = iVar1;\n  while( true ) {\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    piVar3 = piVar3 + 1;\n    if (piVar3 == (int *)param_2[1]) break;\n    iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_00187024(undefined4 param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar3 = (int *)*param_2;\n  if (piVar3 == (int *)param_2[1]) {\n    return 0;\n  }\n  iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);\n  iVar2 = iVar1;\n  while( true ) {\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    piVar3 = piVar3 + 1;\n    if (piVar3 == (int *)param_2[1]) break;\n    iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "piVar3 = (int *)*param_2;" (assignment_expression "piVar3 = (int *)*param_2" identifier = (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (piVar3 == (int *)param_2[1]) {\n    return 0;\n  }" if (parenthesized_expression "(piVar3 == (int *)param_2[1])" ( (binary_expression "piVar3 == (int *)param_2[1]" identifier == (cast_expression "(int *)param_2[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);" (assignment_expression "iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f)" identifier = (unary_expression "-((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f)" - (parenthesized_expression "((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f)" ( (binary_expression "(*(int *)(*piVar3 + 0x20) << 4) >> 0x1f" (parenthesized_expression "(*(int *)(*piVar3 + 0x20) << 4)" ( (binary_expression "*(int *)(*piVar3 + 0x20) << 4" (pointer_expression "*(int *)(*piVar3 + 0x20)" * (cast_expression "(int *)(*piVar3 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + 0x20)" ( (binary_expression "*piVar3 + 0x20" (pointer_expression "*piVar3" * identifier) + number_literal) )))) << number_literal) )) >> number_literal) )))) ;) (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" identifier = identifier) ;) (while_statement "while( true ) {\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    piVar3 = piVar3 + 1;\n    if (piVar3 == (int *)param_2[1]) break;\n    iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    piVar3 = piVar3 + 1;\n    if (piVar3 == (int *)param_2[1]) break;\n    iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);\n  }" { (if_statement "if (iVar1 != 0) {\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar1;\n    }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" identifier = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) (if_statement "if (piVar3 == (int *)param_2[1]) break;" if (parenthesized_expression "(piVar3 == (int *)param_2[1])" ( (binary_expression "piVar3 == (int *)param_2[1]" identifier == (cast_expression "(int *)param_2[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);" (assignment_expression "iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f)" identifier = (unary_expression "-((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f)" - (parenthesized_expression "((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f)" ( (binary_expression "(*(int *)(*piVar3 + 0x20) << 4) >> 0x1f" (parenthesized_expression "(*(int *)(*piVar3 + 0x20) << 4)" ( (binary_expression "*(int *)(*piVar3 + 0x20) << 4" (pointer_expression "*(int *)(*piVar3 + 0x20)" * (cast_expression "(int *)(*piVar3 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + 0x20)" ( (binary_expression "*piVar3 + 0x20" (pointer_expression "*piVar3" * identifier) + number_literal) )))) << number_literal) )) >> number_literal) )))) ;) })) (return_statement "return iVar2;" return identifier ;) })))
(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 ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (unary_expression - (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) << LIT) )) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (unary_expression - (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) << LIT) )) >> LIT) )))) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_00187024(undefined4 param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar3 = (int *)*param_2;\n  if (piVar3 == (int *)param_2[1]) {\n    return 0;\n  }\n  iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);\n  iVar2 = iVar1;\n  while( true ) {\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    piVar3 = piVar3 + 1;\n    if (piVar3 == (int *)param_2[1]) break;\n    iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);\n  }\n  return iVar2;\n}" (primitive_type "int") (function_declarator "FUN_00187024(undefined4 param_1,undefined4 *param_2)" (identifier "FUN_00187024") (parameter_list "(undefined4 param_1,undefined4 *param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  piVar3 = (int *)*param_2;\n  if (piVar3 == (int *)param_2[1]) {\n    return 0;\n  }\n  iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);\n  iVar2 = iVar1;\n  while( true ) {\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    piVar3 = piVar3 + 1;\n    if (piVar3 == (int *)param_2[1]) break;\n    iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);\n  }\n  return iVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (expression_statement "piVar3 = (int *)*param_2;" (assignment_expression "piVar3 = (int *)*param_2" (identifier "piVar3") (= "=") (cast_expression "(int *)*param_2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (if_statement "if (piVar3 == (int *)param_2[1]) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(piVar3 == (int *)param_2[1])" (( "(") (binary_expression "piVar3 == (int *)param_2[1]" (identifier "piVar3") (== "==") (cast_expression "(int *)param_2[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);" (assignment_expression "iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f)" (identifier "iVar1") (= "=") (unary_expression "-((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f)" (- "-") (parenthesized_expression "((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f)" (( "(") (binary_expression "(*(int *)(*piVar3 + 0x20) << 4) >> 0x1f" (parenthesized_expression "(*(int *)(*piVar3 + 0x20) << 4)" (( "(") (binary_expression "*(int *)(*piVar3 + 0x20) << 4" (pointer_expression "*(int *)(*piVar3 + 0x20)" (* "*") (cast_expression "(int *)(*piVar3 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar3 + 0x20)" (( "(") (binary_expression "*piVar3 + 0x20" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (number_literal "0x20")) () ")")))) (<< "<<") (number_literal "4")) () ")")) (>> ">>") (number_literal "0x1f")) () ")")))) (; ";")) (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" (identifier "iVar2") (= "=") (identifier "iVar1")) (; ";")) (while_statement "while( true ) {\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    piVar3 = piVar3 + 1;\n    if (piVar3 == (int *)param_2[1]) break;\n    iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    piVar3 = piVar3 + 1;\n    if (piVar3 == (int *)param_2[1]) break;\n    iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);\n  }" ({ "{") (if_statement "if (iVar1 != 0) {\n      return iVar1;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return iVar1;\n    }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" (identifier "piVar3") (= "=") (binary_expression "piVar3 + 1" (identifier "piVar3") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (piVar3 == (int *)param_2[1]) break;" (if "if") (parenthesized_expression "(piVar3 == (int *)param_2[1])" (( "(") (binary_expression "piVar3 == (int *)param_2[1]" (identifier "piVar3") (== "==") (cast_expression "(int *)param_2[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);" (assignment_expression "iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f)" (identifier "iVar1") (= "=") (unary_expression "-((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f)" (- "-") (parenthesized_expression "((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f)" (( "(") (binary_expression "(*(int *)(*piVar3 + 0x20) << 4) >> 0x1f" (parenthesized_expression "(*(int *)(*piVar3 + 0x20) << 4)" (( "(") (binary_expression "*(int *)(*piVar3 + 0x20) << 4" (pointer_expression "*(int *)(*piVar3 + 0x20)" (* "*") (cast_expression "(int *)(*piVar3 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar3 + 0x20)" (( "(") (binary_expression "*piVar3 + 0x20" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (number_literal "0x20")) () ")")))) (<< "<<") (number_literal "4")) () ")")) (>> ">>") (number_literal "0x1f")) () ")")))) (; ";")) (} "}"))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (unary_expression argument: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (number_literal))) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (unary_expression argument: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (number_literal))) right: (number_literal)))))))) (return_statement (identifier)))))

int MASKED(undefined4 param_1,undefined4 *param_2)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  
  piVar3 = (int *)*param_2;
  if (piVar3 == (int *)param_2[1]) {
    return 0;
  }
  iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);
  iVar2 = iVar1;
  while( true ) {
    if (iVar1 != 0) {
      return iVar1;
    }
    piVar3 = piVar3 + 1;
    if (piVar3 == (int *)param_2[1]) break;
    iVar1 = -((*(int *)(*piVar3 + 0x20) << 4) >> 0x1f);
  }
  return iVar2;
}

