
/* WARNING: Unknown calling convention */

void register_input_parser(awk_input_parser_t *input_parser)

{
  awk_input_parser **ppaVar1;
  char *mesg;
  
  if (input_parser == (awk_input_parser_t *)0x0) {
    set_loc("io.c",0xc42);
    mesg = (char *)(*(code *)PTR_dcgettext_004b235c)
                             (0,"register_input_parser: received NULL pointer",5);
    r_fatal(mesg);
  }
  input_parser->next = (awk_input_parser *)0x0;
  if (ip_head == (awk_input_parser_t *)0x0) {
    ip_head = input_parser;
    ip_tail = input_parser;
    return;
  }
  ppaVar1 = &ip_tail->next;
  ip_tail = input_parser;
  *ppaVar1 = input_parser;
  return;
}



void register_input_parser(int param_1)

{
  int *piVar1;
  undefined4 uVar2;
  
  if (param_1 == 0) {
    set_loc(&DAT_0049ad40,0xc42);
    uVar2 = (*(code *)PTR_dcgettext_004b235c)(0,"register_input_parser: received NULL pointer",5);
    r_fatal(uVar2);
  }
  *(undefined4 *)(param_1 + 0xc) = 0;
  if (DAT_004b6054 == 0) {
    DAT_004b6054 = param_1;
    DAT_004b6050 = param_1;
    return;
  }
  piVar1 = (int *)(DAT_004b6050 + 0xc);
  DAT_004b6050 = param_1;
  *piVar1 = param_1;
  return;
}


lui gp,0x4c
addiu sp,sp,-0x20
addiu gp,gp,-0x64e0
sw s0,0x18(sp)
or s0,a0,zero
sw ra,0x1c(sp)
beq a0,zero,0x00464f04
_sw gp,0x10(sp)
lui v0,0x4b
sw zero,0xc(s0)
lw v1,0x6054(v0)
beq v1,zero,0x00464eec
_lw ra,0x1c(sp)
lui v0,0x4b
lw v1,0x6050(v0)
sw s0,0x6050(v0)
sw s0,0xc(v1)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
sw s0,0x6054(v0)
lui v0,0x4b
sw s0,0x6050(v0)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lui a0,0x4a
lw t9,-0x7fb4(gp)
li a1,0xc42
bal 0x00467090
_addiu a0,a0,-0x52c0
lui a1,0x4a
lw gp,0x10(sp)
li a2,0x5
addiu a1,a1,-0x46b0
lw t9,-0x77c4(gp)
jalr t9
_or a0,zero,zero
lw gp,0x10(sp)
lw t9,-0x7fb0(gp)
bal 0x004675e4
_or a0,v0,zero
b 0x00464ec0
_lui v0,0x4b
(translation_unit "void register_input_parser(int param_1)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n    set_loc(&DAT_0049ad40,0xc42);\n    uVar2 = (*(code *)PTR_dcgettext_004b235c)(0,"register_input_parser: received NULL pointer",5);\n    r_fatal(uVar2);\n  }\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  if (DAT_004b6054 == 0) {\n    DAT_004b6054 = param_1;\n    DAT_004b6050 = param_1;\n    return;\n  }\n  piVar1 = (int *)(DAT_004b6050 + 0xc);\n  DAT_004b6050 = param_1;\n  *piVar1 = param_1;\n  return;\n}\n\n" (function_definition "void register_input_parser(int param_1)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n    set_loc(&DAT_0049ad40,0xc42);\n    uVar2 = (*(code *)PTR_dcgettext_004b235c)(0,"register_input_parser: received NULL pointer",5);\n    r_fatal(uVar2);\n  }\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  if (DAT_004b6054 == 0) {\n    DAT_004b6054 = param_1;\n    DAT_004b6050 = param_1;\n    return;\n  }\n  piVar1 = (int *)(DAT_004b6050 + 0xc);\n  DAT_004b6050 = param_1;\n  *piVar1 = param_1;\n  return;\n}" primitive_type (function_declarator "register_input_parser(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n    set_loc(&DAT_0049ad40,0xc42);\n    uVar2 = (*(code *)PTR_dcgettext_004b235c)(0,"register_input_parser: received NULL pointer",5);\n    r_fatal(uVar2);\n  }\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  if (DAT_004b6054 == 0) {\n    DAT_004b6054 = param_1;\n    DAT_004b6050 = param_1;\n    return;\n  }\n  piVar1 = (int *)(DAT_004b6050 + 0xc);\n  DAT_004b6050 = param_1;\n  *piVar1 = param_1;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (param_1 == 0) {\n    set_loc(&DAT_0049ad40,0xc42);\n    uVar2 = (*(code *)PTR_dcgettext_004b235c)(0,"register_input_parser: received NULL pointer",5);\n    r_fatal(uVar2);\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    set_loc(&DAT_0049ad40,0xc42);\n    uVar2 = (*(code *)PTR_dcgettext_004b235c)(0,"register_input_parser: received NULL pointer",5);\n    r_fatal(uVar2);\n  }" { (expression_statement "set_loc(&DAT_0049ad40,0xc42);" (call_expression "set_loc(&DAT_0049ad40,0xc42)" identifier (argument_list "(&DAT_0049ad40,0xc42)" ( (pointer_expression "&DAT_0049ad40" & identifier) , number_literal ))) ;) (expression_statement "uVar2 = (*(code *)PTR_dcgettext_004b235c)(0,"register_input_parser: received NULL pointer",5);" (assignment_expression "uVar2 = (*(code *)PTR_dcgettext_004b235c)(0,"register_input_parser: received NULL pointer",5)" identifier = (call_expression "(*(code *)PTR_dcgettext_004b235c)(0,"register_input_parser: received NULL pointer",5)" (parenthesized_expression "(*(code *)PTR_dcgettext_004b235c)" ( (pointer_expression "*(code *)PTR_dcgettext_004b235c" * (cast_expression "(code *)PTR_dcgettext_004b235c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,"register_input_parser: received NULL pointer",5)" ( number_literal , (string_literal ""register_input_parser: received NULL pointer"" " string_content ") , number_literal )))) ;) (expression_statement "r_fatal(uVar2);" (call_expression "r_fatal(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (DAT_004b6054 == 0) {\n    DAT_004b6054 = param_1;\n    DAT_004b6050 = param_1;\n    return;\n  }" if (parenthesized_expression "(DAT_004b6054 == 0)" ( (binary_expression "DAT_004b6054 == 0" identifier == number_literal) )) (compound_statement "{\n    DAT_004b6054 = param_1;\n    DAT_004b6050 = param_1;\n    return;\n  }" { (expression_statement "DAT_004b6054 = param_1;" (assignment_expression "DAT_004b6054 = param_1" identifier = identifier) ;) (expression_statement "DAT_004b6050 = param_1;" (assignment_expression "DAT_004b6050 = param_1" identifier = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "piVar1 = (int *)(DAT_004b6050 + 0xc);" (assignment_expression "piVar1 = (int *)(DAT_004b6050 + 0xc)" identifier = (cast_expression "(int *)(DAT_004b6050 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_004b6050 + 0xc)" ( (binary_expression "DAT_004b6050 + 0xc" identifier + number_literal) )))) ;) (expression_statement "DAT_004b6050 = param_1;" (assignment_expression "DAT_004b6050 = param_1" identifier = identifier) ;) (expression_statement "*piVar1 = param_1;" (assignment_expression "*piVar1 = param_1" (pointer_expression "*piVar1" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nvoid register_input_parser(awk_input_parser_t *input_parser)\n\n{\n  awk_input_parser **ppaVar1;\n  char *mesg;\n  \n  if (input_parser == (awk_input_parser_t *)0x0) {\n    set_loc("io.c",0xc42);\n    mesg = (char *)(*(code *)PTR_dcgettext_004b235c)\n                             (0,"register_input_parser: received NULL pointer",5);\n    r_fatal(mesg);\n  }\n  input_parser->next = (awk_input_parser *)0x0;\n  if (ip_head == (awk_input_parser_t *)0x0) {\n    ip_head = input_parser;\n    ip_tail = input_parser;\n    return;\n  }\n  ppaVar1 = &ip_tail->next;\n  ip_tail = input_parser;\n  *ppaVar1 = input_parser;\n  return;\n}\n\n" comment (function_definition "void register_input_parser(awk_input_parser_t *input_parser)\n\n{\n  awk_input_parser **ppaVar1;\n  char *mesg;\n  \n  if (input_parser == (awk_input_parser_t *)0x0) {\n    set_loc("io.c",0xc42);\n    mesg = (char *)(*(code *)PTR_dcgettext_004b235c)\n                             (0,"register_input_parser: received NULL pointer",5);\n    r_fatal(mesg);\n  }\n  input_parser->next = (awk_input_parser *)0x0;\n  if (ip_head == (awk_input_parser_t *)0x0) {\n    ip_head = input_parser;\n    ip_tail = input_parser;\n    return;\n  }\n  ppaVar1 = &ip_tail->next;\n  ip_tail = input_parser;\n  *ppaVar1 = input_parser;\n  return;\n}" primitive_type (function_declarator "register_input_parser(awk_input_parser_t *input_parser)" identifier (parameter_list "(awk_input_parser_t *input_parser)" ( (parameter_declaration "awk_input_parser_t *input_parser" type_identifier (pointer_declarator "*input_parser" * identifier)) ))) (compound_statement "{\n  awk_input_parser **ppaVar1;\n  char *mesg;\n  \n  if (input_parser == (awk_input_parser_t *)0x0) {\n    set_loc("io.c",0xc42);\n    mesg = (char *)(*(code *)PTR_dcgettext_004b235c)\n                             (0,"register_input_parser: received NULL pointer",5);\n    r_fatal(mesg);\n  }\n  input_parser->next = (awk_input_parser *)0x0;\n  if (ip_head == (awk_input_parser_t *)0x0) {\n    ip_head = input_parser;\n    ip_tail = input_parser;\n    return;\n  }\n  ppaVar1 = &ip_tail->next;\n  ip_tail = input_parser;\n  *ppaVar1 = input_parser;\n  return;\n}" { (declaration "awk_input_parser **ppaVar1;" type_identifier (pointer_declarator "**ppaVar1" * (pointer_declarator "*ppaVar1" * identifier)) ;) (declaration "char *mesg;" primitive_type (pointer_declarator "*mesg" * identifier) ;) (if_statement "if (input_parser == (awk_input_parser_t *)0x0) {\n    set_loc("io.c",0xc42);\n    mesg = (char *)(*(code *)PTR_dcgettext_004b235c)\n                             (0,"register_input_parser: received NULL pointer",5);\n    r_fatal(mesg);\n  }" if (parenthesized_expression "(input_parser == (awk_input_parser_t *)0x0)" ( (binary_expression "input_parser == (awk_input_parser_t *)0x0" identifier == (cast_expression "(awk_input_parser_t *)0x0" ( (type_descriptor "awk_input_parser_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    set_loc("io.c",0xc42);\n    mesg = (char *)(*(code *)PTR_dcgettext_004b235c)\n                             (0,"register_input_parser: received NULL pointer",5);\n    r_fatal(mesg);\n  }" { (expression_statement "set_loc("io.c",0xc42);" (call_expression "set_loc("io.c",0xc42)" identifier (argument_list "("io.c",0xc42)" ( (string_literal ""io.c"" " string_content ") , number_literal ))) ;) (expression_statement "mesg = (char *)(*(code *)PTR_dcgettext_004b235c)\n                             (0,"register_input_parser: received NULL pointer",5);" (assignment_expression "mesg = (char *)(*(code *)PTR_dcgettext_004b235c)\n                             (0,"register_input_parser: received NULL pointer",5)" identifier = (cast_expression "(char *)(*(code *)PTR_dcgettext_004b235c)\n                             (0,"register_input_parser: received NULL pointer",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dcgettext_004b235c)\n                             (0,"register_input_parser: received NULL pointer",5)" (parenthesized_expression "(*(code *)PTR_dcgettext_004b235c)" ( (pointer_expression "*(code *)PTR_dcgettext_004b235c" * (cast_expression "(code *)PTR_dcgettext_004b235c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,"register_input_parser: received NULL pointer",5)" ( number_literal , (string_literal ""register_input_parser: received NULL pointer"" " string_content ") , number_literal ))))) ;) (expression_statement "r_fatal(mesg);" (call_expression "r_fatal(mesg)" identifier (argument_list "(mesg)" ( identifier ))) ;) })) (expression_statement "input_parser->next = (awk_input_parser *)0x0;" (assignment_expression "input_parser->next = (awk_input_parser *)0x0" (field_expression "input_parser->next" identifier -> field_identifier) = (cast_expression "(awk_input_parser *)0x0" ( (type_descriptor "awk_input_parser *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (ip_head == (awk_input_parser_t *)0x0) {\n    ip_head = input_parser;\n    ip_tail = input_parser;\n    return;\n  }" if (parenthesized_expression "(ip_head == (awk_input_parser_t *)0x0)" ( (binary_expression "ip_head == (awk_input_parser_t *)0x0" identifier == (cast_expression "(awk_input_parser_t *)0x0" ( (type_descriptor "awk_input_parser_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    ip_head = input_parser;\n    ip_tail = input_parser;\n    return;\n  }" { (expression_statement "ip_head = input_parser;" (assignment_expression "ip_head = input_parser" identifier = identifier) ;) (expression_statement "ip_tail = input_parser;" (assignment_expression "ip_tail = input_parser" identifier = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "ppaVar1 = &ip_tail->next;" (assignment_expression "ppaVar1 = &ip_tail->next" identifier = (pointer_expression "&ip_tail->next" & (field_expression "ip_tail->next" identifier -> field_identifier))) ;) (expression_statement "ip_tail = input_parser;" (assignment_expression "ip_tail = input_parser" identifier = identifier) ;) (expression_statement "*ppaVar1 = input_parser;" (assignment_expression "*ppaVar1 = input_parser" (pointer_expression "*ppaVar1" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void register_input_parser(int param_1)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n    set_loc(&DAT_0049ad40,0xc42);\n    uVar2 = (*(code *)PTR_dcgettext_004b235c)(0,"register_input_parser: received NULL pointer",5);\n    r_fatal(uVar2);\n  }\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  if (DAT_004b6054 == 0) {\n    DAT_004b6054 = param_1;\n    DAT_004b6050 = param_1;\n    return;\n  }\n  piVar1 = (int *)(DAT_004b6050 + 0xc);\n  DAT_004b6050 = param_1;\n  *piVar1 = param_1;\n  return;\n}\n\n" (function_definition "void register_input_parser(int param_1)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n    set_loc(&DAT_0049ad40,0xc42);\n    uVar2 = (*(code *)PTR_dcgettext_004b235c)(0,"register_input_parser: received NULL pointer",5);\n    r_fatal(uVar2);\n  }\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  if (DAT_004b6054 == 0) {\n    DAT_004b6054 = param_1;\n    DAT_004b6050 = param_1;\n    return;\n  }\n  piVar1 = (int *)(DAT_004b6050 + 0xc);\n  DAT_004b6050 = param_1;\n  *piVar1 = param_1;\n  return;\n}" primitive_type (function_declarator "register_input_parser(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n    set_loc(&DAT_0049ad40,0xc42);\n    uVar2 = (*(code *)PTR_dcgettext_004b235c)(0,"register_input_parser: received NULL pointer",5);\n    r_fatal(uVar2);\n  }\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  if (DAT_004b6054 == 0) {\n    DAT_004b6054 = param_1;\n    DAT_004b6050 = param_1;\n    return;\n  }\n  piVar1 = (int *)(DAT_004b6050 + 0xc);\n  DAT_004b6050 = param_1;\n  *piVar1 = param_1;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (param_1 == 0) {\n    set_loc(&DAT_0049ad40,0xc42);\n    uVar2 = (*(code *)PTR_dcgettext_004b235c)(0,"register_input_parser: received NULL pointer",5);\n    r_fatal(uVar2);\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    set_loc(&DAT_0049ad40,0xc42);\n    uVar2 = (*(code *)PTR_dcgettext_004b235c)(0,"register_input_parser: received NULL pointer",5);\n    r_fatal(uVar2);\n  }" { (expression_statement "set_loc(&DAT_0049ad40,0xc42);" (call_expression "set_loc(&DAT_0049ad40,0xc42)" identifier (argument_list "(&DAT_0049ad40,0xc42)" ( (pointer_expression "&DAT_0049ad40" & identifier) , number_literal ))) ;) (expression_statement "uVar2 = (*(code *)PTR_dcgettext_004b235c)(0,"register_input_parser: received NULL pointer",5);" (assignment_expression "uVar2 = (*(code *)PTR_dcgettext_004b235c)(0,"register_input_parser: received NULL pointer",5)" identifier = (call_expression "(*(code *)PTR_dcgettext_004b235c)(0,"register_input_parser: received NULL pointer",5)" (parenthesized_expression "(*(code *)PTR_dcgettext_004b235c)" ( (pointer_expression "*(code *)PTR_dcgettext_004b235c" * (cast_expression "(code *)PTR_dcgettext_004b235c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,"register_input_parser: received NULL pointer",5)" ( number_literal , (string_literal ""register_input_parser: received NULL pointer"" " string_content ") , number_literal )))) ;) (expression_statement "r_fatal(uVar2);" (call_expression "r_fatal(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (DAT_004b6054 == 0) {\n    DAT_004b6054 = param_1;\n    DAT_004b6050 = param_1;\n    return;\n  }" if (parenthesized_expression "(DAT_004b6054 == 0)" ( (binary_expression "DAT_004b6054 == 0" identifier == number_literal) )) (compound_statement "{\n    DAT_004b6054 = param_1;\n    DAT_004b6050 = param_1;\n    return;\n  }" { (expression_statement "DAT_004b6054 = param_1;" (assignment_expression "DAT_004b6054 = param_1" identifier = identifier) ;) (expression_statement "DAT_004b6050 = param_1;" (assignment_expression "DAT_004b6050 = param_1" identifier = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "piVar1 = (int *)(DAT_004b6050 + 0xc);" (assignment_expression "piVar1 = (int *)(DAT_004b6050 + 0xc)" identifier = (cast_expression "(int *)(DAT_004b6050 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_004b6050 + 0xc)" ( (binary_expression "DAT_004b6050 + 0xc" identifier + number_literal) )))) ;) (expression_statement "DAT_004b6050 = param_1;" (assignment_expression "DAT_004b6050 = param_1" identifier = identifier) ;) (expression_statement "*piVar1 = param_1;" (assignment_expression "*piVar1 = param_1" (pointer_expression "*piVar1" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return ;) })))
(function_definition "void register_input_parser(int param_1)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n    set_loc(&DAT_0049ad40,0xc42);\n    uVar2 = (*(code *)PTR_dcgettext_004b235c)(0,"register_input_parser: received NULL pointer",5);\n    r_fatal(uVar2);\n  }\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  if (DAT_004b6054 == 0) {\n    DAT_004b6054 = param_1;\n    DAT_004b6050 = param_1;\n    return;\n  }\n  piVar1 = (int *)(DAT_004b6050 + 0xc);\n  DAT_004b6050 = param_1;\n  *piVar1 = param_1;\n  return;\n}" (primitive_type "void") (function_declarator "register_input_parser(int param_1)" (identifier "register_input_parser") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  if (param_1 == 0) {\n    set_loc(&DAT_0049ad40,0xc42);\n    uVar2 = (*(code *)PTR_dcgettext_004b235c)(0,"register_input_parser: received NULL pointer",5);\n    r_fatal(uVar2);\n  }\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  if (DAT_004b6054 == 0) {\n    DAT_004b6054 = param_1;\n    DAT_004b6050 = param_1;\n    return;\n  }\n  piVar1 = (int *)(DAT_004b6050 + 0xc);\n  DAT_004b6050 = param_1;\n  *piVar1 = param_1;\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (if_statement "if (param_1 == 0) {\n    set_loc(&DAT_0049ad40,0xc42);\n    uVar2 = (*(code *)PTR_dcgettext_004b235c)(0,"register_input_parser: received NULL pointer",5);\n    r_fatal(uVar2);\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    set_loc(&DAT_0049ad40,0xc42);\n    uVar2 = (*(code *)PTR_dcgettext_004b235c)(0,"register_input_parser: received NULL pointer",5);\n    r_fatal(uVar2);\n  }" ({ "{") (expression_statement "set_loc(&DAT_0049ad40,0xc42);" (call_expression "set_loc(&DAT_0049ad40,0xc42)" (identifier "set_loc") (argument_list "(&DAT_0049ad40,0xc42)" (( "(") (pointer_expression "&DAT_0049ad40" (& "&") (identifier "DAT_0049ad40")) (, ",") (number_literal "0xc42") () ")"))) (; ";")) (expression_statement "uVar2 = (*(code *)PTR_dcgettext_004b235c)(0,"register_input_parser: received NULL pointer",5);" (assignment_expression "uVar2 = (*(code *)PTR_dcgettext_004b235c)(0,"register_input_parser: received NULL pointer",5)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_dcgettext_004b235c)(0,"register_input_parser: received NULL pointer",5)" (parenthesized_expression "(*(code *)PTR_dcgettext_004b235c)" (( "(") (pointer_expression "*(code *)PTR_dcgettext_004b235c" (* "*") (cast_expression "(code *)PTR_dcgettext_004b235c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dcgettext_004b235c"))) () ")")) (argument_list "(0,"register_input_parser: received NULL pointer",5)" (( "(") (number_literal "0") (, ",") (string_literal ""register_input_parser: received NULL pointer"" (" """) (string_content "register_input_parser: received NULL pointer") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "r_fatal(uVar2);" (call_expression "r_fatal(uVar2)" (identifier "r_fatal") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (DAT_004b6054 == 0) {\n    DAT_004b6054 = param_1;\n    DAT_004b6050 = param_1;\n    return;\n  }" (if "if") (parenthesized_expression "(DAT_004b6054 == 0)" (( "(") (binary_expression "DAT_004b6054 == 0" (identifier "DAT_004b6054") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    DAT_004b6054 = param_1;\n    DAT_004b6050 = param_1;\n    return;\n  }" ({ "{") (expression_statement "DAT_004b6054 = param_1;" (assignment_expression "DAT_004b6054 = param_1" (identifier "DAT_004b6054") (= "=") (identifier "param_1")) (; ";")) (expression_statement "DAT_004b6050 = param_1;" (assignment_expression "DAT_004b6050 = param_1" (identifier "DAT_004b6050") (= "=") (identifier "param_1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "piVar1 = (int *)(DAT_004b6050 + 0xc);" (assignment_expression "piVar1 = (int *)(DAT_004b6050 + 0xc)" (identifier "piVar1") (= "=") (cast_expression "(int *)(DAT_004b6050 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_004b6050 + 0xc)" (( "(") (binary_expression "DAT_004b6050 + 0xc" (identifier "DAT_004b6050") (+ "+") (number_literal "0xc")) () ")")))) (; ";")) (expression_statement "DAT_004b6050 = param_1;" (assignment_expression "DAT_004b6050 = param_1" (identifier "DAT_004b6050") (= "=") (identifier "param_1")) (; ";")) (expression_statement "*piVar1 = param_1;" (assignment_expression "*piVar1 = param_1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (identifier "param_1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

void function_1(type_1 *var_1)

{
  type_2 **ppaVar1;
  char *mesg;
  
  if (var_1 == (type_1 *)0x0) {
    var_2("io.c",0xc42);
    mesg = (char *)(*(type_3 *)PTR_dcgettext_004b235c)
                             (0,"register_input_parser: received NULL pointer",5);
    var_3(mesg);
  }
  var_1->next = (type_2 *)0x0;
  if (var_4 == (type_1 *)0x0) {
    var_4 = var_1;
    ip_tail = var_1;
    return;
  }
  ppaVar1 = &ip_tail->next;
  ip_tail = var_1;
  *ppaVar1 = var_1;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (number_literal)))) (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 (number_literal) (string_literal (string_content)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (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))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (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: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement))))

void MASKED(int param_1)

{
  int *piVar1;
  undefined4 uVar2;
  
  if (param_1 == 0) {
    set_loc(&DAT_0049ad40,0xc42);
    uVar2 = (*(code *)PTR_dcgettext_004b235c)(0,"MASKED: received NULL pointer",5);
    r_fatal(uVar2);
  }
  *(undefined4 *)(param_1 + 0xc) = 0;
  if (DAT_004b6054 == 0) {
    DAT_004b6054 = param_1;
    DAT_004b6050 = param_1;
    return;
  }
  piVar1 = (int *)(DAT_004b6050 + 0xc);
  DAT_004b6050 = param_1;
  *piVar1 = param_1;
  return;
}

