
void _rl_with_macro_input(char *string)

{
  undefined *puVar1;
  undefined *puVar2;
  uint uVar3;
  
  if (*(int *)(PTR___environ_00145154 + -0x582c) < 0x11) {
    _rl_push_executing_macro();
    puVar1 = PTR_rl_readline_state_00144658;
    uVar3 = *(uint *)PTR_rl_readline_state_00144658;
    *(char **)PTR_rl_executing_macro_00145d48 = string;
    puVar2 = PTR___environ_00145154;
    *(uint *)puVar1 = uVar3 | 0x800;
    *(undefined4 *)(puVar2 + -0x5818) = 0;
    return;
  }
  _rl_errmsg(PTR_DAT_001445ac + -0x2004);
                    /* WARNING: Subroutine does not return */
  _rl_abort_internal();
}



void _rl_with_macro_input(undefined4 param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  uint uVar3;
  
  if (*(int *)(PTR___environ_00145154 + -0x582c) < 0x11) {
    _rl_push_executing_macro();
    puVar1 = PTR_rl_readline_state_00144658;
    uVar3 = *(uint *)PTR_rl_readline_state_00144658;
    *(undefined4 *)PTR_rl_executing_macro_00145d48 = param_1;
    puVar2 = PTR___environ_00145154;
    *(uint *)puVar1 = uVar3 | 0x800;
    *(undefined4 *)(puVar2 + -0x5818) = 0;
    return;
  }
  _rl_errmsg(PTR_DAT_001445ac + -0x2004);
  _rl_abort_internal();
  return;
}


lui gp,0x5
addiu gp,gp,-0x56cc
addu gp,gp,t9
lw v0,-0x73ec(gp)
addiu sp,sp,-0x20
sw gp,0x10(sp)
sw ra,0x1c(sp)
sw s0,0x18(sp)
lw v0,-0x582c(v0)
slti v0,v0,0x11
beq v0,zero,0x00101c78
_lw t9,-0x6474(gp)
bal 0x00101ba0
_or s0,a0,zero
lw gp,0x10(sp)
lw ra,0x1c(sp)
lw v1,-0x7ee8(gp)
lw a0,-0x67f8(gp)
lw v0,0x0(v1)
sw s0,0x0(a0)
lw a0,-0x73ec(gp)
ori v0,v0,0x800
lw s0,0x18(sp)
sw v0,0x0(v1)
addiu sp,sp,0x20
jr ra
_sw zero,-0x5818(a0)
lw a0,-0x7f94(gp)
lw t9,-0x67b8(gp)
bal 0x000ff6a4
_addiu a0,a0,-0x2004
lw gp,0x10(sp)
lw ra,0x1c(sp)
lw s0,0x18(sp)
lw t9,-0x68e0(gp)
b 0x000ff15c
_addiu sp,sp,0x20
(translation_unit "void _rl_with_macro_input(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  \n  if (*(int *)(PTR___environ_00145154 + -0x582c) < 0x11) {\n    _rl_push_executing_macro();\n    puVar1 = PTR_rl_readline_state_00144658;\n    uVar3 = *(uint *)PTR_rl_readline_state_00144658;\n    *(undefined4 *)PTR_rl_executing_macro_00145d48 = param_1;\n    puVar2 = PTR___environ_00145154;\n    *(uint *)puVar1 = uVar3 | 0x800;\n    *(undefined4 *)(puVar2 + -0x5818) = 0;\n    return;\n  }\n  _rl_errmsg(PTR_DAT_001445ac + -0x2004);\n  _rl_abort_internal();\n  return;\n}\n\n" (function_definition "void _rl_with_macro_input(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  \n  if (*(int *)(PTR___environ_00145154 + -0x582c) < 0x11) {\n    _rl_push_executing_macro();\n    puVar1 = PTR_rl_readline_state_00144658;\n    uVar3 = *(uint *)PTR_rl_readline_state_00144658;\n    *(undefined4 *)PTR_rl_executing_macro_00145d48 = param_1;\n    puVar2 = PTR___environ_00145154;\n    *(uint *)puVar1 = uVar3 | 0x800;\n    *(undefined4 *)(puVar2 + -0x5818) = 0;\n    return;\n  }\n  _rl_errmsg(PTR_DAT_001445ac + -0x2004);\n  _rl_abort_internal();\n  return;\n}" primitive_type (function_declarator "_rl_with_macro_input(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  \n  if (*(int *)(PTR___environ_00145154 + -0x582c) < 0x11) {\n    _rl_push_executing_macro();\n    puVar1 = PTR_rl_readline_state_00144658;\n    uVar3 = *(uint *)PTR_rl_readline_state_00144658;\n    *(undefined4 *)PTR_rl_executing_macro_00145d48 = param_1;\n    puVar2 = PTR___environ_00145154;\n    *(uint *)puVar1 = uVar3 | 0x800;\n    *(undefined4 *)(puVar2 + -0x5818) = 0;\n    return;\n  }\n  _rl_errmsg(PTR_DAT_001445ac + -0x2004);\n  _rl_abort_internal();\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if (*(int *)(PTR___environ_00145154 + -0x582c) < 0x11) {\n    _rl_push_executing_macro();\n    puVar1 = PTR_rl_readline_state_00144658;\n    uVar3 = *(uint *)PTR_rl_readline_state_00144658;\n    *(undefined4 *)PTR_rl_executing_macro_00145d48 = param_1;\n    puVar2 = PTR___environ_00145154;\n    *(uint *)puVar1 = uVar3 | 0x800;\n    *(undefined4 *)(puVar2 + -0x5818) = 0;\n    return;\n  }" if (parenthesized_expression "(*(int *)(PTR___environ_00145154 + -0x582c) < 0x11)" ( (binary_expression "*(int *)(PTR___environ_00145154 + -0x582c) < 0x11" (pointer_expression "*(int *)(PTR___environ_00145154 + -0x582c)" * (cast_expression "(int *)(PTR___environ_00145154 + -0x582c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___environ_00145154 + -0x582c)" ( (binary_expression "PTR___environ_00145154 + -0x582c" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n    _rl_push_executing_macro();\n    puVar1 = PTR_rl_readline_state_00144658;\n    uVar3 = *(uint *)PTR_rl_readline_state_00144658;\n    *(undefined4 *)PTR_rl_executing_macro_00145d48 = param_1;\n    puVar2 = PTR___environ_00145154;\n    *(uint *)puVar1 = uVar3 | 0x800;\n    *(undefined4 *)(puVar2 + -0x5818) = 0;\n    return;\n  }" { (expression_statement "_rl_push_executing_macro();" (call_expression "_rl_push_executing_macro()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar1 = PTR_rl_readline_state_00144658;" (assignment_expression "puVar1 = PTR_rl_readline_state_00144658" identifier = identifier) ;) (expression_statement "uVar3 = *(uint *)PTR_rl_readline_state_00144658;" (assignment_expression "uVar3 = *(uint *)PTR_rl_readline_state_00144658" identifier = (pointer_expression "*(uint *)PTR_rl_readline_state_00144658" * (cast_expression "(uint *)PTR_rl_readline_state_00144658" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined4 *)PTR_rl_executing_macro_00145d48 = param_1;" (assignment_expression "*(undefined4 *)PTR_rl_executing_macro_00145d48 = param_1" (pointer_expression "*(undefined4 *)PTR_rl_executing_macro_00145d48" * (cast_expression "(undefined4 *)PTR_rl_executing_macro_00145d48" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "puVar2 = PTR___environ_00145154;" (assignment_expression "puVar2 = PTR___environ_00145154" identifier = identifier) ;) (expression_statement "*(uint *)puVar1 = uVar3 | 0x800;" (assignment_expression "*(uint *)puVar1 = uVar3 | 0x800" (pointer_expression "*(uint *)puVar1" * (cast_expression "(uint *)puVar1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "uVar3 | 0x800" identifier | number_literal)) ;) (expression_statement "*(undefined4 *)(puVar2 + -0x5818) = 0;" (assignment_expression "*(undefined4 *)(puVar2 + -0x5818) = 0" (pointer_expression "*(undefined4 *)(puVar2 + -0x5818)" * (cast_expression "(undefined4 *)(puVar2 + -0x5818)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x5818)" ( (binary_expression "puVar2 + -0x5818" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "_rl_errmsg(PTR_DAT_001445ac + -0x2004);" (call_expression "_rl_errmsg(PTR_DAT_001445ac + -0x2004)" identifier (argument_list "(PTR_DAT_001445ac + -0x2004)" ( (binary_expression "PTR_DAT_001445ac + -0x2004" identifier + number_literal) ))) ;) (expression_statement "_rl_abort_internal();" (call_expression "_rl_abort_internal()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void _rl_with_macro_input(char *string)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  \n  if (*(int *)(PTR___environ_00145154 + -0x582c) < 0x11) {\n    _rl_push_executing_macro();\n    puVar1 = PTR_rl_readline_state_00144658;\n    uVar3 = *(uint *)PTR_rl_readline_state_00144658;\n    *(char **)PTR_rl_executing_macro_00145d48 = string;\n    puVar2 = PTR___environ_00145154;\n    *(uint *)puVar1 = uVar3 | 0x800;\n    *(undefined4 *)(puVar2 + -0x5818) = 0;\n    return;\n  }\n  _rl_errmsg(PTR_DAT_001445ac + -0x2004);\n                    /* WARNING: Subroutine does not return */\n  _rl_abort_internal();\n}\n\n" (function_definition "void _rl_with_macro_input(char *string)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  \n  if (*(int *)(PTR___environ_00145154 + -0x582c) < 0x11) {\n    _rl_push_executing_macro();\n    puVar1 = PTR_rl_readline_state_00144658;\n    uVar3 = *(uint *)PTR_rl_readline_state_00144658;\n    *(char **)PTR_rl_executing_macro_00145d48 = string;\n    puVar2 = PTR___environ_00145154;\n    *(uint *)puVar1 = uVar3 | 0x800;\n    *(undefined4 *)(puVar2 + -0x5818) = 0;\n    return;\n  }\n  _rl_errmsg(PTR_DAT_001445ac + -0x2004);\n                    /* WARNING: Subroutine does not return */\n  _rl_abort_internal();\n}" primitive_type (function_declarator "_rl_with_macro_input(char *string)" identifier (parameter_list "(char *string)" ( (parameter_declaration "char *string" primitive_type (pointer_declarator "*string" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  \n  if (*(int *)(PTR___environ_00145154 + -0x582c) < 0x11) {\n    _rl_push_executing_macro();\n    puVar1 = PTR_rl_readline_state_00144658;\n    uVar3 = *(uint *)PTR_rl_readline_state_00144658;\n    *(char **)PTR_rl_executing_macro_00145d48 = string;\n    puVar2 = PTR___environ_00145154;\n    *(uint *)puVar1 = uVar3 | 0x800;\n    *(undefined4 *)(puVar2 + -0x5818) = 0;\n    return;\n  }\n  _rl_errmsg(PTR_DAT_001445ac + -0x2004);\n                    /* WARNING: Subroutine does not return */\n  _rl_abort_internal();\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if (*(int *)(PTR___environ_00145154 + -0x582c) < 0x11) {\n    _rl_push_executing_macro();\n    puVar1 = PTR_rl_readline_state_00144658;\n    uVar3 = *(uint *)PTR_rl_readline_state_00144658;\n    *(char **)PTR_rl_executing_macro_00145d48 = string;\n    puVar2 = PTR___environ_00145154;\n    *(uint *)puVar1 = uVar3 | 0x800;\n    *(undefined4 *)(puVar2 + -0x5818) = 0;\n    return;\n  }" if (parenthesized_expression "(*(int *)(PTR___environ_00145154 + -0x582c) < 0x11)" ( (binary_expression "*(int *)(PTR___environ_00145154 + -0x582c) < 0x11" (pointer_expression "*(int *)(PTR___environ_00145154 + -0x582c)" * (cast_expression "(int *)(PTR___environ_00145154 + -0x582c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___environ_00145154 + -0x582c)" ( (binary_expression "PTR___environ_00145154 + -0x582c" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n    _rl_push_executing_macro();\n    puVar1 = PTR_rl_readline_state_00144658;\n    uVar3 = *(uint *)PTR_rl_readline_state_00144658;\n    *(char **)PTR_rl_executing_macro_00145d48 = string;\n    puVar2 = PTR___environ_00145154;\n    *(uint *)puVar1 = uVar3 | 0x800;\n    *(undefined4 *)(puVar2 + -0x5818) = 0;\n    return;\n  }" { (expression_statement "_rl_push_executing_macro();" (call_expression "_rl_push_executing_macro()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar1 = PTR_rl_readline_state_00144658;" (assignment_expression "puVar1 = PTR_rl_readline_state_00144658" identifier = identifier) ;) (expression_statement "uVar3 = *(uint *)PTR_rl_readline_state_00144658;" (assignment_expression "uVar3 = *(uint *)PTR_rl_readline_state_00144658" identifier = (pointer_expression "*(uint *)PTR_rl_readline_state_00144658" * (cast_expression "(uint *)PTR_rl_readline_state_00144658" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(char **)PTR_rl_executing_macro_00145d48 = string;" (assignment_expression "*(char **)PTR_rl_executing_macro_00145d48 = string" (pointer_expression "*(char **)PTR_rl_executing_macro_00145d48" * (cast_expression "(char **)PTR_rl_executing_macro_00145d48" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "puVar2 = PTR___environ_00145154;" (assignment_expression "puVar2 = PTR___environ_00145154" identifier = identifier) ;) (expression_statement "*(uint *)puVar1 = uVar3 | 0x800;" (assignment_expression "*(uint *)puVar1 = uVar3 | 0x800" (pointer_expression "*(uint *)puVar1" * (cast_expression "(uint *)puVar1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "uVar3 | 0x800" identifier | number_literal)) ;) (expression_statement "*(undefined4 *)(puVar2 + -0x5818) = 0;" (assignment_expression "*(undefined4 *)(puVar2 + -0x5818) = 0" (pointer_expression "*(undefined4 *)(puVar2 + -0x5818)" * (cast_expression "(undefined4 *)(puVar2 + -0x5818)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x5818)" ( (binary_expression "puVar2 + -0x5818" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "_rl_errmsg(PTR_DAT_001445ac + -0x2004);" (call_expression "_rl_errmsg(PTR_DAT_001445ac + -0x2004)" identifier (argument_list "(PTR_DAT_001445ac + -0x2004)" ( (binary_expression "PTR_DAT_001445ac + -0x2004" identifier + number_literal) ))) ;) comment (expression_statement "_rl_abort_internal();" (call_expression "_rl_abort_internal()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void _rl_with_macro_input(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  \n  if (*(int *)(PTR___environ_00145154 + -0x582c) < 0x11) {\n    _rl_push_executing_macro();\n    puVar1 = PTR_rl_readline_state_00144658;\n    uVar3 = *(uint *)PTR_rl_readline_state_00144658;\n    *(undefined4 *)PTR_rl_executing_macro_00145d48 = param_1;\n    puVar2 = PTR___environ_00145154;\n    *(uint *)puVar1 = uVar3 | 0x800;\n    *(undefined4 *)(puVar2 + -0x5818) = 0;\n    return;\n  }\n  _rl_errmsg(PTR_DAT_001445ac + -0x2004);\n  _rl_abort_internal();\n  return;\n}\n\n" (function_definition "void _rl_with_macro_input(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  \n  if (*(int *)(PTR___environ_00145154 + -0x582c) < 0x11) {\n    _rl_push_executing_macro();\n    puVar1 = PTR_rl_readline_state_00144658;\n    uVar3 = *(uint *)PTR_rl_readline_state_00144658;\n    *(undefined4 *)PTR_rl_executing_macro_00145d48 = param_1;\n    puVar2 = PTR___environ_00145154;\n    *(uint *)puVar1 = uVar3 | 0x800;\n    *(undefined4 *)(puVar2 + -0x5818) = 0;\n    return;\n  }\n  _rl_errmsg(PTR_DAT_001445ac + -0x2004);\n  _rl_abort_internal();\n  return;\n}" primitive_type (function_declarator "_rl_with_macro_input(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  \n  if (*(int *)(PTR___environ_00145154 + -0x582c) < 0x11) {\n    _rl_push_executing_macro();\n    puVar1 = PTR_rl_readline_state_00144658;\n    uVar3 = *(uint *)PTR_rl_readline_state_00144658;\n    *(undefined4 *)PTR_rl_executing_macro_00145d48 = param_1;\n    puVar2 = PTR___environ_00145154;\n    *(uint *)puVar1 = uVar3 | 0x800;\n    *(undefined4 *)(puVar2 + -0x5818) = 0;\n    return;\n  }\n  _rl_errmsg(PTR_DAT_001445ac + -0x2004);\n  _rl_abort_internal();\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if (*(int *)(PTR___environ_00145154 + -0x582c) < 0x11) {\n    _rl_push_executing_macro();\n    puVar1 = PTR_rl_readline_state_00144658;\n    uVar3 = *(uint *)PTR_rl_readline_state_00144658;\n    *(undefined4 *)PTR_rl_executing_macro_00145d48 = param_1;\n    puVar2 = PTR___environ_00145154;\n    *(uint *)puVar1 = uVar3 | 0x800;\n    *(undefined4 *)(puVar2 + -0x5818) = 0;\n    return;\n  }" if (parenthesized_expression "(*(int *)(PTR___environ_00145154 + -0x582c) < 0x11)" ( (binary_expression "*(int *)(PTR___environ_00145154 + -0x582c) < 0x11" (pointer_expression "*(int *)(PTR___environ_00145154 + -0x582c)" * (cast_expression "(int *)(PTR___environ_00145154 + -0x582c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___environ_00145154 + -0x582c)" ( (binary_expression "PTR___environ_00145154 + -0x582c" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n    _rl_push_executing_macro();\n    puVar1 = PTR_rl_readline_state_00144658;\n    uVar3 = *(uint *)PTR_rl_readline_state_00144658;\n    *(undefined4 *)PTR_rl_executing_macro_00145d48 = param_1;\n    puVar2 = PTR___environ_00145154;\n    *(uint *)puVar1 = uVar3 | 0x800;\n    *(undefined4 *)(puVar2 + -0x5818) = 0;\n    return;\n  }" { (expression_statement "_rl_push_executing_macro();" (call_expression "_rl_push_executing_macro()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar1 = PTR_rl_readline_state_00144658;" (assignment_expression "puVar1 = PTR_rl_readline_state_00144658" identifier = identifier) ;) (expression_statement "uVar3 = *(uint *)PTR_rl_readline_state_00144658;" (assignment_expression "uVar3 = *(uint *)PTR_rl_readline_state_00144658" identifier = (pointer_expression "*(uint *)PTR_rl_readline_state_00144658" * (cast_expression "(uint *)PTR_rl_readline_state_00144658" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined4 *)PTR_rl_executing_macro_00145d48 = param_1;" (assignment_expression "*(undefined4 *)PTR_rl_executing_macro_00145d48 = param_1" (pointer_expression "*(undefined4 *)PTR_rl_executing_macro_00145d48" * (cast_expression "(undefined4 *)PTR_rl_executing_macro_00145d48" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "puVar2 = PTR___environ_00145154;" (assignment_expression "puVar2 = PTR___environ_00145154" identifier = identifier) ;) (expression_statement "*(uint *)puVar1 = uVar3 | 0x800;" (assignment_expression "*(uint *)puVar1 = uVar3 | 0x800" (pointer_expression "*(uint *)puVar1" * (cast_expression "(uint *)puVar1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "uVar3 | 0x800" identifier | number_literal)) ;) (expression_statement "*(undefined4 *)(puVar2 + -0x5818) = 0;" (assignment_expression "*(undefined4 *)(puVar2 + -0x5818) = 0" (pointer_expression "*(undefined4 *)(puVar2 + -0x5818)" * (cast_expression "(undefined4 *)(puVar2 + -0x5818)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x5818)" ( (binary_expression "puVar2 + -0x5818" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "_rl_errmsg(PTR_DAT_001445ac + -0x2004);" (call_expression "_rl_errmsg(PTR_DAT_001445ac + -0x2004)" identifier (argument_list "(PTR_DAT_001445ac + -0x2004)" ( (binary_expression "PTR_DAT_001445ac + -0x2004" identifier + number_literal) ))) ;) (expression_statement "_rl_abort_internal();" (call_expression "_rl_abort_internal()" identifier (argument_list "()" ( ))) ;) (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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (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)) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (binary_expression IDENT | LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void _rl_with_macro_input(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  \n  if (*(int *)(PTR___environ_00145154 + -0x582c) < 0x11) {\n    _rl_push_executing_macro();\n    puVar1 = PTR_rl_readline_state_00144658;\n    uVar3 = *(uint *)PTR_rl_readline_state_00144658;\n    *(undefined4 *)PTR_rl_executing_macro_00145d48 = param_1;\n    puVar2 = PTR___environ_00145154;\n    *(uint *)puVar1 = uVar3 | 0x800;\n    *(undefined4 *)(puVar2 + -0x5818) = 0;\n    return;\n  }\n  _rl_errmsg(PTR_DAT_001445ac + -0x2004);\n  _rl_abort_internal();\n  return;\n}" (primitive_type "void") (function_declarator "_rl_with_macro_input(undefined4 param_1)" (identifier "_rl_with_macro_input") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  \n  if (*(int *)(PTR___environ_00145154 + -0x582c) < 0x11) {\n    _rl_push_executing_macro();\n    puVar1 = PTR_rl_readline_state_00144658;\n    uVar3 = *(uint *)PTR_rl_readline_state_00144658;\n    *(undefined4 *)PTR_rl_executing_macro_00145d48 = param_1;\n    puVar2 = PTR___environ_00145154;\n    *(uint *)puVar1 = uVar3 | 0x800;\n    *(undefined4 *)(puVar2 + -0x5818) = 0;\n    return;\n  }\n  _rl_errmsg(PTR_DAT_001445ac + -0x2004);\n  _rl_abort_internal();\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 "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (if_statement "if (*(int *)(PTR___environ_00145154 + -0x582c) < 0x11) {\n    _rl_push_executing_macro();\n    puVar1 = PTR_rl_readline_state_00144658;\n    uVar3 = *(uint *)PTR_rl_readline_state_00144658;\n    *(undefined4 *)PTR_rl_executing_macro_00145d48 = param_1;\n    puVar2 = PTR___environ_00145154;\n    *(uint *)puVar1 = uVar3 | 0x800;\n    *(undefined4 *)(puVar2 + -0x5818) = 0;\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(PTR___environ_00145154 + -0x582c) < 0x11)" (( "(") (binary_expression "*(int *)(PTR___environ_00145154 + -0x582c) < 0x11" (pointer_expression "*(int *)(PTR___environ_00145154 + -0x582c)" (* "*") (cast_expression "(int *)(PTR___environ_00145154 + -0x582c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR___environ_00145154 + -0x582c)" (( "(") (binary_expression "PTR___environ_00145154 + -0x582c" (identifier "PTR___environ_00145154") (+ "+") (number_literal "-0x582c")) () ")")))) (< "<") (number_literal "0x11")) () ")")) (compound_statement "{\n    _rl_push_executing_macro();\n    puVar1 = PTR_rl_readline_state_00144658;\n    uVar3 = *(uint *)PTR_rl_readline_state_00144658;\n    *(undefined4 *)PTR_rl_executing_macro_00145d48 = param_1;\n    puVar2 = PTR___environ_00145154;\n    *(uint *)puVar1 = uVar3 | 0x800;\n    *(undefined4 *)(puVar2 + -0x5818) = 0;\n    return;\n  }" ({ "{") (expression_statement "_rl_push_executing_macro();" (call_expression "_rl_push_executing_macro()" (identifier "_rl_push_executing_macro") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar1 = PTR_rl_readline_state_00144658;" (assignment_expression "puVar1 = PTR_rl_readline_state_00144658" (identifier "puVar1") (= "=") (identifier "PTR_rl_readline_state_00144658")) (; ";")) (expression_statement "uVar3 = *(uint *)PTR_rl_readline_state_00144658;" (assignment_expression "uVar3 = *(uint *)PTR_rl_readline_state_00144658" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)PTR_rl_readline_state_00144658" (* "*") (cast_expression "(uint *)PTR_rl_readline_state_00144658" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_rl_readline_state_00144658")))) (; ";")) (expression_statement "*(undefined4 *)PTR_rl_executing_macro_00145d48 = param_1;" (assignment_expression "*(undefined4 *)PTR_rl_executing_macro_00145d48 = param_1" (pointer_expression "*(undefined4 *)PTR_rl_executing_macro_00145d48" (* "*") (cast_expression "(undefined4 *)PTR_rl_executing_macro_00145d48" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_rl_executing_macro_00145d48"))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "puVar2 = PTR___environ_00145154;" (assignment_expression "puVar2 = PTR___environ_00145154" (identifier "puVar2") (= "=") (identifier "PTR___environ_00145154")) (; ";")) (expression_statement "*(uint *)puVar1 = uVar3 | 0x800;" (assignment_expression "*(uint *)puVar1 = uVar3 | 0x800" (pointer_expression "*(uint *)puVar1" (* "*") (cast_expression "(uint *)puVar1" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) (= "=") (binary_expression "uVar3 | 0x800" (identifier "uVar3") (| "|") (number_literal "0x800"))) (; ";")) (expression_statement "*(undefined4 *)(puVar2 + -0x5818) = 0;" (assignment_expression "*(undefined4 *)(puVar2 + -0x5818) = 0" (pointer_expression "*(undefined4 *)(puVar2 + -0x5818)" (* "*") (cast_expression "(undefined4 *)(puVar2 + -0x5818)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + -0x5818)" (( "(") (binary_expression "puVar2 + -0x5818" (identifier "puVar2") (+ "+") (number_literal "-0x5818")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "_rl_errmsg(PTR_DAT_001445ac + -0x2004);" (call_expression "_rl_errmsg(PTR_DAT_001445ac + -0x2004)" (identifier "_rl_errmsg") (argument_list "(PTR_DAT_001445ac + -0x2004)" (( "(") (binary_expression "PTR_DAT_001445ac + -0x2004" (identifier "PTR_DAT_001445ac") (+ "+") (number_literal "-0x2004")) () ")"))) (; ";")) (expression_statement "_rl_abort_internal();" (call_expression "_rl_abort_internal()" (identifier "_rl_abort_internal") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(char *string)

{
  type_1 *puVar1;
  type_1 *var_4;
  type_2 var_3;
  
  if (*(int *)(var_1 + -0x582c) < 0x11) {
    var_2();
    puVar1 = PTR_rl_readline_state_00144658;
    var_3 = *(type_2 *)PTR_rl_readline_state_00144658;
    *(char **)PTR_rl_executing_macro_00145d48 = string;
    var_4 = var_1;
    *(type_2 *)puVar1 = var_3 | 0x800;
    *(type_3 *)(var_4 + -0x5818) = 0;
    return;
  }
  var_5(var_6 + -0x2004);
                    /* WARNING: Subroutine does not return */
  var_7();
}


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

void MASKED(undefined4 param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  uint uVar3;
  
  if (*(int *)(PTR___environ_00145154 + -0x582c) < 0x11) {
    _rl_push_executing_macro();
    puVar1 = PTR_rl_readline_state_00144658;
    uVar3 = *(uint *)PTR_rl_readline_state_00144658;
    *(undefined4 *)PTR_rl_executing_macro_00145d48 = param_1;
    puVar2 = PTR___environ_00145154;
    *(uint *)puVar1 = uVar3 | 0x800;
    *(undefined4 *)(puVar2 + -0x5818) = 0;
    return;
  }
  _rl_errmsg(PTR_DAT_001445ac + -0x2004);
  _rl_abort_internal();
  return;
}

