
/* std::__facet_shims::(anonymous namespace)::collate_shim<char>::do_transform(char const*, char
   const*) const */

char * std::__facet_shims::(anonymous_namespace)::collate_shim<char>::do_transform
                 (char *param_1,char *param_2)

{
  long local_48;
  long local_40;
  code *local_28;
  
  local_28 = (code *)0x0;
                    /* try { // try from 003105dc to 00310603 has its CatchHandler @ 00310629 */
  __collate_transform<char>(*(undefined8 *)(param_2 + 0x18),&local_48);
  if (local_28 != (code *)0x0) {
    *(char **)param_1 = param_1 + 0x10;
    __cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::
    _M_construct<char_const*>
              ((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)param_1,local_48
               ,local_40 + local_48);
    if (local_28 != (code *)0x0) {
      (*local_28)(&local_48);
    }
    return param_1;
  }
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 00310624 to 00310628 has its CatchHandler @ 00310629 */
  __throw_logic_error("uninitialized __any_string");
}



long * FUN_003105c0(long *param_1,long param_2)

{
  long local_48;
  long local_40;
  code *local_28;
  
  local_28 = (code *)0x0;
                    /* try { // try from 003105dc to 00310603 has its CatchHandler @ 00310629 */
  FUN_00316190(*(undefined8 *)(param_2 + 0x18),&local_48);
  if (local_28 != (code *)0x0) {
    *param_1 = (long)(param_1 + 2);
    FUN_001665c0(param_1,local_48,local_40 + local_48);
    if (local_28 != (code *)0x0) {
      (*local_28)(&local_48);
    }
    return param_1;
  }
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 00310624 to 00310628 has its CatchHandler @ 00310629 */
  FUN_003194d0("uninitialized __any_string");
}


PUSH RBP
PUSH RBX
MOV RBX,RDI
SUB RSP,0x38
MOV RDI,qword ptr [RSI + 0x18]
MOV qword ptr [RSP + 0x20],0x0
MOV RBP,RSP
MOV RSI,RBP
CALL 0x00316190
CMP qword ptr [RSP + 0x20],0x0
JZ 0x0031061d
LEA RAX,[RBX + 0x10]
MOV RSI,qword ptr [RSP]
MOV RDX,qword ptr [RSP + 0x8]
MOV RDI,RBX
MOV qword ptr [RBX],RAX
ADD RDX,RSI
CALL 0x001665c0
MOV RAX,qword ptr [RSP + 0x20]
TEST RAX,RAX
JZ 0x00310613
MOV RDI,RBP
CALL RAX
ADD RSP,0x38
MOV RAX,RBX
POP RBX
POP RBP
RET
LEA RDI,[0x391f64]
CALL 0x003194d0
(translation_unit "long * FUN_003105c0(long *param_1,long param_2)\n\n{\n  long local_48;\n  long local_40;\n  code *local_28;\n  \n  local_28 = (code *)0x0;\n                    /* try { // try from 003105dc to 00310603 has its CatchHandler @ 00310629 */\n  FUN_00316190(*(undefined8 *)(param_2 + 0x18),&local_48);\n  if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_001665c0(param_1,local_48,local_40 + local_48);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00310624 to 00310628 has its CatchHandler @ 00310629 */\n  FUN_003194d0("uninitialized __any_string");\n}\n\n" (function_definition "long * FUN_003105c0(long *param_1,long param_2)\n\n{\n  long local_48;\n  long local_40;\n  code *local_28;\n  \n  local_28 = (code *)0x0;\n                    /* try { // try from 003105dc to 00310603 has its CatchHandler @ 00310629 */\n  FUN_00316190(*(undefined8 *)(param_2 + 0x18),&local_48);\n  if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_001665c0(param_1,local_48,local_40 + local_48);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00310624 to 00310628 has its CatchHandler @ 00310629 */\n  FUN_003194d0("uninitialized __any_string");\n}" (sized_type_specifier "long" long) (pointer_declarator "* FUN_003105c0(long *param_1,long param_2)" * (function_declarator "FUN_003105c0(long *param_1,long param_2)" identifier (parameter_list "(long *param_1,long param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) )))) (compound_statement "{\n  long local_48;\n  long local_40;\n  code *local_28;\n  \n  local_28 = (code *)0x0;\n                    /* try { // try from 003105dc to 00310603 has its CatchHandler @ 00310629 */\n  FUN_00316190(*(undefined8 *)(param_2 + 0x18),&local_48);\n  if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_001665c0(param_1,local_48,local_40 + local_48);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00310624 to 00310628 has its CatchHandler @ 00310629 */\n  FUN_003194d0("uninitialized __any_string");\n}" { (declaration "long local_48;" (sized_type_specifier "long" long) identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (declaration "code *local_28;" type_identifier (pointer_declarator "*local_28" * identifier) ;) (expression_statement "local_28 = (code *)0x0;" (assignment_expression "local_28 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) comment (expression_statement "FUN_00316190(*(undefined8 *)(param_2 + 0x18),&local_48);" (call_expression "FUN_00316190(*(undefined8 *)(param_2 + 0x18),&local_48)" identifier (argument_list "(*(undefined8 *)(param_2 + 0x18),&local_48)" ( (pointer_expression "*(undefined8 *)(param_2 + 0x18)" * (cast_expression "(undefined8 *)(param_2 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) , (pointer_expression "&local_48" & identifier) ))) ;) (if_statement "if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_001665c0(param_1,local_48,local_40 + local_48);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }" if (parenthesized_expression "(local_28 != (code *)0x0)" ( (binary_expression "local_28 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_1 = (long)(param_1 + 2);\n    FUN_001665c0(param_1,local_48,local_40 + local_48);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }" { (expression_statement "*param_1 = (long)(param_1 + 2);" (assignment_expression "*param_1 = (long)(param_1 + 2)" (pointer_expression "*param_1" * identifier) = (cast_expression "(long)(param_1 + 2)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (expression_statement "FUN_001665c0(param_1,local_48,local_40 + local_48);" (call_expression "FUN_001665c0(param_1,local_48,local_40 + local_48)" identifier (argument_list "(param_1,local_48,local_40 + local_48)" ( identifier , identifier , (binary_expression "local_40 + local_48" identifier + identifier) ))) ;) (if_statement "if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }" if (parenthesized_expression "(local_28 != (code *)0x0)" ( (binary_expression "local_28 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*local_28)(&local_48);\n    }" { (expression_statement "(*local_28)(&local_48);" (call_expression "(*local_28)(&local_48)" (parenthesized_expression "(*local_28)" ( (pointer_expression "*local_28" * identifier) )) (argument_list "(&local_48)" ( (pointer_expression "&local_48" & identifier) ))) ;) })) (return_statement "return param_1;" return identifier ;) })) comment comment (expression_statement "FUN_003194d0("uninitialized __any_string");" (call_expression "FUN_003194d0("uninitialized __any_string")" identifier (argument_list "("uninitialized __any_string")" ( (string_literal ""uninitialized __any_string"" " string_content ") ))) ;) })))
(translation_unit "/* std::__facet_shims::(anonymous namespace)::collate_shim<char>::do_transform(char const*, char\n   const*) const */\n\nchar * std::__facet_shims::(anonymous_namespace)::collate_shim<char>::do_transform\n                 (char *param_1,char *param_2)\n\n{\n  long local_48;\n  long local_40;\n  code *local_28;\n  \n  local_28 = (code *)0x0;\n                    /* try { // try from 003105dc to 00310603 has its CatchHandler @ 00310629 */\n  __collate_transform<char>(*(undefined8 *)(param_2 + 0x18),&local_48);\n  if (local_28 != (code *)0x0) {\n    *(char **)param_1 = param_1 + 0x10;\n    __cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n    _M_construct<char_const*>\n              ((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)param_1,local_48\n               ,local_40 + local_48);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00310624 to 00310628 has its CatchHandler @ 00310629 */\n  __throw_logic_error("uninitialized __any_string");\n}\n\n" comment (function_definition "char * std::__facet_shims::(anonymous_namespace)::collate_shim<char>::do_transform\n                 (char *param_1,char *param_2)\n\n{\n  long local_48;\n  long local_40;\n  code *local_28;\n  \n  local_28 = (code *)0x0;\n                    /* try { // try from 003105dc to 00310603 has its CatchHandler @ 00310629 */\n  __collate_transform<char>(*(undefined8 *)(param_2 + 0x18),&local_48);\n  if (local_28 != (code *)0x0) {\n    *(char **)param_1 = param_1 + 0x10;\n    __cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n    _M_construct<char_const*>\n              ((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)param_1,local_48\n               ,local_40 + local_48);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00310624 to 00310628 has its CatchHandler @ 00310629 */\n  __throw_logic_error("uninitialized __any_string");\n}" primitive_type (function_declarator "* std::__facet_shims::(anonymous_namespace)::collate_shim<char>::do_transform\n                 (char *param_1,char *param_2)" (pointer_declarator "* std::__facet_shims::(anonymous_namespace" * (ERROR "std::__facet_shims::(" identifier : : identifier : : () identifier) (ERROR ")::collate_shim<char>::do_transform" ) : : identifier < primitive_type > : : identifier) (parameter_list "(char *param_1,char *param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  long local_48;\n  long local_40;\n  code *local_28;\n  \n  local_28 = (code *)0x0;\n                    /* try { // try from 003105dc to 00310603 has its CatchHandler @ 00310629 */\n  __collate_transform<char>(*(undefined8 *)(param_2 + 0x18),&local_48);\n  if (local_28 != (code *)0x0) {\n    *(char **)param_1 = param_1 + 0x10;\n    __cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n    _M_construct<char_const*>\n              ((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)param_1,local_48\n               ,local_40 + local_48);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00310624 to 00310628 has its CatchHandler @ 00310629 */\n  __throw_logic_error("uninitialized __any_string");\n}" { (declaration "long local_48;" (sized_type_specifier "long" long) identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (declaration "code *local_28;" type_identifier (pointer_declarator "*local_28" * identifier) ;) (expression_statement "local_28 = (code *)0x0;" (assignment_expression "local_28 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) comment (expression_statement "__collate_transform<char>(*(undefined8 *)(param_2 + 0x18),&local_48);" (binary_expression "__collate_transform<char>(*(undefined8 *)(param_2 + 0x18),&local_48)" (binary_expression "__collate_transform<char" identifier < identifier) > (parenthesized_expression "(*(undefined8 *)(param_2 + 0x18),&local_48)" ( (comma_expression "*(undefined8 *)(param_2 + 0x18),&local_48" (pointer_expression "*(undefined8 *)(param_2 + 0x18)" * (cast_expression "(undefined8 *)(param_2 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) , (pointer_expression "&local_48" & identifier)) ))) ;) (if_statement "if (local_28 != (code *)0x0) {\n    *(char **)param_1 = param_1 + 0x10;\n    __cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n    _M_construct<char_const*>\n              ((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)param_1,local_48\n               ,local_40 + local_48);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }" if (parenthesized_expression "(local_28 != (code *)0x0)" ( (binary_expression "local_28 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *(char **)param_1 = param_1 + 0x10;\n    __cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n    _M_construct<char_const*>\n              ((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)param_1,local_48\n               ,local_40 + local_48);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }" { (expression_statement "*(char **)param_1 = param_1 + 0x10;" (assignment_expression "*(char **)param_1 = param_1 + 0x10" (pointer_expression "*(char **)param_1" * (cast_expression "(char **)param_1" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (binary_expression "param_1 + 0x10" identifier + number_literal)) ;) (ERROR "__cxx11::basic_string<char,_std::char_traits<char>,_std::" (comma_expression "__cxx11::basic_string<char,_std::char_traits<char>,_std" identifier (ERROR "::basic_string<char,_std::char_traits<char>" : : (comma_expression "basic_string<char,_std" (binary_expression "basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char" identifier < identifier) >) , identifier) : :) (expression_statement "allocator<char>_>::\n    _M_construct<char_const*>\n              ((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)param_1,local_48\n               ,local_40 + local_48);" (binary_expression "allocator<char>_>::\n    _M_construct<char_const*>\n              ((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)param_1,local_48\n               ,local_40 + local_48)" (binary_expression "allocator<char>_>::\n    _M_construct<char_const" (binary_expression "allocator<char>_>::\n    _M_construct" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (ERROR "::" : :) identifier) < identifier) (ERROR "*" *) > (parenthesized_expression "((basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)param_1,local_48\n               ,local_40 + local_48)" ( (parenthesized_expression "(basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *)param_1,local_48\n               ,local_40 + local_48)" ( (ERROR "basic_string<char,_std::char_traits<char>,_std::" (comma_expression "basic_string<char,_std" (binary_expression "basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char>,_std" (binary_expression "char_traits<char" identifier < identifier) > (ERROR "," ,) identifier) : :) (comma_expression "allocator<char>_> *)param_1,local_48\n               ,local_40 + local_48" (binary_expression "allocator<char>_> *)param_1" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (pointer_expression "*)param_1" * (ERROR ")" )) identifier)) , (comma_expression "local_48\n               ,local_40 + local_48" identifier , (binary_expression "local_40 + local_48" identifier + identifier))) )) ))) ;) (if_statement "if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }" if (parenthesized_expression "(local_28 != (code *)0x0)" ( (binary_expression "local_28 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*local_28)(&local_48);\n    }" { (expression_statement "(*local_28)(&local_48);" (call_expression "(*local_28)(&local_48)" (parenthesized_expression "(*local_28)" ( (pointer_expression "*local_28" * identifier) )) (argument_list "(&local_48)" ( (pointer_expression "&local_48" & identifier) ))) ;) })) (return_statement "return param_1;" return identifier ;) })) comment comment (expression_statement "__throw_logic_error("uninitialized __any_string");" (call_expression "__throw_logic_error("uninitialized __any_string")" identifier (argument_list "("uninitialized __any_string")" ( (string_literal ""uninitialized __any_string"" " string_content ") ))) ;) })))
(translation_unit "long * FUN_003105c0(long *param_1,long param_2)\n\n{\n  long local_48;\n  long local_40;\n  code *local_28;\n  \n  local_28 = (code *)0x0;\n                    \n  FUN_00316190(*(undefined8 *)(param_2 + 0x18),&local_48);\n  if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_001665c0(param_1,local_48,local_40 + local_48);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }\n                    \n                    \n  FUN_003194d0("uninitialized __any_string");\n}\n\n" (function_definition "long * FUN_003105c0(long *param_1,long param_2)\n\n{\n  long local_48;\n  long local_40;\n  code *local_28;\n  \n  local_28 = (code *)0x0;\n                    \n  FUN_00316190(*(undefined8 *)(param_2 + 0x18),&local_48);\n  if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_001665c0(param_1,local_48,local_40 + local_48);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }\n                    \n                    \n  FUN_003194d0("uninitialized __any_string");\n}" (sized_type_specifier "long" long) (pointer_declarator "* FUN_003105c0(long *param_1,long param_2)" * (function_declarator "FUN_003105c0(long *param_1,long param_2)" identifier (parameter_list "(long *param_1,long param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) )))) (compound_statement "{\n  long local_48;\n  long local_40;\n  code *local_28;\n  \n  local_28 = (code *)0x0;\n                    \n  FUN_00316190(*(undefined8 *)(param_2 + 0x18),&local_48);\n  if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_001665c0(param_1,local_48,local_40 + local_48);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }\n                    \n                    \n  FUN_003194d0("uninitialized __any_string");\n}" { (declaration "long local_48;" (sized_type_specifier "long" long) identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (declaration "code *local_28;" type_identifier (pointer_declarator "*local_28" * identifier) ;) (expression_statement "local_28 = (code *)0x0;" (assignment_expression "local_28 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "FUN_00316190(*(undefined8 *)(param_2 + 0x18),&local_48);" (call_expression "FUN_00316190(*(undefined8 *)(param_2 + 0x18),&local_48)" identifier (argument_list "(*(undefined8 *)(param_2 + 0x18),&local_48)" ( (pointer_expression "*(undefined8 *)(param_2 + 0x18)" * (cast_expression "(undefined8 *)(param_2 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) , (pointer_expression "&local_48" & identifier) ))) ;) (if_statement "if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_001665c0(param_1,local_48,local_40 + local_48);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }" if (parenthesized_expression "(local_28 != (code *)0x0)" ( (binary_expression "local_28 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_1 = (long)(param_1 + 2);\n    FUN_001665c0(param_1,local_48,local_40 + local_48);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }" { (expression_statement "*param_1 = (long)(param_1 + 2);" (assignment_expression "*param_1 = (long)(param_1 + 2)" (pointer_expression "*param_1" * identifier) = (cast_expression "(long)(param_1 + 2)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (expression_statement "FUN_001665c0(param_1,local_48,local_40 + local_48);" (call_expression "FUN_001665c0(param_1,local_48,local_40 + local_48)" identifier (argument_list "(param_1,local_48,local_40 + local_48)" ( identifier , identifier , (binary_expression "local_40 + local_48" identifier + identifier) ))) ;) (if_statement "if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }" if (parenthesized_expression "(local_28 != (code *)0x0)" ( (binary_expression "local_28 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*local_28)(&local_48);\n    }" { (expression_statement "(*local_28)(&local_48);" (call_expression "(*local_28)(&local_48)" (parenthesized_expression "(*local_28)" ( (pointer_expression "*local_28" * identifier) )) (argument_list "(&local_48)" ( (pointer_expression "&local_48" & identifier) ))) ;) })) (return_statement "return param_1;" return identifier ;) })) (expression_statement "FUN_003194d0("uninitialized __any_string");" (call_expression "FUN_003194d0("uninitialized __any_string")" identifier (argument_list "("uninitialized __any_string")" ( (string_literal ""uninitialized __any_string"" " string_content ") ))) ;) })))
(translation_unit (function_definition (sized_type_specifier long) (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) )))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression & 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) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT + IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (pointer_expression & IDENT) ))) ;) })) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })))
(function_definition "long * FUN_003105c0(long *param_1,long param_2)\n\n{\n  long local_48;\n  long local_40;\n  code *local_28;\n  \n  local_28 = (code *)0x0;\n                    \n  FUN_00316190(*(undefined8 *)(param_2 + 0x18),&local_48);\n  if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_001665c0(param_1,local_48,local_40 + local_48);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }\n                    \n                    \n  FUN_003194d0("uninitialized __any_string");\n}" (sized_type_specifier "long" (long "long")) (pointer_declarator "* FUN_003105c0(long *param_1,long param_2)" (* "*") (function_declarator "FUN_003105c0(long *param_1,long param_2)" (identifier "FUN_003105c0") (parameter_list "(long *param_1,long param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) () ")")))) (compound_statement "{\n  long local_48;\n  long local_40;\n  code *local_28;\n  \n  local_28 = (code *)0x0;\n                    \n  FUN_00316190(*(undefined8 *)(param_2 + 0x18),&local_48);\n  if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_001665c0(param_1,local_48,local_40 + local_48);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }\n                    \n                    \n  FUN_003194d0("uninitialized __any_string");\n}" ({ "{") (declaration "long local_48;" (sized_type_specifier "long" (long "long")) (identifier "local_48") (; ";")) (declaration "long local_40;" (sized_type_specifier "long" (long "long")) (identifier "local_40") (; ";")) (declaration "code *local_28;" (type_identifier "code") (pointer_declarator "*local_28" (* "*") (identifier "local_28")) (; ";")) (expression_statement "local_28 = (code *)0x0;" (assignment_expression "local_28 = (code *)0x0" (identifier "local_28") (= "=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "FUN_00316190(*(undefined8 *)(param_2 + 0x18),&local_48);" (call_expression "FUN_00316190(*(undefined8 *)(param_2 + 0x18),&local_48)" (identifier "FUN_00316190") (argument_list "(*(undefined8 *)(param_2 + 0x18),&local_48)" (( "(") (pointer_expression "*(undefined8 *)(param_2 + 0x18)" (* "*") (cast_expression "(undefined8 *)(param_2 + 0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (pointer_expression "&local_48" (& "&") (identifier "local_48")) () ")"))) (; ";")) (if_statement "if (local_28 != (code *)0x0) {\n    *param_1 = (long)(param_1 + 2);\n    FUN_001665c0(param_1,local_48,local_40 + local_48);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }" (if "if") (parenthesized_expression "(local_28 != (code *)0x0)" (( "(") (binary_expression "local_28 != (code *)0x0" (identifier "local_28") (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *param_1 = (long)(param_1 + 2);\n    FUN_001665c0(param_1,local_48,local_40 + local_48);\n    if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }\n    return param_1;\n  }" ({ "{") (expression_statement "*param_1 = (long)(param_1 + 2);" (assignment_expression "*param_1 = (long)(param_1 + 2)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(long)(param_1 + 2)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (; ";")) (expression_statement "FUN_001665c0(param_1,local_48,local_40 + local_48);" (call_expression "FUN_001665c0(param_1,local_48,local_40 + local_48)" (identifier "FUN_001665c0") (argument_list "(param_1,local_48,local_40 + local_48)" (( "(") (identifier "param_1") (, ",") (identifier "local_48") (, ",") (binary_expression "local_40 + local_48" (identifier "local_40") (+ "+") (identifier "local_48")) () ")"))) (; ";")) (if_statement "if (local_28 != (code *)0x0) {\n      (*local_28)(&local_48);\n    }" (if "if") (parenthesized_expression "(local_28 != (code *)0x0)" (( "(") (binary_expression "local_28 != (code *)0x0" (identifier "local_28") (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      (*local_28)(&local_48);\n    }" ({ "{") (expression_statement "(*local_28)(&local_48);" (call_expression "(*local_28)(&local_48)" (parenthesized_expression "(*local_28)" (( "(") (pointer_expression "*local_28" (* "*") (identifier "local_28")) () ")")) (argument_list "(&local_48)" (( "(") (pointer_expression "&local_48" (& "&") (identifier "local_48")) () ")"))) (; ";")) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "FUN_003194d0("uninitialized __any_string");" (call_expression "FUN_003194d0("uninitialized __any_string")" (identifier "FUN_003194d0") (argument_list "("uninitialized __any_string")" (( "(") (string_literal ""uninitialized __any_string"" (" """) (string_content "uninitialized __any_string") (" """)) () ")"))) (; ";")) (} "}")))

/* std::__facet_shims::(anonymous namespace)::collate_shim<char>::do_transform(char const*, char
   const*) const */

char * std::__facet_shims::(anonymous_namespace)::collate_shim<char>::do_transform
                 (char *var_5,char *var_3)

{
  long var_11;
  long var_10;
  type_1 *var_4;
  
  var_4 = (type_1 *)0x0;
                    /* try { // try from 003105dc to 00310603 has its CatchHandler @ 00310629 */
  var_1<var_2>(*(type_2 *)(var_3 + 0x18),&var_11);
  if (var_4 != (type_1 *)0x0) {
    *(char **)var_5 = var_5 + 0x10;
    __cxx11::basic_string<var_2,_std::char_traits<var_2>,_std::var_6<var_2>var_7>::
    var_8<var_9*>
              ((basic_string<var_2,_std::char_traits<var_2>,_std::var_6<var_2>var_7> *)var_5,var_11
               ,var_10 + var_11);
    if (var_4 != (type_1 *)0x0) {
      (*var_4)(&var_11);
    }
    return var_5;
  }
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 00310624 to 00310628 has its CatchHandler @ 00310629 */
  var_12("uninitialized __any_string");
}


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

long * MASKED(long *param_1,long param_2)

{
  long local_48;
  long local_40;
  code *local_28;
  
  local_28 = (code *)0x0;
                    /* try { // try from 003105dc to 00310603 has its CatchHandler @ 00310629 */
  FUN_00316190(*(undefined8 *)(param_2 + 0x18),&local_48);
  if (local_28 != (code *)0x0) {
    *param_1 = (long)(param_1 + 2);
    FUN_001665c0(param_1,local_48,local_40 + local_48);
    if (local_28 != (code *)0x0) {
      (*local_28)(&local_48);
    }
    return param_1;
  }
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 00310624 to 00310628 has its CatchHandler @ 00310629 */
  FUN_003194d0("uninitialized __any_string");
}

