
/* std::(anonymous namespace)::utf16_span(char const*, char const*, unsigned int, char32_t,
   std::codecvt_mode) */

undefined4 __regparm3
std::(anonymous_namespace)::utf16_span
          (undefined4 param_1,unsigned_char *param_2,uint param_3,ulong param_4,byte param_5)

{
  uint uVar1;
  uint uVar2;
  uint uVar3;
  undefined4 local_18;
  unsigned_char *local_14;
  
  local_18 = param_1;
  local_14 = param_2;
  if ((param_5 & 4) != 0) {
    read_bom<char_const,true,3u>((range *)&local_18,param_2);
  }
  if (param_3 < 2) {
    uVar2 = 1;
  }
  else {
    uVar3 = 0;
    uVar2 = 1;
    do {
      uVar1 = read_utf8_code_point((range *)&local_18,param_4);
      if (param_4 < uVar1) {
        return local_18;
      }
      if (uVar1 < 0x10000) {
        uVar2 = uVar3;
      }
      uVar3 = uVar2 + 1;
      uVar2 = uVar2 + 2;
    } while (uVar2 < param_3);
  }
  if (param_3 != uVar2) {
    return local_18;
  }
  if (0xfffe < param_4) {
    param_4 = 0xffff;
  }
  read_utf8_code_point((range *)&local_18,param_4);
  return local_18;
}



undefined4 __regparm3
FUN_0026f020(undefined4 param_1,undefined4 param_2,uint param_3,uint param_4,byte param_5)

{
  uint uVar1;
  uint uVar2;
  uint uVar3;
  undefined4 *puVar4;
  undefined4 local_18;
  undefined4 local_14;
  
  local_18 = param_1;
  local_14 = param_2;
  if ((param_5 & 4) != 0) {
    FUN_0026ed20();
  }
  if (param_3 < 2) {
    uVar2 = 1;
  }
  else {
    puVar4 = &local_18;
    uVar3 = 0;
    uVar2 = 1;
    do {
      uVar1 = FUN_0026d8e0(puVar4);
      if (param_4 < uVar1) {
        return local_18;
      }
      if (uVar1 < 0x10000) {
        uVar2 = uVar3;
      }
      uVar3 = uVar2 + 1;
      uVar2 = uVar2 + 2;
    } while (uVar2 < param_3);
  }
  if (param_3 != uVar2) {
    return local_18;
  }
  FUN_0026d8e0();
  return local_18;
}


PUSH EBP
PUSH EDI
MOV EDI,ECX
PUSH ESI
PUSH EBX
SUB ESP,0x14
MOV EBX,dword ptr [ESP + 0x28]
MOV dword ptr [ESP + 0xc],EAX
MOV dword ptr [ESP + 0x10],EDX
TEST byte ptr [ESP + 0x2c],0x4
JNZ 0x0026f0c0
CMP EDI,0x1
JBE 0x0026f084
LEA EAX,[ESP + 0xc]
XOR ESI,ESI
MOV EBP,0x1
MOV dword ptr [ESP],EAX
JMP 0x0026f06a
CMP EAX,0xffff
CMOVBE EBP,ESI
LEA ESI,[EBP + 0x1]
ADD EBP,0x2
CMP EBP,EDI
JNC 0x0026f090
MOV EAX,dword ptr [ESP]
MOV EDX,EBX
CALL 0x0026d8e0
CMP EBX,EAX
JNC 0x0026f058
MOV EAX,dword ptr [ESP + 0xc]
ADD ESP,0x14
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EBP,0x1
LEA ESI,[ESI]
CMP EDI,EBP
JNZ 0x0026f078
CMP EBX,0xffff
MOV EAX,0xffff
CMOVNC EBX,EAX
LEA EAX,[ESP + 0xc]
MOV EDX,EBX
CALL 0x0026d8e0
MOV EAX,dword ptr [ESP + 0xc]
ADD ESP,0x14
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[ESP + 0xc]
CALL 0x0026ed20
JMP 0x0026f040
(translation_unit "undefined4 __regparm3\nFUN_0026f020(undefined4 param_1,undefined4 param_2,uint param_3,uint param_4,byte param_5)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  undefined4 local_18;\n  undefined4 local_14;\n  \n  local_18 = param_1;\n  local_14 = param_2;\n  if ((param_5 & 4) != 0) {\n    FUN_0026ed20();\n  }\n  if (param_3 < 2) {\n    uVar2 = 1;\n  }\n  else {\n    puVar4 = &local_18;\n    uVar3 = 0;\n    uVar2 = 1;\n    do {\n      uVar1 = FUN_0026d8e0(puVar4);\n      if (param_4 < uVar1) {\n        return local_18;\n      }\n      if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }\n      uVar3 = uVar2 + 1;\n      uVar2 = uVar2 + 2;\n    } while (uVar2 < param_3);\n  }\n  if (param_3 != uVar2) {\n    return local_18;\n  }\n  FUN_0026d8e0();\n  return local_18;\n}\n\n" (function_definition "undefined4 __regparm3\nFUN_0026f020(undefined4 param_1,undefined4 param_2,uint param_3,uint param_4,byte param_5)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  undefined4 local_18;\n  undefined4 local_14;\n  \n  local_18 = param_1;\n  local_14 = param_2;\n  if ((param_5 & 4) != 0) {\n    FUN_0026ed20();\n  }\n  if (param_3 < 2) {\n    uVar2 = 1;\n  }\n  else {\n    puVar4 = &local_18;\n    uVar3 = 0;\n    uVar2 = 1;\n    do {\n      uVar1 = FUN_0026d8e0(puVar4);\n      if (param_4 < uVar1) {\n        return local_18;\n      }\n      if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }\n      uVar3 = uVar2 + 1;\n      uVar2 = uVar2 + 2;\n    } while (uVar2 < param_3);\n  }\n  if (param_3 != uVar2) {\n    return local_18;\n  }\n  FUN_0026d8e0();\n  return local_18;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0026f020(undefined4 param_1,undefined4 param_2,uint param_3,uint param_4,byte param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,uint param_3,uint param_4,byte param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "byte param_5" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  undefined4 local_18;\n  undefined4 local_14;\n  \n  local_18 = param_1;\n  local_14 = param_2;\n  if ((param_5 & 4) != 0) {\n    FUN_0026ed20();\n  }\n  if (param_3 < 2) {\n    uVar2 = 1;\n  }\n  else {\n    puVar4 = &local_18;\n    uVar3 = 0;\n    uVar2 = 1;\n    do {\n      uVar1 = FUN_0026d8e0(puVar4);\n      if (param_4 < uVar1) {\n        return local_18;\n      }\n      if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }\n      uVar3 = uVar2 + 1;\n      uVar2 = uVar2 + 2;\n    } while (uVar2 < param_3);\n  }\n  if (param_3 != uVar2) {\n    return local_18;\n  }\n  FUN_0026d8e0();\n  return local_18;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 local_18;" type_identifier identifier ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (expression_statement "local_18 = param_1;" (assignment_expression "local_18 = param_1" identifier = identifier) ;) (expression_statement "local_14 = param_2;" (assignment_expression "local_14 = param_2" identifier = identifier) ;) (if_statement "if ((param_5 & 4) != 0) {\n    FUN_0026ed20();\n  }" if (parenthesized_expression "((param_5 & 4) != 0)" ( (binary_expression "(param_5 & 4) != 0" (parenthesized_expression "(param_5 & 4)" ( (binary_expression "param_5 & 4" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    FUN_0026ed20();\n  }" { (expression_statement "FUN_0026ed20();" (call_expression "FUN_0026ed20()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (param_3 < 2) {\n    uVar2 = 1;\n  }\n  else {\n    puVar4 = &local_18;\n    uVar3 = 0;\n    uVar2 = 1;\n    do {\n      uVar1 = FUN_0026d8e0(puVar4);\n      if (param_4 < uVar1) {\n        return local_18;\n      }\n      if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }\n      uVar3 = uVar2 + 1;\n      uVar2 = uVar2 + 2;\n    } while (uVar2 < param_3);\n  }" if (parenthesized_expression "(param_3 < 2)" ( (binary_expression "param_3 < 2" identifier < number_literal) )) (compound_statement "{\n    uVar2 = 1;\n  }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) }) (else_clause "else {\n    puVar4 = &local_18;\n    uVar3 = 0;\n    uVar2 = 1;\n    do {\n      uVar1 = FUN_0026d8e0(puVar4);\n      if (param_4 < uVar1) {\n        return local_18;\n      }\n      if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }\n      uVar3 = uVar2 + 1;\n      uVar2 = uVar2 + 2;\n    } while (uVar2 < param_3);\n  }" else (compound_statement "{\n    puVar4 = &local_18;\n    uVar3 = 0;\n    uVar2 = 1;\n    do {\n      uVar1 = FUN_0026d8e0(puVar4);\n      if (param_4 < uVar1) {\n        return local_18;\n      }\n      if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }\n      uVar3 = uVar2 + 1;\n      uVar2 = uVar2 + 2;\n    } while (uVar2 < param_3);\n  }" { (expression_statement "puVar4 = &local_18;" (assignment_expression "puVar4 = &local_18" identifier = (pointer_expression "&local_18" & identifier)) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (do_statement "do {\n      uVar1 = FUN_0026d8e0(puVar4);\n      if (param_4 < uVar1) {\n        return local_18;\n      }\n      if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }\n      uVar3 = uVar2 + 1;\n      uVar2 = uVar2 + 2;\n    } while (uVar2 < param_3);" do (compound_statement "{\n      uVar1 = FUN_0026d8e0(puVar4);\n      if (param_4 < uVar1) {\n        return local_18;\n      }\n      if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }\n      uVar3 = uVar2 + 1;\n      uVar2 = uVar2 + 2;\n    }" { (expression_statement "uVar1 = FUN_0026d8e0(puVar4);" (assignment_expression "uVar1 = FUN_0026d8e0(puVar4)" identifier = (call_expression "FUN_0026d8e0(puVar4)" identifier (argument_list "(puVar4)" ( identifier )))) ;) (if_statement "if (param_4 < uVar1) {\n        return local_18;\n      }" if (parenthesized_expression "(param_4 < uVar1)" ( (binary_expression "param_4 < uVar1" identifier < identifier) )) (compound_statement "{\n        return local_18;\n      }" { (return_statement "return local_18;" return identifier ;) })) (if_statement "if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }" if (parenthesized_expression "(uVar1 < 0x10000)" ( (binary_expression "uVar1 < 0x10000" identifier < number_literal) )) (compound_statement "{\n        uVar2 = uVar3;\n      }" { (expression_statement "uVar2 = uVar3;" (assignment_expression "uVar2 = uVar3" identifier = identifier) ;) })) (expression_statement "uVar3 = uVar2 + 1;" (assignment_expression "uVar3 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar2 = uVar2 + 2;" (assignment_expression "uVar2 = uVar2 + 2" identifier = (binary_expression "uVar2 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar2 < param_3)" ( (binary_expression "uVar2 < param_3" identifier < identifier) )) ;) }))) (if_statement "if (param_3 != uVar2) {\n    return local_18;\n  }" if (parenthesized_expression "(param_3 != uVar2)" ( (binary_expression "param_3 != uVar2" identifier != identifier) )) (compound_statement "{\n    return local_18;\n  }" { (return_statement "return local_18;" return identifier ;) })) (expression_statement "FUN_0026d8e0();" (call_expression "FUN_0026d8e0()" identifier (argument_list "()" ( ))) ;) (return_statement "return local_18;" return identifier ;) })))
(translation_unit "/* std::(anonymous namespace)::utf16_span(char const*, char const*, unsigned int, char32_t,\n   std::codecvt_mode) */\n\nundefined4 __regparm3\nstd::(anonymous_namespace)::utf16_span\n          (undefined4 param_1,unsigned_char *param_2,uint param_3,ulong param_4,byte param_5)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  undefined4 local_18;\n  unsigned_char *local_14;\n  \n  local_18 = param_1;\n  local_14 = param_2;\n  if ((param_5 & 4) != 0) {\n    read_bom<char_const,true,3u>((range *)&local_18,param_2);\n  }\n  if (param_3 < 2) {\n    uVar2 = 1;\n  }\n  else {\n    uVar3 = 0;\n    uVar2 = 1;\n    do {\n      uVar1 = read_utf8_code_point((range *)&local_18,param_4);\n      if (param_4 < uVar1) {\n        return local_18;\n      }\n      if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }\n      uVar3 = uVar2 + 1;\n      uVar2 = uVar2 + 2;\n    } while (uVar2 < param_3);\n  }\n  if (param_3 != uVar2) {\n    return local_18;\n  }\n  if (0xfffe < param_4) {\n    param_4 = 0xffff;\n  }\n  read_utf8_code_point((range *)&local_18,param_4);\n  return local_18;\n}\n\n" comment (declaration "undefined4 __regparm3" type_identifier identifier ;) (labeled_statement "std::(anonymous_namespace)::utf16_span\n          (undefined4 param_1,unsigned_char *param_2,uint param_3,ulong param_4,byte param_5)\n\n{\n  uint uVar1;" statement_identifier (ERROR "::(anonymous_namespace):" : : (parenthesized_expression "(anonymous_namespace)" ( identifier )) :) : (declaration "utf16_span\n          (undefined4 param_1,unsigned_char *param_2,uint param_3,ulong param_4,byte param_5)\n\n{\n  uint uVar1;" (macro_type_specifier "utf16_span\n          (undefined4" identifier ( (type_descriptor "undefined4" type_identifier) )) identifier , (ERROR "unsigned_char" identifier) (pointer_declarator "*param_2" * identifier) , (ERROR "uint" identifier) identifier , (ERROR "ulong" identifier) identifier , (ERROR "byte param_5)\n\n{\n  uint" identifier identifier ) { identifier) identifier ;)) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 local_18;" type_identifier identifier ;) (declaration "unsigned_char *local_14;" type_identifier (pointer_declarator "*local_14" * identifier) ;) (expression_statement "local_18 = param_1;" (assignment_expression "local_18 = param_1" identifier = identifier) ;) (expression_statement "local_14 = param_2;" (assignment_expression "local_14 = param_2" identifier = identifier) ;) (if_statement "if ((param_5 & 4) != 0) {\n    read_bom<char_const,true,3u>((range *)&local_18,param_2);\n  }" if (parenthesized_expression "((param_5 & 4) != 0)" ( (binary_expression "(param_5 & 4) != 0" (parenthesized_expression "(param_5 & 4)" ( (binary_expression "param_5 & 4" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    read_bom<char_const,true,3u>((range *)&local_18,param_2);\n  }" { (expression_statement "read_bom<char_const,true,3u>((range *)&local_18,param_2);" (comma_expression "read_bom<char_const,true,3u>((range *)&local_18,param_2)" (binary_expression "read_bom<char_const" identifier < identifier) , (comma_expression "true,3u>((range *)&local_18,param_2)" true , (binary_expression "3u>((range *)&local_18,param_2)" number_literal > (parenthesized_expression "((range *)&local_18,param_2)" ( (comma_expression "(range *)&local_18,param_2" (cast_expression "(range *)&local_18" ( (type_descriptor "range *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_18" & identifier)) , identifier) ))))) ;) })) (if_statement "if (param_3 < 2) {\n    uVar2 = 1;\n  }\n  else {\n    uVar3 = 0;\n    uVar2 = 1;\n    do {\n      uVar1 = read_utf8_code_point((range *)&local_18,param_4);\n      if (param_4 < uVar1) {\n        return local_18;\n      }\n      if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }\n      uVar3 = uVar2 + 1;\n      uVar2 = uVar2 + 2;\n    } while (uVar2 < param_3);\n  }" if (parenthesized_expression "(param_3 < 2)" ( (binary_expression "param_3 < 2" identifier < number_literal) )) (compound_statement "{\n    uVar2 = 1;\n  }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) }) (else_clause "else {\n    uVar3 = 0;\n    uVar2 = 1;\n    do {\n      uVar1 = read_utf8_code_point((range *)&local_18,param_4);\n      if (param_4 < uVar1) {\n        return local_18;\n      }\n      if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }\n      uVar3 = uVar2 + 1;\n      uVar2 = uVar2 + 2;\n    } while (uVar2 < param_3);\n  }" else (compound_statement "{\n    uVar3 = 0;\n    uVar2 = 1;\n    do {\n      uVar1 = read_utf8_code_point((range *)&local_18,param_4);\n      if (param_4 < uVar1) {\n        return local_18;\n      }\n      if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }\n      uVar3 = uVar2 + 1;\n      uVar2 = uVar2 + 2;\n    } while (uVar2 < param_3);\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (do_statement "do {\n      uVar1 = read_utf8_code_point((range *)&local_18,param_4);\n      if (param_4 < uVar1) {\n        return local_18;\n      }\n      if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }\n      uVar3 = uVar2 + 1;\n      uVar2 = uVar2 + 2;\n    } while (uVar2 < param_3);" do (compound_statement "{\n      uVar1 = read_utf8_code_point((range *)&local_18,param_4);\n      if (param_4 < uVar1) {\n        return local_18;\n      }\n      if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }\n      uVar3 = uVar2 + 1;\n      uVar2 = uVar2 + 2;\n    }" { (expression_statement "uVar1 = read_utf8_code_point((range *)&local_18,param_4);" (assignment_expression "uVar1 = read_utf8_code_point((range *)&local_18,param_4)" identifier = (call_expression "read_utf8_code_point((range *)&local_18,param_4)" identifier (argument_list "((range *)&local_18,param_4)" ( (cast_expression "(range *)&local_18" ( (type_descriptor "range *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_18" & identifier)) , identifier )))) ;) (if_statement "if (param_4 < uVar1) {\n        return local_18;\n      }" if (parenthesized_expression "(param_4 < uVar1)" ( (binary_expression "param_4 < uVar1" identifier < identifier) )) (compound_statement "{\n        return local_18;\n      }" { (return_statement "return local_18;" return identifier ;) })) (if_statement "if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }" if (parenthesized_expression "(uVar1 < 0x10000)" ( (binary_expression "uVar1 < 0x10000" identifier < number_literal) )) (compound_statement "{\n        uVar2 = uVar3;\n      }" { (expression_statement "uVar2 = uVar3;" (assignment_expression "uVar2 = uVar3" identifier = identifier) ;) })) (expression_statement "uVar3 = uVar2 + 1;" (assignment_expression "uVar3 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar2 = uVar2 + 2;" (assignment_expression "uVar2 = uVar2 + 2" identifier = (binary_expression "uVar2 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar2 < param_3)" ( (binary_expression "uVar2 < param_3" identifier < identifier) )) ;) }))) (if_statement "if (param_3 != uVar2) {\n    return local_18;\n  }" if (parenthesized_expression "(param_3 != uVar2)" ( (binary_expression "param_3 != uVar2" identifier != identifier) )) (compound_statement "{\n    return local_18;\n  }" { (return_statement "return local_18;" return identifier ;) })) (if_statement "if (0xfffe < param_4) {\n    param_4 = 0xffff;\n  }" if (parenthesized_expression "(0xfffe < param_4)" ( (binary_expression "0xfffe < param_4" number_literal < identifier) )) (compound_statement "{\n    param_4 = 0xffff;\n  }" { (expression_statement "param_4 = 0xffff;" (assignment_expression "param_4 = 0xffff" identifier = number_literal) ;) })) (expression_statement "read_utf8_code_point((range *)&local_18,param_4);" (call_expression "read_utf8_code_point((range *)&local_18,param_4)" identifier (argument_list "((range *)&local_18,param_4)" ( (cast_expression "(range *)&local_18" ( (type_descriptor "range *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_18" & identifier)) , identifier ))) ;) (return_statement "return local_18;" return identifier ;) (ERROR "}" }))
(translation_unit "undefined4 __regparm3\nFUN_0026f020(undefined4 param_1,undefined4 param_2,uint param_3,uint param_4,byte param_5)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  undefined4 local_18;\n  undefined4 local_14;\n  \n  local_18 = param_1;\n  local_14 = param_2;\n  if ((param_5 & 4) != 0) {\n    FUN_0026ed20();\n  }\n  if (param_3 < 2) {\n    uVar2 = 1;\n  }\n  else {\n    puVar4 = &local_18;\n    uVar3 = 0;\n    uVar2 = 1;\n    do {\n      uVar1 = FUN_0026d8e0(puVar4);\n      if (param_4 < uVar1) {\n        return local_18;\n      }\n      if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }\n      uVar3 = uVar2 + 1;\n      uVar2 = uVar2 + 2;\n    } while (uVar2 < param_3);\n  }\n  if (param_3 != uVar2) {\n    return local_18;\n  }\n  FUN_0026d8e0();\n  return local_18;\n}\n\n" (function_definition "undefined4 __regparm3\nFUN_0026f020(undefined4 param_1,undefined4 param_2,uint param_3,uint param_4,byte param_5)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  undefined4 local_18;\n  undefined4 local_14;\n  \n  local_18 = param_1;\n  local_14 = param_2;\n  if ((param_5 & 4) != 0) {\n    FUN_0026ed20();\n  }\n  if (param_3 < 2) {\n    uVar2 = 1;\n  }\n  else {\n    puVar4 = &local_18;\n    uVar3 = 0;\n    uVar2 = 1;\n    do {\n      uVar1 = FUN_0026d8e0(puVar4);\n      if (param_4 < uVar1) {\n        return local_18;\n      }\n      if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }\n      uVar3 = uVar2 + 1;\n      uVar2 = uVar2 + 2;\n    } while (uVar2 < param_3);\n  }\n  if (param_3 != uVar2) {\n    return local_18;\n  }\n  FUN_0026d8e0();\n  return local_18;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0026f020(undefined4 param_1,undefined4 param_2,uint param_3,uint param_4,byte param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,uint param_3,uint param_4,byte param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "byte param_5" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  undefined4 local_18;\n  undefined4 local_14;\n  \n  local_18 = param_1;\n  local_14 = param_2;\n  if ((param_5 & 4) != 0) {\n    FUN_0026ed20();\n  }\n  if (param_3 < 2) {\n    uVar2 = 1;\n  }\n  else {\n    puVar4 = &local_18;\n    uVar3 = 0;\n    uVar2 = 1;\n    do {\n      uVar1 = FUN_0026d8e0(puVar4);\n      if (param_4 < uVar1) {\n        return local_18;\n      }\n      if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }\n      uVar3 = uVar2 + 1;\n      uVar2 = uVar2 + 2;\n    } while (uVar2 < param_3);\n  }\n  if (param_3 != uVar2) {\n    return local_18;\n  }\n  FUN_0026d8e0();\n  return local_18;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 local_18;" type_identifier identifier ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (expression_statement "local_18 = param_1;" (assignment_expression "local_18 = param_1" identifier = identifier) ;) (expression_statement "local_14 = param_2;" (assignment_expression "local_14 = param_2" identifier = identifier) ;) (if_statement "if ((param_5 & 4) != 0) {\n    FUN_0026ed20();\n  }" if (parenthesized_expression "((param_5 & 4) != 0)" ( (binary_expression "(param_5 & 4) != 0" (parenthesized_expression "(param_5 & 4)" ( (binary_expression "param_5 & 4" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    FUN_0026ed20();\n  }" { (expression_statement "FUN_0026ed20();" (call_expression "FUN_0026ed20()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (param_3 < 2) {\n    uVar2 = 1;\n  }\n  else {\n    puVar4 = &local_18;\n    uVar3 = 0;\n    uVar2 = 1;\n    do {\n      uVar1 = FUN_0026d8e0(puVar4);\n      if (param_4 < uVar1) {\n        return local_18;\n      }\n      if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }\n      uVar3 = uVar2 + 1;\n      uVar2 = uVar2 + 2;\n    } while (uVar2 < param_3);\n  }" if (parenthesized_expression "(param_3 < 2)" ( (binary_expression "param_3 < 2" identifier < number_literal) )) (compound_statement "{\n    uVar2 = 1;\n  }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) }) (else_clause "else {\n    puVar4 = &local_18;\n    uVar3 = 0;\n    uVar2 = 1;\n    do {\n      uVar1 = FUN_0026d8e0(puVar4);\n      if (param_4 < uVar1) {\n        return local_18;\n      }\n      if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }\n      uVar3 = uVar2 + 1;\n      uVar2 = uVar2 + 2;\n    } while (uVar2 < param_3);\n  }" else (compound_statement "{\n    puVar4 = &local_18;\n    uVar3 = 0;\n    uVar2 = 1;\n    do {\n      uVar1 = FUN_0026d8e0(puVar4);\n      if (param_4 < uVar1) {\n        return local_18;\n      }\n      if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }\n      uVar3 = uVar2 + 1;\n      uVar2 = uVar2 + 2;\n    } while (uVar2 < param_3);\n  }" { (expression_statement "puVar4 = &local_18;" (assignment_expression "puVar4 = &local_18" identifier = (pointer_expression "&local_18" & identifier)) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (do_statement "do {\n      uVar1 = FUN_0026d8e0(puVar4);\n      if (param_4 < uVar1) {\n        return local_18;\n      }\n      if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }\n      uVar3 = uVar2 + 1;\n      uVar2 = uVar2 + 2;\n    } while (uVar2 < param_3);" do (compound_statement "{\n      uVar1 = FUN_0026d8e0(puVar4);\n      if (param_4 < uVar1) {\n        return local_18;\n      }\n      if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }\n      uVar3 = uVar2 + 1;\n      uVar2 = uVar2 + 2;\n    }" { (expression_statement "uVar1 = FUN_0026d8e0(puVar4);" (assignment_expression "uVar1 = FUN_0026d8e0(puVar4)" identifier = (call_expression "FUN_0026d8e0(puVar4)" identifier (argument_list "(puVar4)" ( identifier )))) ;) (if_statement "if (param_4 < uVar1) {\n        return local_18;\n      }" if (parenthesized_expression "(param_4 < uVar1)" ( (binary_expression "param_4 < uVar1" identifier < identifier) )) (compound_statement "{\n        return local_18;\n      }" { (return_statement "return local_18;" return identifier ;) })) (if_statement "if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }" if (parenthesized_expression "(uVar1 < 0x10000)" ( (binary_expression "uVar1 < 0x10000" identifier < number_literal) )) (compound_statement "{\n        uVar2 = uVar3;\n      }" { (expression_statement "uVar2 = uVar3;" (assignment_expression "uVar2 = uVar3" identifier = identifier) ;) })) (expression_statement "uVar3 = uVar2 + 1;" (assignment_expression "uVar3 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar2 = uVar2 + 2;" (assignment_expression "uVar2 = uVar2 + 2" identifier = (binary_expression "uVar2 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar2 < param_3)" ( (binary_expression "uVar2 < param_3" identifier < identifier) )) ;) }))) (if_statement "if (param_3 != uVar2) {\n    return local_18;\n  }" if (parenthesized_expression "(param_3 != uVar2)" ( (binary_expression "param_3 != uVar2" identifier != identifier) )) (compound_statement "{\n    return local_18;\n  }" { (return_statement "return local_18;" return identifier ;) })) (expression_statement "FUN_0026d8e0();" (call_expression "FUN_0026d8e0()" identifier (argument_list "()" ( ))) ;) (return_statement "return local_18;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 __regparm3\nFUN_0026f020(undefined4 param_1,undefined4 param_2,uint param_3,uint param_4,byte param_5)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  undefined4 local_18;\n  undefined4 local_14;\n  \n  local_18 = param_1;\n  local_14 = param_2;\n  if ((param_5 & 4) != 0) {\n    FUN_0026ed20();\n  }\n  if (param_3 < 2) {\n    uVar2 = 1;\n  }\n  else {\n    puVar4 = &local_18;\n    uVar3 = 0;\n    uVar2 = 1;\n    do {\n      uVar1 = FUN_0026d8e0(puVar4);\n      if (param_4 < uVar1) {\n        return local_18;\n      }\n      if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }\n      uVar3 = uVar2 + 1;\n      uVar2 = uVar2 + 2;\n    } while (uVar2 < param_3);\n  }\n  if (param_3 != uVar2) {\n    return local_18;\n  }\n  FUN_0026d8e0();\n  return local_18;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0026f020(undefined4 param_1,undefined4 param_2,uint param_3,uint param_4,byte param_5)" (identifier "FUN_0026f020") (parameter_list "(undefined4 param_1,undefined4 param_2,uint param_3,uint param_4,byte param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) (, ",") (parameter_declaration "byte param_5" (type_identifier "byte") (identifier "param_5")) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  undefined4 local_18;\n  undefined4 local_14;\n  \n  local_18 = param_1;\n  local_14 = param_2;\n  if ((param_5 & 4) != 0) {\n    FUN_0026ed20();\n  }\n  if (param_3 < 2) {\n    uVar2 = 1;\n  }\n  else {\n    puVar4 = &local_18;\n    uVar3 = 0;\n    uVar2 = 1;\n    do {\n      uVar1 = FUN_0026d8e0(puVar4);\n      if (param_4 < uVar1) {\n        return local_18;\n      }\n      if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }\n      uVar3 = uVar2 + 1;\n      uVar2 = uVar2 + 2;\n    } while (uVar2 < param_3);\n  }\n  if (param_3 != uVar2) {\n    return local_18;\n  }\n  FUN_0026d8e0();\n  return local_18;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined4 local_18;" (type_identifier "undefined4") (identifier "local_18") (; ";")) (declaration "undefined4 local_14;" (type_identifier "undefined4") (identifier "local_14") (; ";")) (expression_statement "local_18 = param_1;" (assignment_expression "local_18 = param_1" (identifier "local_18") (= "=") (identifier "param_1")) (; ";")) (expression_statement "local_14 = param_2;" (assignment_expression "local_14 = param_2" (identifier "local_14") (= "=") (identifier "param_2")) (; ";")) (if_statement "if ((param_5 & 4) != 0) {\n    FUN_0026ed20();\n  }" (if "if") (parenthesized_expression "((param_5 & 4) != 0)" (( "(") (binary_expression "(param_5 & 4) != 0" (parenthesized_expression "(param_5 & 4)" (( "(") (binary_expression "param_5 & 4" (identifier "param_5") (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_0026ed20();\n  }" ({ "{") (expression_statement "FUN_0026ed20();" (call_expression "FUN_0026ed20()" (identifier "FUN_0026ed20") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_3 < 2) {\n    uVar2 = 1;\n  }\n  else {\n    puVar4 = &local_18;\n    uVar3 = 0;\n    uVar2 = 1;\n    do {\n      uVar1 = FUN_0026d8e0(puVar4);\n      if (param_4 < uVar1) {\n        return local_18;\n      }\n      if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }\n      uVar3 = uVar2 + 1;\n      uVar2 = uVar2 + 2;\n    } while (uVar2 < param_3);\n  }" (if "if") (parenthesized_expression "(param_3 < 2)" (( "(") (binary_expression "param_3 < 2" (identifier "param_3") (< "<") (number_literal "2")) () ")")) (compound_statement "{\n    uVar2 = 1;\n  }" ({ "{") (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n    puVar4 = &local_18;\n    uVar3 = 0;\n    uVar2 = 1;\n    do {\n      uVar1 = FUN_0026d8e0(puVar4);\n      if (param_4 < uVar1) {\n        return local_18;\n      }\n      if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }\n      uVar3 = uVar2 + 1;\n      uVar2 = uVar2 + 2;\n    } while (uVar2 < param_3);\n  }" (else "else") (compound_statement "{\n    puVar4 = &local_18;\n    uVar3 = 0;\n    uVar2 = 1;\n    do {\n      uVar1 = FUN_0026d8e0(puVar4);\n      if (param_4 < uVar1) {\n        return local_18;\n      }\n      if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }\n      uVar3 = uVar2 + 1;\n      uVar2 = uVar2 + 2;\n    } while (uVar2 < param_3);\n  }" ({ "{") (expression_statement "puVar4 = &local_18;" (assignment_expression "puVar4 = &local_18" (identifier "puVar4") (= "=") (pointer_expression "&local_18" (& "&") (identifier "local_18"))) (; ";")) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (do_statement "do {\n      uVar1 = FUN_0026d8e0(puVar4);\n      if (param_4 < uVar1) {\n        return local_18;\n      }\n      if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }\n      uVar3 = uVar2 + 1;\n      uVar2 = uVar2 + 2;\n    } while (uVar2 < param_3);" (do "do") (compound_statement "{\n      uVar1 = FUN_0026d8e0(puVar4);\n      if (param_4 < uVar1) {\n        return local_18;\n      }\n      if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }\n      uVar3 = uVar2 + 1;\n      uVar2 = uVar2 + 2;\n    }" ({ "{") (expression_statement "uVar1 = FUN_0026d8e0(puVar4);" (assignment_expression "uVar1 = FUN_0026d8e0(puVar4)" (identifier "uVar1") (= "=") (call_expression "FUN_0026d8e0(puVar4)" (identifier "FUN_0026d8e0") (argument_list "(puVar4)" (( "(") (identifier "puVar4") () ")")))) (; ";")) (if_statement "if (param_4 < uVar1) {\n        return local_18;\n      }" (if "if") (parenthesized_expression "(param_4 < uVar1)" (( "(") (binary_expression "param_4 < uVar1" (identifier "param_4") (< "<") (identifier "uVar1")) () ")")) (compound_statement "{\n        return local_18;\n      }" ({ "{") (return_statement "return local_18;" (return "return") (identifier "local_18") (; ";")) (} "}"))) (if_statement "if (uVar1 < 0x10000) {\n        uVar2 = uVar3;\n      }" (if "if") (parenthesized_expression "(uVar1 < 0x10000)" (( "(") (binary_expression "uVar1 < 0x10000" (identifier "uVar1") (< "<") (number_literal "0x10000")) () ")")) (compound_statement "{\n        uVar2 = uVar3;\n      }" ({ "{") (expression_statement "uVar2 = uVar3;" (assignment_expression "uVar2 = uVar3" (identifier "uVar2") (= "=") (identifier "uVar3")) (; ";")) (} "}"))) (expression_statement "uVar3 = uVar2 + 1;" (assignment_expression "uVar3 = uVar2 + 1" (identifier "uVar3") (= "=") (binary_expression "uVar2 + 1" (identifier "uVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar2 = uVar2 + 2;" (assignment_expression "uVar2 = uVar2 + 2" (identifier "uVar2") (= "=") (binary_expression "uVar2 + 2" (identifier "uVar2") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar2 < param_3)" (( "(") (binary_expression "uVar2 < param_3" (identifier "uVar2") (< "<") (identifier "param_3")) () ")")) (; ";")) (} "}")))) (if_statement "if (param_3 != uVar2) {\n    return local_18;\n  }" (if "if") (parenthesized_expression "(param_3 != uVar2)" (( "(") (binary_expression "param_3 != uVar2" (identifier "param_3") (!= "!=") (identifier "uVar2")) () ")")) (compound_statement "{\n    return local_18;\n  }" ({ "{") (return_statement "return local_18;" (return "return") (identifier "local_18") (; ";")) (} "}"))) (expression_statement "FUN_0026d8e0();" (call_expression "FUN_0026d8e0()" (identifier "FUN_0026d8e0") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return local_18;" (return "return") (identifier "local_18") (; ";")) (} "}")))

/* std::(anonymous namespace)::utf16_span(char const*, char const*, unsigned int, char32_t,
   std::codecvt_mode) */

type_1 __regparm3
std::(anonymous_namespace)::type_2
          (type_1 param_1,type_4 *param_2,type_3 var_4,ulong var_6,byte var_1)

{
  type_3 var_7;
  type_3 var_8;
  type_3 uVar3;
  type_1 local_18;
  type_4 *local_14;
  
  local_18 = param_1;
  local_14 = param_2;
  if ((var_1 & 4) != 0) {
    var_2<var_3,true,3u>((type_5 *)&local_18,param_2);
  }
  if (var_4 < 2) {
    var_8 = 1;
  }
  else {
    uVar3 = 0;
    var_8 = 1;
    do {
      var_7 = var_5((type_5 *)&local_18,var_6);
      if (var_6 < var_7) {
        return local_18;
      }
      if (var_7 < 0x10000) {
        var_8 = uVar3;
      }
      uVar3 = var_8 + 1;
      var_8 = var_8 + 2;
    } while (var_8 < var_4);
  }
  if (var_4 != var_8) {
    return local_18;
  }
  if (0xfffe < var_6) {
    var_6 = 0xffff;
  }
  var_5((type_5 *)&local_18,var_6);
  return local_18;
}


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement (identifier)))))

undefined4 __regparm3
MASKED(undefined4 param_1,undefined4 param_2,uint param_3,uint param_4,byte param_5)

{
  uint uVar1;
  uint uVar2;
  uint uVar3;
  undefined4 *puVar4;
  undefined4 local_18;
  undefined4 local_14;
  
  local_18 = param_1;
  local_14 = param_2;
  if ((param_5 & 4) != 0) {
    FUN_0026ed20();
  }
  if (param_3 < 2) {
    uVar2 = 1;
  }
  else {
    puVar4 = &local_18;
    uVar3 = 0;
    uVar2 = 1;
    do {
      uVar1 = FUN_0026d8e0(puVar4);
      if (param_4 < uVar1) {
        return local_18;
      }
      if (uVar1 < 0x10000) {
        uVar2 = uVar3;
      }
      uVar3 = uVar2 + 1;
      uVar2 = uVar2 + 2;
    } while (uVar2 < param_3);
  }
  if (param_3 != uVar2) {
    return local_18;
  }
  FUN_0026d8e0();
  return local_18;
}

