
int i_ring_pop(I_ring *ir)

{
  undefined3 extraout_var;
  _Bool _Var2;
  int iVar1;
  uint uVar3;
  
  _Var2 = i_ring_empty(ir);
  if (CONCAT31(extraout_var,_Var2) == 0) {
    uVar3 = ir->ir_front;
    iVar1 = ir->ir_data[uVar3];
    ir->ir_data[uVar3] = ir->ir_default_val;
    if (uVar3 == ir->ir_back) {
      ir->ir_empty = true;
    }
    else {
      ir->ir_front = uVar3 + 3 & 3;
    }
    return iVar1;
  }
  iVar1 = (*(code *)PTR_abort_000332c0)();
  return iVar1;
}



undefined4 i_ring_pop(int param_1)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 *puVar3;
  
  iVar1 = i_ring_empty();
  if (iVar1 == 0) {
    iVar1 = *(int *)(param_1 + 0x14);
    puVar3 = (undefined4 *)(param_1 + iVar1 * 4);
    uVar2 = *puVar3;
    *puVar3 = *(undefined4 *)(param_1 + 0x10);
    if (iVar1 == *(int *)(param_1 + 0x18)) {
      *(undefined1 *)(param_1 + 0x1c) = 1;
    }
    else {
      *(uint *)(param_1 + 0x14) = iVar1 + 3U & 3;
    }
    return uVar2;
  }
  uVar2 = (*(code *)PTR_abort_000332c0)();
  return uVar2;
}


lui gp,0x2
addiu gp,gp,-0x3608
addu gp,gp,t9
addiu sp,sp,-0x20
sw ra,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
or s0,a0,zero
lw t9,-0x7ee0(gp)
bal 0x0001e688
_nop
lw gp,0x10(sp)
bne v0,zero,0x0001e74c
_lw t9,-0x7e10(gp)
lw v1,0x14(s0)
sll a0,v1,0x2
addu a0,s0,a0
lw v0,0x0(a0)
lw a1,0x10(s0)
sw a1,0x0(a0)
lw a0,0x18(s0)
beq v1,a0,0x0001e754
_addiu v1,v1,0x3
andi v1,v1,0x3
sw v1,0x14(s0)
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
jalr t9
_nop
li v1,0x1
b 0x0001e73c
_sb v1,0x1c(s0)
(translation_unit "undefined4 i_ring_pop(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  iVar1 = i_ring_empty();\n  if (iVar1 == 0) {\n    iVar1 = *(int *)(param_1 + 0x14);\n    puVar3 = (undefined4 *)(param_1 + iVar1 * 4);\n    uVar2 = *puVar3;\n    *puVar3 = *(undefined4 *)(param_1 + 0x10);\n    if (iVar1 == *(int *)(param_1 + 0x18)) {\n      *(undefined1 *)(param_1 + 0x1c) = 1;\n    }\n    else {\n      *(uint *)(param_1 + 0x14) = iVar1 + 3U & 3;\n    }\n    return uVar2;\n  }\n  uVar2 = (*(code *)PTR_abort_000332c0)();\n  return uVar2;\n}\n\n" (function_definition "undefined4 i_ring_pop(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  iVar1 = i_ring_empty();\n  if (iVar1 == 0) {\n    iVar1 = *(int *)(param_1 + 0x14);\n    puVar3 = (undefined4 *)(param_1 + iVar1 * 4);\n    uVar2 = *puVar3;\n    *puVar3 = *(undefined4 *)(param_1 + 0x10);\n    if (iVar1 == *(int *)(param_1 + 0x18)) {\n      *(undefined1 *)(param_1 + 0x1c) = 1;\n    }\n    else {\n      *(uint *)(param_1 + 0x14) = iVar1 + 3U & 3;\n    }\n    return uVar2;\n  }\n  uVar2 = (*(code *)PTR_abort_000332c0)();\n  return uVar2;\n}" type_identifier (function_declarator "i_ring_pop(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  iVar1 = i_ring_empty();\n  if (iVar1 == 0) {\n    iVar1 = *(int *)(param_1 + 0x14);\n    puVar3 = (undefined4 *)(param_1 + iVar1 * 4);\n    uVar2 = *puVar3;\n    *puVar3 = *(undefined4 *)(param_1 + 0x10);\n    if (iVar1 == *(int *)(param_1 + 0x18)) {\n      *(undefined1 *)(param_1 + 0x1c) = 1;\n    }\n    else {\n      *(uint *)(param_1 + 0x14) = iVar1 + 3U & 3;\n    }\n    return uVar2;\n  }\n  uVar2 = (*(code *)PTR_abort_000332c0)();\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "iVar1 = i_ring_empty();" (assignment_expression "iVar1 = i_ring_empty()" identifier = (call_expression "i_ring_empty()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = *(int *)(param_1 + 0x14);\n    puVar3 = (undefined4 *)(param_1 + iVar1 * 4);\n    uVar2 = *puVar3;\n    *puVar3 = *(undefined4 *)(param_1 + 0x10);\n    if (iVar1 == *(int *)(param_1 + 0x18)) {\n      *(undefined1 *)(param_1 + 0x1c) = 1;\n    }\n    else {\n      *(uint *)(param_1 + 0x14) = iVar1 + 3U & 3;\n    }\n    return uVar2;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x14);\n    puVar3 = (undefined4 *)(param_1 + iVar1 * 4);\n    uVar2 = *puVar3;\n    *puVar3 = *(undefined4 *)(param_1 + 0x10);\n    if (iVar1 == *(int *)(param_1 + 0x18)) {\n      *(undefined1 *)(param_1 + 0x1c) = 1;\n    }\n    else {\n      *(uint *)(param_1 + 0x14) = iVar1 + 3U & 3;\n    }\n    return uVar2;\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "puVar3 = (undefined4 *)(param_1 + iVar1 * 4);" (assignment_expression "puVar3 = (undefined4 *)(param_1 + iVar1 * 4)" identifier = (cast_expression "(undefined4 *)(param_1 + iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar1 * 4)" ( (binary_expression "param_1 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) ;) (expression_statement "uVar2 = *puVar3;" (assignment_expression "uVar2 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "*puVar3 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "*puVar3 = *(undefined4 *)(param_1 + 0x10)" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 == *(int *)(param_1 + 0x18)) {\n      *(undefined1 *)(param_1 + 0x1c) = 1;\n    }\n    else {\n      *(uint *)(param_1 + 0x14) = iVar1 + 3U & 3;\n    }" if (parenthesized_expression "(iVar1 == *(int *)(param_1 + 0x18))" ( (binary_expression "iVar1 == *(int *)(param_1 + 0x18)" identifier == (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n      *(undefined1 *)(param_1 + 0x1c) = 1;\n    }" { (expression_statement "*(undefined1 *)(param_1 + 0x1c) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x1c) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x1c)" * (cast_expression "(undefined1 *)(param_1 + 0x1c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n      *(uint *)(param_1 + 0x14) = iVar1 + 3U & 3;\n    }" else (compound_statement "{\n      *(uint *)(param_1 + 0x14) = iVar1 + 3U & 3;\n    }" { (expression_statement "*(uint *)(param_1 + 0x14) = iVar1 + 3U & 3;" (assignment_expression "*(uint *)(param_1 + 0x14) = iVar1 + 3U & 3" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = (binary_expression "iVar1 + 3U & 3" (binary_expression "iVar1 + 3U" identifier + number_literal) & number_literal)) ;) }))) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "uVar2 = (*(code *)PTR_abort_000332c0)();" (assignment_expression "uVar2 = (*(code *)PTR_abort_000332c0)()" identifier = (call_expression "(*(code *)PTR_abort_000332c0)()" (parenthesized_expression "(*(code *)PTR_abort_000332c0)" ( (pointer_expression "*(code *)PTR_abort_000332c0" * (cast_expression "(code *)PTR_abort_000332c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "int i_ring_pop(I_ring *ir)\n\n{\n  undefined3 extraout_var;\n  _Bool _Var2;\n  int iVar1;\n  uint uVar3;\n  \n  _Var2 = i_ring_empty(ir);\n  if (CONCAT31(extraout_var,_Var2) == 0) {\n    uVar3 = ir->ir_front;\n    iVar1 = ir->ir_data[uVar3];\n    ir->ir_data[uVar3] = ir->ir_default_val;\n    if (uVar3 == ir->ir_back) {\n      ir->ir_empty = true;\n    }\n    else {\n      ir->ir_front = uVar3 + 3 & 3;\n    }\n    return iVar1;\n  }\n  iVar1 = (*(code *)PTR_abort_000332c0)();\n  return iVar1;\n}\n\n" (function_definition "int i_ring_pop(I_ring *ir)\n\n{\n  undefined3 extraout_var;\n  _Bool _Var2;\n  int iVar1;\n  uint uVar3;\n  \n  _Var2 = i_ring_empty(ir);\n  if (CONCAT31(extraout_var,_Var2) == 0) {\n    uVar3 = ir->ir_front;\n    iVar1 = ir->ir_data[uVar3];\n    ir->ir_data[uVar3] = ir->ir_default_val;\n    if (uVar3 == ir->ir_back) {\n      ir->ir_empty = true;\n    }\n    else {\n      ir->ir_front = uVar3 + 3 & 3;\n    }\n    return iVar1;\n  }\n  iVar1 = (*(code *)PTR_abort_000332c0)();\n  return iVar1;\n}" primitive_type (function_declarator "i_ring_pop(I_ring *ir)" identifier (parameter_list "(I_ring *ir)" ( (parameter_declaration "I_ring *ir" type_identifier (pointer_declarator "*ir" * identifier)) ))) (compound_statement "{\n  undefined3 extraout_var;\n  _Bool _Var2;\n  int iVar1;\n  uint uVar3;\n  \n  _Var2 = i_ring_empty(ir);\n  if (CONCAT31(extraout_var,_Var2) == 0) {\n    uVar3 = ir->ir_front;\n    iVar1 = ir->ir_data[uVar3];\n    ir->ir_data[uVar3] = ir->ir_default_val;\n    if (uVar3 == ir->ir_back) {\n      ir->ir_empty = true;\n    }\n    else {\n      ir->ir_front = uVar3 + 3 & 3;\n    }\n    return iVar1;\n  }\n  iVar1 = (*(code *)PTR_abort_000332c0)();\n  return iVar1;\n}" { (declaration "undefined3 extraout_var;" type_identifier identifier ;) (declaration "_Bool _Var2;" type_identifier identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "_Var2 = i_ring_empty(ir);" (assignment_expression "_Var2 = i_ring_empty(ir)" identifier = (call_expression "i_ring_empty(ir)" identifier (argument_list "(ir)" ( identifier )))) ;) (if_statement "if (CONCAT31(extraout_var,_Var2) == 0) {\n    uVar3 = ir->ir_front;\n    iVar1 = ir->ir_data[uVar3];\n    ir->ir_data[uVar3] = ir->ir_default_val;\n    if (uVar3 == ir->ir_back) {\n      ir->ir_empty = true;\n    }\n    else {\n      ir->ir_front = uVar3 + 3 & 3;\n    }\n    return iVar1;\n  }" if (parenthesized_expression "(CONCAT31(extraout_var,_Var2) == 0)" ( (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    uVar3 = ir->ir_front;\n    iVar1 = ir->ir_data[uVar3];\n    ir->ir_data[uVar3] = ir->ir_default_val;\n    if (uVar3 == ir->ir_back) {\n      ir->ir_empty = true;\n    }\n    else {\n      ir->ir_front = uVar3 + 3 & 3;\n    }\n    return iVar1;\n  }" { (expression_statement "uVar3 = ir->ir_front;" (assignment_expression "uVar3 = ir->ir_front" identifier = (field_expression "ir->ir_front" identifier -> field_identifier)) ;) (expression_statement "iVar1 = ir->ir_data[uVar3];" (assignment_expression "iVar1 = ir->ir_data[uVar3]" identifier = (subscript_expression "ir->ir_data[uVar3]" (field_expression "ir->ir_data" identifier -> field_identifier) [ identifier ])) ;) (expression_statement "ir->ir_data[uVar3] = ir->ir_default_val;" (assignment_expression "ir->ir_data[uVar3] = ir->ir_default_val" (subscript_expression "ir->ir_data[uVar3]" (field_expression "ir->ir_data" identifier -> field_identifier) [ identifier ]) = (field_expression "ir->ir_default_val" identifier -> field_identifier)) ;) (if_statement "if (uVar3 == ir->ir_back) {\n      ir->ir_empty = true;\n    }\n    else {\n      ir->ir_front = uVar3 + 3 & 3;\n    }" if (parenthesized_expression "(uVar3 == ir->ir_back)" ( (binary_expression "uVar3 == ir->ir_back" identifier == (field_expression "ir->ir_back" identifier -> field_identifier)) )) (compound_statement "{\n      ir->ir_empty = true;\n    }" { (expression_statement "ir->ir_empty = true;" (assignment_expression "ir->ir_empty = true" (field_expression "ir->ir_empty" identifier -> field_identifier) = true) ;) }) (else_clause "else {\n      ir->ir_front = uVar3 + 3 & 3;\n    }" else (compound_statement "{\n      ir->ir_front = uVar3 + 3 & 3;\n    }" { (expression_statement "ir->ir_front = uVar3 + 3 & 3;" (assignment_expression "ir->ir_front = uVar3 + 3 & 3" (field_expression "ir->ir_front" identifier -> field_identifier) = (binary_expression "uVar3 + 3 & 3" (binary_expression "uVar3 + 3" identifier + number_literal) & number_literal)) ;) }))) (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar1 = (*(code *)PTR_abort_000332c0)();" (assignment_expression "iVar1 = (*(code *)PTR_abort_000332c0)()" identifier = (call_expression "(*(code *)PTR_abort_000332c0)()" (parenthesized_expression "(*(code *)PTR_abort_000332c0)" ( (pointer_expression "*(code *)PTR_abort_000332c0" * (cast_expression "(code *)PTR_abort_000332c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "undefined4 i_ring_pop(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  iVar1 = i_ring_empty();\n  if (iVar1 == 0) {\n    iVar1 = *(int *)(param_1 + 0x14);\n    puVar3 = (undefined4 *)(param_1 + iVar1 * 4);\n    uVar2 = *puVar3;\n    *puVar3 = *(undefined4 *)(param_1 + 0x10);\n    if (iVar1 == *(int *)(param_1 + 0x18)) {\n      *(undefined1 *)(param_1 + 0x1c) = 1;\n    }\n    else {\n      *(uint *)(param_1 + 0x14) = iVar1 + 3U & 3;\n    }\n    return uVar2;\n  }\n  uVar2 = (*(code *)PTR_abort_000332c0)();\n  return uVar2;\n}\n\n" (function_definition "undefined4 i_ring_pop(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  iVar1 = i_ring_empty();\n  if (iVar1 == 0) {\n    iVar1 = *(int *)(param_1 + 0x14);\n    puVar3 = (undefined4 *)(param_1 + iVar1 * 4);\n    uVar2 = *puVar3;\n    *puVar3 = *(undefined4 *)(param_1 + 0x10);\n    if (iVar1 == *(int *)(param_1 + 0x18)) {\n      *(undefined1 *)(param_1 + 0x1c) = 1;\n    }\n    else {\n      *(uint *)(param_1 + 0x14) = iVar1 + 3U & 3;\n    }\n    return uVar2;\n  }\n  uVar2 = (*(code *)PTR_abort_000332c0)();\n  return uVar2;\n}" type_identifier (function_declarator "i_ring_pop(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  iVar1 = i_ring_empty();\n  if (iVar1 == 0) {\n    iVar1 = *(int *)(param_1 + 0x14);\n    puVar3 = (undefined4 *)(param_1 + iVar1 * 4);\n    uVar2 = *puVar3;\n    *puVar3 = *(undefined4 *)(param_1 + 0x10);\n    if (iVar1 == *(int *)(param_1 + 0x18)) {\n      *(undefined1 *)(param_1 + 0x1c) = 1;\n    }\n    else {\n      *(uint *)(param_1 + 0x14) = iVar1 + 3U & 3;\n    }\n    return uVar2;\n  }\n  uVar2 = (*(code *)PTR_abort_000332c0)();\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "iVar1 = i_ring_empty();" (assignment_expression "iVar1 = i_ring_empty()" identifier = (call_expression "i_ring_empty()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = *(int *)(param_1 + 0x14);\n    puVar3 = (undefined4 *)(param_1 + iVar1 * 4);\n    uVar2 = *puVar3;\n    *puVar3 = *(undefined4 *)(param_1 + 0x10);\n    if (iVar1 == *(int *)(param_1 + 0x18)) {\n      *(undefined1 *)(param_1 + 0x1c) = 1;\n    }\n    else {\n      *(uint *)(param_1 + 0x14) = iVar1 + 3U & 3;\n    }\n    return uVar2;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x14);\n    puVar3 = (undefined4 *)(param_1 + iVar1 * 4);\n    uVar2 = *puVar3;\n    *puVar3 = *(undefined4 *)(param_1 + 0x10);\n    if (iVar1 == *(int *)(param_1 + 0x18)) {\n      *(undefined1 *)(param_1 + 0x1c) = 1;\n    }\n    else {\n      *(uint *)(param_1 + 0x14) = iVar1 + 3U & 3;\n    }\n    return uVar2;\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "puVar3 = (undefined4 *)(param_1 + iVar1 * 4);" (assignment_expression "puVar3 = (undefined4 *)(param_1 + iVar1 * 4)" identifier = (cast_expression "(undefined4 *)(param_1 + iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar1 * 4)" ( (binary_expression "param_1 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) ;) (expression_statement "uVar2 = *puVar3;" (assignment_expression "uVar2 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "*puVar3 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "*puVar3 = *(undefined4 *)(param_1 + 0x10)" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 == *(int *)(param_1 + 0x18)) {\n      *(undefined1 *)(param_1 + 0x1c) = 1;\n    }\n    else {\n      *(uint *)(param_1 + 0x14) = iVar1 + 3U & 3;\n    }" if (parenthesized_expression "(iVar1 == *(int *)(param_1 + 0x18))" ( (binary_expression "iVar1 == *(int *)(param_1 + 0x18)" identifier == (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) )) (compound_statement "{\n      *(undefined1 *)(param_1 + 0x1c) = 1;\n    }" { (expression_statement "*(undefined1 *)(param_1 + 0x1c) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x1c) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x1c)" * (cast_expression "(undefined1 *)(param_1 + 0x1c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n      *(uint *)(param_1 + 0x14) = iVar1 + 3U & 3;\n    }" else (compound_statement "{\n      *(uint *)(param_1 + 0x14) = iVar1 + 3U & 3;\n    }" { (expression_statement "*(uint *)(param_1 + 0x14) = iVar1 + 3U & 3;" (assignment_expression "*(uint *)(param_1 + 0x14) = iVar1 + 3U & 3" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = (binary_expression "iVar1 + 3U & 3" (binary_expression "iVar1 + 3U" identifier + number_literal) & number_literal)) ;) }))) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "uVar2 = (*(code *)PTR_abort_000332c0)();" (assignment_expression "uVar2 = (*(code *)PTR_abort_000332c0)()" identifier = (call_expression "(*(code *)PTR_abort_000332c0)()" (parenthesized_expression "(*(code *)PTR_abort_000332c0)" ( (pointer_expression "*(code *)PTR_abort_000332c0" * (cast_expression "(code *)PTR_abort_000332c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_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 == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression IDENT + LIT) & LIT)) ;) }))) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 i_ring_pop(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  iVar1 = i_ring_empty();\n  if (iVar1 == 0) {\n    iVar1 = *(int *)(param_1 + 0x14);\n    puVar3 = (undefined4 *)(param_1 + iVar1 * 4);\n    uVar2 = *puVar3;\n    *puVar3 = *(undefined4 *)(param_1 + 0x10);\n    if (iVar1 == *(int *)(param_1 + 0x18)) {\n      *(undefined1 *)(param_1 + 0x1c) = 1;\n    }\n    else {\n      *(uint *)(param_1 + 0x14) = iVar1 + 3U & 3;\n    }\n    return uVar2;\n  }\n  uVar2 = (*(code *)PTR_abort_000332c0)();\n  return uVar2;\n}" (type_identifier "undefined4") (function_declarator "i_ring_pop(int param_1)" (identifier "i_ring_pop") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  iVar1 = i_ring_empty();\n  if (iVar1 == 0) {\n    iVar1 = *(int *)(param_1 + 0x14);\n    puVar3 = (undefined4 *)(param_1 + iVar1 * 4);\n    uVar2 = *puVar3;\n    *puVar3 = *(undefined4 *)(param_1 + 0x10);\n    if (iVar1 == *(int *)(param_1 + 0x18)) {\n      *(undefined1 *)(param_1 + 0x1c) = 1;\n    }\n    else {\n      *(uint *)(param_1 + 0x14) = iVar1 + 3U & 3;\n    }\n    return uVar2;\n  }\n  uVar2 = (*(code *)PTR_abort_000332c0)();\n  return uVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (expression_statement "iVar1 = i_ring_empty();" (assignment_expression "iVar1 = i_ring_empty()" (identifier "iVar1") (= "=") (call_expression "i_ring_empty()" (identifier "i_ring_empty") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    iVar1 = *(int *)(param_1 + 0x14);\n    puVar3 = (undefined4 *)(param_1 + iVar1 * 4);\n    uVar2 = *puVar3;\n    *puVar3 = *(undefined4 *)(param_1 + 0x10);\n    if (iVar1 == *(int *)(param_1 + 0x18)) {\n      *(undefined1 *)(param_1 + 0x1c) = 1;\n    }\n    else {\n      *(uint *)(param_1 + 0x14) = iVar1 + 3U & 3;\n    }\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x14);\n    puVar3 = (undefined4 *)(param_1 + iVar1 * 4);\n    uVar2 = *puVar3;\n    *puVar3 = *(undefined4 *)(param_1 + 0x10);\n    if (iVar1 == *(int *)(param_1 + 0x18)) {\n      *(undefined1 *)(param_1 + 0x1c) = 1;\n    }\n    else {\n      *(uint *)(param_1 + 0x14) = iVar1 + 3U & 3;\n    }\n    return uVar2;\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x14)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "puVar3 = (undefined4 *)(param_1 + iVar1 * 4);" (assignment_expression "puVar3 = (undefined4 *)(param_1 + iVar1 * 4)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)(param_1 + iVar1 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar1 * 4)" (( "(") (binary_expression "param_1 + iVar1 * 4" (identifier "param_1") (+ "+") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4"))) () ")")))) (; ";")) (expression_statement "uVar2 = *puVar3;" (assignment_expression "uVar2 = *puVar3" (identifier "uVar2") (= "=") (pointer_expression "*puVar3" (* "*") (identifier "puVar3"))) (; ";")) (expression_statement "*puVar3 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "*puVar3 = *(undefined4 *)(param_1 + 0x10)" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (if_statement "if (iVar1 == *(int *)(param_1 + 0x18)) {\n      *(undefined1 *)(param_1 + 0x1c) = 1;\n    }\n    else {\n      *(uint *)(param_1 + 0x14) = iVar1 + 3U & 3;\n    }" (if "if") (parenthesized_expression "(iVar1 == *(int *)(param_1 + 0x18))" (( "(") (binary_expression "iVar1 == *(int *)(param_1 + 0x18)" (identifier "iVar1") (== "==") (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (compound_statement "{\n      *(undefined1 *)(param_1 + 0x1c) = 1;\n    }" ({ "{") (expression_statement "*(undefined1 *)(param_1 + 0x1c) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x1c) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x1c)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x1c)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n      *(uint *)(param_1 + 0x14) = iVar1 + 3U & 3;\n    }" (else "else") (compound_statement "{\n      *(uint *)(param_1 + 0x14) = iVar1 + 3U & 3;\n    }" ({ "{") (expression_statement "*(uint *)(param_1 + 0x14) = iVar1 + 3U & 3;" (assignment_expression "*(uint *)(param_1 + 0x14) = iVar1 + 3U & 3" (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "iVar1 + 3U & 3" (binary_expression "iVar1 + 3U" (identifier "iVar1") (+ "+") (number_literal "3U")) (& "&") (number_literal "3"))) (; ";")) (} "}")))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "uVar2 = (*(code *)PTR_abort_000332c0)();" (assignment_expression "uVar2 = (*(code *)PTR_abort_000332c0)()" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_abort_000332c0)()" (parenthesized_expression "(*(code *)PTR_abort_000332c0)" (( "(") (pointer_expression "*(code *)PTR_abort_000332c0" (* "*") (cast_expression "(code *)PTR_abort_000332c0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_abort_000332c0"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))))))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (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)))) (return_statement (identifier)))))

undefined4 MASKED(int param_1)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 *puVar3;
  
  iVar1 = i_ring_empty();
  if (iVar1 == 0) {
    iVar1 = *(int *)(param_1 + 0x14);
    puVar3 = (undefined4 *)(param_1 + iVar1 * 4);
    uVar2 = *puVar3;
    *puVar3 = *(undefined4 *)(param_1 + 0x10);
    if (iVar1 == *(int *)(param_1 + 0x18)) {
      *(undefined1 *)(param_1 + 0x1c) = 1;
    }
    else {
      *(uint *)(param_1 + 0x14) = iVar1 + 3U & 3;
    }
    return uVar2;
  }
  uVar2 = (*(code *)PTR_abort_000332c0)();
  return uVar2;
}

