
char * quotearg_char_mem(char *arg,size_t argsize,char ch)

{
  long lVar1;
  char *pcVar2;
  long in_FS_OFFSET;
  quoting_options options;
  
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  options._0_8_ = default_quoting_options._0_8_;
  options.quote_these_too._0_8_ = default_quoting_options.quote_these_too._0_8_;
  options.quote_these_too._8_8_ = default_quoting_options.quote_these_too._8_8_;
  options.quote_these_too._16_8_ = default_quoting_options.quote_these_too._16_8_;
  options.quote_these_too._24_8_ = default_quoting_options.quote_these_too._24_8_;
  options.left_quote = default_quoting_options.left_quote;
  options.right_quote = default_quoting_options.right_quote;
  set_char_quoting(&options,ch,L'\x01');
  pcVar2 = quotearg_n_options(L'\0',arg,argsize,&options);
  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {
    return pcVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

void FUN_001083fe(undefined8 param_1,undefined8 param_2,char param_3)

{
  long in_FS_OFFSET;
  undefined8 local_68;
  undefined8 uStack_60;
  undefined8 local_58;
  undefined8 uStack_50;
  undefined8 local_48;
  undefined8 uStack_40;
  undefined8 local_38;
  long local_30;
  
  local_30 = *(long *)(in_FS_OFFSET + 0x28);
  local_68 = _DAT_001144a0;
  uStack_60 = uRam00000000001144a8;
  local_58 = _DAT_001144b0;
  uStack_50 = uRam00000000001144b8;
  local_48 = _DAT_001144c0;
  uStack_40 = uRam00000000001144c8;
  local_38 = DAT_001144d0;
  FUN_00107f94(&local_68,(int)param_3,1);
  FUN_00107da4(0,param_1,param_2,&local_68);
  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x48
MOV R12,RDI
MOV R13,RSI
MOV EBX,0x28
MOV RAX,qword ptr FS:[RBX]
MOV qword ptr [RSP + 0x38],RAX
XOR EAX,EAX
MOVDQA XMM0,xmmword ptr [0x001144a0]
MOVAPS xmmword ptr [RSP],XMM0
MOVDQA XMM1,xmmword ptr [0x001144b0]
MOVAPS xmmword ptr [RSP + 0x10],XMM1
MOVDQA XMM2,xmmword ptr [0x001144c0]
MOVAPS xmmword ptr [RSP + 0x20],XMM2
MOV RAX,qword ptr [0x001144d0]
MOV qword ptr [RSP + 0x30],RAX
MOVSX ESI,DL
MOV RBP,RSP
MOV EDX,0x1
MOV RDI,RBP
CALL 0x00107f94
MOV RCX,RBP
MOV RDX,R13
MOV RSI,R12
MOV EDI,0x0
CALL 0x00107da4
MOV RCX,qword ptr [RSP + 0x38]
XOR RCX,qword ptr FS:[RBX]
JNZ 0x0010848c
ADD RSP,0x48
POP RBX
POP RBP
POP R12
POP R13
RET
CALL 0x00102190
(translation_unit "/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */\n\nvoid FUN_001083fe(undefined8 param_1,undefined8 param_2,char param_3)\n\n{\n  long in_FS_OFFSET;\n  undefined8 local_68;\n  undefined8 uStack_60;\n  undefined8 local_58;\n  undefined8 uStack_50;\n  undefined8 local_48;\n  undefined8 uStack_40;\n  undefined8 local_38;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_68 = _DAT_001144a0;\n  uStack_60 = uRam00000000001144a8;\n  local_58 = _DAT_001144b0;\n  uStack_50 = uRam00000000001144b8;\n  local_48 = _DAT_001144c0;\n  uStack_40 = uRam00000000001144c8;\n  local_38 = DAT_001144d0;\n  FUN_00107f94(&local_68,(int)param_3,1);\n  FUN_00107da4(0,param_1,param_2,&local_68);\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" comment (function_definition "void FUN_001083fe(undefined8 param_1,undefined8 param_2,char param_3)\n\n{\n  long in_FS_OFFSET;\n  undefined8 local_68;\n  undefined8 uStack_60;\n  undefined8 local_58;\n  undefined8 uStack_50;\n  undefined8 local_48;\n  undefined8 uStack_40;\n  undefined8 local_38;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_68 = _DAT_001144a0;\n  uStack_60 = uRam00000000001144a8;\n  local_58 = _DAT_001144b0;\n  uStack_50 = uRam00000000001144b8;\n  local_48 = _DAT_001144c0;\n  uStack_40 = uRam00000000001144c8;\n  local_38 = DAT_001144d0;\n  FUN_00107f94(&local_68,(int)param_3,1);\n  FUN_00107da4(0,param_1,param_2,&local_68);\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (function_declarator "FUN_001083fe(undefined8 param_1,undefined8 param_2,char param_3)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2,char param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "char param_3" primitive_type identifier) ))) (compound_statement "{\n  long in_FS_OFFSET;\n  undefined8 local_68;\n  undefined8 uStack_60;\n  undefined8 local_58;\n  undefined8 uStack_50;\n  undefined8 local_48;\n  undefined8 uStack_40;\n  undefined8 local_38;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_68 = _DAT_001144a0;\n  uStack_60 = uRam00000000001144a8;\n  local_58 = _DAT_001144b0;\n  uStack_50 = uRam00000000001144b8;\n  local_48 = _DAT_001144c0;\n  uStack_40 = uRam00000000001144c8;\n  local_38 = DAT_001144d0;\n  FUN_00107f94(&local_68,(int)param_3,1);\n  FUN_00107da4(0,param_1,param_2,&local_68);\n  if (local_30 == *(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 "undefined8 local_68;" type_identifier identifier ;) (declaration "undefined8 uStack_60;" type_identifier identifier ;) (declaration "undefined8 local_58;" type_identifier identifier ;) (declaration "undefined8 uStack_50;" type_identifier identifier ;) (declaration "undefined8 local_48;" type_identifier identifier ;) (declaration "undefined8 uStack_40;" type_identifier identifier ;) (declaration "undefined8 local_38;" type_identifier identifier ;) (declaration "long local_30;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(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) ))))) ;) (expression_statement "local_68 = _DAT_001144a0;" (assignment_expression "local_68 = _DAT_001144a0" identifier = identifier) ;) (expression_statement "uStack_60 = uRam00000000001144a8;" (assignment_expression "uStack_60 = uRam00000000001144a8" identifier = identifier) ;) (expression_statement "local_58 = _DAT_001144b0;" (assignment_expression "local_58 = _DAT_001144b0" identifier = identifier) ;) (expression_statement "uStack_50 = uRam00000000001144b8;" (assignment_expression "uStack_50 = uRam00000000001144b8" identifier = identifier) ;) (expression_statement "local_48 = _DAT_001144c0;" (assignment_expression "local_48 = _DAT_001144c0" identifier = identifier) ;) (expression_statement "uStack_40 = uRam00000000001144c8;" (assignment_expression "uStack_40 = uRam00000000001144c8" identifier = identifier) ;) (expression_statement "local_38 = DAT_001144d0;" (assignment_expression "local_38 = DAT_001144d0" identifier = identifier) ;) (expression_statement "FUN_00107f94(&local_68,(int)param_3,1);" (call_expression "FUN_00107f94(&local_68,(int)param_3,1)" identifier (argument_list "(&local_68,(int)param_3,1)" ( (pointer_expression "&local_68" & identifier) , (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) , number_literal ))) ;) (expression_statement "FUN_00107da4(0,param_1,param_2,&local_68);" (call_expression "FUN_00107da4(0,param_1,param_2,&local_68)" identifier (argument_list "(0,param_1,param_2,&local_68)" ( number_literal , identifier , identifier , (pointer_expression "&local_68" & identifier) ))) ;) (if_statement "if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }" if (parenthesized_expression "(local_30 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_30 == *(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_char_mem(char *arg,size_t argsize,char ch)\n\n{\n  long lVar1;\n  char *pcVar2;\n  long in_FS_OFFSET;\n  quoting_options options;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  options._0_8_ = default_quoting_options._0_8_;\n  options.quote_these_too._0_8_ = default_quoting_options.quote_these_too._0_8_;\n  options.quote_these_too._8_8_ = default_quoting_options.quote_these_too._8_8_;\n  options.quote_these_too._16_8_ = default_quoting_options.quote_these_too._16_8_;\n  options.quote_these_too._24_8_ = default_quoting_options.quote_these_too._24_8_;\n  options.left_quote = default_quoting_options.left_quote;\n  options.right_quote = default_quoting_options.right_quote;\n  set_char_quoting(&options,ch,L'\x01');\n  pcVar2 = quotearg_n_options(L'\0',arg,argsize,&options);\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_char_mem(char *arg,size_t argsize,char ch)\n\n{\n  long lVar1;\n  char *pcVar2;\n  long in_FS_OFFSET;\n  quoting_options options;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  options._0_8_ = default_quoting_options._0_8_;\n  options.quote_these_too._0_8_ = default_quoting_options.quote_these_too._0_8_;\n  options.quote_these_too._8_8_ = default_quoting_options.quote_these_too._8_8_;\n  options.quote_these_too._16_8_ = default_quoting_options.quote_these_too._16_8_;\n  options.quote_these_too._24_8_ = default_quoting_options.quote_these_too._24_8_;\n  options.left_quote = default_quoting_options.left_quote;\n  options.right_quote = default_quoting_options.right_quote;\n  set_char_quoting(&options,ch,L'\x01');\n  pcVar2 = quotearg_n_options(L'\0',arg,argsize,&options);\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_char_mem(char *arg,size_t argsize,char ch)" * (function_declarator "quotearg_char_mem(char *arg,size_t argsize,char ch)" identifier (parameter_list "(char *arg,size_t argsize,char ch)" ( (parameter_declaration "char *arg" primitive_type (pointer_declarator "*arg" * identifier)) , (parameter_declaration "size_t argsize" primitive_type identifier) , (parameter_declaration "char ch" primitive_type identifier) )))) (compound_statement "{\n  long lVar1;\n  char *pcVar2;\n  long in_FS_OFFSET;\n  quoting_options options;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  options._0_8_ = default_quoting_options._0_8_;\n  options.quote_these_too._0_8_ = default_quoting_options.quote_these_too._0_8_;\n  options.quote_these_too._8_8_ = default_quoting_options.quote_these_too._8_8_;\n  options.quote_these_too._16_8_ = default_quoting_options.quote_these_too._16_8_;\n  options.quote_these_too._24_8_ = default_quoting_options.quote_these_too._24_8_;\n  options.left_quote = default_quoting_options.left_quote;\n  options.right_quote = default_quoting_options.right_quote;\n  set_char_quoting(&options,ch,L'\x01');\n  pcVar2 = quotearg_n_options(L'\0',arg,argsize,&options);\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 options;" 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) ))))) ;) (expression_statement "options._0_8_ = default_quoting_options._0_8_;" (assignment_expression "options._0_8_ = default_quoting_options._0_8_" (field_expression "options._0_8_" identifier . field_identifier) = (field_expression "default_quoting_options._0_8_" identifier . field_identifier)) ;) (expression_statement "options.quote_these_too._0_8_ = default_quoting_options.quote_these_too._0_8_;" (assignment_expression "options.quote_these_too._0_8_ = default_quoting_options.quote_these_too._0_8_" (field_expression "options.quote_these_too._0_8_" (field_expression "options.quote_these_too" identifier . field_identifier) . field_identifier) = (field_expression "default_quoting_options.quote_these_too._0_8_" (field_expression "default_quoting_options.quote_these_too" identifier . field_identifier) . field_identifier)) ;) (expression_statement "options.quote_these_too._8_8_ = default_quoting_options.quote_these_too._8_8_;" (assignment_expression "options.quote_these_too._8_8_ = default_quoting_options.quote_these_too._8_8_" (field_expression "options.quote_these_too._8_8_" (field_expression "options.quote_these_too" identifier . field_identifier) . field_identifier) = (field_expression "default_quoting_options.quote_these_too._8_8_" (field_expression "default_quoting_options.quote_these_too" identifier . field_identifier) . field_identifier)) ;) (expression_statement "options.quote_these_too._16_8_ = default_quoting_options.quote_these_too._16_8_;" (assignment_expression "options.quote_these_too._16_8_ = default_quoting_options.quote_these_too._16_8_" (field_expression "options.quote_these_too._16_8_" (field_expression "options.quote_these_too" identifier . field_identifier) . field_identifier) = (field_expression "default_quoting_options.quote_these_too._16_8_" (field_expression "default_quoting_options.quote_these_too" identifier . field_identifier) . field_identifier)) ;) (expression_statement "options.quote_these_too._24_8_ = default_quoting_options.quote_these_too._24_8_;" (assignment_expression "options.quote_these_too._24_8_ = default_quoting_options.quote_these_too._24_8_" (field_expression "options.quote_these_too._24_8_" (field_expression "options.quote_these_too" identifier . field_identifier) . field_identifier) = (field_expression "default_quoting_options.quote_these_too._24_8_" (field_expression "default_quoting_options.quote_these_too" identifier . field_identifier) . field_identifier)) ;) (expression_statement "options.left_quote = default_quoting_options.left_quote;" (assignment_expression "options.left_quote = default_quoting_options.left_quote" (field_expression "options.left_quote" identifier . field_identifier) = (field_expression "default_quoting_options.left_quote" identifier . field_identifier)) ;) (expression_statement "options.right_quote = default_quoting_options.right_quote;" (assignment_expression "options.right_quote = default_quoting_options.right_quote" (field_expression "options.right_quote" identifier . field_identifier) = (field_expression "default_quoting_options.right_quote" identifier . field_identifier)) ;) (expression_statement "set_char_quoting(&options,ch,L'\x01');" (call_expression "set_char_quoting(&options,ch,L'\x01')" identifier (argument_list "(&options,ch,L'\x01')" ( (pointer_expression "&options" & identifier) , identifier , (char_literal "L'\x01'" L' escape_sequence ') ))) ;) (expression_statement "pcVar2 = quotearg_n_options(L'\0',arg,argsize,&options);" (assignment_expression "pcVar2 = quotearg_n_options(L'\0',arg,argsize,&options)" identifier = (call_expression "quotearg_n_options(L'\0',arg,argsize,&options)" identifier (argument_list "(L'\0',arg,argsize,&options)" ( (char_literal "L'\0'" L' escape_sequence ') , identifier , identifier , (pointer_expression "&options" & 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_001083fe(undefined8 param_1,undefined8 param_2,char param_3)\n\n{\n  long in_FS_OFFSET;\n  undefined8 local_68;\n  undefined8 uStack_60;\n  undefined8 local_58;\n  undefined8 uStack_50;\n  undefined8 local_48;\n  undefined8 uStack_40;\n  undefined8 local_38;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_68 = _DAT_001144a0;\n  uStack_60 = uRam00000000001144a8;\n  local_58 = _DAT_001144b0;\n  uStack_50 = uRam00000000001144b8;\n  local_48 = _DAT_001144c0;\n  uStack_40 = uRam00000000001144c8;\n  local_38 = DAT_001144d0;\n  FUN_00107f94(&local_68,(int)param_3,1);\n  FUN_00107da4(0,param_1,param_2,&local_68);\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "void FUN_001083fe(undefined8 param_1,undefined8 param_2,char param_3)\n\n{\n  long in_FS_OFFSET;\n  undefined8 local_68;\n  undefined8 uStack_60;\n  undefined8 local_58;\n  undefined8 uStack_50;\n  undefined8 local_48;\n  undefined8 uStack_40;\n  undefined8 local_38;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_68 = _DAT_001144a0;\n  uStack_60 = uRam00000000001144a8;\n  local_58 = _DAT_001144b0;\n  uStack_50 = uRam00000000001144b8;\n  local_48 = _DAT_001144c0;\n  uStack_40 = uRam00000000001144c8;\n  local_38 = DAT_001144d0;\n  FUN_00107f94(&local_68,(int)param_3,1);\n  FUN_00107da4(0,param_1,param_2,&local_68);\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  __stack_chk_fail();\n}" primitive_type (function_declarator "FUN_001083fe(undefined8 param_1,undefined8 param_2,char param_3)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2,char param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "char param_3" primitive_type identifier) ))) (compound_statement "{\n  long in_FS_OFFSET;\n  undefined8 local_68;\n  undefined8 uStack_60;\n  undefined8 local_58;\n  undefined8 uStack_50;\n  undefined8 local_48;\n  undefined8 uStack_40;\n  undefined8 local_38;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_68 = _DAT_001144a0;\n  uStack_60 = uRam00000000001144a8;\n  local_58 = _DAT_001144b0;\n  uStack_50 = uRam00000000001144b8;\n  local_48 = _DAT_001144c0;\n  uStack_40 = uRam00000000001144c8;\n  local_38 = DAT_001144d0;\n  FUN_00107f94(&local_68,(int)param_3,1);\n  FUN_00107da4(0,param_1,param_2,&local_68);\n  if (local_30 == *(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 "undefined8 local_68;" type_identifier identifier ;) (declaration "undefined8 uStack_60;" type_identifier identifier ;) (declaration "undefined8 local_58;" type_identifier identifier ;) (declaration "undefined8 uStack_50;" type_identifier identifier ;) (declaration "undefined8 local_48;" type_identifier identifier ;) (declaration "undefined8 uStack_40;" type_identifier identifier ;) (declaration "undefined8 local_38;" type_identifier identifier ;) (declaration "long local_30;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(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) ))))) ;) (expression_statement "local_68 = _DAT_001144a0;" (assignment_expression "local_68 = _DAT_001144a0" identifier = identifier) ;) (expression_statement "uStack_60 = uRam00000000001144a8;" (assignment_expression "uStack_60 = uRam00000000001144a8" identifier = identifier) ;) (expression_statement "local_58 = _DAT_001144b0;" (assignment_expression "local_58 = _DAT_001144b0" identifier = identifier) ;) (expression_statement "uStack_50 = uRam00000000001144b8;" (assignment_expression "uStack_50 = uRam00000000001144b8" identifier = identifier) ;) (expression_statement "local_48 = _DAT_001144c0;" (assignment_expression "local_48 = _DAT_001144c0" identifier = identifier) ;) (expression_statement "uStack_40 = uRam00000000001144c8;" (assignment_expression "uStack_40 = uRam00000000001144c8" identifier = identifier) ;) (expression_statement "local_38 = DAT_001144d0;" (assignment_expression "local_38 = DAT_001144d0" identifier = identifier) ;) (expression_statement "FUN_00107f94(&local_68,(int)param_3,1);" (call_expression "FUN_00107f94(&local_68,(int)param_3,1)" identifier (argument_list "(&local_68,(int)param_3,1)" ( (pointer_expression "&local_68" & identifier) , (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) , number_literal ))) ;) (expression_statement "FUN_00107da4(0,param_1,param_2,&local_68);" (call_expression "FUN_00107da4(0,param_1,param_2,&local_68)" identifier (argument_list "(0,param_1,param_2,&local_68)" ( number_literal , identifier , identifier , (pointer_expression "&local_68" & identifier) ))) ;) (if_statement "if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }" if (parenthesized_expression "(local_30 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_30 == *(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) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (cast_expression ( (type_descriptor TYPE) ) IDENT) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT , IDENT , (pointer_expression & 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_001083fe(undefined8 param_1,undefined8 param_2,char param_3)\n\n{\n  long in_FS_OFFSET;\n  undefined8 local_68;\n  undefined8 uStack_60;\n  undefined8 local_58;\n  undefined8 uStack_50;\n  undefined8 local_48;\n  undefined8 uStack_40;\n  undefined8 local_38;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_68 = _DAT_001144a0;\n  uStack_60 = uRam00000000001144a8;\n  local_58 = _DAT_001144b0;\n  uStack_50 = uRam00000000001144b8;\n  local_48 = _DAT_001144c0;\n  uStack_40 = uRam00000000001144c8;\n  local_38 = DAT_001144d0;\n  FUN_00107f94(&local_68,(int)param_3,1);\n  FUN_00107da4(0,param_1,param_2,&local_68);\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  __stack_chk_fail();\n}" (primitive_type "void") (function_declarator "FUN_001083fe(undefined8 param_1,undefined8 param_2,char param_3)" (identifier "FUN_001083fe") (parameter_list "(undefined8 param_1,undefined8 param_2,char param_3)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "char param_3" (primitive_type "char") (identifier "param_3")) () ")"))) (compound_statement "{\n  long in_FS_OFFSET;\n  undefined8 local_68;\n  undefined8 uStack_60;\n  undefined8 local_58;\n  undefined8 uStack_50;\n  undefined8 local_48;\n  undefined8 uStack_40;\n  undefined8 local_38;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  local_68 = _DAT_001144a0;\n  uStack_60 = uRam00000000001144a8;\n  local_58 = _DAT_001144b0;\n  uStack_50 = uRam00000000001144b8;\n  local_48 = _DAT_001144c0;\n  uStack_40 = uRam00000000001144c8;\n  local_38 = DAT_001144d0;\n  FUN_00107f94(&local_68,(int)param_3,1);\n  FUN_00107da4(0,param_1,param_2,&local_68);\n  if (local_30 == *(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 "undefined8 local_68;" (type_identifier "undefined8") (identifier "local_68") (; ";")) (declaration "undefined8 uStack_60;" (type_identifier "undefined8") (identifier "uStack_60") (; ";")) (declaration "undefined8 local_58;" (type_identifier "undefined8") (identifier "local_58") (; ";")) (declaration "undefined8 uStack_50;" (type_identifier "undefined8") (identifier "uStack_50") (; ";")) (declaration "undefined8 local_48;" (type_identifier "undefined8") (identifier "local_48") (; ";")) (declaration "undefined8 uStack_40;" (type_identifier "undefined8") (identifier "uStack_40") (; ";")) (declaration "undefined8 local_38;" (type_identifier "undefined8") (identifier "local_38") (; ";")) (declaration "long local_30;" (sized_type_specifier "long" (long "long")) (identifier "local_30") (; ";")) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_30") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "local_68 = _DAT_001144a0;" (assignment_expression "local_68 = _DAT_001144a0" (identifier "local_68") (= "=") (identifier "_DAT_001144a0")) (; ";")) (expression_statement "uStack_60 = uRam00000000001144a8;" (assignment_expression "uStack_60 = uRam00000000001144a8" (identifier "uStack_60") (= "=") (identifier "uRam00000000001144a8")) (; ";")) (expression_statement "local_58 = _DAT_001144b0;" (assignment_expression "local_58 = _DAT_001144b0" (identifier "local_58") (= "=") (identifier "_DAT_001144b0")) (; ";")) (expression_statement "uStack_50 = uRam00000000001144b8;" (assignment_expression "uStack_50 = uRam00000000001144b8" (identifier "uStack_50") (= "=") (identifier "uRam00000000001144b8")) (; ";")) (expression_statement "local_48 = _DAT_001144c0;" (assignment_expression "local_48 = _DAT_001144c0" (identifier "local_48") (= "=") (identifier "_DAT_001144c0")) (; ";")) (expression_statement "uStack_40 = uRam00000000001144c8;" (assignment_expression "uStack_40 = uRam00000000001144c8" (identifier "uStack_40") (= "=") (identifier "uRam00000000001144c8")) (; ";")) (expression_statement "local_38 = DAT_001144d0;" (assignment_expression "local_38 = DAT_001144d0" (identifier "local_38") (= "=") (identifier "DAT_001144d0")) (; ";")) (expression_statement "FUN_00107f94(&local_68,(int)param_3,1);" (call_expression "FUN_00107f94(&local_68,(int)param_3,1)" (identifier "FUN_00107f94") (argument_list "(&local_68,(int)param_3,1)" (( "(") (pointer_expression "&local_68" (& "&") (identifier "local_68")) (, ",") (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "FUN_00107da4(0,param_1,param_2,&local_68);" (call_expression "FUN_00107da4(0,param_1,param_2,&local_68)" (identifier "FUN_00107da4") (argument_list "(0,param_1,param_2,&local_68)" (( "(") (number_literal "0") (, ",") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (pointer_expression "&local_68" (& "&") (identifier "local_68")) () ")"))) (; ";")) (if_statement "if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_30 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_30 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_30") (== "==") (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(char *arg,size_t argsize,char ch)

{
  long var_4;
  char *pcVar2;
  long var_1;
  type_1 options;
  
  var_4 = *(long *)(var_1 + 0x28);
  options._0_8_ = default_quoting_options._0_8_;
  options.quote_these_too._0_8_ = default_quoting_options.quote_these_too._0_8_;
  options.quote_these_too._8_8_ = default_quoting_options.quote_these_too._8_8_;
  options.quote_these_too._16_8_ = default_quoting_options.quote_these_too._16_8_;
  options.quote_these_too._24_8_ = default_quoting_options.quote_these_too._24_8_;
  options.left_quote = default_quoting_options.left_quote;
  options.right_quote = default_quoting_options.right_quote;
  var_2(&options,ch,L'\x01');
  pcVar2 = var_3(L'\0',arg,argsize,&options);
  if (var_4 == *(long *)(var_1 + 0x28)) {
    return pcVar2;
  }
                    /* WARNING: Subroutine does not return */
  var_5();
}


(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: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (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))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (identifier) (pointer_expression argument: (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))))))

/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

void MASKED(undefined8 param_1,undefined8 param_2,char param_3)

{
  long in_FS_OFFSET;
  undefined8 local_68;
  undefined8 uStack_60;
  undefined8 local_58;
  undefined8 uStack_50;
  undefined8 local_48;
  undefined8 uStack_40;
  undefined8 local_38;
  long local_30;
  
  local_30 = *(long *)(in_FS_OFFSET + 0x28);
  local_68 = _DAT_001144a0;
  uStack_60 = uRam00000000001144a8;
  local_58 = _DAT_001144b0;
  uStack_50 = uRam00000000001144b8;
  local_48 = _DAT_001144c0;
  uStack_40 = uRam00000000001144c8;
  local_38 = DAT_001144d0;
  FUN_00107f94(&local_68,(int)param_3,1);
  FUN_00107da4(0,param_1,param_2,&local_68);
  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

