
/* WARNING: Heritage AFTER dead removal. Example location: EAX : 0x00286b96 */
/* WARNING: Restarted to delay deadcode elimination for space: register */
/* std::__codecvt_utf16_base<char16_t>::do_in(__mbstate_t&, char const*, char const*, char const*&,
   char16_t*, char16_t*, char16_t*&) const */

undefined1 __regparm1
std::__codecvt_utf16_base<char16_t>::do_in
          (__mbstate_t *param_1,char *param_2,char *param_3,char **param_4,wchar16 *param_5,
          wchar16 *param_6,wchar16 **param_7)

{
  wchar16 **ppwVar1;
  __mbstate_t *p_Var2;
  wchar16 **in_stack_0000001c;
  undefined4 *in_stack_00000020;
  range *in_stack_ffffffe0;
  codecvt_mode *pcVar3;
  
  p_Var2 = *(__mbstate_t **)(param_2 + 8);
  pcVar3 = *(codecvt_mode **)(param_2 + 0xc);
  (anonymous_namespace)::read_utf16_bom<false>(in_stack_ffffffe0,pcVar3);
  if ((__mbstate_t *)0xfffe < p_Var2) {
    p_Var2 = (__mbstate_t *)0xffff;
  }
  if (1 < (uint)((int)param_5 - (int)param_4)) {
    ppwVar1 = param_7;
    if (param_7 != in_stack_0000001c) {
      do {
        param_1 = (__mbstate_t *)
                  (anonymous_namespace)::read_utf16_code_point<false>(param_1,p_Var2,pcVar3);
        if ((param_1 == (__mbstate_t *)0xfffffffe) || (p_Var2 < param_1)) {
          *(char ***)param_6 = param_4;
          *in_stack_00000020 = ppwVar1;
          return 2;
        }
        param_7 = (wchar16 **)((int)ppwVar1 + 2);
        *(short *)ppwVar1 = (short)param_1;
        if ((uint)((int)param_5 - (int)param_4) < 2) goto LAB_00286bc0;
        ppwVar1 = param_7;
      } while (in_stack_0000001c != param_7);
    }
    *(char ***)param_6 = param_4;
    *in_stack_00000020 = param_7;
    return 1;
  }
LAB_00286bc0:
  *(char ***)param_6 = param_4;
  *in_stack_00000020 = param_7;
  return (char)param_1;
}



char FUN_00286b10(int param_1,undefined4 param_2,int param_3,int param_4,int *param_5,
                 undefined2 *param_6,undefined2 *param_7,undefined4 *param_8)

{
  uint uVar1;
  undefined2 *puVar2;
  uint uVar3;
  
  uVar3 = *(uint *)(param_1 + 8);
  FUN_002868e0();
  if (0xfffe < uVar3) {
    uVar3 = 0xffff;
  }
  if (1 < (uint)(param_4 - param_3)) {
    puVar2 = param_6;
    if (param_6 != param_7) {
      do {
        uVar1 = FUN_002861b0();
        if ((uVar1 == 0xfffffffe) || (uVar3 < uVar1)) {
          *param_5 = param_3;
          *param_8 = puVar2;
          return '\x02';
        }
        param_6 = puVar2 + 1;
        *puVar2 = (short)uVar1;
        if ((uint)(param_4 - param_3) < 2) goto LAB_00286bc0;
        puVar2 = param_6;
      } while (param_7 != param_6);
    }
    *param_5 = param_3;
    *param_8 = param_6;
    return '\x01';
  }
LAB_00286bc0:
  *param_5 = param_3;
  *param_8 = param_6;
  return (param_4 != param_3) * '\x02';
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x10
MOV EAX,dword ptr [ESP + 0x24]
MOV EDX,dword ptr [ESP + 0x2c]
LEA EDI,[ESP + 0x8]
MOV ECX,dword ptr [ESP + 0x30]
MOV EBX,dword ptr [ESP + 0x38]
MOV ESI,dword ptr [EAX + 0x8]
MOV EAX,dword ptr [EAX + 0xc]
MOV dword ptr [ESP + 0x8],EDX
LEA EDX,[ESP + 0x4]
MOV EBP,dword ptr [ESP + 0x3c]
MOV dword ptr [ESP + 0xc],ECX
MOV dword ptr [ESP + 0x4],EAX
MOV EAX,EDI
CALL 0x002868e0
CMP ESI,0xffff
MOV EAX,0xffff
MOV EDX,dword ptr [ESP + 0xc]
CMOVNC ESI,EAX
MOV EAX,dword ptr [ESP + 0x8]
SUB EDX,EAX
CMP EDX,0x1
JBE 0x00286bc0
CMP EBX,EBP
JNZ 0x00286b8e
JMP 0x00286be0
CMP ESI,EAX
JC 0x00286ba0
ADD EBX,0x2
MOV word ptr [EBX + -0x2],AX
MOV EDX,dword ptr [ESP + 0xc]
MOV EAX,dword ptr [ESP + 0x8]
SUB EDX,EAX
CMP EDX,0x1
JBE 0x00286bc0
CMP EBP,EBX
JZ 0x00286be0
MOV ECX,dword ptr [ESP + 0x4]
MOV EDX,ESI
MOV EAX,EDI
CALL 0x002861b0
CMP EAX,-0x2
JNZ 0x00286b70
MOV EAX,dword ptr [ESP + 0x8]
MOV ECX,dword ptr [ESP + 0x34]
MOV dword ptr [ECX],EAX
MOV EAX,dword ptr [ESP + 0x40]
MOV dword ptr [EAX],EBX
MOV EAX,0x2
JMP 0x00286bd8
MOV ECX,dword ptr [ESP + 0x34]
CMP dword ptr [ESP + 0x30],EAX
MOV dword ptr [ECX],EAX
MOV ECX,dword ptr [ESP + 0x40]
SETNZ AL
MOVZX EAX,AL
MOV dword ptr [ECX],EBX
ADD EAX,EAX
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDI,dword ptr [ESP + 0x34]
MOV dword ptr [EDI],EAX
MOV EAX,dword ptr [ESP + 0x40]
MOV dword ptr [EAX],EBX
ADD ESP,0x10
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "char FUN_00286b10(int param_1,undefined4 param_2,int param_3,int param_4,int *param_5,\n                 undefined2 *param_6,undefined2 *param_7,undefined4 *param_8)\n\n{\n  uint uVar1;\n  undefined2 *puVar2;\n  uint uVar3;\n  \n  uVar3 = *(uint *)(param_1 + 8);\n  FUN_002868e0();\n  if (0xfffe < uVar3) {\n    uVar3 = 0xffff;\n  }\n  if (1 < (uint)(param_4 - param_3)) {\n    puVar2 = param_6;\n    if (param_6 != param_7) {\n      do {\n        uVar1 = FUN_002861b0();\n        if ((uVar1 == 0xfffffffe) || (uVar3 < uVar1)) {\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }\n        param_6 = puVar2 + 1;\n        *puVar2 = (short)uVar1;\n        if ((uint)(param_4 - param_3) < 2) goto LAB_00286bc0;\n        puVar2 = param_6;\n      } while (param_7 != param_6);\n    }\n    *param_5 = param_3;\n    *param_8 = param_6;\n    return '\x01';\n  }\nLAB_00286bc0:\n  *param_5 = param_3;\n  *param_8 = param_6;\n  return (param_4 != param_3) * '\x02';\n}\n\n" (function_definition "char FUN_00286b10(int param_1,undefined4 param_2,int param_3,int param_4,int *param_5,\n                 undefined2 *param_6,undefined2 *param_7,undefined4 *param_8)\n\n{\n  uint uVar1;\n  undefined2 *puVar2;\n  uint uVar3;\n  \n  uVar3 = *(uint *)(param_1 + 8);\n  FUN_002868e0();\n  if (0xfffe < uVar3) {\n    uVar3 = 0xffff;\n  }\n  if (1 < (uint)(param_4 - param_3)) {\n    puVar2 = param_6;\n    if (param_6 != param_7) {\n      do {\n        uVar1 = FUN_002861b0();\n        if ((uVar1 == 0xfffffffe) || (uVar3 < uVar1)) {\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }\n        param_6 = puVar2 + 1;\n        *puVar2 = (short)uVar1;\n        if ((uint)(param_4 - param_3) < 2) goto LAB_00286bc0;\n        puVar2 = param_6;\n      } while (param_7 != param_6);\n    }\n    *param_5 = param_3;\n    *param_8 = param_6;\n    return '\x01';\n  }\nLAB_00286bc0:\n  *param_5 = param_3;\n  *param_8 = param_6;\n  return (param_4 != param_3) * '\x02';\n}" primitive_type (function_declarator "FUN_00286b10(int param_1,undefined4 param_2,int param_3,int param_4,int *param_5,\n                 undefined2 *param_6,undefined2 *param_7,undefined4 *param_8)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3,int param_4,int *param_5,\n                 undefined2 *param_6,undefined2 *param_7,undefined4 *param_8)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "undefined2 *param_6" type_identifier (pointer_declarator "*param_6" * identifier)) , (parameter_declaration "undefined2 *param_7" type_identifier (pointer_declarator "*param_7" * identifier)) , (parameter_declaration "undefined4 *param_8" type_identifier (pointer_declarator "*param_8" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  undefined2 *puVar2;\n  uint uVar3;\n  \n  uVar3 = *(uint *)(param_1 + 8);\n  FUN_002868e0();\n  if (0xfffe < uVar3) {\n    uVar3 = 0xffff;\n  }\n  if (1 < (uint)(param_4 - param_3)) {\n    puVar2 = param_6;\n    if (param_6 != param_7) {\n      do {\n        uVar1 = FUN_002861b0();\n        if ((uVar1 == 0xfffffffe) || (uVar3 < uVar1)) {\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }\n        param_6 = puVar2 + 1;\n        *puVar2 = (short)uVar1;\n        if ((uint)(param_4 - param_3) < 2) goto LAB_00286bc0;\n        puVar2 = param_6;\n      } while (param_7 != param_6);\n    }\n    *param_5 = param_3;\n    *param_8 = param_6;\n    return '\x01';\n  }\nLAB_00286bc0:\n  *param_5 = param_3;\n  *param_8 = param_6;\n  return (param_4 != param_3) * '\x02';\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined2 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "uVar3 = *(uint *)(param_1 + 8);" (assignment_expression "uVar3 = *(uint *)(param_1 + 8)" identifier = (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "FUN_002868e0();" (call_expression "FUN_002868e0()" identifier (argument_list "()" ( ))) ;) (if_statement "if (0xfffe < uVar3) {\n    uVar3 = 0xffff;\n  }" if (parenthesized_expression "(0xfffe < uVar3)" ( (binary_expression "0xfffe < uVar3" number_literal < identifier) )) (compound_statement "{\n    uVar3 = 0xffff;\n  }" { (expression_statement "uVar3 = 0xffff;" (assignment_expression "uVar3 = 0xffff" identifier = number_literal) ;) })) (if_statement "if (1 < (uint)(param_4 - param_3)) {\n    puVar2 = param_6;\n    if (param_6 != param_7) {\n      do {\n        uVar1 = FUN_002861b0();\n        if ((uVar1 == 0xfffffffe) || (uVar3 < uVar1)) {\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }\n        param_6 = puVar2 + 1;\n        *puVar2 = (short)uVar1;\n        if ((uint)(param_4 - param_3) < 2) goto LAB_00286bc0;\n        puVar2 = param_6;\n      } while (param_7 != param_6);\n    }\n    *param_5 = param_3;\n    *param_8 = param_6;\n    return '\x01';\n  }" if (parenthesized_expression "(1 < (uint)(param_4 - param_3))" ( (binary_expression "1 < (uint)(param_4 - param_3)" number_literal < (call_expression "(uint)(param_4 - param_3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_4 - param_3)" ( (binary_expression "param_4 - param_3" identifier - identifier) )))) )) (compound_statement "{\n    puVar2 = param_6;\n    if (param_6 != param_7) {\n      do {\n        uVar1 = FUN_002861b0();\n        if ((uVar1 == 0xfffffffe) || (uVar3 < uVar1)) {\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }\n        param_6 = puVar2 + 1;\n        *puVar2 = (short)uVar1;\n        if ((uint)(param_4 - param_3) < 2) goto LAB_00286bc0;\n        puVar2 = param_6;\n      } while (param_7 != param_6);\n    }\n    *param_5 = param_3;\n    *param_8 = param_6;\n    return '\x01';\n  }" { (expression_statement "puVar2 = param_6;" (assignment_expression "puVar2 = param_6" identifier = identifier) ;) (if_statement "if (param_6 != param_7) {\n      do {\n        uVar1 = FUN_002861b0();\n        if ((uVar1 == 0xfffffffe) || (uVar3 < uVar1)) {\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }\n        param_6 = puVar2 + 1;\n        *puVar2 = (short)uVar1;\n        if ((uint)(param_4 - param_3) < 2) goto LAB_00286bc0;\n        puVar2 = param_6;\n      } while (param_7 != param_6);\n    }" if (parenthesized_expression "(param_6 != param_7)" ( (binary_expression "param_6 != param_7" identifier != identifier) )) (compound_statement "{\n      do {\n        uVar1 = FUN_002861b0();\n        if ((uVar1 == 0xfffffffe) || (uVar3 < uVar1)) {\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }\n        param_6 = puVar2 + 1;\n        *puVar2 = (short)uVar1;\n        if ((uint)(param_4 - param_3) < 2) goto LAB_00286bc0;\n        puVar2 = param_6;\n      } while (param_7 != param_6);\n    }" { (do_statement "do {\n        uVar1 = FUN_002861b0();\n        if ((uVar1 == 0xfffffffe) || (uVar3 < uVar1)) {\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }\n        param_6 = puVar2 + 1;\n        *puVar2 = (short)uVar1;\n        if ((uint)(param_4 - param_3) < 2) goto LAB_00286bc0;\n        puVar2 = param_6;\n      } while (param_7 != param_6);" do (compound_statement "{\n        uVar1 = FUN_002861b0();\n        if ((uVar1 == 0xfffffffe) || (uVar3 < uVar1)) {\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }\n        param_6 = puVar2 + 1;\n        *puVar2 = (short)uVar1;\n        if ((uint)(param_4 - param_3) < 2) goto LAB_00286bc0;\n        puVar2 = param_6;\n      }" { (expression_statement "uVar1 = FUN_002861b0();" (assignment_expression "uVar1 = FUN_002861b0()" identifier = (call_expression "FUN_002861b0()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((uVar1 == 0xfffffffe) || (uVar3 < uVar1)) {\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }" if (parenthesized_expression "((uVar1 == 0xfffffffe) || (uVar3 < uVar1))" ( (binary_expression "(uVar1 == 0xfffffffe) || (uVar3 < uVar1)" (parenthesized_expression "(uVar1 == 0xfffffffe)" ( (binary_expression "uVar1 == 0xfffffffe" identifier == number_literal) )) || (parenthesized_expression "(uVar3 < uVar1)" ( (binary_expression "uVar3 < uVar1" identifier < identifier) ))) )) (compound_statement "{\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }" { (expression_statement "*param_5 = param_3;" (assignment_expression "*param_5 = param_3" (pointer_expression "*param_5" * identifier) = identifier) ;) (expression_statement "*param_8 = puVar2;" (assignment_expression "*param_8 = puVar2" (pointer_expression "*param_8" * identifier) = identifier) ;) (return_statement "return '\x02';" return (char_literal "'\x02'" ' escape_sequence ') ;) })) (expression_statement "param_6 = puVar2 + 1;" (assignment_expression "param_6 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (expression_statement "*puVar2 = (short)uVar1;" (assignment_expression "*puVar2 = (short)uVar1" (pointer_expression "*puVar2" * identifier) = (cast_expression "(short)uVar1" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (if_statement "if ((uint)(param_4 - param_3) < 2) goto LAB_00286bc0;" if (parenthesized_expression "((uint)(param_4 - param_3) < 2)" ( (binary_expression "(uint)(param_4 - param_3) < 2" (call_expression "(uint)(param_4 - param_3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_4 - param_3)" ( (binary_expression "param_4 - param_3" identifier - identifier) ))) < number_literal) )) (goto_statement "goto LAB_00286bc0;" goto statement_identifier ;)) (expression_statement "puVar2 = param_6;" (assignment_expression "puVar2 = param_6" identifier = identifier) ;) }) while (parenthesized_expression "(param_7 != param_6)" ( (binary_expression "param_7 != param_6" identifier != identifier) )) ;) })) (expression_statement "*param_5 = param_3;" (assignment_expression "*param_5 = param_3" (pointer_expression "*param_5" * identifier) = identifier) ;) (expression_statement "*param_8 = param_6;" (assignment_expression "*param_8 = param_6" (pointer_expression "*param_8" * identifier) = identifier) ;) (return_statement "return '\x01';" return (char_literal "'\x01'" ' escape_sequence ') ;) })) (labeled_statement "LAB_00286bc0:\n  *param_5 = param_3;" statement_identifier : (expression_statement "*param_5 = param_3;" (assignment_expression "*param_5 = param_3" (pointer_expression "*param_5" * identifier) = identifier) ;)) (expression_statement "*param_8 = param_6;" (assignment_expression "*param_8 = param_6" (pointer_expression "*param_8" * identifier) = identifier) ;) (return_statement "return (param_4 != param_3) * '\x02';" return (binary_expression "(param_4 != param_3) * '\x02'" (parenthesized_expression "(param_4 != param_3)" ( (binary_expression "param_4 != param_3" identifier != identifier) )) * (char_literal "'\x02'" ' escape_sequence ')) ;) })))
(translation_unit "/* WARNING: Heritage AFTER dead removal. Example location: EAX : 0x00286b96 */\n/* WARNING: Restarted to delay deadcode elimination for space: register */\n/* std::__codecvt_utf16_base<char16_t>::do_in(__mbstate_t&, char const*, char const*, char const*&,\n   char16_t*, char16_t*, char16_t*&) const */\n\nundefined1 __regparm1\nstd::__codecvt_utf16_base<char16_t>::do_in\n          (__mbstate_t *param_1,char *param_2,char *param_3,char **param_4,wchar16 *param_5,\n          wchar16 *param_6,wchar16 **param_7)\n\n{\n  wchar16 **ppwVar1;\n  __mbstate_t *p_Var2;\n  wchar16 **in_stack_0000001c;\n  undefined4 *in_stack_00000020;\n  range *in_stack_ffffffe0;\n  codecvt_mode *pcVar3;\n  \n  p_Var2 = *(__mbstate_t **)(param_2 + 8);\n  pcVar3 = *(codecvt_mode **)(param_2 + 0xc);\n  (anonymous_namespace)::read_utf16_bom<false>(in_stack_ffffffe0,pcVar3);\n  if ((__mbstate_t *)0xfffe < p_Var2) {\n    p_Var2 = (__mbstate_t *)0xffff;\n  }\n  if (1 < (uint)((int)param_5 - (int)param_4)) {\n    ppwVar1 = param_7;\n    if (param_7 != in_stack_0000001c) {\n      do {\n        param_1 = (__mbstate_t *)\n                  (anonymous_namespace)::read_utf16_code_point<false>(param_1,p_Var2,pcVar3);\n        if ((param_1 == (__mbstate_t *)0xfffffffe) || (p_Var2 < param_1)) {\n          *(char ***)param_6 = param_4;\n          *in_stack_00000020 = ppwVar1;\n          return 2;\n        }\n        param_7 = (wchar16 **)((int)ppwVar1 + 2);\n        *(short *)ppwVar1 = (short)param_1;\n        if ((uint)((int)param_5 - (int)param_4) < 2) goto LAB_00286bc0;\n        ppwVar1 = param_7;\n      } while (in_stack_0000001c != param_7);\n    }\n    *(char ***)param_6 = param_4;\n    *in_stack_00000020 = param_7;\n    return 1;\n  }\nLAB_00286bc0:\n  *(char ***)param_6 = param_4;\n  *in_stack_00000020 = param_7;\n  return (char)param_1;\n}\n\n" comment comment comment (declaration "undefined1 __regparm1" type_identifier identifier ;) (labeled_statement "std::__codecvt_utf16_base<char16_t>::do_in\n          (__mbstate_t *param_1,char *param_2,char *param_3,char **param_4,wchar16 *param_5,\n          wchar16 *param_6,wchar16 **param_7)" statement_identifier (ERROR "::__codecvt_utf16_base<char16_t>:" : : (binary_expression "__codecvt_utf16_base<char16_t" identifier < identifier) > :) : (expression_statement "do_in\n          (__mbstate_t *param_1,char *param_2,char *param_3,char **param_4,wchar16 *param_5,\n          wchar16 *param_6,wchar16 **param_7)" (call_expression "do_in\n          (__mbstate_t *param_1,char *param_2,char *param_3,char **param_4,wchar16 *param_5,\n          wchar16 *param_6,wchar16 **param_7)" identifier (argument_list "(__mbstate_t *param_1,char *param_2,char *param_3,char **param_4,wchar16 *param_5,\n          wchar16 *param_6,wchar16 **param_7)" ( (binary_expression "__mbstate_t *param_1" identifier * identifier) , (binary_expression "char *param_2" identifier * identifier) , (binary_expression "char *param_3" identifier * identifier) , (binary_expression "char **param_4" identifier * (pointer_expression "*param_4" * identifier)) , (binary_expression "wchar16 *param_5" identifier * identifier) , (binary_expression "wchar16 *param_6" identifier * identifier) , (binary_expression "wchar16 **param_7" identifier * (pointer_expression "*param_7" * identifier)) ))) ;)) (compound_statement "{\n  wchar16 **ppwVar1;\n  __mbstate_t *p_Var2;\n  wchar16 **in_stack_0000001c;\n  undefined4 *in_stack_00000020;\n  range *in_stack_ffffffe0;\n  codecvt_mode *pcVar3;\n  \n  p_Var2 = *(__mbstate_t **)(param_2 + 8);\n  pcVar3 = *(codecvt_mode **)(param_2 + 0xc);\n  (anonymous_namespace)::read_utf16_bom<false>(in_stack_ffffffe0,pcVar3);\n  if ((__mbstate_t *)0xfffe < p_Var2) {\n    p_Var2 = (__mbstate_t *)0xffff;\n  }\n  if (1 < (uint)((int)param_5 - (int)param_4)) {\n    ppwVar1 = param_7;\n    if (param_7 != in_stack_0000001c) {\n      do {\n        param_1 = (__mbstate_t *)\n                  (anonymous_namespace)::read_utf16_code_point<false>(param_1,p_Var2,pcVar3);\n        if ((param_1 == (__mbstate_t *)0xfffffffe) || (p_Var2 < param_1)) {\n          *(char ***)param_6 = param_4;\n          *in_stack_00000020 = ppwVar1;\n          return 2;\n        }\n        param_7 = (wchar16 **)((int)ppwVar1 + 2);\n        *(short *)ppwVar1 = (short)param_1;\n        if ((uint)((int)param_5 - (int)param_4) < 2) goto LAB_00286bc0;\n        ppwVar1 = param_7;\n      } while (in_stack_0000001c != param_7);\n    }\n    *(char ***)param_6 = param_4;\n    *in_stack_00000020 = param_7;\n    return 1;\n  }\nLAB_00286bc0:\n  *(char ***)param_6 = param_4;\n  *in_stack_00000020 = param_7;\n  return (char)param_1;\n}" { (declaration "wchar16 **ppwVar1;" type_identifier (pointer_declarator "**ppwVar1" * (pointer_declarator "*ppwVar1" * identifier)) ;) (declaration "__mbstate_t *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "wchar16 **in_stack_0000001c;" type_identifier (pointer_declarator "**in_stack_0000001c" * (pointer_declarator "*in_stack_0000001c" * identifier)) ;) (declaration "undefined4 *in_stack_00000020;" type_identifier (pointer_declarator "*in_stack_00000020" * identifier) ;) (declaration "range *in_stack_ffffffe0;" type_identifier (pointer_declarator "*in_stack_ffffffe0" * identifier) ;) (declaration "codecvt_mode *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "p_Var2 = *(__mbstate_t **)(param_2 + 8);" (assignment_expression "p_Var2 = *(__mbstate_t **)(param_2 + 8)" identifier = (pointer_expression "*(__mbstate_t **)(param_2 + 8)" * (cast_expression "(__mbstate_t **)(param_2 + 8)" ( (type_descriptor "__mbstate_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (expression_statement "pcVar3 = *(codecvt_mode **)(param_2 + 0xc);" (assignment_expression "pcVar3 = *(codecvt_mode **)(param_2 + 0xc)" identifier = (pointer_expression "*(codecvt_mode **)(param_2 + 0xc)" * (cast_expression "(codecvt_mode **)(param_2 + 0xc)" ( (type_descriptor "codecvt_mode **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "(anonymous_namespace)::read_utf16_bom<false>(in_stack_ffffffe0,pcVar3);" (binary_expression "(anonymous_namespace)::read_utf16_bom<false>(in_stack_ffffffe0,pcVar3)" (binary_expression "(anonymous_namespace)::read_utf16_bom<false" (parenthesized_expression "(anonymous_namespace)" ( identifier )) (ERROR "::read_utf16_bom" : : identifier) < false) > (parenthesized_expression "(in_stack_ffffffe0,pcVar3)" ( (comma_expression "in_stack_ffffffe0,pcVar3" identifier , identifier) ))) ;) (if_statement "if ((__mbstate_t *)0xfffe < p_Var2) {\n    p_Var2 = (__mbstate_t *)0xffff;\n  }" if (parenthesized_expression "((__mbstate_t *)0xfffe < p_Var2)" ( (binary_expression "(__mbstate_t *)0xfffe < p_Var2" (cast_expression "(__mbstate_t *)0xfffe" ( (type_descriptor "__mbstate_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) < identifier) )) (compound_statement "{\n    p_Var2 = (__mbstate_t *)0xffff;\n  }" { (expression_statement "p_Var2 = (__mbstate_t *)0xffff;" (assignment_expression "p_Var2 = (__mbstate_t *)0xffff" identifier = (cast_expression "(__mbstate_t *)0xffff" ( (type_descriptor "__mbstate_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (if_statement "if (1 < (uint)((int)param_5 - (int)param_4)) {\n    ppwVar1 = param_7;\n    if (param_7 != in_stack_0000001c) {\n      do {\n        param_1 = (__mbstate_t *)\n                  (anonymous_namespace)::read_utf16_code_point<false>(param_1,p_Var2,pcVar3);\n        if ((param_1 == (__mbstate_t *)0xfffffffe) || (p_Var2 < param_1)) {\n          *(char ***)param_6 = param_4;\n          *in_stack_00000020 = ppwVar1;\n          return 2;\n        }\n        param_7 = (wchar16 **)((int)ppwVar1 + 2);\n        *(short *)ppwVar1 = (short)param_1;\n        if ((uint)((int)param_5 - (int)param_4) < 2) goto LAB_00286bc0;\n        ppwVar1 = param_7;\n      } while (in_stack_0000001c != param_7);\n    }\n    *(char ***)param_6 = param_4;\n    *in_stack_00000020 = param_7;\n    return 1;\n  }" if (parenthesized_expression "(1 < (uint)((int)param_5 - (int)param_4))" ( (binary_expression "1 < (uint)((int)param_5 - (int)param_4)" number_literal < (call_expression "(uint)((int)param_5 - (int)param_4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)param_5 - (int)param_4)" ( (binary_expression "(int)param_5 - (int)param_4" (cast_expression "(int)param_5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) )))) )) (compound_statement "{\n    ppwVar1 = param_7;\n    if (param_7 != in_stack_0000001c) {\n      do {\n        param_1 = (__mbstate_t *)\n                  (anonymous_namespace)::read_utf16_code_point<false>(param_1,p_Var2,pcVar3);\n        if ((param_1 == (__mbstate_t *)0xfffffffe) || (p_Var2 < param_1)) {\n          *(char ***)param_6 = param_4;\n          *in_stack_00000020 = ppwVar1;\n          return 2;\n        }\n        param_7 = (wchar16 **)((int)ppwVar1 + 2);\n        *(short *)ppwVar1 = (short)param_1;\n        if ((uint)((int)param_5 - (int)param_4) < 2) goto LAB_00286bc0;\n        ppwVar1 = param_7;\n      } while (in_stack_0000001c != param_7);\n    }\n    *(char ***)param_6 = param_4;\n    *in_stack_00000020 = param_7;\n    return 1;\n  }" { (expression_statement "ppwVar1 = param_7;" (assignment_expression "ppwVar1 = param_7" identifier = identifier) ;) (if_statement "if (param_7 != in_stack_0000001c) {\n      do {\n        param_1 = (__mbstate_t *)\n                  (anonymous_namespace)::read_utf16_code_point<false>(param_1,p_Var2,pcVar3);\n        if ((param_1 == (__mbstate_t *)0xfffffffe) || (p_Var2 < param_1)) {\n          *(char ***)param_6 = param_4;\n          *in_stack_00000020 = ppwVar1;\n          return 2;\n        }\n        param_7 = (wchar16 **)((int)ppwVar1 + 2);\n        *(short *)ppwVar1 = (short)param_1;\n        if ((uint)((int)param_5 - (int)param_4) < 2) goto LAB_00286bc0;\n        ppwVar1 = param_7;\n      } while (in_stack_0000001c != param_7);\n    }" if (parenthesized_expression "(param_7 != in_stack_0000001c)" ( (binary_expression "param_7 != in_stack_0000001c" identifier != identifier) )) (compound_statement "{\n      do {\n        param_1 = (__mbstate_t *)\n                  (anonymous_namespace)::read_utf16_code_point<false>(param_1,p_Var2,pcVar3);\n        if ((param_1 == (__mbstate_t *)0xfffffffe) || (p_Var2 < param_1)) {\n          *(char ***)param_6 = param_4;\n          *in_stack_00000020 = ppwVar1;\n          return 2;\n        }\n        param_7 = (wchar16 **)((int)ppwVar1 + 2);\n        *(short *)ppwVar1 = (short)param_1;\n        if ((uint)((int)param_5 - (int)param_4) < 2) goto LAB_00286bc0;\n        ppwVar1 = param_7;\n      } while (in_stack_0000001c != param_7);\n    }" { (do_statement "do {\n        param_1 = (__mbstate_t *)\n                  (anonymous_namespace)::read_utf16_code_point<false>(param_1,p_Var2,pcVar3);\n        if ((param_1 == (__mbstate_t *)0xfffffffe) || (p_Var2 < param_1)) {\n          *(char ***)param_6 = param_4;\n          *in_stack_00000020 = ppwVar1;\n          return 2;\n        }\n        param_7 = (wchar16 **)((int)ppwVar1 + 2);\n        *(short *)ppwVar1 = (short)param_1;\n        if ((uint)((int)param_5 - (int)param_4) < 2) goto LAB_00286bc0;\n        ppwVar1 = param_7;\n      } while (in_stack_0000001c != param_7);" do (compound_statement "{\n        param_1 = (__mbstate_t *)\n                  (anonymous_namespace)::read_utf16_code_point<false>(param_1,p_Var2,pcVar3);\n        if ((param_1 == (__mbstate_t *)0xfffffffe) || (p_Var2 < param_1)) {\n          *(char ***)param_6 = param_4;\n          *in_stack_00000020 = ppwVar1;\n          return 2;\n        }\n        param_7 = (wchar16 **)((int)ppwVar1 + 2);\n        *(short *)ppwVar1 = (short)param_1;\n        if ((uint)((int)param_5 - (int)param_4) < 2) goto LAB_00286bc0;\n        ppwVar1 = param_7;\n      }" { (expression_statement "param_1 = (__mbstate_t *)\n                  (anonymous_namespace)::read_utf16_code_point<false>(param_1,p_Var2,pcVar3);" (binary_expression "param_1 = (__mbstate_t *)\n                  (anonymous_namespace)::read_utf16_code_point<false>(param_1,p_Var2,pcVar3)" (binary_expression "param_1 = (__mbstate_t *)\n                  (anonymous_namespace)::read_utf16_code_point<false" (assignment_expression "param_1 = (__mbstate_t *)\n                  (anonymous_namespace)" identifier = (cast_expression "(__mbstate_t *)\n                  (anonymous_namespace)" ( (type_descriptor "__mbstate_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(anonymous_namespace)" ( identifier )))) (ERROR "::read_utf16_code_point" : : identifier) < false) > (parenthesized_expression "(param_1,p_Var2,pcVar3)" ( (comma_expression "param_1,p_Var2,pcVar3" identifier , (comma_expression "p_Var2,pcVar3" identifier , identifier)) ))) ;) (if_statement "if ((param_1 == (__mbstate_t *)0xfffffffe) || (p_Var2 < param_1)) {\n          *(char ***)param_6 = param_4;\n          *in_stack_00000020 = ppwVar1;\n          return 2;\n        }" if (parenthesized_expression "((param_1 == (__mbstate_t *)0xfffffffe) || (p_Var2 < param_1))" ( (binary_expression "(param_1 == (__mbstate_t *)0xfffffffe) || (p_Var2 < param_1)" (parenthesized_expression "(param_1 == (__mbstate_t *)0xfffffffe)" ( (binary_expression "param_1 == (__mbstate_t *)0xfffffffe" identifier == (cast_expression "(__mbstate_t *)0xfffffffe" ( (type_descriptor "__mbstate_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(p_Var2 < param_1)" ( (binary_expression "p_Var2 < param_1" identifier < identifier) ))) )) (compound_statement "{\n          *(char ***)param_6 = param_4;\n          *in_stack_00000020 = ppwVar1;\n          return 2;\n        }" { (expression_statement "*(char ***)param_6 = param_4;" (assignment_expression "*(char ***)param_6 = param_4" (pointer_expression "*(char ***)param_6" * (cast_expression "(char ***)param_6" ( (type_descriptor "char ***" primitive_type (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) identifier)) = identifier) ;) (expression_statement "*in_stack_00000020 = ppwVar1;" (assignment_expression "*in_stack_00000020 = ppwVar1" (pointer_expression "*in_stack_00000020" * identifier) = identifier) ;) (return_statement "return 2;" return number_literal ;) })) (expression_statement "param_7 = (wchar16 **)((int)ppwVar1 + 2);" (assignment_expression "param_7 = (wchar16 **)((int)ppwVar1 + 2)" identifier = (cast_expression "(wchar16 **)((int)ppwVar1 + 2)" ( (type_descriptor "wchar16 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)ppwVar1 + 2)" ( (binary_expression "(int)ppwVar1 + 2" (cast_expression "(int)ppwVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "*(short *)ppwVar1 = (short)param_1;" (assignment_expression "*(short *)ppwVar1 = (short)param_1" (pointer_expression "*(short *)ppwVar1" * (cast_expression "(short *)ppwVar1" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) identifier)) = (cast_expression "(short)param_1" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (if_statement "if ((uint)((int)param_5 - (int)param_4) < 2) goto LAB_00286bc0;" if (parenthesized_expression "((uint)((int)param_5 - (int)param_4) < 2)" ( (binary_expression "(uint)((int)param_5 - (int)param_4) < 2" (call_expression "(uint)((int)param_5 - (int)param_4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)param_5 - (int)param_4)" ( (binary_expression "(int)param_5 - (int)param_4" (cast_expression "(int)param_5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) ))) < number_literal) )) (goto_statement "goto LAB_00286bc0;" goto statement_identifier ;)) (expression_statement "ppwVar1 = param_7;" (assignment_expression "ppwVar1 = param_7" identifier = identifier) ;) }) while (parenthesized_expression "(in_stack_0000001c != param_7)" ( (binary_expression "in_stack_0000001c != param_7" identifier != identifier) )) ;) })) (expression_statement "*(char ***)param_6 = param_4;" (assignment_expression "*(char ***)param_6 = param_4" (pointer_expression "*(char ***)param_6" * (cast_expression "(char ***)param_6" ( (type_descriptor "char ***" primitive_type (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) identifier)) = identifier) ;) (expression_statement "*in_stack_00000020 = param_7;" (assignment_expression "*in_stack_00000020 = param_7" (pointer_expression "*in_stack_00000020" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (labeled_statement "LAB_00286bc0:\n  *(char ***)param_6 = param_4;" statement_identifier : (expression_statement "*(char ***)param_6 = param_4;" (assignment_expression "*(char ***)param_6 = param_4" (pointer_expression "*(char ***)param_6" * (cast_expression "(char ***)param_6" ( (type_descriptor "char ***" primitive_type (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) identifier)) = identifier) ;)) (expression_statement "*in_stack_00000020 = param_7;" (assignment_expression "*in_stack_00000020 = param_7" (pointer_expression "*in_stack_00000020" * identifier) = identifier) ;) (return_statement "return (char)param_1;" return (cast_expression "(char)param_1" ( (type_descriptor "char" primitive_type) ) identifier) ;) }))
(translation_unit "char FUN_00286b10(int param_1,undefined4 param_2,int param_3,int param_4,int *param_5,\n                 undefined2 *param_6,undefined2 *param_7,undefined4 *param_8)\n\n{\n  uint uVar1;\n  undefined2 *puVar2;\n  uint uVar3;\n  \n  uVar3 = *(uint *)(param_1 + 8);\n  FUN_002868e0();\n  if (0xfffe < uVar3) {\n    uVar3 = 0xffff;\n  }\n  if (1 < (uint)(param_4 - param_3)) {\n    puVar2 = param_6;\n    if (param_6 != param_7) {\n      do {\n        uVar1 = FUN_002861b0();\n        if ((uVar1 == 0xfffffffe) || (uVar3 < uVar1)) {\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }\n        param_6 = puVar2 + 1;\n        *puVar2 = (short)uVar1;\n        if ((uint)(param_4 - param_3) < 2) goto LAB_00286bc0;\n        puVar2 = param_6;\n      } while (param_7 != param_6);\n    }\n    *param_5 = param_3;\n    *param_8 = param_6;\n    return '\x01';\n  }\nLAB_00286bc0:\n  *param_5 = param_3;\n  *param_8 = param_6;\n  return (param_4 != param_3) * '\x02';\n}\n\n" (function_definition "char FUN_00286b10(int param_1,undefined4 param_2,int param_3,int param_4,int *param_5,\n                 undefined2 *param_6,undefined2 *param_7,undefined4 *param_8)\n\n{\n  uint uVar1;\n  undefined2 *puVar2;\n  uint uVar3;\n  \n  uVar3 = *(uint *)(param_1 + 8);\n  FUN_002868e0();\n  if (0xfffe < uVar3) {\n    uVar3 = 0xffff;\n  }\n  if (1 < (uint)(param_4 - param_3)) {\n    puVar2 = param_6;\n    if (param_6 != param_7) {\n      do {\n        uVar1 = FUN_002861b0();\n        if ((uVar1 == 0xfffffffe) || (uVar3 < uVar1)) {\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }\n        param_6 = puVar2 + 1;\n        *puVar2 = (short)uVar1;\n        if ((uint)(param_4 - param_3) < 2) goto LAB_00286bc0;\n        puVar2 = param_6;\n      } while (param_7 != param_6);\n    }\n    *param_5 = param_3;\n    *param_8 = param_6;\n    return '\x01';\n  }\nLAB_00286bc0:\n  *param_5 = param_3;\n  *param_8 = param_6;\n  return (param_4 != param_3) * '\x02';\n}" primitive_type (function_declarator "FUN_00286b10(int param_1,undefined4 param_2,int param_3,int param_4,int *param_5,\n                 undefined2 *param_6,undefined2 *param_7,undefined4 *param_8)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3,int param_4,int *param_5,\n                 undefined2 *param_6,undefined2 *param_7,undefined4 *param_8)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "undefined2 *param_6" type_identifier (pointer_declarator "*param_6" * identifier)) , (parameter_declaration "undefined2 *param_7" type_identifier (pointer_declarator "*param_7" * identifier)) , (parameter_declaration "undefined4 *param_8" type_identifier (pointer_declarator "*param_8" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  undefined2 *puVar2;\n  uint uVar3;\n  \n  uVar3 = *(uint *)(param_1 + 8);\n  FUN_002868e0();\n  if (0xfffe < uVar3) {\n    uVar3 = 0xffff;\n  }\n  if (1 < (uint)(param_4 - param_3)) {\n    puVar2 = param_6;\n    if (param_6 != param_7) {\n      do {\n        uVar1 = FUN_002861b0();\n        if ((uVar1 == 0xfffffffe) || (uVar3 < uVar1)) {\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }\n        param_6 = puVar2 + 1;\n        *puVar2 = (short)uVar1;\n        if ((uint)(param_4 - param_3) < 2) goto LAB_00286bc0;\n        puVar2 = param_6;\n      } while (param_7 != param_6);\n    }\n    *param_5 = param_3;\n    *param_8 = param_6;\n    return '\x01';\n  }\nLAB_00286bc0:\n  *param_5 = param_3;\n  *param_8 = param_6;\n  return (param_4 != param_3) * '\x02';\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined2 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "uVar3 = *(uint *)(param_1 + 8);" (assignment_expression "uVar3 = *(uint *)(param_1 + 8)" identifier = (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "FUN_002868e0();" (call_expression "FUN_002868e0()" identifier (argument_list "()" ( ))) ;) (if_statement "if (0xfffe < uVar3) {\n    uVar3 = 0xffff;\n  }" if (parenthesized_expression "(0xfffe < uVar3)" ( (binary_expression "0xfffe < uVar3" number_literal < identifier) )) (compound_statement "{\n    uVar3 = 0xffff;\n  }" { (expression_statement "uVar3 = 0xffff;" (assignment_expression "uVar3 = 0xffff" identifier = number_literal) ;) })) (if_statement "if (1 < (uint)(param_4 - param_3)) {\n    puVar2 = param_6;\n    if (param_6 != param_7) {\n      do {\n        uVar1 = FUN_002861b0();\n        if ((uVar1 == 0xfffffffe) || (uVar3 < uVar1)) {\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }\n        param_6 = puVar2 + 1;\n        *puVar2 = (short)uVar1;\n        if ((uint)(param_4 - param_3) < 2) goto LAB_00286bc0;\n        puVar2 = param_6;\n      } while (param_7 != param_6);\n    }\n    *param_5 = param_3;\n    *param_8 = param_6;\n    return '\x01';\n  }" if (parenthesized_expression "(1 < (uint)(param_4 - param_3))" ( (binary_expression "1 < (uint)(param_4 - param_3)" number_literal < (call_expression "(uint)(param_4 - param_3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_4 - param_3)" ( (binary_expression "param_4 - param_3" identifier - identifier) )))) )) (compound_statement "{\n    puVar2 = param_6;\n    if (param_6 != param_7) {\n      do {\n        uVar1 = FUN_002861b0();\n        if ((uVar1 == 0xfffffffe) || (uVar3 < uVar1)) {\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }\n        param_6 = puVar2 + 1;\n        *puVar2 = (short)uVar1;\n        if ((uint)(param_4 - param_3) < 2) goto LAB_00286bc0;\n        puVar2 = param_6;\n      } while (param_7 != param_6);\n    }\n    *param_5 = param_3;\n    *param_8 = param_6;\n    return '\x01';\n  }" { (expression_statement "puVar2 = param_6;" (assignment_expression "puVar2 = param_6" identifier = identifier) ;) (if_statement "if (param_6 != param_7) {\n      do {\n        uVar1 = FUN_002861b0();\n        if ((uVar1 == 0xfffffffe) || (uVar3 < uVar1)) {\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }\n        param_6 = puVar2 + 1;\n        *puVar2 = (short)uVar1;\n        if ((uint)(param_4 - param_3) < 2) goto LAB_00286bc0;\n        puVar2 = param_6;\n      } while (param_7 != param_6);\n    }" if (parenthesized_expression "(param_6 != param_7)" ( (binary_expression "param_6 != param_7" identifier != identifier) )) (compound_statement "{\n      do {\n        uVar1 = FUN_002861b0();\n        if ((uVar1 == 0xfffffffe) || (uVar3 < uVar1)) {\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }\n        param_6 = puVar2 + 1;\n        *puVar2 = (short)uVar1;\n        if ((uint)(param_4 - param_3) < 2) goto LAB_00286bc0;\n        puVar2 = param_6;\n      } while (param_7 != param_6);\n    }" { (do_statement "do {\n        uVar1 = FUN_002861b0();\n        if ((uVar1 == 0xfffffffe) || (uVar3 < uVar1)) {\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }\n        param_6 = puVar2 + 1;\n        *puVar2 = (short)uVar1;\n        if ((uint)(param_4 - param_3) < 2) goto LAB_00286bc0;\n        puVar2 = param_6;\n      } while (param_7 != param_6);" do (compound_statement "{\n        uVar1 = FUN_002861b0();\n        if ((uVar1 == 0xfffffffe) || (uVar3 < uVar1)) {\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }\n        param_6 = puVar2 + 1;\n        *puVar2 = (short)uVar1;\n        if ((uint)(param_4 - param_3) < 2) goto LAB_00286bc0;\n        puVar2 = param_6;\n      }" { (expression_statement "uVar1 = FUN_002861b0();" (assignment_expression "uVar1 = FUN_002861b0()" identifier = (call_expression "FUN_002861b0()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((uVar1 == 0xfffffffe) || (uVar3 < uVar1)) {\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }" if (parenthesized_expression "((uVar1 == 0xfffffffe) || (uVar3 < uVar1))" ( (binary_expression "(uVar1 == 0xfffffffe) || (uVar3 < uVar1)" (parenthesized_expression "(uVar1 == 0xfffffffe)" ( (binary_expression "uVar1 == 0xfffffffe" identifier == number_literal) )) || (parenthesized_expression "(uVar3 < uVar1)" ( (binary_expression "uVar3 < uVar1" identifier < identifier) ))) )) (compound_statement "{\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }" { (expression_statement "*param_5 = param_3;" (assignment_expression "*param_5 = param_3" (pointer_expression "*param_5" * identifier) = identifier) ;) (expression_statement "*param_8 = puVar2;" (assignment_expression "*param_8 = puVar2" (pointer_expression "*param_8" * identifier) = identifier) ;) (return_statement "return '\x02';" return (char_literal "'\x02'" ' escape_sequence ') ;) })) (expression_statement "param_6 = puVar2 + 1;" (assignment_expression "param_6 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (expression_statement "*puVar2 = (short)uVar1;" (assignment_expression "*puVar2 = (short)uVar1" (pointer_expression "*puVar2" * identifier) = (cast_expression "(short)uVar1" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (if_statement "if ((uint)(param_4 - param_3) < 2) goto LAB_00286bc0;" if (parenthesized_expression "((uint)(param_4 - param_3) < 2)" ( (binary_expression "(uint)(param_4 - param_3) < 2" (call_expression "(uint)(param_4 - param_3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_4 - param_3)" ( (binary_expression "param_4 - param_3" identifier - identifier) ))) < number_literal) )) (goto_statement "goto LAB_00286bc0;" goto statement_identifier ;)) (expression_statement "puVar2 = param_6;" (assignment_expression "puVar2 = param_6" identifier = identifier) ;) }) while (parenthesized_expression "(param_7 != param_6)" ( (binary_expression "param_7 != param_6" identifier != identifier) )) ;) })) (expression_statement "*param_5 = param_3;" (assignment_expression "*param_5 = param_3" (pointer_expression "*param_5" * identifier) = identifier) ;) (expression_statement "*param_8 = param_6;" (assignment_expression "*param_8 = param_6" (pointer_expression "*param_8" * identifier) = identifier) ;) (return_statement "return '\x01';" return (char_literal "'\x01'" ' escape_sequence ') ;) })) (labeled_statement "LAB_00286bc0:\n  *param_5 = param_3;" statement_identifier : (expression_statement "*param_5 = param_3;" (assignment_expression "*param_5 = param_3" (pointer_expression "*param_5" * identifier) = identifier) ;)) (expression_statement "*param_8 = param_6;" (assignment_expression "*param_8 = param_6" (pointer_expression "*param_8" * identifier) = identifier) ;) (return_statement "return (param_4 != param_3) * '\x02';" return (binary_expression "(param_4 != param_3) * '\x02'" (parenthesized_expression "(param_4 != param_3)" ( (binary_expression "param_4 != param_3" identifier != identifier) )) * (char_literal "'\x02'" ' escape_sequence ')) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * 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) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - IDENT) )))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT < IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return (char_literal ' escape_sequence ') ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor (sized_type_specifier short)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - IDENT) ))) < LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return (char_literal ' escape_sequence ') ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return (binary_expression (parenthesized_expression ( (binary_expression IDENT != IDENT) )) * (char_literal ' escape_sequence ')) ;) })))
(function_definition "char FUN_00286b10(int param_1,undefined4 param_2,int param_3,int param_4,int *param_5,\n                 undefined2 *param_6,undefined2 *param_7,undefined4 *param_8)\n\n{\n  uint uVar1;\n  undefined2 *puVar2;\n  uint uVar3;\n  \n  uVar3 = *(uint *)(param_1 + 8);\n  FUN_002868e0();\n  if (0xfffe < uVar3) {\n    uVar3 = 0xffff;\n  }\n  if (1 < (uint)(param_4 - param_3)) {\n    puVar2 = param_6;\n    if (param_6 != param_7) {\n      do {\n        uVar1 = FUN_002861b0();\n        if ((uVar1 == 0xfffffffe) || (uVar3 < uVar1)) {\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }\n        param_6 = puVar2 + 1;\n        *puVar2 = (short)uVar1;\n        if ((uint)(param_4 - param_3) < 2) goto LAB_00286bc0;\n        puVar2 = param_6;\n      } while (param_7 != param_6);\n    }\n    *param_5 = param_3;\n    *param_8 = param_6;\n    return '\x01';\n  }\nLAB_00286bc0:\n  *param_5 = param_3;\n  *param_8 = param_6;\n  return (param_4 != param_3) * '\x02';\n}" (primitive_type "char") (function_declarator "FUN_00286b10(int param_1,undefined4 param_2,int param_3,int param_4,int *param_5,\n                 undefined2 *param_6,undefined2 *param_7,undefined4 *param_8)" (identifier "FUN_00286b10") (parameter_list "(int param_1,undefined4 param_2,int param_3,int param_4,int *param_5,\n                 undefined2 *param_6,undefined2 *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 "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "int *param_5" (primitive_type "int") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) (, ",") (parameter_declaration "undefined2 *param_6" (type_identifier "undefined2") (pointer_declarator "*param_6" (* "*") (identifier "param_6"))) (, ",") (parameter_declaration "undefined2 *param_7" (type_identifier "undefined2") (pointer_declarator "*param_7" (* "*") (identifier "param_7"))) (, ",") (parameter_declaration "undefined4 *param_8" (type_identifier "undefined4") (pointer_declarator "*param_8" (* "*") (identifier "param_8"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  undefined2 *puVar2;\n  uint uVar3;\n  \n  uVar3 = *(uint *)(param_1 + 8);\n  FUN_002868e0();\n  if (0xfffe < uVar3) {\n    uVar3 = 0xffff;\n  }\n  if (1 < (uint)(param_4 - param_3)) {\n    puVar2 = param_6;\n    if (param_6 != param_7) {\n      do {\n        uVar1 = FUN_002861b0();\n        if ((uVar1 == 0xfffffffe) || (uVar3 < uVar1)) {\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }\n        param_6 = puVar2 + 1;\n        *puVar2 = (short)uVar1;\n        if ((uint)(param_4 - param_3) < 2) goto LAB_00286bc0;\n        puVar2 = param_6;\n      } while (param_7 != param_6);\n    }\n    *param_5 = param_3;\n    *param_8 = param_6;\n    return '\x01';\n  }\nLAB_00286bc0:\n  *param_5 = param_3;\n  *param_8 = param_6;\n  return (param_4 != param_3) * '\x02';\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "undefined2 *puVar2;" (type_identifier "undefined2") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (expression_statement "uVar3 = *(uint *)(param_1 + 8);" (assignment_expression "uVar3 = *(uint *)(param_1 + 8)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(param_1 + 8)" (* "*") (cast_expression "(uint *)(param_1 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "FUN_002868e0();" (call_expression "FUN_002868e0()" (identifier "FUN_002868e0") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (0xfffe < uVar3) {\n    uVar3 = 0xffff;\n  }" (if "if") (parenthesized_expression "(0xfffe < uVar3)" (( "(") (binary_expression "0xfffe < uVar3" (number_literal "0xfffe") (< "<") (identifier "uVar3")) () ")")) (compound_statement "{\n    uVar3 = 0xffff;\n  }" ({ "{") (expression_statement "uVar3 = 0xffff;" (assignment_expression "uVar3 = 0xffff" (identifier "uVar3") (= "=") (number_literal "0xffff")) (; ";")) (} "}"))) (if_statement "if (1 < (uint)(param_4 - param_3)) {\n    puVar2 = param_6;\n    if (param_6 != param_7) {\n      do {\n        uVar1 = FUN_002861b0();\n        if ((uVar1 == 0xfffffffe) || (uVar3 < uVar1)) {\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }\n        param_6 = puVar2 + 1;\n        *puVar2 = (short)uVar1;\n        if ((uint)(param_4 - param_3) < 2) goto LAB_00286bc0;\n        puVar2 = param_6;\n      } while (param_7 != param_6);\n    }\n    *param_5 = param_3;\n    *param_8 = param_6;\n    return '\x01';\n  }" (if "if") (parenthesized_expression "(1 < (uint)(param_4 - param_3))" (( "(") (binary_expression "1 < (uint)(param_4 - param_3)" (number_literal "1") (< "<") (call_expression "(uint)(param_4 - param_3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_4 - param_3)" (( "(") (binary_expression "param_4 - param_3" (identifier "param_4") (- "-") (identifier "param_3")) () ")")))) () ")")) (compound_statement "{\n    puVar2 = param_6;\n    if (param_6 != param_7) {\n      do {\n        uVar1 = FUN_002861b0();\n        if ((uVar1 == 0xfffffffe) || (uVar3 < uVar1)) {\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }\n        param_6 = puVar2 + 1;\n        *puVar2 = (short)uVar1;\n        if ((uint)(param_4 - param_3) < 2) goto LAB_00286bc0;\n        puVar2 = param_6;\n      } while (param_7 != param_6);\n    }\n    *param_5 = param_3;\n    *param_8 = param_6;\n    return '\x01';\n  }" ({ "{") (expression_statement "puVar2 = param_6;" (assignment_expression "puVar2 = param_6" (identifier "puVar2") (= "=") (identifier "param_6")) (; ";")) (if_statement "if (param_6 != param_7) {\n      do {\n        uVar1 = FUN_002861b0();\n        if ((uVar1 == 0xfffffffe) || (uVar3 < uVar1)) {\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }\n        param_6 = puVar2 + 1;\n        *puVar2 = (short)uVar1;\n        if ((uint)(param_4 - param_3) < 2) goto LAB_00286bc0;\n        puVar2 = param_6;\n      } while (param_7 != param_6);\n    }" (if "if") (parenthesized_expression "(param_6 != param_7)" (( "(") (binary_expression "param_6 != param_7" (identifier "param_6") (!= "!=") (identifier "param_7")) () ")")) (compound_statement "{\n      do {\n        uVar1 = FUN_002861b0();\n        if ((uVar1 == 0xfffffffe) || (uVar3 < uVar1)) {\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }\n        param_6 = puVar2 + 1;\n        *puVar2 = (short)uVar1;\n        if ((uint)(param_4 - param_3) < 2) goto LAB_00286bc0;\n        puVar2 = param_6;\n      } while (param_7 != param_6);\n    }" ({ "{") (do_statement "do {\n        uVar1 = FUN_002861b0();\n        if ((uVar1 == 0xfffffffe) || (uVar3 < uVar1)) {\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }\n        param_6 = puVar2 + 1;\n        *puVar2 = (short)uVar1;\n        if ((uint)(param_4 - param_3) < 2) goto LAB_00286bc0;\n        puVar2 = param_6;\n      } while (param_7 != param_6);" (do "do") (compound_statement "{\n        uVar1 = FUN_002861b0();\n        if ((uVar1 == 0xfffffffe) || (uVar3 < uVar1)) {\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }\n        param_6 = puVar2 + 1;\n        *puVar2 = (short)uVar1;\n        if ((uint)(param_4 - param_3) < 2) goto LAB_00286bc0;\n        puVar2 = param_6;\n      }" ({ "{") (expression_statement "uVar1 = FUN_002861b0();" (assignment_expression "uVar1 = FUN_002861b0()" (identifier "uVar1") (= "=") (call_expression "FUN_002861b0()" (identifier "FUN_002861b0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((uVar1 == 0xfffffffe) || (uVar3 < uVar1)) {\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }" (if "if") (parenthesized_expression "((uVar1 == 0xfffffffe) || (uVar3 < uVar1))" (( "(") (binary_expression "(uVar1 == 0xfffffffe) || (uVar3 < uVar1)" (parenthesized_expression "(uVar1 == 0xfffffffe)" (( "(") (binary_expression "uVar1 == 0xfffffffe" (identifier "uVar1") (== "==") (number_literal "0xfffffffe")) () ")")) (|| "||") (parenthesized_expression "(uVar3 < uVar1)" (( "(") (binary_expression "uVar3 < uVar1" (identifier "uVar3") (< "<") (identifier "uVar1")) () ")"))) () ")")) (compound_statement "{\n          *param_5 = param_3;\n          *param_8 = puVar2;\n          return '\x02';\n        }" ({ "{") (expression_statement "*param_5 = param_3;" (assignment_expression "*param_5 = param_3" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*param_8 = puVar2;" (assignment_expression "*param_8 = puVar2" (pointer_expression "*param_8" (* "*") (identifier "param_8")) (= "=") (identifier "puVar2")) (; ";")) (return_statement "return '\x02';" (return "return") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'")) (; ";")) (} "}"))) (expression_statement "param_6 = puVar2 + 1;" (assignment_expression "param_6 = puVar2 + 1" (identifier "param_6") (= "=") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar2 = (short)uVar1;" (assignment_expression "*puVar2 = (short)uVar1" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (cast_expression "(short)uVar1" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (identifier "uVar1"))) (; ";")) (if_statement "if ((uint)(param_4 - param_3) < 2) goto LAB_00286bc0;" (if "if") (parenthesized_expression "((uint)(param_4 - param_3) < 2)" (( "(") (binary_expression "(uint)(param_4 - param_3) < 2" (call_expression "(uint)(param_4 - param_3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_4 - param_3)" (( "(") (binary_expression "param_4 - param_3" (identifier "param_4") (- "-") (identifier "param_3")) () ")"))) (< "<") (number_literal "2")) () ")")) (goto_statement "goto LAB_00286bc0;" (goto "goto") (statement_identifier "LAB_00286bc0") (; ";"))) (expression_statement "puVar2 = param_6;" (assignment_expression "puVar2 = param_6" (identifier "puVar2") (= "=") (identifier "param_6")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_7 != param_6)" (( "(") (binary_expression "param_7 != param_6" (identifier "param_7") (!= "!=") (identifier "param_6")) () ")")) (; ";")) (} "}"))) (expression_statement "*param_5 = param_3;" (assignment_expression "*param_5 = param_3" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*param_8 = param_6;" (assignment_expression "*param_8 = param_6" (pointer_expression "*param_8" (* "*") (identifier "param_8")) (= "=") (identifier "param_6")) (; ";")) (return_statement "return '\x01';" (return "return") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'")) (; ";")) (} "}"))) (labeled_statement "LAB_00286bc0:\n  *param_5 = param_3;" (statement_identifier "LAB_00286bc0") (: ":") (expression_statement "*param_5 = param_3;" (assignment_expression "*param_5 = param_3" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (identifier "param_3")) (; ";"))) (expression_statement "*param_8 = param_6;" (assignment_expression "*param_8 = param_6" (pointer_expression "*param_8" (* "*") (identifier "param_8")) (= "=") (identifier "param_6")) (; ";")) (return_statement "return (param_4 != param_3) * '\x02';" (return "return") (binary_expression "(param_4 != param_3) * '\x02'" (parenthesized_expression "(param_4 != param_3)" (( "(") (binary_expression "param_4 != param_3" (identifier "param_4") (!= "!=") (identifier "param_3")) () ")")) (* "*") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) (; ";")) (} "}")))

/* WARNING: Heritage AFTER dead removal. Example location: EAX : 0x00286b96 */
/* WARNING: Restarted to delay deadcode elimination for space: register */
/* std::__codecvt_utf16_base<char16_t>::do_in(__mbstate_t&, char const*, char const*, char const*&,
   char16_t*, char16_t*, char16_t*&) const */

type_1 __regparm1
std::__codecvt_utf16_base<char16_t>::var_1
          (var_2 *var_3,var_4 *var_5,var_4 *var_6,var_4 **param_4,var_7 *var_8,
          var_7 *var_9,var_7 **var_11)

{
  var_7 **ppwVar1;
  var_2 *var_10;
  var_7 **var_12;
  type_2 *in_stack_00000020;
  type_3 *in_stack_ffffffe0;
  type_4 *pcVar3;
  
  var_10 = *(var_2 **)(var_5 + 8);
  pcVar3 = *(type_4 **)(var_5 + 0xc);
  (anonymous_namespace)::read_utf16_bom<false>(in_stack_ffffffe0,pcVar3);
  if ((var_2 *)0xfffe < var_10) {
    var_10 = (var_2 *)0xffff;
  }
  if (1 < (uint)((int)var_8 - (int)param_4)) {
    ppwVar1 = var_11;
    if (var_11 != var_12) {
      do {
        var_3 = (var_2 *)
                  (anonymous_namespace)::read_utf16_code_point<false>(var_3,var_10,pcVar3);
        if ((var_3 == (var_2 *)0xfffffffe) || (var_10 < var_3)) {
          *(char ***)var_9 = param_4;
          *in_stack_00000020 = ppwVar1;
          return 2;
        }
        var_11 = (var_7 **)((int)ppwVar1 + 2);
        *(short *)ppwVar1 = (short)var_3;
        if ((uint)((int)var_8 - (int)param_4) < 2) goto LAB_00286bc0;
        ppwVar1 = var_11;
      } while (var_12 != var_11);
    }
    *(char ***)var_9 = param_4;
    *in_stack_00000020 = var_11;
    return 1;
  }
LAB_00286bc0:
  *(char ***)var_9 = param_4;
  *in_stack_00000020 = var_11;
  return (char)var_3;
}


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

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

{
  uint uVar1;
  undefined2 *puVar2;
  uint uVar3;
  
  uVar3 = *(uint *)(param_1 + 8);
  FUN_002868e0();
  if (0xfffe < uVar3) {
    uVar3 = 0xffff;
  }
  if (1 < (uint)(param_4 - param_3)) {
    puVar2 = param_6;
    if (param_6 != param_7) {
      do {
        uVar1 = FUN_002861b0();
        if ((uVar1 == 0xfffffffe) || (uVar3 < uVar1)) {
          *param_5 = param_3;
          *param_8 = puVar2;
          return '\x02';
        }
        param_6 = puVar2 + 1;
        *puVar2 = (short)uVar1;
        if ((uint)(param_4 - param_3) < 2) goto LAB_00286bc0;
        puVar2 = param_6;
      } while (param_7 != param_6);
    }
    *param_5 = param_3;
    *param_8 = param_6;
    return '\x01';
  }
LAB_00286bc0:
  *param_5 = param_3;
  *param_8 = param_6;
  return (param_4 != param_3) * '\x02';
}

