
/* bool std::(anonymous namespace)::read_bom<char16_t const, false, 2u>(std::(anonymous
   namespace)::range<char16_t const, false>&, unsigned char const (&) [2u]) */

bool __regparm3
std::(anonymous_namespace)::read_bom<char16_t_const,false,2u>(range *param_1,unsigned_char *param_2)

{
  short *psVar1;
  
  psVar1 = *(short **)param_1;
  if ((uint)(*(int *)(param_1 + 4) - (int)psVar1) < 2) {
    return false;
  }
  if (*(short *)param_2 != *psVar1) {
    return false;
  }
  *(short **)param_1 = psVar1 + 1;
  return true;
}



undefined4 __regparm3 FUN_002078e0(undefined4 *param_1,short *param_2)

{
  short *psVar1;
  
  psVar1 = (short *)*param_1;
  if ((uint)(param_1[1] - (int)psVar1) < 2) {
    return 0;
  }
  if (*param_2 != *psVar1) {
    return 0;
  }
  *param_1 = psVar1 + 1;
  return 1;
}


PUSH ESI
PUSH EBX
MOV ESI,dword ptr [EAX]
MOV ECX,dword ptr [EAX + 0x4]
SUB ECX,ESI
CMP ECX,0x1
JBE 0x00207910
MOV EBX,EAX
MOVZX ECX,word ptr [ESI]
XOR EAX,EAX
CMP word ptr [EDX],CX
JZ 0x00207900
POP EBX
POP ESI
RET
ADD ESI,0x2
MOV EAX,0x1
MOV dword ptr [EBX],ESI
POP EBX
POP ESI
RET
XOR EAX,EAX
POP EBX
POP ESI
RET
(translation_unit "undefined4 __regparm3 FUN_002078e0(undefined4 *param_1,short *param_2)\n\n{\n  short *psVar1;\n  \n  psVar1 = (short *)*param_1;\n  if ((uint)(param_1[1] - (int)psVar1) < 2) {\n    return 0;\n  }\n  if (*param_2 != *psVar1) {\n    return 0;\n  }\n  *param_1 = psVar1 + 1;\n  return 1;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_002078e0(undefined4 *param_1,short *param_2)\n\n{\n  short *psVar1;\n  \n  psVar1 = (short *)*param_1;\n  if ((uint)(param_1[1] - (int)psVar1) < 2) {\n    return 0;\n  }\n  if (*param_2 != *psVar1) {\n    return 0;\n  }\n  *param_1 = psVar1 + 1;\n  return 1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_002078e0(undefined4 *param_1,short *param_2)" identifier (parameter_list "(undefined4 *param_1,short *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "short *param_2" (sized_type_specifier "short" short) (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  short *psVar1;\n  \n  psVar1 = (short *)*param_1;\n  if ((uint)(param_1[1] - (int)psVar1) < 2) {\n    return 0;\n  }\n  if (*param_2 != *psVar1) {\n    return 0;\n  }\n  *param_1 = psVar1 + 1;\n  return 1;\n}" { (declaration "short *psVar1;" (sized_type_specifier "short" short) (pointer_declarator "*psVar1" * identifier) ;) (expression_statement "psVar1 = (short *)*param_1;" (assignment_expression "psVar1 = (short *)*param_1" identifier = (cast_expression "(short *)*param_1" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if ((uint)(param_1[1] - (int)psVar1) < 2) {\n    return 0;\n  }" if (parenthesized_expression "((uint)(param_1[1] - (int)psVar1) < 2)" ( (binary_expression "(uint)(param_1[1] - (int)psVar1) < 2" (call_expression "(uint)(param_1[1] - (int)psVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[1] - (int)psVar1)" ( (binary_expression "param_1[1] - (int)psVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) - (cast_expression "(int)psVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) < number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (*param_2 != *psVar1) {\n    return 0;\n  }" if (parenthesized_expression "(*param_2 != *psVar1)" ( (binary_expression "*param_2 != *psVar1" (pointer_expression "*param_2" * identifier) != (pointer_expression "*psVar1" * identifier)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*param_1 = psVar1 + 1;" (assignment_expression "*param_1 = psVar1 + 1" (pointer_expression "*param_1" * identifier) = (binary_expression "psVar1 + 1" identifier + number_literal)) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* bool std::(anonymous namespace)::read_bom<char16_t const, false, 2u>(std::(anonymous\n   namespace)::range<char16_t const, false>&, unsigned char const (&) [2u]) */\n\nbool __regparm3\nstd::(anonymous_namespace)::read_bom<char16_t_const,false,2u>(range *param_1,unsigned_char *param_2)\n\n{\n  short *psVar1;\n  \n  psVar1 = *(short **)param_1;\n  if ((uint)(*(int *)(param_1 + 4) - (int)psVar1) < 2) {\n    return false;\n  }\n  if (*(short *)param_2 != *psVar1) {\n    return false;\n  }\n  *(short **)param_1 = psVar1 + 1;\n  return true;\n}\n\n" comment (declaration "bool __regparm3" primitive_type identifier ;) (labeled_statement "std::(anonymous_namespace)::read_bom<char16_t_const,false,2u>(range *param_1,unsigned_char *param_2)" statement_identifier (ERROR "::(anonymous_namespace):" : : (parenthesized_expression "(anonymous_namespace)" ( identifier )) :) : (expression_statement "read_bom<char16_t_const,false,2u>(range *param_1,unsigned_char *param_2)" (comma_expression "read_bom<char16_t_const,false,2u>(range *param_1,unsigned_char *param_2)" (binary_expression "read_bom<char16_t_const" identifier < identifier) , (comma_expression "false,2u>(range *param_1,unsigned_char *param_2)" false , (binary_expression "2u>(range *param_1,unsigned_char *param_2)" number_literal > (parenthesized_expression "(range *param_1,unsigned_char *param_2)" ( (comma_expression "range *param_1,unsigned_char *param_2" (binary_expression "range *param_1" identifier * identifier) , (binary_expression "unsigned_char *param_2" identifier * identifier)) ))))) ;)) (compound_statement "{\n  short *psVar1;\n  \n  psVar1 = *(short **)param_1;\n  if ((uint)(*(int *)(param_1 + 4) - (int)psVar1) < 2) {\n    return false;\n  }\n  if (*(short *)param_2 != *psVar1) {\n    return false;\n  }\n  *(short **)param_1 = psVar1 + 1;\n  return true;\n}" { (declaration "short *psVar1;" (sized_type_specifier "short" short) (pointer_declarator "*psVar1" * identifier) ;) (expression_statement "psVar1 = *(short **)param_1;" (assignment_expression "psVar1 = *(short **)param_1" identifier = (pointer_expression "*(short **)param_1" * (cast_expression "(short **)param_1" ( (type_descriptor "short **" (sized_type_specifier "short" short) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if ((uint)(*(int *)(param_1 + 4) - (int)psVar1) < 2) {\n    return false;\n  }" if (parenthesized_expression "((uint)(*(int *)(param_1 + 4) - (int)psVar1) < 2)" ( (binary_expression "(uint)(*(int *)(param_1 + 4) - (int)psVar1) < 2" (call_expression "(uint)(*(int *)(param_1 + 4) - (int)psVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 4) - (int)psVar1)" ( (binary_expression "*(int *)(param_1 + 4) - (int)psVar1" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) - (cast_expression "(int)psVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) < number_literal) )) (compound_statement "{\n    return false;\n  }" { (return_statement "return false;" return false ;) })) (if_statement "if (*(short *)param_2 != *psVar1) {\n    return false;\n  }" if (parenthesized_expression "(*(short *)param_2 != *psVar1)" ( (binary_expression "*(short *)param_2 != *psVar1" (pointer_expression "*(short *)param_2" * (cast_expression "(short *)param_2" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) identifier)) != (pointer_expression "*psVar1" * identifier)) )) (compound_statement "{\n    return false;\n  }" { (return_statement "return false;" return false ;) })) (expression_statement "*(short **)param_1 = psVar1 + 1;" (assignment_expression "*(short **)param_1 = psVar1 + 1" (pointer_expression "*(short **)param_1" * (cast_expression "(short **)param_1" ( (type_descriptor "short **" (sized_type_specifier "short" short) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (binary_expression "psVar1 + 1" identifier + number_literal)) ;) (return_statement "return true;" return true ;) }))
(translation_unit "undefined4 __regparm3 FUN_002078e0(undefined4 *param_1,short *param_2)\n\n{\n  short *psVar1;\n  \n  psVar1 = (short *)*param_1;\n  if ((uint)(param_1[1] - (int)psVar1) < 2) {\n    return 0;\n  }\n  if (*param_2 != *psVar1) {\n    return 0;\n  }\n  *param_1 = psVar1 + 1;\n  return 1;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_002078e0(undefined4 *param_1,short *param_2)\n\n{\n  short *psVar1;\n  \n  psVar1 = (short *)*param_1;\n  if ((uint)(param_1[1] - (int)psVar1) < 2) {\n    return 0;\n  }\n  if (*param_2 != *psVar1) {\n    return 0;\n  }\n  *param_1 = psVar1 + 1;\n  return 1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_002078e0(undefined4 *param_1,short *param_2)" identifier (parameter_list "(undefined4 *param_1,short *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "short *param_2" (sized_type_specifier "short" short) (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  short *psVar1;\n  \n  psVar1 = (short *)*param_1;\n  if ((uint)(param_1[1] - (int)psVar1) < 2) {\n    return 0;\n  }\n  if (*param_2 != *psVar1) {\n    return 0;\n  }\n  *param_1 = psVar1 + 1;\n  return 1;\n}" { (declaration "short *psVar1;" (sized_type_specifier "short" short) (pointer_declarator "*psVar1" * identifier) ;) (expression_statement "psVar1 = (short *)*param_1;" (assignment_expression "psVar1 = (short *)*param_1" identifier = (cast_expression "(short *)*param_1" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if ((uint)(param_1[1] - (int)psVar1) < 2) {\n    return 0;\n  }" if (parenthesized_expression "((uint)(param_1[1] - (int)psVar1) < 2)" ( (binary_expression "(uint)(param_1[1] - (int)psVar1) < 2" (call_expression "(uint)(param_1[1] - (int)psVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[1] - (int)psVar1)" ( (binary_expression "param_1[1] - (int)psVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) - (cast_expression "(int)psVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) < number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (*param_2 != *psVar1) {\n    return 0;\n  }" if (parenthesized_expression "(*param_2 != *psVar1)" ( (binary_expression "*param_2 != *psVar1" (pointer_expression "*param_2" * identifier) != (pointer_expression "*psVar1" * identifier)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*param_1 = psVar1 + 1;" (assignment_expression "*param_1 = psVar1 + 1" (pointer_expression "*param_1" * identifier) = (binary_expression "psVar1 + 1" identifier + number_literal)) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier short) (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier short) (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (subscript_expression IDENT [ LIT ]) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) < LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (pointer_expression * IDENT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3 FUN_002078e0(undefined4 *param_1,short *param_2)\n\n{\n  short *psVar1;\n  \n  psVar1 = (short *)*param_1;\n  if ((uint)(param_1[1] - (int)psVar1) < 2) {\n    return 0;\n  }\n  if (*param_2 != *psVar1) {\n    return 0;\n  }\n  *param_1 = psVar1 + 1;\n  return 1;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_002078e0(undefined4 *param_1,short *param_2)" (identifier "FUN_002078e0") (parameter_list "(undefined4 *param_1,short *param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "short *param_2" (sized_type_specifier "short" (short "short")) (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  short *psVar1;\n  \n  psVar1 = (short *)*param_1;\n  if ((uint)(param_1[1] - (int)psVar1) < 2) {\n    return 0;\n  }\n  if (*param_2 != *psVar1) {\n    return 0;\n  }\n  *param_1 = psVar1 + 1;\n  return 1;\n}" ({ "{") (declaration "short *psVar1;" (sized_type_specifier "short" (short "short")) (pointer_declarator "*psVar1" (* "*") (identifier "psVar1")) (; ";")) (expression_statement "psVar1 = (short *)*param_1;" (assignment_expression "psVar1 = (short *)*param_1" (identifier "psVar1") (= "=") (cast_expression "(short *)*param_1" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if ((uint)(param_1[1] - (int)psVar1) < 2) {\n    return 0;\n  }" (if "if") (parenthesized_expression "((uint)(param_1[1] - (int)psVar1) < 2)" (( "(") (binary_expression "(uint)(param_1[1] - (int)psVar1) < 2" (call_expression "(uint)(param_1[1] - (int)psVar1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_1[1] - (int)psVar1)" (( "(") (binary_expression "param_1[1] - (int)psVar1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (- "-") (cast_expression "(int)psVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "psVar1"))) () ")"))) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (*param_2 != *psVar1) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(*param_2 != *psVar1)" (( "(") (binary_expression "*param_2 != *psVar1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (!= "!=") (pointer_expression "*psVar1" (* "*") (identifier "psVar1"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "*param_1 = psVar1 + 1;" (assignment_expression "*param_1 = psVar1 + 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "psVar1 + 1" (identifier "psVar1") (+ "+") (number_literal "1"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

/* bool std::(anonymous namespace)::read_bom<char16_t const, false, 2u>(std::(anonymous
   namespace)::range<char16_t const, false>&, unsigned char const (&) [2u]) */

bool __regparm3
std::(anonymous_namespace)::var_1<var_2,false,2u>(var_3 *var_4,var_5 *var_6)

{
  short *var_7;
  
  var_7 = *(short **)var_4;
  if ((uint)(*(int *)(var_4 + 4) - (int)var_7) < 2) {
    return false;
  }
  if (*(short *)var_6 != *var_7) {
    return false;
  }
  *(short **)var_4 = var_7 + 1;
  return true;
}


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (return_statement (number_literal)))))

undefined4 __regparm3 MASKED(undefined4 *param_1,short *param_2)

{
  short *psVar1;
  
  psVar1 = (short *)*param_1;
  if ((uint)(param_1[1] - (int)psVar1) < 2) {
    return 0;
  }
  if (*param_2 != *psVar1) {
    return 0;
  }
  *param_1 = psVar1 + 1;
  return 1;
}

