
/* std::ios::_M_cache_locale(std::locale const&) */

void __thiscall std::ios::_M_cache_locale(ios *this,locale *param_1)

{
  bool bVar1;
  ctype *pcVar2;
  num_put *pnVar3;
  num_get *pnVar4;
  
  bVar1 = has_facet<std::ctype<char>>(param_1);
  if (bVar1) {
    pcVar2 = use_facet<std::ctype<char>>(param_1);
    *(ctype **)(this + 0xf0) = pcVar2;
  }
  else {
    *(undefined8 *)(this + 0xf0) = 0;
  }
  bVar1 = has_facet<std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>>
                    (param_1);
  if (bVar1) {
    pnVar3 = use_facet<std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>>
                       (param_1);
    *(num_put **)(this + 0xf8) = pnVar3;
  }
  else {
    *(undefined8 *)(this + 0xf8) = 0;
  }
  bVar1 = has_facet<std::num_get<char,std::istreambuf_iterator<char,std::char_traits<char>>>>
                    (param_1);
  if (bVar1) {
    pnVar4 = use_facet<std::num_get<char,std::istreambuf_iterator<char,std::char_traits<char>>>>
                       (param_1);
    *(num_get **)(this + 0x100) = pnVar4;
  }
  else {
    *(undefined8 *)(this + 0x100) = 0;
  }
  return;
}



void FUN_00300bc0(long param_1,undefined8 param_2)

{
  undefined8 uVar1;
  char cVar2;
  
  cVar2 = FUN_002ee110(param_2);
  if (cVar2 == '\0') {
    *(undefined8 *)(param_1 + 0xf0) = 0;
  }
  else {
    uVar1 = FUN_002ec670(param_2);
    *(undefined8 *)(param_1 + 0xf0) = uVar1;
  }
  cVar2 = FUN_002ee250(param_2);
  if (cVar2 == '\0') {
    *(undefined8 *)(param_1 + 0xf8) = 0;
  }
  else {
    uVar1 = FUN_002ed200(param_2);
    *(undefined8 *)(param_1 + 0xf8) = uVar1;
  }
  cVar2 = FUN_002ee2a0(param_2);
  if (cVar2 == '\0') {
    *(undefined8 *)(param_1 + 0x100) = 0;
  }
  else {
    uVar1 = FUN_002ed250(param_2);
    *(undefined8 *)(param_1 + 0x100) = uVar1;
  }
  return;
}


PUSH RBP
MOV RBP,RDI
MOV RDI,RSI
PUSH RBX
MOV RBX,RSI
SUB RSP,0x8
CALL 0x002ee110
TEST AL,AL
JZ 0x00300c28
MOV RDI,RBX
CALL 0x002ec670
MOV qword ptr [RBP + 0xf0],RAX
MOV RDI,RBX
CALL 0x002ee250
TEST AL,AL
JZ 0x00300c38
MOV RDI,RBX
CALL 0x002ed200
MOV qword ptr [RBP + 0xf8],RAX
MOV RDI,RBX
CALL 0x002ee2a0
TEST AL,AL
JZ 0x00300c48
MOV RDI,RBX
CALL 0x002ed250
MOV qword ptr [RBP + 0x100],RAX
ADD RSP,0x8
POP RBX
POP RBP
RET
MOV qword ptr [RBP + 0xf0],0x0
JMP 0x00300be7
MOV qword ptr [RBP + 0xf8],0x0
JMP 0x00300c02
MOV qword ptr [RBP + 0x100],0x0
JMP 0x00300c1d
(translation_unit "void FUN_00300bc0(long param_1,undefined8 param_2)\n\n{\n  undefined8 uVar1;\n  char cVar2;\n  \n  cVar2 = FUN_002ee110(param_2);\n  if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0xf0) = 0;\n  }\n  else {\n    uVar1 = FUN_002ec670(param_2);\n    *(undefined8 *)(param_1 + 0xf0) = uVar1;\n  }\n  cVar2 = FUN_002ee250(param_2);\n  if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0xf8) = 0;\n  }\n  else {\n    uVar1 = FUN_002ed200(param_2);\n    *(undefined8 *)(param_1 + 0xf8) = uVar1;\n  }\n  cVar2 = FUN_002ee2a0(param_2);\n  if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0x100) = 0;\n  }\n  else {\n    uVar1 = FUN_002ed250(param_2);\n    *(undefined8 *)(param_1 + 0x100) = uVar1;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00300bc0(long param_1,undefined8 param_2)\n\n{\n  undefined8 uVar1;\n  char cVar2;\n  \n  cVar2 = FUN_002ee110(param_2);\n  if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0xf0) = 0;\n  }\n  else {\n    uVar1 = FUN_002ec670(param_2);\n    *(undefined8 *)(param_1 + 0xf0) = uVar1;\n  }\n  cVar2 = FUN_002ee250(param_2);\n  if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0xf8) = 0;\n  }\n  else {\n    uVar1 = FUN_002ed200(param_2);\n    *(undefined8 *)(param_1 + 0xf8) = uVar1;\n  }\n  cVar2 = FUN_002ee2a0(param_2);\n  if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0x100) = 0;\n  }\n  else {\n    uVar1 = FUN_002ed250(param_2);\n    *(undefined8 *)(param_1 + 0x100) = uVar1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00300bc0(long param_1,undefined8 param_2)" identifier (parameter_list "(long param_1,undefined8 param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  char cVar2;\n  \n  cVar2 = FUN_002ee110(param_2);\n  if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0xf0) = 0;\n  }\n  else {\n    uVar1 = FUN_002ec670(param_2);\n    *(undefined8 *)(param_1 + 0xf0) = uVar1;\n  }\n  cVar2 = FUN_002ee250(param_2);\n  if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0xf8) = 0;\n  }\n  else {\n    uVar1 = FUN_002ed200(param_2);\n    *(undefined8 *)(param_1 + 0xf8) = uVar1;\n  }\n  cVar2 = FUN_002ee2a0(param_2);\n  if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0x100) = 0;\n  }\n  else {\n    uVar1 = FUN_002ed250(param_2);\n    *(undefined8 *)(param_1 + 0x100) = uVar1;\n  }\n  return;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (expression_statement "cVar2 = FUN_002ee110(param_2);" (assignment_expression "cVar2 = FUN_002ee110(param_2)" identifier = (call_expression "FUN_002ee110(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0xf0) = 0;\n  }\n  else {\n    uVar1 = FUN_002ec670(param_2);\n    *(undefined8 *)(param_1 + 0xf0) = uVar1;\n  }" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *(undefined8 *)(param_1 + 0xf0) = 0;\n  }" { (expression_statement "*(undefined8 *)(param_1 + 0xf0) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0xf0) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0xf0)" * (cast_expression "(undefined8 *)(param_1 + 0xf0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf0)" ( (binary_expression "param_1 + 0xf0" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    uVar1 = FUN_002ec670(param_2);\n    *(undefined8 *)(param_1 + 0xf0) = uVar1;\n  }" else (compound_statement "{\n    uVar1 = FUN_002ec670(param_2);\n    *(undefined8 *)(param_1 + 0xf0) = uVar1;\n  }" { (expression_statement "uVar1 = FUN_002ec670(param_2);" (assignment_expression "uVar1 = FUN_002ec670(param_2)" identifier = (call_expression "FUN_002ec670(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(undefined8 *)(param_1 + 0xf0) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0xf0) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0xf0)" * (cast_expression "(undefined8 *)(param_1 + 0xf0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf0)" ( (binary_expression "param_1 + 0xf0" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "cVar2 = FUN_002ee250(param_2);" (assignment_expression "cVar2 = FUN_002ee250(param_2)" identifier = (call_expression "FUN_002ee250(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0xf8) = 0;\n  }\n  else {\n    uVar1 = FUN_002ed200(param_2);\n    *(undefined8 *)(param_1 + 0xf8) = uVar1;\n  }" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *(undefined8 *)(param_1 + 0xf8) = 0;\n  }" { (expression_statement "*(undefined8 *)(param_1 + 0xf8) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0xf8) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0xf8)" * (cast_expression "(undefined8 *)(param_1 + 0xf8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf8)" ( (binary_expression "param_1 + 0xf8" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    uVar1 = FUN_002ed200(param_2);\n    *(undefined8 *)(param_1 + 0xf8) = uVar1;\n  }" else (compound_statement "{\n    uVar1 = FUN_002ed200(param_2);\n    *(undefined8 *)(param_1 + 0xf8) = uVar1;\n  }" { (expression_statement "uVar1 = FUN_002ed200(param_2);" (assignment_expression "uVar1 = FUN_002ed200(param_2)" identifier = (call_expression "FUN_002ed200(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(undefined8 *)(param_1 + 0xf8) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0xf8) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0xf8)" * (cast_expression "(undefined8 *)(param_1 + 0xf8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf8)" ( (binary_expression "param_1 + 0xf8" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "cVar2 = FUN_002ee2a0(param_2);" (assignment_expression "cVar2 = FUN_002ee2a0(param_2)" identifier = (call_expression "FUN_002ee2a0(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0x100) = 0;\n  }\n  else {\n    uVar1 = FUN_002ed250(param_2);\n    *(undefined8 *)(param_1 + 0x100) = uVar1;\n  }" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *(undefined8 *)(param_1 + 0x100) = 0;\n  }" { (expression_statement "*(undefined8 *)(param_1 + 0x100) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x100) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x100)" * (cast_expression "(undefined8 *)(param_1 + 0x100)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100)" ( (binary_expression "param_1 + 0x100" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    uVar1 = FUN_002ed250(param_2);\n    *(undefined8 *)(param_1 + 0x100) = uVar1;\n  }" else (compound_statement "{\n    uVar1 = FUN_002ed250(param_2);\n    *(undefined8 *)(param_1 + 0x100) = uVar1;\n  }" { (expression_statement "uVar1 = FUN_002ed250(param_2);" (assignment_expression "uVar1 = FUN_002ed250(param_2)" identifier = (call_expression "FUN_002ed250(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(undefined8 *)(param_1 + 0x100) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0x100) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0x100)" * (cast_expression "(undefined8 *)(param_1 + 0x100)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100)" ( (binary_expression "param_1 + 0x100" identifier + number_literal) )))) = identifier) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "/* std::ios::_M_cache_locale(std::locale const&) */\n\nvoid __thiscall std::ios::_M_cache_locale(ios *this,locale *param_1)\n\n{\n  bool bVar1;\n  ctype *pcVar2;\n  num_put *pnVar3;\n  num_get *pnVar4;\n  \n  bVar1 = has_facet<std::ctype<char>>(param_1);\n  if (bVar1) {\n    pcVar2 = use_facet<std::ctype<char>>(param_1);\n    *(ctype **)(this + 0xf0) = pcVar2;\n  }\n  else {\n    *(undefined8 *)(this + 0xf0) = 0;\n  }\n  bVar1 = has_facet<std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>>\n                    (param_1);\n  if (bVar1) {\n    pnVar3 = use_facet<std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>>\n                       (param_1);\n    *(num_put **)(this + 0xf8) = pnVar3;\n  }\n  else {\n    *(undefined8 *)(this + 0xf8) = 0;\n  }\n  bVar1 = has_facet<std::num_get<char,std::istreambuf_iterator<char,std::char_traits<char>>>>\n                    (param_1);\n  if (bVar1) {\n    pnVar4 = use_facet<std::num_get<char,std::istreambuf_iterator<char,std::char_traits<char>>>>\n                       (param_1);\n    *(num_get **)(this + 0x100) = pnVar4;\n  }\n  else {\n    *(undefined8 *)(this + 0x100) = 0;\n  }\n  return;\n}\n\n" comment (function_definition "void __thiscall std::ios::_M_cache_locale(ios *this,locale *param_1)\n\n{\n  bool bVar1;\n  ctype *pcVar2;\n  num_put *pnVar3;\n  num_get *pnVar4;\n  \n  bVar1 = has_facet<std::ctype<char>>(param_1);\n  if (bVar1) {\n    pcVar2 = use_facet<std::ctype<char>>(param_1);\n    *(ctype **)(this + 0xf0) = pcVar2;\n  }\n  else {\n    *(undefined8 *)(this + 0xf0) = 0;\n  }\n  bVar1 = has_facet<std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>>\n                    (param_1);\n  if (bVar1) {\n    pnVar3 = use_facet<std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>>\n                       (param_1);\n    *(num_put **)(this + 0xf8) = pnVar3;\n  }\n  else {\n    *(undefined8 *)(this + 0xf8) = 0;\n  }\n  bVar1 = has_facet<std::num_get<char,std::istreambuf_iterator<char,std::char_traits<char>>>>\n                    (param_1);\n  if (bVar1) {\n    pnVar4 = use_facet<std::num_get<char,std::istreambuf_iterator<char,std::char_traits<char>>>>\n                       (param_1);\n    *(num_get **)(this + 0x100) = pnVar4;\n  }\n  else {\n    *(undefined8 *)(this + 0x100) = 0;\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ios::" identifier : : identifier : :) (function_declarator "_M_cache_locale(ios *this,locale *param_1)" identifier (parameter_list "(ios *this,locale *param_1)" ( (parameter_declaration "ios *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "locale *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  bool bVar1;\n  ctype *pcVar2;\n  num_put *pnVar3;\n  num_get *pnVar4;\n  \n  bVar1 = has_facet<std::ctype<char>>(param_1);\n  if (bVar1) {\n    pcVar2 = use_facet<std::ctype<char>>(param_1);\n    *(ctype **)(this + 0xf0) = pcVar2;\n  }\n  else {\n    *(undefined8 *)(this + 0xf0) = 0;\n  }\n  bVar1 = has_facet<std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>>\n                    (param_1);\n  if (bVar1) {\n    pnVar3 = use_facet<std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>>\n                       (param_1);\n    *(num_put **)(this + 0xf8) = pnVar3;\n  }\n  else {\n    *(undefined8 *)(this + 0xf8) = 0;\n  }\n  bVar1 = has_facet<std::num_get<char,std::istreambuf_iterator<char,std::char_traits<char>>>>\n                    (param_1);\n  if (bVar1) {\n    pnVar4 = use_facet<std::num_get<char,std::istreambuf_iterator<char,std::char_traits<char>>>>\n                       (param_1);\n    *(num_get **)(this + 0x100) = pnVar4;\n  }\n  else {\n    *(undefined8 *)(this + 0x100) = 0;\n  }\n  return;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "ctype *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (declaration "num_put *pnVar3;" type_identifier (pointer_declarator "*pnVar3" * identifier) ;) (declaration "num_get *pnVar4;" type_identifier (pointer_declarator "*pnVar4" * identifier) ;) (expression_statement "bVar1 = has_facet<std::ctype<char>>(param_1);" (binary_expression "bVar1 = has_facet<std::ctype<char>>(param_1)" (assignment_expression "bVar1 = has_facet<std" identifier = (binary_expression "has_facet<std" identifier < identifier)) (ERROR "::ctype" : : identifier) < (binary_expression "char>>(param_1)" identifier >> (parenthesized_expression "(param_1)" ( identifier )))) ;) (if_statement "if (bVar1) {\n    pcVar2 = use_facet<std::ctype<char>>(param_1);\n    *(ctype **)(this + 0xf0) = pcVar2;\n  }\n  else {\n    *(undefined8 *)(this + 0xf0) = 0;\n  }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n    pcVar2 = use_facet<std::ctype<char>>(param_1);\n    *(ctype **)(this + 0xf0) = pcVar2;\n  }" { (expression_statement "pcVar2 = use_facet<std::ctype<char>>(param_1);" (binary_expression "pcVar2 = use_facet<std::ctype<char>>(param_1)" (assignment_expression "pcVar2 = use_facet<std" identifier = (binary_expression "use_facet<std" identifier < identifier)) (ERROR "::ctype" : : identifier) < (binary_expression "char>>(param_1)" identifier >> (parenthesized_expression "(param_1)" ( identifier )))) ;) (expression_statement "*(ctype **)(this + 0xf0) = pcVar2;" (assignment_expression "*(ctype **)(this + 0xf0) = pcVar2" (pointer_expression "*(ctype **)(this + 0xf0)" * (cast_expression "(ctype **)(this + 0xf0)" ( (type_descriptor "ctype **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0xf0)" ( (binary_expression "this + 0xf0" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n    *(undefined8 *)(this + 0xf0) = 0;\n  }" else (compound_statement "{\n    *(undefined8 *)(this + 0xf0) = 0;\n  }" { (expression_statement "*(undefined8 *)(this + 0xf0) = 0;" (assignment_expression "*(undefined8 *)(this + 0xf0) = 0" (pointer_expression "*(undefined8 *)(this + 0xf0)" * (cast_expression "(undefined8 *)(this + 0xf0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xf0)" ( (binary_expression "this + 0xf0" identifier + number_literal) )))) = number_literal) ;) }))) (ERROR "bVar1 = has_facet<std::num_put<char,std::ostreambuf_iterator<char,std::" (comma_expression "bVar1 = has_facet<std::num_put<char,std" (binary_expression "bVar1 = has_facet<std::num_put<char" (assignment_expression "bVar1 = has_facet<std" identifier = (binary_expression "has_facet<std" identifier < identifier)) (ERROR "::num_put" : : identifier) < identifier) , identifier) : : (comma_expression "ostreambuf_iterator<char,std" (binary_expression "ostreambuf_iterator<char" identifier < identifier) , identifier) : :) (expression_statement "char_traits<char>>>>\n                    (param_1);" (binary_expression "char_traits<char>>>>\n                    (param_1)" identifier < (binary_expression "char>>>>\n                    (param_1)" identifier >> (ERROR ">>" >>) (parenthesized_expression "(param_1)" ( identifier )))) ;) (if_statement "if (bVar1) {\n    pnVar3 = use_facet<std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>>\n                       (param_1);\n    *(num_put **)(this + 0xf8) = pnVar3;\n  }\n  else {\n    *(undefined8 *)(this + 0xf8) = 0;\n  }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n    pnVar3 = use_facet<std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>>\n                       (param_1);\n    *(num_put **)(this + 0xf8) = pnVar3;\n  }" { (ERROR "pnVar3 = use_facet<std::num_put<char,std::ostreambuf_iterator<char,std::" (comma_expression "pnVar3 = use_facet<std::num_put<char,std" (binary_expression "pnVar3 = use_facet<std::num_put<char" (assignment_expression "pnVar3 = use_facet<std" identifier = (binary_expression "use_facet<std" identifier < identifier)) (ERROR "::num_put" : : identifier) < identifier) , identifier) : : (comma_expression "ostreambuf_iterator<char,std" (binary_expression "ostreambuf_iterator<char" identifier < identifier) , identifier) : :) (expression_statement "char_traits<char>>>>\n                       (param_1);" (binary_expression "char_traits<char>>>>\n                       (param_1)" identifier < (binary_expression "char>>>>\n                       (param_1)" identifier >> (ERROR ">>" >>) (parenthesized_expression "(param_1)" ( identifier )))) ;) (expression_statement "*(num_put **)(this + 0xf8) = pnVar3;" (assignment_expression "*(num_put **)(this + 0xf8) = pnVar3" (pointer_expression "*(num_put **)(this + 0xf8)" * (cast_expression "(num_put **)(this + 0xf8)" ( (type_descriptor "num_put **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0xf8)" ( (binary_expression "this + 0xf8" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n    *(undefined8 *)(this + 0xf8) = 0;\n  }" else (compound_statement "{\n    *(undefined8 *)(this + 0xf8) = 0;\n  }" { (expression_statement "*(undefined8 *)(this + 0xf8) = 0;" (assignment_expression "*(undefined8 *)(this + 0xf8) = 0" (pointer_expression "*(undefined8 *)(this + 0xf8)" * (cast_expression "(undefined8 *)(this + 0xf8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xf8)" ( (binary_expression "this + 0xf8" identifier + number_literal) )))) = number_literal) ;) }))) (ERROR "bVar1 = has_facet<std::num_get<char,std::istreambuf_iterator<char,std::" (comma_expression "bVar1 = has_facet<std::num_get<char,std" (binary_expression "bVar1 = has_facet<std::num_get<char" (assignment_expression "bVar1 = has_facet<std" identifier = (binary_expression "has_facet<std" identifier < identifier)) (ERROR "::num_get" : : identifier) < identifier) , identifier) : : (comma_expression "istreambuf_iterator<char,std" (binary_expression "istreambuf_iterator<char" identifier < identifier) , identifier) : :) (expression_statement "char_traits<char>>>>\n                    (param_1);" (binary_expression "char_traits<char>>>>\n                    (param_1)" identifier < (binary_expression "char>>>>\n                    (param_1)" identifier >> (ERROR ">>" >>) (parenthesized_expression "(param_1)" ( identifier )))) ;) (if_statement "if (bVar1) {\n    pnVar4 = use_facet<std::num_get<char,std::istreambuf_iterator<char,std::char_traits<char>>>>\n                       (param_1);\n    *(num_get **)(this + 0x100) = pnVar4;\n  }\n  else {\n    *(undefined8 *)(this + 0x100) = 0;\n  }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n    pnVar4 = use_facet<std::num_get<char,std::istreambuf_iterator<char,std::char_traits<char>>>>\n                       (param_1);\n    *(num_get **)(this + 0x100) = pnVar4;\n  }" { (ERROR "pnVar4 = use_facet<std::num_get<char,std::istreambuf_iterator<char,std::" (comma_expression "pnVar4 = use_facet<std::num_get<char,std" (binary_expression "pnVar4 = use_facet<std::num_get<char" (assignment_expression "pnVar4 = use_facet<std" identifier = (binary_expression "use_facet<std" identifier < identifier)) (ERROR "::num_get" : : identifier) < identifier) , identifier) : : (comma_expression "istreambuf_iterator<char,std" (binary_expression "istreambuf_iterator<char" identifier < identifier) , identifier) : :) (expression_statement "char_traits<char>>>>\n                       (param_1);" (binary_expression "char_traits<char>>>>\n                       (param_1)" identifier < (binary_expression "char>>>>\n                       (param_1)" identifier >> (ERROR ">>" >>) (parenthesized_expression "(param_1)" ( identifier )))) ;) (expression_statement "*(num_get **)(this + 0x100) = pnVar4;" (assignment_expression "*(num_get **)(this + 0x100) = pnVar4" (pointer_expression "*(num_get **)(this + 0x100)" * (cast_expression "(num_get **)(this + 0x100)" ( (type_descriptor "num_get **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x100)" ( (binary_expression "this + 0x100" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n    *(undefined8 *)(this + 0x100) = 0;\n  }" else (compound_statement "{\n    *(undefined8 *)(this + 0x100) = 0;\n  }" { (expression_statement "*(undefined8 *)(this + 0x100) = 0;" (assignment_expression "*(undefined8 *)(this + 0x100) = 0" (pointer_expression "*(undefined8 *)(this + 0x100)" * (cast_expression "(undefined8 *)(this + 0x100)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x100)" ( (binary_expression "this + 0x100" identifier + number_literal) )))) = number_literal) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00300bc0(long param_1,undefined8 param_2)\n\n{\n  undefined8 uVar1;\n  char cVar2;\n  \n  cVar2 = FUN_002ee110(param_2);\n  if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0xf0) = 0;\n  }\n  else {\n    uVar1 = FUN_002ec670(param_2);\n    *(undefined8 *)(param_1 + 0xf0) = uVar1;\n  }\n  cVar2 = FUN_002ee250(param_2);\n  if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0xf8) = 0;\n  }\n  else {\n    uVar1 = FUN_002ed200(param_2);\n    *(undefined8 *)(param_1 + 0xf8) = uVar1;\n  }\n  cVar2 = FUN_002ee2a0(param_2);\n  if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0x100) = 0;\n  }\n  else {\n    uVar1 = FUN_002ed250(param_2);\n    *(undefined8 *)(param_1 + 0x100) = uVar1;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00300bc0(long param_1,undefined8 param_2)\n\n{\n  undefined8 uVar1;\n  char cVar2;\n  \n  cVar2 = FUN_002ee110(param_2);\n  if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0xf0) = 0;\n  }\n  else {\n    uVar1 = FUN_002ec670(param_2);\n    *(undefined8 *)(param_1 + 0xf0) = uVar1;\n  }\n  cVar2 = FUN_002ee250(param_2);\n  if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0xf8) = 0;\n  }\n  else {\n    uVar1 = FUN_002ed200(param_2);\n    *(undefined8 *)(param_1 + 0xf8) = uVar1;\n  }\n  cVar2 = FUN_002ee2a0(param_2);\n  if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0x100) = 0;\n  }\n  else {\n    uVar1 = FUN_002ed250(param_2);\n    *(undefined8 *)(param_1 + 0x100) = uVar1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00300bc0(long param_1,undefined8 param_2)" identifier (parameter_list "(long param_1,undefined8 param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  char cVar2;\n  \n  cVar2 = FUN_002ee110(param_2);\n  if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0xf0) = 0;\n  }\n  else {\n    uVar1 = FUN_002ec670(param_2);\n    *(undefined8 *)(param_1 + 0xf0) = uVar1;\n  }\n  cVar2 = FUN_002ee250(param_2);\n  if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0xf8) = 0;\n  }\n  else {\n    uVar1 = FUN_002ed200(param_2);\n    *(undefined8 *)(param_1 + 0xf8) = uVar1;\n  }\n  cVar2 = FUN_002ee2a0(param_2);\n  if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0x100) = 0;\n  }\n  else {\n    uVar1 = FUN_002ed250(param_2);\n    *(undefined8 *)(param_1 + 0x100) = uVar1;\n  }\n  return;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (expression_statement "cVar2 = FUN_002ee110(param_2);" (assignment_expression "cVar2 = FUN_002ee110(param_2)" identifier = (call_expression "FUN_002ee110(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0xf0) = 0;\n  }\n  else {\n    uVar1 = FUN_002ec670(param_2);\n    *(undefined8 *)(param_1 + 0xf0) = uVar1;\n  }" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *(undefined8 *)(param_1 + 0xf0) = 0;\n  }" { (expression_statement "*(undefined8 *)(param_1 + 0xf0) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0xf0) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0xf0)" * (cast_expression "(undefined8 *)(param_1 + 0xf0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf0)" ( (binary_expression "param_1 + 0xf0" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    uVar1 = FUN_002ec670(param_2);\n    *(undefined8 *)(param_1 + 0xf0) = uVar1;\n  }" else (compound_statement "{\n    uVar1 = FUN_002ec670(param_2);\n    *(undefined8 *)(param_1 + 0xf0) = uVar1;\n  }" { (expression_statement "uVar1 = FUN_002ec670(param_2);" (assignment_expression "uVar1 = FUN_002ec670(param_2)" identifier = (call_expression "FUN_002ec670(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(undefined8 *)(param_1 + 0xf0) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0xf0) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0xf0)" * (cast_expression "(undefined8 *)(param_1 + 0xf0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf0)" ( (binary_expression "param_1 + 0xf0" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "cVar2 = FUN_002ee250(param_2);" (assignment_expression "cVar2 = FUN_002ee250(param_2)" identifier = (call_expression "FUN_002ee250(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0xf8) = 0;\n  }\n  else {\n    uVar1 = FUN_002ed200(param_2);\n    *(undefined8 *)(param_1 + 0xf8) = uVar1;\n  }" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *(undefined8 *)(param_1 + 0xf8) = 0;\n  }" { (expression_statement "*(undefined8 *)(param_1 + 0xf8) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0xf8) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0xf8)" * (cast_expression "(undefined8 *)(param_1 + 0xf8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf8)" ( (binary_expression "param_1 + 0xf8" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    uVar1 = FUN_002ed200(param_2);\n    *(undefined8 *)(param_1 + 0xf8) = uVar1;\n  }" else (compound_statement "{\n    uVar1 = FUN_002ed200(param_2);\n    *(undefined8 *)(param_1 + 0xf8) = uVar1;\n  }" { (expression_statement "uVar1 = FUN_002ed200(param_2);" (assignment_expression "uVar1 = FUN_002ed200(param_2)" identifier = (call_expression "FUN_002ed200(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(undefined8 *)(param_1 + 0xf8) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0xf8) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0xf8)" * (cast_expression "(undefined8 *)(param_1 + 0xf8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf8)" ( (binary_expression "param_1 + 0xf8" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "cVar2 = FUN_002ee2a0(param_2);" (assignment_expression "cVar2 = FUN_002ee2a0(param_2)" identifier = (call_expression "FUN_002ee2a0(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0x100) = 0;\n  }\n  else {\n    uVar1 = FUN_002ed250(param_2);\n    *(undefined8 *)(param_1 + 0x100) = uVar1;\n  }" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *(undefined8 *)(param_1 + 0x100) = 0;\n  }" { (expression_statement "*(undefined8 *)(param_1 + 0x100) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x100) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x100)" * (cast_expression "(undefined8 *)(param_1 + 0x100)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100)" ( (binary_expression "param_1 + 0x100" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    uVar1 = FUN_002ed250(param_2);\n    *(undefined8 *)(param_1 + 0x100) = uVar1;\n  }" else (compound_statement "{\n    uVar1 = FUN_002ed250(param_2);\n    *(undefined8 *)(param_1 + 0x100) = uVar1;\n  }" { (expression_statement "uVar1 = FUN_002ed250(param_2);" (assignment_expression "uVar1 = FUN_002ed250(param_2)" identifier = (call_expression "FUN_002ed250(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(undefined8 *)(param_1 + 0x100) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0x100) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0x100)" * (cast_expression "(undefined8 *)(param_1 + 0x100)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x100)" ( (binary_expression "param_1 + 0x100" identifier + number_literal) )))) = identifier) ;) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }))) (return_statement return ;) })))
(function_definition "void FUN_00300bc0(long param_1,undefined8 param_2)\n\n{\n  undefined8 uVar1;\n  char cVar2;\n  \n  cVar2 = FUN_002ee110(param_2);\n  if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0xf0) = 0;\n  }\n  else {\n    uVar1 = FUN_002ec670(param_2);\n    *(undefined8 *)(param_1 + 0xf0) = uVar1;\n  }\n  cVar2 = FUN_002ee250(param_2);\n  if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0xf8) = 0;\n  }\n  else {\n    uVar1 = FUN_002ed200(param_2);\n    *(undefined8 *)(param_1 + 0xf8) = uVar1;\n  }\n  cVar2 = FUN_002ee2a0(param_2);\n  if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0x100) = 0;\n  }\n  else {\n    uVar1 = FUN_002ed250(param_2);\n    *(undefined8 *)(param_1 + 0x100) = uVar1;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00300bc0(long param_1,undefined8 param_2)" (identifier "FUN_00300bc0") (parameter_list "(long param_1,undefined8 param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined8 uVar1;\n  char cVar2;\n  \n  cVar2 = FUN_002ee110(param_2);\n  if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0xf0) = 0;\n  }\n  else {\n    uVar1 = FUN_002ec670(param_2);\n    *(undefined8 *)(param_1 + 0xf0) = uVar1;\n  }\n  cVar2 = FUN_002ee250(param_2);\n  if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0xf8) = 0;\n  }\n  else {\n    uVar1 = FUN_002ed200(param_2);\n    *(undefined8 *)(param_1 + 0xf8) = uVar1;\n  }\n  cVar2 = FUN_002ee2a0(param_2);\n  if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0x100) = 0;\n  }\n  else {\n    uVar1 = FUN_002ed250(param_2);\n    *(undefined8 *)(param_1 + 0x100) = uVar1;\n  }\n  return;\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (expression_statement "cVar2 = FUN_002ee110(param_2);" (assignment_expression "cVar2 = FUN_002ee110(param_2)" (identifier "cVar2") (= "=") (call_expression "FUN_002ee110(param_2)" (identifier "FUN_002ee110") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0xf0) = 0;\n  }\n  else {\n    uVar1 = FUN_002ec670(param_2);\n    *(undefined8 *)(param_1 + 0xf0) = uVar1;\n  }" (if "if") (parenthesized_expression "(cVar2 == '\0')" (( "(") (binary_expression "cVar2 == '\0'" (identifier "cVar2") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    *(undefined8 *)(param_1 + 0xf0) = 0;\n  }" ({ "{") (expression_statement "*(undefined8 *)(param_1 + 0xf0) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0xf0) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0xf0)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0xf0)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xf0)" (( "(") (binary_expression "param_1 + 0xf0" (identifier "param_1") (+ "+") (number_literal "0xf0")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    uVar1 = FUN_002ec670(param_2);\n    *(undefined8 *)(param_1 + 0xf0) = uVar1;\n  }" (else "else") (compound_statement "{\n    uVar1 = FUN_002ec670(param_2);\n    *(undefined8 *)(param_1 + 0xf0) = uVar1;\n  }" ({ "{") (expression_statement "uVar1 = FUN_002ec670(param_2);" (assignment_expression "uVar1 = FUN_002ec670(param_2)" (identifier "uVar1") (= "=") (call_expression "FUN_002ec670(param_2)" (identifier "FUN_002ec670") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0xf0) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0xf0) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0xf0)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0xf0)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xf0)" (( "(") (binary_expression "param_1 + 0xf0" (identifier "param_1") (+ "+") (number_literal "0xf0")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (} "}")))) (expression_statement "cVar2 = FUN_002ee250(param_2);" (assignment_expression "cVar2 = FUN_002ee250(param_2)" (identifier "cVar2") (= "=") (call_expression "FUN_002ee250(param_2)" (identifier "FUN_002ee250") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0xf8) = 0;\n  }\n  else {\n    uVar1 = FUN_002ed200(param_2);\n    *(undefined8 *)(param_1 + 0xf8) = uVar1;\n  }" (if "if") (parenthesized_expression "(cVar2 == '\0')" (( "(") (binary_expression "cVar2 == '\0'" (identifier "cVar2") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    *(undefined8 *)(param_1 + 0xf8) = 0;\n  }" ({ "{") (expression_statement "*(undefined8 *)(param_1 + 0xf8) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0xf8) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0xf8)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0xf8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xf8)" (( "(") (binary_expression "param_1 + 0xf8" (identifier "param_1") (+ "+") (number_literal "0xf8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    uVar1 = FUN_002ed200(param_2);\n    *(undefined8 *)(param_1 + 0xf8) = uVar1;\n  }" (else "else") (compound_statement "{\n    uVar1 = FUN_002ed200(param_2);\n    *(undefined8 *)(param_1 + 0xf8) = uVar1;\n  }" ({ "{") (expression_statement "uVar1 = FUN_002ed200(param_2);" (assignment_expression "uVar1 = FUN_002ed200(param_2)" (identifier "uVar1") (= "=") (call_expression "FUN_002ed200(param_2)" (identifier "FUN_002ed200") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0xf8) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0xf8) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0xf8)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0xf8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xf8)" (( "(") (binary_expression "param_1 + 0xf8" (identifier "param_1") (+ "+") (number_literal "0xf8")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (} "}")))) (expression_statement "cVar2 = FUN_002ee2a0(param_2);" (assignment_expression "cVar2 = FUN_002ee2a0(param_2)" (identifier "cVar2") (= "=") (call_expression "FUN_002ee2a0(param_2)" (identifier "FUN_002ee2a0") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (cVar2 == '\0') {\n    *(undefined8 *)(param_1 + 0x100) = 0;\n  }\n  else {\n    uVar1 = FUN_002ed250(param_2);\n    *(undefined8 *)(param_1 + 0x100) = uVar1;\n  }" (if "if") (parenthesized_expression "(cVar2 == '\0')" (( "(") (binary_expression "cVar2 == '\0'" (identifier "cVar2") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    *(undefined8 *)(param_1 + 0x100) = 0;\n  }" ({ "{") (expression_statement "*(undefined8 *)(param_1 + 0x100) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x100) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x100)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x100)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x100)" (( "(") (binary_expression "param_1 + 0x100" (identifier "param_1") (+ "+") (number_literal "0x100")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    uVar1 = FUN_002ed250(param_2);\n    *(undefined8 *)(param_1 + 0x100) = uVar1;\n  }" (else "else") (compound_statement "{\n    uVar1 = FUN_002ed250(param_2);\n    *(undefined8 *)(param_1 + 0x100) = uVar1;\n  }" ({ "{") (expression_statement "uVar1 = FUN_002ed250(param_2);" (assignment_expression "uVar1 = FUN_002ed250(param_2)" (identifier "uVar1") (= "=") (call_expression "FUN_002ed250(param_2)" (identifier "FUN_002ed250") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0x100) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0x100) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0x100)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x100)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x100)" (( "(") (binary_expression "param_1 + 0x100" (identifier "param_1") (+ "+") (number_literal "0x100")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::ios::_M_cache_locale(std::locale const&) */

void __thiscall var_2::type_1::function_1(type_1 *var_5,type_2 *param_1)

{
  bool bVar1;
  type_3 *pcVar2;
  type_4 *pnVar3;
  type_5 *pnVar4;
  
  bVar1 = var_1<var_2::type_3<var_3>>(param_1);
  if (bVar1) {
    pcVar2 = var_4<var_2::type_3<var_3>>(param_1);
    *(type_3 **)(var_5 + 0xf0) = pcVar2;
  }
  else {
    *(type_6 *)(var_5 + 0xf0) = 0;
  }
  bVar1 = var_1<var_2::type_4<var_3,var_2::ostreambuf_iterator<var_3,var_2::var_6<var_3>>>>
                    (param_1);
  if (bVar1) {
    pnVar3 = var_4<var_2::type_4<var_3,var_2::ostreambuf_iterator<var_3,var_2::var_6<var_3>>>>
                       (param_1);
    *(type_4 **)(var_5 + 0xf8) = pnVar3;
  }
  else {
    *(type_6 *)(var_5 + 0xf8) = 0;
  }
  bVar1 = var_1<var_2::type_5<var_3,var_2::istreambuf_iterator<var_3,var_2::var_6<var_3>>>>
                    (param_1);
  if (bVar1) {
    pnVar4 = var_4<var_2::type_5<var_3,var_2::istreambuf_iterator<var_3,var_2::var_6<var_3>>>>
                       (param_1);
    *(type_5 **)(var_5 + 0x100) = pnVar4;
  }
  else {
    *(type_6 *)(var_5 + 0x100) = 0;
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (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))))) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (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))))) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (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))))) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (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))))) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (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))))) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (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))))) right: (identifier)))))) (return_statement))))

void MASKED(long param_1,undefined8 param_2)

{
  undefined8 uVar1;
  char cVar2;
  
  cVar2 = FUN_002ee110(param_2);
  if (cVar2 == '\0') {
    *(undefined8 *)(param_1 + 0xf0) = 0;
  }
  else {
    uVar1 = FUN_002ec670(param_2);
    *(undefined8 *)(param_1 + 0xf0) = uVar1;
  }
  cVar2 = FUN_002ee250(param_2);
  if (cVar2 == '\0') {
    *(undefined8 *)(param_1 + 0xf8) = 0;
  }
  else {
    uVar1 = FUN_002ed200(param_2);
    *(undefined8 *)(param_1 + 0xf8) = uVar1;
  }
  cVar2 = FUN_002ee2a0(param_2);
  if (cVar2 == '\0') {
    *(undefined8 *)(param_1 + 0x100) = 0;
  }
  else {
    uVar1 = FUN_002ed250(param_2);
    *(undefined8 *)(param_1 + 0x100) = uVar1;
  }
  return;
}

