
/* std::__codecvt_utf8_utf16_base<char32_t>::do_in(__mbstate_t&, char const*, char const*, char
   const*&, char32_t*, char32_t*, char32_t*&) const */

undefined4 __thiscall
std::__codecvt_utf8_utf16_base<char32_t>::do_in
          (__codecvt_utf8_utf16_base<char32_t> *this,__mbstate_t *param_1,char *param_2,
          char *param_3,char **param_4,wchar32 *param_5,wchar32 *param_6,wchar32 **param_7)

{
  wchar32 wVar1;
  char *pcVar2;
  wchar32 wVar3;
  undefined4 uVar4;
  char *local_18;
  char *local_14;
  
  local_18 = param_2;
  wVar1 = *(wchar32 *)(this + 8);
  local_14 = param_3;
  if (((byte)this[0xc] & 4) != 0) {
    (anonymous_namespace)::read_bom<char_const,true,3u>((range *)&local_18,(unsigned_char *)this);
  }
  if (local_14 != local_18) {
    do {
      pcVar2 = local_18;
      if (param_6 == param_5) break;
      wVar3 = (anonymous_namespace)::read_utf8_code_point((range *)&local_18,wVar1);
      if (wVar3 == L'\xfffffffe') {
        uVar4 = 1;
        goto LAB_0026ee00;
      }
      if ((uint)wVar1 < (uint)wVar3) {
        uVar4 = 2;
        goto LAB_0026ee00;
      }
      if ((uint)wVar3 < 0x10000) {
        *param_5 = wVar3;
        param_5 = param_5 + 1;
      }
      else {
        if ((int)param_6 - (int)param_5 == 4) {
          uVar4 = 1;
          local_18 = pcVar2;
          goto LAB_0026ee00;
        }
        param_5[1] = (uint)(ushort)(((ushort)wVar3 & 0x3ff) + 0xdc00);
        *param_5 = (uint)(ushort)((short)((uint)wVar3 >> 10) + 0xd7c0);
        param_5 = param_5 + 2;
      }
    } while (local_14 != local_18);
  }
  uVar4 = 0;
LAB_0026ee00:
  *param_4 = local_18;
  *param_7 = param_5;
  return uVar4;
}



undefined4
FUN_0026ed70(int param_1,undefined4 param_2,int param_3,int param_4,int *param_5,uint *param_6,
            uint *param_7,int *param_8)

{
  uint uVar1;
  uint uVar2;
  undefined4 uVar3;
  
  uVar1 = *(uint *)(param_1 + 8);
  if ((*(byte *)(param_1 + 0xc) & 4) != 0) {
    FUN_0026ed20();
  }
  while ((param_4 != param_3 && (param_7 != param_6))) {
    uVar2 = FUN_0026d8e0();
    if (uVar2 == 0xfffffffe) {
      uVar3 = 1;
      goto LAB_0026ee00;
    }
    if (uVar1 < uVar2) {
      uVar3 = 2;
      goto LAB_0026ee00;
    }
    if (uVar2 < 0x10000) {
      *param_6 = uVar2;
      param_6 = param_6 + 1;
    }
    else {
      if ((int)param_7 - (int)param_6 == 4) {
        uVar3 = 1;
        goto LAB_0026ee00;
      }
      param_6[1] = (uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00);
      *param_6 = (uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0);
      param_6 = param_6 + 2;
    }
  }
  uVar3 = 0;
LAB_0026ee00:
  *param_5 = param_3;
  *param_8 = (int)param_6;
  return uVar3;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x10
MOV EDX,dword ptr [ESP + 0x24]
MOV ESI,dword ptr [ESP + 0x2c]
MOV EAX,dword ptr [ESP + 0x30]
MOV EBX,dword ptr [ESP + 0x38]
MOV dword ptr [ESP + 0x8],ESI
MOV EDI,dword ptr [EDX + 0x8]
MOV dword ptr [ESP + 0xc],EAX
TEST byte ptr [EDX + 0xc],0x4
JNZ 0x0026ee40
LEA EBP,[ESP + 0x8]
CMP EAX,ESI
JZ 0x0026ede2
LEA ESI,[ESI]
CMP dword ptr [ESP + 0x3c],EBX
JZ 0x0026ede2
MOV EDX,EDI
MOV EAX,EBP
CALL 0x0026d8e0
CMP EAX,-0x2
JZ 0x0026ee60
CMP EDI,EAX
JC 0x0026ee70
CMP EAX,0xffff
JA 0x0026edf0
MOV dword ptr [EBX],EAX
LEA EDX,[EBX + 0x4]
MOV ESI,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [ESP + 0xc]
MOV EBX,EDX
CMP EAX,ESI
JNZ 0x0026eda8
XOR EAX,EAX
JMP 0x0026ee00
MOV EDX,dword ptr [ESP + 0x3c]
SUB EDX,EBX
CMP EDX,0x4
JNZ 0x0026ee18
MOV EAX,0x1
MOV EDX,dword ptr [ESP + 0x34]
MOV dword ptr [EDX],ESI
MOV EDX,dword ptr [ESP + 0x40]
MOV dword ptr [EDX],EBX
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,EAX
AND AX,0x3ff
SHR EDX,0xa
SUB AX,0x2400
SUB DX,0x2840
MOVZX EAX,AX
MOVZX EDX,DX
MOV dword ptr [EBX + 0x4],EAX
MOV dword ptr [EBX],EDX
LEA EDX,[EBX + 0x8]
JMP 0x0026edd4
LEA EAX,[ESP + 0x8]
CALL 0x0026ed20
MOV ESI,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [ESP + 0xc]
JMP 0x0026ed9c
MOV ESI,dword ptr [ESP + 0x8]
MOV EAX,0x1
JMP 0x0026ee00
MOV ESI,dword ptr [ESP + 0x8]
MOV EAX,0x2
JMP 0x0026ee00
(translation_unit "undefined4\nFUN_0026ed70(int param_1,undefined4 param_2,int param_3,int param_4,int *param_5,uint *param_6,\n            uint *param_7,int *param_8)\n\n{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  \n  uVar1 = *(uint *)(param_1 + 8);\n  if ((*(byte *)(param_1 + 0xc) & 4) != 0) {\n    FUN_0026ed20();\n  }\n  while ((param_4 != param_3 && (param_7 != param_6))) {\n    uVar2 = FUN_0026d8e0();\n    if (uVar2 == 0xfffffffe) {\n      uVar3 = 1;\n      goto LAB_0026ee00;\n    }\n    if (uVar1 < uVar2) {\n      uVar3 = 2;\n      goto LAB_0026ee00;\n    }\n    if (uVar2 < 0x10000) {\n      *param_6 = uVar2;\n      param_6 = param_6 + 1;\n    }\n    else {\n      if ((int)param_7 - (int)param_6 == 4) {\n        uVar3 = 1;\n        goto LAB_0026ee00;\n      }\n      param_6[1] = (uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00);\n      *param_6 = (uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0);\n      param_6 = param_6 + 2;\n    }\n  }\n  uVar3 = 0;\nLAB_0026ee00:\n  *param_5 = param_3;\n  *param_8 = (int)param_6;\n  return uVar3;\n}\n\n" (function_definition "undefined4\nFUN_0026ed70(int param_1,undefined4 param_2,int param_3,int param_4,int *param_5,uint *param_6,\n            uint *param_7,int *param_8)\n\n{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  \n  uVar1 = *(uint *)(param_1 + 8);\n  if ((*(byte *)(param_1 + 0xc) & 4) != 0) {\n    FUN_0026ed20();\n  }\n  while ((param_4 != param_3 && (param_7 != param_6))) {\n    uVar2 = FUN_0026d8e0();\n    if (uVar2 == 0xfffffffe) {\n      uVar3 = 1;\n      goto LAB_0026ee00;\n    }\n    if (uVar1 < uVar2) {\n      uVar3 = 2;\n      goto LAB_0026ee00;\n    }\n    if (uVar2 < 0x10000) {\n      *param_6 = uVar2;\n      param_6 = param_6 + 1;\n    }\n    else {\n      if ((int)param_7 - (int)param_6 == 4) {\n        uVar3 = 1;\n        goto LAB_0026ee00;\n      }\n      param_6[1] = (uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00);\n      *param_6 = (uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0);\n      param_6 = param_6 + 2;\n    }\n  }\n  uVar3 = 0;\nLAB_0026ee00:\n  *param_5 = param_3;\n  *param_8 = (int)param_6;\n  return uVar3;\n}" type_identifier (function_declarator "FUN_0026ed70(int param_1,undefined4 param_2,int param_3,int param_4,int *param_5,uint *param_6,\n            uint *param_7,int *param_8)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3,int param_4,int *param_5,uint *param_6,\n            uint *param_7,int *param_8)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "uint *param_6" type_identifier (pointer_declarator "*param_6" * identifier)) , (parameter_declaration "uint *param_7" type_identifier (pointer_declarator "*param_7" * identifier)) , (parameter_declaration "int *param_8" primitive_type (pointer_declarator "*param_8" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  \n  uVar1 = *(uint *)(param_1 + 8);\n  if ((*(byte *)(param_1 + 0xc) & 4) != 0) {\n    FUN_0026ed20();\n  }\n  while ((param_4 != param_3 && (param_7 != param_6))) {\n    uVar2 = FUN_0026d8e0();\n    if (uVar2 == 0xfffffffe) {\n      uVar3 = 1;\n      goto LAB_0026ee00;\n    }\n    if (uVar1 < uVar2) {\n      uVar3 = 2;\n      goto LAB_0026ee00;\n    }\n    if (uVar2 < 0x10000) {\n      *param_6 = uVar2;\n      param_6 = param_6 + 1;\n    }\n    else {\n      if ((int)param_7 - (int)param_6 == 4) {\n        uVar3 = 1;\n        goto LAB_0026ee00;\n      }\n      param_6[1] = (uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00);\n      *param_6 = (uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0);\n      param_6 = param_6 + 2;\n    }\n  }\n  uVar3 = 0;\nLAB_0026ee00:\n  *param_5 = param_3;\n  *param_8 = (int)param_6;\n  return uVar3;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "uVar1 = *(uint *)(param_1 + 8);" (assignment_expression "uVar1 = *(uint *)(param_1 + 8)" identifier = (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (if_statement "if ((*(byte *)(param_1 + 0xc) & 4) != 0) {\n    FUN_0026ed20();\n  }" if (parenthesized_expression "((*(byte *)(param_1 + 0xc) & 4) != 0)" ( (binary_expression "(*(byte *)(param_1 + 0xc) & 4) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0xc) & 4)" ( (binary_expression "*(byte *)(param_1 + 0xc) & 4" (pointer_expression "*(byte *)(param_1 + 0xc)" * (cast_expression "(byte *)(param_1 + 0xc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    FUN_0026ed20();\n  }" { (expression_statement "FUN_0026ed20();" (call_expression "FUN_0026ed20()" identifier (argument_list "()" ( ))) ;) })) (while_statement "while ((param_4 != param_3 && (param_7 != param_6))) {\n    uVar2 = FUN_0026d8e0();\n    if (uVar2 == 0xfffffffe) {\n      uVar3 = 1;\n      goto LAB_0026ee00;\n    }\n    if (uVar1 < uVar2) {\n      uVar3 = 2;\n      goto LAB_0026ee00;\n    }\n    if (uVar2 < 0x10000) {\n      *param_6 = uVar2;\n      param_6 = param_6 + 1;\n    }\n    else {\n      if ((int)param_7 - (int)param_6 == 4) {\n        uVar3 = 1;\n        goto LAB_0026ee00;\n      }\n      param_6[1] = (uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00);\n      *param_6 = (uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0);\n      param_6 = param_6 + 2;\n    }\n  }" while (parenthesized_expression "((param_4 != param_3 && (param_7 != param_6)))" ( (parenthesized_expression "(param_4 != param_3 && (param_7 != param_6))" ( (binary_expression "param_4 != param_3 && (param_7 != param_6)" (binary_expression "param_4 != param_3" identifier != identifier) && (parenthesized_expression "(param_7 != param_6)" ( (binary_expression "param_7 != param_6" identifier != identifier) ))) )) )) (compound_statement "{\n    uVar2 = FUN_0026d8e0();\n    if (uVar2 == 0xfffffffe) {\n      uVar3 = 1;\n      goto LAB_0026ee00;\n    }\n    if (uVar1 < uVar2) {\n      uVar3 = 2;\n      goto LAB_0026ee00;\n    }\n    if (uVar2 < 0x10000) {\n      *param_6 = uVar2;\n      param_6 = param_6 + 1;\n    }\n    else {\n      if ((int)param_7 - (int)param_6 == 4) {\n        uVar3 = 1;\n        goto LAB_0026ee00;\n      }\n      param_6[1] = (uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00);\n      *param_6 = (uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0);\n      param_6 = param_6 + 2;\n    }\n  }" { (expression_statement "uVar2 = FUN_0026d8e0();" (assignment_expression "uVar2 = FUN_0026d8e0()" identifier = (call_expression "FUN_0026d8e0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (uVar2 == 0xfffffffe) {\n      uVar3 = 1;\n      goto LAB_0026ee00;\n    }" if (parenthesized_expression "(uVar2 == 0xfffffffe)" ( (binary_expression "uVar2 == 0xfffffffe" identifier == number_literal) )) (compound_statement "{\n      uVar3 = 1;\n      goto LAB_0026ee00;\n    }" { (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_0026ee00;" goto statement_identifier ;) })) (if_statement "if (uVar1 < uVar2) {\n      uVar3 = 2;\n      goto LAB_0026ee00;\n    }" if (parenthesized_expression "(uVar1 < uVar2)" ( (binary_expression "uVar1 < uVar2" identifier < identifier) )) (compound_statement "{\n      uVar3 = 2;\n      goto LAB_0026ee00;\n    }" { (expression_statement "uVar3 = 2;" (assignment_expression "uVar3 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_0026ee00;" goto statement_identifier ;) })) (if_statement "if (uVar2 < 0x10000) {\n      *param_6 = uVar2;\n      param_6 = param_6 + 1;\n    }\n    else {\n      if ((int)param_7 - (int)param_6 == 4) {\n        uVar3 = 1;\n        goto LAB_0026ee00;\n      }\n      param_6[1] = (uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00);\n      *param_6 = (uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0);\n      param_6 = param_6 + 2;\n    }" if (parenthesized_expression "(uVar2 < 0x10000)" ( (binary_expression "uVar2 < 0x10000" identifier < number_literal) )) (compound_statement "{\n      *param_6 = uVar2;\n      param_6 = param_6 + 1;\n    }" { (expression_statement "*param_6 = uVar2;" (assignment_expression "*param_6 = uVar2" (pointer_expression "*param_6" * identifier) = identifier) ;) (expression_statement "param_6 = param_6 + 1;" (assignment_expression "param_6 = param_6 + 1" identifier = (binary_expression "param_6 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n      if ((int)param_7 - (int)param_6 == 4) {\n        uVar3 = 1;\n        goto LAB_0026ee00;\n      }\n      param_6[1] = (uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00);\n      *param_6 = (uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0);\n      param_6 = param_6 + 2;\n    }" else (compound_statement "{\n      if ((int)param_7 - (int)param_6 == 4) {\n        uVar3 = 1;\n        goto LAB_0026ee00;\n      }\n      param_6[1] = (uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00);\n      *param_6 = (uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0);\n      param_6 = param_6 + 2;\n    }" { (if_statement "if ((int)param_7 - (int)param_6 == 4) {\n        uVar3 = 1;\n        goto LAB_0026ee00;\n      }" if (parenthesized_expression "((int)param_7 - (int)param_6 == 4)" ( (binary_expression "(int)param_7 - (int)param_6 == 4" (binary_expression "(int)param_7 - (int)param_6" (cast_expression "(int)param_7" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_6" ( (type_descriptor "int" primitive_type) ) identifier)) == number_literal) )) (compound_statement "{\n        uVar3 = 1;\n        goto LAB_0026ee00;\n      }" { (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_0026ee00;" goto statement_identifier ;) })) (expression_statement "param_6[1] = (uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00);" (assignment_expression "param_6[1] = (uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00)" (subscript_expression "param_6[1]" identifier [ number_literal ]) = (call_expression "(uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00)" (call_expression "(uint)(ushort)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(ushort)" ( identifier ))) (argument_list "(((ushort)uVar2 & 0x3ff) + 0xdc00)" ( (binary_expression "((ushort)uVar2 & 0x3ff) + 0xdc00" (parenthesized_expression "((ushort)uVar2 & 0x3ff)" ( (binary_expression "(ushort)uVar2 & 0x3ff" (cast_expression "(ushort)uVar2" ( (type_descriptor "ushort" type_identifier) ) identifier) & number_literal) )) + number_literal) )))) ;) (expression_statement "*param_6 = (uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0);" (assignment_expression "*param_6 = (uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0)" (pointer_expression "*param_6" * identifier) = (call_expression "(uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0)" (call_expression "(uint)(ushort)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(ushort)" ( identifier ))) (argument_list "((short)(uVar2 >> 10) + 0xd7c0)" ( (binary_expression "(short)(uVar2 >> 10) + 0xd7c0" (cast_expression "(short)(uVar2 >> 10)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (parenthesized_expression "(uVar2 >> 10)" ( (binary_expression "uVar2 >> 10" identifier >> number_literal) ))) + number_literal) )))) ;) (expression_statement "param_6 = param_6 + 2;" (assignment_expression "param_6 = param_6 + 2" identifier = (binary_expression "param_6 + 2" identifier + number_literal)) ;) }))) })) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0026ee00:\n  *param_5 = param_3;" statement_identifier : (expression_statement "*param_5 = param_3;" (assignment_expression "*param_5 = param_3" (pointer_expression "*param_5" * identifier) = identifier) ;)) (expression_statement "*param_8 = (int)param_6;" (assignment_expression "*param_8 = (int)param_6" (pointer_expression "*param_8" * identifier) = (cast_expression "(int)param_6" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "/* std::__codecvt_utf8_utf16_base<char32_t>::do_in(__mbstate_t&, char const*, char const*, char\n   const*&, char32_t*, char32_t*, char32_t*&) const */\n\nundefined4 __thiscall\nstd::__codecvt_utf8_utf16_base<char32_t>::do_in\n          (__codecvt_utf8_utf16_base<char32_t> *this,__mbstate_t *param_1,char *param_2,\n          char *param_3,char **param_4,wchar32 *param_5,wchar32 *param_6,wchar32 **param_7)\n\n{\n  wchar32 wVar1;\n  char *pcVar2;\n  wchar32 wVar3;\n  undefined4 uVar4;\n  char *local_18;\n  char *local_14;\n  \n  local_18 = param_2;\n  wVar1 = *(wchar32 *)(this + 8);\n  local_14 = param_3;\n  if (((byte)this[0xc] & 4) != 0) {\n    (anonymous_namespace)::read_bom<char_const,true,3u>((range *)&local_18,(unsigned_char *)this);\n  }\n  if (local_14 != local_18) {\n    do {\n      pcVar2 = local_18;\n      if (param_6 == param_5) break;\n      wVar3 = (anonymous_namespace)::read_utf8_code_point((range *)&local_18,wVar1);\n      if (wVar3 == L'\xfffffffe') {\n        uVar4 = 1;\n        goto LAB_0026ee00;\n      }\n      if ((uint)wVar1 < (uint)wVar3) {\n        uVar4 = 2;\n        goto LAB_0026ee00;\n      }\n      if ((uint)wVar3 < 0x10000) {\n        *param_5 = wVar3;\n        param_5 = param_5 + 1;\n      }\n      else {\n        if ((int)param_6 - (int)param_5 == 4) {\n          uVar4 = 1;\n          local_18 = pcVar2;\n          goto LAB_0026ee00;\n        }\n        param_5[1] = (uint)(ushort)(((ushort)wVar3 & 0x3ff) + 0xdc00);\n        *param_5 = (uint)(ushort)((short)((uint)wVar3 >> 10) + 0xd7c0);\n        param_5 = param_5 + 2;\n      }\n    } while (local_14 != local_18);\n  }\n  uVar4 = 0;\nLAB_0026ee00:\n  *param_4 = local_18;\n  *param_7 = param_5;\n  return uVar4;\n}\n\n" comment (function_definition "undefined4 __thiscall\nstd::__codecvt_utf8_utf16_base<char32_t>::do_in\n          (__codecvt_utf8_utf16_base<char32_t> *this,__mbstate_t *param_1,char *param_2,\n          char *param_3,char **param_4,wchar32 *param_5,wchar32 *param_6,wchar32 **param_7)\n\n{\n  wchar32 wVar1;\n  char *pcVar2;\n  wchar32 wVar3;\n  undefined4 uVar4;\n  char *local_18;\n  char *local_14;\n  \n  local_18 = param_2;\n  wVar1 = *(wchar32 *)(this + 8);\n  local_14 = param_3;\n  if (((byte)this[0xc] & 4) != 0) {\n    (anonymous_namespace)::read_bom<char_const,true,3u>((range *)&local_18,(unsigned_char *)this);\n  }\n  if (local_14 != local_18) {\n    do {\n      pcVar2 = local_18;\n      if (param_6 == param_5) break;\n      wVar3 = (anonymous_namespace)::read_utf8_code_point((range *)&local_18,wVar1);\n      if (wVar3 == L'\xfffffffe') {\n        uVar4 = 1;\n        goto LAB_0026ee00;\n      }\n      if ((uint)wVar1 < (uint)wVar3) {\n        uVar4 = 2;\n        goto LAB_0026ee00;\n      }\n      if ((uint)wVar3 < 0x10000) {\n        *param_5 = wVar3;\n        param_5 = param_5 + 1;\n      }\n      else {\n        if ((int)param_6 - (int)param_5 == 4) {\n          uVar4 = 1;\n          local_18 = pcVar2;\n          goto LAB_0026ee00;\n        }\n        param_5[1] = (uint)(ushort)(((ushort)wVar3 & 0x3ff) + 0xdc00);\n        *param_5 = (uint)(ushort)((short)((uint)wVar3 >> 10) + 0xd7c0);\n        param_5 = param_5 + 2;\n      }\n    } while (local_14 != local_18);\n  }\n  uVar4 = 0;\nLAB_0026ee00:\n  *param_4 = local_18;\n  *param_7 = param_5;\n  return uVar4;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::__codecvt_utf8_utf16_base<char32_t>::" identifier : : identifier < primitive_type > : :) (function_declarator "do_in\n          (__codecvt_utf8_utf16_base<char32_t> *this,__mbstate_t *param_1,char *param_2,\n          char *param_3,char **param_4,wchar32 *param_5,wchar32 *param_6,wchar32 **param_7)" identifier (parameter_list "(__codecvt_utf8_utf16_base<char32_t> *this,__mbstate_t *param_1,char *param_2,\n          char *param_3,char **param_4,wchar32 *param_5,wchar32 *param_6,wchar32 **param_7)" ( (parameter_declaration "__codecvt_utf8_utf16_base<char32_t> *this" type_identifier (ERROR "<char32_t>" < primitive_type >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "__mbstate_t *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "char **param_4" primitive_type (pointer_declarator "**param_4" * (pointer_declarator "*param_4" * identifier))) , (parameter_declaration "wchar32 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "wchar32 *param_6" type_identifier (pointer_declarator "*param_6" * identifier)) , (parameter_declaration "wchar32 **param_7" type_identifier (pointer_declarator "**param_7" * (pointer_declarator "*param_7" * identifier))) ))) (compound_statement "{\n  wchar32 wVar1;\n  char *pcVar2;\n  wchar32 wVar3;\n  undefined4 uVar4;\n  char *local_18;\n  char *local_14;\n  \n  local_18 = param_2;\n  wVar1 = *(wchar32 *)(this + 8);\n  local_14 = param_3;\n  if (((byte)this[0xc] & 4) != 0) {\n    (anonymous_namespace)::read_bom<char_const,true,3u>((range *)&local_18,(unsigned_char *)this);\n  }\n  if (local_14 != local_18) {\n    do {\n      pcVar2 = local_18;\n      if (param_6 == param_5) break;\n      wVar3 = (anonymous_namespace)::read_utf8_code_point((range *)&local_18,wVar1);\n      if (wVar3 == L'\xfffffffe') {\n        uVar4 = 1;\n        goto LAB_0026ee00;\n      }\n      if ((uint)wVar1 < (uint)wVar3) {\n        uVar4 = 2;\n        goto LAB_0026ee00;\n      }\n      if ((uint)wVar3 < 0x10000) {\n        *param_5 = wVar3;\n        param_5 = param_5 + 1;\n      }\n      else {\n        if ((int)param_6 - (int)param_5 == 4) {\n          uVar4 = 1;\n          local_18 = pcVar2;\n          goto LAB_0026ee00;\n        }\n        param_5[1] = (uint)(ushort)(((ushort)wVar3 & 0x3ff) + 0xdc00);\n        *param_5 = (uint)(ushort)((short)((uint)wVar3 >> 10) + 0xd7c0);\n        param_5 = param_5 + 2;\n      }\n    } while (local_14 != local_18);\n  }\n  uVar4 = 0;\nLAB_0026ee00:\n  *param_4 = local_18;\n  *param_7 = param_5;\n  return uVar4;\n}" { (declaration "wchar32 wVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "wchar32 wVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "char *local_18;" primitive_type (pointer_declarator "*local_18" * identifier) ;) (declaration "char *local_14;" primitive_type (pointer_declarator "*local_14" * identifier) ;) (expression_statement "local_18 = param_2;" (assignment_expression "local_18 = param_2" identifier = identifier) ;) (expression_statement "wVar1 = *(wchar32 *)(this + 8);" (assignment_expression "wVar1 = *(wchar32 *)(this + 8)" identifier = (pointer_expression "*(wchar32 *)(this + 8)" * (cast_expression "(wchar32 *)(this + 8)" ( (type_descriptor "wchar32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) ;) (expression_statement "local_14 = param_3;" (assignment_expression "local_14 = param_3" identifier = identifier) ;) (if_statement "if (((byte)this[0xc] & 4) != 0) {\n    (anonymous_namespace)::read_bom<char_const,true,3u>((range *)&local_18,(unsigned_char *)this);\n  }" if (parenthesized_expression "(((byte)this[0xc] & 4) != 0)" ( (binary_expression "((byte)this[0xc] & 4) != 0" (parenthesized_expression "((byte)this[0xc] & 4)" ( (binary_expression "(byte)this[0xc] & 4" (cast_expression "(byte)this[0xc]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "this[0xc]" identifier [ number_literal ])) & number_literal) )) != number_literal) )) (compound_statement "{\n    (anonymous_namespace)::read_bom<char_const,true,3u>((range *)&local_18,(unsigned_char *)this);\n  }" { (expression_statement "(anonymous_namespace)::read_bom<char_const,true,3u>((range *)&local_18,(unsigned_char *)this);" (comma_expression "(anonymous_namespace)::read_bom<char_const,true,3u>((range *)&local_18,(unsigned_char *)this)" (binary_expression "(anonymous_namespace)::read_bom<char_const" (parenthesized_expression "(anonymous_namespace)" ( identifier )) (ERROR "::read_bom" : : identifier) < identifier) , (comma_expression "true,3u>((range *)&local_18,(unsigned_char *)this)" true , (binary_expression "3u>((range *)&local_18,(unsigned_char *)this)" number_literal > (parenthesized_expression "((range *)&local_18,(unsigned_char *)this)" ( (comma_expression "(range *)&local_18,(unsigned_char *)this" (cast_expression "(range *)&local_18" ( (type_descriptor "range *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_18" & identifier)) , (cast_expression "(unsigned_char *)this" ( (type_descriptor "unsigned_char *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))))) ;) })) (if_statement "if (local_14 != local_18) {\n    do {\n      pcVar2 = local_18;\n      if (param_6 == param_5) break;\n      wVar3 = (anonymous_namespace)::read_utf8_code_point((range *)&local_18,wVar1);\n      if (wVar3 == L'\xfffffffe') {\n        uVar4 = 1;\n        goto LAB_0026ee00;\n      }\n      if ((uint)wVar1 < (uint)wVar3) {\n        uVar4 = 2;\n        goto LAB_0026ee00;\n      }\n      if ((uint)wVar3 < 0x10000) {\n        *param_5 = wVar3;\n        param_5 = param_5 + 1;\n      }\n      else {\n        if ((int)param_6 - (int)param_5 == 4) {\n          uVar4 = 1;\n          local_18 = pcVar2;\n          goto LAB_0026ee00;\n        }\n        param_5[1] = (uint)(ushort)(((ushort)wVar3 & 0x3ff) + 0xdc00);\n        *param_5 = (uint)(ushort)((short)((uint)wVar3 >> 10) + 0xd7c0);\n        param_5 = param_5 + 2;\n      }\n    } while (local_14 != local_18);\n  }" if (parenthesized_expression "(local_14 != local_18)" ( (binary_expression "local_14 != local_18" identifier != identifier) )) (compound_statement "{\n    do {\n      pcVar2 = local_18;\n      if (param_6 == param_5) break;\n      wVar3 = (anonymous_namespace)::read_utf8_code_point((range *)&local_18,wVar1);\n      if (wVar3 == L'\xfffffffe') {\n        uVar4 = 1;\n        goto LAB_0026ee00;\n      }\n      if ((uint)wVar1 < (uint)wVar3) {\n        uVar4 = 2;\n        goto LAB_0026ee00;\n      }\n      if ((uint)wVar3 < 0x10000) {\n        *param_5 = wVar3;\n        param_5 = param_5 + 1;\n      }\n      else {\n        if ((int)param_6 - (int)param_5 == 4) {\n          uVar4 = 1;\n          local_18 = pcVar2;\n          goto LAB_0026ee00;\n        }\n        param_5[1] = (uint)(ushort)(((ushort)wVar3 & 0x3ff) + 0xdc00);\n        *param_5 = (uint)(ushort)((short)((uint)wVar3 >> 10) + 0xd7c0);\n        param_5 = param_5 + 2;\n      }\n    } while (local_14 != local_18);\n  }" { (do_statement "do {\n      pcVar2 = local_18;\n      if (param_6 == param_5) break;\n      wVar3 = (anonymous_namespace)::read_utf8_code_point((range *)&local_18,wVar1);\n      if (wVar3 == L'\xfffffffe') {\n        uVar4 = 1;\n        goto LAB_0026ee00;\n      }\n      if ((uint)wVar1 < (uint)wVar3) {\n        uVar4 = 2;\n        goto LAB_0026ee00;\n      }\n      if ((uint)wVar3 < 0x10000) {\n        *param_5 = wVar3;\n        param_5 = param_5 + 1;\n      }\n      else {\n        if ((int)param_6 - (int)param_5 == 4) {\n          uVar4 = 1;\n          local_18 = pcVar2;\n          goto LAB_0026ee00;\n        }\n        param_5[1] = (uint)(ushort)(((ushort)wVar3 & 0x3ff) + 0xdc00);\n        *param_5 = (uint)(ushort)((short)((uint)wVar3 >> 10) + 0xd7c0);\n        param_5 = param_5 + 2;\n      }\n    } while (local_14 != local_18);" do (compound_statement "{\n      pcVar2 = local_18;\n      if (param_6 == param_5) break;\n      wVar3 = (anonymous_namespace)::read_utf8_code_point((range *)&local_18,wVar1);\n      if (wVar3 == L'\xfffffffe') {\n        uVar4 = 1;\n        goto LAB_0026ee00;\n      }\n      if ((uint)wVar1 < (uint)wVar3) {\n        uVar4 = 2;\n        goto LAB_0026ee00;\n      }\n      if ((uint)wVar3 < 0x10000) {\n        *param_5 = wVar3;\n        param_5 = param_5 + 1;\n      }\n      else {\n        if ((int)param_6 - (int)param_5 == 4) {\n          uVar4 = 1;\n          local_18 = pcVar2;\n          goto LAB_0026ee00;\n        }\n        param_5[1] = (uint)(ushort)(((ushort)wVar3 & 0x3ff) + 0xdc00);\n        *param_5 = (uint)(ushort)((short)((uint)wVar3 >> 10) + 0xd7c0);\n        param_5 = param_5 + 2;\n      }\n    }" { (expression_statement "pcVar2 = local_18;" (assignment_expression "pcVar2 = local_18" identifier = identifier) ;) (if_statement "if (param_6 == param_5) break;" if (parenthesized_expression "(param_6 == param_5)" ( (binary_expression "param_6 == param_5" identifier == identifier) )) (break_statement "break;" break ;)) (ERROR "wVar3 = (anonymous_namespace)::" (assignment_expression "wVar3 = (anonymous_namespace)" identifier = (parenthesized_expression "(anonymous_namespace)" ( identifier ))) : :) (expression_statement "read_utf8_code_point((range *)&local_18,wVar1);" (call_expression "read_utf8_code_point((range *)&local_18,wVar1)" identifier (argument_list "((range *)&local_18,wVar1)" ( (cast_expression "(range *)&local_18" ( (type_descriptor "range *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_18" & identifier)) , identifier ))) ;) (if_statement "if (wVar3 == L'\xfffffffe') {\n        uVar4 = 1;\n        goto LAB_0026ee00;\n      }" if (parenthesized_expression "(wVar3 == L'\xfffffffe')" ( (binary_expression "wVar3 == L'\xfffffffe'" identifier == (char_literal "L'\xfffffffe'" L' escape_sequence character character character character ')) )) (compound_statement "{\n        uVar4 = 1;\n        goto LAB_0026ee00;\n      }" { (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_0026ee00;" goto statement_identifier ;) })) (if_statement "if ((uint)wVar1 < (uint)wVar3) {\n        uVar4 = 2;\n        goto LAB_0026ee00;\n      }" if (parenthesized_expression "((uint)wVar1 < (uint)wVar3)" ( (binary_expression "(uint)wVar1 < (uint)wVar3" (cast_expression "(uint)wVar1" ( (type_descriptor "uint" type_identifier) ) identifier) < (cast_expression "(uint)wVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) )) (compound_statement "{\n        uVar4 = 2;\n        goto LAB_0026ee00;\n      }" { (expression_statement "uVar4 = 2;" (assignment_expression "uVar4 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_0026ee00;" goto statement_identifier ;) })) (if_statement "if ((uint)wVar3 < 0x10000) {\n        *param_5 = wVar3;\n        param_5 = param_5 + 1;\n      }\n      else {\n        if ((int)param_6 - (int)param_5 == 4) {\n          uVar4 = 1;\n          local_18 = pcVar2;\n          goto LAB_0026ee00;\n        }\n        param_5[1] = (uint)(ushort)(((ushort)wVar3 & 0x3ff) + 0xdc00);\n        *param_5 = (uint)(ushort)((short)((uint)wVar3 >> 10) + 0xd7c0);\n        param_5 = param_5 + 2;\n      }" if (parenthesized_expression "((uint)wVar3 < 0x10000)" ( (binary_expression "(uint)wVar3 < 0x10000" (cast_expression "(uint)wVar3" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) )) (compound_statement "{\n        *param_5 = wVar3;\n        param_5 = param_5 + 1;\n      }" { (expression_statement "*param_5 = wVar3;" (assignment_expression "*param_5 = wVar3" (pointer_expression "*param_5" * identifier) = identifier) ;) (expression_statement "param_5 = param_5 + 1;" (assignment_expression "param_5 = param_5 + 1" identifier = (binary_expression "param_5 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n        if ((int)param_6 - (int)param_5 == 4) {\n          uVar4 = 1;\n          local_18 = pcVar2;\n          goto LAB_0026ee00;\n        }\n        param_5[1] = (uint)(ushort)(((ushort)wVar3 & 0x3ff) + 0xdc00);\n        *param_5 = (uint)(ushort)((short)((uint)wVar3 >> 10) + 0xd7c0);\n        param_5 = param_5 + 2;\n      }" else (compound_statement "{\n        if ((int)param_6 - (int)param_5 == 4) {\n          uVar4 = 1;\n          local_18 = pcVar2;\n          goto LAB_0026ee00;\n        }\n        param_5[1] = (uint)(ushort)(((ushort)wVar3 & 0x3ff) + 0xdc00);\n        *param_5 = (uint)(ushort)((short)((uint)wVar3 >> 10) + 0xd7c0);\n        param_5 = param_5 + 2;\n      }" { (if_statement "if ((int)param_6 - (int)param_5 == 4) {\n          uVar4 = 1;\n          local_18 = pcVar2;\n          goto LAB_0026ee00;\n        }" if (parenthesized_expression "((int)param_6 - (int)param_5 == 4)" ( (binary_expression "(int)param_6 - (int)param_5 == 4" (binary_expression "(int)param_6 - (int)param_5" (cast_expression "(int)param_6" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_5" ( (type_descriptor "int" primitive_type) ) identifier)) == number_literal) )) (compound_statement "{\n          uVar4 = 1;\n          local_18 = pcVar2;\n          goto LAB_0026ee00;\n        }" { (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (expression_statement "local_18 = pcVar2;" (assignment_expression "local_18 = pcVar2" identifier = identifier) ;) (goto_statement "goto LAB_0026ee00;" goto statement_identifier ;) })) (expression_statement "param_5[1] = (uint)(ushort)(((ushort)wVar3 & 0x3ff) + 0xdc00);" (assignment_expression "param_5[1] = (uint)(ushort)(((ushort)wVar3 & 0x3ff) + 0xdc00)" (subscript_expression "param_5[1]" identifier [ number_literal ]) = (call_expression "(uint)(ushort)(((ushort)wVar3 & 0x3ff) + 0xdc00)" (call_expression "(uint)(ushort)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(ushort)" ( identifier ))) (argument_list "(((ushort)wVar3 & 0x3ff) + 0xdc00)" ( (binary_expression "((ushort)wVar3 & 0x3ff) + 0xdc00" (parenthesized_expression "((ushort)wVar3 & 0x3ff)" ( (binary_expression "(ushort)wVar3 & 0x3ff" (cast_expression "(ushort)wVar3" ( (type_descriptor "ushort" type_identifier) ) identifier) & number_literal) )) + number_literal) )))) ;) (expression_statement "*param_5 = (uint)(ushort)((short)((uint)wVar3 >> 10) + 0xd7c0);" (assignment_expression "*param_5 = (uint)(ushort)((short)((uint)wVar3 >> 10) + 0xd7c0)" (pointer_expression "*param_5" * identifier) = (call_expression "(uint)(ushort)((short)((uint)wVar3 >> 10) + 0xd7c0)" (call_expression "(uint)(ushort)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(ushort)" ( identifier ))) (argument_list "((short)((uint)wVar3 >> 10) + 0xd7c0)" ( (binary_expression "(short)((uint)wVar3 >> 10) + 0xd7c0" (cast_expression "(short)((uint)wVar3 >> 10)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (parenthesized_expression "((uint)wVar3 >> 10)" ( (binary_expression "(uint)wVar3 >> 10" (cast_expression "(uint)wVar3" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) ))) + number_literal) )))) ;) (expression_statement "param_5 = param_5 + 2;" (assignment_expression "param_5 = param_5 + 2" identifier = (binary_expression "param_5 + 2" identifier + number_literal)) ;) }))) }) while (parenthesized_expression "(local_14 != local_18)" ( (binary_expression "local_14 != local_18" identifier != identifier) )) ;) })) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0026ee00:\n  *param_4 = local_18;" statement_identifier : (expression_statement "*param_4 = local_18;" (assignment_expression "*param_4 = local_18" (pointer_expression "*param_4" * identifier) = identifier) ;)) (expression_statement "*param_7 = param_5;" (assignment_expression "*param_7 = param_5" (pointer_expression "*param_7" * identifier) = identifier) ;) (return_statement "return uVar4;" return identifier ;) })))
(translation_unit "undefined4\nFUN_0026ed70(int param_1,undefined4 param_2,int param_3,int param_4,int *param_5,uint *param_6,\n            uint *param_7,int *param_8)\n\n{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  \n  uVar1 = *(uint *)(param_1 + 8);\n  if ((*(byte *)(param_1 + 0xc) & 4) != 0) {\n    FUN_0026ed20();\n  }\n  while ((param_4 != param_3 && (param_7 != param_6))) {\n    uVar2 = FUN_0026d8e0();\n    if (uVar2 == 0xfffffffe) {\n      uVar3 = 1;\n      goto LAB_0026ee00;\n    }\n    if (uVar1 < uVar2) {\n      uVar3 = 2;\n      goto LAB_0026ee00;\n    }\n    if (uVar2 < 0x10000) {\n      *param_6 = uVar2;\n      param_6 = param_6 + 1;\n    }\n    else {\n      if ((int)param_7 - (int)param_6 == 4) {\n        uVar3 = 1;\n        goto LAB_0026ee00;\n      }\n      param_6[1] = (uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00);\n      *param_6 = (uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0);\n      param_6 = param_6 + 2;\n    }\n  }\n  uVar3 = 0;\nLAB_0026ee00:\n  *param_5 = param_3;\n  *param_8 = (int)param_6;\n  return uVar3;\n}\n\n" (function_definition "undefined4\nFUN_0026ed70(int param_1,undefined4 param_2,int param_3,int param_4,int *param_5,uint *param_6,\n            uint *param_7,int *param_8)\n\n{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  \n  uVar1 = *(uint *)(param_1 + 8);\n  if ((*(byte *)(param_1 + 0xc) & 4) != 0) {\n    FUN_0026ed20();\n  }\n  while ((param_4 != param_3 && (param_7 != param_6))) {\n    uVar2 = FUN_0026d8e0();\n    if (uVar2 == 0xfffffffe) {\n      uVar3 = 1;\n      goto LAB_0026ee00;\n    }\n    if (uVar1 < uVar2) {\n      uVar3 = 2;\n      goto LAB_0026ee00;\n    }\n    if (uVar2 < 0x10000) {\n      *param_6 = uVar2;\n      param_6 = param_6 + 1;\n    }\n    else {\n      if ((int)param_7 - (int)param_6 == 4) {\n        uVar3 = 1;\n        goto LAB_0026ee00;\n      }\n      param_6[1] = (uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00);\n      *param_6 = (uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0);\n      param_6 = param_6 + 2;\n    }\n  }\n  uVar3 = 0;\nLAB_0026ee00:\n  *param_5 = param_3;\n  *param_8 = (int)param_6;\n  return uVar3;\n}" type_identifier (function_declarator "FUN_0026ed70(int param_1,undefined4 param_2,int param_3,int param_4,int *param_5,uint *param_6,\n            uint *param_7,int *param_8)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3,int param_4,int *param_5,uint *param_6,\n            uint *param_7,int *param_8)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "uint *param_6" type_identifier (pointer_declarator "*param_6" * identifier)) , (parameter_declaration "uint *param_7" type_identifier (pointer_declarator "*param_7" * identifier)) , (parameter_declaration "int *param_8" primitive_type (pointer_declarator "*param_8" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  \n  uVar1 = *(uint *)(param_1 + 8);\n  if ((*(byte *)(param_1 + 0xc) & 4) != 0) {\n    FUN_0026ed20();\n  }\n  while ((param_4 != param_3 && (param_7 != param_6))) {\n    uVar2 = FUN_0026d8e0();\n    if (uVar2 == 0xfffffffe) {\n      uVar3 = 1;\n      goto LAB_0026ee00;\n    }\n    if (uVar1 < uVar2) {\n      uVar3 = 2;\n      goto LAB_0026ee00;\n    }\n    if (uVar2 < 0x10000) {\n      *param_6 = uVar2;\n      param_6 = param_6 + 1;\n    }\n    else {\n      if ((int)param_7 - (int)param_6 == 4) {\n        uVar3 = 1;\n        goto LAB_0026ee00;\n      }\n      param_6[1] = (uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00);\n      *param_6 = (uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0);\n      param_6 = param_6 + 2;\n    }\n  }\n  uVar3 = 0;\nLAB_0026ee00:\n  *param_5 = param_3;\n  *param_8 = (int)param_6;\n  return uVar3;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "uVar1 = *(uint *)(param_1 + 8);" (assignment_expression "uVar1 = *(uint *)(param_1 + 8)" identifier = (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (if_statement "if ((*(byte *)(param_1 + 0xc) & 4) != 0) {\n    FUN_0026ed20();\n  }" if (parenthesized_expression "((*(byte *)(param_1 + 0xc) & 4) != 0)" ( (binary_expression "(*(byte *)(param_1 + 0xc) & 4) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0xc) & 4)" ( (binary_expression "*(byte *)(param_1 + 0xc) & 4" (pointer_expression "*(byte *)(param_1 + 0xc)" * (cast_expression "(byte *)(param_1 + 0xc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    FUN_0026ed20();\n  }" { (expression_statement "FUN_0026ed20();" (call_expression "FUN_0026ed20()" identifier (argument_list "()" ( ))) ;) })) (while_statement "while ((param_4 != param_3 && (param_7 != param_6))) {\n    uVar2 = FUN_0026d8e0();\n    if (uVar2 == 0xfffffffe) {\n      uVar3 = 1;\n      goto LAB_0026ee00;\n    }\n    if (uVar1 < uVar2) {\n      uVar3 = 2;\n      goto LAB_0026ee00;\n    }\n    if (uVar2 < 0x10000) {\n      *param_6 = uVar2;\n      param_6 = param_6 + 1;\n    }\n    else {\n      if ((int)param_7 - (int)param_6 == 4) {\n        uVar3 = 1;\n        goto LAB_0026ee00;\n      }\n      param_6[1] = (uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00);\n      *param_6 = (uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0);\n      param_6 = param_6 + 2;\n    }\n  }" while (parenthesized_expression "((param_4 != param_3 && (param_7 != param_6)))" ( (parenthesized_expression "(param_4 != param_3 && (param_7 != param_6))" ( (binary_expression "param_4 != param_3 && (param_7 != param_6)" (binary_expression "param_4 != param_3" identifier != identifier) && (parenthesized_expression "(param_7 != param_6)" ( (binary_expression "param_7 != param_6" identifier != identifier) ))) )) )) (compound_statement "{\n    uVar2 = FUN_0026d8e0();\n    if (uVar2 == 0xfffffffe) {\n      uVar3 = 1;\n      goto LAB_0026ee00;\n    }\n    if (uVar1 < uVar2) {\n      uVar3 = 2;\n      goto LAB_0026ee00;\n    }\n    if (uVar2 < 0x10000) {\n      *param_6 = uVar2;\n      param_6 = param_6 + 1;\n    }\n    else {\n      if ((int)param_7 - (int)param_6 == 4) {\n        uVar3 = 1;\n        goto LAB_0026ee00;\n      }\n      param_6[1] = (uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00);\n      *param_6 = (uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0);\n      param_6 = param_6 + 2;\n    }\n  }" { (expression_statement "uVar2 = FUN_0026d8e0();" (assignment_expression "uVar2 = FUN_0026d8e0()" identifier = (call_expression "FUN_0026d8e0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (uVar2 == 0xfffffffe) {\n      uVar3 = 1;\n      goto LAB_0026ee00;\n    }" if (parenthesized_expression "(uVar2 == 0xfffffffe)" ( (binary_expression "uVar2 == 0xfffffffe" identifier == number_literal) )) (compound_statement "{\n      uVar3 = 1;\n      goto LAB_0026ee00;\n    }" { (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_0026ee00;" goto statement_identifier ;) })) (if_statement "if (uVar1 < uVar2) {\n      uVar3 = 2;\n      goto LAB_0026ee00;\n    }" if (parenthesized_expression "(uVar1 < uVar2)" ( (binary_expression "uVar1 < uVar2" identifier < identifier) )) (compound_statement "{\n      uVar3 = 2;\n      goto LAB_0026ee00;\n    }" { (expression_statement "uVar3 = 2;" (assignment_expression "uVar3 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_0026ee00;" goto statement_identifier ;) })) (if_statement "if (uVar2 < 0x10000) {\n      *param_6 = uVar2;\n      param_6 = param_6 + 1;\n    }\n    else {\n      if ((int)param_7 - (int)param_6 == 4) {\n        uVar3 = 1;\n        goto LAB_0026ee00;\n      }\n      param_6[1] = (uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00);\n      *param_6 = (uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0);\n      param_6 = param_6 + 2;\n    }" if (parenthesized_expression "(uVar2 < 0x10000)" ( (binary_expression "uVar2 < 0x10000" identifier < number_literal) )) (compound_statement "{\n      *param_6 = uVar2;\n      param_6 = param_6 + 1;\n    }" { (expression_statement "*param_6 = uVar2;" (assignment_expression "*param_6 = uVar2" (pointer_expression "*param_6" * identifier) = identifier) ;) (expression_statement "param_6 = param_6 + 1;" (assignment_expression "param_6 = param_6 + 1" identifier = (binary_expression "param_6 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n      if ((int)param_7 - (int)param_6 == 4) {\n        uVar3 = 1;\n        goto LAB_0026ee00;\n      }\n      param_6[1] = (uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00);\n      *param_6 = (uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0);\n      param_6 = param_6 + 2;\n    }" else (compound_statement "{\n      if ((int)param_7 - (int)param_6 == 4) {\n        uVar3 = 1;\n        goto LAB_0026ee00;\n      }\n      param_6[1] = (uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00);\n      *param_6 = (uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0);\n      param_6 = param_6 + 2;\n    }" { (if_statement "if ((int)param_7 - (int)param_6 == 4) {\n        uVar3 = 1;\n        goto LAB_0026ee00;\n      }" if (parenthesized_expression "((int)param_7 - (int)param_6 == 4)" ( (binary_expression "(int)param_7 - (int)param_6 == 4" (binary_expression "(int)param_7 - (int)param_6" (cast_expression "(int)param_7" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_6" ( (type_descriptor "int" primitive_type) ) identifier)) == number_literal) )) (compound_statement "{\n        uVar3 = 1;\n        goto LAB_0026ee00;\n      }" { (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_0026ee00;" goto statement_identifier ;) })) (expression_statement "param_6[1] = (uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00);" (assignment_expression "param_6[1] = (uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00)" (subscript_expression "param_6[1]" identifier [ number_literal ]) = (call_expression "(uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00)" (call_expression "(uint)(ushort)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(ushort)" ( identifier ))) (argument_list "(((ushort)uVar2 & 0x3ff) + 0xdc00)" ( (binary_expression "((ushort)uVar2 & 0x3ff) + 0xdc00" (parenthesized_expression "((ushort)uVar2 & 0x3ff)" ( (binary_expression "(ushort)uVar2 & 0x3ff" (cast_expression "(ushort)uVar2" ( (type_descriptor "ushort" type_identifier) ) identifier) & number_literal) )) + number_literal) )))) ;) (expression_statement "*param_6 = (uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0);" (assignment_expression "*param_6 = (uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0)" (pointer_expression "*param_6" * identifier) = (call_expression "(uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0)" (call_expression "(uint)(ushort)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(ushort)" ( identifier ))) (argument_list "((short)(uVar2 >> 10) + 0xd7c0)" ( (binary_expression "(short)(uVar2 >> 10) + 0xd7c0" (cast_expression "(short)(uVar2 >> 10)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (parenthesized_expression "(uVar2 >> 10)" ( (binary_expression "uVar2 >> 10" identifier >> number_literal) ))) + number_literal) )))) ;) (expression_statement "param_6 = param_6 + 2;" (assignment_expression "param_6 = param_6 + 2" identifier = (binary_expression "param_6 + 2" identifier + number_literal)) ;) }))) })) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0026ee00:\n  *param_5 = param_3;" statement_identifier : (expression_statement "*param_5 = param_3;" (assignment_expression "*param_5 = param_3" (pointer_expression "*param_5" * identifier) = identifier) ;)) (expression_statement "*param_8 = (int)param_6;" (assignment_expression "*param_8 = (int)param_6" (pointer_expression "*param_8" * identifier) = (cast_expression "(int)param_6" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (while_statement while (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT != IDENT) && (parenthesized_expression ( (binary_expression IDENT != IDENT) ))) )) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (call_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( IDENT ))) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) )) + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (call_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( IDENT ))) (argument_list ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier short)) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) ))) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) })) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4\nFUN_0026ed70(int param_1,undefined4 param_2,int param_3,int param_4,int *param_5,uint *param_6,\n            uint *param_7,int *param_8)\n\n{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  \n  uVar1 = *(uint *)(param_1 + 8);\n  if ((*(byte *)(param_1 + 0xc) & 4) != 0) {\n    FUN_0026ed20();\n  }\n  while ((param_4 != param_3 && (param_7 != param_6))) {\n    uVar2 = FUN_0026d8e0();\n    if (uVar2 == 0xfffffffe) {\n      uVar3 = 1;\n      goto LAB_0026ee00;\n    }\n    if (uVar1 < uVar2) {\n      uVar3 = 2;\n      goto LAB_0026ee00;\n    }\n    if (uVar2 < 0x10000) {\n      *param_6 = uVar2;\n      param_6 = param_6 + 1;\n    }\n    else {\n      if ((int)param_7 - (int)param_6 == 4) {\n        uVar3 = 1;\n        goto LAB_0026ee00;\n      }\n      param_6[1] = (uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00);\n      *param_6 = (uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0);\n      param_6 = param_6 + 2;\n    }\n  }\n  uVar3 = 0;\nLAB_0026ee00:\n  *param_5 = param_3;\n  *param_8 = (int)param_6;\n  return uVar3;\n}" (type_identifier "undefined4") (function_declarator "FUN_0026ed70(int param_1,undefined4 param_2,int param_3,int param_4,int *param_5,uint *param_6,\n            uint *param_7,int *param_8)" (identifier "FUN_0026ed70") (parameter_list "(int param_1,undefined4 param_2,int param_3,int param_4,int *param_5,uint *param_6,\n            uint *param_7,int *param_8)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "int *param_5" (primitive_type "int") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) (, ",") (parameter_declaration "uint *param_6" (type_identifier "uint") (pointer_declarator "*param_6" (* "*") (identifier "param_6"))) (, ",") (parameter_declaration "uint *param_7" (type_identifier "uint") (pointer_declarator "*param_7" (* "*") (identifier "param_7"))) (, ",") (parameter_declaration "int *param_8" (primitive_type "int") (pointer_declarator "*param_8" (* "*") (identifier "param_8"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  \n  uVar1 = *(uint *)(param_1 + 8);\n  if ((*(byte *)(param_1 + 0xc) & 4) != 0) {\n    FUN_0026ed20();\n  }\n  while ((param_4 != param_3 && (param_7 != param_6))) {\n    uVar2 = FUN_0026d8e0();\n    if (uVar2 == 0xfffffffe) {\n      uVar3 = 1;\n      goto LAB_0026ee00;\n    }\n    if (uVar1 < uVar2) {\n      uVar3 = 2;\n      goto LAB_0026ee00;\n    }\n    if (uVar2 < 0x10000) {\n      *param_6 = uVar2;\n      param_6 = param_6 + 1;\n    }\n    else {\n      if ((int)param_7 - (int)param_6 == 4) {\n        uVar3 = 1;\n        goto LAB_0026ee00;\n      }\n      param_6[1] = (uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00);\n      *param_6 = (uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0);\n      param_6 = param_6 + 2;\n    }\n  }\n  uVar3 = 0;\nLAB_0026ee00:\n  *param_5 = param_3;\n  *param_8 = (int)param_6;\n  return uVar3;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (expression_statement "uVar1 = *(uint *)(param_1 + 8);" (assignment_expression "uVar1 = *(uint *)(param_1 + 8)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(param_1 + 8)" (* "*") (cast_expression "(uint *)(param_1 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if ((*(byte *)(param_1 + 0xc) & 4) != 0) {\n    FUN_0026ed20();\n  }" (if "if") (parenthesized_expression "((*(byte *)(param_1 + 0xc) & 4) != 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0xc) & 4) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0xc) & 4)" (( "(") (binary_expression "*(byte *)(param_1 + 0xc) & 4" (pointer_expression "*(byte *)(param_1 + 0xc)" (* "*") (cast_expression "(byte *)(param_1 + 0xc)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_0026ed20();\n  }" ({ "{") (expression_statement "FUN_0026ed20();" (call_expression "FUN_0026ed20()" (identifier "FUN_0026ed20") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (while_statement "while ((param_4 != param_3 && (param_7 != param_6))) {\n    uVar2 = FUN_0026d8e0();\n    if (uVar2 == 0xfffffffe) {\n      uVar3 = 1;\n      goto LAB_0026ee00;\n    }\n    if (uVar1 < uVar2) {\n      uVar3 = 2;\n      goto LAB_0026ee00;\n    }\n    if (uVar2 < 0x10000) {\n      *param_6 = uVar2;\n      param_6 = param_6 + 1;\n    }\n    else {\n      if ((int)param_7 - (int)param_6 == 4) {\n        uVar3 = 1;\n        goto LAB_0026ee00;\n      }\n      param_6[1] = (uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00);\n      *param_6 = (uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0);\n      param_6 = param_6 + 2;\n    }\n  }" (while "while") (parenthesized_expression "((param_4 != param_3 && (param_7 != param_6)))" (( "(") (parenthesized_expression "(param_4 != param_3 && (param_7 != param_6))" (( "(") (binary_expression "param_4 != param_3 && (param_7 != param_6)" (binary_expression "param_4 != param_3" (identifier "param_4") (!= "!=") (identifier "param_3")) (&& "&&") (parenthesized_expression "(param_7 != param_6)" (( "(") (binary_expression "param_7 != param_6" (identifier "param_7") (!= "!=") (identifier "param_6")) () ")"))) () ")")) () ")")) (compound_statement "{\n    uVar2 = FUN_0026d8e0();\n    if (uVar2 == 0xfffffffe) {\n      uVar3 = 1;\n      goto LAB_0026ee00;\n    }\n    if (uVar1 < uVar2) {\n      uVar3 = 2;\n      goto LAB_0026ee00;\n    }\n    if (uVar2 < 0x10000) {\n      *param_6 = uVar2;\n      param_6 = param_6 + 1;\n    }\n    else {\n      if ((int)param_7 - (int)param_6 == 4) {\n        uVar3 = 1;\n        goto LAB_0026ee00;\n      }\n      param_6[1] = (uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00);\n      *param_6 = (uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0);\n      param_6 = param_6 + 2;\n    }\n  }" ({ "{") (expression_statement "uVar2 = FUN_0026d8e0();" (assignment_expression "uVar2 = FUN_0026d8e0()" (identifier "uVar2") (= "=") (call_expression "FUN_0026d8e0()" (identifier "FUN_0026d8e0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (uVar2 == 0xfffffffe) {\n      uVar3 = 1;\n      goto LAB_0026ee00;\n    }" (if "if") (parenthesized_expression "(uVar2 == 0xfffffffe)" (( "(") (binary_expression "uVar2 == 0xfffffffe" (identifier "uVar2") (== "==") (number_literal "0xfffffffe")) () ")")) (compound_statement "{\n      uVar3 = 1;\n      goto LAB_0026ee00;\n    }" ({ "{") (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" (identifier "uVar3") (= "=") (number_literal "1")) (; ";")) (goto_statement "goto LAB_0026ee00;" (goto "goto") (statement_identifier "LAB_0026ee00") (; ";")) (} "}"))) (if_statement "if (uVar1 < uVar2) {\n      uVar3 = 2;\n      goto LAB_0026ee00;\n    }" (if "if") (parenthesized_expression "(uVar1 < uVar2)" (( "(") (binary_expression "uVar1 < uVar2" (identifier "uVar1") (< "<") (identifier "uVar2")) () ")")) (compound_statement "{\n      uVar3 = 2;\n      goto LAB_0026ee00;\n    }" ({ "{") (expression_statement "uVar3 = 2;" (assignment_expression "uVar3 = 2" (identifier "uVar3") (= "=") (number_literal "2")) (; ";")) (goto_statement "goto LAB_0026ee00;" (goto "goto") (statement_identifier "LAB_0026ee00") (; ";")) (} "}"))) (if_statement "if (uVar2 < 0x10000) {\n      *param_6 = uVar2;\n      param_6 = param_6 + 1;\n    }\n    else {\n      if ((int)param_7 - (int)param_6 == 4) {\n        uVar3 = 1;\n        goto LAB_0026ee00;\n      }\n      param_6[1] = (uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00);\n      *param_6 = (uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0);\n      param_6 = param_6 + 2;\n    }" (if "if") (parenthesized_expression "(uVar2 < 0x10000)" (( "(") (binary_expression "uVar2 < 0x10000" (identifier "uVar2") (< "<") (number_literal "0x10000")) () ")")) (compound_statement "{\n      *param_6 = uVar2;\n      param_6 = param_6 + 1;\n    }" ({ "{") (expression_statement "*param_6 = uVar2;" (assignment_expression "*param_6 = uVar2" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "param_6 = param_6 + 1;" (assignment_expression "param_6 = param_6 + 1" (identifier "param_6") (= "=") (binary_expression "param_6 + 1" (identifier "param_6") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n      if ((int)param_7 - (int)param_6 == 4) {\n        uVar3 = 1;\n        goto LAB_0026ee00;\n      }\n      param_6[1] = (uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00);\n      *param_6 = (uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0);\n      param_6 = param_6 + 2;\n    }" (else "else") (compound_statement "{\n      if ((int)param_7 - (int)param_6 == 4) {\n        uVar3 = 1;\n        goto LAB_0026ee00;\n      }\n      param_6[1] = (uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00);\n      *param_6 = (uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0);\n      param_6 = param_6 + 2;\n    }" ({ "{") (if_statement "if ((int)param_7 - (int)param_6 == 4) {\n        uVar3 = 1;\n        goto LAB_0026ee00;\n      }" (if "if") (parenthesized_expression "((int)param_7 - (int)param_6 == 4)" (( "(") (binary_expression "(int)param_7 - (int)param_6 == 4" (binary_expression "(int)param_7 - (int)param_6" (cast_expression "(int)param_7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_7")) (- "-") (cast_expression "(int)param_6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_6"))) (== "==") (number_literal "4")) () ")")) (compound_statement "{\n        uVar3 = 1;\n        goto LAB_0026ee00;\n      }" ({ "{") (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" (identifier "uVar3") (= "=") (number_literal "1")) (; ";")) (goto_statement "goto LAB_0026ee00;" (goto "goto") (statement_identifier "LAB_0026ee00") (; ";")) (} "}"))) (expression_statement "param_6[1] = (uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00);" (assignment_expression "param_6[1] = (uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00)" (subscript_expression "param_6[1]" (identifier "param_6") ([ "[") (number_literal "1") (] "]")) (= "=") (call_expression "(uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00)" (call_expression "(uint)(ushort)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(ushort)" (( "(") (identifier "ushort") () ")"))) (argument_list "(((ushort)uVar2 & 0x3ff) + 0xdc00)" (( "(") (binary_expression "((ushort)uVar2 & 0x3ff) + 0xdc00" (parenthesized_expression "((ushort)uVar2 & 0x3ff)" (( "(") (binary_expression "(ushort)uVar2 & 0x3ff" (cast_expression "(ushort)uVar2" (( "(") (type_descriptor "ushort" (type_identifier "ushort")) () ")") (identifier "uVar2")) (& "&") (number_literal "0x3ff")) () ")")) (+ "+") (number_literal "0xdc00")) () ")")))) (; ";")) (expression_statement "*param_6 = (uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0);" (assignment_expression "*param_6 = (uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0)" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (= "=") (call_expression "(uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0)" (call_expression "(uint)(ushort)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(ushort)" (( "(") (identifier "ushort") () ")"))) (argument_list "((short)(uVar2 >> 10) + 0xd7c0)" (( "(") (binary_expression "(short)(uVar2 >> 10) + 0xd7c0" (cast_expression "(short)(uVar2 >> 10)" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (parenthesized_expression "(uVar2 >> 10)" (( "(") (binary_expression "uVar2 >> 10" (identifier "uVar2") (>> ">>") (number_literal "10")) () ")"))) (+ "+") (number_literal "0xd7c0")) () ")")))) (; ";")) (expression_statement "param_6 = param_6 + 2;" (assignment_expression "param_6 = param_6 + 2" (identifier "param_6") (= "=") (binary_expression "param_6 + 2" (identifier "param_6") (+ "+") (number_literal "2"))) (; ";")) (} "}")))) (} "}"))) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_0026ee00:\n  *param_5 = param_3;" (statement_identifier "LAB_0026ee00") (: ":") (expression_statement "*param_5 = param_3;" (assignment_expression "*param_5 = param_3" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (identifier "param_3")) (; ";"))) (expression_statement "*param_8 = (int)param_6;" (assignment_expression "*param_8 = (int)param_6" (pointer_expression "*param_8" (* "*") (identifier "param_8")) (= "=") (cast_expression "(int)param_6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_6"))) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

/* std::__codecvt_utf8_utf16_base<char32_t>::do_in(__mbstate_t&, char const*, char const*, char
   const*&, char32_t*, char32_t*, char32_t*&) const */

type_1 __thiscall
std::type_2<char32_t>::function_1
          (type_2<char32_t> *var_1,type_3 *param_1,char *param_2,
          char *param_3,char **param_4,type_4 *var_6,type_4 *var_5,type_4 **param_7)

{
  type_4 wVar1;
  char *pcVar2;
  type_4 var_8;
  type_1 uVar4;
  char *var_4;
  char *var_3;
  
  var_4 = param_2;
  wVar1 = *(type_4 *)(var_1 + 8);
  var_3 = param_3;
  if (((type_5)var_1[0xc] & 4) != 0) {
    (anonymous_namespace)::read_bom<var_2,true,3u>((type_6 *)&var_4,(type_7 *)var_1);
  }
  if (var_3 != var_4) {
    do {
      pcVar2 = var_4;
      if (var_5 == var_6) break;
      var_8 = (anonymous_namespace)::var_7((type_6 *)&var_4,wVar1);
      if (var_8 == L'\xfffffffe') {
        uVar4 = 1;
        goto LAB_0026ee00;
      }
      if ((type_8)wVar1 < (type_8)var_8) {
        uVar4 = 2;
        goto LAB_0026ee00;
      }
      if ((type_8)var_8 < 0x10000) {
        *var_6 = var_8;
        var_6 = var_6 + 1;
      }
      else {
        if ((int)var_5 - (int)var_6 == 4) {
          uVar4 = 1;
          var_4 = pcVar2;
          goto LAB_0026ee00;
        }
        var_6[1] = (type_8)(type_9)(((type_9)var_8 & 0x3ff) + 0xdc00);
        *var_6 = (type_8)(type_9)((short)((type_8)var_8 >> 10) + 0xd7c0);
        var_6 = var_6 + 2;
      }
    } while (var_3 != var_4);
  }
  uVar4 = 0;
LAB_0026ee00:
  *param_4 = var_4;
  *param_7 = var_6;
  return uVar4;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_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))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (while_statement condition: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (call_expression function: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (identifier))) arguments: (argument_list (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (call_expression function: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (identifier))) arguments: (argument_list (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (return_statement (identifier)))))

undefined4
MASKED(int param_1,undefined4 param_2,int param_3,int param_4,int *param_5,uint *param_6,
            uint *param_7,int *param_8)

{
  uint uVar1;
  uint uVar2;
  undefined4 uVar3;
  
  uVar1 = *(uint *)(param_1 + 8);
  if ((*(byte *)(param_1 + 0xc) & 4) != 0) {
    FUN_0026ed20();
  }
  while ((param_4 != param_3 && (param_7 != param_6))) {
    uVar2 = FUN_0026d8e0();
    if (uVar2 == 0xfffffffe) {
      uVar3 = 1;
      goto LAB_0026ee00;
    }
    if (uVar1 < uVar2) {
      uVar3 = 2;
      goto LAB_0026ee00;
    }
    if (uVar2 < 0x10000) {
      *param_6 = uVar2;
      param_6 = param_6 + 1;
    }
    else {
      if ((int)param_7 - (int)param_6 == 4) {
        uVar3 = 1;
        goto LAB_0026ee00;
      }
      param_6[1] = (uint)(ushort)(((ushort)uVar2 & 0x3ff) + 0xdc00);
      *param_6 = (uint)(ushort)((short)(uVar2 >> 10) + 0xd7c0);
      param_6 = param_6 + 2;
    }
  }
  uVar3 = 0;
LAB_0026ee00:
  *param_5 = param_3;
  *param_8 = (int)param_6;
  return uVar3;
}

