
size_t quotearg_buffer(char *buffer,size_t buffersize,char *arg,size_t argsize,quoting_options *o)

{
  undefined4 *puVar1;
  size_t sVar2;
  undefined4 uVar3;
  
  if (o == (quoting_options *)0x0) {
    o = (quoting_options *)(PTR_DAT_00049208 + -0x5860);
  }
  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00049518)();
  uVar3 = *puVar1;
  sVar2 = quotearg_buffer_restyled
                    (buffer,buffersize,arg,argsize,o->style,o->flags,o->quote_these_too,
                     o->left_quote,o->right_quote);
  *puVar1 = uVar3;
  return sVar2;
}



void quotearg_buffer(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                    undefined4 *param_5)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  
  if (param_5 == (undefined4 *)0x0) {
    param_5 = (undefined4 *)(PTR_DAT_00049208 + -0x5860);
  }
  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00049518)();
  uVar2 = *puVar1;
  FUN_00025ce0(param_1,param_2,param_3,param_4,*param_5,param_5[1],param_5 + 2,param_5[10],
               param_5[0xb]);
  *puVar1 = uVar2;
  return;
}


lui gp,0x3
addiu gp,gp,-0x6348
addu gp,gp,t9
addiu sp,sp,-0x40
sw s0,0x30(sp)
sw gp,0x28(sp)
sw ra,0x3c(sp)
sw s2,0x38(sp)
sw s1,0x34(sp)
lw s0,0x50(sp)
beq s0,zero,0x000275dc
_nop
lw t9,-0x7cc8(gp)
sw a3,0x4c(sp)
sw a2,0x48(sp)
sw a1,0x44(sp)
jalr t9
_sw a0,0x40(sp)
addiu v1,s0,0x8
lw t0,0x2c(s0)
or s1,v0,zero
lw s2,0x0(v0)
lw gp,0x28(sp)
sw t0,0x20(sp)
lw v0,0x28(s0)
sw v1,0x18(sp)
lw t9,-0x7f60(gp)
sw v0,0x1c(sp)
lw v0,0x4(s0)
lw a3,0x4c(sp)
addiu t9,t9,0x5ce0
lw a2,0x48(sp)
lw a1,0x44(sp)
lw a0,0x40(sp)
sw v0,0x14(sp)
lw v0,0x0(s0)
bal 0x00025ce0
_sw v0,0x10(sp)
lw ra,0x3c(sp)
lw s0,0x30(sp)
sw s2,0x0(s1)
lw s2,0x38(sp)
lw s1,0x34(sp)
jr ra
_addiu sp,sp,0x40
lw s0,-0x7fd8(gp)
b 0x00027558
_addiu s0,s0,-0x5860
(translation_unit "void quotearg_buffer(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                    undefined4 *param_5)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  if (param_5 == (undefined4 *)0x0) {\n    param_5 = (undefined4 *)(PTR_DAT_00049208 + -0x5860);\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00049518)();\n  uVar2 = *puVar1;\n  FUN_00025ce0(param_1,param_2,param_3,param_4,*param_5,param_5[1],param_5 + 2,param_5[10],\n               param_5[0xb]);\n  *puVar1 = uVar2;\n  return;\n}\n\n" (function_definition "void quotearg_buffer(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                    undefined4 *param_5)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  if (param_5 == (undefined4 *)0x0) {\n    param_5 = (undefined4 *)(PTR_DAT_00049208 + -0x5860);\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00049518)();\n  uVar2 = *puVar1;\n  FUN_00025ce0(param_1,param_2,param_3,param_4,*param_5,param_5[1],param_5 + 2,param_5[10],\n               param_5[0xb]);\n  *puVar1 = uVar2;\n  return;\n}" primitive_type (function_declarator "quotearg_buffer(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                    undefined4 *param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                    undefined4 *param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  if (param_5 == (undefined4 *)0x0) {\n    param_5 = (undefined4 *)(PTR_DAT_00049208 + -0x5860);\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00049518)();\n  uVar2 = *puVar1;\n  FUN_00025ce0(param_1,param_2,param_3,param_4,*param_5,param_5[1],param_5 + 2,param_5[10],\n               param_5[0xb]);\n  *puVar1 = uVar2;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (param_5 == (undefined4 *)0x0) {\n    param_5 = (undefined4 *)(PTR_DAT_00049208 + -0x5860);\n  }" if (parenthesized_expression "(param_5 == (undefined4 *)0x0)" ( (binary_expression "param_5 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_5 = (undefined4 *)(PTR_DAT_00049208 + -0x5860);\n  }" { (expression_statement "param_5 = (undefined4 *)(PTR_DAT_00049208 + -0x5860);" (assignment_expression "param_5 = (undefined4 *)(PTR_DAT_00049208 + -0x5860)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_00049208 + -0x5860)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00049208 + -0x5860)" ( (binary_expression "PTR_DAT_00049208 + -0x5860" identifier + number_literal) )))) ;) })) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00049518)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00049518)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00049518)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00049518)()" (parenthesized_expression "(*(code *)PTR___errno_location_00049518)" ( (pointer_expression "*(code *)PTR___errno_location_00049518" * (cast_expression "(code *)PTR___errno_location_00049518" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar2 = *puVar1;" (assignment_expression "uVar2 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "FUN_00025ce0(param_1,param_2,param_3,param_4,*param_5,param_5[1],param_5 + 2,param_5[10],\n               param_5[0xb]);" (call_expression "FUN_00025ce0(param_1,param_2,param_3,param_4,*param_5,param_5[1],param_5 + 2,param_5[10],\n               param_5[0xb])" identifier (argument_list "(param_1,param_2,param_3,param_4,*param_5,param_5[1],param_5 + 2,param_5[10],\n               param_5[0xb])" ( identifier , identifier , identifier , identifier , (pointer_expression "*param_5" * identifier) , (subscript_expression "param_5[1]" identifier [ number_literal ]) , (binary_expression "param_5 + 2" identifier + number_literal) , (subscript_expression "param_5[10]" identifier [ number_literal ]) , (subscript_expression "param_5[0xb]" identifier [ number_literal ]) ))) ;) (expression_statement "*puVar1 = uVar2;" (assignment_expression "*puVar1 = uVar2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "size_t quotearg_buffer(char *buffer,size_t buffersize,char *arg,size_t argsize,quoting_options *o)\n\n{\n  undefined4 *puVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  \n  if (o == (quoting_options *)0x0) {\n    o = (quoting_options *)(PTR_DAT_00049208 + -0x5860);\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00049518)();\n  uVar3 = *puVar1;\n  sVar2 = quotearg_buffer_restyled\n                    (buffer,buffersize,arg,argsize,o->style,o->flags,o->quote_these_too,\n                     o->left_quote,o->right_quote);\n  *puVar1 = uVar3;\n  return sVar2;\n}\n\n" (function_definition "size_t quotearg_buffer(char *buffer,size_t buffersize,char *arg,size_t argsize,quoting_options *o)\n\n{\n  undefined4 *puVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  \n  if (o == (quoting_options *)0x0) {\n    o = (quoting_options *)(PTR_DAT_00049208 + -0x5860);\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00049518)();\n  uVar3 = *puVar1;\n  sVar2 = quotearg_buffer_restyled\n                    (buffer,buffersize,arg,argsize,o->style,o->flags,o->quote_these_too,\n                     o->left_quote,o->right_quote);\n  *puVar1 = uVar3;\n  return sVar2;\n}" primitive_type (function_declarator "quotearg_buffer(char *buffer,size_t buffersize,char *arg,size_t argsize,quoting_options *o)" identifier (parameter_list "(char *buffer,size_t buffersize,char *arg,size_t argsize,quoting_options *o)" ( (parameter_declaration "char *buffer" primitive_type (pointer_declarator "*buffer" * identifier)) , (parameter_declaration "size_t buffersize" primitive_type identifier) , (parameter_declaration "char *arg" primitive_type (pointer_declarator "*arg" * identifier)) , (parameter_declaration "size_t argsize" primitive_type identifier) , (parameter_declaration "quoting_options *o" type_identifier (pointer_declarator "*o" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  \n  if (o == (quoting_options *)0x0) {\n    o = (quoting_options *)(PTR_DAT_00049208 + -0x5860);\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00049518)();\n  uVar3 = *puVar1;\n  sVar2 = quotearg_buffer_restyled\n                    (buffer,buffersize,arg,argsize,o->style,o->flags,o->quote_these_too,\n                     o->left_quote,o->right_quote);\n  *puVar1 = uVar3;\n  return sVar2;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (if_statement "if (o == (quoting_options *)0x0) {\n    o = (quoting_options *)(PTR_DAT_00049208 + -0x5860);\n  }" if (parenthesized_expression "(o == (quoting_options *)0x0)" ( (binary_expression "o == (quoting_options *)0x0" identifier == (cast_expression "(quoting_options *)0x0" ( (type_descriptor "quoting_options *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    o = (quoting_options *)(PTR_DAT_00049208 + -0x5860);\n  }" { (expression_statement "o = (quoting_options *)(PTR_DAT_00049208 + -0x5860);" (assignment_expression "o = (quoting_options *)(PTR_DAT_00049208 + -0x5860)" identifier = (cast_expression "(quoting_options *)(PTR_DAT_00049208 + -0x5860)" ( (type_descriptor "quoting_options *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00049208 + -0x5860)" ( (binary_expression "PTR_DAT_00049208 + -0x5860" identifier + number_literal) )))) ;) })) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00049518)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00049518)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00049518)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00049518)()" (parenthesized_expression "(*(code *)PTR___errno_location_00049518)" ( (pointer_expression "*(code *)PTR___errno_location_00049518" * (cast_expression "(code *)PTR___errno_location_00049518" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar3 = *puVar1;" (assignment_expression "uVar3 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "sVar2 = quotearg_buffer_restyled\n                    (buffer,buffersize,arg,argsize,o->style,o->flags,o->quote_these_too,\n                     o->left_quote,o->right_quote);" (assignment_expression "sVar2 = quotearg_buffer_restyled\n                    (buffer,buffersize,arg,argsize,o->style,o->flags,o->quote_these_too,\n                     o->left_quote,o->right_quote)" identifier = (call_expression "quotearg_buffer_restyled\n                    (buffer,buffersize,arg,argsize,o->style,o->flags,o->quote_these_too,\n                     o->left_quote,o->right_quote)" identifier (argument_list "(buffer,buffersize,arg,argsize,o->style,o->flags,o->quote_these_too,\n                     o->left_quote,o->right_quote)" ( identifier , identifier , identifier , identifier , (field_expression "o->style" identifier -> field_identifier) , (field_expression "o->flags" identifier -> field_identifier) , (field_expression "o->quote_these_too" identifier -> field_identifier) , (field_expression "o->left_quote" identifier -> field_identifier) , (field_expression "o->right_quote" identifier -> field_identifier) )))) ;) (expression_statement "*puVar1 = uVar3;" (assignment_expression "*puVar1 = uVar3" (pointer_expression "*puVar1" * identifier) = identifier) ;) (return_statement "return sVar2;" return identifier ;) })))
(translation_unit "void quotearg_buffer(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                    undefined4 *param_5)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  if (param_5 == (undefined4 *)0x0) {\n    param_5 = (undefined4 *)(PTR_DAT_00049208 + -0x5860);\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00049518)();\n  uVar2 = *puVar1;\n  FUN_00025ce0(param_1,param_2,param_3,param_4,*param_5,param_5[1],param_5 + 2,param_5[10],\n               param_5[0xb]);\n  *puVar1 = uVar2;\n  return;\n}\n\n" (function_definition "void quotearg_buffer(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                    undefined4 *param_5)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  if (param_5 == (undefined4 *)0x0) {\n    param_5 = (undefined4 *)(PTR_DAT_00049208 + -0x5860);\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00049518)();\n  uVar2 = *puVar1;\n  FUN_00025ce0(param_1,param_2,param_3,param_4,*param_5,param_5[1],param_5 + 2,param_5[10],\n               param_5[0xb]);\n  *puVar1 = uVar2;\n  return;\n}" primitive_type (function_declarator "quotearg_buffer(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                    undefined4 *param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                    undefined4 *param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  if (param_5 == (undefined4 *)0x0) {\n    param_5 = (undefined4 *)(PTR_DAT_00049208 + -0x5860);\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00049518)();\n  uVar2 = *puVar1;\n  FUN_00025ce0(param_1,param_2,param_3,param_4,*param_5,param_5[1],param_5 + 2,param_5[10],\n               param_5[0xb]);\n  *puVar1 = uVar2;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (param_5 == (undefined4 *)0x0) {\n    param_5 = (undefined4 *)(PTR_DAT_00049208 + -0x5860);\n  }" if (parenthesized_expression "(param_5 == (undefined4 *)0x0)" ( (binary_expression "param_5 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_5 = (undefined4 *)(PTR_DAT_00049208 + -0x5860);\n  }" { (expression_statement "param_5 = (undefined4 *)(PTR_DAT_00049208 + -0x5860);" (assignment_expression "param_5 = (undefined4 *)(PTR_DAT_00049208 + -0x5860)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_00049208 + -0x5860)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00049208 + -0x5860)" ( (binary_expression "PTR_DAT_00049208 + -0x5860" identifier + number_literal) )))) ;) })) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00049518)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00049518)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00049518)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00049518)()" (parenthesized_expression "(*(code *)PTR___errno_location_00049518)" ( (pointer_expression "*(code *)PTR___errno_location_00049518" * (cast_expression "(code *)PTR___errno_location_00049518" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar2 = *puVar1;" (assignment_expression "uVar2 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "FUN_00025ce0(param_1,param_2,param_3,param_4,*param_5,param_5[1],param_5 + 2,param_5[10],\n               param_5[0xb]);" (call_expression "FUN_00025ce0(param_1,param_2,param_3,param_4,*param_5,param_5[1],param_5 + 2,param_5[10],\n               param_5[0xb])" identifier (argument_list "(param_1,param_2,param_3,param_4,*param_5,param_5[1],param_5 + 2,param_5[10],\n               param_5[0xb])" ( identifier , identifier , identifier , identifier , (pointer_expression "*param_5" * identifier) , (subscript_expression "param_5[1]" identifier [ number_literal ]) , (binary_expression "param_5 + 2" identifier + number_literal) , (subscript_expression "param_5[10]" identifier [ number_literal ]) , (subscript_expression "param_5[0xb]" identifier [ number_literal ]) ))) ;) (expression_statement "*puVar1 = uVar2;" (assignment_expression "*puVar1 = uVar2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , (pointer_expression * IDENT) , (subscript_expression IDENT [ LIT ]) , (binary_expression IDENT + LIT) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return ;) })))
(function_definition "void quotearg_buffer(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                    undefined4 *param_5)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  if (param_5 == (undefined4 *)0x0) {\n    param_5 = (undefined4 *)(PTR_DAT_00049208 + -0x5860);\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00049518)();\n  uVar2 = *puVar1;\n  FUN_00025ce0(param_1,param_2,param_3,param_4,*param_5,param_5[1],param_5 + 2,param_5[10],\n               param_5[0xb]);\n  *puVar1 = uVar2;\n  return;\n}" (primitive_type "void") (function_declarator "quotearg_buffer(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                    undefined4 *param_5)" (identifier "quotearg_buffer") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                    undefined4 *param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 *param_5" (type_identifier "undefined4") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  if (param_5 == (undefined4 *)0x0) {\n    param_5 = (undefined4 *)(PTR_DAT_00049208 + -0x5860);\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00049518)();\n  uVar2 = *puVar1;\n  FUN_00025ce0(param_1,param_2,param_3,param_4,*param_5,param_5[1],param_5 + 2,param_5[10],\n               param_5[0xb]);\n  *puVar1 = uVar2;\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (if_statement "if (param_5 == (undefined4 *)0x0) {\n    param_5 = (undefined4 *)(PTR_DAT_00049208 + -0x5860);\n  }" (if "if") (parenthesized_expression "(param_5 == (undefined4 *)0x0)" (( "(") (binary_expression "param_5 == (undefined4 *)0x0" (identifier "param_5") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    param_5 = (undefined4 *)(PTR_DAT_00049208 + -0x5860);\n  }" ({ "{") (expression_statement "param_5 = (undefined4 *)(PTR_DAT_00049208 + -0x5860);" (assignment_expression "param_5 = (undefined4 *)(PTR_DAT_00049208 + -0x5860)" (identifier "param_5") (= "=") (cast_expression "(undefined4 *)(PTR_DAT_00049208 + -0x5860)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_00049208 + -0x5860)" (( "(") (binary_expression "PTR_DAT_00049208 + -0x5860" (identifier "PTR_DAT_00049208") (+ "+") (number_literal "-0x5860")) () ")")))) (; ";")) (} "}"))) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00049518)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00049518)()" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00049518)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00049518)()" (parenthesized_expression "(*(code *)PTR___errno_location_00049518)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00049518" (* "*") (cast_expression "(code *)PTR___errno_location_00049518" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00049518"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "uVar2 = *puVar1;" (assignment_expression "uVar2 = *puVar1" (identifier "uVar2") (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (expression_statement "FUN_00025ce0(param_1,param_2,param_3,param_4,*param_5,param_5[1],param_5 + 2,param_5[10],\n               param_5[0xb]);" (call_expression "FUN_00025ce0(param_1,param_2,param_3,param_4,*param_5,param_5[1],param_5 + 2,param_5[10],\n               param_5[0xb])" (identifier "FUN_00025ce0") (argument_list "(param_1,param_2,param_3,param_4,*param_5,param_5[1],param_5 + 2,param_5[10],\n               param_5[0xb])" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (pointer_expression "*param_5" (* "*") (identifier "param_5")) (, ",") (subscript_expression "param_5[1]" (identifier "param_5") ([ "[") (number_literal "1") (] "]")) (, ",") (binary_expression "param_5 + 2" (identifier "param_5") (+ "+") (number_literal "2")) (, ",") (subscript_expression "param_5[10]" (identifier "param_5") ([ "[") (number_literal "10") (] "]")) (, ",") (subscript_expression "param_5[0xb]" (identifier "param_5") ([ "[") (number_literal "0xb") (] "]")) () ")"))) (; ";")) (expression_statement "*puVar1 = uVar2;" (assignment_expression "*puVar1 = uVar2" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "uVar2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

size_t function_1(char *buffer,size_t buffersize,char *arg,size_t argsize,type_1 *var_1)

{
  type_2 *puVar1;
  size_t sVar2;
  type_2 uVar3;
  
  if (var_1 == (type_1 *)0x0) {
    var_1 = (type_1 *)(var_2 + -0x5860);
  }
  puVar1 = (type_2 *)(*(type_3 *)PTR___errno_location_00049518)();
  uVar3 = *puVar1;
  sVar2 = var_3
                    (buffer,buffersize,arg,argsize,var_1->style,var_1->flags,var_1->quote_these_too,
                     var_1->left_quote,var_1->right_quote);
  *puVar1 = uVar3;
  return sVar2;
}


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

void MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                    undefined4 *param_5)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  
  if (param_5 == (undefined4 *)0x0) {
    param_5 = (undefined4 *)(PTR_DAT_00049208 + -0x5860);
  }
  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00049518)();
  uVar2 = *puVar1;
  FUN_00025ce0(param_1,param_2,param_3,param_4,*param_5,param_5[1],param_5 + 2,param_5[10],
               param_5[0xb]);
  *puVar1 = uVar2;
  return;
}

