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

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

{
  uint uVar1;
  int iVar2;
  bool bVar3;
  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);
  }
  iVar2 = param_3 + -1;
  if (param_3 != 0) {
    do {
      uVar1 = read_utf8_code_point((range *)&local_18,param_4);
      bVar3 = iVar2 != 0;
      iVar2 = iVar2 + -1;
    } while (uVar1 <= param_4 && bVar3);
  }
  return local_18;
}



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

{
  uint uVar1;
  int iVar2;
  bool bVar3;
  
  if ((param_5 & 4) != 0) {
    FUN_0026ed20();
  }
  iVar2 = param_3 + -1;
  if (param_3 != 0) {
    do {
      uVar1 = FUN_0026d8e0();
      bVar3 = iVar2 != 0;
      iVar2 = iVar2 + -1;
    } while (uVar1 <= param_4 && bVar3);
  }
  return param_1;
}


PUSH EBP
MOV EBP,ECX
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x10
MOV ESI,dword ptr [ESP + 0x24]
MOV dword ptr [ESP + 0x8],EAX
MOV dword ptr [ESP + 0xc],EDX
TEST byte ptr [ESP + 0x28],0x4
JNZ 0x0026f430
LEA EBX,[EBP + -0x1]
TEST EBP,EBP
JZ 0x0026f41a
LEA EDI,[ESP + 0x8]
LEA ESI,[ESI]
NOP
MOV EDX,ESI
MOV EAX,EDI
CALL 0x0026d8e0
CMP ESI,EAX
SETNC DL
TEST EBX,EBX
SETNZ AL
SUB EBX,0x1
TEST DL,AL
JNZ 0x0026f400
MOV EAX,dword ptr [ESP + 0x8]
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EDI,[ESP + 0x8]
MOV EAX,EDI
CALL 0x0026ed20
JMP 0x0026f3ec
(translation_unit "undefined4 __regparm3\nFUN_0026f3d0(undefined4 param_1,undefined4 param_2,int param_3,uint param_4,byte param_5)\n\n{\n  uint uVar1;\n  int iVar2;\n  bool bVar3;\n  \n  if ((param_5 & 4) != 0) {\n    FUN_0026ed20();\n  }\n  iVar2 = param_3 + -1;\n  if (param_3 != 0) {\n    do {\n      uVar1 = FUN_0026d8e0();\n      bVar3 = iVar2 != 0;\n      iVar2 = iVar2 + -1;\n    } while (uVar1 <= param_4 && bVar3);\n  }\n  return param_1;\n}\n\n" (function_definition "undefined4 __regparm3\nFUN_0026f3d0(undefined4 param_1,undefined4 param_2,int param_3,uint param_4,byte param_5)\n\n{\n  uint uVar1;\n  int iVar2;\n  bool bVar3;\n  \n  if ((param_5 & 4) != 0) {\n    FUN_0026ed20();\n  }\n  iVar2 = param_3 + -1;\n  if (param_3 != 0) {\n    do {\n      uVar1 = FUN_0026d8e0();\n      bVar3 = iVar2 != 0;\n      iVar2 = iVar2 + -1;\n    } while (uVar1 <= param_4 && bVar3);\n  }\n  return param_1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0026f3d0(undefined4 param_1,undefined4 param_2,int param_3,uint param_4,byte param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int 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 "int param_3" primitive_type identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "byte param_5" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  bool bVar3;\n  \n  if ((param_5 & 4) != 0) {\n    FUN_0026ed20();\n  }\n  iVar2 = param_3 + -1;\n  if (param_3 != 0) {\n    do {\n      uVar1 = FUN_0026d8e0();\n      bVar3 = iVar2 != 0;\n      iVar2 = iVar2 + -1;\n    } while (uVar1 <= param_4 && bVar3);\n  }\n  return param_1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "bool bVar3;" primitive_type 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 "()" ( ))) ;) })) (expression_statement "iVar2 = param_3 + -1;" (assignment_expression "iVar2 = param_3 + -1" identifier = (binary_expression "param_3 + -1" identifier + number_literal)) ;) (if_statement "if (param_3 != 0) {\n    do {\n      uVar1 = FUN_0026d8e0();\n      bVar3 = iVar2 != 0;\n      iVar2 = iVar2 + -1;\n    } while (uVar1 <= param_4 && bVar3);\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      uVar1 = FUN_0026d8e0();\n      bVar3 = iVar2 != 0;\n      iVar2 = iVar2 + -1;\n    } while (uVar1 <= param_4 && bVar3);\n  }" { (do_statement "do {\n      uVar1 = FUN_0026d8e0();\n      bVar3 = iVar2 != 0;\n      iVar2 = iVar2 + -1;\n    } while (uVar1 <= param_4 && bVar3);" do (compound_statement "{\n      uVar1 = FUN_0026d8e0();\n      bVar3 = iVar2 != 0;\n      iVar2 = iVar2 + -1;\n    }" { (expression_statement "uVar1 = FUN_0026d8e0();" (assignment_expression "uVar1 = FUN_0026d8e0()" identifier = (call_expression "FUN_0026d8e0()" identifier (argument_list "()" ( )))) ;) (expression_statement "bVar3 = iVar2 != 0;" (assignment_expression "bVar3 = iVar2 != 0" identifier = (binary_expression "iVar2 != 0" identifier != number_literal)) ;) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar1 <= param_4 && bVar3)" ( (binary_expression "uVar1 <= param_4 && bVar3" (binary_expression "uVar1 <= param_4" identifier <= identifier) && identifier) )) ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* std::(anonymous namespace)::ucs4_span(char const*, char const*, unsigned int, char32_t,\n   std::codecvt_mode) */\n\nundefined4 __regparm3\nstd::(anonymous_namespace)::ucs4_span\n          (undefined4 param_1,unsigned_char *param_2,int param_3,ulong param_4,byte param_5)\n\n{\n  uint uVar1;\n  int iVar2;\n  bool bVar3;\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  iVar2 = param_3 + -1;\n  if (param_3 != 0) {\n    do {\n      uVar1 = read_utf8_code_point((range *)&local_18,param_4);\n      bVar3 = iVar2 != 0;\n      iVar2 = iVar2 + -1;\n    } while (uVar1 <= param_4 && bVar3);\n  }\n  return local_18;\n}\n\n" comment (declaration "undefined4 __regparm3" type_identifier identifier ;) (labeled_statement "std::(anonymous_namespace)::ucs4_span\n          (undefined4 param_1,unsigned_char *param_2,int param_3,ulong param_4,byte param_5)\n\n{\n  uint uVar1;" statement_identifier (ERROR "::(anonymous_namespace):" : : (parenthesized_expression "(anonymous_namespace)" ( identifier )) :) : (declaration "ucs4_span\n          (undefined4 param_1,unsigned_char *param_2,int param_3,ulong param_4,byte param_5)\n\n{\n  uint uVar1;" (macro_type_specifier "ucs4_span\n          (undefined4" identifier ( (type_descriptor "undefined4" type_identifier) )) identifier , (ERROR "unsigned_char" identifier) (pointer_declarator "*param_2" * identifier) , (ERROR "int" identifier) identifier , (ERROR "ulong" identifier) identifier , (ERROR "byte param_5)\n\n{\n  uint" identifier identifier ) { identifier) identifier ;)) (declaration "int iVar2;" primitive_type identifier ;) (declaration "bool bVar3;" primitive_type 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) ))))) ;) })) (expression_statement "iVar2 = param_3 + -1;" (assignment_expression "iVar2 = param_3 + -1" identifier = (binary_expression "param_3 + -1" identifier + number_literal)) ;) (if_statement "if (param_3 != 0) {\n    do {\n      uVar1 = read_utf8_code_point((range *)&local_18,param_4);\n      bVar3 = iVar2 != 0;\n      iVar2 = iVar2 + -1;\n    } while (uVar1 <= param_4 && bVar3);\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      uVar1 = read_utf8_code_point((range *)&local_18,param_4);\n      bVar3 = iVar2 != 0;\n      iVar2 = iVar2 + -1;\n    } while (uVar1 <= param_4 && bVar3);\n  }" { (do_statement "do {\n      uVar1 = read_utf8_code_point((range *)&local_18,param_4);\n      bVar3 = iVar2 != 0;\n      iVar2 = iVar2 + -1;\n    } while (uVar1 <= param_4 && bVar3);" do (compound_statement "{\n      uVar1 = read_utf8_code_point((range *)&local_18,param_4);\n      bVar3 = iVar2 != 0;\n      iVar2 = iVar2 + -1;\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 )))) ;) (expression_statement "bVar3 = iVar2 != 0;" (assignment_expression "bVar3 = iVar2 != 0" identifier = (binary_expression "iVar2 != 0" identifier != number_literal)) ;) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar1 <= param_4 && bVar3)" ( (binary_expression "uVar1 <= param_4 && bVar3" (binary_expression "uVar1 <= param_4" identifier <= identifier) && identifier) )) ;) })) (return_statement "return local_18;" return identifier ;) (ERROR "}" }))
(translation_unit "undefined4 __regparm3\nFUN_0026f3d0(undefined4 param_1,undefined4 param_2,int param_3,uint param_4,byte param_5)\n\n{\n  uint uVar1;\n  int iVar2;\n  bool bVar3;\n  \n  if ((param_5 & 4) != 0) {\n    FUN_0026ed20();\n  }\n  iVar2 = param_3 + -1;\n  if (param_3 != 0) {\n    do {\n      uVar1 = FUN_0026d8e0();\n      bVar3 = iVar2 != 0;\n      iVar2 = iVar2 + -1;\n    } while (uVar1 <= param_4 && bVar3);\n  }\n  return param_1;\n}\n\n" (function_definition "undefined4 __regparm3\nFUN_0026f3d0(undefined4 param_1,undefined4 param_2,int param_3,uint param_4,byte param_5)\n\n{\n  uint uVar1;\n  int iVar2;\n  bool bVar3;\n  \n  if ((param_5 & 4) != 0) {\n    FUN_0026ed20();\n  }\n  iVar2 = param_3 + -1;\n  if (param_3 != 0) {\n    do {\n      uVar1 = FUN_0026d8e0();\n      bVar3 = iVar2 != 0;\n      iVar2 = iVar2 + -1;\n    } while (uVar1 <= param_4 && bVar3);\n  }\n  return param_1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0026f3d0(undefined4 param_1,undefined4 param_2,int param_3,uint param_4,byte param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int 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 "int param_3" primitive_type identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "byte param_5" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  bool bVar3;\n  \n  if ((param_5 & 4) != 0) {\n    FUN_0026ed20();\n  }\n  iVar2 = param_3 + -1;\n  if (param_3 != 0) {\n    do {\n      uVar1 = FUN_0026d8e0();\n      bVar3 = iVar2 != 0;\n      iVar2 = iVar2 + -1;\n    } while (uVar1 <= param_4 && bVar3);\n  }\n  return param_1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "bool bVar3;" primitive_type 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 "()" ( ))) ;) })) (expression_statement "iVar2 = param_3 + -1;" (assignment_expression "iVar2 = param_3 + -1" identifier = (binary_expression "param_3 + -1" identifier + number_literal)) ;) (if_statement "if (param_3 != 0) {\n    do {\n      uVar1 = FUN_0026d8e0();\n      bVar3 = iVar2 != 0;\n      iVar2 = iVar2 + -1;\n    } while (uVar1 <= param_4 && bVar3);\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      uVar1 = FUN_0026d8e0();\n      bVar3 = iVar2 != 0;\n      iVar2 = iVar2 + -1;\n    } while (uVar1 <= param_4 && bVar3);\n  }" { (do_statement "do {\n      uVar1 = FUN_0026d8e0();\n      bVar3 = iVar2 != 0;\n      iVar2 = iVar2 + -1;\n    } while (uVar1 <= param_4 && bVar3);" do (compound_statement "{\n      uVar1 = FUN_0026d8e0();\n      bVar3 = iVar2 != 0;\n      iVar2 = iVar2 + -1;\n    }" { (expression_statement "uVar1 = FUN_0026d8e0();" (assignment_expression "uVar1 = FUN_0026d8e0()" identifier = (call_expression "FUN_0026d8e0()" identifier (argument_list "()" ( )))) ;) (expression_statement "bVar3 = iVar2 != 0;" (assignment_expression "bVar3 = iVar2 != 0" identifier = (binary_expression "iVar2 != 0" identifier != number_literal)) ;) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar1 <= param_4 && bVar3)" ( (binary_expression "uVar1 <= param_4 && bVar3" (binary_expression "uVar1 <= param_4" identifier <= identifier) && identifier) )) ;) })) (return_statement "return param_1;" 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 ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT != LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT <= IDENT) && IDENT) )) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 __regparm3\nFUN_0026f3d0(undefined4 param_1,undefined4 param_2,int param_3,uint param_4,byte param_5)\n\n{\n  uint uVar1;\n  int iVar2;\n  bool bVar3;\n  \n  if ((param_5 & 4) != 0) {\n    FUN_0026ed20();\n  }\n  iVar2 = param_3 + -1;\n  if (param_3 != 0) {\n    do {\n      uVar1 = FUN_0026d8e0();\n      bVar3 = iVar2 != 0;\n      iVar2 = iVar2 + -1;\n    } while (uVar1 <= param_4 && bVar3);\n  }\n  return param_1;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0026f3d0(undefined4 param_1,undefined4 param_2,int param_3,uint param_4,byte param_5)" (identifier "FUN_0026f3d0") (parameter_list "(undefined4 param_1,undefined4 param_2,int 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 "int param_3" (primitive_type "int") (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  int iVar2;\n  bool bVar3;\n  \n  if ((param_5 & 4) != 0) {\n    FUN_0026ed20();\n  }\n  iVar2 = param_3 + -1;\n  if (param_3 != 0) {\n    do {\n      uVar1 = FUN_0026d8e0();\n      bVar3 = iVar2 != 0;\n      iVar2 = iVar2 + -1;\n    } while (uVar1 <= param_4 && bVar3);\n  }\n  return param_1;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "bool bVar3;" (primitive_type "bool") (identifier "bVar3") (; ";")) (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 "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar2 = param_3 + -1;" (assignment_expression "iVar2 = param_3 + -1" (identifier "iVar2") (= "=") (binary_expression "param_3 + -1" (identifier "param_3") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (param_3 != 0) {\n    do {\n      uVar1 = FUN_0026d8e0();\n      bVar3 = iVar2 != 0;\n      iVar2 = iVar2 + -1;\n    } while (uVar1 <= param_4 && bVar3);\n  }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    do {\n      uVar1 = FUN_0026d8e0();\n      bVar3 = iVar2 != 0;\n      iVar2 = iVar2 + -1;\n    } while (uVar1 <= param_4 && bVar3);\n  }" ({ "{") (do_statement "do {\n      uVar1 = FUN_0026d8e0();\n      bVar3 = iVar2 != 0;\n      iVar2 = iVar2 + -1;\n    } while (uVar1 <= param_4 && bVar3);" (do "do") (compound_statement "{\n      uVar1 = FUN_0026d8e0();\n      bVar3 = iVar2 != 0;\n      iVar2 = iVar2 + -1;\n    }" ({ "{") (expression_statement "uVar1 = FUN_0026d8e0();" (assignment_expression "uVar1 = FUN_0026d8e0()" (identifier "uVar1") (= "=") (call_expression "FUN_0026d8e0()" (identifier "FUN_0026d8e0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "bVar3 = iVar2 != 0;" (assignment_expression "bVar3 = iVar2 != 0" (identifier "bVar3") (= "=") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))) (; ";")) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar1 <= param_4 && bVar3)" (( "(") (binary_expression "uVar1 <= param_4 && bVar3" (binary_expression "uVar1 <= param_4" (identifier "uVar1") (<= "<=") (identifier "param_4")) (&& "&&") (identifier "bVar3")) () ")")) (; ";")) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* std::(anonymous namespace)::ucs4_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_3 *param_2,int var_4,ulong var_8,byte var_1)

{
  uint var_7;
  int var_6;
  bool var_9;
  type_1 local_18;
  type_3 *local_14;
  
  local_18 = param_1;
  local_14 = param_2;
  if ((var_1 & 4) != 0) {
    var_2<var_3,true,3u>((type_4 *)&local_18,param_2);
  }
  var_6 = var_4 + -1;
  if (var_4 != 0) {
    do {
      var_7 = var_5((type_4 *)&local_18,var_8);
      var_9 = var_6 != 0;
      var_6 = var_6 + -1;
    } while (var_7 <= var_8 && var_9);
  }
  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: (primitive_type) 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: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (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))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (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: (binary_expression left: (identifier) right: (identifier)) right: (identifier)))))) (return_statement (identifier)))))

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

{
  uint uVar1;
  int iVar2;
  bool bVar3;
  
  if ((param_5 & 4) != 0) {
    FUN_0026ed20();
  }
  iVar2 = param_3 + -1;
  if (param_3 != 0) {
    do {
      uVar1 = FUN_0026d8e0();
      bVar3 = iVar2 != 0;
      iVar2 = iVar2 + -1;
    } while (uVar1 <= param_4 && bVar3);
  }
  return param_1;
}

