
char * quotearg_n_style_mem(wchar_t n,quoting_style s,char *arg,size_t argsize)

{
  long lVar1;
  char *pcVar2;
  long in_FS_OFFSET;
  quoting_options o;
  
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  if (s == custom_quoting_style) {
                    /* WARNING: Subroutine does not return */
    abort();
  }
  o.flags = L'\0';
  o.quote_these_too[0] = 0;
  o.quote_these_too[1] = 0;
  o.quote_these_too[2] = 0;
  o.quote_these_too[3] = 0;
  o.quote_these_too[4] = 0;
  o.quote_these_too[5] = 0;
  o.quote_these_too[6] = 0;
  o.quote_these_too[7] = 0;
  o.left_quote = (char *)0x0;
  o.right_quote = (char *)0x0;
  o.style = s;
  pcVar2 = quotearg_n_options(n,arg,argsize,&o);
  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {
    return pcVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



void FUN_001057f3(undefined8 param_1,int param_2,undefined8 param_3,undefined8 param_4)

{
  long in_FS_OFFSET;
  int local_48 [14];
  long local_10;
  
  local_10 = *(long *)(in_FS_OFFSET + 0x28);
  if (param_2 == 10) {
                    /* WARNING: Subroutine does not return */
    abort();
  }
  local_48[1] = 0;
  local_48[2] = 0;
  local_48[3] = 0;
  local_48[4] = 0;
  local_48[5] = 0;
  local_48[6] = 0;
  local_48[7] = 0;
  local_48[8] = 0;
  local_48[9] = 0;
  local_48[10] = 0;
  local_48[0xb] = 0;
  local_48[0xc] = 0;
  local_48[0xd] = 0;
  local_48[0] = param_2;
  FUN_00105272(param_1,param_3,param_4,local_48);
  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


SUB RSP,0x48
MOV RAX,RDX
MOV RDX,RCX
MOV RCX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x38],RCX
XOR ECX,ECX
CMP ESI,0xa
JZ 0x0010588f
MOV dword ptr [RSP],ESI
MOV dword ptr [RSP + 0x4],0x0
MOV dword ptr [RSP + 0x8],0x0
MOV dword ptr [RSP + 0xc],0x0
MOV dword ptr [RSP + 0x10],0x0
MOV dword ptr [RSP + 0x14],0x0
MOV dword ptr [RSP + 0x18],0x0
MOV dword ptr [RSP + 0x1c],0x0
MOV dword ptr [RSP + 0x20],0x0
MOV dword ptr [RSP + 0x24],0x0
MOV qword ptr [RSP + 0x28],0x0
MOV qword ptr [RSP + 0x30],0x0
MOV RCX,RSP
MOV RSI,RAX
CALL 0x00105272
MOV RDX,qword ptr [RSP + 0x38]
XOR RDX,qword ptr FS:[0x28]
JNZ 0x00105894
ADD RSP,0x48
RET
CALL 0x00102070
CALL 0x00102110
(translation_unit "void FUN_001057f3(undefined8 param_1,int param_2,undefined8 param_3,undefined8 param_4)\n\n{\n  long in_FS_OFFSET;\n  int local_48 [14];\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 10) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  local_48[1] = 0;\n  local_48[2] = 0;\n  local_48[3] = 0;\n  local_48[4] = 0;\n  local_48[5] = 0;\n  local_48[6] = 0;\n  local_48[7] = 0;\n  local_48[8] = 0;\n  local_48[9] = 0;\n  local_48[10] = 0;\n  local_48[0xb] = 0;\n  local_48[0xc] = 0;\n  local_48[0xd] = 0;\n  local_48[0] = param_2;\n  FUN_00105272(param_1,param_3,param_4,local_48);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "void FUN_001057f3(undefined8 param_1,int param_2,undefined8 param_3,undefined8 param_4)\n\n{\n  long in_FS_OFFSET;\n  int local_48 [14];\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 10) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  local_48[1] = 0;\n  local_48[2] = 0;\n  local_48[3] = 0;\n  local_48[4] = 0;\n  local_48[5] = 0;\n  local_48[6] = 0;\n  local_48[7] = 0;\n  local_48[8] = 0;\n  local_48[9] = 0;\n  local_48[10] = 0;\n  local_48[0xb] = 0;\n  local_48[0xc] = 0;\n  local_48[0xd] = 0;\n  local_48[0] = param_2;\n  FUN_00105272(param_1,param_3,param_4,local_48);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (function_declarator "FUN_001057f3(undefined8 param_1,int param_2,undefined8 param_3,undefined8 param_4)" identifier (parameter_list "(undefined8 param_1,int param_2,undefined8 param_3,undefined8 param_4)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) ))) (compound_statement "{\n  long in_FS_OFFSET;\n  int local_48 [14];\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 10) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  local_48[1] = 0;\n  local_48[2] = 0;\n  local_48[3] = 0;\n  local_48[4] = 0;\n  local_48[5] = 0;\n  local_48[6] = 0;\n  local_48[7] = 0;\n  local_48[8] = 0;\n  local_48[9] = 0;\n  local_48[10] = 0;\n  local_48[0xb] = 0;\n  local_48[0xc] = 0;\n  local_48[0xd] = 0;\n  local_48[0] = param_2;\n  FUN_00105272(param_1,param_3,param_4,local_48);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "int local_48 [14];" primitive_type (array_declarator "local_48 [14]" identifier [ number_literal ]) ;) (declaration "long local_10;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_10 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_10 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (param_2 == 10) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" if (parenthesized_expression "(param_2 == 10)" ( (binary_expression "param_2 == 10" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" { comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "local_48[1] = 0;" (assignment_expression "local_48[1] = 0" (subscript_expression "local_48[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_48[2] = 0;" (assignment_expression "local_48[2] = 0" (subscript_expression "local_48[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_48[3] = 0;" (assignment_expression "local_48[3] = 0" (subscript_expression "local_48[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_48[4] = 0;" (assignment_expression "local_48[4] = 0" (subscript_expression "local_48[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_48[5] = 0;" (assignment_expression "local_48[5] = 0" (subscript_expression "local_48[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_48[6] = 0;" (assignment_expression "local_48[6] = 0" (subscript_expression "local_48[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_48[7] = 0;" (assignment_expression "local_48[7] = 0" (subscript_expression "local_48[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_48[8] = 0;" (assignment_expression "local_48[8] = 0" (subscript_expression "local_48[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_48[9] = 0;" (assignment_expression "local_48[9] = 0" (subscript_expression "local_48[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_48[10] = 0;" (assignment_expression "local_48[10] = 0" (subscript_expression "local_48[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_48[0xb] = 0;" (assignment_expression "local_48[0xb] = 0" (subscript_expression "local_48[0xb]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_48[0xc] = 0;" (assignment_expression "local_48[0xc] = 0" (subscript_expression "local_48[0xc]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_48[0xd] = 0;" (assignment_expression "local_48[0xd] = 0" (subscript_expression "local_48[0xd]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_48[0] = param_2;" (assignment_expression "local_48[0] = param_2" (subscript_expression "local_48[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_00105272(param_1,param_3,param_4,local_48);" (call_expression "FUN_00105272(param_1,param_3,param_4,local_48)" identifier (argument_list "(param_1,param_3,param_4,local_48)" ( identifier , identifier , identifier , identifier ))) ;) (if_statement "if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }" if (parenthesized_expression "(local_10 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_10 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "char * quotearg_n_style_mem(wchar_t n,quoting_style s,char *arg,size_t argsize)\n\n{\n  long lVar1;\n  char *pcVar2;\n  long in_FS_OFFSET;\n  quoting_options o;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  if (s == custom_quoting_style) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  o.flags = L'\0';\n  o.quote_these_too[0] = 0;\n  o.quote_these_too[1] = 0;\n  o.quote_these_too[2] = 0;\n  o.quote_these_too[3] = 0;\n  o.quote_these_too[4] = 0;\n  o.quote_these_too[5] = 0;\n  o.quote_these_too[6] = 0;\n  o.quote_these_too[7] = 0;\n  o.left_quote = (char *)0x0;\n  o.right_quote = (char *)0x0;\n  o.style = s;\n  pcVar2 = quotearg_n_options(n,arg,argsize,&o);\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return pcVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "char * quotearg_n_style_mem(wchar_t n,quoting_style s,char *arg,size_t argsize)\n\n{\n  long lVar1;\n  char *pcVar2;\n  long in_FS_OFFSET;\n  quoting_options o;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  if (s == custom_quoting_style) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  o.flags = L'\0';\n  o.quote_these_too[0] = 0;\n  o.quote_these_too[1] = 0;\n  o.quote_these_too[2] = 0;\n  o.quote_these_too[3] = 0;\n  o.quote_these_too[4] = 0;\n  o.quote_these_too[5] = 0;\n  o.quote_these_too[6] = 0;\n  o.quote_these_too[7] = 0;\n  o.left_quote = (char *)0x0;\n  o.right_quote = (char *)0x0;\n  o.style = s;\n  pcVar2 = quotearg_n_options(n,arg,argsize,&o);\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return pcVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (pointer_declarator "* quotearg_n_style_mem(wchar_t n,quoting_style s,char *arg,size_t argsize)" * (function_declarator "quotearg_n_style_mem(wchar_t n,quoting_style s,char *arg,size_t argsize)" identifier (parameter_list "(wchar_t n,quoting_style s,char *arg,size_t argsize)" ( (parameter_declaration "wchar_t n" type_identifier identifier) , (parameter_declaration "quoting_style s" type_identifier identifier) , (parameter_declaration "char *arg" primitive_type (pointer_declarator "*arg" * identifier)) , (parameter_declaration "size_t argsize" primitive_type identifier) )))) (compound_statement "{\n  long lVar1;\n  char *pcVar2;\n  long in_FS_OFFSET;\n  quoting_options o;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  if (s == custom_quoting_style) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  o.flags = L'\0';\n  o.quote_these_too[0] = 0;\n  o.quote_these_too[1] = 0;\n  o.quote_these_too[2] = 0;\n  o.quote_these_too[3] = 0;\n  o.quote_these_too[4] = 0;\n  o.quote_these_too[5] = 0;\n  o.quote_these_too[6] = 0;\n  o.quote_these_too[7] = 0;\n  o.left_quote = (char *)0x0;\n  o.right_quote = (char *)0x0;\n  o.style = s;\n  pcVar2 = quotearg_n_options(n,arg,argsize,&o);\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return pcVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "quoting_options o;" type_identifier identifier ;) (expression_statement "lVar1 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar1 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (s == custom_quoting_style) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" if (parenthesized_expression "(s == custom_quoting_style)" ( (binary_expression "s == custom_quoting_style" identifier == identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" { comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "o.flags = L'\0';" (assignment_expression "o.flags = L'\0'" (field_expression "o.flags" identifier . field_identifier) = (char_literal "L'\0'" L' escape_sequence ')) ;) (expression_statement "o.quote_these_too[0] = 0;" (assignment_expression "o.quote_these_too[0] = 0" (subscript_expression "o.quote_these_too[0]" (field_expression "o.quote_these_too" identifier . field_identifier) [ number_literal ]) = number_literal) ;) (expression_statement "o.quote_these_too[1] = 0;" (assignment_expression "o.quote_these_too[1] = 0" (subscript_expression "o.quote_these_too[1]" (field_expression "o.quote_these_too" identifier . field_identifier) [ number_literal ]) = number_literal) ;) (expression_statement "o.quote_these_too[2] = 0;" (assignment_expression "o.quote_these_too[2] = 0" (subscript_expression "o.quote_these_too[2]" (field_expression "o.quote_these_too" identifier . field_identifier) [ number_literal ]) = number_literal) ;) (expression_statement "o.quote_these_too[3] = 0;" (assignment_expression "o.quote_these_too[3] = 0" (subscript_expression "o.quote_these_too[3]" (field_expression "o.quote_these_too" identifier . field_identifier) [ number_literal ]) = number_literal) ;) (expression_statement "o.quote_these_too[4] = 0;" (assignment_expression "o.quote_these_too[4] = 0" (subscript_expression "o.quote_these_too[4]" (field_expression "o.quote_these_too" identifier . field_identifier) [ number_literal ]) = number_literal) ;) (expression_statement "o.quote_these_too[5] = 0;" (assignment_expression "o.quote_these_too[5] = 0" (subscript_expression "o.quote_these_too[5]" (field_expression "o.quote_these_too" identifier . field_identifier) [ number_literal ]) = number_literal) ;) (expression_statement "o.quote_these_too[6] = 0;" (assignment_expression "o.quote_these_too[6] = 0" (subscript_expression "o.quote_these_too[6]" (field_expression "o.quote_these_too" identifier . field_identifier) [ number_literal ]) = number_literal) ;) (expression_statement "o.quote_these_too[7] = 0;" (assignment_expression "o.quote_these_too[7] = 0" (subscript_expression "o.quote_these_too[7]" (field_expression "o.quote_these_too" identifier . field_identifier) [ number_literal ]) = number_literal) ;) (expression_statement "o.left_quote = (char *)0x0;" (assignment_expression "o.left_quote = (char *)0x0" (field_expression "o.left_quote" identifier . field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "o.right_quote = (char *)0x0;" (assignment_expression "o.right_quote = (char *)0x0" (field_expression "o.right_quote" identifier . field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "o.style = s;" (assignment_expression "o.style = s" (field_expression "o.style" identifier . field_identifier) = identifier) ;) (expression_statement "pcVar2 = quotearg_n_options(n,arg,argsize,&o);" (assignment_expression "pcVar2 = quotearg_n_options(n,arg,argsize,&o)" identifier = (call_expression "quotearg_n_options(n,arg,argsize,&o)" identifier (argument_list "(n,arg,argsize,&o)" ( identifier , identifier , identifier , (pointer_expression "&o" & identifier) )))) ;) (if_statement "if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return pcVar2;\n  }" if (parenthesized_expression "(lVar1 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar1 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return pcVar2;\n  }" { (return_statement "return pcVar2;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_001057f3(undefined8 param_1,int param_2,undefined8 param_3,undefined8 param_4)\n\n{\n  long in_FS_OFFSET;\n  int local_48 [14];\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 10) {\n                    \n    abort();\n  }\n  local_48[1] = 0;\n  local_48[2] = 0;\n  local_48[3] = 0;\n  local_48[4] = 0;\n  local_48[5] = 0;\n  local_48[6] = 0;\n  local_48[7] = 0;\n  local_48[8] = 0;\n  local_48[9] = 0;\n  local_48[10] = 0;\n  local_48[0xb] = 0;\n  local_48[0xc] = 0;\n  local_48[0xd] = 0;\n  local_48[0] = param_2;\n  FUN_00105272(param_1,param_3,param_4,local_48);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "void FUN_001057f3(undefined8 param_1,int param_2,undefined8 param_3,undefined8 param_4)\n\n{\n  long in_FS_OFFSET;\n  int local_48 [14];\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 10) {\n                    \n    abort();\n  }\n  local_48[1] = 0;\n  local_48[2] = 0;\n  local_48[3] = 0;\n  local_48[4] = 0;\n  local_48[5] = 0;\n  local_48[6] = 0;\n  local_48[7] = 0;\n  local_48[8] = 0;\n  local_48[9] = 0;\n  local_48[10] = 0;\n  local_48[0xb] = 0;\n  local_48[0xc] = 0;\n  local_48[0xd] = 0;\n  local_48[0] = param_2;\n  FUN_00105272(param_1,param_3,param_4,local_48);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  __stack_chk_fail();\n}" primitive_type (function_declarator "FUN_001057f3(undefined8 param_1,int param_2,undefined8 param_3,undefined8 param_4)" identifier (parameter_list "(undefined8 param_1,int param_2,undefined8 param_3,undefined8 param_4)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) ))) (compound_statement "{\n  long in_FS_OFFSET;\n  int local_48 [14];\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 10) {\n                    \n    abort();\n  }\n  local_48[1] = 0;\n  local_48[2] = 0;\n  local_48[3] = 0;\n  local_48[4] = 0;\n  local_48[5] = 0;\n  local_48[6] = 0;\n  local_48[7] = 0;\n  local_48[8] = 0;\n  local_48[9] = 0;\n  local_48[10] = 0;\n  local_48[0xb] = 0;\n  local_48[0xc] = 0;\n  local_48[0xd] = 0;\n  local_48[0] = param_2;\n  FUN_00105272(param_1,param_3,param_4,local_48);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "int local_48 [14];" primitive_type (array_declarator "local_48 [14]" identifier [ number_literal ]) ;) (declaration "long local_10;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_10 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_10 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (param_2 == 10) {\n                    \n    abort();\n  }" if (parenthesized_expression "(param_2 == 10)" ( (binary_expression "param_2 == 10" identifier == number_literal) )) (compound_statement "{\n                    \n    abort();\n  }" { (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "local_48[1] = 0;" (assignment_expression "local_48[1] = 0" (subscript_expression "local_48[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_48[2] = 0;" (assignment_expression "local_48[2] = 0" (subscript_expression "local_48[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_48[3] = 0;" (assignment_expression "local_48[3] = 0" (subscript_expression "local_48[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_48[4] = 0;" (assignment_expression "local_48[4] = 0" (subscript_expression "local_48[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_48[5] = 0;" (assignment_expression "local_48[5] = 0" (subscript_expression "local_48[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_48[6] = 0;" (assignment_expression "local_48[6] = 0" (subscript_expression "local_48[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_48[7] = 0;" (assignment_expression "local_48[7] = 0" (subscript_expression "local_48[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_48[8] = 0;" (assignment_expression "local_48[8] = 0" (subscript_expression "local_48[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_48[9] = 0;" (assignment_expression "local_48[9] = 0" (subscript_expression "local_48[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_48[10] = 0;" (assignment_expression "local_48[10] = 0" (subscript_expression "local_48[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_48[0xb] = 0;" (assignment_expression "local_48[0xb] = 0" (subscript_expression "local_48[0xb]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_48[0xc] = 0;" (assignment_expression "local_48[0xc] = 0" (subscript_expression "local_48[0xc]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_48[0xd] = 0;" (assignment_expression "local_48[0xd] = 0" (subscript_expression "local_48[0xd]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_48[0] = param_2;" (assignment_expression "local_48[0] = param_2" (subscript_expression "local_48[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_00105272(param_1,param_3,param_4,local_48);" (call_expression "FUN_00105272(param_1,param_3,param_4,local_48)" identifier (argument_list "(param_1,param_3,param_4,local_48)" ( identifier , identifier , identifier , identifier ))) ;) (if_statement "if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }" if (parenthesized_expression "(local_10 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_10 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(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) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_001057f3(undefined8 param_1,int param_2,undefined8 param_3,undefined8 param_4)\n\n{\n  long in_FS_OFFSET;\n  int local_48 [14];\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 10) {\n                    \n    abort();\n  }\n  local_48[1] = 0;\n  local_48[2] = 0;\n  local_48[3] = 0;\n  local_48[4] = 0;\n  local_48[5] = 0;\n  local_48[6] = 0;\n  local_48[7] = 0;\n  local_48[8] = 0;\n  local_48[9] = 0;\n  local_48[10] = 0;\n  local_48[0xb] = 0;\n  local_48[0xc] = 0;\n  local_48[0xd] = 0;\n  local_48[0] = param_2;\n  FUN_00105272(param_1,param_3,param_4,local_48);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  __stack_chk_fail();\n}" (primitive_type "void") (function_declarator "FUN_001057f3(undefined8 param_1,int param_2,undefined8 param_3,undefined8 param_4)" (identifier "FUN_001057f3") (parameter_list "(undefined8 param_1,int param_2,undefined8 param_3,undefined8 param_4)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) (, ",") (parameter_declaration "undefined8 param_4" (type_identifier "undefined8") (identifier "param_4")) () ")"))) (compound_statement "{\n  long in_FS_OFFSET;\n  int local_48 [14];\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_2 == 10) {\n                    \n    abort();\n  }\n  local_48[1] = 0;\n  local_48[2] = 0;\n  local_48[3] = 0;\n  local_48[4] = 0;\n  local_48[5] = 0;\n  local_48[6] = 0;\n  local_48[7] = 0;\n  local_48[8] = 0;\n  local_48[9] = 0;\n  local_48[10] = 0;\n  local_48[0xb] = 0;\n  local_48[0xc] = 0;\n  local_48[0xd] = 0;\n  local_48[0] = param_2;\n  FUN_00105272(param_1,param_3,param_4,local_48);\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "int local_48 [14];" (primitive_type "int") (array_declarator "local_48 [14]" (identifier "local_48") ([ "[") (number_literal "14") (] "]")) (; ";")) (declaration "long local_10;" (sized_type_specifier "long" (long "long")) (identifier "local_10") (; ";")) (expression_statement "local_10 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_10 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_10") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (if_statement "if (param_2 == 10) {\n                    \n    abort();\n  }" (if "if") (parenthesized_expression "(param_2 == 10)" (( "(") (binary_expression "param_2 == 10" (identifier "param_2") (== "==") (number_literal "10")) () ")")) (compound_statement "{\n                    \n    abort();\n  }" ({ "{") (expression_statement "abort();" (call_expression "abort()" (identifier "abort") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "local_48[1] = 0;" (assignment_expression "local_48[1] = 0" (subscript_expression "local_48[1]" (identifier "local_48") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_48[2] = 0;" (assignment_expression "local_48[2] = 0" (subscript_expression "local_48[2]" (identifier "local_48") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_48[3] = 0;" (assignment_expression "local_48[3] = 0" (subscript_expression "local_48[3]" (identifier "local_48") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_48[4] = 0;" (assignment_expression "local_48[4] = 0" (subscript_expression "local_48[4]" (identifier "local_48") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_48[5] = 0;" (assignment_expression "local_48[5] = 0" (subscript_expression "local_48[5]" (identifier "local_48") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_48[6] = 0;" (assignment_expression "local_48[6] = 0" (subscript_expression "local_48[6]" (identifier "local_48") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_48[7] = 0;" (assignment_expression "local_48[7] = 0" (subscript_expression "local_48[7]" (identifier "local_48") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_48[8] = 0;" (assignment_expression "local_48[8] = 0" (subscript_expression "local_48[8]" (identifier "local_48") ([ "[") (number_literal "8") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_48[9] = 0;" (assignment_expression "local_48[9] = 0" (subscript_expression "local_48[9]" (identifier "local_48") ([ "[") (number_literal "9") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_48[10] = 0;" (assignment_expression "local_48[10] = 0" (subscript_expression "local_48[10]" (identifier "local_48") ([ "[") (number_literal "10") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_48[0xb] = 0;" (assignment_expression "local_48[0xb] = 0" (subscript_expression "local_48[0xb]" (identifier "local_48") ([ "[") (number_literal "0xb") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_48[0xc] = 0;" (assignment_expression "local_48[0xc] = 0" (subscript_expression "local_48[0xc]" (identifier "local_48") ([ "[") (number_literal "0xc") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_48[0xd] = 0;" (assignment_expression "local_48[0xd] = 0" (subscript_expression "local_48[0xd]" (identifier "local_48") ([ "[") (number_literal "0xd") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_48[0] = param_2;" (assignment_expression "local_48[0] = param_2" (subscript_expression "local_48[0]" (identifier "local_48") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "FUN_00105272(param_1,param_3,param_4,local_48);" (call_expression "FUN_00105272(param_1,param_3,param_4,local_48)" (identifier "FUN_00105272") (argument_list "(param_1,param_3,param_4,local_48)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "local_48") () ")"))) (; ";")) (if_statement "if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_10 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_10 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_10") (== "==") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

char * function_1(type_1 n,type_2 var_2,char *arg,size_t argsize)

{
  long var_6;
  char *pcVar2;
  long var_1;
  type_3 o;
  
  var_6 = *(long *)(var_1 + 0x28);
  if (var_2 == var_3) {
                    /* WARNING: Subroutine does not return */
    var_4();
  }
  o.flags = L'\0';
  o.quote_these_too[0] = 0;
  o.quote_these_too[1] = 0;
  o.quote_these_too[2] = 0;
  o.quote_these_too[3] = 0;
  o.quote_these_too[4] = 0;
  o.quote_these_too[5] = 0;
  o.quote_these_too[6] = 0;
  o.quote_these_too[7] = 0;
  o.left_quote = (char *)0x0;
  o.right_quote = (char *)0x0;
  o.style = var_2;
  pcVar2 = var_5(n,arg,argsize,&o);
  if (var_6 == *(long *)(var_1 + 0x28)) {
    return pcVar2;
  }
                    /* WARNING: Subroutine does not return */
  var_7();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

void MASKED(undefined8 param_1,int param_2,undefined8 param_3,undefined8 param_4)

{
  long in_FS_OFFSET;
  int local_48 [14];
  long local_10;
  
  local_10 = *(long *)(in_FS_OFFSET + 0x28);
  if (param_2 == 10) {
                    /* WARNING: Subroutine does not return */
    abort();
  }
  local_48[1] = 0;
  local_48[2] = 0;
  local_48[3] = 0;
  local_48[4] = 0;
  local_48[5] = 0;
  local_48[6] = 0;
  local_48[7] = 0;
  local_48[8] = 0;
  local_48[9] = 0;
  local_48[10] = 0;
  local_48[0xb] = 0;
  local_48[0xc] = 0;
  local_48[0xd] = 0;
  local_48[0] = param_2;
  FUN_00105272(param_1,param_3,param_4,local_48);
  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

