
/* void std::(anonymous namespace)::read_utf16_bom<false>(std::(anonymous namespace)::range<char16_t
   const, false>&, std::codecvt_mode&) */

void std::(anonymous_namespace)::read_utf16_bom<false>(range *param_1,codecvt_mode *param_2)

{
  bool bVar1;
  uint *puVar2;
  int unaff_EDI;
  undefined8 uVar3;
  
  uVar3 = __x86_get_pc_thunk_di();
  puVar2 = (uint *)((ulonglong)uVar3 >> 0x20);
  if ((*puVar2 & 4) != 0) {
    bVar1 = read_bom<char16_t_const,false,2u>
                      ((range *)uVar3,(unsigned_char *)(&UNK_0003b32d + unaff_EDI));
    if (bVar1) {
      *puVar2 = *puVar2 & 0xfffffffe;
      return;
    }
    bVar1 = read_bom<char16_t_const,false,2u>
                      ((range *)uVar3,(unsigned_char *)(&UNK_0003b32b + unaff_EDI));
    if (bVar1) {
      *puVar2 = *puVar2 | 1;
    }
  }
  return;
}



void FUN_002848d0(void)

{
  char cVar1;
  uint *extraout_EDX;
  
  FUN_00062073();
  if ((*extraout_EDX & 4) != 0) {
    cVar1 = FUN_00284160();
    if (cVar1 != '\0') {
      *extraout_EDX = *extraout_EDX & 0xfffffffe;
      return;
    }
    cVar1 = FUN_00284160();
    if (cVar1 != '\0') {
      *extraout_EDX = *extraout_EDX | 1;
    }
  }
  return;
}


PUSH EDI
CALL 0x00062073
ADD EDI,0x12572a
PUSH ESI
PUSH EBX
TEST byte ptr [EDX],0x4
JNZ 0x002848f0
POP EBX
POP ESI
POP EDI
RET
MOV EBX,EDX
LEA EDX,[EDI + 0xfff15c03]
MOV ESI,EAX
CALL 0x00284160
TEST AL,AL
JZ 0x00284910
AND dword ptr [EBX],0xfffffffe
POP EBX
POP ESI
POP EDI
RET
LEA EDX,[EDI + 0xfff15c01]
MOV EAX,ESI
CALL 0x00284160
TEST AL,AL
JZ 0x002848e3
OR dword ptr [EBX],0x1
JMP 0x002848e3
(translation_unit "void FUN_002848d0(void)\n\n{\n  char cVar1;\n  uint *extraout_EDX;\n  \n  FUN_00062073();\n  if ((*extraout_EDX & 4) != 0) {\n    cVar1 = FUN_00284160();\n    if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX & 0xfffffffe;\n      return;\n    }\n    cVar1 = FUN_00284160();\n    if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX | 1;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_002848d0(void)\n\n{\n  char cVar1;\n  uint *extraout_EDX;\n  \n  FUN_00062073();\n  if ((*extraout_EDX & 4) != 0) {\n    cVar1 = FUN_00284160();\n    if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX & 0xfffffffe;\n      return;\n    }\n    cVar1 = FUN_00284160();\n    if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX | 1;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_002848d0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char cVar1;\n  uint *extraout_EDX;\n  \n  FUN_00062073();\n  if ((*extraout_EDX & 4) != 0) {\n    cVar1 = FUN_00284160();\n    if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX & 0xfffffffe;\n      return;\n    }\n    cVar1 = FUN_00284160();\n    if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX | 1;\n    }\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "uint *extraout_EDX;" type_identifier (pointer_declarator "*extraout_EDX" * identifier) ;) (expression_statement "FUN_00062073();" (call_expression "FUN_00062073()" identifier (argument_list "()" ( ))) ;) (if_statement "if ((*extraout_EDX & 4) != 0) {\n    cVar1 = FUN_00284160();\n    if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX & 0xfffffffe;\n      return;\n    }\n    cVar1 = FUN_00284160();\n    if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX | 1;\n    }\n  }" if (parenthesized_expression "((*extraout_EDX & 4) != 0)" ( (binary_expression "(*extraout_EDX & 4) != 0" (parenthesized_expression "(*extraout_EDX & 4)" ( (binary_expression "*extraout_EDX & 4" (pointer_expression "*extraout_EDX" * identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    cVar1 = FUN_00284160();\n    if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX & 0xfffffffe;\n      return;\n    }\n    cVar1 = FUN_00284160();\n    if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX | 1;\n    }\n  }" { (expression_statement "cVar1 = FUN_00284160();" (assignment_expression "cVar1 = FUN_00284160()" identifier = (call_expression "FUN_00284160()" identifier (argument_list "()" ( )))) ;) (if_statement "if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX & 0xfffffffe;\n      return;\n    }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      *extraout_EDX = *extraout_EDX & 0xfffffffe;\n      return;\n    }" { (expression_statement "*extraout_EDX = *extraout_EDX & 0xfffffffe;" (assignment_expression "*extraout_EDX = *extraout_EDX & 0xfffffffe" (pointer_expression "*extraout_EDX" * identifier) = (binary_expression "*extraout_EDX & 0xfffffffe" (pointer_expression "*extraout_EDX" * identifier) & number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "cVar1 = FUN_00284160();" (assignment_expression "cVar1 = FUN_00284160()" identifier = (call_expression "FUN_00284160()" identifier (argument_list "()" ( )))) ;) (if_statement "if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX | 1;\n    }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      *extraout_EDX = *extraout_EDX | 1;\n    }" { (expression_statement "*extraout_EDX = *extraout_EDX | 1;" (assignment_expression "*extraout_EDX = *extraout_EDX | 1" (pointer_expression "*extraout_EDX" * identifier) = (binary_expression "*extraout_EDX | 1" (pointer_expression "*extraout_EDX" * identifier) | number_literal)) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* void std::(anonymous namespace)::read_utf16_bom<false>(std::(anonymous namespace)::range<char16_t\n   const, false>&, std::codecvt_mode&) */\n\nvoid std::(anonymous_namespace)::read_utf16_bom<false>(range *param_1,codecvt_mode *param_2)\n\n{\n  bool bVar1;\n  uint *puVar2;\n  int unaff_EDI;\n  undefined8 uVar3;\n  \n  uVar3 = __x86_get_pc_thunk_di();\n  puVar2 = (uint *)((ulonglong)uVar3 >> 0x20);\n  if ((*puVar2 & 4) != 0) {\n    bVar1 = read_bom<char16_t_const,false,2u>\n                      ((range *)uVar3,(unsigned_char *)(&UNK_0003b32d + unaff_EDI));\n    if (bVar1) {\n      *puVar2 = *puVar2 & 0xfffffffe;\n      return;\n    }\n    bVar1 = read_bom<char16_t_const,false,2u>\n                      ((range *)uVar3,(unsigned_char *)(&UNK_0003b32b + unaff_EDI));\n    if (bVar1) {\n      *puVar2 = *puVar2 | 1;\n    }\n  }\n  return;\n}\n\n" comment (ERROR "void std::(anonymous_namespace)::read_utf16_bom<false>(range *param_1,codecvt_mode *param_2)" primitive_type (ERROR "std::(anonymous_namespace)::" identifier : : ( identifier ) : :) identifier < (binary_expression "false>(range *param_1,codecvt_mode *param_2)" false > (parenthesized_expression "(range *param_1,codecvt_mode *param_2)" ( (comma_expression "range *param_1,codecvt_mode *param_2" (binary_expression "range *param_1" identifier * identifier) , (binary_expression "codecvt_mode *param_2" identifier * identifier)) )))) (compound_statement "{\n  bool bVar1;\n  uint *puVar2;\n  int unaff_EDI;\n  undefined8 uVar3;\n  \n  uVar3 = __x86_get_pc_thunk_di();\n  puVar2 = (uint *)((ulonglong)uVar3 >> 0x20);\n  if ((*puVar2 & 4) != 0) {\n    bVar1 = read_bom<char16_t_const,false,2u>\n                      ((range *)uVar3,(unsigned_char *)(&UNK_0003b32d + unaff_EDI));\n    if (bVar1) {\n      *puVar2 = *puVar2 & 0xfffffffe;\n      return;\n    }\n    bVar1 = read_bom<char16_t_const,false,2u>\n                      ((range *)uVar3,(unsigned_char *)(&UNK_0003b32b + unaff_EDI));\n    if (bVar1) {\n      *puVar2 = *puVar2 | 1;\n    }\n  }\n  return;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (expression_statement "uVar3 = __x86_get_pc_thunk_di();" (assignment_expression "uVar3 = __x86_get_pc_thunk_di()" identifier = (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar2 = (uint *)((ulonglong)uVar3 >> 0x20);" (assignment_expression "puVar2 = (uint *)((ulonglong)uVar3 >> 0x20)" identifier = (cast_expression "(uint *)((ulonglong)uVar3 >> 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulonglong)uVar3 >> 0x20)" ( (binary_expression "(ulonglong)uVar3 >> 0x20" (cast_expression "(ulonglong)uVar3" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (if_statement "if ((*puVar2 & 4) != 0) {\n    bVar1 = read_bom<char16_t_const,false,2u>\n                      ((range *)uVar3,(unsigned_char *)(&UNK_0003b32d + unaff_EDI));\n    if (bVar1) {\n      *puVar2 = *puVar2 & 0xfffffffe;\n      return;\n    }\n    bVar1 = read_bom<char16_t_const,false,2u>\n                      ((range *)uVar3,(unsigned_char *)(&UNK_0003b32b + unaff_EDI));\n    if (bVar1) {\n      *puVar2 = *puVar2 | 1;\n    }\n  }" if (parenthesized_expression "((*puVar2 & 4) != 0)" ( (binary_expression "(*puVar2 & 4) != 0" (parenthesized_expression "(*puVar2 & 4)" ( (binary_expression "*puVar2 & 4" (pointer_expression "*puVar2" * identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    bVar1 = read_bom<char16_t_const,false,2u>\n                      ((range *)uVar3,(unsigned_char *)(&UNK_0003b32d + unaff_EDI));\n    if (bVar1) {\n      *puVar2 = *puVar2 & 0xfffffffe;\n      return;\n    }\n    bVar1 = read_bom<char16_t_const,false,2u>\n                      ((range *)uVar3,(unsigned_char *)(&UNK_0003b32b + unaff_EDI));\n    if (bVar1) {\n      *puVar2 = *puVar2 | 1;\n    }\n  }" { (expression_statement "bVar1 = read_bom<char16_t_const,false,2u>\n                      ((range *)uVar3,(unsigned_char *)(&UNK_0003b32d + unaff_EDI));" (comma_expression "bVar1 = read_bom<char16_t_const,false,2u>\n                      ((range *)uVar3,(unsigned_char *)(&UNK_0003b32d + unaff_EDI))" (assignment_expression "bVar1 = read_bom<char16_t_const" identifier = (binary_expression "read_bom<char16_t_const" identifier < identifier)) , (comma_expression "false,2u>\n                      ((range *)uVar3,(unsigned_char *)(&UNK_0003b32d + unaff_EDI))" false , (binary_expression "2u>\n                      ((range *)uVar3,(unsigned_char *)(&UNK_0003b32d + unaff_EDI))" number_literal > (parenthesized_expression "((range *)uVar3,(unsigned_char *)(&UNK_0003b32d + unaff_EDI))" ( (comma_expression "(range *)uVar3,(unsigned_char *)(&UNK_0003b32d + unaff_EDI)" (cast_expression "(range *)uVar3" ( (type_descriptor "range *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(unsigned_char *)(&UNK_0003b32d + unaff_EDI)" ( (type_descriptor "unsigned_char *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&UNK_0003b32d + unaff_EDI)" ( (binary_expression "&UNK_0003b32d + unaff_EDI" (pointer_expression "&UNK_0003b32d" & identifier) + identifier) )))) ))))) ;) (if_statement "if (bVar1) {\n      *puVar2 = *puVar2 & 0xfffffffe;\n      return;\n    }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n      *puVar2 = *puVar2 & 0xfffffffe;\n      return;\n    }" { (expression_statement "*puVar2 = *puVar2 & 0xfffffffe;" (assignment_expression "*puVar2 = *puVar2 & 0xfffffffe" (pointer_expression "*puVar2" * identifier) = (binary_expression "*puVar2 & 0xfffffffe" (pointer_expression "*puVar2" * identifier) & number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "bVar1 = read_bom<char16_t_const,false,2u>\n                      ((range *)uVar3,(unsigned_char *)(&UNK_0003b32b + unaff_EDI));" (comma_expression "bVar1 = read_bom<char16_t_const,false,2u>\n                      ((range *)uVar3,(unsigned_char *)(&UNK_0003b32b + unaff_EDI))" (assignment_expression "bVar1 = read_bom<char16_t_const" identifier = (binary_expression "read_bom<char16_t_const" identifier < identifier)) , (comma_expression "false,2u>\n                      ((range *)uVar3,(unsigned_char *)(&UNK_0003b32b + unaff_EDI))" false , (binary_expression "2u>\n                      ((range *)uVar3,(unsigned_char *)(&UNK_0003b32b + unaff_EDI))" number_literal > (parenthesized_expression "((range *)uVar3,(unsigned_char *)(&UNK_0003b32b + unaff_EDI))" ( (comma_expression "(range *)uVar3,(unsigned_char *)(&UNK_0003b32b + unaff_EDI)" (cast_expression "(range *)uVar3" ( (type_descriptor "range *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(unsigned_char *)(&UNK_0003b32b + unaff_EDI)" ( (type_descriptor "unsigned_char *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&UNK_0003b32b + unaff_EDI)" ( (binary_expression "&UNK_0003b32b + unaff_EDI" (pointer_expression "&UNK_0003b32b" & identifier) + identifier) )))) ))))) ;) (if_statement "if (bVar1) {\n      *puVar2 = *puVar2 | 1;\n    }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n      *puVar2 = *puVar2 | 1;\n    }" { (expression_statement "*puVar2 = *puVar2 | 1;" (assignment_expression "*puVar2 = *puVar2 | 1" (pointer_expression "*puVar2" * identifier) = (binary_expression "*puVar2 | 1" (pointer_expression "*puVar2" * identifier) | number_literal)) ;) })) })) (return_statement "return;" return ;) }))
(translation_unit "void FUN_002848d0(void)\n\n{\n  char cVar1;\n  uint *extraout_EDX;\n  \n  FUN_00062073();\n  if ((*extraout_EDX & 4) != 0) {\n    cVar1 = FUN_00284160();\n    if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX & 0xfffffffe;\n      return;\n    }\n    cVar1 = FUN_00284160();\n    if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX | 1;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_002848d0(void)\n\n{\n  char cVar1;\n  uint *extraout_EDX;\n  \n  FUN_00062073();\n  if ((*extraout_EDX & 4) != 0) {\n    cVar1 = FUN_00284160();\n    if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX & 0xfffffffe;\n      return;\n    }\n    cVar1 = FUN_00284160();\n    if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX | 1;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_002848d0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char cVar1;\n  uint *extraout_EDX;\n  \n  FUN_00062073();\n  if ((*extraout_EDX & 4) != 0) {\n    cVar1 = FUN_00284160();\n    if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX & 0xfffffffe;\n      return;\n    }\n    cVar1 = FUN_00284160();\n    if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX | 1;\n    }\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "uint *extraout_EDX;" type_identifier (pointer_declarator "*extraout_EDX" * identifier) ;) (expression_statement "FUN_00062073();" (call_expression "FUN_00062073()" identifier (argument_list "()" ( ))) ;) (if_statement "if ((*extraout_EDX & 4) != 0) {\n    cVar1 = FUN_00284160();\n    if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX & 0xfffffffe;\n      return;\n    }\n    cVar1 = FUN_00284160();\n    if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX | 1;\n    }\n  }" if (parenthesized_expression "((*extraout_EDX & 4) != 0)" ( (binary_expression "(*extraout_EDX & 4) != 0" (parenthesized_expression "(*extraout_EDX & 4)" ( (binary_expression "*extraout_EDX & 4" (pointer_expression "*extraout_EDX" * identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    cVar1 = FUN_00284160();\n    if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX & 0xfffffffe;\n      return;\n    }\n    cVar1 = FUN_00284160();\n    if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX | 1;\n    }\n  }" { (expression_statement "cVar1 = FUN_00284160();" (assignment_expression "cVar1 = FUN_00284160()" identifier = (call_expression "FUN_00284160()" identifier (argument_list "()" ( )))) ;) (if_statement "if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX & 0xfffffffe;\n      return;\n    }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      *extraout_EDX = *extraout_EDX & 0xfffffffe;\n      return;\n    }" { (expression_statement "*extraout_EDX = *extraout_EDX & 0xfffffffe;" (assignment_expression "*extraout_EDX = *extraout_EDX & 0xfffffffe" (pointer_expression "*extraout_EDX" * identifier) = (binary_expression "*extraout_EDX & 0xfffffffe" (pointer_expression "*extraout_EDX" * identifier) & number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "cVar1 = FUN_00284160();" (assignment_expression "cVar1 = FUN_00284160()" identifier = (call_expression "FUN_00284160()" identifier (argument_list "()" ( )))) ;) (if_statement "if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX | 1;\n    }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      *extraout_EDX = *extraout_EDX | 1;\n    }" { (expression_statement "*extraout_EDX = *extraout_EDX | 1;" (assignment_expression "*extraout_EDX = *extraout_EDX | 1" (pointer_expression "*extraout_EDX" * identifier) = (binary_expression "*extraout_EDX | 1" (pointer_expression "*extraout_EDX" * identifier) | number_literal)) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) & LIT)) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) | LIT)) ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_002848d0(void)\n\n{\n  char cVar1;\n  uint *extraout_EDX;\n  \n  FUN_00062073();\n  if ((*extraout_EDX & 4) != 0) {\n    cVar1 = FUN_00284160();\n    if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX & 0xfffffffe;\n      return;\n    }\n    cVar1 = FUN_00284160();\n    if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX | 1;\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002848d0(void)" (identifier "FUN_002848d0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  char cVar1;\n  uint *extraout_EDX;\n  \n  FUN_00062073();\n  if ((*extraout_EDX & 4) != 0) {\n    cVar1 = FUN_00284160();\n    if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX & 0xfffffffe;\n      return;\n    }\n    cVar1 = FUN_00284160();\n    if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX | 1;\n    }\n  }\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "uint *extraout_EDX;" (type_identifier "uint") (pointer_declarator "*extraout_EDX" (* "*") (identifier "extraout_EDX")) (; ";")) (expression_statement "FUN_00062073();" (call_expression "FUN_00062073()" (identifier "FUN_00062073") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if ((*extraout_EDX & 4) != 0) {\n    cVar1 = FUN_00284160();\n    if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX & 0xfffffffe;\n      return;\n    }\n    cVar1 = FUN_00284160();\n    if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX | 1;\n    }\n  }" (if "if") (parenthesized_expression "((*extraout_EDX & 4) != 0)" (( "(") (binary_expression "(*extraout_EDX & 4) != 0" (parenthesized_expression "(*extraout_EDX & 4)" (( "(") (binary_expression "*extraout_EDX & 4" (pointer_expression "*extraout_EDX" (* "*") (identifier "extraout_EDX")) (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    cVar1 = FUN_00284160();\n    if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX & 0xfffffffe;\n      return;\n    }\n    cVar1 = FUN_00284160();\n    if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX | 1;\n    }\n  }" ({ "{") (expression_statement "cVar1 = FUN_00284160();" (assignment_expression "cVar1 = FUN_00284160()" (identifier "cVar1") (= "=") (call_expression "FUN_00284160()" (identifier "FUN_00284160") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX & 0xfffffffe;\n      return;\n    }" (if "if") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      *extraout_EDX = *extraout_EDX & 0xfffffffe;\n      return;\n    }" ({ "{") (expression_statement "*extraout_EDX = *extraout_EDX & 0xfffffffe;" (assignment_expression "*extraout_EDX = *extraout_EDX & 0xfffffffe" (pointer_expression "*extraout_EDX" (* "*") (identifier "extraout_EDX")) (= "=") (binary_expression "*extraout_EDX & 0xfffffffe" (pointer_expression "*extraout_EDX" (* "*") (identifier "extraout_EDX")) (& "&") (number_literal "0xfffffffe"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "cVar1 = FUN_00284160();" (assignment_expression "cVar1 = FUN_00284160()" (identifier "cVar1") (= "=") (call_expression "FUN_00284160()" (identifier "FUN_00284160") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (cVar1 != '\0') {\n      *extraout_EDX = *extraout_EDX | 1;\n    }" (if "if") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      *extraout_EDX = *extraout_EDX | 1;\n    }" ({ "{") (expression_statement "*extraout_EDX = *extraout_EDX | 1;" (assignment_expression "*extraout_EDX = *extraout_EDX | 1" (pointer_expression "*extraout_EDX" (* "*") (identifier "extraout_EDX")) (= "=") (binary_expression "*extraout_EDX | 1" (pointer_expression "*extraout_EDX" (* "*") (identifier "extraout_EDX")) (| "|") (number_literal "1"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* void std::(anonymous namespace)::read_utf16_bom<false>(std::(anonymous namespace)::range<char16_t
   const, false>&, std::codecvt_mode&) */

void std::(anonymous_namespace)::read_utf16_bom<false>(type_4 *param_1,codecvt_mode *param_2)

{
  bool bVar1;
  type_1 *puVar2;
  int var_4;
  type_2 uVar3;
  
  uVar3 = var_1();
  puVar2 = (type_1 *)((type_3)uVar3 >> 0x20);
  if ((*puVar2 & 4) != 0) {
    bVar1 = var_2<var_3,false,2u>
                      ((type_4 *)uVar3,(type_5 *)(&UNK_0003b32d + var_4));
    if (bVar1) {
      *puVar2 = *puVar2 & 0xfffffffe;
      return;
    }
    bVar1 = var_2<var_3,false,2u>
                      ((type_4 *)uVar3,(type_5 *)(&UNK_0003b32b + var_4));
    if (bVar1) {
      *puVar2 = *puVar2 | 1;
    }
  }
  return;
}


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

void MASKED(void)

{
  char cVar1;
  uint *extraout_EDX;
  
  FUN_00062073();
  if ((*extraout_EDX & 4) != 0) {
    cVar1 = FUN_00284160();
    if (cVar1 != '\0') {
      *extraout_EDX = *extraout_EDX & 0xfffffffe;
      return;
    }
    cVar1 = FUN_00284160();
    if (cVar1 != '\0') {
      *extraout_EDX = *extraout_EDX | 1;
    }
  }
  return;
}

