
void fd_ring_clear(I_ring *fd_ring)

{
  undefined3 extraout_var;
  int iVar1;
  _Bool _Var2;
  
  while (_Var2 = i_ring_empty(fd_ring), CONCAT31(extraout_var,_Var2) == 0) {
    iVar1 = i_ring_pop(fd_ring);
    if (-1 < iVar1) {
      (*(code *)PTR_close_00030278)(iVar1);
    }
  }
  return;
}



void FUN_00017528(undefined4 param_1)

{
  int iVar1;
  
  while (iVar1 = i_ring_empty(param_1), iVar1 == 0) {
    iVar1 = i_ring_pop(param_1);
    if (-1 < iVar1) {
      (*(code *)PTR_close_00030278)(iVar1);
    }
  }
  return;
}


lui gp,0x2
addiu gp,gp,0xba8
addu gp,gp,t9
addiu sp,sp,-0x20
sw gp,0x10(sp)
sw s0,0x18(sp)
or s0,a0,zero
b 0x0001755c
_sw ra,0x1c(sp)
bal 0x0001ce04
_nop
bgez v0,0x00017588
_lw gp,0x10(sp)
lw t9,-0x7ef4(gp)
bal 0x0001cdb8
_or a0,s0,zero
or a0,s0,zero
lw gp,0x10(sp)
beq v0,zero,0x0001754c
_lw t9,-0x7ef0(gp)
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw t9,-0x7e58(gp)
jalr t9
_or a0,v0,zero
b 0x0001755c
_lw gp,0x10(sp)
(translation_unit "void FUN_00017528(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  while (iVar1 = i_ring_empty(param_1), iVar1 == 0) {\n    iVar1 = i_ring_pop(param_1);\n    if (-1 < iVar1) {\n      (*(code *)PTR_close_00030278)(iVar1);\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00017528(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  while (iVar1 = i_ring_empty(param_1), iVar1 == 0) {\n    iVar1 = i_ring_pop(param_1);\n    if (-1 < iVar1) {\n      (*(code *)PTR_close_00030278)(iVar1);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00017528(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  while (iVar1 = i_ring_empty(param_1), iVar1 == 0) {\n    iVar1 = i_ring_pop(param_1);\n    if (-1 < iVar1) {\n      (*(code *)PTR_close_00030278)(iVar1);\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (while_statement "while (iVar1 = i_ring_empty(param_1), iVar1 == 0) {\n    iVar1 = i_ring_pop(param_1);\n    if (-1 < iVar1) {\n      (*(code *)PTR_close_00030278)(iVar1);\n    }\n  }" while (parenthesized_expression "(iVar1 = i_ring_empty(param_1), iVar1 == 0)" ( (comma_expression "iVar1 = i_ring_empty(param_1), iVar1 == 0" (assignment_expression "iVar1 = i_ring_empty(param_1)" identifier = (call_expression "i_ring_empty(param_1)" identifier (argument_list "(param_1)" ( identifier )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) )) (compound_statement "{\n    iVar1 = i_ring_pop(param_1);\n    if (-1 < iVar1) {\n      (*(code *)PTR_close_00030278)(iVar1);\n    }\n  }" { (expression_statement "iVar1 = i_ring_pop(param_1);" (assignment_expression "iVar1 = i_ring_pop(param_1)" identifier = (call_expression "i_ring_pop(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (-1 < iVar1) {\n      (*(code *)PTR_close_00030278)(iVar1);\n    }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n      (*(code *)PTR_close_00030278)(iVar1);\n    }" { (expression_statement "(*(code *)PTR_close_00030278)(iVar1);" (call_expression "(*(code *)PTR_close_00030278)(iVar1)" (parenthesized_expression "(*(code *)PTR_close_00030278)" ( (pointer_expression "*(code *)PTR_close_00030278" * (cast_expression "(code *)PTR_close_00030278" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void fd_ring_clear(I_ring *fd_ring)\n\n{\n  undefined3 extraout_var;\n  int iVar1;\n  _Bool _Var2;\n  \n  while (_Var2 = i_ring_empty(fd_ring), CONCAT31(extraout_var,_Var2) == 0) {\n    iVar1 = i_ring_pop(fd_ring);\n    if (-1 < iVar1) {\n      (*(code *)PTR_close_00030278)(iVar1);\n    }\n  }\n  return;\n}\n\n" (function_definition "void fd_ring_clear(I_ring *fd_ring)\n\n{\n  undefined3 extraout_var;\n  int iVar1;\n  _Bool _Var2;\n  \n  while (_Var2 = i_ring_empty(fd_ring), CONCAT31(extraout_var,_Var2) == 0) {\n    iVar1 = i_ring_pop(fd_ring);\n    if (-1 < iVar1) {\n      (*(code *)PTR_close_00030278)(iVar1);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "fd_ring_clear(I_ring *fd_ring)" identifier (parameter_list "(I_ring *fd_ring)" ( (parameter_declaration "I_ring *fd_ring" type_identifier (pointer_declarator "*fd_ring" * identifier)) ))) (compound_statement "{\n  undefined3 extraout_var;\n  int iVar1;\n  _Bool _Var2;\n  \n  while (_Var2 = i_ring_empty(fd_ring), CONCAT31(extraout_var,_Var2) == 0) {\n    iVar1 = i_ring_pop(fd_ring);\n    if (-1 < iVar1) {\n      (*(code *)PTR_close_00030278)(iVar1);\n    }\n  }\n  return;\n}" { (declaration "undefined3 extraout_var;" type_identifier identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "_Bool _Var2;" type_identifier identifier ;) (while_statement "while (_Var2 = i_ring_empty(fd_ring), CONCAT31(extraout_var,_Var2) == 0) {\n    iVar1 = i_ring_pop(fd_ring);\n    if (-1 < iVar1) {\n      (*(code *)PTR_close_00030278)(iVar1);\n    }\n  }" while (parenthesized_expression "(_Var2 = i_ring_empty(fd_ring), CONCAT31(extraout_var,_Var2) == 0)" ( (comma_expression "_Var2 = i_ring_empty(fd_ring), CONCAT31(extraout_var,_Var2) == 0" (assignment_expression "_Var2 = i_ring_empty(fd_ring)" identifier = (call_expression "i_ring_empty(fd_ring)" identifier (argument_list "(fd_ring)" ( identifier )))) , (binary_expression "CONCAT31(extraout_var,_Var2) == 0" (call_expression "CONCAT31(extraout_var,_Var2)" identifier (argument_list "(extraout_var,_Var2)" ( identifier , identifier ))) == number_literal)) )) (compound_statement "{\n    iVar1 = i_ring_pop(fd_ring);\n    if (-1 < iVar1) {\n      (*(code *)PTR_close_00030278)(iVar1);\n    }\n  }" { (expression_statement "iVar1 = i_ring_pop(fd_ring);" (assignment_expression "iVar1 = i_ring_pop(fd_ring)" identifier = (call_expression "i_ring_pop(fd_ring)" identifier (argument_list "(fd_ring)" ( identifier )))) ;) (if_statement "if (-1 < iVar1) {\n      (*(code *)PTR_close_00030278)(iVar1);\n    }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n      (*(code *)PTR_close_00030278)(iVar1);\n    }" { (expression_statement "(*(code *)PTR_close_00030278)(iVar1);" (call_expression "(*(code *)PTR_close_00030278)(iVar1)" (parenthesized_expression "(*(code *)PTR_close_00030278)" ( (pointer_expression "*(code *)PTR_close_00030278" * (cast_expression "(code *)PTR_close_00030278" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00017528(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  while (iVar1 = i_ring_empty(param_1), iVar1 == 0) {\n    iVar1 = i_ring_pop(param_1);\n    if (-1 < iVar1) {\n      (*(code *)PTR_close_00030278)(iVar1);\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00017528(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  while (iVar1 = i_ring_empty(param_1), iVar1 == 0) {\n    iVar1 = i_ring_pop(param_1);\n    if (-1 < iVar1) {\n      (*(code *)PTR_close_00030278)(iVar1);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00017528(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  while (iVar1 = i_ring_empty(param_1), iVar1 == 0) {\n    iVar1 = i_ring_pop(param_1);\n    if (-1 < iVar1) {\n      (*(code *)PTR_close_00030278)(iVar1);\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (while_statement "while (iVar1 = i_ring_empty(param_1), iVar1 == 0) {\n    iVar1 = i_ring_pop(param_1);\n    if (-1 < iVar1) {\n      (*(code *)PTR_close_00030278)(iVar1);\n    }\n  }" while (parenthesized_expression "(iVar1 = i_ring_empty(param_1), iVar1 == 0)" ( (comma_expression "iVar1 = i_ring_empty(param_1), iVar1 == 0" (assignment_expression "iVar1 = i_ring_empty(param_1)" identifier = (call_expression "i_ring_empty(param_1)" identifier (argument_list "(param_1)" ( identifier )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) )) (compound_statement "{\n    iVar1 = i_ring_pop(param_1);\n    if (-1 < iVar1) {\n      (*(code *)PTR_close_00030278)(iVar1);\n    }\n  }" { (expression_statement "iVar1 = i_ring_pop(param_1);" (assignment_expression "iVar1 = i_ring_pop(param_1)" identifier = (call_expression "i_ring_pop(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (-1 < iVar1) {\n      (*(code *)PTR_close_00030278)(iVar1);\n    }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n      (*(code *)PTR_close_00030278)(iVar1);\n    }" { (expression_statement "(*(code *)PTR_close_00030278)(iVar1);" (call_expression "(*(code *)PTR_close_00030278)(iVar1)" (parenthesized_expression "(*(code *)PTR_close_00030278)" ( (pointer_expression "*(code *)PTR_close_00030278" * (cast_expression "(code *)PTR_close_00030278" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression IDENT == LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_00017528(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  while (iVar1 = i_ring_empty(param_1), iVar1 == 0) {\n    iVar1 = i_ring_pop(param_1);\n    if (-1 < iVar1) {\n      (*(code *)PTR_close_00030278)(iVar1);\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00017528(undefined4 param_1)" (identifier "FUN_00017528") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  while (iVar1 = i_ring_empty(param_1), iVar1 == 0) {\n    iVar1 = i_ring_pop(param_1);\n    if (-1 < iVar1) {\n      (*(code *)PTR_close_00030278)(iVar1);\n    }\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (while_statement "while (iVar1 = i_ring_empty(param_1), iVar1 == 0) {\n    iVar1 = i_ring_pop(param_1);\n    if (-1 < iVar1) {\n      (*(code *)PTR_close_00030278)(iVar1);\n    }\n  }" (while "while") (parenthesized_expression "(iVar1 = i_ring_empty(param_1), iVar1 == 0)" (( "(") (comma_expression "iVar1 = i_ring_empty(param_1), iVar1 == 0" (assignment_expression "iVar1 = i_ring_empty(param_1)" (identifier "iVar1") (= "=") (call_expression "i_ring_empty(param_1)" (identifier "i_ring_empty") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (, ",") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0"))) () ")")) (compound_statement "{\n    iVar1 = i_ring_pop(param_1);\n    if (-1 < iVar1) {\n      (*(code *)PTR_close_00030278)(iVar1);\n    }\n  }" ({ "{") (expression_statement "iVar1 = i_ring_pop(param_1);" (assignment_expression "iVar1 = i_ring_pop(param_1)" (identifier "iVar1") (= "=") (call_expression "i_ring_pop(param_1)" (identifier "i_ring_pop") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (-1 < iVar1) {\n      (*(code *)PTR_close_00030278)(iVar1);\n    }" (if "if") (parenthesized_expression "(-1 < iVar1)" (( "(") (binary_expression "-1 < iVar1" (number_literal "-1") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n      (*(code *)PTR_close_00030278)(iVar1);\n    }" ({ "{") (expression_statement "(*(code *)PTR_close_00030278)(iVar1);" (call_expression "(*(code *)PTR_close_00030278)(iVar1)" (parenthesized_expression "(*(code *)PTR_close_00030278)" (( "(") (pointer_expression "*(code *)PTR_close_00030278" (* "*") (cast_expression "(code *)PTR_close_00030278" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_close_00030278"))) () ")")) (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (} "}"))) (} "}"))) (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)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))) right: (binary_expression left: (identifier) right: (number_literal)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (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)))))))) (return_statement))))

void MASKED(undefined4 param_1)

{
  int iVar1;
  
  while (iVar1 = i_ring_empty(param_1), iVar1 == 0) {
    iVar1 = i_ring_pop(param_1);
    if (-1 < iVar1) {
      (*(code *)PTR_close_00030278)(iVar1);
    }
  }
  return;
}

