
void bb_signals(int sigs,_func_void_int *f)

{
  uint uVar1;
  int iVar2;
  
  if (sigs != 0) {
    iVar2 = 0;
    uVar1 = 1;
    do {
      for (; (sigs & uVar1) == 0; uVar1 = uVar1 << 1) {
        iVar2 = iVar2 + 1;
      }
      sigs = sigs - uVar1;
      (*(code *)PTR_signal_0012b118)(iVar2,f);
      iVar2 = iVar2 + 1;
      uVar1 = uVar1 << 1;
    } while (sigs != 0);
    return;
  }
  return;
}



void FUN_0001c1b8(uint param_1,undefined4 param_2)

{
  uint uVar1;
  int iVar2;
  
  if (param_1 != 0) {
    iVar2 = 0;
    uVar1 = 1;
    do {
      for (; (param_1 & uVar1) == 0; uVar1 = uVar1 << 1) {
        iVar2 = iVar2 + 1;
      }
      param_1 = param_1 - uVar1;
      (*(code *)PTR_signal_0012b118)(iVar2,param_2);
      iVar2 = iVar2 + 1;
      uVar1 = uVar1 << 1;
    } while (param_1 != 0);
    return;
  }
  return;
}


lui gp,0x11
addiu gp,gp,0x5f98
addu gp,gp,t9
beq a0,zero,0x0001c240
_nop
addiu sp,sp,-0x30
sw s1,0x20(sp)
or s1,zero,zero
sw s0,0x1c(sp)
li s0,0x1
sw s3,0x28(sp)
or s3,a1,zero
sw s2,0x24(sp)
or s2,a0,zero
sw gp,0x10(sp)
sw ra,0x2c(sp)
and v0,s2,s0
beq v0,zero,0x0001c248
_lw t9,-0x7038(gp)
subu s2,s2,s0
or a0,s1,zero
jalr t9
_or a1,s3,zero
addiu s1,s1,0x1
lw gp,0x10(sp)
bne s2,zero,0x0001c1f8
_sll s0,s0,0x1
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
jr ra
_nop
addiu s1,s1,0x1
b 0x0001c1f8
_sll s0,s0,0x1
(translation_unit "void FUN_0001c1b8(uint param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  if (param_1 != 0) {\n    iVar2 = 0;\n    uVar1 = 1;\n    do {\n      for (; (param_1 & uVar1) == 0; uVar1 = uVar1 << 1) {\n        iVar2 = iVar2 + 1;\n      }\n      param_1 = param_1 - uVar1;\n      (*(code *)PTR_signal_0012b118)(iVar2,param_2);\n      iVar2 = iVar2 + 1;\n      uVar1 = uVar1 << 1;\n    } while (param_1 != 0);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0001c1b8(uint param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  if (param_1 != 0) {\n    iVar2 = 0;\n    uVar1 = 1;\n    do {\n      for (; (param_1 & uVar1) == 0; uVar1 = uVar1 << 1) {\n        iVar2 = iVar2 + 1;\n      }\n      param_1 = param_1 - uVar1;\n      (*(code *)PTR_signal_0012b118)(iVar2,param_2);\n      iVar2 = iVar2 + 1;\n      uVar1 = uVar1 << 1;\n    } while (param_1 != 0);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0001c1b8(uint param_1,undefined4 param_2)" identifier (parameter_list "(uint param_1,undefined4 param_2)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  \n  if (param_1 != 0) {\n    iVar2 = 0;\n    uVar1 = 1;\n    do {\n      for (; (param_1 & uVar1) == 0; uVar1 = uVar1 << 1) {\n        iVar2 = iVar2 + 1;\n      }\n      param_1 = param_1 - uVar1;\n      (*(code *)PTR_signal_0012b118)(iVar2,param_2);\n      iVar2 = iVar2 + 1;\n      uVar1 = uVar1 << 1;\n    } while (param_1 != 0);\n    return;\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (param_1 != 0) {\n    iVar2 = 0;\n    uVar1 = 1;\n    do {\n      for (; (param_1 & uVar1) == 0; uVar1 = uVar1 << 1) {\n        iVar2 = iVar2 + 1;\n      }\n      param_1 = param_1 - uVar1;\n      (*(code *)PTR_signal_0012b118)(iVar2,param_2);\n      iVar2 = iVar2 + 1;\n      uVar1 = uVar1 << 1;\n    } while (param_1 != 0);\n    return;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = 0;\n    uVar1 = 1;\n    do {\n      for (; (param_1 & uVar1) == 0; uVar1 = uVar1 << 1) {\n        iVar2 = iVar2 + 1;\n      }\n      param_1 = param_1 - uVar1;\n      (*(code *)PTR_signal_0012b118)(iVar2,param_2);\n      iVar2 = iVar2 + 1;\n      uVar1 = uVar1 << 1;\n    } while (param_1 != 0);\n    return;\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" identifier = number_literal) ;) (do_statement "do {\n      for (; (param_1 & uVar1) == 0; uVar1 = uVar1 << 1) {\n        iVar2 = iVar2 + 1;\n      }\n      param_1 = param_1 - uVar1;\n      (*(code *)PTR_signal_0012b118)(iVar2,param_2);\n      iVar2 = iVar2 + 1;\n      uVar1 = uVar1 << 1;\n    } while (param_1 != 0);" do (compound_statement "{\n      for (; (param_1 & uVar1) == 0; uVar1 = uVar1 << 1) {\n        iVar2 = iVar2 + 1;\n      }\n      param_1 = param_1 - uVar1;\n      (*(code *)PTR_signal_0012b118)(iVar2,param_2);\n      iVar2 = iVar2 + 1;\n      uVar1 = uVar1 << 1;\n    }" { (for_statement "for (; (param_1 & uVar1) == 0; uVar1 = uVar1 << 1) {\n        iVar2 = iVar2 + 1;\n      }" for ( ; (binary_expression "(param_1 & uVar1) == 0" (parenthesized_expression "(param_1 & uVar1)" ( (binary_expression "param_1 & uVar1" identifier & identifier) )) == number_literal) ; (assignment_expression "uVar1 = uVar1 << 1" identifier = (binary_expression "uVar1 << 1" identifier << number_literal)) ) (compound_statement "{\n        iVar2 = iVar2 + 1;\n      }" { (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) })) (expression_statement "param_1 = param_1 - uVar1;" (assignment_expression "param_1 = param_1 - uVar1" identifier = (binary_expression "param_1 - uVar1" identifier - identifier)) ;) (expression_statement "(*(code *)PTR_signal_0012b118)(iVar2,param_2);" (call_expression "(*(code *)PTR_signal_0012b118)(iVar2,param_2)" (parenthesized_expression "(*(code *)PTR_signal_0012b118)" ( (pointer_expression "*(code *)PTR_signal_0012b118" * (cast_expression "(code *)PTR_signal_0012b118" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,param_2)" ( identifier , identifier ))) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = uVar1 << 1;" (assignment_expression "uVar1 = uVar1 << 1" identifier = (binary_expression "uVar1 << 1" identifier << number_literal)) ;) }) while (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void bb_signals(int sigs,_func_void_int *f)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  if (sigs != 0) {\n    iVar2 = 0;\n    uVar1 = 1;\n    do {\n      for (; (sigs & uVar1) == 0; uVar1 = uVar1 << 1) {\n        iVar2 = iVar2 + 1;\n      }\n      sigs = sigs - uVar1;\n      (*(code *)PTR_signal_0012b118)(iVar2,f);\n      iVar2 = iVar2 + 1;\n      uVar1 = uVar1 << 1;\n    } while (sigs != 0);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void bb_signals(int sigs,_func_void_int *f)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  if (sigs != 0) {\n    iVar2 = 0;\n    uVar1 = 1;\n    do {\n      for (; (sigs & uVar1) == 0; uVar1 = uVar1 << 1) {\n        iVar2 = iVar2 + 1;\n      }\n      sigs = sigs - uVar1;\n      (*(code *)PTR_signal_0012b118)(iVar2,f);\n      iVar2 = iVar2 + 1;\n      uVar1 = uVar1 << 1;\n    } while (sigs != 0);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "bb_signals(int sigs,_func_void_int *f)" identifier (parameter_list "(int sigs,_func_void_int *f)" ( (parameter_declaration "int sigs" primitive_type identifier) , (parameter_declaration "_func_void_int *f" type_identifier (pointer_declarator "*f" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  \n  if (sigs != 0) {\n    iVar2 = 0;\n    uVar1 = 1;\n    do {\n      for (; (sigs & uVar1) == 0; uVar1 = uVar1 << 1) {\n        iVar2 = iVar2 + 1;\n      }\n      sigs = sigs - uVar1;\n      (*(code *)PTR_signal_0012b118)(iVar2,f);\n      iVar2 = iVar2 + 1;\n      uVar1 = uVar1 << 1;\n    } while (sigs != 0);\n    return;\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (sigs != 0) {\n    iVar2 = 0;\n    uVar1 = 1;\n    do {\n      for (; (sigs & uVar1) == 0; uVar1 = uVar1 << 1) {\n        iVar2 = iVar2 + 1;\n      }\n      sigs = sigs - uVar1;\n      (*(code *)PTR_signal_0012b118)(iVar2,f);\n      iVar2 = iVar2 + 1;\n      uVar1 = uVar1 << 1;\n    } while (sigs != 0);\n    return;\n  }" if (parenthesized_expression "(sigs != 0)" ( (binary_expression "sigs != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = 0;\n    uVar1 = 1;\n    do {\n      for (; (sigs & uVar1) == 0; uVar1 = uVar1 << 1) {\n        iVar2 = iVar2 + 1;\n      }\n      sigs = sigs - uVar1;\n      (*(code *)PTR_signal_0012b118)(iVar2,f);\n      iVar2 = iVar2 + 1;\n      uVar1 = uVar1 << 1;\n    } while (sigs != 0);\n    return;\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" identifier = number_literal) ;) (do_statement "do {\n      for (; (sigs & uVar1) == 0; uVar1 = uVar1 << 1) {\n        iVar2 = iVar2 + 1;\n      }\n      sigs = sigs - uVar1;\n      (*(code *)PTR_signal_0012b118)(iVar2,f);\n      iVar2 = iVar2 + 1;\n      uVar1 = uVar1 << 1;\n    } while (sigs != 0);" do (compound_statement "{\n      for (; (sigs & uVar1) == 0; uVar1 = uVar1 << 1) {\n        iVar2 = iVar2 + 1;\n      }\n      sigs = sigs - uVar1;\n      (*(code *)PTR_signal_0012b118)(iVar2,f);\n      iVar2 = iVar2 + 1;\n      uVar1 = uVar1 << 1;\n    }" { (for_statement "for (; (sigs & uVar1) == 0; uVar1 = uVar1 << 1) {\n        iVar2 = iVar2 + 1;\n      }" for ( ; (binary_expression "(sigs & uVar1) == 0" (parenthesized_expression "(sigs & uVar1)" ( (binary_expression "sigs & uVar1" identifier & identifier) )) == number_literal) ; (assignment_expression "uVar1 = uVar1 << 1" identifier = (binary_expression "uVar1 << 1" identifier << number_literal)) ) (compound_statement "{\n        iVar2 = iVar2 + 1;\n      }" { (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) })) (expression_statement "sigs = sigs - uVar1;" (assignment_expression "sigs = sigs - uVar1" identifier = (binary_expression "sigs - uVar1" identifier - identifier)) ;) (expression_statement "(*(code *)PTR_signal_0012b118)(iVar2,f);" (call_expression "(*(code *)PTR_signal_0012b118)(iVar2,f)" (parenthesized_expression "(*(code *)PTR_signal_0012b118)" ( (pointer_expression "*(code *)PTR_signal_0012b118" * (cast_expression "(code *)PTR_signal_0012b118" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,f)" ( identifier , identifier ))) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = uVar1 << 1;" (assignment_expression "uVar1 = uVar1 << 1" identifier = (binary_expression "uVar1 << 1" identifier << number_literal)) ;) }) while (parenthesized_expression "(sigs != 0)" ( (binary_expression "sigs != 0" identifier != number_literal) )) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0001c1b8(uint param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  if (param_1 != 0) {\n    iVar2 = 0;\n    uVar1 = 1;\n    do {\n      for (; (param_1 & uVar1) == 0; uVar1 = uVar1 << 1) {\n        iVar2 = iVar2 + 1;\n      }\n      param_1 = param_1 - uVar1;\n      (*(code *)PTR_signal_0012b118)(iVar2,param_2);\n      iVar2 = iVar2 + 1;\n      uVar1 = uVar1 << 1;\n    } while (param_1 != 0);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0001c1b8(uint param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  if (param_1 != 0) {\n    iVar2 = 0;\n    uVar1 = 1;\n    do {\n      for (; (param_1 & uVar1) == 0; uVar1 = uVar1 << 1) {\n        iVar2 = iVar2 + 1;\n      }\n      param_1 = param_1 - uVar1;\n      (*(code *)PTR_signal_0012b118)(iVar2,param_2);\n      iVar2 = iVar2 + 1;\n      uVar1 = uVar1 << 1;\n    } while (param_1 != 0);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0001c1b8(uint param_1,undefined4 param_2)" identifier (parameter_list "(uint param_1,undefined4 param_2)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  \n  if (param_1 != 0) {\n    iVar2 = 0;\n    uVar1 = 1;\n    do {\n      for (; (param_1 & uVar1) == 0; uVar1 = uVar1 << 1) {\n        iVar2 = iVar2 + 1;\n      }\n      param_1 = param_1 - uVar1;\n      (*(code *)PTR_signal_0012b118)(iVar2,param_2);\n      iVar2 = iVar2 + 1;\n      uVar1 = uVar1 << 1;\n    } while (param_1 != 0);\n    return;\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (param_1 != 0) {\n    iVar2 = 0;\n    uVar1 = 1;\n    do {\n      for (; (param_1 & uVar1) == 0; uVar1 = uVar1 << 1) {\n        iVar2 = iVar2 + 1;\n      }\n      param_1 = param_1 - uVar1;\n      (*(code *)PTR_signal_0012b118)(iVar2,param_2);\n      iVar2 = iVar2 + 1;\n      uVar1 = uVar1 << 1;\n    } while (param_1 != 0);\n    return;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = 0;\n    uVar1 = 1;\n    do {\n      for (; (param_1 & uVar1) == 0; uVar1 = uVar1 << 1) {\n        iVar2 = iVar2 + 1;\n      }\n      param_1 = param_1 - uVar1;\n      (*(code *)PTR_signal_0012b118)(iVar2,param_2);\n      iVar2 = iVar2 + 1;\n      uVar1 = uVar1 << 1;\n    } while (param_1 != 0);\n    return;\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" identifier = number_literal) ;) (do_statement "do {\n      for (; (param_1 & uVar1) == 0; uVar1 = uVar1 << 1) {\n        iVar2 = iVar2 + 1;\n      }\n      param_1 = param_1 - uVar1;\n      (*(code *)PTR_signal_0012b118)(iVar2,param_2);\n      iVar2 = iVar2 + 1;\n      uVar1 = uVar1 << 1;\n    } while (param_1 != 0);" do (compound_statement "{\n      for (; (param_1 & uVar1) == 0; uVar1 = uVar1 << 1) {\n        iVar2 = iVar2 + 1;\n      }\n      param_1 = param_1 - uVar1;\n      (*(code *)PTR_signal_0012b118)(iVar2,param_2);\n      iVar2 = iVar2 + 1;\n      uVar1 = uVar1 << 1;\n    }" { (for_statement "for (; (param_1 & uVar1) == 0; uVar1 = uVar1 << 1) {\n        iVar2 = iVar2 + 1;\n      }" for ( ; (binary_expression "(param_1 & uVar1) == 0" (parenthesized_expression "(param_1 & uVar1)" ( (binary_expression "param_1 & uVar1" identifier & identifier) )) == number_literal) ; (assignment_expression "uVar1 = uVar1 << 1" identifier = (binary_expression "uVar1 << 1" identifier << number_literal)) ) (compound_statement "{\n        iVar2 = iVar2 + 1;\n      }" { (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) })) (expression_statement "param_1 = param_1 - uVar1;" (assignment_expression "param_1 = param_1 - uVar1" identifier = (binary_expression "param_1 - uVar1" identifier - identifier)) ;) (expression_statement "(*(code *)PTR_signal_0012b118)(iVar2,param_2);" (call_expression "(*(code *)PTR_signal_0012b118)(iVar2,param_2)" (parenthesized_expression "(*(code *)PTR_signal_0012b118)" ( (pointer_expression "*(code *)PTR_signal_0012b118" * (cast_expression "(code *)PTR_signal_0012b118" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,param_2)" ( identifier , identifier ))) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = uVar1 << 1;" (assignment_expression "uVar1 = uVar1 << 1" identifier = (binary_expression "uVar1 << 1" identifier << number_literal)) ;) }) while (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (for_statement for ( ; (binary_expression (parenthesized_expression ( (binary_expression IDENT & IDENT) )) == LIT) ; (assignment_expression IDENT = (binary_expression IDENT << LIT)) ) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT << LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_0001c1b8(uint param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  if (param_1 != 0) {\n    iVar2 = 0;\n    uVar1 = 1;\n    do {\n      for (; (param_1 & uVar1) == 0; uVar1 = uVar1 << 1) {\n        iVar2 = iVar2 + 1;\n      }\n      param_1 = param_1 - uVar1;\n      (*(code *)PTR_signal_0012b118)(iVar2,param_2);\n      iVar2 = iVar2 + 1;\n      uVar1 = uVar1 << 1;\n    } while (param_1 != 0);\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001c1b8(uint param_1,undefined4 param_2)" (identifier "FUN_0001c1b8") (parameter_list "(uint param_1,undefined4 param_2)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  \n  if (param_1 != 0) {\n    iVar2 = 0;\n    uVar1 = 1;\n    do {\n      for (; (param_1 & uVar1) == 0; uVar1 = uVar1 << 1) {\n        iVar2 = iVar2 + 1;\n      }\n      param_1 = param_1 - uVar1;\n      (*(code *)PTR_signal_0012b118)(iVar2,param_2);\n      iVar2 = iVar2 + 1;\n      uVar1 = uVar1 << 1;\n    } while (param_1 != 0);\n    return;\n  }\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (if_statement "if (param_1 != 0) {\n    iVar2 = 0;\n    uVar1 = 1;\n    do {\n      for (; (param_1 & uVar1) == 0; uVar1 = uVar1 << 1) {\n        iVar2 = iVar2 + 1;\n      }\n      param_1 = param_1 - uVar1;\n      (*(code *)PTR_signal_0012b118)(iVar2,param_2);\n      iVar2 = iVar2 + 1;\n      uVar1 = uVar1 << 1;\n    } while (param_1 != 0);\n    return;\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = 0;\n    uVar1 = 1;\n    do {\n      for (; (param_1 & uVar1) == 0; uVar1 = uVar1 << 1) {\n        iVar2 = iVar2 + 1;\n      }\n      param_1 = param_1 - uVar1;\n      (*(code *)PTR_signal_0012b118)(iVar2,param_2);\n      iVar2 = iVar2 + 1;\n      uVar1 = uVar1 << 1;\n    } while (param_1 != 0);\n    return;\n  }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" (identifier "uVar1") (= "=") (number_literal "1")) (; ";")) (do_statement "do {\n      for (; (param_1 & uVar1) == 0; uVar1 = uVar1 << 1) {\n        iVar2 = iVar2 + 1;\n      }\n      param_1 = param_1 - uVar1;\n      (*(code *)PTR_signal_0012b118)(iVar2,param_2);\n      iVar2 = iVar2 + 1;\n      uVar1 = uVar1 << 1;\n    } while (param_1 != 0);" (do "do") (compound_statement "{\n      for (; (param_1 & uVar1) == 0; uVar1 = uVar1 << 1) {\n        iVar2 = iVar2 + 1;\n      }\n      param_1 = param_1 - uVar1;\n      (*(code *)PTR_signal_0012b118)(iVar2,param_2);\n      iVar2 = iVar2 + 1;\n      uVar1 = uVar1 << 1;\n    }" ({ "{") (for_statement "for (; (param_1 & uVar1) == 0; uVar1 = uVar1 << 1) {\n        iVar2 = iVar2 + 1;\n      }" (for "for") (( "(") (; ";") (binary_expression "(param_1 & uVar1) == 0" (parenthesized_expression "(param_1 & uVar1)" (( "(") (binary_expression "param_1 & uVar1" (identifier "param_1") (& "&") (identifier "uVar1")) () ")")) (== "==") (number_literal "0")) (; ";") (assignment_expression "uVar1 = uVar1 << 1" (identifier "uVar1") (= "=") (binary_expression "uVar1 << 1" (identifier "uVar1") (<< "<<") (number_literal "1"))) () ")") (compound_statement "{\n        iVar2 = iVar2 + 1;\n      }" ({ "{") (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "param_1 = param_1 - uVar1;" (assignment_expression "param_1 = param_1 - uVar1" (identifier "param_1") (= "=") (binary_expression "param_1 - uVar1" (identifier "param_1") (- "-") (identifier "uVar1"))) (; ";")) (expression_statement "(*(code *)PTR_signal_0012b118)(iVar2,param_2);" (call_expression "(*(code *)PTR_signal_0012b118)(iVar2,param_2)" (parenthesized_expression "(*(code *)PTR_signal_0012b118)" (( "(") (pointer_expression "*(code *)PTR_signal_0012b118" (* "*") (cast_expression "(code *)PTR_signal_0012b118" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_signal_0012b118"))) () ")")) (argument_list "(iVar2,param_2)" (( "(") (identifier "iVar2") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar1 = uVar1 << 1;" (assignment_expression "uVar1 = uVar1 << 1" (identifier "uVar1") (= "=") (binary_expression "uVar1 << 1" (identifier "uVar1") (<< "<<") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))
(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: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (for_statement condition: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (return_statement))) (return_statement))))

void MASKED(uint param_1,undefined4 param_2)

{
  uint uVar1;
  int iVar2;
  
  if (param_1 != 0) {
    iVar2 = 0;
    uVar1 = 1;
    do {
      for (; (param_1 & uVar1) == 0; uVar1 = uVar1 << 1) {
        iVar2 = iVar2 + 1;
      }
      param_1 = param_1 - uVar1;
      (*(code *)PTR_signal_0012b118)(iVar2,param_2);
      iVar2 = iVar2 + 1;
      uVar1 = uVar1 << 1;
    } while (param_1 != 0);
    return;
  }
  return;
}

