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

undefined8
std::(anonymous_namespace)::ucs4_span
          (undefined8 param_1,unsigned_char *param_2,long param_3,uint param_4,uint param_5)

{
  uint uVar1;
  undefined8 local_38;
  unsigned_char *local_30;
  
  local_38 = param_1;
  local_30 = param_2;
  if ((param_5 & 4) != 0) {
    read_bom<char_const,true,3ul>((range *)&local_38,param_2);
  }
  if (param_3 != 0) {
    do {
      param_3 = param_3 + -1;
      uVar1 = read_utf8_code_point((range *)&local_38,(ulong)param_4);
    } while (uVar1 <= param_4 && param_3 != 0);
  }
  return local_38;
}



undefined8
FUN_0035a9b0(undefined8 param_1,undefined8 param_2,long param_3,uint param_4,uint param_5)

{
  uint uVar1;
  undefined8 local_38;
  undefined8 local_30;
  
  local_38 = param_1;
  local_30 = param_2;
  if ((param_5 & 4) != 0) {
    FUN_0035a2a0(&local_38);
  }
  if (param_3 != 0) {
    do {
      param_3 = param_3 + -1;
      uVar1 = FUN_00358f00(&local_38,param_4);
    } while (uVar1 <= param_4 && param_3 != 0);
  }
  return local_38;
}


PUSH R13
MOV R9,RDX
PUSH R12
PUSH RBP
MOV EBP,ECX
PUSH RBX
SUB RSP,0x18
AND R8D,0x4
MOV qword ptr [RSP],RDI
MOV qword ptr [RSP + 0x8],RSI
JNZ 0x0035aa10
LEA RBX,[R9 + -0x1]
MOV R13D,EBP
MOV R12,RSP
TEST R9,R9
JZ 0x0035a9fe
NOP dword ptr [RAX]
MOV RSI,R13
MOV RDI,R12
CALL 0x00358f00
CMP EBP,EAX
SETNC DL
TEST RBX,RBX
SETNZ AL
SUB RBX,0x1
TEST DL,AL
JNZ 0x0035a9e0
MOV RAX,qword ptr [RSP]
ADD RSP,0x18
POP RBX
POP RBP
POP R12
POP R13
RET
MOV R12,RSP
MOV RDI,R12
CALL 0x0035a2a0
JMP 0x0035a9ce
(translation_unit "undefined8\nFUN_0035a9b0(undefined8 param_1,undefined8 param_2,long param_3,uint param_4,uint param_5)\n\n{\n  uint uVar1;\n  undefined8 local_38;\n  undefined8 local_30;\n  \n  local_38 = param_1;\n  local_30 = param_2;\n  if ((param_5 & 4) != 0) {\n    FUN_0035a2a0(&local_38);\n  }\n  if (param_3 != 0) {\n    do {\n      param_3 = param_3 + -1;\n      uVar1 = FUN_00358f00(&local_38,param_4);\n    } while (uVar1 <= param_4 && param_3 != 0);\n  }\n  return local_38;\n}\n\n" (function_definition "undefined8\nFUN_0035a9b0(undefined8 param_1,undefined8 param_2,long param_3,uint param_4,uint param_5)\n\n{\n  uint uVar1;\n  undefined8 local_38;\n  undefined8 local_30;\n  \n  local_38 = param_1;\n  local_30 = param_2;\n  if ((param_5 & 4) != 0) {\n    FUN_0035a2a0(&local_38);\n  }\n  if (param_3 != 0) {\n    do {\n      param_3 = param_3 + -1;\n      uVar1 = FUN_00358f00(&local_38,param_4);\n    } while (uVar1 <= param_4 && param_3 != 0);\n  }\n  return local_38;\n}" type_identifier (function_declarator "FUN_0035a9b0(undefined8 param_1,undefined8 param_2,long param_3,uint param_4,uint param_5)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2,long param_3,uint param_4,uint param_5)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "uint param_5" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined8 local_38;\n  undefined8 local_30;\n  \n  local_38 = param_1;\n  local_30 = param_2;\n  if ((param_5 & 4) != 0) {\n    FUN_0035a2a0(&local_38);\n  }\n  if (param_3 != 0) {\n    do {\n      param_3 = param_3 + -1;\n      uVar1 = FUN_00358f00(&local_38,param_4);\n    } while (uVar1 <= param_4 && param_3 != 0);\n  }\n  return local_38;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined8 local_38;" type_identifier identifier ;) (declaration "undefined8 local_30;" type_identifier identifier ;) (expression_statement "local_38 = param_1;" (assignment_expression "local_38 = param_1" identifier = identifier) ;) (expression_statement "local_30 = param_2;" (assignment_expression "local_30 = param_2" identifier = identifier) ;) (if_statement "if ((param_5 & 4) != 0) {\n    FUN_0035a2a0(&local_38);\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_0035a2a0(&local_38);\n  }" { (expression_statement "FUN_0035a2a0(&local_38);" (call_expression "FUN_0035a2a0(&local_38)" identifier (argument_list "(&local_38)" ( (pointer_expression "&local_38" & identifier) ))) ;) })) (if_statement "if (param_3 != 0) {\n    do {\n      param_3 = param_3 + -1;\n      uVar1 = FUN_00358f00(&local_38,param_4);\n    } while (uVar1 <= param_4 && param_3 != 0);\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      param_3 = param_3 + -1;\n      uVar1 = FUN_00358f00(&local_38,param_4);\n    } while (uVar1 <= param_4 && param_3 != 0);\n  }" { (do_statement "do {\n      param_3 = param_3 + -1;\n      uVar1 = FUN_00358f00(&local_38,param_4);\n    } while (uVar1 <= param_4 && param_3 != 0);" do (compound_statement "{\n      param_3 = param_3 + -1;\n      uVar1 = FUN_00358f00(&local_38,param_4);\n    }" { (expression_statement "param_3 = param_3 + -1;" (assignment_expression "param_3 = param_3 + -1" identifier = (binary_expression "param_3 + -1" identifier + number_literal)) ;) (expression_statement "uVar1 = FUN_00358f00(&local_38,param_4);" (assignment_expression "uVar1 = FUN_00358f00(&local_38,param_4)" identifier = (call_expression "FUN_00358f00(&local_38,param_4)" identifier (argument_list "(&local_38,param_4)" ( (pointer_expression "&local_38" & identifier) , identifier )))) ;) }) while (parenthesized_expression "(uVar1 <= param_4 && param_3 != 0)" ( (binary_expression "uVar1 <= param_4 && param_3 != 0" (binary_expression "uVar1 <= param_4" identifier <= identifier) && (binary_expression "param_3 != 0" identifier != number_literal)) )) ;) })) (return_statement "return local_38;" return identifier ;) })))
(translation_unit "/* std::(anonymous namespace)::ucs4_span(char const*, char const*, unsigned long, char32_t,\n   std::codecvt_mode) */\n\nundefined8\nstd::(anonymous_namespace)::ucs4_span\n          (undefined8 param_1,unsigned_char *param_2,long param_3,uint param_4,uint param_5)\n\n{\n  uint uVar1;\n  undefined8 local_38;\n  unsigned_char *local_30;\n  \n  local_38 = param_1;\n  local_30 = param_2;\n  if ((param_5 & 4) != 0) {\n    read_bom<char_const,true,3ul>((range *)&local_38,param_2);\n  }\n  if (param_3 != 0) {\n    do {\n      param_3 = param_3 + -1;\n      uVar1 = read_utf8_code_point((range *)&local_38,(ulong)param_4);\n    } while (uVar1 <= param_4 && param_3 != 0);\n  }\n  return local_38;\n}\n\n" comment (function_definition "undefined8\nstd::(anonymous_namespace)::ucs4_span\n          (undefined8 param_1,unsigned_char *param_2,long param_3,uint param_4,uint param_5)\n\n{\n  uint uVar1;\n  undefined8 local_38;\n  unsigned_char *local_30;\n  \n  local_38 = param_1;\n  local_30 = param_2;\n  if ((param_5 & 4) != 0) {\n    read_bom<char_const,true,3ul>((range *)&local_38,param_2);\n  }\n  if (param_3 != 0) {\n    do {\n      param_3 = param_3 + -1;\n      uVar1 = read_utf8_code_point((range *)&local_38,(ulong)param_4);\n    } while (uVar1 <= param_4 && param_3 != 0);\n  }\n  return local_38;\n}" type_identifier (ERROR "std::(anonymous_namespace)::" identifier : : ( identifier ) : :) (function_declarator "ucs4_span\n          (undefined8 param_1,unsigned_char *param_2,long param_3,uint param_4,uint param_5)" identifier (parameter_list "(undefined8 param_1,unsigned_char *param_2,long param_3,uint param_4,uint param_5)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "unsigned_char *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "uint param_5" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined8 local_38;\n  unsigned_char *local_30;\n  \n  local_38 = param_1;\n  local_30 = param_2;\n  if ((param_5 & 4) != 0) {\n    read_bom<char_const,true,3ul>((range *)&local_38,param_2);\n  }\n  if (param_3 != 0) {\n    do {\n      param_3 = param_3 + -1;\n      uVar1 = read_utf8_code_point((range *)&local_38,(ulong)param_4);\n    } while (uVar1 <= param_4 && param_3 != 0);\n  }\n  return local_38;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined8 local_38;" type_identifier identifier ;) (declaration "unsigned_char *local_30;" type_identifier (pointer_declarator "*local_30" * identifier) ;) (expression_statement "local_38 = param_1;" (assignment_expression "local_38 = param_1" identifier = identifier) ;) (expression_statement "local_30 = param_2;" (assignment_expression "local_30 = param_2" identifier = identifier) ;) (if_statement "if ((param_5 & 4) != 0) {\n    read_bom<char_const,true,3ul>((range *)&local_38,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,3ul>((range *)&local_38,param_2);\n  }" { (expression_statement "read_bom<char_const,true,3ul>((range *)&local_38,param_2);" (comma_expression "read_bom<char_const,true,3ul>((range *)&local_38,param_2)" (binary_expression "read_bom<char_const" identifier < identifier) , (comma_expression "true,3ul>((range *)&local_38,param_2)" true , (binary_expression "3ul>((range *)&local_38,param_2)" number_literal > (parenthesized_expression "((range *)&local_38,param_2)" ( (comma_expression "(range *)&local_38,param_2" (cast_expression "(range *)&local_38" ( (type_descriptor "range *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_38" & identifier)) , identifier) ))))) ;) })) (if_statement "if (param_3 != 0) {\n    do {\n      param_3 = param_3 + -1;\n      uVar1 = read_utf8_code_point((range *)&local_38,(ulong)param_4);\n    } while (uVar1 <= param_4 && param_3 != 0);\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      param_3 = param_3 + -1;\n      uVar1 = read_utf8_code_point((range *)&local_38,(ulong)param_4);\n    } while (uVar1 <= param_4 && param_3 != 0);\n  }" { (do_statement "do {\n      param_3 = param_3 + -1;\n      uVar1 = read_utf8_code_point((range *)&local_38,(ulong)param_4);\n    } while (uVar1 <= param_4 && param_3 != 0);" do (compound_statement "{\n      param_3 = param_3 + -1;\n      uVar1 = read_utf8_code_point((range *)&local_38,(ulong)param_4);\n    }" { (expression_statement "param_3 = param_3 + -1;" (assignment_expression "param_3 = param_3 + -1" identifier = (binary_expression "param_3 + -1" identifier + number_literal)) ;) (expression_statement "uVar1 = read_utf8_code_point((range *)&local_38,(ulong)param_4);" (assignment_expression "uVar1 = read_utf8_code_point((range *)&local_38,(ulong)param_4)" identifier = (call_expression "read_utf8_code_point((range *)&local_38,(ulong)param_4)" identifier (argument_list "((range *)&local_38,(ulong)param_4)" ( (cast_expression "(range *)&local_38" ( (type_descriptor "range *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_38" & identifier)) , (cast_expression "(ulong)param_4" ( (type_descriptor "ulong" type_identifier) ) identifier) )))) ;) }) while (parenthesized_expression "(uVar1 <= param_4 && param_3 != 0)" ( (binary_expression "uVar1 <= param_4 && param_3 != 0" (binary_expression "uVar1 <= param_4" identifier <= identifier) && (binary_expression "param_3 != 0" identifier != number_literal)) )) ;) })) (return_statement "return local_38;" return identifier ;) })))
(translation_unit "undefined8\nFUN_0035a9b0(undefined8 param_1,undefined8 param_2,long param_3,uint param_4,uint param_5)\n\n{\n  uint uVar1;\n  undefined8 local_38;\n  undefined8 local_30;\n  \n  local_38 = param_1;\n  local_30 = param_2;\n  if ((param_5 & 4) != 0) {\n    FUN_0035a2a0(&local_38);\n  }\n  if (param_3 != 0) {\n    do {\n      param_3 = param_3 + -1;\n      uVar1 = FUN_00358f00(&local_38,param_4);\n    } while (uVar1 <= param_4 && param_3 != 0);\n  }\n  return local_38;\n}\n\n" (function_definition "undefined8\nFUN_0035a9b0(undefined8 param_1,undefined8 param_2,long param_3,uint param_4,uint param_5)\n\n{\n  uint uVar1;\n  undefined8 local_38;\n  undefined8 local_30;\n  \n  local_38 = param_1;\n  local_30 = param_2;\n  if ((param_5 & 4) != 0) {\n    FUN_0035a2a0(&local_38);\n  }\n  if (param_3 != 0) {\n    do {\n      param_3 = param_3 + -1;\n      uVar1 = FUN_00358f00(&local_38,param_4);\n    } while (uVar1 <= param_4 && param_3 != 0);\n  }\n  return local_38;\n}" type_identifier (function_declarator "FUN_0035a9b0(undefined8 param_1,undefined8 param_2,long param_3,uint param_4,uint param_5)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2,long param_3,uint param_4,uint param_5)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "uint param_5" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined8 local_38;\n  undefined8 local_30;\n  \n  local_38 = param_1;\n  local_30 = param_2;\n  if ((param_5 & 4) != 0) {\n    FUN_0035a2a0(&local_38);\n  }\n  if (param_3 != 0) {\n    do {\n      param_3 = param_3 + -1;\n      uVar1 = FUN_00358f00(&local_38,param_4);\n    } while (uVar1 <= param_4 && param_3 != 0);\n  }\n  return local_38;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined8 local_38;" type_identifier identifier ;) (declaration "undefined8 local_30;" type_identifier identifier ;) (expression_statement "local_38 = param_1;" (assignment_expression "local_38 = param_1" identifier = identifier) ;) (expression_statement "local_30 = param_2;" (assignment_expression "local_30 = param_2" identifier = identifier) ;) (if_statement "if ((param_5 & 4) != 0) {\n    FUN_0035a2a0(&local_38);\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_0035a2a0(&local_38);\n  }" { (expression_statement "FUN_0035a2a0(&local_38);" (call_expression "FUN_0035a2a0(&local_38)" identifier (argument_list "(&local_38)" ( (pointer_expression "&local_38" & identifier) ))) ;) })) (if_statement "if (param_3 != 0) {\n    do {\n      param_3 = param_3 + -1;\n      uVar1 = FUN_00358f00(&local_38,param_4);\n    } while (uVar1 <= param_4 && param_3 != 0);\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      param_3 = param_3 + -1;\n      uVar1 = FUN_00358f00(&local_38,param_4);\n    } while (uVar1 <= param_4 && param_3 != 0);\n  }" { (do_statement "do {\n      param_3 = param_3 + -1;\n      uVar1 = FUN_00358f00(&local_38,param_4);\n    } while (uVar1 <= param_4 && param_3 != 0);" do (compound_statement "{\n      param_3 = param_3 + -1;\n      uVar1 = FUN_00358f00(&local_38,param_4);\n    }" { (expression_statement "param_3 = param_3 + -1;" (assignment_expression "param_3 = param_3 + -1" identifier = (binary_expression "param_3 + -1" identifier + number_literal)) ;) (expression_statement "uVar1 = FUN_00358f00(&local_38,param_4);" (assignment_expression "uVar1 = FUN_00358f00(&local_38,param_4)" identifier = (call_expression "FUN_00358f00(&local_38,param_4)" identifier (argument_list "(&local_38,param_4)" ( (pointer_expression "&local_38" & identifier) , identifier )))) ;) }) while (parenthesized_expression "(uVar1 <= param_4 && param_3 != 0)" ( (binary_expression "uVar1 <= param_4 && param_3 != 0" (binary_expression "uVar1 <= param_4" identifier <= identifier) && (binary_expression "param_3 != 0" identifier != number_literal)) )) ;) })) (return_statement "return local_38;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE 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 ( (pointer_expression & IDENT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT )))) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT <= IDENT) && (binary_expression IDENT != LIT)) )) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined8\nFUN_0035a9b0(undefined8 param_1,undefined8 param_2,long param_3,uint param_4,uint param_5)\n\n{\n  uint uVar1;\n  undefined8 local_38;\n  undefined8 local_30;\n  \n  local_38 = param_1;\n  local_30 = param_2;\n  if ((param_5 & 4) != 0) {\n    FUN_0035a2a0(&local_38);\n  }\n  if (param_3 != 0) {\n    do {\n      param_3 = param_3 + -1;\n      uVar1 = FUN_00358f00(&local_38,param_4);\n    } while (uVar1 <= param_4 && param_3 != 0);\n  }\n  return local_38;\n}" (type_identifier "undefined8") (function_declarator "FUN_0035a9b0(undefined8 param_1,undefined8 param_2,long param_3,uint param_4,uint param_5)" (identifier "FUN_0035a9b0") (parameter_list "(undefined8 param_1,undefined8 param_2,long param_3,uint param_4,uint param_5)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) (, ",") (parameter_declaration "uint param_5" (type_identifier "uint") (identifier "param_5")) () ")"))) (compound_statement "{\n  uint uVar1;\n  undefined8 local_38;\n  undefined8 local_30;\n  \n  local_38 = param_1;\n  local_30 = param_2;\n  if ((param_5 & 4) != 0) {\n    FUN_0035a2a0(&local_38);\n  }\n  if (param_3 != 0) {\n    do {\n      param_3 = param_3 + -1;\n      uVar1 = FUN_00358f00(&local_38,param_4);\n    } while (uVar1 <= param_4 && param_3 != 0);\n  }\n  return local_38;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "undefined8 local_38;" (type_identifier "undefined8") (identifier "local_38") (; ";")) (declaration "undefined8 local_30;" (type_identifier "undefined8") (identifier "local_30") (; ";")) (expression_statement "local_38 = param_1;" (assignment_expression "local_38 = param_1" (identifier "local_38") (= "=") (identifier "param_1")) (; ";")) (expression_statement "local_30 = param_2;" (assignment_expression "local_30 = param_2" (identifier "local_30") (= "=") (identifier "param_2")) (; ";")) (if_statement "if ((param_5 & 4) != 0) {\n    FUN_0035a2a0(&local_38);\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_0035a2a0(&local_38);\n  }" ({ "{") (expression_statement "FUN_0035a2a0(&local_38);" (call_expression "FUN_0035a2a0(&local_38)" (identifier "FUN_0035a2a0") (argument_list "(&local_38)" (( "(") (pointer_expression "&local_38" (& "&") (identifier "local_38")) () ")"))) (; ";")) (} "}"))) (if_statement "if (param_3 != 0) {\n    do {\n      param_3 = param_3 + -1;\n      uVar1 = FUN_00358f00(&local_38,param_4);\n    } while (uVar1 <= param_4 && param_3 != 0);\n  }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    do {\n      param_3 = param_3 + -1;\n      uVar1 = FUN_00358f00(&local_38,param_4);\n    } while (uVar1 <= param_4 && param_3 != 0);\n  }" ({ "{") (do_statement "do {\n      param_3 = param_3 + -1;\n      uVar1 = FUN_00358f00(&local_38,param_4);\n    } while (uVar1 <= param_4 && param_3 != 0);" (do "do") (compound_statement "{\n      param_3 = param_3 + -1;\n      uVar1 = FUN_00358f00(&local_38,param_4);\n    }" ({ "{") (expression_statement "param_3 = param_3 + -1;" (assignment_expression "param_3 = param_3 + -1" (identifier "param_3") (= "=") (binary_expression "param_3 + -1" (identifier "param_3") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "uVar1 = FUN_00358f00(&local_38,param_4);" (assignment_expression "uVar1 = FUN_00358f00(&local_38,param_4)" (identifier "uVar1") (= "=") (call_expression "FUN_00358f00(&local_38,param_4)" (identifier "FUN_00358f00") (argument_list "(&local_38,param_4)" (( "(") (pointer_expression "&local_38" (& "&") (identifier "local_38")) (, ",") (identifier "param_4") () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar1 <= param_4 && param_3 != 0)" (( "(") (binary_expression "uVar1 <= param_4 && param_3 != 0" (binary_expression "uVar1 <= param_4" (identifier "uVar1") (<= "<=") (identifier "param_4")) (&& "&&") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0"))) () ")")) (; ";")) (} "}"))) (return_statement "return local_38;" (return "return") (identifier "local_38") (; ";")) (} "}")))

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

type_1
std::(anonymous_namespace)::function_1
          (type_1 param_1,type_2 *param_2,long var_4,type_3 var_7,type_3 var_1)

{
  type_3 var_6;
  type_1 local_38;
  type_2 *local_30;
  
  local_38 = param_1;
  local_30 = param_2;
  if ((var_1 & 4) != 0) {
    var_2<var_3,true,3ul>((type_4 *)&local_38,param_2);
  }
  if (var_4 != 0) {
    do {
      var_4 = var_4 + -1;
      var_6 = var_5((type_4 *)&local_38,(type_5)var_7);
    } while (var_6 <= var_7 && var_4 != 0);
  }
  return local_38;
}


(translation_unit (function_definition type: (type_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: (sized_type_specifier) 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)) (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 (pointer_expression argument: (identifier))))))) (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: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier)))))) condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (number_literal))))))) (return_statement (identifier)))))

undefined8
MASKED(undefined8 param_1,undefined8 param_2,long param_3,uint param_4,uint param_5)

{
  uint uVar1;
  undefined8 local_38;
  undefined8 local_30;
  
  local_38 = param_1;
  local_30 = param_2;
  if ((param_5 & 4) != 0) {
    FUN_0035a2a0(&local_38);
  }
  if (param_3 != 0) {
    do {
      param_3 = param_3 + -1;
      uVar1 = FUN_00358f00(&local_38,param_4);
    } while (uVar1 <= param_4 && param_3 != 0);
  }
  return local_38;
}

