
/* WARNING: Unknown calling convention */

int flush_update(void)

{
  undefined *puVar1;
  int iVar2;
  
  puVar1 = PTR_bb_common_bufsiz1_0012a344;
  iVar2 = rtnl_send(*(rtnl_handle **)(PTR_bb_common_bufsiz1_0012a344 + 8),
                    *(char **)(PTR_bb_common_bufsiz1_0012a344 + 4),
                    *(int *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c));
  if (-1 < iVar2) {
    *(undefined4 *)(puVar1 + 0x1c) = 0;
    return 0;
  }
  (*(code *)PTR_bb_perror_msg_0012a238)(PTR_UINT_0012a18c + 0x5060);
  return -1;
}



undefined4 FUN_00055168(void)

{
  undefined *puVar1;
  int iVar2;
  
  puVar1 = PTR_bb_common_bufsiz1_0012a344;
  iVar2 = FUN_0005da10(*(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 8),
                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 4),
                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c));
  if (-1 < iVar2) {
    *(undefined4 *)(puVar1 + 0x1c) = 0;
    return 0;
  }
  (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + 0x5060);
  return 0xffffffff;
}


lui gp,0xe
addiu gp,gp,-0x3018
addu gp,gp,t9
addiu sp,sp,-0x20
lw t9,-0x7a9c(gp)
sw s0,0x18(sp)
sw gp,0x10(sp)
sw ra,0x1c(sp)
lw s0,-0x7e0c(gp)
lwl a2,0x1c(s0)
lwl a1,0x4(s0)
lwl a0,0x8(s0)
lwr a2,0x1f(s0)
lwr a1,0x7(s0)
bal 0x0005da10
_lwr a0,0xb(s0)
bltz v0,0x000551cc
_lw gp,0x10(sp)
swl zero,0x1c(s0)
or v0,zero,zero
swr zero,0x1f(s0)
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw a0,-0x7fc4(gp)
lw t9,-0x7f18(gp)
jalr t9
_addiu a0,a0,0x5060
li v0,-0x1
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "undefined4 FUN_00055168(void)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_bb_common_bufsiz1_0012a344;\n  iVar2 = FUN_0005da10(*(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 8),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 4),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c));\n  if (-1 < iVar2) {\n    *(undefined4 *)(puVar1 + 0x1c) = 0;\n    return 0;\n  }\n  (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + 0x5060);\n  return 0xffffffff;\n}\n\n" (function_definition "undefined4 FUN_00055168(void)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_bb_common_bufsiz1_0012a344;\n  iVar2 = FUN_0005da10(*(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 8),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 4),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c));\n  if (-1 < iVar2) {\n    *(undefined4 *)(puVar1 + 0x1c) = 0;\n    return 0;\n  }\n  (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + 0x5060);\n  return 0xffffffff;\n}" type_identifier (function_declarator "FUN_00055168(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_bb_common_bufsiz1_0012a344;\n  iVar2 = FUN_0005da10(*(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 8),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 4),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c));\n  if (-1 < iVar2) {\n    *(undefined4 *)(puVar1 + 0x1c) = 0;\n    return 0;\n  }\n  (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + 0x5060);\n  return 0xffffffff;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_bb_common_bufsiz1_0012a344;" (assignment_expression "puVar1 = PTR_bb_common_bufsiz1_0012a344" identifier = identifier) ;) (expression_statement "iVar2 = FUN_0005da10(*(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 8),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 4),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c));" (assignment_expression "iVar2 = FUN_0005da10(*(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 8),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 4),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c))" identifier = (call_expression "FUN_0005da10(*(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 8),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 4),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c))" identifier (argument_list "(*(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 8),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 4),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c))" ( (pointer_expression "*(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 8)" * (cast_expression "(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_bb_common_bufsiz1_0012a344 + 8)" ( (binary_expression "PTR_bb_common_bufsiz1_0012a344 + 8" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 4)" * (cast_expression "(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_bb_common_bufsiz1_0012a344 + 4)" ( (binary_expression "PTR_bb_common_bufsiz1_0012a344 + 4" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c)" * (cast_expression "(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_bb_common_bufsiz1_0012a344 + 0x1c)" ( (binary_expression "PTR_bb_common_bufsiz1_0012a344 + 0x1c" identifier + number_literal) )))) )))) ;) (if_statement "if (-1 < iVar2) {\n    *(undefined4 *)(puVar1 + 0x1c) = 0;\n    return 0;\n  }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n    *(undefined4 *)(puVar1 + 0x1c) = 0;\n    return 0;\n  }" { (expression_statement "*(undefined4 *)(puVar1 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(puVar1 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(puVar1 + 0x1c)" * (cast_expression "(undefined4 *)(puVar1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x1c)" ( (binary_expression "puVar1 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "(*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + 0x5060);" (call_expression "(*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + 0x5060)" (parenthesized_expression "(*(code *)PTR_FUN_0012a238)" ( (pointer_expression "*(code *)PTR_FUN_0012a238" * (cast_expression "(code *)PTR_FUN_0012a238" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_UINT_0012a18c + 0x5060)" ( (binary_expression "PTR_UINT_0012a18c + 0x5060" identifier + number_literal) ))) ;) (return_statement "return 0xffffffff;" return number_literal ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint flush_update(void)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_bb_common_bufsiz1_0012a344;\n  iVar2 = rtnl_send(*(rtnl_handle **)(PTR_bb_common_bufsiz1_0012a344 + 8),\n                    *(char **)(PTR_bb_common_bufsiz1_0012a344 + 4),\n                    *(int *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c));\n  if (-1 < iVar2) {\n    *(undefined4 *)(puVar1 + 0x1c) = 0;\n    return 0;\n  }\n  (*(code *)PTR_bb_perror_msg_0012a238)(PTR_UINT_0012a18c + 0x5060);\n  return -1;\n}\n\n" comment (function_definition "int flush_update(void)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_bb_common_bufsiz1_0012a344;\n  iVar2 = rtnl_send(*(rtnl_handle **)(PTR_bb_common_bufsiz1_0012a344 + 8),\n                    *(char **)(PTR_bb_common_bufsiz1_0012a344 + 4),\n                    *(int *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c));\n  if (-1 < iVar2) {\n    *(undefined4 *)(puVar1 + 0x1c) = 0;\n    return 0;\n  }\n  (*(code *)PTR_bb_perror_msg_0012a238)(PTR_UINT_0012a18c + 0x5060);\n  return -1;\n}" primitive_type (function_declarator "flush_update(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_bb_common_bufsiz1_0012a344;\n  iVar2 = rtnl_send(*(rtnl_handle **)(PTR_bb_common_bufsiz1_0012a344 + 8),\n                    *(char **)(PTR_bb_common_bufsiz1_0012a344 + 4),\n                    *(int *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c));\n  if (-1 < iVar2) {\n    *(undefined4 *)(puVar1 + 0x1c) = 0;\n    return 0;\n  }\n  (*(code *)PTR_bb_perror_msg_0012a238)(PTR_UINT_0012a18c + 0x5060);\n  return -1;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_bb_common_bufsiz1_0012a344;" (assignment_expression "puVar1 = PTR_bb_common_bufsiz1_0012a344" identifier = identifier) ;) (expression_statement "iVar2 = rtnl_send(*(rtnl_handle **)(PTR_bb_common_bufsiz1_0012a344 + 8),\n                    *(char **)(PTR_bb_common_bufsiz1_0012a344 + 4),\n                    *(int *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c));" (assignment_expression "iVar2 = rtnl_send(*(rtnl_handle **)(PTR_bb_common_bufsiz1_0012a344 + 8),\n                    *(char **)(PTR_bb_common_bufsiz1_0012a344 + 4),\n                    *(int *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c))" identifier = (call_expression "rtnl_send(*(rtnl_handle **)(PTR_bb_common_bufsiz1_0012a344 + 8),\n                    *(char **)(PTR_bb_common_bufsiz1_0012a344 + 4),\n                    *(int *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c))" identifier (argument_list "(*(rtnl_handle **)(PTR_bb_common_bufsiz1_0012a344 + 8),\n                    *(char **)(PTR_bb_common_bufsiz1_0012a344 + 4),\n                    *(int *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c))" ( (pointer_expression "*(rtnl_handle **)(PTR_bb_common_bufsiz1_0012a344 + 8)" * (cast_expression "(rtnl_handle **)(PTR_bb_common_bufsiz1_0012a344 + 8)" ( (type_descriptor "rtnl_handle **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_bb_common_bufsiz1_0012a344 + 8)" ( (binary_expression "PTR_bb_common_bufsiz1_0012a344 + 8" identifier + number_literal) )))) , (pointer_expression "*(char **)(PTR_bb_common_bufsiz1_0012a344 + 4)" * (cast_expression "(char **)(PTR_bb_common_bufsiz1_0012a344 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_bb_common_bufsiz1_0012a344 + 4)" ( (binary_expression "PTR_bb_common_bufsiz1_0012a344 + 4" identifier + number_literal) )))) , (pointer_expression "*(int *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c)" * (cast_expression "(int *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_bb_common_bufsiz1_0012a344 + 0x1c)" ( (binary_expression "PTR_bb_common_bufsiz1_0012a344 + 0x1c" identifier + number_literal) )))) )))) ;) (if_statement "if (-1 < iVar2) {\n    *(undefined4 *)(puVar1 + 0x1c) = 0;\n    return 0;\n  }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n    *(undefined4 *)(puVar1 + 0x1c) = 0;\n    return 0;\n  }" { (expression_statement "*(undefined4 *)(puVar1 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(puVar1 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(puVar1 + 0x1c)" * (cast_expression "(undefined4 *)(puVar1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x1c)" ( (binary_expression "puVar1 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "(*(code *)PTR_bb_perror_msg_0012a238)(PTR_UINT_0012a18c + 0x5060);" (call_expression "(*(code *)PTR_bb_perror_msg_0012a238)(PTR_UINT_0012a18c + 0x5060)" (parenthesized_expression "(*(code *)PTR_bb_perror_msg_0012a238)" ( (pointer_expression "*(code *)PTR_bb_perror_msg_0012a238" * (cast_expression "(code *)PTR_bb_perror_msg_0012a238" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_UINT_0012a18c + 0x5060)" ( (binary_expression "PTR_UINT_0012a18c + 0x5060" identifier + number_literal) ))) ;) (return_statement "return -1;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00055168(void)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_bb_common_bufsiz1_0012a344;\n  iVar2 = FUN_0005da10(*(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 8),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 4),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c));\n  if (-1 < iVar2) {\n    *(undefined4 *)(puVar1 + 0x1c) = 0;\n    return 0;\n  }\n  (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + 0x5060);\n  return 0xffffffff;\n}\n\n" (function_definition "undefined4 FUN_00055168(void)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_bb_common_bufsiz1_0012a344;\n  iVar2 = FUN_0005da10(*(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 8),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 4),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c));\n  if (-1 < iVar2) {\n    *(undefined4 *)(puVar1 + 0x1c) = 0;\n    return 0;\n  }\n  (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + 0x5060);\n  return 0xffffffff;\n}" type_identifier (function_declarator "FUN_00055168(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_bb_common_bufsiz1_0012a344;\n  iVar2 = FUN_0005da10(*(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 8),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 4),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c));\n  if (-1 < iVar2) {\n    *(undefined4 *)(puVar1 + 0x1c) = 0;\n    return 0;\n  }\n  (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + 0x5060);\n  return 0xffffffff;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_bb_common_bufsiz1_0012a344;" (assignment_expression "puVar1 = PTR_bb_common_bufsiz1_0012a344" identifier = identifier) ;) (expression_statement "iVar2 = FUN_0005da10(*(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 8),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 4),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c));" (assignment_expression "iVar2 = FUN_0005da10(*(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 8),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 4),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c))" identifier = (call_expression "FUN_0005da10(*(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 8),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 4),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c))" identifier (argument_list "(*(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 8),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 4),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c))" ( (pointer_expression "*(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 8)" * (cast_expression "(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_bb_common_bufsiz1_0012a344 + 8)" ( (binary_expression "PTR_bb_common_bufsiz1_0012a344 + 8" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 4)" * (cast_expression "(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_bb_common_bufsiz1_0012a344 + 4)" ( (binary_expression "PTR_bb_common_bufsiz1_0012a344 + 4" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c)" * (cast_expression "(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_bb_common_bufsiz1_0012a344 + 0x1c)" ( (binary_expression "PTR_bb_common_bufsiz1_0012a344 + 0x1c" identifier + number_literal) )))) )))) ;) (if_statement "if (-1 < iVar2) {\n    *(undefined4 *)(puVar1 + 0x1c) = 0;\n    return 0;\n  }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n    *(undefined4 *)(puVar1 + 0x1c) = 0;\n    return 0;\n  }" { (expression_statement "*(undefined4 *)(puVar1 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(puVar1 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(puVar1 + 0x1c)" * (cast_expression "(undefined4 *)(puVar1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x1c)" ( (binary_expression "puVar1 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "(*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + 0x5060);" (call_expression "(*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + 0x5060)" (parenthesized_expression "(*(code *)PTR_FUN_0012a238)" ( (pointer_expression "*(code *)PTR_FUN_0012a238" * (cast_expression "(code *)PTR_FUN_0012a238" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_UINT_0012a18c + 0x5060)" ( (binary_expression "PTR_UINT_0012a18c + 0x5060" identifier + number_literal) ))) ;) (return_statement "return 0xffffffff;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return LIT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00055168(void)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_bb_common_bufsiz1_0012a344;\n  iVar2 = FUN_0005da10(*(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 8),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 4),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c));\n  if (-1 < iVar2) {\n    *(undefined4 *)(puVar1 + 0x1c) = 0;\n    return 0;\n  }\n  (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + 0x5060);\n  return 0xffffffff;\n}" (type_identifier "undefined4") (function_declarator "FUN_00055168(void)" (identifier "FUN_00055168") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_bb_common_bufsiz1_0012a344;\n  iVar2 = FUN_0005da10(*(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 8),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 4),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c));\n  if (-1 < iVar2) {\n    *(undefined4 *)(puVar1 + 0x1c) = 0;\n    return 0;\n  }\n  (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + 0x5060);\n  return 0xffffffff;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "puVar1 = PTR_bb_common_bufsiz1_0012a344;" (assignment_expression "puVar1 = PTR_bb_common_bufsiz1_0012a344" (identifier "puVar1") (= "=") (identifier "PTR_bb_common_bufsiz1_0012a344")) (; ";")) (expression_statement "iVar2 = FUN_0005da10(*(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 8),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 4),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c));" (assignment_expression "iVar2 = FUN_0005da10(*(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 8),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 4),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c))" (identifier "iVar2") (= "=") (call_expression "FUN_0005da10(*(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 8),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 4),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c))" (identifier "FUN_0005da10") (argument_list "(*(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 8),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 4),\n                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c))" (( "(") (pointer_expression "*(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 8)" (* "*") (cast_expression "(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_bb_common_bufsiz1_0012a344 + 8)" (( "(") (binary_expression "PTR_bb_common_bufsiz1_0012a344 + 8" (identifier "PTR_bb_common_bufsiz1_0012a344") (+ "+") (number_literal "8")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 4)" (* "*") (cast_expression "(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_bb_common_bufsiz1_0012a344 + 4)" (( "(") (binary_expression "PTR_bb_common_bufsiz1_0012a344 + 4" (identifier "PTR_bb_common_bufsiz1_0012a344") (+ "+") (number_literal "4")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_bb_common_bufsiz1_0012a344 + 0x1c)" (( "(") (binary_expression "PTR_bb_common_bufsiz1_0012a344 + 0x1c" (identifier "PTR_bb_common_bufsiz1_0012a344") (+ "+") (number_literal "0x1c")) () ")")))) () ")")))) (; ";")) (if_statement "if (-1 < iVar2) {\n    *(undefined4 *)(puVar1 + 0x1c) = 0;\n    return 0;\n  }" (if "if") (parenthesized_expression "(-1 < iVar2)" (( "(") (binary_expression "-1 < iVar2" (number_literal "-1") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n    *(undefined4 *)(puVar1 + 0x1c) = 0;\n    return 0;\n  }" ({ "{") (expression_statement "*(undefined4 *)(puVar1 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(puVar1 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(puVar1 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(puVar1 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0x1c)" (( "(") (binary_expression "puVar1 + 0x1c" (identifier "puVar1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + 0x5060);" (call_expression "(*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + 0x5060)" (parenthesized_expression "(*(code *)PTR_FUN_0012a238)" (( "(") (pointer_expression "*(code *)PTR_FUN_0012a238" (* "*") (cast_expression "(code *)PTR_FUN_0012a238" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0012a238"))) () ")")) (argument_list "(PTR_UINT_0012a18c + 0x5060)" (( "(") (binary_expression "PTR_UINT_0012a18c + 0x5060" (identifier "PTR_UINT_0012a18c") (+ "+") (number_literal "0x5060")) () ")"))) (; ";")) (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) 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: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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))))) (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))))) (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: (number_literal) right: (identifier))) 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))) (return_statement (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: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) (return_statement (number_literal)))))

undefined4 MASKED(void)

{
  undefined *puVar1;
  int iVar2;
  
  puVar1 = PTR_bb_common_bufsiz1_0012a344;
  iVar2 = FUN_0005da10(*(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 8),
                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 4),
                       *(undefined4 *)(PTR_bb_common_bufsiz1_0012a344 + 0x1c));
  if (-1 < iVar2) {
    *(undefined4 *)(puVar1 + 0x1c) = 0;
    return 0;
  }
  (*(code *)PTR_FUN_0012a238)(PTR_UINT_0012a18c + 0x5060);
  return 0xffffffff;
}

