
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void run_toplevel_callbacks(void)

{
  undefined *puVar1;
  undefined *puVar2;
  int *piVar3;
  int iVar4;
  
  puVar2 = PTR_cbcurr_000ad42c;
  puVar1 = PTR_cbhead_000ad424;
  piVar3 = *(int **)PTR_cbhead_000ad424;
  if (piVar3 != (int *)0x0) {
    iVar4 = *piVar3;
    *(int **)PTR_cbcurr_000ad42c = piVar3;
    *(int *)puVar1 = iVar4;
    if (iVar4 == 0) {
      *(undefined4 *)PTR_cbtail_000ad428 = 0;
    }
    (*(code *)piVar3[1])(piVar3[2]);
                    /* WARNING: Subroutine does not return */
    safefree(*(void **)puVar2);
  }
  return;
}



void run_toplevel_callbacks(void)

{
  undefined *puVar1;
  undefined *puVar2;
  int *piVar3;
  int iVar4;
  
  puVar2 = PTR_cbcurr_000ad42c;
  puVar1 = PTR_cbhead_000ad424;
  piVar3 = *(int **)PTR_cbhead_000ad424;
  if (piVar3 != (int *)0x0) {
    iVar4 = *piVar3;
    *(int **)PTR_cbcurr_000ad42c = piVar3;
    *(int *)puVar1 = iVar4;
    if (iVar4 == 0) {
      *(undefined4 *)PTR_cbtail_000ad428 = 0;
    }
    (*(code *)piVar3[1])(piVar3[2]);
    safefree(*(undefined4 *)puVar2);
    *(undefined4 *)puVar2 = 0;
  }
  return;
}


lui gp,0xa
addiu gp,gp,-0x52f4
addu gp,gp,t9
lw v1,-0x7e6c(gp)
addiu sp,sp,-0x20
sw gp,0x10(sp)
sw ra,0x1c(sp)
sw s0,0x18(sp)
lw v0,0x0(v1)
beq v0,zero,0x0001a5e0
_lw s0,-0x7e64(gp)
lw a0,0x0(v0)
sw v0,0x0(s0)
beq a0,zero,0x0001a5f0
_sw a0,0x0(v1)
lw t9,0x4(v0)
jalr t9
_lw a0,0x8(v0)
lw gp,0x10(sp)
lw t9,-0x7f10(gp)
bal 0x00022dc4
_lw a0,0x0(s0)
sw zero,0x0(s0)
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw v1,-0x7e68(gp)
b 0x0001a5c0
_sw zero,0x0(v1)
(translation_unit "void run_toplevel_callbacks(void)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int *piVar3;\n  int iVar4;\n  \n  puVar2 = PTR_cbcurr_000ad42c;\n  puVar1 = PTR_cbhead_000ad424;\n  piVar3 = *(int **)PTR_cbhead_000ad424;\n  if (piVar3 != (int *)0x0) {\n    iVar4 = *piVar3;\n    *(int **)PTR_cbcurr_000ad42c = piVar3;\n    *(int *)puVar1 = iVar4;\n    if (iVar4 == 0) {\n      *(undefined4 *)PTR_cbtail_000ad428 = 0;\n    }\n    (*(code *)piVar3[1])(piVar3[2]);\n    safefree(*(undefined4 *)puVar2);\n    *(undefined4 *)puVar2 = 0;\n  }\n  return;\n}\n\n" (function_definition "void run_toplevel_callbacks(void)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int *piVar3;\n  int iVar4;\n  \n  puVar2 = PTR_cbcurr_000ad42c;\n  puVar1 = PTR_cbhead_000ad424;\n  piVar3 = *(int **)PTR_cbhead_000ad424;\n  if (piVar3 != (int *)0x0) {\n    iVar4 = *piVar3;\n    *(int **)PTR_cbcurr_000ad42c = piVar3;\n    *(int *)puVar1 = iVar4;\n    if (iVar4 == 0) {\n      *(undefined4 *)PTR_cbtail_000ad428 = 0;\n    }\n    (*(code *)piVar3[1])(piVar3[2]);\n    safefree(*(undefined4 *)puVar2);\n    *(undefined4 *)puVar2 = 0;\n  }\n  return;\n}" primitive_type (function_declarator "run_toplevel_callbacks(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int *piVar3;\n  int iVar4;\n  \n  puVar2 = PTR_cbcurr_000ad42c;\n  puVar1 = PTR_cbhead_000ad424;\n  piVar3 = *(int **)PTR_cbhead_000ad424;\n  if (piVar3 != (int *)0x0) {\n    iVar4 = *piVar3;\n    *(int **)PTR_cbcurr_000ad42c = piVar3;\n    *(int *)puVar1 = iVar4;\n    if (iVar4 == 0) {\n      *(undefined4 *)PTR_cbtail_000ad428 = 0;\n    }\n    (*(code *)piVar3[1])(piVar3[2]);\n    safefree(*(undefined4 *)puVar2);\n    *(undefined4 *)puVar2 = 0;\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "puVar2 = PTR_cbcurr_000ad42c;" (assignment_expression "puVar2 = PTR_cbcurr_000ad42c" identifier = identifier) ;) (expression_statement "puVar1 = PTR_cbhead_000ad424;" (assignment_expression "puVar1 = PTR_cbhead_000ad424" identifier = identifier) ;) (expression_statement "piVar3 = *(int **)PTR_cbhead_000ad424;" (assignment_expression "piVar3 = *(int **)PTR_cbhead_000ad424" identifier = (pointer_expression "*(int **)PTR_cbhead_000ad424" * (cast_expression "(int **)PTR_cbhead_000ad424" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (piVar3 != (int *)0x0) {\n    iVar4 = *piVar3;\n    *(int **)PTR_cbcurr_000ad42c = piVar3;\n    *(int *)puVar1 = iVar4;\n    if (iVar4 == 0) {\n      *(undefined4 *)PTR_cbtail_000ad428 = 0;\n    }\n    (*(code *)piVar3[1])(piVar3[2]);\n    safefree(*(undefined4 *)puVar2);\n    *(undefined4 *)puVar2 = 0;\n  }" if (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar4 = *piVar3;\n    *(int **)PTR_cbcurr_000ad42c = piVar3;\n    *(int *)puVar1 = iVar4;\n    if (iVar4 == 0) {\n      *(undefined4 *)PTR_cbtail_000ad428 = 0;\n    }\n    (*(code *)piVar3[1])(piVar3[2]);\n    safefree(*(undefined4 *)puVar2);\n    *(undefined4 *)puVar2 = 0;\n  }" { (expression_statement "iVar4 = *piVar3;" (assignment_expression "iVar4 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "*(int **)PTR_cbcurr_000ad42c = piVar3;" (assignment_expression "*(int **)PTR_cbcurr_000ad42c = piVar3" (pointer_expression "*(int **)PTR_cbcurr_000ad42c" * (cast_expression "(int **)PTR_cbcurr_000ad42c" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "*(int *)puVar1 = iVar4;" (assignment_expression "*(int *)puVar1 = iVar4" (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (if_statement "if (iVar4 == 0) {\n      *(undefined4 *)PTR_cbtail_000ad428 = 0;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      *(undefined4 *)PTR_cbtail_000ad428 = 0;\n    }" { (expression_statement "*(undefined4 *)PTR_cbtail_000ad428 = 0;" (assignment_expression "*(undefined4 *)PTR_cbtail_000ad428 = 0" (pointer_expression "*(undefined4 *)PTR_cbtail_000ad428" * (cast_expression "(undefined4 *)PTR_cbtail_000ad428" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) })) (expression_statement "(*(code *)piVar3[1])(piVar3[2]);" (call_expression "(*(code *)piVar3[1])(piVar3[2])" (parenthesized_expression "(*(code *)piVar3[1])" ( (pointer_expression "*(code *)piVar3[1]" * (cast_expression "(code *)piVar3[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[1]" identifier [ number_literal ]))) )) (argument_list "(piVar3[2])" ( (subscript_expression "piVar3[2]" identifier [ number_literal ]) ))) ;) (expression_statement "safefree(*(undefined4 *)puVar2);" (call_expression "safefree(*(undefined4 *)puVar2)" identifier (argument_list "(*(undefined4 *)puVar2)" ( (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "*(undefined4 *)puVar2 = 0;" (assignment_expression "*(undefined4 *)puVar2 = 0" (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid run_toplevel_callbacks(void)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int *piVar3;\n  int iVar4;\n  \n  puVar2 = PTR_cbcurr_000ad42c;\n  puVar1 = PTR_cbhead_000ad424;\n  piVar3 = *(int **)PTR_cbhead_000ad424;\n  if (piVar3 != (int *)0x0) {\n    iVar4 = *piVar3;\n    *(int **)PTR_cbcurr_000ad42c = piVar3;\n    *(int *)puVar1 = iVar4;\n    if (iVar4 == 0) {\n      *(undefined4 *)PTR_cbtail_000ad428 = 0;\n    }\n    (*(code *)piVar3[1])(piVar3[2]);\n                    /* WARNING: Subroutine does not return */\n    safefree(*(void **)puVar2);\n  }\n  return;\n}\n\n" comment (function_definition "void run_toplevel_callbacks(void)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int *piVar3;\n  int iVar4;\n  \n  puVar2 = PTR_cbcurr_000ad42c;\n  puVar1 = PTR_cbhead_000ad424;\n  piVar3 = *(int **)PTR_cbhead_000ad424;\n  if (piVar3 != (int *)0x0) {\n    iVar4 = *piVar3;\n    *(int **)PTR_cbcurr_000ad42c = piVar3;\n    *(int *)puVar1 = iVar4;\n    if (iVar4 == 0) {\n      *(undefined4 *)PTR_cbtail_000ad428 = 0;\n    }\n    (*(code *)piVar3[1])(piVar3[2]);\n                    /* WARNING: Subroutine does not return */\n    safefree(*(void **)puVar2);\n  }\n  return;\n}" primitive_type (function_declarator "run_toplevel_callbacks(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int *piVar3;\n  int iVar4;\n  \n  puVar2 = PTR_cbcurr_000ad42c;\n  puVar1 = PTR_cbhead_000ad424;\n  piVar3 = *(int **)PTR_cbhead_000ad424;\n  if (piVar3 != (int *)0x0) {\n    iVar4 = *piVar3;\n    *(int **)PTR_cbcurr_000ad42c = piVar3;\n    *(int *)puVar1 = iVar4;\n    if (iVar4 == 0) {\n      *(undefined4 *)PTR_cbtail_000ad428 = 0;\n    }\n    (*(code *)piVar3[1])(piVar3[2]);\n                    /* WARNING: Subroutine does not return */\n    safefree(*(void **)puVar2);\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "puVar2 = PTR_cbcurr_000ad42c;" (assignment_expression "puVar2 = PTR_cbcurr_000ad42c" identifier = identifier) ;) (expression_statement "puVar1 = PTR_cbhead_000ad424;" (assignment_expression "puVar1 = PTR_cbhead_000ad424" identifier = identifier) ;) (expression_statement "piVar3 = *(int **)PTR_cbhead_000ad424;" (assignment_expression "piVar3 = *(int **)PTR_cbhead_000ad424" identifier = (pointer_expression "*(int **)PTR_cbhead_000ad424" * (cast_expression "(int **)PTR_cbhead_000ad424" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (piVar3 != (int *)0x0) {\n    iVar4 = *piVar3;\n    *(int **)PTR_cbcurr_000ad42c = piVar3;\n    *(int *)puVar1 = iVar4;\n    if (iVar4 == 0) {\n      *(undefined4 *)PTR_cbtail_000ad428 = 0;\n    }\n    (*(code *)piVar3[1])(piVar3[2]);\n                    /* WARNING: Subroutine does not return */\n    safefree(*(void **)puVar2);\n  }" if (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar4 = *piVar3;\n    *(int **)PTR_cbcurr_000ad42c = piVar3;\n    *(int *)puVar1 = iVar4;\n    if (iVar4 == 0) {\n      *(undefined4 *)PTR_cbtail_000ad428 = 0;\n    }\n    (*(code *)piVar3[1])(piVar3[2]);\n                    /* WARNING: Subroutine does not return */\n    safefree(*(void **)puVar2);\n  }" { (expression_statement "iVar4 = *piVar3;" (assignment_expression "iVar4 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "*(int **)PTR_cbcurr_000ad42c = piVar3;" (assignment_expression "*(int **)PTR_cbcurr_000ad42c = piVar3" (pointer_expression "*(int **)PTR_cbcurr_000ad42c" * (cast_expression "(int **)PTR_cbcurr_000ad42c" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "*(int *)puVar1 = iVar4;" (assignment_expression "*(int *)puVar1 = iVar4" (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (if_statement "if (iVar4 == 0) {\n      *(undefined4 *)PTR_cbtail_000ad428 = 0;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      *(undefined4 *)PTR_cbtail_000ad428 = 0;\n    }" { (expression_statement "*(undefined4 *)PTR_cbtail_000ad428 = 0;" (assignment_expression "*(undefined4 *)PTR_cbtail_000ad428 = 0" (pointer_expression "*(undefined4 *)PTR_cbtail_000ad428" * (cast_expression "(undefined4 *)PTR_cbtail_000ad428" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) })) (expression_statement "(*(code *)piVar3[1])(piVar3[2]);" (call_expression "(*(code *)piVar3[1])(piVar3[2])" (parenthesized_expression "(*(code *)piVar3[1])" ( (pointer_expression "*(code *)piVar3[1]" * (cast_expression "(code *)piVar3[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[1]" identifier [ number_literal ]))) )) (argument_list "(piVar3[2])" ( (subscript_expression "piVar3[2]" identifier [ number_literal ]) ))) ;) comment (expression_statement "safefree(*(void **)puVar2);" (call_expression "safefree(*(void **)puVar2)" identifier (argument_list "(*(void **)puVar2)" ( (pointer_expression "*(void **)puVar2" * (cast_expression "(void **)puVar2" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void run_toplevel_callbacks(void)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int *piVar3;\n  int iVar4;\n  \n  puVar2 = PTR_cbcurr_000ad42c;\n  puVar1 = PTR_cbhead_000ad424;\n  piVar3 = *(int **)PTR_cbhead_000ad424;\n  if (piVar3 != (int *)0x0) {\n    iVar4 = *piVar3;\n    *(int **)PTR_cbcurr_000ad42c = piVar3;\n    *(int *)puVar1 = iVar4;\n    if (iVar4 == 0) {\n      *(undefined4 *)PTR_cbtail_000ad428 = 0;\n    }\n    (*(code *)piVar3[1])(piVar3[2]);\n    safefree(*(undefined4 *)puVar2);\n    *(undefined4 *)puVar2 = 0;\n  }\n  return;\n}\n\n" (function_definition "void run_toplevel_callbacks(void)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int *piVar3;\n  int iVar4;\n  \n  puVar2 = PTR_cbcurr_000ad42c;\n  puVar1 = PTR_cbhead_000ad424;\n  piVar3 = *(int **)PTR_cbhead_000ad424;\n  if (piVar3 != (int *)0x0) {\n    iVar4 = *piVar3;\n    *(int **)PTR_cbcurr_000ad42c = piVar3;\n    *(int *)puVar1 = iVar4;\n    if (iVar4 == 0) {\n      *(undefined4 *)PTR_cbtail_000ad428 = 0;\n    }\n    (*(code *)piVar3[1])(piVar3[2]);\n    safefree(*(undefined4 *)puVar2);\n    *(undefined4 *)puVar2 = 0;\n  }\n  return;\n}" primitive_type (function_declarator "run_toplevel_callbacks(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int *piVar3;\n  int iVar4;\n  \n  puVar2 = PTR_cbcurr_000ad42c;\n  puVar1 = PTR_cbhead_000ad424;\n  piVar3 = *(int **)PTR_cbhead_000ad424;\n  if (piVar3 != (int *)0x0) {\n    iVar4 = *piVar3;\n    *(int **)PTR_cbcurr_000ad42c = piVar3;\n    *(int *)puVar1 = iVar4;\n    if (iVar4 == 0) {\n      *(undefined4 *)PTR_cbtail_000ad428 = 0;\n    }\n    (*(code *)piVar3[1])(piVar3[2]);\n    safefree(*(undefined4 *)puVar2);\n    *(undefined4 *)puVar2 = 0;\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "puVar2 = PTR_cbcurr_000ad42c;" (assignment_expression "puVar2 = PTR_cbcurr_000ad42c" identifier = identifier) ;) (expression_statement "puVar1 = PTR_cbhead_000ad424;" (assignment_expression "puVar1 = PTR_cbhead_000ad424" identifier = identifier) ;) (expression_statement "piVar3 = *(int **)PTR_cbhead_000ad424;" (assignment_expression "piVar3 = *(int **)PTR_cbhead_000ad424" identifier = (pointer_expression "*(int **)PTR_cbhead_000ad424" * (cast_expression "(int **)PTR_cbhead_000ad424" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (piVar3 != (int *)0x0) {\n    iVar4 = *piVar3;\n    *(int **)PTR_cbcurr_000ad42c = piVar3;\n    *(int *)puVar1 = iVar4;\n    if (iVar4 == 0) {\n      *(undefined4 *)PTR_cbtail_000ad428 = 0;\n    }\n    (*(code *)piVar3[1])(piVar3[2]);\n    safefree(*(undefined4 *)puVar2);\n    *(undefined4 *)puVar2 = 0;\n  }" if (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar4 = *piVar3;\n    *(int **)PTR_cbcurr_000ad42c = piVar3;\n    *(int *)puVar1 = iVar4;\n    if (iVar4 == 0) {\n      *(undefined4 *)PTR_cbtail_000ad428 = 0;\n    }\n    (*(code *)piVar3[1])(piVar3[2]);\n    safefree(*(undefined4 *)puVar2);\n    *(undefined4 *)puVar2 = 0;\n  }" { (expression_statement "iVar4 = *piVar3;" (assignment_expression "iVar4 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "*(int **)PTR_cbcurr_000ad42c = piVar3;" (assignment_expression "*(int **)PTR_cbcurr_000ad42c = piVar3" (pointer_expression "*(int **)PTR_cbcurr_000ad42c" * (cast_expression "(int **)PTR_cbcurr_000ad42c" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "*(int *)puVar1 = iVar4;" (assignment_expression "*(int *)puVar1 = iVar4" (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (if_statement "if (iVar4 == 0) {\n      *(undefined4 *)PTR_cbtail_000ad428 = 0;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      *(undefined4 *)PTR_cbtail_000ad428 = 0;\n    }" { (expression_statement "*(undefined4 *)PTR_cbtail_000ad428 = 0;" (assignment_expression "*(undefined4 *)PTR_cbtail_000ad428 = 0" (pointer_expression "*(undefined4 *)PTR_cbtail_000ad428" * (cast_expression "(undefined4 *)PTR_cbtail_000ad428" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) })) (expression_statement "(*(code *)piVar3[1])(piVar3[2]);" (call_expression "(*(code *)piVar3[1])(piVar3[2])" (parenthesized_expression "(*(code *)piVar3[1])" ( (pointer_expression "*(code *)piVar3[1]" * (cast_expression "(code *)piVar3[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[1]" identifier [ number_literal ]))) )) (argument_list "(piVar3[2])" ( (subscript_expression "piVar3[2]" identifier [ number_literal ]) ))) ;) (expression_statement "safefree(*(undefined4 *)puVar2);" (call_expression "safefree(*(undefined4 *)puVar2)" identifier (argument_list "(*(undefined4 *)puVar2)" ( (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "*(undefined4 *)puVar2 = 0;" (assignment_expression "*(undefined4 *)puVar2 = 0" (pointer_expression "*(undefined4 *)puVar2" * (cast_expression "(undefined4 *)puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = LIT) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = LIT) ;) })) (return_statement return ;) })))
(function_definition "void run_toplevel_callbacks(void)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int *piVar3;\n  int iVar4;\n  \n  puVar2 = PTR_cbcurr_000ad42c;\n  puVar1 = PTR_cbhead_000ad424;\n  piVar3 = *(int **)PTR_cbhead_000ad424;\n  if (piVar3 != (int *)0x0) {\n    iVar4 = *piVar3;\n    *(int **)PTR_cbcurr_000ad42c = piVar3;\n    *(int *)puVar1 = iVar4;\n    if (iVar4 == 0) {\n      *(undefined4 *)PTR_cbtail_000ad428 = 0;\n    }\n    (*(code *)piVar3[1])(piVar3[2]);\n    safefree(*(undefined4 *)puVar2);\n    *(undefined4 *)puVar2 = 0;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "run_toplevel_callbacks(void)" (identifier "run_toplevel_callbacks") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int *piVar3;\n  int iVar4;\n  \n  puVar2 = PTR_cbcurr_000ad42c;\n  puVar1 = PTR_cbhead_000ad424;\n  piVar3 = *(int **)PTR_cbhead_000ad424;\n  if (piVar3 != (int *)0x0) {\n    iVar4 = *piVar3;\n    *(int **)PTR_cbcurr_000ad42c = piVar3;\n    *(int *)puVar1 = iVar4;\n    if (iVar4 == 0) {\n      *(undefined4 *)PTR_cbtail_000ad428 = 0;\n    }\n    (*(code *)piVar3[1])(piVar3[2]);\n    safefree(*(undefined4 *)puVar2);\n    *(undefined4 *)puVar2 = 0;\n  }\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "puVar2 = PTR_cbcurr_000ad42c;" (assignment_expression "puVar2 = PTR_cbcurr_000ad42c" (identifier "puVar2") (= "=") (identifier "PTR_cbcurr_000ad42c")) (; ";")) (expression_statement "puVar1 = PTR_cbhead_000ad424;" (assignment_expression "puVar1 = PTR_cbhead_000ad424" (identifier "puVar1") (= "=") (identifier "PTR_cbhead_000ad424")) (; ";")) (expression_statement "piVar3 = *(int **)PTR_cbhead_000ad424;" (assignment_expression "piVar3 = *(int **)PTR_cbhead_000ad424" (identifier "piVar3") (= "=") (pointer_expression "*(int **)PTR_cbhead_000ad424" (* "*") (cast_expression "(int **)PTR_cbhead_000ad424" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_cbhead_000ad424")))) (; ";")) (if_statement "if (piVar3 != (int *)0x0) {\n    iVar4 = *piVar3;\n    *(int **)PTR_cbcurr_000ad42c = piVar3;\n    *(int *)puVar1 = iVar4;\n    if (iVar4 == 0) {\n      *(undefined4 *)PTR_cbtail_000ad428 = 0;\n    }\n    (*(code *)piVar3[1])(piVar3[2]);\n    safefree(*(undefined4 *)puVar2);\n    *(undefined4 *)puVar2 = 0;\n  }" (if "if") (parenthesized_expression "(piVar3 != (int *)0x0)" (( "(") (binary_expression "piVar3 != (int *)0x0" (identifier "piVar3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar4 = *piVar3;\n    *(int **)PTR_cbcurr_000ad42c = piVar3;\n    *(int *)puVar1 = iVar4;\n    if (iVar4 == 0) {\n      *(undefined4 *)PTR_cbtail_000ad428 = 0;\n    }\n    (*(code *)piVar3[1])(piVar3[2]);\n    safefree(*(undefined4 *)puVar2);\n    *(undefined4 *)puVar2 = 0;\n  }" ({ "{") (expression_statement "iVar4 = *piVar3;" (assignment_expression "iVar4 = *piVar3" (identifier "iVar4") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (expression_statement "*(int **)PTR_cbcurr_000ad42c = piVar3;" (assignment_expression "*(int **)PTR_cbcurr_000ad42c = piVar3" (pointer_expression "*(int **)PTR_cbcurr_000ad42c" (* "*") (cast_expression "(int **)PTR_cbcurr_000ad42c" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_cbcurr_000ad42c"))) (= "=") (identifier "piVar3")) (; ";")) (expression_statement "*(int *)puVar1 = iVar4;" (assignment_expression "*(int *)puVar1 = iVar4" (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) (= "=") (identifier "iVar4")) (; ";")) (if_statement "if (iVar4 == 0) {\n      *(undefined4 *)PTR_cbtail_000ad428 = 0;\n    }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined4 *)PTR_cbtail_000ad428 = 0;\n    }" ({ "{") (expression_statement "*(undefined4 *)PTR_cbtail_000ad428 = 0;" (assignment_expression "*(undefined4 *)PTR_cbtail_000ad428 = 0" (pointer_expression "*(undefined4 *)PTR_cbtail_000ad428" (* "*") (cast_expression "(undefined4 *)PTR_cbtail_000ad428" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_cbtail_000ad428"))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "(*(code *)piVar3[1])(piVar3[2]);" (call_expression "(*(code *)piVar3[1])(piVar3[2])" (parenthesized_expression "(*(code *)piVar3[1])" (( "(") (pointer_expression "*(code *)piVar3[1]" (* "*") (cast_expression "(code *)piVar3[1]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")))) () ")")) (argument_list "(piVar3[2])" (( "(") (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")) () ")"))) (; ";")) (expression_statement "safefree(*(undefined4 *)puVar2);" (call_expression "safefree(*(undefined4 *)puVar2)" (identifier "safefree") (argument_list "(*(undefined4 *)puVar2)" (( "(") (pointer_expression "*(undefined4 *)puVar2" (* "*") (cast_expression "(undefined4 *)puVar2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) () ")"))) (; ";")) (expression_statement "*(undefined4 *)puVar2 = 0;" (assignment_expression "*(undefined4 *)puVar2 = 0" (pointer_expression "*(undefined4 *)puVar2" (* "*") (cast_expression "(undefined4 *)puVar2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier))) (if_statement condition: (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: (identifier))) right: (number_literal))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))))) (return_statement))))

void MASKED(void)

{
  undefined *puVar1;
  undefined *puVar2;
  int *piVar3;
  int iVar4;
  
  puVar2 = PTR_cbcurr_000ad42c;
  puVar1 = PTR_cbhead_000ad424;
  piVar3 = *(int **)PTR_cbhead_000ad424;
  if (piVar3 != (int *)0x0) {
    iVar4 = *piVar3;
    *(int **)PTR_cbcurr_000ad42c = piVar3;
    *(int *)puVar1 = iVar4;
    if (iVar4 == 0) {
      *(undefined4 *)PTR_cbtail_000ad428 = 0;
    }
    (*(code *)piVar3[1])(piVar3[2]);
    safefree(*(undefined4 *)puVar2);
    *(undefined4 *)puVar2 = 0;
  }
  return;
}

