
/* std::__codecvt_utf8_utf16_base<wchar_t>::do_out(__mbstate_t&, wchar_t const*, wchar_t const*,
   wchar_t const*&, char*, char*, char*&) const */

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

{
  wchar32 wVar1;
  char cVar2;
  undefined4 uVar3;
  wchar32 wVar4;
  int iVar5;
  char *local_18;
  char *local_14;
  
  local_18 = param_5;
  wVar1 = *(wchar32 *)(this + 0xc);
  local_14 = param_6;
  if ((((byte)this[0x10] & 2) == 0) ||
     (cVar2 = (anonymous_namespace)::write_utf8_bom(&local_18), cVar2 != '\0')) {
    if (param_2 != param_3) {
      do {
        wVar4 = *param_2;
        if ((uint)(wVar4 + L'\xffff2800') < 0x400) {
          if (1 < (uint)((int)param_3 - (int)param_2 >> 2)) {
            if ((uint)(param_2[1] + L'\xffff2400') < 0x400) {
              iVar5 = 2;
              wVar4 = param_2[1] + L'\xfca02400' + wVar4 * 0x400;
              if ((uint)wVar4 <= (uint)wVar1) goto LAB_0026ebbd;
            }
LAB_0026ebfe:
            uVar3 = 2;
            goto LAB_0026ec0d;
          }
          break;
        }
        if (((uint)(wVar4 + L'\xffff2400') < 0x400) || (iVar5 = 1, (uint)wVar1 < (uint)wVar4))
        goto LAB_0026ebfe;
LAB_0026ebbd:
        cVar2 = (anonymous_namespace)::write_utf8_code_point((range *)&local_18,wVar4);
        if (cVar2 == '\0') goto LAB_0026ec08;
        param_2 = param_2 + iVar5;
      } while (param_3 != param_2);
    }
    uVar3 = 0;
  }
  else {
LAB_0026ec08:
    uVar3 = 1;
  }
LAB_0026ec0d:
  *param_4 = param_2;
  *param_7 = local_18;
  return uVar3;
}



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

{
  uint uVar1;
  uint uVar2;
  char cVar3;
  undefined4 uVar4;
  int iVar5;
  
  uVar1 = *(uint *)(param_1 + 0xc);
  if (((*(byte *)(param_1 + 0x10) & 2) == 0) || (cVar3 = FUN_0026e370(), cVar3 != '\0')) {
    if (param_3 != param_4) {
      do {
        uVar2 = *param_3;
        if (uVar2 - 0xd800 < 0x400) {
          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {
            if (param_3[1] - 0xdc00 < 0x400) {
              iVar5 = 2;
              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;
              goto joined_r0x0026ebbb;
            }
LAB_0026ebfe:
            uVar4 = 2;
            goto LAB_0026ec0d;
          }
          break;
        }
        if (uVar2 - 0xdc00 < 0x400) goto LAB_0026ebfe;
        iVar5 = 1;
joined_r0x0026ebbb:
        if (uVar1 < uVar2) goto LAB_0026ebfe;
        cVar3 = FUN_0026e110();
        if (cVar3 == '\0') goto LAB_0026ec08;
        param_3 = param_3 + iVar5;
      } while (param_4 != param_3);
    }
    uVar4 = 0;
  }
  else {
LAB_0026ec08:
    uVar4 = 1;
  }
LAB_0026ec0d:
  *param_5 = (int)param_3;
  *param_8 = param_6;
  return uVar4;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x10
MOV EDX,dword ptr [ESP + 0x38]
MOV EAX,dword ptr [ESP + 0x24]
MOV EBX,dword ptr [ESP + 0x2c]
MOV ESI,dword ptr [ESP + 0x30]
MOV dword ptr [ESP + 0x8],EDX
MOV EDX,dword ptr [ESP + 0x3c]
MOV EDI,dword ptr [EAX + 0xc]
MOV dword ptr [ESP + 0xc],EDX
TEST byte ptr [EAX + 0x10],0x2
JZ 0x0026eb7d
LEA EAX,[ESP + 0x8]
CALL 0x0026e370
TEST AL,AL
JZ 0x0026ec08
MOV EAX,ESI
SUB EAX,EBX
SAR EAX,0x2
CMP EBX,ESI
JNZ 0x0026ebd8
JMP 0x0026ec28
CMP EAX,0x1
JBE 0x0026ec28
MOV EAX,dword ptr [EBX + 0x4]
LEA ECX,[EAX + 0xffff2400]
CMP ECX,0x3ff
JA 0x0026ebfe
SHL EDX,0xa
MOV EBP,0x2
LEA EDX,[EAX + EDX*0x1 + 0xfca02400]
CMP EDI,EDX
JC 0x0026ebfe
LEA EAX,[ESP + 0x8]
CALL 0x0026e110
TEST AL,AL
JZ 0x0026ec08
LEA EBX,[EBX + EBP*0x4]
MOV EAX,ESI
SUB EAX,EBX
SAR EAX,0x2
CMP ESI,EBX
JZ 0x0026ec28
MOV EDX,dword ptr [EBX]
LEA ECX,[EDX + 0xffff2800]
CMP ECX,0x3ff
JBE 0x0026eb90
LEA EAX,[EDX + 0xffff2400]
CMP EAX,0x3ff
JBE 0x0026ebfe
MOV EBP,0x1
CMP EDI,EDX
JNC 0x0026ebbd
MOV EAX,0x2
JMP 0x0026ec0d
MOV EAX,0x1
MOV EDX,dword ptr [ESP + 0x34]
MOV ECX,dword ptr [ESP + 0x8]
MOV dword ptr [EDX],EBX
MOV EDX,dword ptr [ESP + 0x40]
MOV dword ptr [EDX],ECX
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
POP EBP
RET
XOR EAX,EAX
JMP 0x0026ec0d
(translation_unit "undefined4\nFUN_0026eb40(int param_1,undefined4 param_2,uint *param_3,uint *param_4,int *param_5,\n            undefined4 param_6,undefined4 param_7,undefined4 *param_8)\n\n{\n  uint uVar1;\n  uint uVar2;\n  char cVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  uVar1 = *(uint *)(param_1 + 0xc);\n  if (((*(byte *)(param_1 + 0x10) & 2) == 0) || (cVar3 = FUN_0026e370(), cVar3 != '\0')) {\n    if (param_3 != param_4) {\n      do {\n        uVar2 = *param_3;\n        if (uVar2 - 0xd800 < 0x400) {\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (uVar2 - 0xdc00 < 0x400) goto LAB_0026ebfe;\n        iVar5 = 1;\njoined_r0x0026ebbb:\n        if (uVar1 < uVar2) goto LAB_0026ebfe;\n        cVar3 = FUN_0026e110();\n        if (cVar3 == '\0') goto LAB_0026ec08;\n        param_3 = param_3 + iVar5;\n      } while (param_4 != param_3);\n    }\n    uVar4 = 0;\n  }\n  else {\nLAB_0026ec08:\n    uVar4 = 1;\n  }\nLAB_0026ec0d:\n  *param_5 = (int)param_3;\n  *param_8 = param_6;\n  return uVar4;\n}\n\n" (function_definition "undefined4\nFUN_0026eb40(int param_1,undefined4 param_2,uint *param_3,uint *param_4,int *param_5,\n            undefined4 param_6,undefined4 param_7,undefined4 *param_8)\n\n{\n  uint uVar1;\n  uint uVar2;\n  char cVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  uVar1 = *(uint *)(param_1 + 0xc);\n  if (((*(byte *)(param_1 + 0x10) & 2) == 0) || (cVar3 = FUN_0026e370(), cVar3 != '\0')) {\n    if (param_3 != param_4) {\n      do {\n        uVar2 = *param_3;\n        if (uVar2 - 0xd800 < 0x400) {\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (uVar2 - 0xdc00 < 0x400) goto LAB_0026ebfe;\n        iVar5 = 1;\njoined_r0x0026ebbb:\n        if (uVar1 < uVar2) goto LAB_0026ebfe;\n        cVar3 = FUN_0026e110();\n        if (cVar3 == '\0') goto LAB_0026ec08;\n        param_3 = param_3 + iVar5;\n      } while (param_4 != param_3);\n    }\n    uVar4 = 0;\n  }\n  else {\nLAB_0026ec08:\n    uVar4 = 1;\n  }\nLAB_0026ec0d:\n  *param_5 = (int)param_3;\n  *param_8 = param_6;\n  return uVar4;\n}" type_identifier (function_declarator "FUN_0026eb40(int param_1,undefined4 param_2,uint *param_3,uint *param_4,int *param_5,\n            undefined4 param_6,undefined4 param_7,undefined4 *param_8)" identifier (parameter_list "(int param_1,undefined4 param_2,uint *param_3,uint *param_4,int *param_5,\n            undefined4 param_6,undefined4 param_7,undefined4 *param_8)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "undefined4 *param_8" type_identifier (pointer_declarator "*param_8" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  char cVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  uVar1 = *(uint *)(param_1 + 0xc);\n  if (((*(byte *)(param_1 + 0x10) & 2) == 0) || (cVar3 = FUN_0026e370(), cVar3 != '\0')) {\n    if (param_3 != param_4) {\n      do {\n        uVar2 = *param_3;\n        if (uVar2 - 0xd800 < 0x400) {\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (uVar2 - 0xdc00 < 0x400) goto LAB_0026ebfe;\n        iVar5 = 1;\njoined_r0x0026ebbb:\n        if (uVar1 < uVar2) goto LAB_0026ebfe;\n        cVar3 = FUN_0026e110();\n        if (cVar3 == '\0') goto LAB_0026ec08;\n        param_3 = param_3 + iVar5;\n      } while (param_4 != param_3);\n    }\n    uVar4 = 0;\n  }\n  else {\nLAB_0026ec08:\n    uVar4 = 1;\n  }\nLAB_0026ec0d:\n  *param_5 = (int)param_3;\n  *param_8 = param_6;\n  return uVar4;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "uVar1 = *(uint *)(param_1 + 0xc);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0xc)" identifier = (pointer_expression "*(uint *)(param_1 + 0xc)" * (cast_expression "(uint *)(param_1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (((*(byte *)(param_1 + 0x10) & 2) == 0) || (cVar3 = FUN_0026e370(), cVar3 != '\0')) {\n    if (param_3 != param_4) {\n      do {\n        uVar2 = *param_3;\n        if (uVar2 - 0xd800 < 0x400) {\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (uVar2 - 0xdc00 < 0x400) goto LAB_0026ebfe;\n        iVar5 = 1;\njoined_r0x0026ebbb:\n        if (uVar1 < uVar2) goto LAB_0026ebfe;\n        cVar3 = FUN_0026e110();\n        if (cVar3 == '\0') goto LAB_0026ec08;\n        param_3 = param_3 + iVar5;\n      } while (param_4 != param_3);\n    }\n    uVar4 = 0;\n  }\n  else {\nLAB_0026ec08:\n    uVar4 = 1;\n  }" if (parenthesized_expression "(((*(byte *)(param_1 + 0x10) & 2) == 0) || (cVar3 = FUN_0026e370(), cVar3 != '\0'))" ( (binary_expression "((*(byte *)(param_1 + 0x10) & 2) == 0) || (cVar3 = FUN_0026e370(), cVar3 != '\0')" (parenthesized_expression "((*(byte *)(param_1 + 0x10) & 2) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x10) & 2) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x10) & 2)" ( (binary_expression "*(byte *)(param_1 + 0x10) & 2" (pointer_expression "*(byte *)(param_1 + 0x10)" * (cast_expression "(byte *)(param_1 + 0x10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) & number_literal) )) == number_literal) )) || (parenthesized_expression "(cVar3 = FUN_0026e370(), cVar3 != '\0')" ( (comma_expression "cVar3 = FUN_0026e370(), cVar3 != '\0'" (assignment_expression "cVar3 = FUN_0026e370()" identifier = (call_expression "FUN_0026e370()" identifier (argument_list "()" ( )))) , (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n    if (param_3 != param_4) {\n      do {\n        uVar2 = *param_3;\n        if (uVar2 - 0xd800 < 0x400) {\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (uVar2 - 0xdc00 < 0x400) goto LAB_0026ebfe;\n        iVar5 = 1;\njoined_r0x0026ebbb:\n        if (uVar1 < uVar2) goto LAB_0026ebfe;\n        cVar3 = FUN_0026e110();\n        if (cVar3 == '\0') goto LAB_0026ec08;\n        param_3 = param_3 + iVar5;\n      } while (param_4 != param_3);\n    }\n    uVar4 = 0;\n  }" { (if_statement "if (param_3 != param_4) {\n      do {\n        uVar2 = *param_3;\n        if (uVar2 - 0xd800 < 0x400) {\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (uVar2 - 0xdc00 < 0x400) goto LAB_0026ebfe;\n        iVar5 = 1;\njoined_r0x0026ebbb:\n        if (uVar1 < uVar2) goto LAB_0026ebfe;\n        cVar3 = FUN_0026e110();\n        if (cVar3 == '\0') goto LAB_0026ec08;\n        param_3 = param_3 + iVar5;\n      } while (param_4 != param_3);\n    }" if (parenthesized_expression "(param_3 != param_4)" ( (binary_expression "param_3 != param_4" identifier != identifier) )) (compound_statement "{\n      do {\n        uVar2 = *param_3;\n        if (uVar2 - 0xd800 < 0x400) {\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (uVar2 - 0xdc00 < 0x400) goto LAB_0026ebfe;\n        iVar5 = 1;\njoined_r0x0026ebbb:\n        if (uVar1 < uVar2) goto LAB_0026ebfe;\n        cVar3 = FUN_0026e110();\n        if (cVar3 == '\0') goto LAB_0026ec08;\n        param_3 = param_3 + iVar5;\n      } while (param_4 != param_3);\n    }" { (do_statement "do {\n        uVar2 = *param_3;\n        if (uVar2 - 0xd800 < 0x400) {\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (uVar2 - 0xdc00 < 0x400) goto LAB_0026ebfe;\n        iVar5 = 1;\njoined_r0x0026ebbb:\n        if (uVar1 < uVar2) goto LAB_0026ebfe;\n        cVar3 = FUN_0026e110();\n        if (cVar3 == '\0') goto LAB_0026ec08;\n        param_3 = param_3 + iVar5;\n      } while (param_4 != param_3);" do (compound_statement "{\n        uVar2 = *param_3;\n        if (uVar2 - 0xd800 < 0x400) {\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (uVar2 - 0xdc00 < 0x400) goto LAB_0026ebfe;\n        iVar5 = 1;\njoined_r0x0026ebbb:\n        if (uVar1 < uVar2) goto LAB_0026ebfe;\n        cVar3 = FUN_0026e110();\n        if (cVar3 == '\0') goto LAB_0026ec08;\n        param_3 = param_3 + iVar5;\n      }" { (expression_statement "uVar2 = *param_3;" (assignment_expression "uVar2 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (if_statement "if (uVar2 - 0xd800 < 0x400) {\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }" if (parenthesized_expression "(uVar2 - 0xd800 < 0x400)" ( (binary_expression "uVar2 - 0xd800 < 0x400" (binary_expression "uVar2 - 0xd800" identifier - number_literal) < number_literal) )) (compound_statement "{\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }" { (if_statement "if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }" if (parenthesized_expression "(1 < (uint)((int)param_4 - (int)param_3 >> 2))" ( (binary_expression "1 < (uint)((int)param_4 - (int)param_3 >> 2)" number_literal < (call_expression "(uint)((int)param_4 - (int)param_3 >> 2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)param_4 - (int)param_3 >> 2)" ( (binary_expression "(int)param_4 - (int)param_3 >> 2" (binary_expression "(int)param_4 - (int)param_3" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal) )))) )) (compound_statement "{\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }" { (if_statement "if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }" if (parenthesized_expression "(param_3[1] - 0xdc00 < 0x400)" ( (binary_expression "param_3[1] - 0xdc00 < 0x400" (binary_expression "param_3[1] - 0xdc00" (subscript_expression "param_3[1]" identifier [ number_literal ]) - number_literal) < number_literal) )) (compound_statement "{\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }" { (expression_statement "iVar5 = 2;" (assignment_expression "iVar5 = 2" identifier = number_literal) ;) (expression_statement "uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;" (assignment_expression "uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400" identifier = (binary_expression "param_3[1] + 0xfca02400 + uVar2 * 0x400" (binary_expression "param_3[1] + 0xfca02400" (subscript_expression "param_3[1]" identifier [ number_literal ]) + number_literal) + (binary_expression "uVar2 * 0x400" identifier * number_literal))) ;) (goto_statement "goto joined_r0x0026ebbb;" goto statement_identifier ;) })) (labeled_statement "LAB_0026ebfe:\n            uVar4 = 2;" statement_identifier : (expression_statement "uVar4 = 2;" (assignment_expression "uVar4 = 2" identifier = number_literal) ;)) (goto_statement "goto LAB_0026ec0d;" goto statement_identifier ;) })) (break_statement "break;" break ;) })) (if_statement "if (uVar2 - 0xdc00 < 0x400) goto LAB_0026ebfe;" if (parenthesized_expression "(uVar2 - 0xdc00 < 0x400)" ( (binary_expression "uVar2 - 0xdc00 < 0x400" (binary_expression "uVar2 - 0xdc00" identifier - number_literal) < number_literal) )) (goto_statement "goto LAB_0026ebfe;" goto statement_identifier ;)) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (labeled_statement "joined_r0x0026ebbb:\n        if (uVar1 < uVar2) goto LAB_0026ebfe;" statement_identifier : (if_statement "if (uVar1 < uVar2) goto LAB_0026ebfe;" if (parenthesized_expression "(uVar1 < uVar2)" ( (binary_expression "uVar1 < uVar2" identifier < identifier) )) (goto_statement "goto LAB_0026ebfe;" goto statement_identifier ;))) (expression_statement "cVar3 = FUN_0026e110();" (assignment_expression "cVar3 = FUN_0026e110()" identifier = (call_expression "FUN_0026e110()" identifier (argument_list "()" ( )))) ;) (if_statement "if (cVar3 == '\0') goto LAB_0026ec08;" if (parenthesized_expression "(cVar3 == '\0')" ( (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0026ec08;" goto statement_identifier ;)) (expression_statement "param_3 = param_3 + iVar5;" (assignment_expression "param_3 = param_3 + iVar5" identifier = (binary_expression "param_3 + iVar5" identifier + identifier)) ;) }) while (parenthesized_expression "(param_4 != param_3)" ( (binary_expression "param_4 != param_3" identifier != identifier) )) ;) })) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\nLAB_0026ec08:\n    uVar4 = 1;\n  }" else (compound_statement "{\nLAB_0026ec08:\n    uVar4 = 1;\n  }" { (labeled_statement "LAB_0026ec08:\n    uVar4 = 1;" statement_identifier : (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;)) }))) (labeled_statement "LAB_0026ec0d:\n  *param_5 = (int)param_3;" statement_identifier : (expression_statement "*param_5 = (int)param_3;" (assignment_expression "*param_5 = (int)param_3" (pointer_expression "*param_5" * identifier) = (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) ;)) (expression_statement "*param_8 = param_6;" (assignment_expression "*param_8 = param_6" (pointer_expression "*param_8" * identifier) = identifier) ;) (return_statement "return uVar4;" return identifier ;) })))
(translation_unit "/* std::__codecvt_utf8_utf16_base<wchar_t>::do_out(__mbstate_t&, wchar_t const*, wchar_t const*,\n   wchar_t const*&, char*, char*, char*&) const */\n\nundefined4 __thiscall\nstd::__codecvt_utf8_utf16_base<wchar_t>::do_out\n          (__codecvt_utf8_utf16_base<wchar_t> *this,__mbstate_t *param_1,wchar_t *param_2,\n          wchar_t *param_3,wchar_t **param_4,char *param_5,char *param_6,char **param_7)\n\n{\n  wchar32 wVar1;\n  char cVar2;\n  undefined4 uVar3;\n  wchar32 wVar4;\n  int iVar5;\n  char *local_18;\n  char *local_14;\n  \n  local_18 = param_5;\n  wVar1 = *(wchar32 *)(this + 0xc);\n  local_14 = param_6;\n  if ((((byte)this[0x10] & 2) == 0) ||\n     (cVar2 = (anonymous_namespace)::write_utf8_bom(&local_18), cVar2 != '\0')) {\n    if (param_2 != param_3) {\n      do {\n        wVar4 = *param_2;\n        if ((uint)(wVar4 + L'\xffff2800') < 0x400) {\n          if (1 < (uint)((int)param_3 - (int)param_2 >> 2)) {\n            if ((uint)(param_2[1] + L'\xffff2400') < 0x400) {\n              iVar5 = 2;\n              wVar4 = param_2[1] + L'\xfca02400' + wVar4 * 0x400;\n              if ((uint)wVar4 <= (uint)wVar1) goto LAB_0026ebbd;\n            }\nLAB_0026ebfe:\n            uVar3 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (((uint)(wVar4 + L'\xffff2400') < 0x400) || (iVar5 = 1, (uint)wVar1 < (uint)wVar4))\n        goto LAB_0026ebfe;\nLAB_0026ebbd:\n        cVar2 = (anonymous_namespace)::write_utf8_code_point((range *)&local_18,wVar4);\n        if (cVar2 == '\0') goto LAB_0026ec08;\n        param_2 = param_2 + iVar5;\n      } while (param_3 != param_2);\n    }\n    uVar3 = 0;\n  }\n  else {\nLAB_0026ec08:\n    uVar3 = 1;\n  }\nLAB_0026ec0d:\n  *param_4 = param_2;\n  *param_7 = local_18;\n  return uVar3;\n}\n\n" comment (function_definition "undefined4 __thiscall\nstd::__codecvt_utf8_utf16_base<wchar_t>::do_out\n          (__codecvt_utf8_utf16_base<wchar_t> *this,__mbstate_t *param_1,wchar_t *param_2,\n          wchar_t *param_3,wchar_t **param_4,char *param_5,char *param_6,char **param_7)\n\n{\n  wchar32 wVar1;\n  char cVar2;\n  undefined4 uVar3;\n  wchar32 wVar4;\n  int iVar5;\n  char *local_18;\n  char *local_14;\n  \n  local_18 = param_5;\n  wVar1 = *(wchar32 *)(this + 0xc);\n  local_14 = param_6;\n  if ((((byte)this[0x10] & 2) == 0) ||\n     (cVar2 = (anonymous_namespace)::write_utf8_bom(&local_18), cVar2 != '\0')) {\n    if (param_2 != param_3) {\n      do {\n        wVar4 = *param_2;\n        if ((uint)(wVar4 + L'\xffff2800') < 0x400) {\n          if (1 < (uint)((int)param_3 - (int)param_2 >> 2)) {\n            if ((uint)(param_2[1] + L'\xffff2400') < 0x400) {\n              iVar5 = 2;\n              wVar4 = param_2[1] + L'\xfca02400' + wVar4 * 0x400;\n              if ((uint)wVar4 <= (uint)wVar1) goto LAB_0026ebbd;\n            }\nLAB_0026ebfe:\n            uVar3 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (((uint)(wVar4 + L'\xffff2400') < 0x400) || (iVar5 = 1, (uint)wVar1 < (uint)wVar4))\n        goto LAB_0026ebfe;\nLAB_0026ebbd:\n        cVar2 = (anonymous_namespace)::write_utf8_code_point((range *)&local_18,wVar4);\n        if (cVar2 == '\0') goto LAB_0026ec08;\n        param_2 = param_2 + iVar5;\n      } while (param_3 != param_2);\n    }\n    uVar3 = 0;\n  }\n  else {\nLAB_0026ec08:\n    uVar3 = 1;\n  }\nLAB_0026ec0d:\n  *param_4 = param_2;\n  *param_7 = local_18;\n  return uVar3;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::__codecvt_utf8_utf16_base<wchar_t>::" identifier : : identifier < identifier > : :) (function_declarator "do_out\n          (__codecvt_utf8_utf16_base<wchar_t> *this,__mbstate_t *param_1,wchar_t *param_2,\n          wchar_t *param_3,wchar_t **param_4,char *param_5,char *param_6,char **param_7)" identifier (parameter_list "(__codecvt_utf8_utf16_base<wchar_t> *this,__mbstate_t *param_1,wchar_t *param_2,\n          wchar_t *param_3,wchar_t **param_4,char *param_5,char *param_6,char **param_7)" ( (parameter_declaration "__codecvt_utf8_utf16_base<wchar_t> *this" type_identifier (ERROR "<wchar_t>" < identifier >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "__mbstate_t *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "wchar_t *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "wchar_t *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "wchar_t **param_4" type_identifier (pointer_declarator "**param_4" * (pointer_declarator "*param_4" * identifier))) , (parameter_declaration "char *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "char *param_6" primitive_type (pointer_declarator "*param_6" * identifier)) , (parameter_declaration "char **param_7" primitive_type (pointer_declarator "**param_7" * (pointer_declarator "*param_7" * identifier))) ))) (compound_statement "{\n  wchar32 wVar1;\n  char cVar2;\n  undefined4 uVar3;\n  wchar32 wVar4;\n  int iVar5;\n  char *local_18;\n  char *local_14;\n  \n  local_18 = param_5;\n  wVar1 = *(wchar32 *)(this + 0xc);\n  local_14 = param_6;\n  if ((((byte)this[0x10] & 2) == 0) ||\n     (cVar2 = (anonymous_namespace)::write_utf8_bom(&local_18), cVar2 != '\0')) {\n    if (param_2 != param_3) {\n      do {\n        wVar4 = *param_2;\n        if ((uint)(wVar4 + L'\xffff2800') < 0x400) {\n          if (1 < (uint)((int)param_3 - (int)param_2 >> 2)) {\n            if ((uint)(param_2[1] + L'\xffff2400') < 0x400) {\n              iVar5 = 2;\n              wVar4 = param_2[1] + L'\xfca02400' + wVar4 * 0x400;\n              if ((uint)wVar4 <= (uint)wVar1) goto LAB_0026ebbd;\n            }\nLAB_0026ebfe:\n            uVar3 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (((uint)(wVar4 + L'\xffff2400') < 0x400) || (iVar5 = 1, (uint)wVar1 < (uint)wVar4))\n        goto LAB_0026ebfe;\nLAB_0026ebbd:\n        cVar2 = (anonymous_namespace)::write_utf8_code_point((range *)&local_18,wVar4);\n        if (cVar2 == '\0') goto LAB_0026ec08;\n        param_2 = param_2 + iVar5;\n      } while (param_3 != param_2);\n    }\n    uVar3 = 0;\n  }\n  else {\nLAB_0026ec08:\n    uVar3 = 1;\n  }\nLAB_0026ec0d:\n  *param_4 = param_2;\n  *param_7 = local_18;\n  return uVar3;\n}" { (declaration "wchar32 wVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "wchar32 wVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type 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_5;" (assignment_expression "local_18 = param_5" identifier = identifier) ;) (expression_statement "wVar1 = *(wchar32 *)(this + 0xc);" (assignment_expression "wVar1 = *(wchar32 *)(this + 0xc)" identifier = (pointer_expression "*(wchar32 *)(this + 0xc)" * (cast_expression "(wchar32 *)(this + 0xc)" ( (type_descriptor "wchar32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) ))))) ;) (expression_statement "local_14 = param_6;" (assignment_expression "local_14 = param_6" identifier = identifier) ;) (if_statement "if ((((byte)this[0x10] & 2) == 0) ||\n     (cVar2 = (anonymous_namespace)::write_utf8_bom(&local_18), cVar2 != '\0')) {\n    if (param_2 != param_3) {\n      do {\n        wVar4 = *param_2;\n        if ((uint)(wVar4 + L'\xffff2800') < 0x400) {\n          if (1 < (uint)((int)param_3 - (int)param_2 >> 2)) {\n            if ((uint)(param_2[1] + L'\xffff2400') < 0x400) {\n              iVar5 = 2;\n              wVar4 = param_2[1] + L'\xfca02400' + wVar4 * 0x400;\n              if ((uint)wVar4 <= (uint)wVar1) goto LAB_0026ebbd;\n            }\nLAB_0026ebfe:\n            uVar3 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (((uint)(wVar4 + L'\xffff2400') < 0x400) || (iVar5 = 1, (uint)wVar1 < (uint)wVar4))\n        goto LAB_0026ebfe;\nLAB_0026ebbd:\n        cVar2 = (anonymous_namespace)::write_utf8_code_point((range *)&local_18,wVar4);\n        if (cVar2 == '\0') goto LAB_0026ec08;\n        param_2 = param_2 + iVar5;\n      } while (param_3 != param_2);\n    }\n    uVar3 = 0;\n  }\n  else {\nLAB_0026ec08:\n    uVar3 = 1;\n  }" if (parenthesized_expression "((((byte)this[0x10] & 2) == 0) ||\n     (cVar2 = (anonymous_namespace)::write_utf8_bom(&local_18), cVar2 != '\0'))" ( (binary_expression "(((byte)this[0x10] & 2) == 0) ||\n     (cVar2 = (anonymous_namespace)::write_utf8_bom(&local_18), cVar2 != '\0')" (parenthesized_expression "(((byte)this[0x10] & 2) == 0)" ( (binary_expression "((byte)this[0x10] & 2) == 0" (parenthesized_expression "((byte)this[0x10] & 2)" ( (binary_expression "(byte)this[0x10] & 2" (cast_expression "(byte)this[0x10]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "this[0x10]" identifier [ number_literal ])) & number_literal) )) == number_literal) )) || (parenthesized_expression "(cVar2 = (anonymous_namespace)::write_utf8_bom(&local_18), cVar2 != '\0')" ( (ERROR "cVar2 = (anonymous_namespace)::" (assignment_expression "cVar2 = (anonymous_namespace)" identifier = (parenthesized_expression "(anonymous_namespace)" ( identifier ))) : :) (comma_expression "write_utf8_bom(&local_18), cVar2 != '\0'" (call_expression "write_utf8_bom(&local_18)" identifier (argument_list "(&local_18)" ( (pointer_expression "&local_18" & identifier) ))) , (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n    if (param_2 != param_3) {\n      do {\n        wVar4 = *param_2;\n        if ((uint)(wVar4 + L'\xffff2800') < 0x400) {\n          if (1 < (uint)((int)param_3 - (int)param_2 >> 2)) {\n            if ((uint)(param_2[1] + L'\xffff2400') < 0x400) {\n              iVar5 = 2;\n              wVar4 = param_2[1] + L'\xfca02400' + wVar4 * 0x400;\n              if ((uint)wVar4 <= (uint)wVar1) goto LAB_0026ebbd;\n            }\nLAB_0026ebfe:\n            uVar3 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (((uint)(wVar4 + L'\xffff2400') < 0x400) || (iVar5 = 1, (uint)wVar1 < (uint)wVar4))\n        goto LAB_0026ebfe;\nLAB_0026ebbd:\n        cVar2 = (anonymous_namespace)::write_utf8_code_point((range *)&local_18,wVar4);\n        if (cVar2 == '\0') goto LAB_0026ec08;\n        param_2 = param_2 + iVar5;\n      } while (param_3 != param_2);\n    }\n    uVar3 = 0;\n  }" { (if_statement "if (param_2 != param_3) {\n      do {\n        wVar4 = *param_2;\n        if ((uint)(wVar4 + L'\xffff2800') < 0x400) {\n          if (1 < (uint)((int)param_3 - (int)param_2 >> 2)) {\n            if ((uint)(param_2[1] + L'\xffff2400') < 0x400) {\n              iVar5 = 2;\n              wVar4 = param_2[1] + L'\xfca02400' + wVar4 * 0x400;\n              if ((uint)wVar4 <= (uint)wVar1) goto LAB_0026ebbd;\n            }\nLAB_0026ebfe:\n            uVar3 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (((uint)(wVar4 + L'\xffff2400') < 0x400) || (iVar5 = 1, (uint)wVar1 < (uint)wVar4))\n        goto LAB_0026ebfe;\nLAB_0026ebbd:\n        cVar2 = (anonymous_namespace)::write_utf8_code_point((range *)&local_18,wVar4);\n        if (cVar2 == '\0') goto LAB_0026ec08;\n        param_2 = param_2 + iVar5;\n      } while (param_3 != param_2);\n    }" if (parenthesized_expression "(param_2 != param_3)" ( (binary_expression "param_2 != param_3" identifier != identifier) )) (compound_statement "{\n      do {\n        wVar4 = *param_2;\n        if ((uint)(wVar4 + L'\xffff2800') < 0x400) {\n          if (1 < (uint)((int)param_3 - (int)param_2 >> 2)) {\n            if ((uint)(param_2[1] + L'\xffff2400') < 0x400) {\n              iVar5 = 2;\n              wVar4 = param_2[1] + L'\xfca02400' + wVar4 * 0x400;\n              if ((uint)wVar4 <= (uint)wVar1) goto LAB_0026ebbd;\n            }\nLAB_0026ebfe:\n            uVar3 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (((uint)(wVar4 + L'\xffff2400') < 0x400) || (iVar5 = 1, (uint)wVar1 < (uint)wVar4))\n        goto LAB_0026ebfe;\nLAB_0026ebbd:\n        cVar2 = (anonymous_namespace)::write_utf8_code_point((range *)&local_18,wVar4);\n        if (cVar2 == '\0') goto LAB_0026ec08;\n        param_2 = param_2 + iVar5;\n      } while (param_3 != param_2);\n    }" { (do_statement "do {\n        wVar4 = *param_2;\n        if ((uint)(wVar4 + L'\xffff2800') < 0x400) {\n          if (1 < (uint)((int)param_3 - (int)param_2 >> 2)) {\n            if ((uint)(param_2[1] + L'\xffff2400') < 0x400) {\n              iVar5 = 2;\n              wVar4 = param_2[1] + L'\xfca02400' + wVar4 * 0x400;\n              if ((uint)wVar4 <= (uint)wVar1) goto LAB_0026ebbd;\n            }\nLAB_0026ebfe:\n            uVar3 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (((uint)(wVar4 + L'\xffff2400') < 0x400) || (iVar5 = 1, (uint)wVar1 < (uint)wVar4))\n        goto LAB_0026ebfe;\nLAB_0026ebbd:\n        cVar2 = (anonymous_namespace)::write_utf8_code_point((range *)&local_18,wVar4);\n        if (cVar2 == '\0') goto LAB_0026ec08;\n        param_2 = param_2 + iVar5;\n      } while (param_3 != param_2);" do (compound_statement "{\n        wVar4 = *param_2;\n        if ((uint)(wVar4 + L'\xffff2800') < 0x400) {\n          if (1 < (uint)((int)param_3 - (int)param_2 >> 2)) {\n            if ((uint)(param_2[1] + L'\xffff2400') < 0x400) {\n              iVar5 = 2;\n              wVar4 = param_2[1] + L'\xfca02400' + wVar4 * 0x400;\n              if ((uint)wVar4 <= (uint)wVar1) goto LAB_0026ebbd;\n            }\nLAB_0026ebfe:\n            uVar3 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (((uint)(wVar4 + L'\xffff2400') < 0x400) || (iVar5 = 1, (uint)wVar1 < (uint)wVar4))\n        goto LAB_0026ebfe;\nLAB_0026ebbd:\n        cVar2 = (anonymous_namespace)::write_utf8_code_point((range *)&local_18,wVar4);\n        if (cVar2 == '\0') goto LAB_0026ec08;\n        param_2 = param_2 + iVar5;\n      }" { (expression_statement "wVar4 = *param_2;" (assignment_expression "wVar4 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if ((uint)(wVar4 + L'\xffff2800') < 0x400) {\n          if (1 < (uint)((int)param_3 - (int)param_2 >> 2)) {\n            if ((uint)(param_2[1] + L'\xffff2400') < 0x400) {\n              iVar5 = 2;\n              wVar4 = param_2[1] + L'\xfca02400' + wVar4 * 0x400;\n              if ((uint)wVar4 <= (uint)wVar1) goto LAB_0026ebbd;\n            }\nLAB_0026ebfe:\n            uVar3 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }" if (parenthesized_expression "((uint)(wVar4 + L'\xffff2800') < 0x400)" ( (binary_expression "(uint)(wVar4 + L'\xffff2800') < 0x400" (call_expression "(uint)(wVar4 + L'\xffff2800')" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(wVar4 + L'\xffff2800')" ( (binary_expression "wVar4 + L'\xffff2800'" identifier + (char_literal "L'\xffff2800'" L' escape_sequence character character character character ')) ))) < number_literal) )) (compound_statement "{\n          if (1 < (uint)((int)param_3 - (int)param_2 >> 2)) {\n            if ((uint)(param_2[1] + L'\xffff2400') < 0x400) {\n              iVar5 = 2;\n              wVar4 = param_2[1] + L'\xfca02400' + wVar4 * 0x400;\n              if ((uint)wVar4 <= (uint)wVar1) goto LAB_0026ebbd;\n            }\nLAB_0026ebfe:\n            uVar3 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }" { (if_statement "if (1 < (uint)((int)param_3 - (int)param_2 >> 2)) {\n            if ((uint)(param_2[1] + L'\xffff2400') < 0x400) {\n              iVar5 = 2;\n              wVar4 = param_2[1] + L'\xfca02400' + wVar4 * 0x400;\n              if ((uint)wVar4 <= (uint)wVar1) goto LAB_0026ebbd;\n            }\nLAB_0026ebfe:\n            uVar3 = 2;\n            goto LAB_0026ec0d;\n          }" if (parenthesized_expression "(1 < (uint)((int)param_3 - (int)param_2 >> 2))" ( (binary_expression "1 < (uint)((int)param_3 - (int)param_2 >> 2)" number_literal < (call_expression "(uint)((int)param_3 - (int)param_2 >> 2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)param_3 - (int)param_2 >> 2)" ( (binary_expression "(int)param_3 - (int)param_2 >> 2" (binary_expression "(int)param_3 - (int)param_2" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal) )))) )) (compound_statement "{\n            if ((uint)(param_2[1] + L'\xffff2400') < 0x400) {\n              iVar5 = 2;\n              wVar4 = param_2[1] + L'\xfca02400' + wVar4 * 0x400;\n              if ((uint)wVar4 <= (uint)wVar1) goto LAB_0026ebbd;\n            }\nLAB_0026ebfe:\n            uVar3 = 2;\n            goto LAB_0026ec0d;\n          }" { (if_statement "if ((uint)(param_2[1] + L'\xffff2400') < 0x400) {\n              iVar5 = 2;\n              wVar4 = param_2[1] + L'\xfca02400' + wVar4 * 0x400;\n              if ((uint)wVar4 <= (uint)wVar1) goto LAB_0026ebbd;\n            }" if (parenthesized_expression "((uint)(param_2[1] + L'\xffff2400') < 0x400)" ( (binary_expression "(uint)(param_2[1] + L'\xffff2400') < 0x400" (call_expression "(uint)(param_2[1] + L'\xffff2400')" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2[1] + L'\xffff2400')" ( (binary_expression "param_2[1] + L'\xffff2400'" (subscript_expression "param_2[1]" identifier [ number_literal ]) + (char_literal "L'\xffff2400'" L' escape_sequence character character character character ')) ))) < number_literal) )) (compound_statement "{\n              iVar5 = 2;\n              wVar4 = param_2[1] + L'\xfca02400' + wVar4 * 0x400;\n              if ((uint)wVar4 <= (uint)wVar1) goto LAB_0026ebbd;\n            }" { (expression_statement "iVar5 = 2;" (assignment_expression "iVar5 = 2" identifier = number_literal) ;) (expression_statement "wVar4 = param_2[1] + L'\xfca02400' + wVar4 * 0x400;" (assignment_expression "wVar4 = param_2[1] + L'\xfca02400' + wVar4 * 0x400" identifier = (binary_expression "param_2[1] + L'\xfca02400' + wVar4 * 0x400" (binary_expression "param_2[1] + L'\xfca02400'" (subscript_expression "param_2[1]" identifier [ number_literal ]) + (char_literal "L'\xfca02400'" L' escape_sequence character character character character ')) + (binary_expression "wVar4 * 0x400" identifier * number_literal))) ;) (if_statement "if ((uint)wVar4 <= (uint)wVar1) goto LAB_0026ebbd;" if (parenthesized_expression "((uint)wVar4 <= (uint)wVar1)" ( (binary_expression "(uint)wVar4 <= (uint)wVar1" (cast_expression "(uint)wVar4" ( (type_descriptor "uint" type_identifier) ) identifier) <= (cast_expression "(uint)wVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) )) (goto_statement "goto LAB_0026ebbd;" goto statement_identifier ;)) })) (labeled_statement "LAB_0026ebfe:\n            uVar3 = 2;" statement_identifier : (expression_statement "uVar3 = 2;" (assignment_expression "uVar3 = 2" identifier = number_literal) ;)) (goto_statement "goto LAB_0026ec0d;" goto statement_identifier ;) })) (break_statement "break;" break ;) })) (if_statement "if (((uint)(wVar4 + L'\xffff2400') < 0x400) || (iVar5 = 1, (uint)wVar1 < (uint)wVar4))\n        goto LAB_0026ebfe;" if (parenthesized_expression "(((uint)(wVar4 + L'\xffff2400') < 0x400) || (iVar5 = 1, (uint)wVar1 < (uint)wVar4))" ( (binary_expression "((uint)(wVar4 + L'\xffff2400') < 0x400) || (iVar5 = 1, (uint)wVar1 < (uint)wVar4)" (parenthesized_expression "((uint)(wVar4 + L'\xffff2400') < 0x400)" ( (binary_expression "(uint)(wVar4 + L'\xffff2400') < 0x400" (call_expression "(uint)(wVar4 + L'\xffff2400')" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(wVar4 + L'\xffff2400')" ( (binary_expression "wVar4 + L'\xffff2400'" identifier + (char_literal "L'\xffff2400'" L' escape_sequence character character character character ')) ))) < number_literal) )) || (parenthesized_expression "(iVar5 = 1, (uint)wVar1 < (uint)wVar4)" ( (comma_expression "iVar5 = 1, (uint)wVar1 < (uint)wVar4" (assignment_expression "iVar5 = 1" identifier = number_literal) , (binary_expression "(uint)wVar1 < (uint)wVar4" (cast_expression "(uint)wVar1" ( (type_descriptor "uint" type_identifier) ) identifier) < (cast_expression "(uint)wVar4" ( (type_descriptor "uint" type_identifier) ) identifier))) ))) )) (goto_statement "goto LAB_0026ebfe;" goto statement_identifier ;)) (labeled_statement "LAB_0026ebbd:\n        cVar2 = (anonymous_namespace)::write_utf8_code_point((range *)&local_18,wVar4);" statement_identifier : (ERROR "cVar2 = (anonymous_namespace)::" (assignment_expression "cVar2 = (anonymous_namespace)" identifier = (parenthesized_expression "(anonymous_namespace)" ( identifier ))) : :) (expression_statement "write_utf8_code_point((range *)&local_18,wVar4);" (call_expression "write_utf8_code_point((range *)&local_18,wVar4)" identifier (argument_list "((range *)&local_18,wVar4)" ( (cast_expression "(range *)&local_18" ( (type_descriptor "range *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_18" & identifier)) , identifier ))) ;)) (if_statement "if (cVar2 == '\0') goto LAB_0026ec08;" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0026ec08;" goto statement_identifier ;)) (expression_statement "param_2 = param_2 + iVar5;" (assignment_expression "param_2 = param_2 + iVar5" identifier = (binary_expression "param_2 + iVar5" identifier + identifier)) ;) }) while (parenthesized_expression "(param_3 != param_2)" ( (binary_expression "param_3 != param_2" identifier != identifier) )) ;) })) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\nLAB_0026ec08:\n    uVar3 = 1;\n  }" else (compound_statement "{\nLAB_0026ec08:\n    uVar3 = 1;\n  }" { (labeled_statement "LAB_0026ec08:\n    uVar3 = 1;" statement_identifier : (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;)) }))) (labeled_statement "LAB_0026ec0d:\n  *param_4 = param_2;" statement_identifier : (expression_statement "*param_4 = param_2;" (assignment_expression "*param_4 = param_2" (pointer_expression "*param_4" * identifier) = identifier) ;)) (expression_statement "*param_7 = local_18;" (assignment_expression "*param_7 = local_18" (pointer_expression "*param_7" * identifier) = identifier) ;) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "undefined4\nFUN_0026eb40(int param_1,undefined4 param_2,uint *param_3,uint *param_4,int *param_5,\n            undefined4 param_6,undefined4 param_7,undefined4 *param_8)\n\n{\n  uint uVar1;\n  uint uVar2;\n  char cVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  uVar1 = *(uint *)(param_1 + 0xc);\n  if (((*(byte *)(param_1 + 0x10) & 2) == 0) || (cVar3 = FUN_0026e370(), cVar3 != '\0')) {\n    if (param_3 != param_4) {\n      do {\n        uVar2 = *param_3;\n        if (uVar2 - 0xd800 < 0x400) {\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (uVar2 - 0xdc00 < 0x400) goto LAB_0026ebfe;\n        iVar5 = 1;\njoined_r0x0026ebbb:\n        if (uVar1 < uVar2) goto LAB_0026ebfe;\n        cVar3 = FUN_0026e110();\n        if (cVar3 == '\0') goto LAB_0026ec08;\n        param_3 = param_3 + iVar5;\n      } while (param_4 != param_3);\n    }\n    uVar4 = 0;\n  }\n  else {\nLAB_0026ec08:\n    uVar4 = 1;\n  }\nLAB_0026ec0d:\n  *param_5 = (int)param_3;\n  *param_8 = param_6;\n  return uVar4;\n}\n\n" (function_definition "undefined4\nFUN_0026eb40(int param_1,undefined4 param_2,uint *param_3,uint *param_4,int *param_5,\n            undefined4 param_6,undefined4 param_7,undefined4 *param_8)\n\n{\n  uint uVar1;\n  uint uVar2;\n  char cVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  uVar1 = *(uint *)(param_1 + 0xc);\n  if (((*(byte *)(param_1 + 0x10) & 2) == 0) || (cVar3 = FUN_0026e370(), cVar3 != '\0')) {\n    if (param_3 != param_4) {\n      do {\n        uVar2 = *param_3;\n        if (uVar2 - 0xd800 < 0x400) {\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (uVar2 - 0xdc00 < 0x400) goto LAB_0026ebfe;\n        iVar5 = 1;\njoined_r0x0026ebbb:\n        if (uVar1 < uVar2) goto LAB_0026ebfe;\n        cVar3 = FUN_0026e110();\n        if (cVar3 == '\0') goto LAB_0026ec08;\n        param_3 = param_3 + iVar5;\n      } while (param_4 != param_3);\n    }\n    uVar4 = 0;\n  }\n  else {\nLAB_0026ec08:\n    uVar4 = 1;\n  }\nLAB_0026ec0d:\n  *param_5 = (int)param_3;\n  *param_8 = param_6;\n  return uVar4;\n}" type_identifier (function_declarator "FUN_0026eb40(int param_1,undefined4 param_2,uint *param_3,uint *param_4,int *param_5,\n            undefined4 param_6,undefined4 param_7,undefined4 *param_8)" identifier (parameter_list "(int param_1,undefined4 param_2,uint *param_3,uint *param_4,int *param_5,\n            undefined4 param_6,undefined4 param_7,undefined4 *param_8)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "undefined4 *param_8" type_identifier (pointer_declarator "*param_8" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  char cVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  uVar1 = *(uint *)(param_1 + 0xc);\n  if (((*(byte *)(param_1 + 0x10) & 2) == 0) || (cVar3 = FUN_0026e370(), cVar3 != '\0')) {\n    if (param_3 != param_4) {\n      do {\n        uVar2 = *param_3;\n        if (uVar2 - 0xd800 < 0x400) {\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (uVar2 - 0xdc00 < 0x400) goto LAB_0026ebfe;\n        iVar5 = 1;\njoined_r0x0026ebbb:\n        if (uVar1 < uVar2) goto LAB_0026ebfe;\n        cVar3 = FUN_0026e110();\n        if (cVar3 == '\0') goto LAB_0026ec08;\n        param_3 = param_3 + iVar5;\n      } while (param_4 != param_3);\n    }\n    uVar4 = 0;\n  }\n  else {\nLAB_0026ec08:\n    uVar4 = 1;\n  }\nLAB_0026ec0d:\n  *param_5 = (int)param_3;\n  *param_8 = param_6;\n  return uVar4;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "uVar1 = *(uint *)(param_1 + 0xc);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0xc)" identifier = (pointer_expression "*(uint *)(param_1 + 0xc)" * (cast_expression "(uint *)(param_1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (((*(byte *)(param_1 + 0x10) & 2) == 0) || (cVar3 = FUN_0026e370(), cVar3 != '\0')) {\n    if (param_3 != param_4) {\n      do {\n        uVar2 = *param_3;\n        if (uVar2 - 0xd800 < 0x400) {\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (uVar2 - 0xdc00 < 0x400) goto LAB_0026ebfe;\n        iVar5 = 1;\njoined_r0x0026ebbb:\n        if (uVar1 < uVar2) goto LAB_0026ebfe;\n        cVar3 = FUN_0026e110();\n        if (cVar3 == '\0') goto LAB_0026ec08;\n        param_3 = param_3 + iVar5;\n      } while (param_4 != param_3);\n    }\n    uVar4 = 0;\n  }\n  else {\nLAB_0026ec08:\n    uVar4 = 1;\n  }" if (parenthesized_expression "(((*(byte *)(param_1 + 0x10) & 2) == 0) || (cVar3 = FUN_0026e370(), cVar3 != '\0'))" ( (binary_expression "((*(byte *)(param_1 + 0x10) & 2) == 0) || (cVar3 = FUN_0026e370(), cVar3 != '\0')" (parenthesized_expression "((*(byte *)(param_1 + 0x10) & 2) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x10) & 2) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x10) & 2)" ( (binary_expression "*(byte *)(param_1 + 0x10) & 2" (pointer_expression "*(byte *)(param_1 + 0x10)" * (cast_expression "(byte *)(param_1 + 0x10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) & number_literal) )) == number_literal) )) || (parenthesized_expression "(cVar3 = FUN_0026e370(), cVar3 != '\0')" ( (comma_expression "cVar3 = FUN_0026e370(), cVar3 != '\0'" (assignment_expression "cVar3 = FUN_0026e370()" identifier = (call_expression "FUN_0026e370()" identifier (argument_list "()" ( )))) , (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n    if (param_3 != param_4) {\n      do {\n        uVar2 = *param_3;\n        if (uVar2 - 0xd800 < 0x400) {\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (uVar2 - 0xdc00 < 0x400) goto LAB_0026ebfe;\n        iVar5 = 1;\njoined_r0x0026ebbb:\n        if (uVar1 < uVar2) goto LAB_0026ebfe;\n        cVar3 = FUN_0026e110();\n        if (cVar3 == '\0') goto LAB_0026ec08;\n        param_3 = param_3 + iVar5;\n      } while (param_4 != param_3);\n    }\n    uVar4 = 0;\n  }" { (if_statement "if (param_3 != param_4) {\n      do {\n        uVar2 = *param_3;\n        if (uVar2 - 0xd800 < 0x400) {\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (uVar2 - 0xdc00 < 0x400) goto LAB_0026ebfe;\n        iVar5 = 1;\njoined_r0x0026ebbb:\n        if (uVar1 < uVar2) goto LAB_0026ebfe;\n        cVar3 = FUN_0026e110();\n        if (cVar3 == '\0') goto LAB_0026ec08;\n        param_3 = param_3 + iVar5;\n      } while (param_4 != param_3);\n    }" if (parenthesized_expression "(param_3 != param_4)" ( (binary_expression "param_3 != param_4" identifier != identifier) )) (compound_statement "{\n      do {\n        uVar2 = *param_3;\n        if (uVar2 - 0xd800 < 0x400) {\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (uVar2 - 0xdc00 < 0x400) goto LAB_0026ebfe;\n        iVar5 = 1;\njoined_r0x0026ebbb:\n        if (uVar1 < uVar2) goto LAB_0026ebfe;\n        cVar3 = FUN_0026e110();\n        if (cVar3 == '\0') goto LAB_0026ec08;\n        param_3 = param_3 + iVar5;\n      } while (param_4 != param_3);\n    }" { (do_statement "do {\n        uVar2 = *param_3;\n        if (uVar2 - 0xd800 < 0x400) {\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (uVar2 - 0xdc00 < 0x400) goto LAB_0026ebfe;\n        iVar5 = 1;\njoined_r0x0026ebbb:\n        if (uVar1 < uVar2) goto LAB_0026ebfe;\n        cVar3 = FUN_0026e110();\n        if (cVar3 == '\0') goto LAB_0026ec08;\n        param_3 = param_3 + iVar5;\n      } while (param_4 != param_3);" do (compound_statement "{\n        uVar2 = *param_3;\n        if (uVar2 - 0xd800 < 0x400) {\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (uVar2 - 0xdc00 < 0x400) goto LAB_0026ebfe;\n        iVar5 = 1;\njoined_r0x0026ebbb:\n        if (uVar1 < uVar2) goto LAB_0026ebfe;\n        cVar3 = FUN_0026e110();\n        if (cVar3 == '\0') goto LAB_0026ec08;\n        param_3 = param_3 + iVar5;\n      }" { (expression_statement "uVar2 = *param_3;" (assignment_expression "uVar2 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (if_statement "if (uVar2 - 0xd800 < 0x400) {\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }" if (parenthesized_expression "(uVar2 - 0xd800 < 0x400)" ( (binary_expression "uVar2 - 0xd800 < 0x400" (binary_expression "uVar2 - 0xd800" identifier - number_literal) < number_literal) )) (compound_statement "{\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }" { (if_statement "if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }" if (parenthesized_expression "(1 < (uint)((int)param_4 - (int)param_3 >> 2))" ( (binary_expression "1 < (uint)((int)param_4 - (int)param_3 >> 2)" number_literal < (call_expression "(uint)((int)param_4 - (int)param_3 >> 2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)param_4 - (int)param_3 >> 2)" ( (binary_expression "(int)param_4 - (int)param_3 >> 2" (binary_expression "(int)param_4 - (int)param_3" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal) )))) )) (compound_statement "{\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }" { (if_statement "if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }" if (parenthesized_expression "(param_3[1] - 0xdc00 < 0x400)" ( (binary_expression "param_3[1] - 0xdc00 < 0x400" (binary_expression "param_3[1] - 0xdc00" (subscript_expression "param_3[1]" identifier [ number_literal ]) - number_literal) < number_literal) )) (compound_statement "{\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }" { (expression_statement "iVar5 = 2;" (assignment_expression "iVar5 = 2" identifier = number_literal) ;) (expression_statement "uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;" (assignment_expression "uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400" identifier = (binary_expression "param_3[1] + 0xfca02400 + uVar2 * 0x400" (binary_expression "param_3[1] + 0xfca02400" (subscript_expression "param_3[1]" identifier [ number_literal ]) + number_literal) + (binary_expression "uVar2 * 0x400" identifier * number_literal))) ;) (goto_statement "goto joined_r0x0026ebbb;" goto statement_identifier ;) })) (labeled_statement "LAB_0026ebfe:\n            uVar4 = 2;" statement_identifier : (expression_statement "uVar4 = 2;" (assignment_expression "uVar4 = 2" identifier = number_literal) ;)) (goto_statement "goto LAB_0026ec0d;" goto statement_identifier ;) })) (break_statement "break;" break ;) })) (if_statement "if (uVar2 - 0xdc00 < 0x400) goto LAB_0026ebfe;" if (parenthesized_expression "(uVar2 - 0xdc00 < 0x400)" ( (binary_expression "uVar2 - 0xdc00 < 0x400" (binary_expression "uVar2 - 0xdc00" identifier - number_literal) < number_literal) )) (goto_statement "goto LAB_0026ebfe;" goto statement_identifier ;)) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (labeled_statement "joined_r0x0026ebbb:\n        if (uVar1 < uVar2) goto LAB_0026ebfe;" statement_identifier : (if_statement "if (uVar1 < uVar2) goto LAB_0026ebfe;" if (parenthesized_expression "(uVar1 < uVar2)" ( (binary_expression "uVar1 < uVar2" identifier < identifier) )) (goto_statement "goto LAB_0026ebfe;" goto statement_identifier ;))) (expression_statement "cVar3 = FUN_0026e110();" (assignment_expression "cVar3 = FUN_0026e110()" identifier = (call_expression "FUN_0026e110()" identifier (argument_list "()" ( )))) ;) (if_statement "if (cVar3 == '\0') goto LAB_0026ec08;" if (parenthesized_expression "(cVar3 == '\0')" ( (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0026ec08;" goto statement_identifier ;)) (expression_statement "param_3 = param_3 + iVar5;" (assignment_expression "param_3 = param_3 + iVar5" identifier = (binary_expression "param_3 + iVar5" identifier + identifier)) ;) }) while (parenthesized_expression "(param_4 != param_3)" ( (binary_expression "param_4 != param_3" identifier != identifier) )) ;) })) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\nLAB_0026ec08:\n    uVar4 = 1;\n  }" else (compound_statement "{\nLAB_0026ec08:\n    uVar4 = 1;\n  }" { (labeled_statement "LAB_0026ec08:\n    uVar4 = 1;" statement_identifier : (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;)) }))) (labeled_statement "LAB_0026ec0d:\n  *param_5 = (int)param_3;" statement_identifier : (expression_statement "*param_5 = (int)param_3;" (assignment_expression "*param_5 = (int)param_3" (pointer_expression "*param_5" * identifier) = (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) ;)) (expression_statement "*param_8 = param_6;" (assignment_expression "*param_8 = param_6" (pointer_expression "*param_8" * identifier) = identifier) ;) (return_statement "return uVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (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 IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression IDENT != (char_literal ' escape_sequence '))) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) >> LIT) )))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) - LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) + (binary_expression IDENT * LIT))) ;) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (goto_statement goto statement_identifier ;) })) (break_statement break ;) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (goto_statement goto statement_identifier ;))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4\nFUN_0026eb40(int param_1,undefined4 param_2,uint *param_3,uint *param_4,int *param_5,\n            undefined4 param_6,undefined4 param_7,undefined4 *param_8)\n\n{\n  uint uVar1;\n  uint uVar2;\n  char cVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  uVar1 = *(uint *)(param_1 + 0xc);\n  if (((*(byte *)(param_1 + 0x10) & 2) == 0) || (cVar3 = FUN_0026e370(), cVar3 != '\0')) {\n    if (param_3 != param_4) {\n      do {\n        uVar2 = *param_3;\n        if (uVar2 - 0xd800 < 0x400) {\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (uVar2 - 0xdc00 < 0x400) goto LAB_0026ebfe;\n        iVar5 = 1;\njoined_r0x0026ebbb:\n        if (uVar1 < uVar2) goto LAB_0026ebfe;\n        cVar3 = FUN_0026e110();\n        if (cVar3 == '\0') goto LAB_0026ec08;\n        param_3 = param_3 + iVar5;\n      } while (param_4 != param_3);\n    }\n    uVar4 = 0;\n  }\n  else {\nLAB_0026ec08:\n    uVar4 = 1;\n  }\nLAB_0026ec0d:\n  *param_5 = (int)param_3;\n  *param_8 = param_6;\n  return uVar4;\n}" (type_identifier "undefined4") (function_declarator "FUN_0026eb40(int param_1,undefined4 param_2,uint *param_3,uint *param_4,int *param_5,\n            undefined4 param_6,undefined4 param_7,undefined4 *param_8)" (identifier "FUN_0026eb40") (parameter_list "(int param_1,undefined4 param_2,uint *param_3,uint *param_4,int *param_5,\n            undefined4 param_6,undefined4 param_7,undefined4 *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 "uint *param_3" (type_identifier "uint") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "uint *param_4" (type_identifier "uint") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "int *param_5" (primitive_type "int") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) (, ",") (parameter_declaration "undefined4 param_7" (type_identifier "undefined4") (identifier "param_7")) (, ",") (parameter_declaration "undefined4 *param_8" (type_identifier "undefined4") (pointer_declarator "*param_8" (* "*") (identifier "param_8"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  char cVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  uVar1 = *(uint *)(param_1 + 0xc);\n  if (((*(byte *)(param_1 + 0x10) & 2) == 0) || (cVar3 = FUN_0026e370(), cVar3 != '\0')) {\n    if (param_3 != param_4) {\n      do {\n        uVar2 = *param_3;\n        if (uVar2 - 0xd800 < 0x400) {\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (uVar2 - 0xdc00 < 0x400) goto LAB_0026ebfe;\n        iVar5 = 1;\njoined_r0x0026ebbb:\n        if (uVar1 < uVar2) goto LAB_0026ebfe;\n        cVar3 = FUN_0026e110();\n        if (cVar3 == '\0') goto LAB_0026ec08;\n        param_3 = param_3 + iVar5;\n      } while (param_4 != param_3);\n    }\n    uVar4 = 0;\n  }\n  else {\nLAB_0026ec08:\n    uVar4 = 1;\n  }\nLAB_0026ec0d:\n  *param_5 = (int)param_3;\n  *param_8 = param_6;\n  return uVar4;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "char cVar3;" (primitive_type "char") (identifier "cVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (expression_statement "uVar1 = *(uint *)(param_1 + 0xc);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0xc)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(param_1 + 0xc)" (* "*") (cast_expression "(uint *)(param_1 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (((*(byte *)(param_1 + 0x10) & 2) == 0) || (cVar3 = FUN_0026e370(), cVar3 != '\0')) {\n    if (param_3 != param_4) {\n      do {\n        uVar2 = *param_3;\n        if (uVar2 - 0xd800 < 0x400) {\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (uVar2 - 0xdc00 < 0x400) goto LAB_0026ebfe;\n        iVar5 = 1;\njoined_r0x0026ebbb:\n        if (uVar1 < uVar2) goto LAB_0026ebfe;\n        cVar3 = FUN_0026e110();\n        if (cVar3 == '\0') goto LAB_0026ec08;\n        param_3 = param_3 + iVar5;\n      } while (param_4 != param_3);\n    }\n    uVar4 = 0;\n  }\n  else {\nLAB_0026ec08:\n    uVar4 = 1;\n  }" (if "if") (parenthesized_expression "(((*(byte *)(param_1 + 0x10) & 2) == 0) || (cVar3 = FUN_0026e370(), cVar3 != '\0'))" (( "(") (binary_expression "((*(byte *)(param_1 + 0x10) & 2) == 0) || (cVar3 = FUN_0026e370(), cVar3 != '\0')" (parenthesized_expression "((*(byte *)(param_1 + 0x10) & 2) == 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0x10) & 2) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x10) & 2)" (( "(") (binary_expression "*(byte *)(param_1 + 0x10) & 2" (pointer_expression "*(byte *)(param_1 + 0x10)" (* "*") (cast_expression "(byte *)(param_1 + 0x10)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(cVar3 = FUN_0026e370(), cVar3 != '\0')" (( "(") (comma_expression "cVar3 = FUN_0026e370(), cVar3 != '\0'" (assignment_expression "cVar3 = FUN_0026e370()" (identifier "cVar3") (= "=") (call_expression "FUN_0026e370()" (identifier "FUN_0026e370") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "cVar3 != '\0'" (identifier "cVar3") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) () ")"))) () ")")) (compound_statement "{\n    if (param_3 != param_4) {\n      do {\n        uVar2 = *param_3;\n        if (uVar2 - 0xd800 < 0x400) {\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (uVar2 - 0xdc00 < 0x400) goto LAB_0026ebfe;\n        iVar5 = 1;\njoined_r0x0026ebbb:\n        if (uVar1 < uVar2) goto LAB_0026ebfe;\n        cVar3 = FUN_0026e110();\n        if (cVar3 == '\0') goto LAB_0026ec08;\n        param_3 = param_3 + iVar5;\n      } while (param_4 != param_3);\n    }\n    uVar4 = 0;\n  }" ({ "{") (if_statement "if (param_3 != param_4) {\n      do {\n        uVar2 = *param_3;\n        if (uVar2 - 0xd800 < 0x400) {\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (uVar2 - 0xdc00 < 0x400) goto LAB_0026ebfe;\n        iVar5 = 1;\njoined_r0x0026ebbb:\n        if (uVar1 < uVar2) goto LAB_0026ebfe;\n        cVar3 = FUN_0026e110();\n        if (cVar3 == '\0') goto LAB_0026ec08;\n        param_3 = param_3 + iVar5;\n      } while (param_4 != param_3);\n    }" (if "if") (parenthesized_expression "(param_3 != param_4)" (( "(") (binary_expression "param_3 != param_4" (identifier "param_3") (!= "!=") (identifier "param_4")) () ")")) (compound_statement "{\n      do {\n        uVar2 = *param_3;\n        if (uVar2 - 0xd800 < 0x400) {\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (uVar2 - 0xdc00 < 0x400) goto LAB_0026ebfe;\n        iVar5 = 1;\njoined_r0x0026ebbb:\n        if (uVar1 < uVar2) goto LAB_0026ebfe;\n        cVar3 = FUN_0026e110();\n        if (cVar3 == '\0') goto LAB_0026ec08;\n        param_3 = param_3 + iVar5;\n      } while (param_4 != param_3);\n    }" ({ "{") (do_statement "do {\n        uVar2 = *param_3;\n        if (uVar2 - 0xd800 < 0x400) {\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (uVar2 - 0xdc00 < 0x400) goto LAB_0026ebfe;\n        iVar5 = 1;\njoined_r0x0026ebbb:\n        if (uVar1 < uVar2) goto LAB_0026ebfe;\n        cVar3 = FUN_0026e110();\n        if (cVar3 == '\0') goto LAB_0026ec08;\n        param_3 = param_3 + iVar5;\n      } while (param_4 != param_3);" (do "do") (compound_statement "{\n        uVar2 = *param_3;\n        if (uVar2 - 0xd800 < 0x400) {\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }\n        if (uVar2 - 0xdc00 < 0x400) goto LAB_0026ebfe;\n        iVar5 = 1;\njoined_r0x0026ebbb:\n        if (uVar1 < uVar2) goto LAB_0026ebfe;\n        cVar3 = FUN_0026e110();\n        if (cVar3 == '\0') goto LAB_0026ec08;\n        param_3 = param_3 + iVar5;\n      }" ({ "{") (expression_statement "uVar2 = *param_3;" (assignment_expression "uVar2 = *param_3" (identifier "uVar2") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (if_statement "if (uVar2 - 0xd800 < 0x400) {\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }" (if "if") (parenthesized_expression "(uVar2 - 0xd800 < 0x400)" (( "(") (binary_expression "uVar2 - 0xd800 < 0x400" (binary_expression "uVar2 - 0xd800" (identifier "uVar2") (- "-") (number_literal "0xd800")) (< "<") (number_literal "0x400")) () ")")) (compound_statement "{\n          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }\n          break;\n        }" ({ "{") (if_statement "if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }" (if "if") (parenthesized_expression "(1 < (uint)((int)param_4 - (int)param_3 >> 2))" (( "(") (binary_expression "1 < (uint)((int)param_4 - (int)param_3 >> 2)" (number_literal "1") (< "<") (call_expression "(uint)((int)param_4 - (int)param_3 >> 2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)param_4 - (int)param_3 >> 2)" (( "(") (binary_expression "(int)param_4 - (int)param_3 >> 2" (binary_expression "(int)param_4 - (int)param_3" (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (- "-") (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3"))) (>> ">>") (number_literal "2")) () ")")))) () ")")) (compound_statement "{\n            if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }\nLAB_0026ebfe:\n            uVar4 = 2;\n            goto LAB_0026ec0d;\n          }" ({ "{") (if_statement "if (param_3[1] - 0xdc00 < 0x400) {\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }" (if "if") (parenthesized_expression "(param_3[1] - 0xdc00 < 0x400)" (( "(") (binary_expression "param_3[1] - 0xdc00 < 0x400" (binary_expression "param_3[1] - 0xdc00" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (- "-") (number_literal "0xdc00")) (< "<") (number_literal "0x400")) () ")")) (compound_statement "{\n              iVar5 = 2;\n              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;\n              goto joined_r0x0026ebbb;\n            }" ({ "{") (expression_statement "iVar5 = 2;" (assignment_expression "iVar5 = 2" (identifier "iVar5") (= "=") (number_literal "2")) (; ";")) (expression_statement "uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;" (assignment_expression "uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400" (identifier "uVar2") (= "=") (binary_expression "param_3[1] + 0xfca02400 + uVar2 * 0x400" (binary_expression "param_3[1] + 0xfca02400" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "0xfca02400")) (+ "+") (binary_expression "uVar2 * 0x400" (identifier "uVar2") (* "*") (number_literal "0x400")))) (; ";")) (goto_statement "goto joined_r0x0026ebbb;" (goto "goto") (statement_identifier "joined_r0x0026ebbb") (; ";")) (} "}"))) (labeled_statement "LAB_0026ebfe:\n            uVar4 = 2;" (statement_identifier "LAB_0026ebfe") (: ":") (expression_statement "uVar4 = 2;" (assignment_expression "uVar4 = 2" (identifier "uVar4") (= "=") (number_literal "2")) (; ";"))) (goto_statement "goto LAB_0026ec0d;" (goto "goto") (statement_identifier "LAB_0026ec0d") (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";")) (} "}"))) (if_statement "if (uVar2 - 0xdc00 < 0x400) goto LAB_0026ebfe;" (if "if") (parenthesized_expression "(uVar2 - 0xdc00 < 0x400)" (( "(") (binary_expression "uVar2 - 0xdc00 < 0x400" (binary_expression "uVar2 - 0xdc00" (identifier "uVar2") (- "-") (number_literal "0xdc00")) (< "<") (number_literal "0x400")) () ")")) (goto_statement "goto LAB_0026ebfe;" (goto "goto") (statement_identifier "LAB_0026ebfe") (; ";"))) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" (identifier "iVar5") (= "=") (number_literal "1")) (; ";")) (labeled_statement "joined_r0x0026ebbb:\n        if (uVar1 < uVar2) goto LAB_0026ebfe;" (statement_identifier "joined_r0x0026ebbb") (: ":") (if_statement "if (uVar1 < uVar2) goto LAB_0026ebfe;" (if "if") (parenthesized_expression "(uVar1 < uVar2)" (( "(") (binary_expression "uVar1 < uVar2" (identifier "uVar1") (< "<") (identifier "uVar2")) () ")")) (goto_statement "goto LAB_0026ebfe;" (goto "goto") (statement_identifier "LAB_0026ebfe") (; ";")))) (expression_statement "cVar3 = FUN_0026e110();" (assignment_expression "cVar3 = FUN_0026e110()" (identifier "cVar3") (= "=") (call_expression "FUN_0026e110()" (identifier "FUN_0026e110") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (cVar3 == '\0') goto LAB_0026ec08;" (if "if") (parenthesized_expression "(cVar3 == '\0')" (( "(") (binary_expression "cVar3 == '\0'" (identifier "cVar3") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_0026ec08;" (goto "goto") (statement_identifier "LAB_0026ec08") (; ";"))) (expression_statement "param_3 = param_3 + iVar5;" (assignment_expression "param_3 = param_3 + iVar5" (identifier "param_3") (= "=") (binary_expression "param_3 + iVar5" (identifier "param_3") (+ "+") (identifier "iVar5"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_4 != param_3)" (( "(") (binary_expression "param_4 != param_3" (identifier "param_4") (!= "!=") (identifier "param_3")) () ")")) (; ";")) (} "}"))) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\nLAB_0026ec08:\n    uVar4 = 1;\n  }" (else "else") (compound_statement "{\nLAB_0026ec08:\n    uVar4 = 1;\n  }" ({ "{") (labeled_statement "LAB_0026ec08:\n    uVar4 = 1;" (statement_identifier "LAB_0026ec08") (: ":") (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" (identifier "uVar4") (= "=") (number_literal "1")) (; ";"))) (} "}")))) (labeled_statement "LAB_0026ec0d:\n  *param_5 = (int)param_3;" (statement_identifier "LAB_0026ec0d") (: ":") (expression_statement "*param_5 = (int)param_3;" (assignment_expression "*param_5 = (int)param_3" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3"))) (; ";"))) (expression_statement "*param_8 = param_6;" (assignment_expression "*param_8 = param_6" (pointer_expression "*param_8" (* "*") (identifier "param_8")) (= "=") (identifier "param_6")) (; ";")) (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}")))

/* std::__codecvt_utf8_utf16_base<wchar_t>::do_out(__mbstate_t&, wchar_t const*, wchar_t const*,
   wchar_t const*&, char*, char*, char*&) const */

type_1 __thiscall
std::type_2<type_4>::function_1
          (type_2<type_4> *var_1,type_3 *param_1,type_4 *var_4,
          type_4 *var_5,type_4 **param_4,char *param_5,char *param_6,char **param_7)

{
  type_5 wVar1;
  char var_3;
  type_1 uVar3;
  type_5 var_6;
  int var_8;
  char *local_18;
  char *local_14;
  
  local_18 = param_5;
  wVar1 = *(type_5 *)(var_1 + 0xc);
  local_14 = param_6;
  if ((((type_6)var_1[0x10] & 2) == 0) ||
     (var_3 = (anonymous_namespace)::var_2(&local_18), var_3 != '\0')) {
    if (var_4 != var_5) {
      do {
        var_6 = *var_4;
        if ((type_7)(var_6 + L'\xffff2800') < 0x400) {
          if (1 < (type_7)((int)var_5 - (int)var_4 >> 2)) {
            if ((type_7)(var_4[1] + L'\xffff2400') < 0x400) {
              var_8 = 2;
              var_6 = var_4[1] + L'\xfca02400' + var_6 * 0x400;
              if ((type_7)var_6 <= (type_7)wVar1) goto LAB_0026ebbd;
            }
LAB_0026ebfe:
            uVar3 = 2;
            goto LAB_0026ec0d;
          }
          break;
        }
        if (((type_7)(var_6 + L'\xffff2400') < 0x400) || (var_8 = 1, (type_7)wVar1 < (type_7)var_6))
        goto LAB_0026ebfe;
LAB_0026ebbd:
        var_3 = (anonymous_namespace)::var_7((type_8 *)&local_18,var_6);
        if (var_3 == '\0') goto LAB_0026ec08;
        var_4 = var_4 + var_8;
      } while (var_5 != var_4);
    }
    uVar3 = 0;
  }
  else {
LAB_0026ec08:
    uVar3 = 1;
  }
LAB_0026ec0d:
  *param_4 = var_4;
  *param_7 = local_18;
  return uVar3;
}


(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: (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))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) 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: (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))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list))) right: (binary_expression left: (identifier) right: (char_literal (escape_sequence))))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (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 (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))) (goto_statement label: (statement_identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) (goto_statement label: (statement_identifier)))) (break_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (identifier)))))

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

{
  uint uVar1;
  uint uVar2;
  char cVar3;
  undefined4 uVar4;
  int iVar5;
  
  uVar1 = *(uint *)(param_1 + 0xc);
  if (((*(byte *)(param_1 + 0x10) & 2) == 0) || (cVar3 = FUN_0026e370(), cVar3 != '\0')) {
    if (param_3 != param_4) {
      do {
        uVar2 = *param_3;
        if (uVar2 - 0xd800 < 0x400) {
          if (1 < (uint)((int)param_4 - (int)param_3 >> 2)) {
            if (param_3[1] - 0xdc00 < 0x400) {
              iVar5 = 2;
              uVar2 = param_3[1] + 0xfca02400 + uVar2 * 0x400;
              goto joined_r0x0026ebbb;
            }
LAB_0026ebfe:
            uVar4 = 2;
            goto LAB_0026ec0d;
          }
          break;
        }
        if (uVar2 - 0xdc00 < 0x400) goto LAB_0026ebfe;
        iVar5 = 1;
joined_r0x0026ebbb:
        if (uVar1 < uVar2) goto LAB_0026ebfe;
        cVar3 = FUN_0026e110();
        if (cVar3 == '\0') goto LAB_0026ec08;
        param_3 = param_3 + iVar5;
      } while (param_4 != param_3);
    }
    uVar4 = 0;
  }
  else {
LAB_0026ec08:
    uVar4 = 1;
  }
LAB_0026ec0d:
  *param_5 = (int)param_3;
  *param_8 = param_6;
  return uVar4;
}

