
/* std::(anonymous namespace)::write_utf8_code_point(std::(anonymous namespace)::range<char, true>&,
   char32_t) */

bool __regparm3 std::(anonymous_namespace)::write_utf8_code_point(range *param_1,wchar32 param_2)

{
  byte *pbVar1;
  byte *pbVar2;
  char *pcVar3;
  
  if ((uint)param_2 < 0x80) {
    pbVar2 = *(byte **)param_1;
    pbVar1 = *(byte **)(param_1 + 4);
    if (pbVar2 != pbVar1) {
      *(byte **)param_1 = pbVar2 + 1;
      *pbVar2 = (byte)param_2;
    }
    return pbVar2 != pbVar1;
  }
  if ((uint)param_2 < 0x800) {
    pcVar3 = *(char **)param_1;
    if ((uint)(*(int *)(param_1 + 4) - (int)pcVar3) < 2) {
      return false;
    }
    *(char **)param_1 = pcVar3 + 1;
    *pcVar3 = (char)((uint)param_2 >> 6) + -0x40;
  }
  else {
    if ((uint)param_2 < 0x10000) {
      pcVar3 = *(char **)param_1;
      if ((uint)(*(int *)(param_1 + 4) - (int)pcVar3) < 3) {
        return false;
      }
      *(char **)param_1 = pcVar3 + 1;
      *pcVar3 = (char)((uint)param_2 >> 0xc) + -0x20;
    }
    else {
      if (0x10ffff < (uint)param_2) {
        return false;
      }
      pcVar3 = *(char **)param_1;
      if ((uint)(*(int *)(param_1 + 4) - (int)pcVar3) < 4) {
        return false;
      }
      *(char **)param_1 = pcVar3 + 1;
      *pcVar3 = (char)((uint)param_2 >> 0x12) + -0x10;
      pcVar3 = *(char **)param_1;
      *(char **)param_1 = pcVar3 + 1;
      *pcVar3 = ((byte)((uint)param_2 >> 0xc) & 0x3f) + 0x80;
    }
    pcVar3 = *(char **)param_1;
    *(char **)param_1 = pcVar3 + 1;
    *pcVar3 = ((byte)((uint)param_2 >> 6) & 0x3f) + 0x80;
  }
  pcVar3 = *(char **)param_1;
  *(char **)param_1 = pcVar3 + 1;
  *pcVar3 = ((byte)param_2 & 0x3f) + 0x80;
  return true;
}



bool __regparm3 FUN_002337d0(int *param_1,uint param_2)

{
  byte *pbVar1;
  byte *pbVar2;
  char *pcVar3;
  
  if (param_2 < 0x80) {
    pbVar2 = (byte *)*param_1;
    pbVar1 = (byte *)param_1[1];
    if (pbVar2 != pbVar1) {
      *param_1 = (int)(pbVar2 + 1);
      *pbVar2 = (byte)param_2;
    }
    return pbVar2 != pbVar1;
  }
  if (param_2 < 0x800) {
    pcVar3 = (char *)*param_1;
    if ((uint)(param_1[1] - (int)pcVar3) < 2) {
      return false;
    }
    *param_1 = (int)(pcVar3 + 1);
    *pcVar3 = (char)(param_2 >> 6) + -0x40;
  }
  else {
    if (param_2 < 0x10000) {
      pcVar3 = (char *)*param_1;
      if ((uint)(param_1[1] - (int)pcVar3) < 3) {
        return false;
      }
      *param_1 = (int)(pcVar3 + 1);
      *pcVar3 = (char)(param_2 >> 0xc) + -0x20;
    }
    else {
      if (0x10ffff < param_2) {
        return false;
      }
      pcVar3 = (char *)*param_1;
      if ((uint)(param_1[1] - (int)pcVar3) < 4) {
        return false;
      }
      *param_1 = (int)(pcVar3 + 1);
      *pcVar3 = (char)(param_2 >> 0x12) + -0x10;
      pcVar3 = (char *)*param_1;
      *param_1 = (int)(pcVar3 + 1);
      *pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80;
    }
    pcVar3 = (char *)*param_1;
    *param_1 = (int)(pcVar3 + 1);
    *pcVar3 = ((byte)(param_2 >> 6) & 0x3f) + 0x80;
  }
  pcVar3 = (char *)*param_1;
  *param_1 = (int)(pcVar3 + 1);
  *pcVar3 = ((byte)param_2 & 0x3f) + 0x80;
  return true;
}


PUSH ESI
MOV ECX,EAX
PUSH EBX
CMP EDX,0x7f
JA 0x002337f8
MOV EAX,dword ptr [EAX]
CMP EAX,dword ptr [ECX + 0x4]
JZ 0x002338b8
LEA EBX,[EAX + 0x1]
MOV dword ptr [ECX],EBX
MOV byte ptr [EAX],DL
MOV EAX,0x1
POP EBX
POP ESI
RET
CMP EDX,0x7ff
JA 0x00233838
MOV ESI,dword ptr [EAX]
MOV EBX,dword ptr [EAX + 0x4]
XOR EAX,EAX
SUB EBX,ESI
CMP EBX,0x1
JBE 0x002337f0
LEA EAX,[ESI + 0x1]
MOV dword ptr [ECX],EAX
MOV EAX,EDX
SHR EAX,0x6
SUB EAX,0x40
MOV byte ptr [ESI],AL
MOV EAX,dword ptr [ECX]
AND EDX,0x3f
ADD EDX,-0x80
LEA EBX,[EAX + 0x1]
MOV dword ptr [ECX],EBX
MOV byte ptr [EAX],DL
MOV EAX,0x1
POP EBX
POP ESI
RET
CMP EDX,0xffff
JBE 0x00233890
XOR EAX,EAX
CMP EDX,0x10ffff
JA 0x002337f0
MOV ESI,dword ptr [ECX]
MOV EBX,dword ptr [ECX + 0x4]
SUB EBX,ESI
CMP EBX,0x3
JBE 0x002337f0
LEA EAX,[ESI + 0x1]
MOV dword ptr [ECX],EAX
MOV EAX,EDX
SHR EAX,0x12
SUB EAX,0x10
MOV byte ptr [ESI],AL
MOV EBX,dword ptr [ECX]
LEA EAX,[EBX + 0x1]
MOV dword ptr [ECX],EAX
MOV EAX,EDX
SHR EAX,0xc
AND EAX,0x3f
ADD EAX,-0x80
MOV byte ptr [EBX],AL
MOV EBX,dword ptr [ECX]
LEA EAX,[EBX + 0x1]
MOV dword ptr [ECX],EAX
MOV EAX,EDX
SHR EAX,0x6
AND EAX,0x3f
ADD EAX,-0x80
MOV byte ptr [EBX],AL
JMP 0x0023381d
MOV ESI,dword ptr [EAX]
MOV EBX,dword ptr [EAX + 0x4]
XOR EAX,EAX
SUB EBX,ESI
CMP EBX,0x2
JBE 0x002337f0
LEA EAX,[ESI + 0x1]
MOV dword ptr [ECX],EAX
MOV EAX,EDX
SHR EAX,0xc
SUB EAX,0x20
MOV byte ptr [ESI],AL
JMP 0x00233879
XOR EAX,EAX
JMP 0x002337f0
(translation_unit "bool __regparm3 FUN_002337d0(int *param_1,uint param_2)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  char *pcVar3;\n  \n  if (param_2 < 0x80) {\n    pbVar2 = (byte *)*param_1;\n    pbVar1 = (byte *)param_1[1];\n    if (pbVar2 != pbVar1) {\n      *param_1 = (int)(pbVar2 + 1);\n      *pbVar2 = (byte)param_2;\n    }\n    return pbVar2 != pbVar1;\n  }\n  if (param_2 < 0x800) {\n    pcVar3 = (char *)*param_1;\n    if ((uint)(param_1[1] - (int)pcVar3) < 2) {\n      return false;\n    }\n    *param_1 = (int)(pcVar3 + 1);\n    *pcVar3 = (char)(param_2 >> 6) + -0x40;\n  }\n  else {\n    if (param_2 < 0x10000) {\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 3) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0xc) + -0x20;\n    }\n    else {\n      if (0x10ffff < param_2) {\n        return false;\n      }\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 4) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0x12) + -0x10;\n      pcVar3 = (char *)*param_1;\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80;\n    }\n    pcVar3 = (char *)*param_1;\n    *param_1 = (int)(pcVar3 + 1);\n    *pcVar3 = ((byte)(param_2 >> 6) & 0x3f) + 0x80;\n  }\n  pcVar3 = (char *)*param_1;\n  *param_1 = (int)(pcVar3 + 1);\n  *pcVar3 = ((byte)param_2 & 0x3f) + 0x80;\n  return true;\n}\n\n" (function_definition "bool __regparm3 FUN_002337d0(int *param_1,uint param_2)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  char *pcVar3;\n  \n  if (param_2 < 0x80) {\n    pbVar2 = (byte *)*param_1;\n    pbVar1 = (byte *)param_1[1];\n    if (pbVar2 != pbVar1) {\n      *param_1 = (int)(pbVar2 + 1);\n      *pbVar2 = (byte)param_2;\n    }\n    return pbVar2 != pbVar1;\n  }\n  if (param_2 < 0x800) {\n    pcVar3 = (char *)*param_1;\n    if ((uint)(param_1[1] - (int)pcVar3) < 2) {\n      return false;\n    }\n    *param_1 = (int)(pcVar3 + 1);\n    *pcVar3 = (char)(param_2 >> 6) + -0x40;\n  }\n  else {\n    if (param_2 < 0x10000) {\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 3) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0xc) + -0x20;\n    }\n    else {\n      if (0x10ffff < param_2) {\n        return false;\n      }\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 4) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0x12) + -0x10;\n      pcVar3 = (char *)*param_1;\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80;\n    }\n    pcVar3 = (char *)*param_1;\n    *param_1 = (int)(pcVar3 + 1);\n    *pcVar3 = ((byte)(param_2 >> 6) & 0x3f) + 0x80;\n  }\n  pcVar3 = (char *)*param_1;\n  *param_1 = (int)(pcVar3 + 1);\n  *pcVar3 = ((byte)param_2 & 0x3f) + 0x80;\n  return true;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_002337d0(int *param_1,uint param_2)" identifier (parameter_list "(int *param_1,uint param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  byte *pbVar1;\n  byte *pbVar2;\n  char *pcVar3;\n  \n  if (param_2 < 0x80) {\n    pbVar2 = (byte *)*param_1;\n    pbVar1 = (byte *)param_1[1];\n    if (pbVar2 != pbVar1) {\n      *param_1 = (int)(pbVar2 + 1);\n      *pbVar2 = (byte)param_2;\n    }\n    return pbVar2 != pbVar1;\n  }\n  if (param_2 < 0x800) {\n    pcVar3 = (char *)*param_1;\n    if ((uint)(param_1[1] - (int)pcVar3) < 2) {\n      return false;\n    }\n    *param_1 = (int)(pcVar3 + 1);\n    *pcVar3 = (char)(param_2 >> 6) + -0x40;\n  }\n  else {\n    if (param_2 < 0x10000) {\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 3) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0xc) + -0x20;\n    }\n    else {\n      if (0x10ffff < param_2) {\n        return false;\n      }\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 4) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0x12) + -0x10;\n      pcVar3 = (char *)*param_1;\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80;\n    }\n    pcVar3 = (char *)*param_1;\n    *param_1 = (int)(pcVar3 + 1);\n    *pcVar3 = ((byte)(param_2 >> 6) & 0x3f) + 0x80;\n  }\n  pcVar3 = (char *)*param_1;\n  *param_1 = (int)(pcVar3 + 1);\n  *pcVar3 = ((byte)param_2 & 0x3f) + 0x80;\n  return true;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if (param_2 < 0x80) {\n    pbVar2 = (byte *)*param_1;\n    pbVar1 = (byte *)param_1[1];\n    if (pbVar2 != pbVar1) {\n      *param_1 = (int)(pbVar2 + 1);\n      *pbVar2 = (byte)param_2;\n    }\n    return pbVar2 != pbVar1;\n  }" if (parenthesized_expression "(param_2 < 0x80)" ( (binary_expression "param_2 < 0x80" identifier < number_literal) )) (compound_statement "{\n    pbVar2 = (byte *)*param_1;\n    pbVar1 = (byte *)param_1[1];\n    if (pbVar2 != pbVar1) {\n      *param_1 = (int)(pbVar2 + 1);\n      *pbVar2 = (byte)param_2;\n    }\n    return pbVar2 != pbVar1;\n  }" { (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "pbVar1 = (byte *)param_1[1];" (assignment_expression "pbVar1 = (byte *)param_1[1]" identifier = (cast_expression "(byte *)param_1[1]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (if_statement "if (pbVar2 != pbVar1) {\n      *param_1 = (int)(pbVar2 + 1);\n      *pbVar2 = (byte)param_2;\n    }" if (parenthesized_expression "(pbVar2 != pbVar1)" ( (binary_expression "pbVar2 != pbVar1" identifier != identifier) )) (compound_statement "{\n      *param_1 = (int)(pbVar2 + 1);\n      *pbVar2 = (byte)param_2;\n    }" { (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)param_2;" (assignment_expression "*pbVar2 = (byte)param_2" (pointer_expression "*pbVar2" * identifier) = (cast_expression "(byte)param_2" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) })) (return_statement "return pbVar2 != pbVar1;" return (binary_expression "pbVar2 != pbVar1" identifier != identifier) ;) })) (if_statement "if (param_2 < 0x800) {\n    pcVar3 = (char *)*param_1;\n    if ((uint)(param_1[1] - (int)pcVar3) < 2) {\n      return false;\n    }\n    *param_1 = (int)(pcVar3 + 1);\n    *pcVar3 = (char)(param_2 >> 6) + -0x40;\n  }\n  else {\n    if (param_2 < 0x10000) {\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 3) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0xc) + -0x20;\n    }\n    else {\n      if (0x10ffff < param_2) {\n        return false;\n      }\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 4) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0x12) + -0x10;\n      pcVar3 = (char *)*param_1;\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80;\n    }\n    pcVar3 = (char *)*param_1;\n    *param_1 = (int)(pcVar3 + 1);\n    *pcVar3 = ((byte)(param_2 >> 6) & 0x3f) + 0x80;\n  }" if (parenthesized_expression "(param_2 < 0x800)" ( (binary_expression "param_2 < 0x800" identifier < number_literal) )) (compound_statement "{\n    pcVar3 = (char *)*param_1;\n    if ((uint)(param_1[1] - (int)pcVar3) < 2) {\n      return false;\n    }\n    *param_1 = (int)(pcVar3 + 1);\n    *pcVar3 = (char)(param_2 >> 6) + -0x40;\n  }" { (expression_statement "pcVar3 = (char *)*param_1;" (assignment_expression "pcVar3 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if ((uint)(param_1[1] - (int)pcVar3) < 2) {\n      return false;\n    }" if (parenthesized_expression "((uint)(param_1[1] - (int)pcVar3) < 2)" ( (binary_expression "(uint)(param_1[1] - (int)pcVar3) < 2" (call_expression "(uint)(param_1[1] - (int)pcVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[1] - (int)pcVar3)" ( (binary_expression "param_1[1] - (int)pcVar3" (subscript_expression "param_1[1]" identifier [ number_literal ]) - (cast_expression "(int)pcVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) < number_literal) )) (compound_statement "{\n      return false;\n    }" { (return_statement "return false;" return false ;) })) (expression_statement "*param_1 = (int)(pcVar3 + 1);" (assignment_expression "*param_1 = (int)(pcVar3 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pcVar3 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pcVar3 + 1)" ( (binary_expression "pcVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "*pcVar3 = (char)(param_2 >> 6) + -0x40;" (assignment_expression "*pcVar3 = (char)(param_2 >> 6) + -0x40" (pointer_expression "*pcVar3" * identifier) = (binary_expression "(char)(param_2 >> 6) + -0x40" (cast_expression "(char)(param_2 >> 6)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(param_2 >> 6)" ( (binary_expression "param_2 >> 6" identifier >> number_literal) ))) + number_literal)) ;) }) (else_clause "else {\n    if (param_2 < 0x10000) {\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 3) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0xc) + -0x20;\n    }\n    else {\n      if (0x10ffff < param_2) {\n        return false;\n      }\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 4) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0x12) + -0x10;\n      pcVar3 = (char *)*param_1;\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80;\n    }\n    pcVar3 = (char *)*param_1;\n    *param_1 = (int)(pcVar3 + 1);\n    *pcVar3 = ((byte)(param_2 >> 6) & 0x3f) + 0x80;\n  }" else (compound_statement "{\n    if (param_2 < 0x10000) {\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 3) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0xc) + -0x20;\n    }\n    else {\n      if (0x10ffff < param_2) {\n        return false;\n      }\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 4) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0x12) + -0x10;\n      pcVar3 = (char *)*param_1;\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80;\n    }\n    pcVar3 = (char *)*param_1;\n    *param_1 = (int)(pcVar3 + 1);\n    *pcVar3 = ((byte)(param_2 >> 6) & 0x3f) + 0x80;\n  }" { (if_statement "if (param_2 < 0x10000) {\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 3) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0xc) + -0x20;\n    }\n    else {\n      if (0x10ffff < param_2) {\n        return false;\n      }\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 4) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0x12) + -0x10;\n      pcVar3 = (char *)*param_1;\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80;\n    }" if (parenthesized_expression "(param_2 < 0x10000)" ( (binary_expression "param_2 < 0x10000" identifier < number_literal) )) (compound_statement "{\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 3) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0xc) + -0x20;\n    }" { (expression_statement "pcVar3 = (char *)*param_1;" (assignment_expression "pcVar3 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if ((uint)(param_1[1] - (int)pcVar3) < 3) {\n        return false;\n      }" if (parenthesized_expression "((uint)(param_1[1] - (int)pcVar3) < 3)" ( (binary_expression "(uint)(param_1[1] - (int)pcVar3) < 3" (call_expression "(uint)(param_1[1] - (int)pcVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[1] - (int)pcVar3)" ( (binary_expression "param_1[1] - (int)pcVar3" (subscript_expression "param_1[1]" identifier [ number_literal ]) - (cast_expression "(int)pcVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) < number_literal) )) (compound_statement "{\n        return false;\n      }" { (return_statement "return false;" return false ;) })) (expression_statement "*param_1 = (int)(pcVar3 + 1);" (assignment_expression "*param_1 = (int)(pcVar3 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pcVar3 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pcVar3 + 1)" ( (binary_expression "pcVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "*pcVar3 = (char)(param_2 >> 0xc) + -0x20;" (assignment_expression "*pcVar3 = (char)(param_2 >> 0xc) + -0x20" (pointer_expression "*pcVar3" * identifier) = (binary_expression "(char)(param_2 >> 0xc) + -0x20" (cast_expression "(char)(param_2 >> 0xc)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(param_2 >> 0xc)" ( (binary_expression "param_2 >> 0xc" identifier >> number_literal) ))) + number_literal)) ;) }) (else_clause "else {\n      if (0x10ffff < param_2) {\n        return false;\n      }\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 4) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0x12) + -0x10;\n      pcVar3 = (char *)*param_1;\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80;\n    }" else (compound_statement "{\n      if (0x10ffff < param_2) {\n        return false;\n      }\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 4) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0x12) + -0x10;\n      pcVar3 = (char *)*param_1;\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80;\n    }" { (if_statement "if (0x10ffff < param_2) {\n        return false;\n      }" if (parenthesized_expression "(0x10ffff < param_2)" ( (binary_expression "0x10ffff < param_2" number_literal < identifier) )) (compound_statement "{\n        return false;\n      }" { (return_statement "return false;" return false ;) })) (expression_statement "pcVar3 = (char *)*param_1;" (assignment_expression "pcVar3 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if ((uint)(param_1[1] - (int)pcVar3) < 4) {\n        return false;\n      }" if (parenthesized_expression "((uint)(param_1[1] - (int)pcVar3) < 4)" ( (binary_expression "(uint)(param_1[1] - (int)pcVar3) < 4" (call_expression "(uint)(param_1[1] - (int)pcVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[1] - (int)pcVar3)" ( (binary_expression "param_1[1] - (int)pcVar3" (subscript_expression "param_1[1]" identifier [ number_literal ]) - (cast_expression "(int)pcVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) < number_literal) )) (compound_statement "{\n        return false;\n      }" { (return_statement "return false;" return false ;) })) (expression_statement "*param_1 = (int)(pcVar3 + 1);" (assignment_expression "*param_1 = (int)(pcVar3 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pcVar3 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pcVar3 + 1)" ( (binary_expression "pcVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "*pcVar3 = (char)(param_2 >> 0x12) + -0x10;" (assignment_expression "*pcVar3 = (char)(param_2 >> 0x12) + -0x10" (pointer_expression "*pcVar3" * identifier) = (binary_expression "(char)(param_2 >> 0x12) + -0x10" (cast_expression "(char)(param_2 >> 0x12)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(param_2 >> 0x12)" ( (binary_expression "param_2 >> 0x12" identifier >> number_literal) ))) + number_literal)) ;) (expression_statement "pcVar3 = (char *)*param_1;" (assignment_expression "pcVar3 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pcVar3 + 1);" (assignment_expression "*param_1 = (int)(pcVar3 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pcVar3 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pcVar3 + 1)" ( (binary_expression "pcVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "*pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80;" (assignment_expression "*pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80" (pointer_expression "*pcVar3" * identifier) = (binary_expression "((byte)(param_2 >> 0xc) & 0x3f) + 0x80" (parenthesized_expression "((byte)(param_2 >> 0xc) & 0x3f)" ( (binary_expression "(byte)(param_2 >> 0xc) & 0x3f" (call_expression "(byte)(param_2 >> 0xc)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(param_2 >> 0xc)" ( (binary_expression "param_2 >> 0xc" identifier >> number_literal) ))) & number_literal) )) + number_literal)) ;) }))) (expression_statement "pcVar3 = (char *)*param_1;" (assignment_expression "pcVar3 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pcVar3 + 1);" (assignment_expression "*param_1 = (int)(pcVar3 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pcVar3 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pcVar3 + 1)" ( (binary_expression "pcVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "*pcVar3 = ((byte)(param_2 >> 6) & 0x3f) + 0x80;" (assignment_expression "*pcVar3 = ((byte)(param_2 >> 6) & 0x3f) + 0x80" (pointer_expression "*pcVar3" * identifier) = (binary_expression "((byte)(param_2 >> 6) & 0x3f) + 0x80" (parenthesized_expression "((byte)(param_2 >> 6) & 0x3f)" ( (binary_expression "(byte)(param_2 >> 6) & 0x3f" (call_expression "(byte)(param_2 >> 6)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(param_2 >> 6)" ( (binary_expression "param_2 >> 6" identifier >> number_literal) ))) & number_literal) )) + number_literal)) ;) }))) (expression_statement "pcVar3 = (char *)*param_1;" (assignment_expression "pcVar3 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pcVar3 + 1);" (assignment_expression "*param_1 = (int)(pcVar3 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pcVar3 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pcVar3 + 1)" ( (binary_expression "pcVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "*pcVar3 = ((byte)param_2 & 0x3f) + 0x80;" (assignment_expression "*pcVar3 = ((byte)param_2 & 0x3f) + 0x80" (pointer_expression "*pcVar3" * identifier) = (binary_expression "((byte)param_2 & 0x3f) + 0x80" (parenthesized_expression "((byte)param_2 & 0x3f)" ( (binary_expression "(byte)param_2 & 0x3f" (cast_expression "(byte)param_2" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )) + number_literal)) ;) (return_statement "return true;" return true ;) })))
(translation_unit "/* std::(anonymous namespace)::write_utf8_code_point(std::(anonymous namespace)::range<char, true>&,\n   char32_t) */\n\nbool __regparm3 std::(anonymous_namespace)::write_utf8_code_point(range *param_1,wchar32 param_2)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  char *pcVar3;\n  \n  if ((uint)param_2 < 0x80) {\n    pbVar2 = *(byte **)param_1;\n    pbVar1 = *(byte **)(param_1 + 4);\n    if (pbVar2 != pbVar1) {\n      *(byte **)param_1 = pbVar2 + 1;\n      *pbVar2 = (byte)param_2;\n    }\n    return pbVar2 != pbVar1;\n  }\n  if ((uint)param_2 < 0x800) {\n    pcVar3 = *(char **)param_1;\n    if ((uint)(*(int *)(param_1 + 4) - (int)pcVar3) < 2) {\n      return false;\n    }\n    *(char **)param_1 = pcVar3 + 1;\n    *pcVar3 = (char)((uint)param_2 >> 6) + -0x40;\n  }\n  else {\n    if ((uint)param_2 < 0x10000) {\n      pcVar3 = *(char **)param_1;\n      if ((uint)(*(int *)(param_1 + 4) - (int)pcVar3) < 3) {\n        return false;\n      }\n      *(char **)param_1 = pcVar3 + 1;\n      *pcVar3 = (char)((uint)param_2 >> 0xc) + -0x20;\n    }\n    else {\n      if (0x10ffff < (uint)param_2) {\n        return false;\n      }\n      pcVar3 = *(char **)param_1;\n      if ((uint)(*(int *)(param_1 + 4) - (int)pcVar3) < 4) {\n        return false;\n      }\n      *(char **)param_1 = pcVar3 + 1;\n      *pcVar3 = (char)((uint)param_2 >> 0x12) + -0x10;\n      pcVar3 = *(char **)param_1;\n      *(char **)param_1 = pcVar3 + 1;\n      *pcVar3 = ((byte)((uint)param_2 >> 0xc) & 0x3f) + 0x80;\n    }\n    pcVar3 = *(char **)param_1;\n    *(char **)param_1 = pcVar3 + 1;\n    *pcVar3 = ((byte)((uint)param_2 >> 6) & 0x3f) + 0x80;\n  }\n  pcVar3 = *(char **)param_1;\n  *(char **)param_1 = pcVar3 + 1;\n  *pcVar3 = ((byte)param_2 & 0x3f) + 0x80;\n  return true;\n}\n\n" comment (declaration "bool __regparm3" primitive_type identifier ;) (labeled_statement "std::(anonymous_namespace)::write_utf8_code_point(range *param_1,wchar32 param_2)" statement_identifier (ERROR "::(anonymous_namespace):" : : (parenthesized_expression "(anonymous_namespace)" ( identifier )) :) : (expression_statement "write_utf8_code_point(range *param_1,wchar32 param_2)" (call_expression "write_utf8_code_point(range *param_1,wchar32 param_2)" identifier (argument_list "(range *param_1,wchar32 param_2)" ( (binary_expression "range *param_1" identifier * identifier) , identifier (ERROR "param_2" identifier) ))) ;)) (compound_statement "{\n  byte *pbVar1;\n  byte *pbVar2;\n  char *pcVar3;\n  \n  if ((uint)param_2 < 0x80) {\n    pbVar2 = *(byte **)param_1;\n    pbVar1 = *(byte **)(param_1 + 4);\n    if (pbVar2 != pbVar1) {\n      *(byte **)param_1 = pbVar2 + 1;\n      *pbVar2 = (byte)param_2;\n    }\n    return pbVar2 != pbVar1;\n  }\n  if ((uint)param_2 < 0x800) {\n    pcVar3 = *(char **)param_1;\n    if ((uint)(*(int *)(param_1 + 4) - (int)pcVar3) < 2) {\n      return false;\n    }\n    *(char **)param_1 = pcVar3 + 1;\n    *pcVar3 = (char)((uint)param_2 >> 6) + -0x40;\n  }\n  else {\n    if ((uint)param_2 < 0x10000) {\n      pcVar3 = *(char **)param_1;\n      if ((uint)(*(int *)(param_1 + 4) - (int)pcVar3) < 3) {\n        return false;\n      }\n      *(char **)param_1 = pcVar3 + 1;\n      *pcVar3 = (char)((uint)param_2 >> 0xc) + -0x20;\n    }\n    else {\n      if (0x10ffff < (uint)param_2) {\n        return false;\n      }\n      pcVar3 = *(char **)param_1;\n      if ((uint)(*(int *)(param_1 + 4) - (int)pcVar3) < 4) {\n        return false;\n      }\n      *(char **)param_1 = pcVar3 + 1;\n      *pcVar3 = (char)((uint)param_2 >> 0x12) + -0x10;\n      pcVar3 = *(char **)param_1;\n      *(char **)param_1 = pcVar3 + 1;\n      *pcVar3 = ((byte)((uint)param_2 >> 0xc) & 0x3f) + 0x80;\n    }\n    pcVar3 = *(char **)param_1;\n    *(char **)param_1 = pcVar3 + 1;\n    *pcVar3 = ((byte)((uint)param_2 >> 6) & 0x3f) + 0x80;\n  }\n  pcVar3 = *(char **)param_1;\n  *(char **)param_1 = pcVar3 + 1;\n  *pcVar3 = ((byte)param_2 & 0x3f) + 0x80;\n  return true;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if ((uint)param_2 < 0x80) {\n    pbVar2 = *(byte **)param_1;\n    pbVar1 = *(byte **)(param_1 + 4);\n    if (pbVar2 != pbVar1) {\n      *(byte **)param_1 = pbVar2 + 1;\n      *pbVar2 = (byte)param_2;\n    }\n    return pbVar2 != pbVar1;\n  }" if (parenthesized_expression "((uint)param_2 < 0x80)" ( (binary_expression "(uint)param_2 < 0x80" (cast_expression "(uint)param_2" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) )) (compound_statement "{\n    pbVar2 = *(byte **)param_1;\n    pbVar1 = *(byte **)(param_1 + 4);\n    if (pbVar2 != pbVar1) {\n      *(byte **)param_1 = pbVar2 + 1;\n      *pbVar2 = (byte)param_2;\n    }\n    return pbVar2 != pbVar1;\n  }" { (expression_statement "pbVar2 = *(byte **)param_1;" (assignment_expression "pbVar2 = *(byte **)param_1" identifier = (pointer_expression "*(byte **)param_1" * (cast_expression "(byte **)param_1" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pbVar1 = *(byte **)(param_1 + 4);" (assignment_expression "pbVar1 = *(byte **)(param_1 + 4)" identifier = (pointer_expression "*(byte **)(param_1 + 4)" * (cast_expression "(byte **)(param_1 + 4)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (pbVar2 != pbVar1) {\n      *(byte **)param_1 = pbVar2 + 1;\n      *pbVar2 = (byte)param_2;\n    }" if (parenthesized_expression "(pbVar2 != pbVar1)" ( (binary_expression "pbVar2 != pbVar1" identifier != identifier) )) (compound_statement "{\n      *(byte **)param_1 = pbVar2 + 1;\n      *pbVar2 = (byte)param_2;\n    }" { (expression_statement "*(byte **)param_1 = pbVar2 + 1;" (assignment_expression "*(byte **)param_1 = pbVar2 + 1" (pointer_expression "*(byte **)param_1" * (cast_expression "(byte **)param_1" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "*pbVar2 = (byte)param_2;" (assignment_expression "*pbVar2 = (byte)param_2" (pointer_expression "*pbVar2" * identifier) = (cast_expression "(byte)param_2" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) })) (return_statement "return pbVar2 != pbVar1;" return (binary_expression "pbVar2 != pbVar1" identifier != identifier) ;) })) (if_statement "if ((uint)param_2 < 0x800) {\n    pcVar3 = *(char **)param_1;\n    if ((uint)(*(int *)(param_1 + 4) - (int)pcVar3) < 2) {\n      return false;\n    }\n    *(char **)param_1 = pcVar3 + 1;\n    *pcVar3 = (char)((uint)param_2 >> 6) + -0x40;\n  }\n  else {\n    if ((uint)param_2 < 0x10000) {\n      pcVar3 = *(char **)param_1;\n      if ((uint)(*(int *)(param_1 + 4) - (int)pcVar3) < 3) {\n        return false;\n      }\n      *(char **)param_1 = pcVar3 + 1;\n      *pcVar3 = (char)((uint)param_2 >> 0xc) + -0x20;\n    }\n    else {\n      if (0x10ffff < (uint)param_2) {\n        return false;\n      }\n      pcVar3 = *(char **)param_1;\n      if ((uint)(*(int *)(param_1 + 4) - (int)pcVar3) < 4) {\n        return false;\n      }\n      *(char **)param_1 = pcVar3 + 1;\n      *pcVar3 = (char)((uint)param_2 >> 0x12) + -0x10;\n      pcVar3 = *(char **)param_1;\n      *(char **)param_1 = pcVar3 + 1;\n      *pcVar3 = ((byte)((uint)param_2 >> 0xc) & 0x3f) + 0x80;\n    }\n    pcVar3 = *(char **)param_1;\n    *(char **)param_1 = pcVar3 + 1;\n    *pcVar3 = ((byte)((uint)param_2 >> 6) & 0x3f) + 0x80;\n  }" if (parenthesized_expression "((uint)param_2 < 0x800)" ( (binary_expression "(uint)param_2 < 0x800" (cast_expression "(uint)param_2" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) )) (compound_statement "{\n    pcVar3 = *(char **)param_1;\n    if ((uint)(*(int *)(param_1 + 4) - (int)pcVar3) < 2) {\n      return false;\n    }\n    *(char **)param_1 = pcVar3 + 1;\n    *pcVar3 = (char)((uint)param_2 >> 6) + -0x40;\n  }" { (expression_statement "pcVar3 = *(char **)param_1;" (assignment_expression "pcVar3 = *(char **)param_1" identifier = (pointer_expression "*(char **)param_1" * (cast_expression "(char **)param_1" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if ((uint)(*(int *)(param_1 + 4) - (int)pcVar3) < 2) {\n      return false;\n    }" if (parenthesized_expression "((uint)(*(int *)(param_1 + 4) - (int)pcVar3) < 2)" ( (binary_expression "(uint)(*(int *)(param_1 + 4) - (int)pcVar3) < 2" (call_expression "(uint)(*(int *)(param_1 + 4) - (int)pcVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 4) - (int)pcVar3)" ( (binary_expression "*(int *)(param_1 + 4) - (int)pcVar3" (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)pcVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) < number_literal) )) (compound_statement "{\n      return false;\n    }" { (return_statement "return false;" return false ;) })) (expression_statement "*(char **)param_1 = pcVar3 + 1;" (assignment_expression "*(char **)param_1 = pcVar3 + 1" (pointer_expression "*(char **)param_1" * (cast_expression "(char **)param_1" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar3 = (char)((uint)param_2 >> 6) + -0x40;" (assignment_expression "*pcVar3 = (char)((uint)param_2 >> 6) + -0x40" (pointer_expression "*pcVar3" * identifier) = (binary_expression "(char)((uint)param_2 >> 6) + -0x40" (cast_expression "(char)((uint)param_2 >> 6)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)param_2 >> 6)" ( (binary_expression "(uint)param_2 >> 6" (cast_expression "(uint)param_2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) ))) + number_literal)) ;) }) (else_clause "else {\n    if ((uint)param_2 < 0x10000) {\n      pcVar3 = *(char **)param_1;\n      if ((uint)(*(int *)(param_1 + 4) - (int)pcVar3) < 3) {\n        return false;\n      }\n      *(char **)param_1 = pcVar3 + 1;\n      *pcVar3 = (char)((uint)param_2 >> 0xc) + -0x20;\n    }\n    else {\n      if (0x10ffff < (uint)param_2) {\n        return false;\n      }\n      pcVar3 = *(char **)param_1;\n      if ((uint)(*(int *)(param_1 + 4) - (int)pcVar3) < 4) {\n        return false;\n      }\n      *(char **)param_1 = pcVar3 + 1;\n      *pcVar3 = (char)((uint)param_2 >> 0x12) + -0x10;\n      pcVar3 = *(char **)param_1;\n      *(char **)param_1 = pcVar3 + 1;\n      *pcVar3 = ((byte)((uint)param_2 >> 0xc) & 0x3f) + 0x80;\n    }\n    pcVar3 = *(char **)param_1;\n    *(char **)param_1 = pcVar3 + 1;\n    *pcVar3 = ((byte)((uint)param_2 >> 6) & 0x3f) + 0x80;\n  }" else (compound_statement "{\n    if ((uint)param_2 < 0x10000) {\n      pcVar3 = *(char **)param_1;\n      if ((uint)(*(int *)(param_1 + 4) - (int)pcVar3) < 3) {\n        return false;\n      }\n      *(char **)param_1 = pcVar3 + 1;\n      *pcVar3 = (char)((uint)param_2 >> 0xc) + -0x20;\n    }\n    else {\n      if (0x10ffff < (uint)param_2) {\n        return false;\n      }\n      pcVar3 = *(char **)param_1;\n      if ((uint)(*(int *)(param_1 + 4) - (int)pcVar3) < 4) {\n        return false;\n      }\n      *(char **)param_1 = pcVar3 + 1;\n      *pcVar3 = (char)((uint)param_2 >> 0x12) + -0x10;\n      pcVar3 = *(char **)param_1;\n      *(char **)param_1 = pcVar3 + 1;\n      *pcVar3 = ((byte)((uint)param_2 >> 0xc) & 0x3f) + 0x80;\n    }\n    pcVar3 = *(char **)param_1;\n    *(char **)param_1 = pcVar3 + 1;\n    *pcVar3 = ((byte)((uint)param_2 >> 6) & 0x3f) + 0x80;\n  }" { (if_statement "if ((uint)param_2 < 0x10000) {\n      pcVar3 = *(char **)param_1;\n      if ((uint)(*(int *)(param_1 + 4) - (int)pcVar3) < 3) {\n        return false;\n      }\n      *(char **)param_1 = pcVar3 + 1;\n      *pcVar3 = (char)((uint)param_2 >> 0xc) + -0x20;\n    }\n    else {\n      if (0x10ffff < (uint)param_2) {\n        return false;\n      }\n      pcVar3 = *(char **)param_1;\n      if ((uint)(*(int *)(param_1 + 4) - (int)pcVar3) < 4) {\n        return false;\n      }\n      *(char **)param_1 = pcVar3 + 1;\n      *pcVar3 = (char)((uint)param_2 >> 0x12) + -0x10;\n      pcVar3 = *(char **)param_1;\n      *(char **)param_1 = pcVar3 + 1;\n      *pcVar3 = ((byte)((uint)param_2 >> 0xc) & 0x3f) + 0x80;\n    }" if (parenthesized_expression "((uint)param_2 < 0x10000)" ( (binary_expression "(uint)param_2 < 0x10000" (cast_expression "(uint)param_2" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) )) (compound_statement "{\n      pcVar3 = *(char **)param_1;\n      if ((uint)(*(int *)(param_1 + 4) - (int)pcVar3) < 3) {\n        return false;\n      }\n      *(char **)param_1 = pcVar3 + 1;\n      *pcVar3 = (char)((uint)param_2 >> 0xc) + -0x20;\n    }" { (expression_statement "pcVar3 = *(char **)param_1;" (assignment_expression "pcVar3 = *(char **)param_1" identifier = (pointer_expression "*(char **)param_1" * (cast_expression "(char **)param_1" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if ((uint)(*(int *)(param_1 + 4) - (int)pcVar3) < 3) {\n        return false;\n      }" if (parenthesized_expression "((uint)(*(int *)(param_1 + 4) - (int)pcVar3) < 3)" ( (binary_expression "(uint)(*(int *)(param_1 + 4) - (int)pcVar3) < 3" (call_expression "(uint)(*(int *)(param_1 + 4) - (int)pcVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 4) - (int)pcVar3)" ( (binary_expression "*(int *)(param_1 + 4) - (int)pcVar3" (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)pcVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) < number_literal) )) (compound_statement "{\n        return false;\n      }" { (return_statement "return false;" return false ;) })) (expression_statement "*(char **)param_1 = pcVar3 + 1;" (assignment_expression "*(char **)param_1 = pcVar3 + 1" (pointer_expression "*(char **)param_1" * (cast_expression "(char **)param_1" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar3 = (char)((uint)param_2 >> 0xc) + -0x20;" (assignment_expression "*pcVar3 = (char)((uint)param_2 >> 0xc) + -0x20" (pointer_expression "*pcVar3" * identifier) = (binary_expression "(char)((uint)param_2 >> 0xc) + -0x20" (cast_expression "(char)((uint)param_2 >> 0xc)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)param_2 >> 0xc)" ( (binary_expression "(uint)param_2 >> 0xc" (cast_expression "(uint)param_2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) ))) + number_literal)) ;) }) (else_clause "else {\n      if (0x10ffff < (uint)param_2) {\n        return false;\n      }\n      pcVar3 = *(char **)param_1;\n      if ((uint)(*(int *)(param_1 + 4) - (int)pcVar3) < 4) {\n        return false;\n      }\n      *(char **)param_1 = pcVar3 + 1;\n      *pcVar3 = (char)((uint)param_2 >> 0x12) + -0x10;\n      pcVar3 = *(char **)param_1;\n      *(char **)param_1 = pcVar3 + 1;\n      *pcVar3 = ((byte)((uint)param_2 >> 0xc) & 0x3f) + 0x80;\n    }" else (compound_statement "{\n      if (0x10ffff < (uint)param_2) {\n        return false;\n      }\n      pcVar3 = *(char **)param_1;\n      if ((uint)(*(int *)(param_1 + 4) - (int)pcVar3) < 4) {\n        return false;\n      }\n      *(char **)param_1 = pcVar3 + 1;\n      *pcVar3 = (char)((uint)param_2 >> 0x12) + -0x10;\n      pcVar3 = *(char **)param_1;\n      *(char **)param_1 = pcVar3 + 1;\n      *pcVar3 = ((byte)((uint)param_2 >> 0xc) & 0x3f) + 0x80;\n    }" { (if_statement "if (0x10ffff < (uint)param_2) {\n        return false;\n      }" if (parenthesized_expression "(0x10ffff < (uint)param_2)" ( (binary_expression "0x10ffff < (uint)param_2" number_literal < (cast_expression "(uint)param_2" ( (type_descriptor "uint" type_identifier) ) identifier)) )) (compound_statement "{\n        return false;\n      }" { (return_statement "return false;" return false ;) })) (expression_statement "pcVar3 = *(char **)param_1;" (assignment_expression "pcVar3 = *(char **)param_1" identifier = (pointer_expression "*(char **)param_1" * (cast_expression "(char **)param_1" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if ((uint)(*(int *)(param_1 + 4) - (int)pcVar3) < 4) {\n        return false;\n      }" if (parenthesized_expression "((uint)(*(int *)(param_1 + 4) - (int)pcVar3) < 4)" ( (binary_expression "(uint)(*(int *)(param_1 + 4) - (int)pcVar3) < 4" (call_expression "(uint)(*(int *)(param_1 + 4) - (int)pcVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_1 + 4) - (int)pcVar3)" ( (binary_expression "*(int *)(param_1 + 4) - (int)pcVar3" (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)pcVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) < number_literal) )) (compound_statement "{\n        return false;\n      }" { (return_statement "return false;" return false ;) })) (expression_statement "*(char **)param_1 = pcVar3 + 1;" (assignment_expression "*(char **)param_1 = pcVar3 + 1" (pointer_expression "*(char **)param_1" * (cast_expression "(char **)param_1" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar3 = (char)((uint)param_2 >> 0x12) + -0x10;" (assignment_expression "*pcVar3 = (char)((uint)param_2 >> 0x12) + -0x10" (pointer_expression "*pcVar3" * identifier) = (binary_expression "(char)((uint)param_2 >> 0x12) + -0x10" (cast_expression "(char)((uint)param_2 >> 0x12)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)param_2 >> 0x12)" ( (binary_expression "(uint)param_2 >> 0x12" (cast_expression "(uint)param_2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) ))) + number_literal)) ;) (expression_statement "pcVar3 = *(char **)param_1;" (assignment_expression "pcVar3 = *(char **)param_1" identifier = (pointer_expression "*(char **)param_1" * (cast_expression "(char **)param_1" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "*(char **)param_1 = pcVar3 + 1;" (assignment_expression "*(char **)param_1 = pcVar3 + 1" (pointer_expression "*(char **)param_1" * (cast_expression "(char **)param_1" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar3 = ((byte)((uint)param_2 >> 0xc) & 0x3f) + 0x80;" (assignment_expression "*pcVar3 = ((byte)((uint)param_2 >> 0xc) & 0x3f) + 0x80" (pointer_expression "*pcVar3" * identifier) = (binary_expression "((byte)((uint)param_2 >> 0xc) & 0x3f) + 0x80" (parenthesized_expression "((byte)((uint)param_2 >> 0xc) & 0x3f)" ( (binary_expression "(byte)((uint)param_2 >> 0xc) & 0x3f" (call_expression "(byte)((uint)param_2 >> 0xc)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((uint)param_2 >> 0xc)" ( (binary_expression "(uint)param_2 >> 0xc" (cast_expression "(uint)param_2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) ))) & number_literal) )) + number_literal)) ;) }))) (expression_statement "pcVar3 = *(char **)param_1;" (assignment_expression "pcVar3 = *(char **)param_1" identifier = (pointer_expression "*(char **)param_1" * (cast_expression "(char **)param_1" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "*(char **)param_1 = pcVar3 + 1;" (assignment_expression "*(char **)param_1 = pcVar3 + 1" (pointer_expression "*(char **)param_1" * (cast_expression "(char **)param_1" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar3 = ((byte)((uint)param_2 >> 6) & 0x3f) + 0x80;" (assignment_expression "*pcVar3 = ((byte)((uint)param_2 >> 6) & 0x3f) + 0x80" (pointer_expression "*pcVar3" * identifier) = (binary_expression "((byte)((uint)param_2 >> 6) & 0x3f) + 0x80" (parenthesized_expression "((byte)((uint)param_2 >> 6) & 0x3f)" ( (binary_expression "(byte)((uint)param_2 >> 6) & 0x3f" (call_expression "(byte)((uint)param_2 >> 6)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((uint)param_2 >> 6)" ( (binary_expression "(uint)param_2 >> 6" (cast_expression "(uint)param_2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) ))) & number_literal) )) + number_literal)) ;) }))) (expression_statement "pcVar3 = *(char **)param_1;" (assignment_expression "pcVar3 = *(char **)param_1" identifier = (pointer_expression "*(char **)param_1" * (cast_expression "(char **)param_1" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "*(char **)param_1 = pcVar3 + 1;" (assignment_expression "*(char **)param_1 = pcVar3 + 1" (pointer_expression "*(char **)param_1" * (cast_expression "(char **)param_1" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar3 = ((byte)param_2 & 0x3f) + 0x80;" (assignment_expression "*pcVar3 = ((byte)param_2 & 0x3f) + 0x80" (pointer_expression "*pcVar3" * identifier) = (binary_expression "((byte)param_2 & 0x3f) + 0x80" (parenthesized_expression "((byte)param_2 & 0x3f)" ( (binary_expression "(byte)param_2 & 0x3f" (cast_expression "(byte)param_2" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )) + number_literal)) ;) (return_statement "return true;" return true ;) }))
(translation_unit "bool __regparm3 FUN_002337d0(int *param_1,uint param_2)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  char *pcVar3;\n  \n  if (param_2 < 0x80) {\n    pbVar2 = (byte *)*param_1;\n    pbVar1 = (byte *)param_1[1];\n    if (pbVar2 != pbVar1) {\n      *param_1 = (int)(pbVar2 + 1);\n      *pbVar2 = (byte)param_2;\n    }\n    return pbVar2 != pbVar1;\n  }\n  if (param_2 < 0x800) {\n    pcVar3 = (char *)*param_1;\n    if ((uint)(param_1[1] - (int)pcVar3) < 2) {\n      return false;\n    }\n    *param_1 = (int)(pcVar3 + 1);\n    *pcVar3 = (char)(param_2 >> 6) + -0x40;\n  }\n  else {\n    if (param_2 < 0x10000) {\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 3) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0xc) + -0x20;\n    }\n    else {\n      if (0x10ffff < param_2) {\n        return false;\n      }\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 4) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0x12) + -0x10;\n      pcVar3 = (char *)*param_1;\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80;\n    }\n    pcVar3 = (char *)*param_1;\n    *param_1 = (int)(pcVar3 + 1);\n    *pcVar3 = ((byte)(param_2 >> 6) & 0x3f) + 0x80;\n  }\n  pcVar3 = (char *)*param_1;\n  *param_1 = (int)(pcVar3 + 1);\n  *pcVar3 = ((byte)param_2 & 0x3f) + 0x80;\n  return true;\n}\n\n" (function_definition "bool __regparm3 FUN_002337d0(int *param_1,uint param_2)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  char *pcVar3;\n  \n  if (param_2 < 0x80) {\n    pbVar2 = (byte *)*param_1;\n    pbVar1 = (byte *)param_1[1];\n    if (pbVar2 != pbVar1) {\n      *param_1 = (int)(pbVar2 + 1);\n      *pbVar2 = (byte)param_2;\n    }\n    return pbVar2 != pbVar1;\n  }\n  if (param_2 < 0x800) {\n    pcVar3 = (char *)*param_1;\n    if ((uint)(param_1[1] - (int)pcVar3) < 2) {\n      return false;\n    }\n    *param_1 = (int)(pcVar3 + 1);\n    *pcVar3 = (char)(param_2 >> 6) + -0x40;\n  }\n  else {\n    if (param_2 < 0x10000) {\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 3) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0xc) + -0x20;\n    }\n    else {\n      if (0x10ffff < param_2) {\n        return false;\n      }\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 4) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0x12) + -0x10;\n      pcVar3 = (char *)*param_1;\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80;\n    }\n    pcVar3 = (char *)*param_1;\n    *param_1 = (int)(pcVar3 + 1);\n    *pcVar3 = ((byte)(param_2 >> 6) & 0x3f) + 0x80;\n  }\n  pcVar3 = (char *)*param_1;\n  *param_1 = (int)(pcVar3 + 1);\n  *pcVar3 = ((byte)param_2 & 0x3f) + 0x80;\n  return true;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_002337d0(int *param_1,uint param_2)" identifier (parameter_list "(int *param_1,uint param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  byte *pbVar1;\n  byte *pbVar2;\n  char *pcVar3;\n  \n  if (param_2 < 0x80) {\n    pbVar2 = (byte *)*param_1;\n    pbVar1 = (byte *)param_1[1];\n    if (pbVar2 != pbVar1) {\n      *param_1 = (int)(pbVar2 + 1);\n      *pbVar2 = (byte)param_2;\n    }\n    return pbVar2 != pbVar1;\n  }\n  if (param_2 < 0x800) {\n    pcVar3 = (char *)*param_1;\n    if ((uint)(param_1[1] - (int)pcVar3) < 2) {\n      return false;\n    }\n    *param_1 = (int)(pcVar3 + 1);\n    *pcVar3 = (char)(param_2 >> 6) + -0x40;\n  }\n  else {\n    if (param_2 < 0x10000) {\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 3) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0xc) + -0x20;\n    }\n    else {\n      if (0x10ffff < param_2) {\n        return false;\n      }\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 4) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0x12) + -0x10;\n      pcVar3 = (char *)*param_1;\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80;\n    }\n    pcVar3 = (char *)*param_1;\n    *param_1 = (int)(pcVar3 + 1);\n    *pcVar3 = ((byte)(param_2 >> 6) & 0x3f) + 0x80;\n  }\n  pcVar3 = (char *)*param_1;\n  *param_1 = (int)(pcVar3 + 1);\n  *pcVar3 = ((byte)param_2 & 0x3f) + 0x80;\n  return true;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if (param_2 < 0x80) {\n    pbVar2 = (byte *)*param_1;\n    pbVar1 = (byte *)param_1[1];\n    if (pbVar2 != pbVar1) {\n      *param_1 = (int)(pbVar2 + 1);\n      *pbVar2 = (byte)param_2;\n    }\n    return pbVar2 != pbVar1;\n  }" if (parenthesized_expression "(param_2 < 0x80)" ( (binary_expression "param_2 < 0x80" identifier < number_literal) )) (compound_statement "{\n    pbVar2 = (byte *)*param_1;\n    pbVar1 = (byte *)param_1[1];\n    if (pbVar2 != pbVar1) {\n      *param_1 = (int)(pbVar2 + 1);\n      *pbVar2 = (byte)param_2;\n    }\n    return pbVar2 != pbVar1;\n  }" { (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "pbVar1 = (byte *)param_1[1];" (assignment_expression "pbVar1 = (byte *)param_1[1]" identifier = (cast_expression "(byte *)param_1[1]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (if_statement "if (pbVar2 != pbVar1) {\n      *param_1 = (int)(pbVar2 + 1);\n      *pbVar2 = (byte)param_2;\n    }" if (parenthesized_expression "(pbVar2 != pbVar1)" ( (binary_expression "pbVar2 != pbVar1" identifier != identifier) )) (compound_statement "{\n      *param_1 = (int)(pbVar2 + 1);\n      *pbVar2 = (byte)param_2;\n    }" { (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)param_2;" (assignment_expression "*pbVar2 = (byte)param_2" (pointer_expression "*pbVar2" * identifier) = (cast_expression "(byte)param_2" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) })) (return_statement "return pbVar2 != pbVar1;" return (binary_expression "pbVar2 != pbVar1" identifier != identifier) ;) })) (if_statement "if (param_2 < 0x800) {\n    pcVar3 = (char *)*param_1;\n    if ((uint)(param_1[1] - (int)pcVar3) < 2) {\n      return false;\n    }\n    *param_1 = (int)(pcVar3 + 1);\n    *pcVar3 = (char)(param_2 >> 6) + -0x40;\n  }\n  else {\n    if (param_2 < 0x10000) {\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 3) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0xc) + -0x20;\n    }\n    else {\n      if (0x10ffff < param_2) {\n        return false;\n      }\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 4) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0x12) + -0x10;\n      pcVar3 = (char *)*param_1;\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80;\n    }\n    pcVar3 = (char *)*param_1;\n    *param_1 = (int)(pcVar3 + 1);\n    *pcVar3 = ((byte)(param_2 >> 6) & 0x3f) + 0x80;\n  }" if (parenthesized_expression "(param_2 < 0x800)" ( (binary_expression "param_2 < 0x800" identifier < number_literal) )) (compound_statement "{\n    pcVar3 = (char *)*param_1;\n    if ((uint)(param_1[1] - (int)pcVar3) < 2) {\n      return false;\n    }\n    *param_1 = (int)(pcVar3 + 1);\n    *pcVar3 = (char)(param_2 >> 6) + -0x40;\n  }" { (expression_statement "pcVar3 = (char *)*param_1;" (assignment_expression "pcVar3 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if ((uint)(param_1[1] - (int)pcVar3) < 2) {\n      return false;\n    }" if (parenthesized_expression "((uint)(param_1[1] - (int)pcVar3) < 2)" ( (binary_expression "(uint)(param_1[1] - (int)pcVar3) < 2" (call_expression "(uint)(param_1[1] - (int)pcVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[1] - (int)pcVar3)" ( (binary_expression "param_1[1] - (int)pcVar3" (subscript_expression "param_1[1]" identifier [ number_literal ]) - (cast_expression "(int)pcVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) < number_literal) )) (compound_statement "{\n      return false;\n    }" { (return_statement "return false;" return false ;) })) (expression_statement "*param_1 = (int)(pcVar3 + 1);" (assignment_expression "*param_1 = (int)(pcVar3 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pcVar3 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pcVar3 + 1)" ( (binary_expression "pcVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "*pcVar3 = (char)(param_2 >> 6) + -0x40;" (assignment_expression "*pcVar3 = (char)(param_2 >> 6) + -0x40" (pointer_expression "*pcVar3" * identifier) = (binary_expression "(char)(param_2 >> 6) + -0x40" (cast_expression "(char)(param_2 >> 6)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(param_2 >> 6)" ( (binary_expression "param_2 >> 6" identifier >> number_literal) ))) + number_literal)) ;) }) (else_clause "else {\n    if (param_2 < 0x10000) {\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 3) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0xc) + -0x20;\n    }\n    else {\n      if (0x10ffff < param_2) {\n        return false;\n      }\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 4) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0x12) + -0x10;\n      pcVar3 = (char *)*param_1;\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80;\n    }\n    pcVar3 = (char *)*param_1;\n    *param_1 = (int)(pcVar3 + 1);\n    *pcVar3 = ((byte)(param_2 >> 6) & 0x3f) + 0x80;\n  }" else (compound_statement "{\n    if (param_2 < 0x10000) {\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 3) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0xc) + -0x20;\n    }\n    else {\n      if (0x10ffff < param_2) {\n        return false;\n      }\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 4) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0x12) + -0x10;\n      pcVar3 = (char *)*param_1;\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80;\n    }\n    pcVar3 = (char *)*param_1;\n    *param_1 = (int)(pcVar3 + 1);\n    *pcVar3 = ((byte)(param_2 >> 6) & 0x3f) + 0x80;\n  }" { (if_statement "if (param_2 < 0x10000) {\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 3) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0xc) + -0x20;\n    }\n    else {\n      if (0x10ffff < param_2) {\n        return false;\n      }\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 4) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0x12) + -0x10;\n      pcVar3 = (char *)*param_1;\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80;\n    }" if (parenthesized_expression "(param_2 < 0x10000)" ( (binary_expression "param_2 < 0x10000" identifier < number_literal) )) (compound_statement "{\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 3) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0xc) + -0x20;\n    }" { (expression_statement "pcVar3 = (char *)*param_1;" (assignment_expression "pcVar3 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if ((uint)(param_1[1] - (int)pcVar3) < 3) {\n        return false;\n      }" if (parenthesized_expression "((uint)(param_1[1] - (int)pcVar3) < 3)" ( (binary_expression "(uint)(param_1[1] - (int)pcVar3) < 3" (call_expression "(uint)(param_1[1] - (int)pcVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[1] - (int)pcVar3)" ( (binary_expression "param_1[1] - (int)pcVar3" (subscript_expression "param_1[1]" identifier [ number_literal ]) - (cast_expression "(int)pcVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) < number_literal) )) (compound_statement "{\n        return false;\n      }" { (return_statement "return false;" return false ;) })) (expression_statement "*param_1 = (int)(pcVar3 + 1);" (assignment_expression "*param_1 = (int)(pcVar3 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pcVar3 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pcVar3 + 1)" ( (binary_expression "pcVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "*pcVar3 = (char)(param_2 >> 0xc) + -0x20;" (assignment_expression "*pcVar3 = (char)(param_2 >> 0xc) + -0x20" (pointer_expression "*pcVar3" * identifier) = (binary_expression "(char)(param_2 >> 0xc) + -0x20" (cast_expression "(char)(param_2 >> 0xc)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(param_2 >> 0xc)" ( (binary_expression "param_2 >> 0xc" identifier >> number_literal) ))) + number_literal)) ;) }) (else_clause "else {\n      if (0x10ffff < param_2) {\n        return false;\n      }\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 4) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0x12) + -0x10;\n      pcVar3 = (char *)*param_1;\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80;\n    }" else (compound_statement "{\n      if (0x10ffff < param_2) {\n        return false;\n      }\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 4) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0x12) + -0x10;\n      pcVar3 = (char *)*param_1;\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80;\n    }" { (if_statement "if (0x10ffff < param_2) {\n        return false;\n      }" if (parenthesized_expression "(0x10ffff < param_2)" ( (binary_expression "0x10ffff < param_2" number_literal < identifier) )) (compound_statement "{\n        return false;\n      }" { (return_statement "return false;" return false ;) })) (expression_statement "pcVar3 = (char *)*param_1;" (assignment_expression "pcVar3 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if ((uint)(param_1[1] - (int)pcVar3) < 4) {\n        return false;\n      }" if (parenthesized_expression "((uint)(param_1[1] - (int)pcVar3) < 4)" ( (binary_expression "(uint)(param_1[1] - (int)pcVar3) < 4" (call_expression "(uint)(param_1[1] - (int)pcVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[1] - (int)pcVar3)" ( (binary_expression "param_1[1] - (int)pcVar3" (subscript_expression "param_1[1]" identifier [ number_literal ]) - (cast_expression "(int)pcVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) < number_literal) )) (compound_statement "{\n        return false;\n      }" { (return_statement "return false;" return false ;) })) (expression_statement "*param_1 = (int)(pcVar3 + 1);" (assignment_expression "*param_1 = (int)(pcVar3 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pcVar3 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pcVar3 + 1)" ( (binary_expression "pcVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "*pcVar3 = (char)(param_2 >> 0x12) + -0x10;" (assignment_expression "*pcVar3 = (char)(param_2 >> 0x12) + -0x10" (pointer_expression "*pcVar3" * identifier) = (binary_expression "(char)(param_2 >> 0x12) + -0x10" (cast_expression "(char)(param_2 >> 0x12)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(param_2 >> 0x12)" ( (binary_expression "param_2 >> 0x12" identifier >> number_literal) ))) + number_literal)) ;) (expression_statement "pcVar3 = (char *)*param_1;" (assignment_expression "pcVar3 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pcVar3 + 1);" (assignment_expression "*param_1 = (int)(pcVar3 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pcVar3 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pcVar3 + 1)" ( (binary_expression "pcVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "*pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80;" (assignment_expression "*pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80" (pointer_expression "*pcVar3" * identifier) = (binary_expression "((byte)(param_2 >> 0xc) & 0x3f) + 0x80" (parenthesized_expression "((byte)(param_2 >> 0xc) & 0x3f)" ( (binary_expression "(byte)(param_2 >> 0xc) & 0x3f" (call_expression "(byte)(param_2 >> 0xc)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(param_2 >> 0xc)" ( (binary_expression "param_2 >> 0xc" identifier >> number_literal) ))) & number_literal) )) + number_literal)) ;) }))) (expression_statement "pcVar3 = (char *)*param_1;" (assignment_expression "pcVar3 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pcVar3 + 1);" (assignment_expression "*param_1 = (int)(pcVar3 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pcVar3 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pcVar3 + 1)" ( (binary_expression "pcVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "*pcVar3 = ((byte)(param_2 >> 6) & 0x3f) + 0x80;" (assignment_expression "*pcVar3 = ((byte)(param_2 >> 6) & 0x3f) + 0x80" (pointer_expression "*pcVar3" * identifier) = (binary_expression "((byte)(param_2 >> 6) & 0x3f) + 0x80" (parenthesized_expression "((byte)(param_2 >> 6) & 0x3f)" ( (binary_expression "(byte)(param_2 >> 6) & 0x3f" (call_expression "(byte)(param_2 >> 6)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(param_2 >> 6)" ( (binary_expression "param_2 >> 6" identifier >> number_literal) ))) & number_literal) )) + number_literal)) ;) }))) (expression_statement "pcVar3 = (char *)*param_1;" (assignment_expression "pcVar3 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pcVar3 + 1);" (assignment_expression "*param_1 = (int)(pcVar3 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pcVar3 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pcVar3 + 1)" ( (binary_expression "pcVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "*pcVar3 = ((byte)param_2 & 0x3f) + 0x80;" (assignment_expression "*pcVar3 = ((byte)param_2 & 0x3f) + 0x80" (pointer_expression "*pcVar3" * identifier) = (binary_expression "((byte)param_2 & 0x3f) + 0x80" (parenthesized_expression "((byte)param_2 & 0x3f)" ( (binary_expression "(byte)param_2 & 0x3f" (cast_expression "(byte)param_2" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )) + number_literal)) ;) (return_statement "return true;" return true ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) })) (return_statement return (binary_expression IDENT != IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (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 BOOL ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) ))) + LIT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (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 BOOL ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) ))) + LIT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (return_statement return BOOL ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (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 BOOL ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) ))) + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) ))) & LIT) )) + LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) ))) & LIT) )) + LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) )) + LIT)) ;) (return_statement return BOOL ;) })))
(function_definition "bool __regparm3 FUN_002337d0(int *param_1,uint param_2)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  char *pcVar3;\n  \n  if (param_2 < 0x80) {\n    pbVar2 = (byte *)*param_1;\n    pbVar1 = (byte *)param_1[1];\n    if (pbVar2 != pbVar1) {\n      *param_1 = (int)(pbVar2 + 1);\n      *pbVar2 = (byte)param_2;\n    }\n    return pbVar2 != pbVar1;\n  }\n  if (param_2 < 0x800) {\n    pcVar3 = (char *)*param_1;\n    if ((uint)(param_1[1] - (int)pcVar3) < 2) {\n      return false;\n    }\n    *param_1 = (int)(pcVar3 + 1);\n    *pcVar3 = (char)(param_2 >> 6) + -0x40;\n  }\n  else {\n    if (param_2 < 0x10000) {\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 3) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0xc) + -0x20;\n    }\n    else {\n      if (0x10ffff < param_2) {\n        return false;\n      }\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 4) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0x12) + -0x10;\n      pcVar3 = (char *)*param_1;\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80;\n    }\n    pcVar3 = (char *)*param_1;\n    *param_1 = (int)(pcVar3 + 1);\n    *pcVar3 = ((byte)(param_2 >> 6) & 0x3f) + 0x80;\n  }\n  pcVar3 = (char *)*param_1;\n  *param_1 = (int)(pcVar3 + 1);\n  *pcVar3 = ((byte)param_2 & 0x3f) + 0x80;\n  return true;\n}" (primitive_type "bool") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_002337d0(int *param_1,uint param_2)" (identifier "FUN_002337d0") (parameter_list "(int *param_1,uint param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  byte *pbVar1;\n  byte *pbVar2;\n  char *pcVar3;\n  \n  if (param_2 < 0x80) {\n    pbVar2 = (byte *)*param_1;\n    pbVar1 = (byte *)param_1[1];\n    if (pbVar2 != pbVar1) {\n      *param_1 = (int)(pbVar2 + 1);\n      *pbVar2 = (byte)param_2;\n    }\n    return pbVar2 != pbVar1;\n  }\n  if (param_2 < 0x800) {\n    pcVar3 = (char *)*param_1;\n    if ((uint)(param_1[1] - (int)pcVar3) < 2) {\n      return false;\n    }\n    *param_1 = (int)(pcVar3 + 1);\n    *pcVar3 = (char)(param_2 >> 6) + -0x40;\n  }\n  else {\n    if (param_2 < 0x10000) {\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 3) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0xc) + -0x20;\n    }\n    else {\n      if (0x10ffff < param_2) {\n        return false;\n      }\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 4) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0x12) + -0x10;\n      pcVar3 = (char *)*param_1;\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80;\n    }\n    pcVar3 = (char *)*param_1;\n    *param_1 = (int)(pcVar3 + 1);\n    *pcVar3 = ((byte)(param_2 >> 6) & 0x3f) + 0x80;\n  }\n  pcVar3 = (char *)*param_1;\n  *param_1 = (int)(pcVar3 + 1);\n  *pcVar3 = ((byte)param_2 & 0x3f) + 0x80;\n  return true;\n}" ({ "{") (declaration "byte *pbVar1;" (type_identifier "byte") (pointer_declarator "*pbVar1" (* "*") (identifier "pbVar1")) (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (if_statement "if (param_2 < 0x80) {\n    pbVar2 = (byte *)*param_1;\n    pbVar1 = (byte *)param_1[1];\n    if (pbVar2 != pbVar1) {\n      *param_1 = (int)(pbVar2 + 1);\n      *pbVar2 = (byte)param_2;\n    }\n    return pbVar2 != pbVar1;\n  }" (if "if") (parenthesized_expression "(param_2 < 0x80)" (( "(") (binary_expression "param_2 < 0x80" (identifier "param_2") (< "<") (number_literal "0x80")) () ")")) (compound_statement "{\n    pbVar2 = (byte *)*param_1;\n    pbVar1 = (byte *)param_1[1];\n    if (pbVar2 != pbVar1) {\n      *param_1 = (int)(pbVar2 + 1);\n      *pbVar2 = (byte)param_2;\n    }\n    return pbVar2 != pbVar1;\n  }" ({ "{") (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" (identifier "pbVar2") (= "=") (cast_expression "(byte *)*param_1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "pbVar1 = (byte *)param_1[1];" (assignment_expression "pbVar1 = (byte *)param_1[1]" (identifier "pbVar1") (= "=") (cast_expression "(byte *)param_1[1]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if (pbVar2 != pbVar1) {\n      *param_1 = (int)(pbVar2 + 1);\n      *pbVar2 = (byte)param_2;\n    }" (if "if") (parenthesized_expression "(pbVar2 != pbVar1)" (( "(") (binary_expression "pbVar2 != pbVar1" (identifier "pbVar2") (!= "!=") (identifier "pbVar1")) () ")")) (compound_statement "{\n      *param_1 = (int)(pbVar2 + 1);\n      *pbVar2 = (byte)param_2;\n    }" ({ "{") (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pbVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pbVar2 + 1)" (( "(") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pbVar2 = (byte)param_2;" (assignment_expression "*pbVar2 = (byte)param_2" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (= "=") (cast_expression "(byte)param_2" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "param_2"))) (; ";")) (} "}"))) (return_statement "return pbVar2 != pbVar1;" (return "return") (binary_expression "pbVar2 != pbVar1" (identifier "pbVar2") (!= "!=") (identifier "pbVar1")) (; ";")) (} "}"))) (if_statement "if (param_2 < 0x800) {\n    pcVar3 = (char *)*param_1;\n    if ((uint)(param_1[1] - (int)pcVar3) < 2) {\n      return false;\n    }\n    *param_1 = (int)(pcVar3 + 1);\n    *pcVar3 = (char)(param_2 >> 6) + -0x40;\n  }\n  else {\n    if (param_2 < 0x10000) {\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 3) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0xc) + -0x20;\n    }\n    else {\n      if (0x10ffff < param_2) {\n        return false;\n      }\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 4) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0x12) + -0x10;\n      pcVar3 = (char *)*param_1;\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80;\n    }\n    pcVar3 = (char *)*param_1;\n    *param_1 = (int)(pcVar3 + 1);\n    *pcVar3 = ((byte)(param_2 >> 6) & 0x3f) + 0x80;\n  }" (if "if") (parenthesized_expression "(param_2 < 0x800)" (( "(") (binary_expression "param_2 < 0x800" (identifier "param_2") (< "<") (number_literal "0x800")) () ")")) (compound_statement "{\n    pcVar3 = (char *)*param_1;\n    if ((uint)(param_1[1] - (int)pcVar3) < 2) {\n      return false;\n    }\n    *param_1 = (int)(pcVar3 + 1);\n    *pcVar3 = (char)(param_2 >> 6) + -0x40;\n  }" ({ "{") (expression_statement "pcVar3 = (char *)*param_1;" (assignment_expression "pcVar3 = (char *)*param_1" (identifier "pcVar3") (= "=") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if ((uint)(param_1[1] - (int)pcVar3) < 2) {\n      return false;\n    }" (if "if") (parenthesized_expression "((uint)(param_1[1] - (int)pcVar3) < 2)" (( "(") (binary_expression "(uint)(param_1[1] - (int)pcVar3) < 2" (call_expression "(uint)(param_1[1] - (int)pcVar3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_1[1] - (int)pcVar3)" (( "(") (binary_expression "param_1[1] - (int)pcVar3" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (- "-") (cast_expression "(int)pcVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar3"))) () ")"))) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n      return false;\n    }" ({ "{") (return_statement "return false;" (return "return") (false "false") (; ";")) (} "}"))) (expression_statement "*param_1 = (int)(pcVar3 + 1);" (assignment_expression "*param_1 = (int)(pcVar3 + 1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pcVar3 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pcVar3 + 1)" (( "(") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pcVar3 = (char)(param_2 >> 6) + -0x40;" (assignment_expression "*pcVar3 = (char)(param_2 >> 6) + -0x40" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (binary_expression "(char)(param_2 >> 6) + -0x40" (cast_expression "(char)(param_2 >> 6)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(param_2 >> 6)" (( "(") (binary_expression "param_2 >> 6" (identifier "param_2") (>> ">>") (number_literal "6")) () ")"))) (+ "+") (number_literal "-0x40"))) (; ";")) (} "}")) (else_clause "else {\n    if (param_2 < 0x10000) {\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 3) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0xc) + -0x20;\n    }\n    else {\n      if (0x10ffff < param_2) {\n        return false;\n      }\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 4) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0x12) + -0x10;\n      pcVar3 = (char *)*param_1;\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80;\n    }\n    pcVar3 = (char *)*param_1;\n    *param_1 = (int)(pcVar3 + 1);\n    *pcVar3 = ((byte)(param_2 >> 6) & 0x3f) + 0x80;\n  }" (else "else") (compound_statement "{\n    if (param_2 < 0x10000) {\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 3) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0xc) + -0x20;\n    }\n    else {\n      if (0x10ffff < param_2) {\n        return false;\n      }\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 4) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0x12) + -0x10;\n      pcVar3 = (char *)*param_1;\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80;\n    }\n    pcVar3 = (char *)*param_1;\n    *param_1 = (int)(pcVar3 + 1);\n    *pcVar3 = ((byte)(param_2 >> 6) & 0x3f) + 0x80;\n  }" ({ "{") (if_statement "if (param_2 < 0x10000) {\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 3) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0xc) + -0x20;\n    }\n    else {\n      if (0x10ffff < param_2) {\n        return false;\n      }\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 4) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0x12) + -0x10;\n      pcVar3 = (char *)*param_1;\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80;\n    }" (if "if") (parenthesized_expression "(param_2 < 0x10000)" (( "(") (binary_expression "param_2 < 0x10000" (identifier "param_2") (< "<") (number_literal "0x10000")) () ")")) (compound_statement "{\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 3) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0xc) + -0x20;\n    }" ({ "{") (expression_statement "pcVar3 = (char *)*param_1;" (assignment_expression "pcVar3 = (char *)*param_1" (identifier "pcVar3") (= "=") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if ((uint)(param_1[1] - (int)pcVar3) < 3) {\n        return false;\n      }" (if "if") (parenthesized_expression "((uint)(param_1[1] - (int)pcVar3) < 3)" (( "(") (binary_expression "(uint)(param_1[1] - (int)pcVar3) < 3" (call_expression "(uint)(param_1[1] - (int)pcVar3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_1[1] - (int)pcVar3)" (( "(") (binary_expression "param_1[1] - (int)pcVar3" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (- "-") (cast_expression "(int)pcVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar3"))) () ")"))) (< "<") (number_literal "3")) () ")")) (compound_statement "{\n        return false;\n      }" ({ "{") (return_statement "return false;" (return "return") (false "false") (; ";")) (} "}"))) (expression_statement "*param_1 = (int)(pcVar3 + 1);" (assignment_expression "*param_1 = (int)(pcVar3 + 1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pcVar3 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pcVar3 + 1)" (( "(") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pcVar3 = (char)(param_2 >> 0xc) + -0x20;" (assignment_expression "*pcVar3 = (char)(param_2 >> 0xc) + -0x20" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (binary_expression "(char)(param_2 >> 0xc) + -0x20" (cast_expression "(char)(param_2 >> 0xc)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(param_2 >> 0xc)" (( "(") (binary_expression "param_2 >> 0xc" (identifier "param_2") (>> ">>") (number_literal "0xc")) () ")"))) (+ "+") (number_literal "-0x20"))) (; ";")) (} "}")) (else_clause "else {\n      if (0x10ffff < param_2) {\n        return false;\n      }\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 4) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0x12) + -0x10;\n      pcVar3 = (char *)*param_1;\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80;\n    }" (else "else") (compound_statement "{\n      if (0x10ffff < param_2) {\n        return false;\n      }\n      pcVar3 = (char *)*param_1;\n      if ((uint)(param_1[1] - (int)pcVar3) < 4) {\n        return false;\n      }\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = (char)(param_2 >> 0x12) + -0x10;\n      pcVar3 = (char *)*param_1;\n      *param_1 = (int)(pcVar3 + 1);\n      *pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80;\n    }" ({ "{") (if_statement "if (0x10ffff < param_2) {\n        return false;\n      }" (if "if") (parenthesized_expression "(0x10ffff < param_2)" (( "(") (binary_expression "0x10ffff < param_2" (number_literal "0x10ffff") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n        return false;\n      }" ({ "{") (return_statement "return false;" (return "return") (false "false") (; ";")) (} "}"))) (expression_statement "pcVar3 = (char *)*param_1;" (assignment_expression "pcVar3 = (char *)*param_1" (identifier "pcVar3") (= "=") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if ((uint)(param_1[1] - (int)pcVar3) < 4) {\n        return false;\n      }" (if "if") (parenthesized_expression "((uint)(param_1[1] - (int)pcVar3) < 4)" (( "(") (binary_expression "(uint)(param_1[1] - (int)pcVar3) < 4" (call_expression "(uint)(param_1[1] - (int)pcVar3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_1[1] - (int)pcVar3)" (( "(") (binary_expression "param_1[1] - (int)pcVar3" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (- "-") (cast_expression "(int)pcVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar3"))) () ")"))) (< "<") (number_literal "4")) () ")")) (compound_statement "{\n        return false;\n      }" ({ "{") (return_statement "return false;" (return "return") (false "false") (; ";")) (} "}"))) (expression_statement "*param_1 = (int)(pcVar3 + 1);" (assignment_expression "*param_1 = (int)(pcVar3 + 1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pcVar3 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pcVar3 + 1)" (( "(") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pcVar3 = (char)(param_2 >> 0x12) + -0x10;" (assignment_expression "*pcVar3 = (char)(param_2 >> 0x12) + -0x10" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (binary_expression "(char)(param_2 >> 0x12) + -0x10" (cast_expression "(char)(param_2 >> 0x12)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(param_2 >> 0x12)" (( "(") (binary_expression "param_2 >> 0x12" (identifier "param_2") (>> ">>") (number_literal "0x12")) () ")"))) (+ "+") (number_literal "-0x10"))) (; ";")) (expression_statement "pcVar3 = (char *)*param_1;" (assignment_expression "pcVar3 = (char *)*param_1" (identifier "pcVar3") (= "=") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "*param_1 = (int)(pcVar3 + 1);" (assignment_expression "*param_1 = (int)(pcVar3 + 1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pcVar3 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pcVar3 + 1)" (( "(") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80;" (assignment_expression "*pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (binary_expression "((byte)(param_2 >> 0xc) & 0x3f) + 0x80" (parenthesized_expression "((byte)(param_2 >> 0xc) & 0x3f)" (( "(") (binary_expression "(byte)(param_2 >> 0xc) & 0x3f" (call_expression "(byte)(param_2 >> 0xc)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(param_2 >> 0xc)" (( "(") (binary_expression "param_2 >> 0xc" (identifier "param_2") (>> ">>") (number_literal "0xc")) () ")"))) (& "&") (number_literal "0x3f")) () ")")) (+ "+") (number_literal "0x80"))) (; ";")) (} "}")))) (expression_statement "pcVar3 = (char *)*param_1;" (assignment_expression "pcVar3 = (char *)*param_1" (identifier "pcVar3") (= "=") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "*param_1 = (int)(pcVar3 + 1);" (assignment_expression "*param_1 = (int)(pcVar3 + 1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pcVar3 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pcVar3 + 1)" (( "(") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pcVar3 = ((byte)(param_2 >> 6) & 0x3f) + 0x80;" (assignment_expression "*pcVar3 = ((byte)(param_2 >> 6) & 0x3f) + 0x80" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (binary_expression "((byte)(param_2 >> 6) & 0x3f) + 0x80" (parenthesized_expression "((byte)(param_2 >> 6) & 0x3f)" (( "(") (binary_expression "(byte)(param_2 >> 6) & 0x3f" (call_expression "(byte)(param_2 >> 6)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(param_2 >> 6)" (( "(") (binary_expression "param_2 >> 6" (identifier "param_2") (>> ">>") (number_literal "6")) () ")"))) (& "&") (number_literal "0x3f")) () ")")) (+ "+") (number_literal "0x80"))) (; ";")) (} "}")))) (expression_statement "pcVar3 = (char *)*param_1;" (assignment_expression "pcVar3 = (char *)*param_1" (identifier "pcVar3") (= "=") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "*param_1 = (int)(pcVar3 + 1);" (assignment_expression "*param_1 = (int)(pcVar3 + 1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pcVar3 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pcVar3 + 1)" (( "(") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pcVar3 = ((byte)param_2 & 0x3f) + 0x80;" (assignment_expression "*pcVar3 = ((byte)param_2 & 0x3f) + 0x80" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (binary_expression "((byte)param_2 & 0x3f) + 0x80" (parenthesized_expression "((byte)param_2 & 0x3f)" (( "(") (binary_expression "(byte)param_2 & 0x3f" (cast_expression "(byte)param_2" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "param_2")) (& "&") (number_literal "0x3f")) () ")")) (+ "+") (number_literal "0x80"))) (; ";")) (return_statement "return true;" (return "return") (true "true") (; ";")) (} "}")))

/* std::(anonymous namespace)::write_utf8_code_point(std::(anonymous namespace)::range<char, true>&,
   char32_t) */

bool __regparm3 std::(anonymous_namespace)::var_1(var_2 *var_3,wchar32 param_2)

{
  type_1 *var_5;
  type_1 *var_4;
  char *var_6;
  
  if ((type_2)param_2 < 0x80) {
    var_4 = *(type_1 **)var_3;
    var_5 = *(type_1 **)(var_3 + 4);
    if (var_4 != var_5) {
      *(type_1 **)var_3 = var_4 + 1;
      *var_4 = (type_1)param_2;
    }
    return var_4 != var_5;
  }
  if ((type_2)param_2 < 0x800) {
    var_6 = *(char **)var_3;
    if ((type_2)(*(int *)(var_3 + 4) - (int)var_6) < 2) {
      return false;
    }
    *(char **)var_3 = var_6 + 1;
    *var_6 = (char)((type_2)param_2 >> 6) + -0x40;
  }
  else {
    if ((type_2)param_2 < 0x10000) {
      var_6 = *(char **)var_3;
      if ((type_2)(*(int *)(var_3 + 4) - (int)var_6) < 3) {
        return false;
      }
      *(char **)var_3 = var_6 + 1;
      *var_6 = (char)((type_2)param_2 >> 0xc) + -0x20;
    }
    else {
      if (0x10ffff < (type_2)param_2) {
        return false;
      }
      var_6 = *(char **)var_3;
      if ((type_2)(*(int *)(var_3 + 4) - (int)var_6) < 4) {
        return false;
      }
      *(char **)var_3 = var_6 + 1;
      *var_6 = (char)((type_2)param_2 >> 0x12) + -0x10;
      var_6 = *(char **)var_3;
      *(char **)var_3 = var_6 + 1;
      *var_6 = ((type_1)((type_2)param_2 >> 0xc) & 0x3f) + 0x80;
    }
    var_6 = *(char **)var_3;
    *(char **)var_3 = var_6 + 1;
    *var_6 = ((type_1)((type_2)param_2 >> 6) & 0x3f) + 0x80;
  }
  var_6 = *(char **)var_3;
  *(char **)var_3 = var_6 + 1;
  *var_6 = ((type_1)param_2 & 0x3f) + 0x80;
  return true;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))))) (return_statement (binary_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) 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 (false)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) 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 (false)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (return_statement (false)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) 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 (false)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal))) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal))) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))) (return_statement (true)))))

bool __regparm3 MASKED(int *param_1,uint param_2)

{
  byte *pbVar1;
  byte *pbVar2;
  char *pcVar3;
  
  if (param_2 < 0x80) {
    pbVar2 = (byte *)*param_1;
    pbVar1 = (byte *)param_1[1];
    if (pbVar2 != pbVar1) {
      *param_1 = (int)(pbVar2 + 1);
      *pbVar2 = (byte)param_2;
    }
    return pbVar2 != pbVar1;
  }
  if (param_2 < 0x800) {
    pcVar3 = (char *)*param_1;
    if ((uint)(param_1[1] - (int)pcVar3) < 2) {
      return false;
    }
    *param_1 = (int)(pcVar3 + 1);
    *pcVar3 = (char)(param_2 >> 6) + -0x40;
  }
  else {
    if (param_2 < 0x10000) {
      pcVar3 = (char *)*param_1;
      if ((uint)(param_1[1] - (int)pcVar3) < 3) {
        return false;
      }
      *param_1 = (int)(pcVar3 + 1);
      *pcVar3 = (char)(param_2 >> 0xc) + -0x20;
    }
    else {
      if (0x10ffff < param_2) {
        return false;
      }
      pcVar3 = (char *)*param_1;
      if ((uint)(param_1[1] - (int)pcVar3) < 4) {
        return false;
      }
      *param_1 = (int)(pcVar3 + 1);
      *pcVar3 = (char)(param_2 >> 0x12) + -0x10;
      pcVar3 = (char *)*param_1;
      *param_1 = (int)(pcVar3 + 1);
      *pcVar3 = ((byte)(param_2 >> 0xc) & 0x3f) + 0x80;
    }
    pcVar3 = (char *)*param_1;
    *param_1 = (int)(pcVar3 + 1);
    *pcVar3 = ((byte)(param_2 >> 6) & 0x3f) + 0x80;
  }
  pcVar3 = (char *)*param_1;
  *param_1 = (int)(pcVar3 + 1);
  *pcVar3 = ((byte)param_2 & 0x3f) + 0x80;
  return true;
}

