
/* WARNING: Unknown calling convention */

void update_ERRNO_string(char *string)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  undefined4 *puVar4;
  double in_f12_13;
  
  update_PROCINFO_num("errno",in_f12_13);
  iVar3 = **(int **)PTR_ERRNO_node_004bef18;
  if ((iVar3 != 0) &&
     (iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1)) {
    (*(code *)PTR_r_unref_004bebb8)();
  }
  uVar2 = (*(code *)PTR_strlen_004bf2a4)(string);
  puVar4 = *(undefined4 **)PTR_ERRNO_node_004bef18;
  uVar2 = (*(code *)PTR_make_str_node_004bebc4)(string,uVar2,0);
  *puVar4 = uVar2;
  return;
}



void update_ERRNO_string(undefined4 param_1,undefined4 param_2)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  undefined4 *puVar4;
  
  update_PROCINFO_num("errno",param_2,0,0);
  iVar3 = **(int **)PTR_ERRNO_node_004bef18;
  if ((iVar3 != 0) &&
     (iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1)) {
    (*(code *)PTR_r_unref_004bebb8)();
  }
  uVar2 = (*(code *)PTR_strlen_004bf2a4)(param_1);
  puVar4 = *(undefined4 **)PTR_ERRNO_node_004bef18;
  uVar2 = (*(code *)PTR_make_str_node_004bebc4)(param_1,uVar2,0);
  *puVar4 = uVar2;
  return;
}


addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
lui gp,0x4c
addiu gp,gp,0x6b20
sw gp,0x10(sp)
or s0,a0,zero
or a3,zero,zero
or a2,zero,zero
lui a0,0x4a
addiu a0,a0,0x50b0
lw t9,-0x7c0c(gp)
bal 0x0045b0ec
_nop
lw gp,0x10(sp)
lw v0,-0x7c08(gp)
lw v0,0x0(v0)
lw a0,0x0(v0)
beq a0,zero,0x00446b20
_nop
lw v0,0x10(a0)
addiu v0,v0,-0x1
blez v0,0x00446b70
_sw v0,0x10(a0)
or a0,s0,zero
lw t9,-0x787c(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw v1,-0x7c08(gp)
lw s1,0x0(v1)
or a2,zero,zero
or a1,v0,zero
or a0,s0,zero
lw t9,-0x7f5c(gp)
jalr t9
_nop
lw gp,0x10(sp)
sw v0,0x0(s1)
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x7f68(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x00446b24
_or a0,s0,zero
(translation_unit "void update_ERRNO_string(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  \n  update_PROCINFO_num("errno",param_2,0,0);\n  iVar3 = **(int **)PTR_ERRNO_node_004bef18;\n  if ((iVar3 != 0) &&\n     (iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1)) {\n    (*(code *)PTR_r_unref_004bebb8)();\n  }\n  uVar2 = (*(code *)PTR_strlen_004bf2a4)(param_1);\n  puVar4 = *(undefined4 **)PTR_ERRNO_node_004bef18;\n  uVar2 = (*(code *)PTR_make_str_node_004bebc4)(param_1,uVar2,0);\n  *puVar4 = uVar2;\n  return;\n}\n\n" (function_definition "void update_ERRNO_string(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  \n  update_PROCINFO_num("errno",param_2,0,0);\n  iVar3 = **(int **)PTR_ERRNO_node_004bef18;\n  if ((iVar3 != 0) &&\n     (iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1)) {\n    (*(code *)PTR_r_unref_004bebb8)();\n  }\n  uVar2 = (*(code *)PTR_strlen_004bf2a4)(param_1);\n  puVar4 = *(undefined4 **)PTR_ERRNO_node_004bef18;\n  uVar2 = (*(code *)PTR_make_str_node_004bebc4)(param_1,uVar2,0);\n  *puVar4 = uVar2;\n  return;\n}" primitive_type (function_declarator "update_ERRNO_string(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  \n  update_PROCINFO_num("errno",param_2,0,0);\n  iVar3 = **(int **)PTR_ERRNO_node_004bef18;\n  if ((iVar3 != 0) &&\n     (iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1)) {\n    (*(code *)PTR_r_unref_004bebb8)();\n  }\n  uVar2 = (*(code *)PTR_strlen_004bf2a4)(param_1);\n  puVar4 = *(undefined4 **)PTR_ERRNO_node_004bef18;\n  uVar2 = (*(code *)PTR_make_str_node_004bebc4)(param_1,uVar2,0);\n  *puVar4 = uVar2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "update_PROCINFO_num("errno",param_2,0,0);" (call_expression "update_PROCINFO_num("errno",param_2,0,0)" identifier (argument_list "("errno",param_2,0,0)" ( (string_literal ""errno"" " string_content ") , identifier , number_literal , number_literal ))) ;) (expression_statement "iVar3 = **(int **)PTR_ERRNO_node_004bef18;" (assignment_expression "iVar3 = **(int **)PTR_ERRNO_node_004bef18" identifier = (pointer_expression "**(int **)PTR_ERRNO_node_004bef18" * (pointer_expression "*(int **)PTR_ERRNO_node_004bef18" * (cast_expression "(int **)PTR_ERRNO_node_004bef18" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)))) ;) (if_statement "if ((iVar3 != 0) &&\n     (iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1)) {\n    (*(code *)PTR_r_unref_004bebb8)();\n  }" if (parenthesized_expression "((iVar3 != 0) &&\n     (iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1))" ( (binary_expression "(iVar3 != 0) &&\n     (iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1)" (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1)" ( (comma_expression "iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1" (assignment_expression "iVar1 = *(int *)(iVar3 + 0x10) + -1" identifier = (binary_expression "*(int *)(iVar3 + 0x10) + -1" (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) + number_literal)) , (comma_expression "*(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1" (assignment_expression "*(int *)(iVar3 + 0x10) = iVar1" (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) = identifier) , (binary_expression "iVar1 < 1" identifier < number_literal))) ))) )) (compound_statement "{\n    (*(code *)PTR_r_unref_004bebb8)();\n  }" { (expression_statement "(*(code *)PTR_r_unref_004bebb8)();" (call_expression "(*(code *)PTR_r_unref_004bebb8)()" (parenthesized_expression "(*(code *)PTR_r_unref_004bebb8)" ( (pointer_expression "*(code *)PTR_r_unref_004bebb8" * (cast_expression "(code *)PTR_r_unref_004bebb8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (expression_statement "uVar2 = (*(code *)PTR_strlen_004bf2a4)(param_1);" (assignment_expression "uVar2 = (*(code *)PTR_strlen_004bf2a4)(param_1)" identifier = (call_expression "(*(code *)PTR_strlen_004bf2a4)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_004bf2a4)" ( (pointer_expression "*(code *)PTR_strlen_004bf2a4" * (cast_expression "(code *)PTR_strlen_004bf2a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "puVar4 = *(undefined4 **)PTR_ERRNO_node_004bef18;" (assignment_expression "puVar4 = *(undefined4 **)PTR_ERRNO_node_004bef18" identifier = (pointer_expression "*(undefined4 **)PTR_ERRNO_node_004bef18" * (cast_expression "(undefined4 **)PTR_ERRNO_node_004bef18" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "uVar2 = (*(code *)PTR_make_str_node_004bebc4)(param_1,uVar2,0);" (assignment_expression "uVar2 = (*(code *)PTR_make_str_node_004bebc4)(param_1,uVar2,0)" identifier = (call_expression "(*(code *)PTR_make_str_node_004bebc4)(param_1,uVar2,0)" (parenthesized_expression "(*(code *)PTR_make_str_node_004bebc4)" ( (pointer_expression "*(code *)PTR_make_str_node_004bebc4" * (cast_expression "(code *)PTR_make_str_node_004bebc4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,uVar2,0)" ( identifier , identifier , number_literal )))) ;) (expression_statement "*puVar4 = uVar2;" (assignment_expression "*puVar4 = uVar2" (pointer_expression "*puVar4" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nvoid update_ERRNO_string(char *string)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  double in_f12_13;\n  \n  update_PROCINFO_num("errno",in_f12_13);\n  iVar3 = **(int **)PTR_ERRNO_node_004bef18;\n  if ((iVar3 != 0) &&\n     (iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1)) {\n    (*(code *)PTR_r_unref_004bebb8)();\n  }\n  uVar2 = (*(code *)PTR_strlen_004bf2a4)(string);\n  puVar4 = *(undefined4 **)PTR_ERRNO_node_004bef18;\n  uVar2 = (*(code *)PTR_make_str_node_004bebc4)(string,uVar2,0);\n  *puVar4 = uVar2;\n  return;\n}\n\n" comment (function_definition "void update_ERRNO_string(char *string)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  double in_f12_13;\n  \n  update_PROCINFO_num("errno",in_f12_13);\n  iVar3 = **(int **)PTR_ERRNO_node_004bef18;\n  if ((iVar3 != 0) &&\n     (iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1)) {\n    (*(code *)PTR_r_unref_004bebb8)();\n  }\n  uVar2 = (*(code *)PTR_strlen_004bf2a4)(string);\n  puVar4 = *(undefined4 **)PTR_ERRNO_node_004bef18;\n  uVar2 = (*(code *)PTR_make_str_node_004bebc4)(string,uVar2,0);\n  *puVar4 = uVar2;\n  return;\n}" primitive_type (function_declarator "update_ERRNO_string(char *string)" identifier (parameter_list "(char *string)" ( (parameter_declaration "char *string" primitive_type (pointer_declarator "*string" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  double in_f12_13;\n  \n  update_PROCINFO_num("errno",in_f12_13);\n  iVar3 = **(int **)PTR_ERRNO_node_004bef18;\n  if ((iVar3 != 0) &&\n     (iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1)) {\n    (*(code *)PTR_r_unref_004bebb8)();\n  }\n  uVar2 = (*(code *)PTR_strlen_004bf2a4)(string);\n  puVar4 = *(undefined4 **)PTR_ERRNO_node_004bef18;\n  uVar2 = (*(code *)PTR_make_str_node_004bebc4)(string,uVar2,0);\n  *puVar4 = uVar2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "double in_f12_13;" primitive_type identifier ;) (expression_statement "update_PROCINFO_num("errno",in_f12_13);" (call_expression "update_PROCINFO_num("errno",in_f12_13)" identifier (argument_list "("errno",in_f12_13)" ( (string_literal ""errno"" " string_content ") , identifier ))) ;) (expression_statement "iVar3 = **(int **)PTR_ERRNO_node_004bef18;" (assignment_expression "iVar3 = **(int **)PTR_ERRNO_node_004bef18" identifier = (pointer_expression "**(int **)PTR_ERRNO_node_004bef18" * (pointer_expression "*(int **)PTR_ERRNO_node_004bef18" * (cast_expression "(int **)PTR_ERRNO_node_004bef18" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)))) ;) (if_statement "if ((iVar3 != 0) &&\n     (iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1)) {\n    (*(code *)PTR_r_unref_004bebb8)();\n  }" if (parenthesized_expression "((iVar3 != 0) &&\n     (iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1))" ( (binary_expression "(iVar3 != 0) &&\n     (iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1)" (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1)" ( (comma_expression "iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1" (assignment_expression "iVar1 = *(int *)(iVar3 + 0x10) + -1" identifier = (binary_expression "*(int *)(iVar3 + 0x10) + -1" (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) + number_literal)) , (comma_expression "*(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1" (assignment_expression "*(int *)(iVar3 + 0x10) = iVar1" (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) = identifier) , (binary_expression "iVar1 < 1" identifier < number_literal))) ))) )) (compound_statement "{\n    (*(code *)PTR_r_unref_004bebb8)();\n  }" { (expression_statement "(*(code *)PTR_r_unref_004bebb8)();" (call_expression "(*(code *)PTR_r_unref_004bebb8)()" (parenthesized_expression "(*(code *)PTR_r_unref_004bebb8)" ( (pointer_expression "*(code *)PTR_r_unref_004bebb8" * (cast_expression "(code *)PTR_r_unref_004bebb8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (expression_statement "uVar2 = (*(code *)PTR_strlen_004bf2a4)(string);" (assignment_expression "uVar2 = (*(code *)PTR_strlen_004bf2a4)(string)" identifier = (call_expression "(*(code *)PTR_strlen_004bf2a4)(string)" (parenthesized_expression "(*(code *)PTR_strlen_004bf2a4)" ( (pointer_expression "*(code *)PTR_strlen_004bf2a4" * (cast_expression "(code *)PTR_strlen_004bf2a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(string)" ( identifier )))) ;) (expression_statement "puVar4 = *(undefined4 **)PTR_ERRNO_node_004bef18;" (assignment_expression "puVar4 = *(undefined4 **)PTR_ERRNO_node_004bef18" identifier = (pointer_expression "*(undefined4 **)PTR_ERRNO_node_004bef18" * (cast_expression "(undefined4 **)PTR_ERRNO_node_004bef18" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "uVar2 = (*(code *)PTR_make_str_node_004bebc4)(string,uVar2,0);" (assignment_expression "uVar2 = (*(code *)PTR_make_str_node_004bebc4)(string,uVar2,0)" identifier = (call_expression "(*(code *)PTR_make_str_node_004bebc4)(string,uVar2,0)" (parenthesized_expression "(*(code *)PTR_make_str_node_004bebc4)" ( (pointer_expression "*(code *)PTR_make_str_node_004bebc4" * (cast_expression "(code *)PTR_make_str_node_004bebc4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(string,uVar2,0)" ( identifier , identifier , number_literal )))) ;) (expression_statement "*puVar4 = uVar2;" (assignment_expression "*puVar4 = uVar2" (pointer_expression "*puVar4" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void update_ERRNO_string(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  \n  update_PROCINFO_num("errno",param_2,0,0);\n  iVar3 = **(int **)PTR_ERRNO_node_004bef18;\n  if ((iVar3 != 0) &&\n     (iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1)) {\n    (*(code *)PTR_r_unref_004bebb8)();\n  }\n  uVar2 = (*(code *)PTR_strlen_004bf2a4)(param_1);\n  puVar4 = *(undefined4 **)PTR_ERRNO_node_004bef18;\n  uVar2 = (*(code *)PTR_make_str_node_004bebc4)(param_1,uVar2,0);\n  *puVar4 = uVar2;\n  return;\n}\n\n" (function_definition "void update_ERRNO_string(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  \n  update_PROCINFO_num("errno",param_2,0,0);\n  iVar3 = **(int **)PTR_ERRNO_node_004bef18;\n  if ((iVar3 != 0) &&\n     (iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1)) {\n    (*(code *)PTR_r_unref_004bebb8)();\n  }\n  uVar2 = (*(code *)PTR_strlen_004bf2a4)(param_1);\n  puVar4 = *(undefined4 **)PTR_ERRNO_node_004bef18;\n  uVar2 = (*(code *)PTR_make_str_node_004bebc4)(param_1,uVar2,0);\n  *puVar4 = uVar2;\n  return;\n}" primitive_type (function_declarator "update_ERRNO_string(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  \n  update_PROCINFO_num("errno",param_2,0,0);\n  iVar3 = **(int **)PTR_ERRNO_node_004bef18;\n  if ((iVar3 != 0) &&\n     (iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1)) {\n    (*(code *)PTR_r_unref_004bebb8)();\n  }\n  uVar2 = (*(code *)PTR_strlen_004bf2a4)(param_1);\n  puVar4 = *(undefined4 **)PTR_ERRNO_node_004bef18;\n  uVar2 = (*(code *)PTR_make_str_node_004bebc4)(param_1,uVar2,0);\n  *puVar4 = uVar2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "update_PROCINFO_num("errno",param_2,0,0);" (call_expression "update_PROCINFO_num("errno",param_2,0,0)" identifier (argument_list "("errno",param_2,0,0)" ( (string_literal ""errno"" " string_content ") , identifier , number_literal , number_literal ))) ;) (expression_statement "iVar3 = **(int **)PTR_ERRNO_node_004bef18;" (assignment_expression "iVar3 = **(int **)PTR_ERRNO_node_004bef18" identifier = (pointer_expression "**(int **)PTR_ERRNO_node_004bef18" * (pointer_expression "*(int **)PTR_ERRNO_node_004bef18" * (cast_expression "(int **)PTR_ERRNO_node_004bef18" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)))) ;) (if_statement "if ((iVar3 != 0) &&\n     (iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1)) {\n    (*(code *)PTR_r_unref_004bebb8)();\n  }" if (parenthesized_expression "((iVar3 != 0) &&\n     (iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1))" ( (binary_expression "(iVar3 != 0) &&\n     (iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1)" (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1)" ( (comma_expression "iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1" (assignment_expression "iVar1 = *(int *)(iVar3 + 0x10) + -1" identifier = (binary_expression "*(int *)(iVar3 + 0x10) + -1" (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) + number_literal)) , (comma_expression "*(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1" (assignment_expression "*(int *)(iVar3 + 0x10) = iVar1" (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) = identifier) , (binary_expression "iVar1 < 1" identifier < number_literal))) ))) )) (compound_statement "{\n    (*(code *)PTR_r_unref_004bebb8)();\n  }" { (expression_statement "(*(code *)PTR_r_unref_004bebb8)();" (call_expression "(*(code *)PTR_r_unref_004bebb8)()" (parenthesized_expression "(*(code *)PTR_r_unref_004bebb8)" ( (pointer_expression "*(code *)PTR_r_unref_004bebb8" * (cast_expression "(code *)PTR_r_unref_004bebb8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (expression_statement "uVar2 = (*(code *)PTR_strlen_004bf2a4)(param_1);" (assignment_expression "uVar2 = (*(code *)PTR_strlen_004bf2a4)(param_1)" identifier = (call_expression "(*(code *)PTR_strlen_004bf2a4)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_004bf2a4)" ( (pointer_expression "*(code *)PTR_strlen_004bf2a4" * (cast_expression "(code *)PTR_strlen_004bf2a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "puVar4 = *(undefined4 **)PTR_ERRNO_node_004bef18;" (assignment_expression "puVar4 = *(undefined4 **)PTR_ERRNO_node_004bef18" identifier = (pointer_expression "*(undefined4 **)PTR_ERRNO_node_004bef18" * (cast_expression "(undefined4 **)PTR_ERRNO_node_004bef18" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "uVar2 = (*(code *)PTR_make_str_node_004bebc4)(param_1,uVar2,0);" (assignment_expression "uVar2 = (*(code *)PTR_make_str_node_004bebc4)(param_1,uVar2,0)" identifier = (call_expression "(*(code *)PTR_make_str_node_004bebc4)(param_1,uVar2,0)" (parenthesized_expression "(*(code *)PTR_make_str_node_004bebc4)" ( (pointer_expression "*(code *)PTR_make_str_node_004bebc4" * (cast_expression "(code *)PTR_make_str_node_004bebc4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,uVar2,0)" ( identifier , identifier , number_literal )))) ;) (expression_statement "*puVar4 = uVar2;" (assignment_expression "*puVar4 = uVar2" (pointer_expression "*puVar4" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) , (comma_expression (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) , (binary_expression IDENT < LIT))) ))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return ;) })))
(function_definition "void update_ERRNO_string(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  \n  update_PROCINFO_num("errno",param_2,0,0);\n  iVar3 = **(int **)PTR_ERRNO_node_004bef18;\n  if ((iVar3 != 0) &&\n     (iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1)) {\n    (*(code *)PTR_r_unref_004bebb8)();\n  }\n  uVar2 = (*(code *)PTR_strlen_004bf2a4)(param_1);\n  puVar4 = *(undefined4 **)PTR_ERRNO_node_004bef18;\n  uVar2 = (*(code *)PTR_make_str_node_004bebc4)(param_1,uVar2,0);\n  *puVar4 = uVar2;\n  return;\n}" (primitive_type "void") (function_declarator "update_ERRNO_string(undefined4 param_1,undefined4 param_2)" (identifier "update_ERRNO_string") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  \n  update_PROCINFO_num("errno",param_2,0,0);\n  iVar3 = **(int **)PTR_ERRNO_node_004bef18;\n  if ((iVar3 != 0) &&\n     (iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1)) {\n    (*(code *)PTR_r_unref_004bebb8)();\n  }\n  uVar2 = (*(code *)PTR_strlen_004bf2a4)(param_1);\n  puVar4 = *(undefined4 **)PTR_ERRNO_node_004bef18;\n  uVar2 = (*(code *)PTR_make_str_node_004bebc4)(param_1,uVar2,0);\n  *puVar4 = uVar2;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (expression_statement "update_PROCINFO_num("errno",param_2,0,0);" (call_expression "update_PROCINFO_num("errno",param_2,0,0)" (identifier "update_PROCINFO_num") (argument_list "("errno",param_2,0,0)" (( "(") (string_literal ""errno"" (" """) (string_content "errno") (" """)) (, ",") (identifier "param_2") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar3 = **(int **)PTR_ERRNO_node_004bef18;" (assignment_expression "iVar3 = **(int **)PTR_ERRNO_node_004bef18" (identifier "iVar3") (= "=") (pointer_expression "**(int **)PTR_ERRNO_node_004bef18" (* "*") (pointer_expression "*(int **)PTR_ERRNO_node_004bef18" (* "*") (cast_expression "(int **)PTR_ERRNO_node_004bef18" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_ERRNO_node_004bef18"))))) (; ";")) (if_statement "if ((iVar3 != 0) &&\n     (iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1)) {\n    (*(code *)PTR_r_unref_004bebb8)();\n  }" (if "if") (parenthesized_expression "((iVar3 != 0) &&\n     (iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1))" (( "(") (binary_expression "(iVar3 != 0) &&\n     (iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1)" (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1)" (( "(") (comma_expression "iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1" (assignment_expression "iVar1 = *(int *)(iVar3 + 0x10) + -1" (identifier "iVar1") (= "=") (binary_expression "*(int *)(iVar3 + 0x10) + -1" (pointer_expression "*(int *)(iVar3 + 0x10)" (* "*") (cast_expression "(int *)(iVar3 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x10)" (( "(") (binary_expression "iVar3 + 0x10" (identifier "iVar3") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (number_literal "-1"))) (, ",") (comma_expression "*(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1" (assignment_expression "*(int *)(iVar3 + 0x10) = iVar1" (pointer_expression "*(int *)(iVar3 + 0x10)" (* "*") (cast_expression "(int *)(iVar3 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x10)" (( "(") (binary_expression "iVar3 + 0x10" (identifier "iVar3") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "iVar1")) (, ",") (binary_expression "iVar1 < 1" (identifier "iVar1") (< "<") (number_literal "1")))) () ")"))) () ")")) (compound_statement "{\n    (*(code *)PTR_r_unref_004bebb8)();\n  }" ({ "{") (expression_statement "(*(code *)PTR_r_unref_004bebb8)();" (call_expression "(*(code *)PTR_r_unref_004bebb8)()" (parenthesized_expression "(*(code *)PTR_r_unref_004bebb8)" (( "(") (pointer_expression "*(code *)PTR_r_unref_004bebb8" (* "*") (cast_expression "(code *)PTR_r_unref_004bebb8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_r_unref_004bebb8"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar2 = (*(code *)PTR_strlen_004bf2a4)(param_1);" (assignment_expression "uVar2 = (*(code *)PTR_strlen_004bf2a4)(param_1)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_strlen_004bf2a4)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_004bf2a4)" (( "(") (pointer_expression "*(code *)PTR_strlen_004bf2a4" (* "*") (cast_expression "(code *)PTR_strlen_004bf2a4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_004bf2a4"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "puVar4 = *(undefined4 **)PTR_ERRNO_node_004bef18;" (assignment_expression "puVar4 = *(undefined4 **)PTR_ERRNO_node_004bef18" (identifier "puVar4") (= "=") (pointer_expression "*(undefined4 **)PTR_ERRNO_node_004bef18" (* "*") (cast_expression "(undefined4 **)PTR_ERRNO_node_004bef18" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_ERRNO_node_004bef18")))) (; ";")) (expression_statement "uVar2 = (*(code *)PTR_make_str_node_004bebc4)(param_1,uVar2,0);" (assignment_expression "uVar2 = (*(code *)PTR_make_str_node_004bebc4)(param_1,uVar2,0)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_make_str_node_004bebc4)(param_1,uVar2,0)" (parenthesized_expression "(*(code *)PTR_make_str_node_004bebc4)" (( "(") (pointer_expression "*(code *)PTR_make_str_node_004bebc4" (* "*") (cast_expression "(code *)PTR_make_str_node_004bebc4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_make_str_node_004bebc4"))) () ")")) (argument_list "(param_1,uVar2,0)" (( "(") (identifier "param_1") (, ",") (identifier "uVar2") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "*puVar4 = uVar2;" (assignment_expression "*puVar4 = uVar2" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "uVar2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

void function_1(char *string)

{
  int var_3;
  type_1 uVar2;
  int var_2;
  type_1 *puVar4;
  double in_f12_13;
  
  var_1("errno",in_f12_13);
  var_2 = **(int **)PTR_ERRNO_node_004bef18;
  if ((var_2 != 0) &&
     (var_3 = *(int *)(var_2 + 0x10) + -1, *(int *)(var_2 + 0x10) = var_3, var_3 < 1)) {
    (*(type_2 *)PTR_r_unref_004bebb8)();
  }
  uVar2 = (*(type_2 *)PTR_strlen_004bf2a4)(string);
  puVar4 = *(type_1 **)PTR_ERRNO_node_004bef18;
  uVar2 = (*(type_2 *)PTR_make_str_node_004bebc4)(string,uVar2,0);
  *puVar4 = uVar2;
  return;
}


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

void MASKED(undefined4 param_1,undefined4 param_2)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  undefined4 *puVar4;
  
  update_PROCINFO_num("errno",param_2,0,0);
  iVar3 = **(int **)PTR_ERRNO_node_004bef18;
  if ((iVar3 != 0) &&
     (iVar1 = *(int *)(iVar3 + 0x10) + -1, *(int *)(iVar3 + 0x10) = iVar1, iVar1 < 1)) {
    (*(code *)PTR_r_unref_004bebb8)();
  }
  uVar2 = (*(code *)PTR_strlen_004bf2a4)(param_1);
  puVar4 = *(undefined4 **)PTR_ERRNO_node_004bef18;
  uVar2 = (*(code *)PTR_make_str_node_004bebc4)(param_1,uVar2,0);
  *puVar4 = uVar2;
  return;
}

