
char * quotearg_alloc_mem(char *arg,size_t argsize,size_t *size,quoting_options *o)

{
  undefined4 *puVar1;
  size_t sVar2;
  char *buffer;
  undefined4 uVar3;
  uint flags;
  
  if (o == (quoting_options *)0x0) {
    o = (quoting_options *)(PTR_DAT_000290f8 + -0x6be0);
  }
  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00029240)();
  uVar3 = *puVar1;
  flags = (uint)(size == (size_t *)0x0) | o->flags;
  sVar2 = quotearg_buffer_restyled
                    ((char *)0x0,0,arg,argsize,o->style,flags,o->quote_these_too,o->left_quote,
                     o->right_quote);
  buffer = (char *)xmalloc(sVar2 + 1);
  quotearg_buffer_restyled
            (buffer,sVar2 + 1,arg,argsize,o->style,flags,o->quote_these_too,o->left_quote,
             o->right_quote);
  *puVar1 = uVar3;
  if (size != (size_t *)0x0) {
    *size = sVar2;
  }
  return buffer;
}



undefined4
quotearg_alloc_mem(undefined4 param_1,undefined4 param_2,int *param_3,undefined4 *param_4)

{
  undefined4 *puVar1;
  int iVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  uint uVar5;
  
  if (param_4 == (undefined4 *)0x0) {
    param_4 = (undefined4 *)(PTR_DAT_000290f8 + -0x6be0);
  }
  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00029240)();
  uVar4 = *puVar1;
  uVar5 = (uint)(param_3 == (int *)0x0) | param_4[1];
  iVar2 = FUN_000132c0(0,0,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb]);
  uVar3 = xmalloc(iVar2 + 1);
  FUN_000132c0(uVar3,iVar2 + 1,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb]);
  *puVar1 = uVar4;
  if (param_3 != (int *)0x0) {
    *param_3 = iVar2;
  }
  return uVar3;
}


lui gp,0x2
addiu gp,gp,-0x3af8
addu gp,gp,t9
addiu sp,sp,-0x60
sw gp,0x28(sp)
sw s6,0x50(sp)
or s6,a0,zero
sw s4,0x48(sp)
or s4,a1,zero
sw s3,0x44(sp)
or s3,a2,zero
sw ra,0x5c(sp)
sw s8,0x58(sp)
sw s7,0x54(sp)
sw s5,0x4c(sp)
sw s2,0x40(sp)
sw s1,0x3c(sp)
beq a3,zero,0x00014d1c
_sw s0,0x38(sp)
or s0,a3,zero
lw t9,-0x7e90(gp)
sltiu s2,s3,0x1
jalr t9
_addiu s5,s0,0x8
or a1,zero,zero
lw v1,0x2c(s0)
or s7,v0,zero
lw v0,0x4(s0)
or a0,zero,zero
lw gp,0x28(sp)
or a3,s4,zero
lw t0,0x0(s7)
or a2,s6,zero
sw v1,0x20(sp)
or s2,s2,v0
lw v0,0x28(s0)
lw s1,-0x7fcc(gp)
sw s5,0x18(sp)
sw s2,0x14(sp)
sw v0,0x1c(sp)
addiu s1,s1,0x32c0
sw t0,0x30(sp)
lw v0,0x0(s0)
or t9,s1,zero
bal 0x000132c0
_sw v0,0x10(sp)
lw gp,0x28(sp)
addiu s8,v0,0x1
sw v0,0x34(sp)
lw t9,-0x7fc8(gp)
bal 0x00015b90
_or a0,s8,zero
or a3,s4,zero
lw a0,0x2c(s0)
or s4,v0,zero
or a2,s6,zero
or a1,s8,zero
sw a0,0x20(sp)
or a0,v0,zero
lw v0,0x28(s0)
or t9,s1,zero
sw s5,0x18(sp)
sw s2,0x14(sp)
sw v0,0x1c(sp)
lw v0,0x0(s0)
bal 0x000132c0
_sw v0,0x10(sp)
lw t0,0x30(sp)
beq s3,zero,0x00014ce8
_sw t0,0x0(s7)
lw v1,0x34(sp)
sw v1,0x0(s3)
lw ra,0x5c(sp)
or v0,s4,zero
lw s8,0x58(sp)
lw s7,0x54(sp)
lw s6,0x50(sp)
lw s5,0x4c(sp)
lw s4,0x48(sp)
lw s3,0x44(sp)
lw s2,0x40(sp)
lw s1,0x3c(sp)
lw s0,0x38(sp)
jr ra
_addiu sp,sp,0x60
lw s0,-0x7fd8(gp)
b 0x00014c18
_addiu s0,s0,-0x6be0
(translation_unit "undefined4\nquotearg_alloc_mem(undefined4 param_1,undefined4 param_2,int *param_3,undefined4 *param_4)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  \n  if (param_4 == (undefined4 *)0x0) {\n    param_4 = (undefined4 *)(PTR_DAT_000290f8 + -0x6be0);\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00029240)();\n  uVar4 = *puVar1;\n  uVar5 = (uint)(param_3 == (int *)0x0) | param_4[1];\n  iVar2 = FUN_000132c0(0,0,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb]);\n  uVar3 = xmalloc(iVar2 + 1);\n  FUN_000132c0(uVar3,iVar2 + 1,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb]);\n  *puVar1 = uVar4;\n  if (param_3 != (int *)0x0) {\n    *param_3 = iVar2;\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4\nquotearg_alloc_mem(undefined4 param_1,undefined4 param_2,int *param_3,undefined4 *param_4)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  \n  if (param_4 == (undefined4 *)0x0) {\n    param_4 = (undefined4 *)(PTR_DAT_000290f8 + -0x6be0);\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00029240)();\n  uVar4 = *puVar1;\n  uVar5 = (uint)(param_3 == (int *)0x0) | param_4[1];\n  iVar2 = FUN_000132c0(0,0,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb]);\n  uVar3 = xmalloc(iVar2 + 1);\n  FUN_000132c0(uVar3,iVar2 + 1,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb]);\n  *puVar1 = uVar4;\n  if (param_3 != (int *)0x0) {\n    *param_3 = iVar2;\n  }\n  return uVar3;\n}" type_identifier (function_declarator "quotearg_alloc_mem(undefined4 param_1,undefined4 param_2,int *param_3,undefined4 *param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int *param_3,undefined4 *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  \n  if (param_4 == (undefined4 *)0x0) {\n    param_4 = (undefined4 *)(PTR_DAT_000290f8 + -0x6be0);\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00029240)();\n  uVar4 = *puVar1;\n  uVar5 = (uint)(param_3 == (int *)0x0) | param_4[1];\n  iVar2 = FUN_000132c0(0,0,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb]);\n  uVar3 = xmalloc(iVar2 + 1);\n  FUN_000132c0(uVar3,iVar2 + 1,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb]);\n  *puVar1 = uVar4;\n  if (param_3 != (int *)0x0) {\n    *param_3 = iVar2;\n  }\n  return uVar3;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (if_statement "if (param_4 == (undefined4 *)0x0) {\n    param_4 = (undefined4 *)(PTR_DAT_000290f8 + -0x6be0);\n  }" if (parenthesized_expression "(param_4 == (undefined4 *)0x0)" ( (binary_expression "param_4 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_4 = (undefined4 *)(PTR_DAT_000290f8 + -0x6be0);\n  }" { (expression_statement "param_4 = (undefined4 *)(PTR_DAT_000290f8 + -0x6be0);" (assignment_expression "param_4 = (undefined4 *)(PTR_DAT_000290f8 + -0x6be0)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_000290f8 + -0x6be0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000290f8 + -0x6be0)" ( (binary_expression "PTR_DAT_000290f8 + -0x6be0" identifier + number_literal) )))) ;) })) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00029240)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00029240)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00029240)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00029240)()" (parenthesized_expression "(*(code *)PTR___errno_location_00029240)" ( (pointer_expression "*(code *)PTR___errno_location_00029240" * (cast_expression "(code *)PTR___errno_location_00029240" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar4 = *puVar1;" (assignment_expression "uVar4 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "uVar5 = (uint)(param_3 == (int *)0x0) | param_4[1];" (assignment_expression "uVar5 = (uint)(param_3 == (int *)0x0) | param_4[1]" identifier = (binary_expression "(uint)(param_3 == (int *)0x0) | param_4[1]" (call_expression "(uint)(param_3 == (int *)0x0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 == (int *)0x0)" ( (binary_expression "param_3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) | (subscript_expression "param_4[1]" identifier [ number_literal ]))) ;) (expression_statement "iVar2 = FUN_000132c0(0,0,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb]);" (assignment_expression "iVar2 = FUN_000132c0(0,0,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb])" identifier = (call_expression "FUN_000132c0(0,0,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb])" identifier (argument_list "(0,0,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb])" ( number_literal , number_literal , identifier , identifier , (pointer_expression "*param_4" * identifier) , identifier , (binary_expression "param_4 + 2" identifier + number_literal) , (subscript_expression "param_4[10]" identifier [ number_literal ]) , (subscript_expression "param_4[0xb]" identifier [ number_literal ]) )))) ;) (expression_statement "uVar3 = xmalloc(iVar2 + 1);" (assignment_expression "uVar3 = xmalloc(iVar2 + 1)" identifier = (call_expression "xmalloc(iVar2 + 1)" identifier (argument_list "(iVar2 + 1)" ( (binary_expression "iVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "FUN_000132c0(uVar3,iVar2 + 1,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb]);" (call_expression "FUN_000132c0(uVar3,iVar2 + 1,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb])" identifier (argument_list "(uVar3,iVar2 + 1,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb])" ( identifier , (binary_expression "iVar2 + 1" identifier + number_literal) , identifier , identifier , (pointer_expression "*param_4" * identifier) , identifier , (binary_expression "param_4 + 2" identifier + number_literal) , (subscript_expression "param_4[10]" identifier [ number_literal ]) , (subscript_expression "param_4[0xb]" identifier [ number_literal ]) ))) ;) (expression_statement "*puVar1 = uVar4;" (assignment_expression "*puVar1 = uVar4" (pointer_expression "*puVar1" * identifier) = identifier) ;) (if_statement "if (param_3 != (int *)0x0) {\n    *param_3 = iVar2;\n  }" if (parenthesized_expression "(param_3 != (int *)0x0)" ( (binary_expression "param_3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_3 = iVar2;\n  }" { (expression_statement "*param_3 = iVar2;" (assignment_expression "*param_3 = iVar2" (pointer_expression "*param_3" * identifier) = identifier) ;) })) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "char * quotearg_alloc_mem(char *arg,size_t argsize,size_t *size,quoting_options *o)\n\n{\n  undefined4 *puVar1;\n  size_t sVar2;\n  char *buffer;\n  undefined4 uVar3;\n  uint flags;\n  \n  if (o == (quoting_options *)0x0) {\n    o = (quoting_options *)(PTR_DAT_000290f8 + -0x6be0);\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00029240)();\n  uVar3 = *puVar1;\n  flags = (uint)(size == (size_t *)0x0) | o->flags;\n  sVar2 = quotearg_buffer_restyled\n                    ((char *)0x0,0,arg,argsize,o->style,flags,o->quote_these_too,o->left_quote,\n                     o->right_quote);\n  buffer = (char *)xmalloc(sVar2 + 1);\n  quotearg_buffer_restyled\n            (buffer,sVar2 + 1,arg,argsize,o->style,flags,o->quote_these_too,o->left_quote,\n             o->right_quote);\n  *puVar1 = uVar3;\n  if (size != (size_t *)0x0) {\n    *size = sVar2;\n  }\n  return buffer;\n}\n\n" (function_definition "char * quotearg_alloc_mem(char *arg,size_t argsize,size_t *size,quoting_options *o)\n\n{\n  undefined4 *puVar1;\n  size_t sVar2;\n  char *buffer;\n  undefined4 uVar3;\n  uint flags;\n  \n  if (o == (quoting_options *)0x0) {\n    o = (quoting_options *)(PTR_DAT_000290f8 + -0x6be0);\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00029240)();\n  uVar3 = *puVar1;\n  flags = (uint)(size == (size_t *)0x0) | o->flags;\n  sVar2 = quotearg_buffer_restyled\n                    ((char *)0x0,0,arg,argsize,o->style,flags,o->quote_these_too,o->left_quote,\n                     o->right_quote);\n  buffer = (char *)xmalloc(sVar2 + 1);\n  quotearg_buffer_restyled\n            (buffer,sVar2 + 1,arg,argsize,o->style,flags,o->quote_these_too,o->left_quote,\n             o->right_quote);\n  *puVar1 = uVar3;\n  if (size != (size_t *)0x0) {\n    *size = sVar2;\n  }\n  return buffer;\n}" primitive_type (pointer_declarator "* quotearg_alloc_mem(char *arg,size_t argsize,size_t *size,quoting_options *o)" * (function_declarator "quotearg_alloc_mem(char *arg,size_t argsize,size_t *size,quoting_options *o)" identifier (parameter_list "(char *arg,size_t argsize,size_t *size,quoting_options *o)" ( (parameter_declaration "char *arg" primitive_type (pointer_declarator "*arg" * identifier)) , (parameter_declaration "size_t argsize" primitive_type identifier) , (parameter_declaration "size_t *size" primitive_type (pointer_declarator "*size" * identifier)) , (parameter_declaration "quoting_options *o" type_identifier (pointer_declarator "*o" * identifier)) )))) (compound_statement "{\n  undefined4 *puVar1;\n  size_t sVar2;\n  char *buffer;\n  undefined4 uVar3;\n  uint flags;\n  \n  if (o == (quoting_options *)0x0) {\n    o = (quoting_options *)(PTR_DAT_000290f8 + -0x6be0);\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00029240)();\n  uVar3 = *puVar1;\n  flags = (uint)(size == (size_t *)0x0) | o->flags;\n  sVar2 = quotearg_buffer_restyled\n                    ((char *)0x0,0,arg,argsize,o->style,flags,o->quote_these_too,o->left_quote,\n                     o->right_quote);\n  buffer = (char *)xmalloc(sVar2 + 1);\n  quotearg_buffer_restyled\n            (buffer,sVar2 + 1,arg,argsize,o->style,flags,o->quote_these_too,o->left_quote,\n             o->right_quote);\n  *puVar1 = uVar3;\n  if (size != (size_t *)0x0) {\n    *size = sVar2;\n  }\n  return buffer;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *buffer;" primitive_type (pointer_declarator "*buffer" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "uint flags;" type_identifier identifier ;) (if_statement "if (o == (quoting_options *)0x0) {\n    o = (quoting_options *)(PTR_DAT_000290f8 + -0x6be0);\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_000290f8 + -0x6be0);\n  }" { (expression_statement "o = (quoting_options *)(PTR_DAT_000290f8 + -0x6be0);" (assignment_expression "o = (quoting_options *)(PTR_DAT_000290f8 + -0x6be0)" identifier = (cast_expression "(quoting_options *)(PTR_DAT_000290f8 + -0x6be0)" ( (type_descriptor "quoting_options *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000290f8 + -0x6be0)" ( (binary_expression "PTR_DAT_000290f8 + -0x6be0" identifier + number_literal) )))) ;) })) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00029240)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00029240)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00029240)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00029240)()" (parenthesized_expression "(*(code *)PTR___errno_location_00029240)" ( (pointer_expression "*(code *)PTR___errno_location_00029240" * (cast_expression "(code *)PTR___errno_location_00029240" ( (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 "flags = (uint)(size == (size_t *)0x0) | o->flags;" (assignment_expression "flags = (uint)(size == (size_t *)0x0) | o->flags" identifier = (binary_expression "(uint)(size == (size_t *)0x0) | o->flags" (call_expression "(uint)(size == (size_t *)0x0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(size == (size_t *)0x0)" ( (binary_expression "size == (size_t *)0x0" identifier == (cast_expression "(size_t *)0x0" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) | (field_expression "o->flags" identifier -> field_identifier))) ;) (expression_statement "sVar2 = quotearg_buffer_restyled\n                    ((char *)0x0,0,arg,argsize,o->style,flags,o->quote_these_too,o->left_quote,\n                     o->right_quote);" (assignment_expression "sVar2 = quotearg_buffer_restyled\n                    ((char *)0x0,0,arg,argsize,o->style,flags,o->quote_these_too,o->left_quote,\n                     o->right_quote)" identifier = (call_expression "quotearg_buffer_restyled\n                    ((char *)0x0,0,arg,argsize,o->style,flags,o->quote_these_too,o->left_quote,\n                     o->right_quote)" identifier (argument_list "((char *)0x0,0,arg,argsize,o->style,flags,o->quote_these_too,o->left_quote,\n                     o->right_quote)" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal , identifier , identifier , (field_expression "o->style" identifier -> field_identifier) , 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 "buffer = (char *)xmalloc(sVar2 + 1);" (assignment_expression "buffer = (char *)xmalloc(sVar2 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar2 + 1)" identifier (argument_list "(sVar2 + 1)" ( (binary_expression "sVar2 + 1" identifier + number_literal) ))))) ;) (expression_statement "quotearg_buffer_restyled\n            (buffer,sVar2 + 1,arg,argsize,o->style,flags,o->quote_these_too,o->left_quote,\n             o->right_quote);" (call_expression "quotearg_buffer_restyled\n            (buffer,sVar2 + 1,arg,argsize,o->style,flags,o->quote_these_too,o->left_quote,\n             o->right_quote)" identifier (argument_list "(buffer,sVar2 + 1,arg,argsize,o->style,flags,o->quote_these_too,o->left_quote,\n             o->right_quote)" ( identifier , (binary_expression "sVar2 + 1" identifier + number_literal) , identifier , identifier , (field_expression "o->style" identifier -> field_identifier) , 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) ;) (if_statement "if (size != (size_t *)0x0) {\n    *size = sVar2;\n  }" if (parenthesized_expression "(size != (size_t *)0x0)" ( (binary_expression "size != (size_t *)0x0" identifier != (cast_expression "(size_t *)0x0" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *size = sVar2;\n  }" { (expression_statement "*size = sVar2;" (assignment_expression "*size = sVar2" (pointer_expression "*size" * identifier) = identifier) ;) })) (return_statement "return buffer;" return identifier ;) })))
(translation_unit "undefined4\nquotearg_alloc_mem(undefined4 param_1,undefined4 param_2,int *param_3,undefined4 *param_4)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  \n  if (param_4 == (undefined4 *)0x0) {\n    param_4 = (undefined4 *)(PTR_DAT_000290f8 + -0x6be0);\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00029240)();\n  uVar4 = *puVar1;\n  uVar5 = (uint)(param_3 == (int *)0x0) | param_4[1];\n  iVar2 = FUN_000132c0(0,0,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb]);\n  uVar3 = xmalloc(iVar2 + 1);\n  FUN_000132c0(uVar3,iVar2 + 1,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb]);\n  *puVar1 = uVar4;\n  if (param_3 != (int *)0x0) {\n    *param_3 = iVar2;\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4\nquotearg_alloc_mem(undefined4 param_1,undefined4 param_2,int *param_3,undefined4 *param_4)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  \n  if (param_4 == (undefined4 *)0x0) {\n    param_4 = (undefined4 *)(PTR_DAT_000290f8 + -0x6be0);\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00029240)();\n  uVar4 = *puVar1;\n  uVar5 = (uint)(param_3 == (int *)0x0) | param_4[1];\n  iVar2 = FUN_000132c0(0,0,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb]);\n  uVar3 = xmalloc(iVar2 + 1);\n  FUN_000132c0(uVar3,iVar2 + 1,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb]);\n  *puVar1 = uVar4;\n  if (param_3 != (int *)0x0) {\n    *param_3 = iVar2;\n  }\n  return uVar3;\n}" type_identifier (function_declarator "quotearg_alloc_mem(undefined4 param_1,undefined4 param_2,int *param_3,undefined4 *param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int *param_3,undefined4 *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  \n  if (param_4 == (undefined4 *)0x0) {\n    param_4 = (undefined4 *)(PTR_DAT_000290f8 + -0x6be0);\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00029240)();\n  uVar4 = *puVar1;\n  uVar5 = (uint)(param_3 == (int *)0x0) | param_4[1];\n  iVar2 = FUN_000132c0(0,0,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb]);\n  uVar3 = xmalloc(iVar2 + 1);\n  FUN_000132c0(uVar3,iVar2 + 1,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb]);\n  *puVar1 = uVar4;\n  if (param_3 != (int *)0x0) {\n    *param_3 = iVar2;\n  }\n  return uVar3;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (if_statement "if (param_4 == (undefined4 *)0x0) {\n    param_4 = (undefined4 *)(PTR_DAT_000290f8 + -0x6be0);\n  }" if (parenthesized_expression "(param_4 == (undefined4 *)0x0)" ( (binary_expression "param_4 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_4 = (undefined4 *)(PTR_DAT_000290f8 + -0x6be0);\n  }" { (expression_statement "param_4 = (undefined4 *)(PTR_DAT_000290f8 + -0x6be0);" (assignment_expression "param_4 = (undefined4 *)(PTR_DAT_000290f8 + -0x6be0)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_000290f8 + -0x6be0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000290f8 + -0x6be0)" ( (binary_expression "PTR_DAT_000290f8 + -0x6be0" identifier + number_literal) )))) ;) })) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00029240)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00029240)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00029240)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00029240)()" (parenthesized_expression "(*(code *)PTR___errno_location_00029240)" ( (pointer_expression "*(code *)PTR___errno_location_00029240" * (cast_expression "(code *)PTR___errno_location_00029240" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar4 = *puVar1;" (assignment_expression "uVar4 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "uVar5 = (uint)(param_3 == (int *)0x0) | param_4[1];" (assignment_expression "uVar5 = (uint)(param_3 == (int *)0x0) | param_4[1]" identifier = (binary_expression "(uint)(param_3 == (int *)0x0) | param_4[1]" (call_expression "(uint)(param_3 == (int *)0x0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 == (int *)0x0)" ( (binary_expression "param_3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) | (subscript_expression "param_4[1]" identifier [ number_literal ]))) ;) (expression_statement "iVar2 = FUN_000132c0(0,0,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb]);" (assignment_expression "iVar2 = FUN_000132c0(0,0,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb])" identifier = (call_expression "FUN_000132c0(0,0,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb])" identifier (argument_list "(0,0,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb])" ( number_literal , number_literal , identifier , identifier , (pointer_expression "*param_4" * identifier) , identifier , (binary_expression "param_4 + 2" identifier + number_literal) , (subscript_expression "param_4[10]" identifier [ number_literal ]) , (subscript_expression "param_4[0xb]" identifier [ number_literal ]) )))) ;) (expression_statement "uVar3 = xmalloc(iVar2 + 1);" (assignment_expression "uVar3 = xmalloc(iVar2 + 1)" identifier = (call_expression "xmalloc(iVar2 + 1)" identifier (argument_list "(iVar2 + 1)" ( (binary_expression "iVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "FUN_000132c0(uVar3,iVar2 + 1,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb]);" (call_expression "FUN_000132c0(uVar3,iVar2 + 1,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb])" identifier (argument_list "(uVar3,iVar2 + 1,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb])" ( identifier , (binary_expression "iVar2 + 1" identifier + number_literal) , identifier , identifier , (pointer_expression "*param_4" * identifier) , identifier , (binary_expression "param_4 + 2" identifier + number_literal) , (subscript_expression "param_4[10]" identifier [ number_literal ]) , (subscript_expression "param_4[0xb]" identifier [ number_literal ]) ))) ;) (expression_statement "*puVar1 = uVar4;" (assignment_expression "*puVar1 = uVar4" (pointer_expression "*puVar1" * identifier) = identifier) ;) (if_statement "if (param_3 != (int *)0x0) {\n    *param_3 = iVar2;\n  }" if (parenthesized_expression "(param_3 != (int *)0x0)" ( (binary_expression "param_3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_3 = iVar2;\n  }" { (expression_statement "*param_3 = iVar2;" (assignment_expression "*param_3 = iVar2" (pointer_expression "*param_3" * identifier) = identifier) ;) })) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE 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 (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) | (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT , IDENT , IDENT , (pointer_expression * IDENT) , IDENT , (binary_expression IDENT + LIT) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT , IDENT , (pointer_expression * IDENT) , IDENT , (binary_expression IDENT + LIT) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4\nquotearg_alloc_mem(undefined4 param_1,undefined4 param_2,int *param_3,undefined4 *param_4)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  \n  if (param_4 == (undefined4 *)0x0) {\n    param_4 = (undefined4 *)(PTR_DAT_000290f8 + -0x6be0);\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00029240)();\n  uVar4 = *puVar1;\n  uVar5 = (uint)(param_3 == (int *)0x0) | param_4[1];\n  iVar2 = FUN_000132c0(0,0,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb]);\n  uVar3 = xmalloc(iVar2 + 1);\n  FUN_000132c0(uVar3,iVar2 + 1,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb]);\n  *puVar1 = uVar4;\n  if (param_3 != (int *)0x0) {\n    *param_3 = iVar2;\n  }\n  return uVar3;\n}" (type_identifier "undefined4") (function_declarator "quotearg_alloc_mem(undefined4 param_1,undefined4 param_2,int *param_3,undefined4 *param_4)" (identifier "quotearg_alloc_mem") (parameter_list "(undefined4 param_1,undefined4 param_2,int *param_3,undefined4 *param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  \n  if (param_4 == (undefined4 *)0x0) {\n    param_4 = (undefined4 *)(PTR_DAT_000290f8 + -0x6be0);\n  }\n  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00029240)();\n  uVar4 = *puVar1;\n  uVar5 = (uint)(param_3 == (int *)0x0) | param_4[1];\n  iVar2 = FUN_000132c0(0,0,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb]);\n  uVar3 = xmalloc(iVar2 + 1);\n  FUN_000132c0(uVar3,iVar2 + 1,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb]);\n  *puVar1 = uVar4;\n  if (param_3 != (int *)0x0) {\n    *param_3 = iVar2;\n  }\n  return uVar3;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (if_statement "if (param_4 == (undefined4 *)0x0) {\n    param_4 = (undefined4 *)(PTR_DAT_000290f8 + -0x6be0);\n  }" (if "if") (parenthesized_expression "(param_4 == (undefined4 *)0x0)" (( "(") (binary_expression "param_4 == (undefined4 *)0x0" (identifier "param_4") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    param_4 = (undefined4 *)(PTR_DAT_000290f8 + -0x6be0);\n  }" ({ "{") (expression_statement "param_4 = (undefined4 *)(PTR_DAT_000290f8 + -0x6be0);" (assignment_expression "param_4 = (undefined4 *)(PTR_DAT_000290f8 + -0x6be0)" (identifier "param_4") (= "=") (cast_expression "(undefined4 *)(PTR_DAT_000290f8 + -0x6be0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000290f8 + -0x6be0)" (( "(") (binary_expression "PTR_DAT_000290f8 + -0x6be0" (identifier "PTR_DAT_000290f8") (+ "+") (number_literal "-0x6be0")) () ")")))) (; ";")) (} "}"))) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00029240)();" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00029240)()" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_00029240)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00029240)()" (parenthesized_expression "(*(code *)PTR___errno_location_00029240)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00029240" (* "*") (cast_expression "(code *)PTR___errno_location_00029240" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00029240"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "uVar4 = *puVar1;" (assignment_expression "uVar4 = *puVar1" (identifier "uVar4") (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (expression_statement "uVar5 = (uint)(param_3 == (int *)0x0) | param_4[1];" (assignment_expression "uVar5 = (uint)(param_3 == (int *)0x0) | param_4[1]" (identifier "uVar5") (= "=") (binary_expression "(uint)(param_3 == (int *)0x0) | param_4[1]" (call_expression "(uint)(param_3 == (int *)0x0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_3 == (int *)0x0)" (( "(") (binary_expression "param_3 == (int *)0x0" (identifier "param_3") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) (| "|") (subscript_expression "param_4[1]" (identifier "param_4") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "iVar2 = FUN_000132c0(0,0,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb]);" (assignment_expression "iVar2 = FUN_000132c0(0,0,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb])" (identifier "iVar2") (= "=") (call_expression "FUN_000132c0(0,0,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb])" (identifier "FUN_000132c0") (argument_list "(0,0,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb])" (( "(") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (pointer_expression "*param_4" (* "*") (identifier "param_4")) (, ",") (identifier "uVar5") (, ",") (binary_expression "param_4 + 2" (identifier "param_4") (+ "+") (number_literal "2")) (, ",") (subscript_expression "param_4[10]" (identifier "param_4") ([ "[") (number_literal "10") (] "]")) (, ",") (subscript_expression "param_4[0xb]" (identifier "param_4") ([ "[") (number_literal "0xb") (] "]")) () ")")))) (; ";")) (expression_statement "uVar3 = xmalloc(iVar2 + 1);" (assignment_expression "uVar3 = xmalloc(iVar2 + 1)" (identifier "uVar3") (= "=") (call_expression "xmalloc(iVar2 + 1)" (identifier "xmalloc") (argument_list "(iVar2 + 1)" (( "(") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "FUN_000132c0(uVar3,iVar2 + 1,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb]);" (call_expression "FUN_000132c0(uVar3,iVar2 + 1,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb])" (identifier "FUN_000132c0") (argument_list "(uVar3,iVar2 + 1,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb])" (( "(") (identifier "uVar3") (, ",") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1")) (, ",") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (pointer_expression "*param_4" (* "*") (identifier "param_4")) (, ",") (identifier "uVar5") (, ",") (binary_expression "param_4 + 2" (identifier "param_4") (+ "+") (number_literal "2")) (, ",") (subscript_expression "param_4[10]" (identifier "param_4") ([ "[") (number_literal "10") (] "]")) (, ",") (subscript_expression "param_4[0xb]" (identifier "param_4") ([ "[") (number_literal "0xb") (] "]")) () ")"))) (; ";")) (expression_statement "*puVar1 = uVar4;" (assignment_expression "*puVar1 = uVar4" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "uVar4")) (; ";")) (if_statement "if (param_3 != (int *)0x0) {\n    *param_3 = iVar2;\n  }" (if "if") (parenthesized_expression "(param_3 != (int *)0x0)" (( "(") (binary_expression "param_3 != (int *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *param_3 = iVar2;\n  }" ({ "{") (expression_statement "*param_3 = iVar2;" (assignment_expression "*param_3 = iVar2" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "iVar2")) (; ";")) (} "}"))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

char * function_1(char *arg,size_t argsize,size_t *var_3,type_1 *var_1)

{
  type_2 *puVar1;
  size_t var_6;
  char *buffer;
  type_2 uVar3;
  type_3 flags;
  
  if (var_1 == (type_1 *)0x0) {
    var_1 = (type_1 *)(var_2 + -0x6be0);
  }
  puVar1 = (type_2 *)(*(type_4 *)PTR___errno_location_00029240)();
  uVar3 = *puVar1;
  flags = (type_3)(var_3 == (size_t *)0x0) | var_1->flags;
  var_6 = var_4
                    ((char *)0x0,0,arg,argsize,var_1->style,flags,var_1->quote_these_too,var_1->left_quote,
                     var_1->right_quote);
  buffer = (char *)var_5(var_6 + 1);
  var_4
            (buffer,var_6 + 1,arg,argsize,var_1->style,flags,var_1->quote_these_too,var_1->left_quote,
             var_1->right_quote);
  *puVar1 = uVar3;
  if (var_3 != (size_t *)0x0) {
    *var_3 = var_6;
  }
  return buffer;
}


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

undefined4
MASKED(undefined4 param_1,undefined4 param_2,int *param_3,undefined4 *param_4)

{
  undefined4 *puVar1;
  int iVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  uint uVar5;
  
  if (param_4 == (undefined4 *)0x0) {
    param_4 = (undefined4 *)(PTR_DAT_000290f8 + -0x6be0);
  }
  puVar1 = (undefined4 *)(*(code *)PTR___errno_location_00029240)();
  uVar4 = *puVar1;
  uVar5 = (uint)(param_3 == (int *)0x0) | param_4[1];
  iVar2 = FUN_000132c0(0,0,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb]);
  uVar3 = xmalloc(iVar2 + 1);
  FUN_000132c0(uVar3,iVar2 + 1,param_1,param_2,*param_4,uVar5,param_4 + 2,param_4[10],param_4[0xb]);
  *puVar1 = uVar4;
  if (param_3 != (int *)0x0) {
    *param_3 = iVar2;
  }
  return uVar3;
}

