
size_t __regparm3 UTF8ToUTF16(uchar *utf8,wchar_t *utf16)

{
  byte *pbVar1;
  byte bVar2;
  wchar_t *pwVar3;
  wchar_t *pwVar4;
  uchar *puVar5;
  wchar_t wVar6;
  
  bVar2 = *utf8;
  pwVar4 = utf16;
  if (utf16 != (wchar_t *)0x0) {
    while (pwVar3 = pwVar4, bVar2 != 0) {
      while (wVar6 = (wchar_t)bVar2, (char)bVar2 < '\0') {
        if ((bVar2 & 0xe0) == 0xc0) {
          puVar5 = utf8 + 1;
          wVar6 = (wVar6 & 0x1fU) << 6;
          *pwVar3 = wVar6;
          bVar2 = utf8[1];
        }
        else {
          if ((bVar2 & 0xf0) != 0xe0) {
            return 0;
          }
          *pwVar3 = wVar6 << 0xc;
          if ((utf8[1] & 0xc0) != 0x80) {
            return 0;
          }
          puVar5 = utf8 + 2;
          wVar6 = wVar6 << 0xc | (utf8[1] & 0x3f) << 6;
          *pwVar3 = wVar6;
          bVar2 = utf8[2];
        }
        if ((bVar2 & 0xc0) != 0x80) {
          return 0;
        }
        pwVar4 = pwVar3 + 1;
        *pwVar3 = wVar6 | bVar2 & 0x3f;
        utf8 = puVar5 + 1;
        bVar2 = puVar5[1];
        pwVar3 = pwVar4;
        if (bVar2 == 0) goto LAB_0023411a;
      }
      *pwVar3 = wVar6;
      bVar2 = utf8[1];
      utf8 = utf8 + 1;
      pwVar4 = pwVar3 + 1;
    }
LAB_0023411a:
    *pwVar4 = L'\0';
    return (int)pwVar4 + (4 - (int)utf16) >> 2;
  }
  puVar5 = utf8;
  if (bVar2 == 0) {
    return 0;
  }
  do {
    if ((char)bVar2 < '\0') {
      if ((bVar2 & 0xe0) == 0xc0) {
        pbVar1 = puVar5 + 1;
        puVar5 = puVar5 + 1;
        if ((*pbVar1 & 0xc0) != 0x80) {
          return 0;
        }
        goto LAB_00234160;
      }
      if ((bVar2 & 0xf0) != 0xe0) {
        return 0;
      }
      if ((puVar5[1] & 0xc0) != 0x80) {
        return 0;
      }
      if ((puVar5[2] & 0xc0) != 0x80) {
        return 0;
      }
      bVar2 = puVar5[3];
      puVar5 = puVar5 + 3;
    }
    else {
LAB_00234160:
      bVar2 = puVar5[1];
      puVar5 = puVar5 + 1;
    }
    if (bVar2 == 0) {
      return (int)puVar5 - (int)utf8;
    }
  } while( true );
}



int __regparm3 FUN_00234080(byte *param_1,uint *param_2)

{
  byte *pbVar1;
  byte bVar2;
  uint *puVar3;
  uint *puVar4;
  byte *pbVar5;
  uint uVar6;
  
  bVar2 = *param_1;
  puVar4 = param_2;
  if (param_2 != (uint *)0x0) {
    while (puVar3 = puVar4, bVar2 != 0) {
      while (uVar6 = (uint)bVar2, (char)bVar2 < '\0') {
        if ((bVar2 & 0xe0) == 0xc0) {
          pbVar5 = param_1 + 1;
          uVar6 = (uVar6 & 0x1f) << 6;
          *puVar3 = uVar6;
          bVar2 = param_1[1];
        }
        else {
          if ((bVar2 & 0xf0) != 0xe0) {
            return 0;
          }
          *puVar3 = uVar6 << 0xc;
          if ((param_1[1] & 0xc0) != 0x80) {
            return 0;
          }
          pbVar5 = param_1 + 2;
          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;
          *puVar3 = uVar6;
          bVar2 = param_1[2];
        }
        if ((bVar2 & 0xc0) != 0x80) {
          return 0;
        }
        puVar4 = puVar3 + 1;
        *puVar3 = uVar6 | bVar2 & 0x3f;
        param_1 = pbVar5 + 1;
        bVar2 = pbVar5[1];
        puVar3 = puVar4;
        if (bVar2 == 0) goto LAB_0023411a;
      }
      *puVar3 = uVar6;
      bVar2 = param_1[1];
      param_1 = param_1 + 1;
      puVar4 = puVar3 + 1;
    }
LAB_0023411a:
    *puVar4 = 0;
    return (int)puVar4 + (4 - (int)param_2) >> 2;
  }
  pbVar5 = param_1;
  if (bVar2 == 0) {
    return 0;
  }
  do {
    if ((char)bVar2 < '\0') {
      if ((bVar2 & 0xe0) == 0xc0) {
        pbVar1 = pbVar5 + 1;
        pbVar5 = pbVar5 + 1;
        if ((*pbVar1 & 0xc0) != 0x80) {
          return 0;
        }
        goto LAB_00234160;
      }
      if ((bVar2 & 0xf0) != 0xe0) {
        return 0;
      }
      if ((pbVar5[1] & 0xc0) != 0x80) {
        return 0;
      }
      if ((pbVar5[2] & 0xc0) != 0x80) {
        return 0;
      }
      bVar2 = pbVar5[3];
      pbVar5 = pbVar5 + 3;
    }
    else {
LAB_00234160:
      bVar2 = pbVar5[1];
      pbVar5 = pbVar5 + 1;
    }
    if (bVar2 == 0) {
      return (int)pbVar5 - (int)param_1;
    }
  } while( true );
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
MOVZX ECX,byte ptr [EAX]
TEST EDX,EDX
JZ 0x00234158
MOV EBP,EDX
MOV EBX,EDX
TEST CL,CL
JNZ 0x002340b2
JMP 0x0023411a
MOV ECX,EAX
MOV dword ptr [EBX],ESI
ADD EBX,0x4
LEA EAX,[ECX + 0x1]
MOVZX ECX,byte ptr [ECX + 0x1]
TEST CL,CL
JZ 0x0023411a
TEST CL,CL
MOVZX ESI,CL
JNS 0x002340a0
MOV EDI,ECX
AND EDI,0xffffffe0
MOV EDX,EDI
CMP DL,0xc0
JZ 0x00234130
AND ECX,0xfffffff0
CMP CL,0xe0
JNZ 0x0023414e
SHL ESI,0xc
MOV dword ptr [EBX],ESI
MOVZX EDI,byte ptr [EAX + 0x1]
MOV ECX,EDI
AND ECX,0xffffffc0
CMP CL,0x80
JNZ 0x0023414e
LEA ECX,[EAX + 0x2]
SHL EDI,0x6
AND EDI,0xfc0
OR ESI,EDI
MOV dword ptr [EBX],ESI
MOVZX EAX,byte ptr [EAX + 0x2]
MOV EDI,EAX
AND EDI,0xffffffc0
MOV EDX,EDI
CMP DL,0x80
JNZ 0x0023414e
AND EAX,0x3f
ADD EBX,0x4
OR ESI,EAX
MOV dword ptr [EBX + -0x4],ESI
LEA EAX,[ECX + 0x1]
MOVZX ECX,byte ptr [ECX + 0x1]
TEST CL,CL
JNZ 0x002340b2
LEA EAX,[EBX + 0x4]
MOV dword ptr [EBX],0x0
POP EBX
SUB EAX,EBP
POP ESI
SAR EAX,0x2
POP EDI
POP EBP
RET
LEA ECX,[EAX + 0x1]
SHL ESI,0x6
AND ESI,0x7c0
MOV dword ptr [EBX],ESI
MOVZX EAX,byte ptr [EAX + 0x1]
MOV EDI,EAX
AND EDI,0xffffffc0
MOV EDX,EDI
CMP DL,0x80
JZ 0x00234104
POP EBX
XOR EAX,EAX
POP ESI
POP EDI
POP EBP
RET
MOV EDI,EAX
TEST CL,CL
JNZ 0x0023416b
JMP 0x0023414e
MOVZX ECX,byte ptr [EBX + 0x1]
LEA EDI,[EBX + 0x1]
TEST CL,CL
JZ 0x002341ab
TEST CL,CL
MOV EBX,EDI
JNS 0x00234160
MOV ESI,ECX
AND ESI,0xffffffe0
MOV EDX,ESI
CMP DL,0xc0
JZ 0x002341c0
AND ECX,0xfffffff0
CMP CL,0xe0
JNZ 0x0023414e
MOVZX ECX,byte ptr [EDI + 0x1]
AND ECX,0xffffffc0
CMP CL,0x80
JNZ 0x0023414e
MOVZX EDX,byte ptr [EDI + 0x2]
ADD EBX,0x2
AND EDX,0xffffffc0
CMP DL,0x80
JNZ 0x0023414e
MOVZX ECX,byte ptr [EBX + 0x1]
LEA EDI,[EBX + 0x1]
TEST CL,CL
JNZ 0x0023416b
MOV EDX,EDI
POP EBX
SUB EDX,EAX
POP ESI
MOV EAX,EDX
POP EDI
POP EBP
RET
MOVZX EDX,byte ptr [EDI + 0x1]
ADD EBX,0x1
AND EDX,0xffffffc0
CMP DL,0x80
JZ 0x00234160
JMP 0x0023414e
(translation_unit "int __regparm3 FUN_00234080(byte *param_1,uint *param_2)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  uint *puVar3;\n  uint *puVar4;\n  byte *pbVar5;\n  uint uVar6;\n  \n  bVar2 = *param_1;\n  puVar4 = param_2;\n  if (param_2 != (uint *)0x0) {\n    while (puVar3 = puVar4, bVar2 != 0) {\n      while (uVar6 = (uint)bVar2, (char)bVar2 < '\0') {\n        if ((bVar2 & 0xe0) == 0xc0) {\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar4 = puVar3 + 1;\n        *puVar3 = uVar6 | bVar2 & 0x3f;\n        param_1 = pbVar5 + 1;\n        bVar2 = pbVar5[1];\n        puVar3 = puVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }\n      *puVar3 = uVar6;\n      bVar2 = param_1[1];\n      param_1 = param_1 + 1;\n      puVar4 = puVar3 + 1;\n    }\nLAB_0023411a:\n    *puVar4 = 0;\n    return (int)puVar4 + (4 - (int)param_2) >> 2;\n  }\n  pbVar5 = param_1;\n  if (bVar2 == 0) {\n    return 0;\n  }\n  do {\n    if ((char)bVar2 < '\0') {\n      if ((bVar2 & 0xe0) == 0xc0) {\n        pbVar1 = pbVar5 + 1;\n        pbVar5 = pbVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }\n      if ((bVar2 & 0xf0) != 0xe0) {\n        return 0;\n      }\n      if ((pbVar5[1] & 0xc0) != 0x80) {\n        return 0;\n      }\n      if ((pbVar5[2] & 0xc0) != 0x80) {\n        return 0;\n      }\n      bVar2 = pbVar5[3];\n      pbVar5 = pbVar5 + 3;\n    }\n    else {\nLAB_00234160:\n      bVar2 = pbVar5[1];\n      pbVar5 = pbVar5 + 1;\n    }\n    if (bVar2 == 0) {\n      return (int)pbVar5 - (int)param_1;\n    }\n  } while( true );\n}\n\n" (function_definition "int __regparm3 FUN_00234080(byte *param_1,uint *param_2)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  uint *puVar3;\n  uint *puVar4;\n  byte *pbVar5;\n  uint uVar6;\n  \n  bVar2 = *param_1;\n  puVar4 = param_2;\n  if (param_2 != (uint *)0x0) {\n    while (puVar3 = puVar4, bVar2 != 0) {\n      while (uVar6 = (uint)bVar2, (char)bVar2 < '\0') {\n        if ((bVar2 & 0xe0) == 0xc0) {\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar4 = puVar3 + 1;\n        *puVar3 = uVar6 | bVar2 & 0x3f;\n        param_1 = pbVar5 + 1;\n        bVar2 = pbVar5[1];\n        puVar3 = puVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }\n      *puVar3 = uVar6;\n      bVar2 = param_1[1];\n      param_1 = param_1 + 1;\n      puVar4 = puVar3 + 1;\n    }\nLAB_0023411a:\n    *puVar4 = 0;\n    return (int)puVar4 + (4 - (int)param_2) >> 2;\n  }\n  pbVar5 = param_1;\n  if (bVar2 == 0) {\n    return 0;\n  }\n  do {\n    if ((char)bVar2 < '\0') {\n      if ((bVar2 & 0xe0) == 0xc0) {\n        pbVar1 = pbVar5 + 1;\n        pbVar5 = pbVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }\n      if ((bVar2 & 0xf0) != 0xe0) {\n        return 0;\n      }\n      if ((pbVar5[1] & 0xc0) != 0x80) {\n        return 0;\n      }\n      if ((pbVar5[2] & 0xc0) != 0x80) {\n        return 0;\n      }\n      bVar2 = pbVar5[3];\n      pbVar5 = pbVar5 + 3;\n    }\n    else {\nLAB_00234160:\n      bVar2 = pbVar5[1];\n      pbVar5 = pbVar5 + 1;\n    }\n    if (bVar2 == 0) {\n      return (int)pbVar5 - (int)param_1;\n    }\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00234080(byte *param_1,uint *param_2)" identifier (parameter_list "(byte *param_1,uint *param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  byte *pbVar1;\n  byte bVar2;\n  uint *puVar3;\n  uint *puVar4;\n  byte *pbVar5;\n  uint uVar6;\n  \n  bVar2 = *param_1;\n  puVar4 = param_2;\n  if (param_2 != (uint *)0x0) {\n    while (puVar3 = puVar4, bVar2 != 0) {\n      while (uVar6 = (uint)bVar2, (char)bVar2 < '\0') {\n        if ((bVar2 & 0xe0) == 0xc0) {\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar4 = puVar3 + 1;\n        *puVar3 = uVar6 | bVar2 & 0x3f;\n        param_1 = pbVar5 + 1;\n        bVar2 = pbVar5[1];\n        puVar3 = puVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }\n      *puVar3 = uVar6;\n      bVar2 = param_1[1];\n      param_1 = param_1 + 1;\n      puVar4 = puVar3 + 1;\n    }\nLAB_0023411a:\n    *puVar4 = 0;\n    return (int)puVar4 + (4 - (int)param_2) >> 2;\n  }\n  pbVar5 = param_1;\n  if (bVar2 == 0) {\n    return 0;\n  }\n  do {\n    if ((char)bVar2 < '\0') {\n      if ((bVar2 & 0xe0) == 0xc0) {\n        pbVar1 = pbVar5 + 1;\n        pbVar5 = pbVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }\n      if ((bVar2 & 0xf0) != 0xe0) {\n        return 0;\n      }\n      if ((pbVar5[1] & 0xc0) != 0x80) {\n        return 0;\n      }\n      if ((pbVar5[2] & 0xc0) != 0x80) {\n        return 0;\n      }\n      bVar2 = pbVar5[3];\n      pbVar5 = pbVar5 + 3;\n    }\n    else {\nLAB_00234160:\n      bVar2 = pbVar5[1];\n      pbVar5 = pbVar5 + 1;\n    }\n    if (bVar2 == 0) {\n      return (int)pbVar5 - (int)param_1;\n    }\n  } while( true );\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (expression_statement "bVar2 = *param_1;" (assignment_expression "bVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "puVar4 = param_2;" (assignment_expression "puVar4 = param_2" identifier = identifier) ;) (if_statement "if (param_2 != (uint *)0x0) {\n    while (puVar3 = puVar4, bVar2 != 0) {\n      while (uVar6 = (uint)bVar2, (char)bVar2 < '\0') {\n        if ((bVar2 & 0xe0) == 0xc0) {\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar4 = puVar3 + 1;\n        *puVar3 = uVar6 | bVar2 & 0x3f;\n        param_1 = pbVar5 + 1;\n        bVar2 = pbVar5[1];\n        puVar3 = puVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }\n      *puVar3 = uVar6;\n      bVar2 = param_1[1];\n      param_1 = param_1 + 1;\n      puVar4 = puVar3 + 1;\n    }\nLAB_0023411a:\n    *puVar4 = 0;\n    return (int)puVar4 + (4 - (int)param_2) >> 2;\n  }" if (parenthesized_expression "(param_2 != (uint *)0x0)" ( (binary_expression "param_2 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    while (puVar3 = puVar4, bVar2 != 0) {\n      while (uVar6 = (uint)bVar2, (char)bVar2 < '\0') {\n        if ((bVar2 & 0xe0) == 0xc0) {\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar4 = puVar3 + 1;\n        *puVar3 = uVar6 | bVar2 & 0x3f;\n        param_1 = pbVar5 + 1;\n        bVar2 = pbVar5[1];\n        puVar3 = puVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }\n      *puVar3 = uVar6;\n      bVar2 = param_1[1];\n      param_1 = param_1 + 1;\n      puVar4 = puVar3 + 1;\n    }\nLAB_0023411a:\n    *puVar4 = 0;\n    return (int)puVar4 + (4 - (int)param_2) >> 2;\n  }" { (while_statement "while (puVar3 = puVar4, bVar2 != 0) {\n      while (uVar6 = (uint)bVar2, (char)bVar2 < '\0') {\n        if ((bVar2 & 0xe0) == 0xc0) {\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar4 = puVar3 + 1;\n        *puVar3 = uVar6 | bVar2 & 0x3f;\n        param_1 = pbVar5 + 1;\n        bVar2 = pbVar5[1];\n        puVar3 = puVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }\n      *puVar3 = uVar6;\n      bVar2 = param_1[1];\n      param_1 = param_1 + 1;\n      puVar4 = puVar3 + 1;\n    }" while (parenthesized_expression "(puVar3 = puVar4, bVar2 != 0)" ( (comma_expression "puVar3 = puVar4, bVar2 != 0" (assignment_expression "puVar3 = puVar4" identifier = identifier) , (binary_expression "bVar2 != 0" identifier != number_literal)) )) (compound_statement "{\n      while (uVar6 = (uint)bVar2, (char)bVar2 < '\0') {\n        if ((bVar2 & 0xe0) == 0xc0) {\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar4 = puVar3 + 1;\n        *puVar3 = uVar6 | bVar2 & 0x3f;\n        param_1 = pbVar5 + 1;\n        bVar2 = pbVar5[1];\n        puVar3 = puVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }\n      *puVar3 = uVar6;\n      bVar2 = param_1[1];\n      param_1 = param_1 + 1;\n      puVar4 = puVar3 + 1;\n    }" { (while_statement "while (uVar6 = (uint)bVar2, (char)bVar2 < '\0') {\n        if ((bVar2 & 0xe0) == 0xc0) {\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar4 = puVar3 + 1;\n        *puVar3 = uVar6 | bVar2 & 0x3f;\n        param_1 = pbVar5 + 1;\n        bVar2 = pbVar5[1];\n        puVar3 = puVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }" while (parenthesized_expression "(uVar6 = (uint)bVar2, (char)bVar2 < '\0')" ( (comma_expression "uVar6 = (uint)bVar2, (char)bVar2 < '\0'" (assignment_expression "uVar6 = (uint)bVar2" identifier = (cast_expression "(uint)bVar2" ( (type_descriptor "uint" type_identifier) ) identifier)) , (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence '))) )) (compound_statement "{\n        if ((bVar2 & 0xe0) == 0xc0) {\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar4 = puVar3 + 1;\n        *puVar3 = uVar6 | bVar2 & 0x3f;\n        param_1 = pbVar5 + 1;\n        bVar2 = pbVar5[1];\n        puVar3 = puVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }" { (if_statement "if ((bVar2 & 0xe0) == 0xc0) {\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }" if (parenthesized_expression "((bVar2 & 0xe0) == 0xc0)" ( (binary_expression "(bVar2 & 0xe0) == 0xc0" (parenthesized_expression "(bVar2 & 0xe0)" ( (binary_expression "bVar2 & 0xe0" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }" { (expression_statement "pbVar5 = param_1 + 1;" (assignment_expression "pbVar5 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "uVar6 = (uVar6 & 0x1f) << 6;" (assignment_expression "uVar6 = (uVar6 & 0x1f) << 6" identifier = (binary_expression "(uVar6 & 0x1f) << 6" (parenthesized_expression "(uVar6 & 0x1f)" ( (binary_expression "uVar6 & 0x1f" identifier & number_literal) )) << number_literal)) ;) (expression_statement "*puVar3 = uVar6;" (assignment_expression "*puVar3 = uVar6" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "bVar2 = param_1[1];" (assignment_expression "bVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }" else (compound_statement "{\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }" { (if_statement "if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }" if (parenthesized_expression "((bVar2 & 0xf0) != 0xe0)" ( (binary_expression "(bVar2 & 0xf0) != 0xe0" (parenthesized_expression "(bVar2 & 0xf0)" ( (binary_expression "bVar2 & 0xf0" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n            return 0;\n          }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*puVar3 = uVar6 << 0xc;" (assignment_expression "*puVar3 = uVar6 << 0xc" (pointer_expression "*puVar3" * identifier) = (binary_expression "uVar6 << 0xc" identifier << number_literal)) ;) (if_statement "if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }" if (parenthesized_expression "((param_1[1] & 0xc0) != 0x80)" ( (binary_expression "(param_1[1] & 0xc0) != 0x80" (parenthesized_expression "(param_1[1] & 0xc0)" ( (binary_expression "param_1[1] & 0xc0" (subscript_expression "param_1[1]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n            return 0;\n          }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pbVar5 = param_1 + 2;" (assignment_expression "pbVar5 = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (expression_statement "uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;" (assignment_expression "uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6" identifier = (binary_expression "uVar6 << 0xc | (param_1[1] & 0x3f) << 6" (binary_expression "uVar6 << 0xc" identifier << number_literal) | (binary_expression "(param_1[1] & 0x3f) << 6" (parenthesized_expression "(param_1[1] & 0x3f)" ( (binary_expression "param_1[1] & 0x3f" (subscript_expression "param_1[1]" identifier [ number_literal ]) & number_literal) )) << number_literal))) ;) (expression_statement "*puVar3 = uVar6;" (assignment_expression "*puVar3 = uVar6" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "bVar2 = param_1[2];" (assignment_expression "bVar2 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) }))) (if_statement "if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }" if (parenthesized_expression "((bVar2 & 0xc0) != 0x80)" ( (binary_expression "(bVar2 & 0xc0) != 0x80" (parenthesized_expression "(bVar2 & 0xc0)" ( (binary_expression "bVar2 & 0xc0" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "puVar4 = puVar3 + 1;" (assignment_expression "puVar4 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (expression_statement "*puVar3 = uVar6 | bVar2 & 0x3f;" (assignment_expression "*puVar3 = uVar6 | bVar2 & 0x3f" (pointer_expression "*puVar3" * identifier) = (binary_expression "uVar6 | bVar2 & 0x3f" identifier | (binary_expression "bVar2 & 0x3f" identifier & number_literal))) ;) (expression_statement "param_1 = pbVar5 + 1;" (assignment_expression "param_1 = pbVar5 + 1" identifier = (binary_expression "pbVar5 + 1" identifier + number_literal)) ;) (expression_statement "bVar2 = pbVar5[1];" (assignment_expression "bVar2 = pbVar5[1]" identifier = (subscript_expression "pbVar5[1]" identifier [ number_literal ])) ;) (expression_statement "puVar3 = puVar4;" (assignment_expression "puVar3 = puVar4" identifier = identifier) ;) (if_statement "if (bVar2 == 0) goto LAB_0023411a;" if (parenthesized_expression "(bVar2 == 0)" ( (binary_expression "bVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0023411a;" goto statement_identifier ;)) })) (expression_statement "*puVar3 = uVar6;" (assignment_expression "*puVar3 = uVar6" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "bVar2 = param_1[1];" (assignment_expression "bVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "puVar4 = puVar3 + 1;" (assignment_expression "puVar4 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) })) (labeled_statement "LAB_0023411a:\n    *puVar4 = 0;" statement_identifier : (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;)) (return_statement "return (int)puVar4 + (4 - (int)param_2) >> 2;" return (binary_expression "(int)puVar4 + (4 - (int)param_2) >> 2" (binary_expression "(int)puVar4 + (4 - (int)param_2)" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(4 - (int)param_2)" ( (binary_expression "4 - (int)param_2" number_literal - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) ))) >> number_literal) ;) })) (expression_statement "pbVar5 = param_1;" (assignment_expression "pbVar5 = param_1" identifier = identifier) ;) (if_statement "if (bVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(bVar2 == 0)" ( (binary_expression "bVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (do_statement "do {\n    if ((char)bVar2 < '\0') {\n      if ((bVar2 & 0xe0) == 0xc0) {\n        pbVar1 = pbVar5 + 1;\n        pbVar5 = pbVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }\n      if ((bVar2 & 0xf0) != 0xe0) {\n        return 0;\n      }\n      if ((pbVar5[1] & 0xc0) != 0x80) {\n        return 0;\n      }\n      if ((pbVar5[2] & 0xc0) != 0x80) {\n        return 0;\n      }\n      bVar2 = pbVar5[3];\n      pbVar5 = pbVar5 + 3;\n    }\n    else {\nLAB_00234160:\n      bVar2 = pbVar5[1];\n      pbVar5 = pbVar5 + 1;\n    }\n    if (bVar2 == 0) {\n      return (int)pbVar5 - (int)param_1;\n    }\n  } while( true );" do (compound_statement "{\n    if ((char)bVar2 < '\0') {\n      if ((bVar2 & 0xe0) == 0xc0) {\n        pbVar1 = pbVar5 + 1;\n        pbVar5 = pbVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }\n      if ((bVar2 & 0xf0) != 0xe0) {\n        return 0;\n      }\n      if ((pbVar5[1] & 0xc0) != 0x80) {\n        return 0;\n      }\n      if ((pbVar5[2] & 0xc0) != 0x80) {\n        return 0;\n      }\n      bVar2 = pbVar5[3];\n      pbVar5 = pbVar5 + 3;\n    }\n    else {\nLAB_00234160:\n      bVar2 = pbVar5[1];\n      pbVar5 = pbVar5 + 1;\n    }\n    if (bVar2 == 0) {\n      return (int)pbVar5 - (int)param_1;\n    }\n  }" { (if_statement "if ((char)bVar2 < '\0') {\n      if ((bVar2 & 0xe0) == 0xc0) {\n        pbVar1 = pbVar5 + 1;\n        pbVar5 = pbVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }\n      if ((bVar2 & 0xf0) != 0xe0) {\n        return 0;\n      }\n      if ((pbVar5[1] & 0xc0) != 0x80) {\n        return 0;\n      }\n      if ((pbVar5[2] & 0xc0) != 0x80) {\n        return 0;\n      }\n      bVar2 = pbVar5[3];\n      pbVar5 = pbVar5 + 3;\n    }\n    else {\nLAB_00234160:\n      bVar2 = pbVar5[1];\n      pbVar5 = pbVar5 + 1;\n    }" if (parenthesized_expression "((char)bVar2 < '\0')" ( (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if ((bVar2 & 0xe0) == 0xc0) {\n        pbVar1 = pbVar5 + 1;\n        pbVar5 = pbVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }\n      if ((bVar2 & 0xf0) != 0xe0) {\n        return 0;\n      }\n      if ((pbVar5[1] & 0xc0) != 0x80) {\n        return 0;\n      }\n      if ((pbVar5[2] & 0xc0) != 0x80) {\n        return 0;\n      }\n      bVar2 = pbVar5[3];\n      pbVar5 = pbVar5 + 3;\n    }" { (if_statement "if ((bVar2 & 0xe0) == 0xc0) {\n        pbVar1 = pbVar5 + 1;\n        pbVar5 = pbVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }" if (parenthesized_expression "((bVar2 & 0xe0) == 0xc0)" ( (binary_expression "(bVar2 & 0xe0) == 0xc0" (parenthesized_expression "(bVar2 & 0xe0)" ( (binary_expression "bVar2 & 0xe0" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        pbVar1 = pbVar5 + 1;\n        pbVar5 = pbVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }" { (expression_statement "pbVar1 = pbVar5 + 1;" (assignment_expression "pbVar1 = pbVar5 + 1" identifier = (binary_expression "pbVar5 + 1" identifier + number_literal)) ;) (expression_statement "pbVar5 = pbVar5 + 1;" (assignment_expression "pbVar5 = pbVar5 + 1" identifier = (binary_expression "pbVar5 + 1" identifier + number_literal)) ;) (if_statement "if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }" if (parenthesized_expression "((*pbVar1 & 0xc0) != 0x80)" ( (binary_expression "(*pbVar1 & 0xc0) != 0x80" (parenthesized_expression "(*pbVar1 & 0xc0)" ( (binary_expression "*pbVar1 & 0xc0" (pointer_expression "*pbVar1" * identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (goto_statement "goto LAB_00234160;" goto statement_identifier ;) })) (if_statement "if ((bVar2 & 0xf0) != 0xe0) {\n        return 0;\n      }" if (parenthesized_expression "((bVar2 & 0xf0) != 0xe0)" ( (binary_expression "(bVar2 & 0xf0) != 0xe0" (parenthesized_expression "(bVar2 & 0xf0)" ( (binary_expression "bVar2 & 0xf0" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((pbVar5[1] & 0xc0) != 0x80) {\n        return 0;\n      }" if (parenthesized_expression "((pbVar5[1] & 0xc0) != 0x80)" ( (binary_expression "(pbVar5[1] & 0xc0) != 0x80" (parenthesized_expression "(pbVar5[1] & 0xc0)" ( (binary_expression "pbVar5[1] & 0xc0" (subscript_expression "pbVar5[1]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((pbVar5[2] & 0xc0) != 0x80) {\n        return 0;\n      }" if (parenthesized_expression "((pbVar5[2] & 0xc0) != 0x80)" ( (binary_expression "(pbVar5[2] & 0xc0) != 0x80" (parenthesized_expression "(pbVar5[2] & 0xc0)" ( (binary_expression "pbVar5[2] & 0xc0" (subscript_expression "pbVar5[2]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "bVar2 = pbVar5[3];" (assignment_expression "bVar2 = pbVar5[3]" identifier = (subscript_expression "pbVar5[3]" identifier [ number_literal ])) ;) (expression_statement "pbVar5 = pbVar5 + 3;" (assignment_expression "pbVar5 = pbVar5 + 3" identifier = (binary_expression "pbVar5 + 3" identifier + number_literal)) ;) }) (else_clause "else {\nLAB_00234160:\n      bVar2 = pbVar5[1];\n      pbVar5 = pbVar5 + 1;\n    }" else (compound_statement "{\nLAB_00234160:\n      bVar2 = pbVar5[1];\n      pbVar5 = pbVar5 + 1;\n    }" { (labeled_statement "LAB_00234160:\n      bVar2 = pbVar5[1];" statement_identifier : (expression_statement "bVar2 = pbVar5[1];" (assignment_expression "bVar2 = pbVar5[1]" identifier = (subscript_expression "pbVar5[1]" identifier [ number_literal ])) ;)) (expression_statement "pbVar5 = pbVar5 + 1;" (assignment_expression "pbVar5 = pbVar5 + 1" identifier = (binary_expression "pbVar5 + 1" identifier + number_literal)) ;) }))) (if_statement "if (bVar2 == 0) {\n      return (int)pbVar5 - (int)param_1;\n    }" if (parenthesized_expression "(bVar2 == 0)" ( (binary_expression "bVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return (int)pbVar5 - (int)param_1;\n    }" { (return_statement "return (int)pbVar5 - (int)param_1;" return (binary_expression "(int)pbVar5 - (int)param_1" (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "size_t __regparm3 UTF8ToUTF16(uchar *utf8,wchar_t *utf16)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  wchar_t *pwVar3;\n  wchar_t *pwVar4;\n  uchar *puVar5;\n  wchar_t wVar6;\n  \n  bVar2 = *utf8;\n  pwVar4 = utf16;\n  if (utf16 != (wchar_t *)0x0) {\n    while (pwVar3 = pwVar4, bVar2 != 0) {\n      while (wVar6 = (wchar_t)bVar2, (char)bVar2 < '\0') {\n        if ((bVar2 & 0xe0) == 0xc0) {\n          puVar5 = utf8 + 1;\n          wVar6 = (wVar6 & 0x1fU) << 6;\n          *pwVar3 = wVar6;\n          bVar2 = utf8[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *pwVar3 = wVar6 << 0xc;\n          if ((utf8[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          puVar5 = utf8 + 2;\n          wVar6 = wVar6 << 0xc | (utf8[1] & 0x3f) << 6;\n          *pwVar3 = wVar6;\n          bVar2 = utf8[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        pwVar4 = pwVar3 + 1;\n        *pwVar3 = wVar6 | bVar2 & 0x3f;\n        utf8 = puVar5 + 1;\n        bVar2 = puVar5[1];\n        pwVar3 = pwVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }\n      *pwVar3 = wVar6;\n      bVar2 = utf8[1];\n      utf8 = utf8 + 1;\n      pwVar4 = pwVar3 + 1;\n    }\nLAB_0023411a:\n    *pwVar4 = L'\0';\n    return (int)pwVar4 + (4 - (int)utf16) >> 2;\n  }\n  puVar5 = utf8;\n  if (bVar2 == 0) {\n    return 0;\n  }\n  do {\n    if ((char)bVar2 < '\0') {\n      if ((bVar2 & 0xe0) == 0xc0) {\n        pbVar1 = puVar5 + 1;\n        puVar5 = puVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }\n      if ((bVar2 & 0xf0) != 0xe0) {\n        return 0;\n      }\n      if ((puVar5[1] & 0xc0) != 0x80) {\n        return 0;\n      }\n      if ((puVar5[2] & 0xc0) != 0x80) {\n        return 0;\n      }\n      bVar2 = puVar5[3];\n      puVar5 = puVar5 + 3;\n    }\n    else {\nLAB_00234160:\n      bVar2 = puVar5[1];\n      puVar5 = puVar5 + 1;\n    }\n    if (bVar2 == 0) {\n      return (int)puVar5 - (int)utf8;\n    }\n  } while( true );\n}\n\n" (function_definition "size_t __regparm3 UTF8ToUTF16(uchar *utf8,wchar_t *utf16)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  wchar_t *pwVar3;\n  wchar_t *pwVar4;\n  uchar *puVar5;\n  wchar_t wVar6;\n  \n  bVar2 = *utf8;\n  pwVar4 = utf16;\n  if (utf16 != (wchar_t *)0x0) {\n    while (pwVar3 = pwVar4, bVar2 != 0) {\n      while (wVar6 = (wchar_t)bVar2, (char)bVar2 < '\0') {\n        if ((bVar2 & 0xe0) == 0xc0) {\n          puVar5 = utf8 + 1;\n          wVar6 = (wVar6 & 0x1fU) << 6;\n          *pwVar3 = wVar6;\n          bVar2 = utf8[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *pwVar3 = wVar6 << 0xc;\n          if ((utf8[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          puVar5 = utf8 + 2;\n          wVar6 = wVar6 << 0xc | (utf8[1] & 0x3f) << 6;\n          *pwVar3 = wVar6;\n          bVar2 = utf8[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        pwVar4 = pwVar3 + 1;\n        *pwVar3 = wVar6 | bVar2 & 0x3f;\n        utf8 = puVar5 + 1;\n        bVar2 = puVar5[1];\n        pwVar3 = pwVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }\n      *pwVar3 = wVar6;\n      bVar2 = utf8[1];\n      utf8 = utf8 + 1;\n      pwVar4 = pwVar3 + 1;\n    }\nLAB_0023411a:\n    *pwVar4 = L'\0';\n    return (int)pwVar4 + (4 - (int)utf16) >> 2;\n  }\n  puVar5 = utf8;\n  if (bVar2 == 0) {\n    return 0;\n  }\n  do {\n    if ((char)bVar2 < '\0') {\n      if ((bVar2 & 0xe0) == 0xc0) {\n        pbVar1 = puVar5 + 1;\n        puVar5 = puVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }\n      if ((bVar2 & 0xf0) != 0xe0) {\n        return 0;\n      }\n      if ((puVar5[1] & 0xc0) != 0x80) {\n        return 0;\n      }\n      if ((puVar5[2] & 0xc0) != 0x80) {\n        return 0;\n      }\n      bVar2 = puVar5[3];\n      puVar5 = puVar5 + 3;\n    }\n    else {\nLAB_00234160:\n      bVar2 = puVar5[1];\n      puVar5 = puVar5 + 1;\n    }\n    if (bVar2 == 0) {\n      return (int)puVar5 - (int)utf8;\n    }\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "UTF8ToUTF16(uchar *utf8,wchar_t *utf16)" identifier (parameter_list "(uchar *utf8,wchar_t *utf16)" ( (parameter_declaration "uchar *utf8" type_identifier (pointer_declarator "*utf8" * identifier)) , (parameter_declaration "wchar_t *utf16" type_identifier (pointer_declarator "*utf16" * identifier)) ))) (compound_statement "{\n  byte *pbVar1;\n  byte bVar2;\n  wchar_t *pwVar3;\n  wchar_t *pwVar4;\n  uchar *puVar5;\n  wchar_t wVar6;\n  \n  bVar2 = *utf8;\n  pwVar4 = utf16;\n  if (utf16 != (wchar_t *)0x0) {\n    while (pwVar3 = pwVar4, bVar2 != 0) {\n      while (wVar6 = (wchar_t)bVar2, (char)bVar2 < '\0') {\n        if ((bVar2 & 0xe0) == 0xc0) {\n          puVar5 = utf8 + 1;\n          wVar6 = (wVar6 & 0x1fU) << 6;\n          *pwVar3 = wVar6;\n          bVar2 = utf8[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *pwVar3 = wVar6 << 0xc;\n          if ((utf8[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          puVar5 = utf8 + 2;\n          wVar6 = wVar6 << 0xc | (utf8[1] & 0x3f) << 6;\n          *pwVar3 = wVar6;\n          bVar2 = utf8[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        pwVar4 = pwVar3 + 1;\n        *pwVar3 = wVar6 | bVar2 & 0x3f;\n        utf8 = puVar5 + 1;\n        bVar2 = puVar5[1];\n        pwVar3 = pwVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }\n      *pwVar3 = wVar6;\n      bVar2 = utf8[1];\n      utf8 = utf8 + 1;\n      pwVar4 = pwVar3 + 1;\n    }\nLAB_0023411a:\n    *pwVar4 = L'\0';\n    return (int)pwVar4 + (4 - (int)utf16) >> 2;\n  }\n  puVar5 = utf8;\n  if (bVar2 == 0) {\n    return 0;\n  }\n  do {\n    if ((char)bVar2 < '\0') {\n      if ((bVar2 & 0xe0) == 0xc0) {\n        pbVar1 = puVar5 + 1;\n        puVar5 = puVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }\n      if ((bVar2 & 0xf0) != 0xe0) {\n        return 0;\n      }\n      if ((puVar5[1] & 0xc0) != 0x80) {\n        return 0;\n      }\n      if ((puVar5[2] & 0xc0) != 0x80) {\n        return 0;\n      }\n      bVar2 = puVar5[3];\n      puVar5 = puVar5 + 3;\n    }\n    else {\nLAB_00234160:\n      bVar2 = puVar5[1];\n      puVar5 = puVar5 + 1;\n    }\n    if (bVar2 == 0) {\n      return (int)puVar5 - (int)utf8;\n    }\n  } while( true );\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "wchar_t *pwVar3;" type_identifier (pointer_declarator "*pwVar3" * identifier) ;) (declaration "wchar_t *pwVar4;" type_identifier (pointer_declarator "*pwVar4" * identifier) ;) (declaration "uchar *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "wchar_t wVar6;" type_identifier identifier ;) (expression_statement "bVar2 = *utf8;" (assignment_expression "bVar2 = *utf8" identifier = (pointer_expression "*utf8" * identifier)) ;) (expression_statement "pwVar4 = utf16;" (assignment_expression "pwVar4 = utf16" identifier = identifier) ;) (if_statement "if (utf16 != (wchar_t *)0x0) {\n    while (pwVar3 = pwVar4, bVar2 != 0) {\n      while (wVar6 = (wchar_t)bVar2, (char)bVar2 < '\0') {\n        if ((bVar2 & 0xe0) == 0xc0) {\n          puVar5 = utf8 + 1;\n          wVar6 = (wVar6 & 0x1fU) << 6;\n          *pwVar3 = wVar6;\n          bVar2 = utf8[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *pwVar3 = wVar6 << 0xc;\n          if ((utf8[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          puVar5 = utf8 + 2;\n          wVar6 = wVar6 << 0xc | (utf8[1] & 0x3f) << 6;\n          *pwVar3 = wVar6;\n          bVar2 = utf8[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        pwVar4 = pwVar3 + 1;\n        *pwVar3 = wVar6 | bVar2 & 0x3f;\n        utf8 = puVar5 + 1;\n        bVar2 = puVar5[1];\n        pwVar3 = pwVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }\n      *pwVar3 = wVar6;\n      bVar2 = utf8[1];\n      utf8 = utf8 + 1;\n      pwVar4 = pwVar3 + 1;\n    }\nLAB_0023411a:\n    *pwVar4 = L'\0';\n    return (int)pwVar4 + (4 - (int)utf16) >> 2;\n  }" if (parenthesized_expression "(utf16 != (wchar_t *)0x0)" ( (binary_expression "utf16 != (wchar_t *)0x0" identifier != (cast_expression "(wchar_t *)0x0" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    while (pwVar3 = pwVar4, bVar2 != 0) {\n      while (wVar6 = (wchar_t)bVar2, (char)bVar2 < '\0') {\n        if ((bVar2 & 0xe0) == 0xc0) {\n          puVar5 = utf8 + 1;\n          wVar6 = (wVar6 & 0x1fU) << 6;\n          *pwVar3 = wVar6;\n          bVar2 = utf8[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *pwVar3 = wVar6 << 0xc;\n          if ((utf8[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          puVar5 = utf8 + 2;\n          wVar6 = wVar6 << 0xc | (utf8[1] & 0x3f) << 6;\n          *pwVar3 = wVar6;\n          bVar2 = utf8[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        pwVar4 = pwVar3 + 1;\n        *pwVar3 = wVar6 | bVar2 & 0x3f;\n        utf8 = puVar5 + 1;\n        bVar2 = puVar5[1];\n        pwVar3 = pwVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }\n      *pwVar3 = wVar6;\n      bVar2 = utf8[1];\n      utf8 = utf8 + 1;\n      pwVar4 = pwVar3 + 1;\n    }\nLAB_0023411a:\n    *pwVar4 = L'\0';\n    return (int)pwVar4 + (4 - (int)utf16) >> 2;\n  }" { (while_statement "while (pwVar3 = pwVar4, bVar2 != 0) {\n      while (wVar6 = (wchar_t)bVar2, (char)bVar2 < '\0') {\n        if ((bVar2 & 0xe0) == 0xc0) {\n          puVar5 = utf8 + 1;\n          wVar6 = (wVar6 & 0x1fU) << 6;\n          *pwVar3 = wVar6;\n          bVar2 = utf8[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *pwVar3 = wVar6 << 0xc;\n          if ((utf8[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          puVar5 = utf8 + 2;\n          wVar6 = wVar6 << 0xc | (utf8[1] & 0x3f) << 6;\n          *pwVar3 = wVar6;\n          bVar2 = utf8[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        pwVar4 = pwVar3 + 1;\n        *pwVar3 = wVar6 | bVar2 & 0x3f;\n        utf8 = puVar5 + 1;\n        bVar2 = puVar5[1];\n        pwVar3 = pwVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }\n      *pwVar3 = wVar6;\n      bVar2 = utf8[1];\n      utf8 = utf8 + 1;\n      pwVar4 = pwVar3 + 1;\n    }" while (parenthesized_expression "(pwVar3 = pwVar4, bVar2 != 0)" ( (comma_expression "pwVar3 = pwVar4, bVar2 != 0" (assignment_expression "pwVar3 = pwVar4" identifier = identifier) , (binary_expression "bVar2 != 0" identifier != number_literal)) )) (compound_statement "{\n      while (wVar6 = (wchar_t)bVar2, (char)bVar2 < '\0') {\n        if ((bVar2 & 0xe0) == 0xc0) {\n          puVar5 = utf8 + 1;\n          wVar6 = (wVar6 & 0x1fU) << 6;\n          *pwVar3 = wVar6;\n          bVar2 = utf8[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *pwVar3 = wVar6 << 0xc;\n          if ((utf8[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          puVar5 = utf8 + 2;\n          wVar6 = wVar6 << 0xc | (utf8[1] & 0x3f) << 6;\n          *pwVar3 = wVar6;\n          bVar2 = utf8[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        pwVar4 = pwVar3 + 1;\n        *pwVar3 = wVar6 | bVar2 & 0x3f;\n        utf8 = puVar5 + 1;\n        bVar2 = puVar5[1];\n        pwVar3 = pwVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }\n      *pwVar3 = wVar6;\n      bVar2 = utf8[1];\n      utf8 = utf8 + 1;\n      pwVar4 = pwVar3 + 1;\n    }" { (while_statement "while (wVar6 = (wchar_t)bVar2, (char)bVar2 < '\0') {\n        if ((bVar2 & 0xe0) == 0xc0) {\n          puVar5 = utf8 + 1;\n          wVar6 = (wVar6 & 0x1fU) << 6;\n          *pwVar3 = wVar6;\n          bVar2 = utf8[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *pwVar3 = wVar6 << 0xc;\n          if ((utf8[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          puVar5 = utf8 + 2;\n          wVar6 = wVar6 << 0xc | (utf8[1] & 0x3f) << 6;\n          *pwVar3 = wVar6;\n          bVar2 = utf8[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        pwVar4 = pwVar3 + 1;\n        *pwVar3 = wVar6 | bVar2 & 0x3f;\n        utf8 = puVar5 + 1;\n        bVar2 = puVar5[1];\n        pwVar3 = pwVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }" while (parenthesized_expression "(wVar6 = (wchar_t)bVar2, (char)bVar2 < '\0')" ( (comma_expression "wVar6 = (wchar_t)bVar2, (char)bVar2 < '\0'" (assignment_expression "wVar6 = (wchar_t)bVar2" identifier = (cast_expression "(wchar_t)bVar2" ( (type_descriptor "wchar_t" type_identifier) ) identifier)) , (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence '))) )) (compound_statement "{\n        if ((bVar2 & 0xe0) == 0xc0) {\n          puVar5 = utf8 + 1;\n          wVar6 = (wVar6 & 0x1fU) << 6;\n          *pwVar3 = wVar6;\n          bVar2 = utf8[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *pwVar3 = wVar6 << 0xc;\n          if ((utf8[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          puVar5 = utf8 + 2;\n          wVar6 = wVar6 << 0xc | (utf8[1] & 0x3f) << 6;\n          *pwVar3 = wVar6;\n          bVar2 = utf8[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        pwVar4 = pwVar3 + 1;\n        *pwVar3 = wVar6 | bVar2 & 0x3f;\n        utf8 = puVar5 + 1;\n        bVar2 = puVar5[1];\n        pwVar3 = pwVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }" { (if_statement "if ((bVar2 & 0xe0) == 0xc0) {\n          puVar5 = utf8 + 1;\n          wVar6 = (wVar6 & 0x1fU) << 6;\n          *pwVar3 = wVar6;\n          bVar2 = utf8[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *pwVar3 = wVar6 << 0xc;\n          if ((utf8[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          puVar5 = utf8 + 2;\n          wVar6 = wVar6 << 0xc | (utf8[1] & 0x3f) << 6;\n          *pwVar3 = wVar6;\n          bVar2 = utf8[2];\n        }" if (parenthesized_expression "((bVar2 & 0xe0) == 0xc0)" ( (binary_expression "(bVar2 & 0xe0) == 0xc0" (parenthesized_expression "(bVar2 & 0xe0)" ( (binary_expression "bVar2 & 0xe0" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n          puVar5 = utf8 + 1;\n          wVar6 = (wVar6 & 0x1fU) << 6;\n          *pwVar3 = wVar6;\n          bVar2 = utf8[1];\n        }" { (expression_statement "puVar5 = utf8 + 1;" (assignment_expression "puVar5 = utf8 + 1" identifier = (binary_expression "utf8 + 1" identifier + number_literal)) ;) (expression_statement "wVar6 = (wVar6 & 0x1fU) << 6;" (assignment_expression "wVar6 = (wVar6 & 0x1fU) << 6" identifier = (binary_expression "(wVar6 & 0x1fU) << 6" (parenthesized_expression "(wVar6 & 0x1fU)" ( (binary_expression "wVar6 & 0x1fU" identifier & number_literal) )) << number_literal)) ;) (expression_statement "*pwVar3 = wVar6;" (assignment_expression "*pwVar3 = wVar6" (pointer_expression "*pwVar3" * identifier) = identifier) ;) (expression_statement "bVar2 = utf8[1];" (assignment_expression "bVar2 = utf8[1]" identifier = (subscript_expression "utf8[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *pwVar3 = wVar6 << 0xc;\n          if ((utf8[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          puVar5 = utf8 + 2;\n          wVar6 = wVar6 << 0xc | (utf8[1] & 0x3f) << 6;\n          *pwVar3 = wVar6;\n          bVar2 = utf8[2];\n        }" else (compound_statement "{\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *pwVar3 = wVar6 << 0xc;\n          if ((utf8[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          puVar5 = utf8 + 2;\n          wVar6 = wVar6 << 0xc | (utf8[1] & 0x3f) << 6;\n          *pwVar3 = wVar6;\n          bVar2 = utf8[2];\n        }" { (if_statement "if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }" if (parenthesized_expression "((bVar2 & 0xf0) != 0xe0)" ( (binary_expression "(bVar2 & 0xf0) != 0xe0" (parenthesized_expression "(bVar2 & 0xf0)" ( (binary_expression "bVar2 & 0xf0" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n            return 0;\n          }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*pwVar3 = wVar6 << 0xc;" (assignment_expression "*pwVar3 = wVar6 << 0xc" (pointer_expression "*pwVar3" * identifier) = (binary_expression "wVar6 << 0xc" identifier << number_literal)) ;) (if_statement "if ((utf8[1] & 0xc0) != 0x80) {\n            return 0;\n          }" if (parenthesized_expression "((utf8[1] & 0xc0) != 0x80)" ( (binary_expression "(utf8[1] & 0xc0) != 0x80" (parenthesized_expression "(utf8[1] & 0xc0)" ( (binary_expression "utf8[1] & 0xc0" (subscript_expression "utf8[1]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n            return 0;\n          }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "puVar5 = utf8 + 2;" (assignment_expression "puVar5 = utf8 + 2" identifier = (binary_expression "utf8 + 2" identifier + number_literal)) ;) (expression_statement "wVar6 = wVar6 << 0xc | (utf8[1] & 0x3f) << 6;" (assignment_expression "wVar6 = wVar6 << 0xc | (utf8[1] & 0x3f) << 6" identifier = (binary_expression "wVar6 << 0xc | (utf8[1] & 0x3f) << 6" (binary_expression "wVar6 << 0xc" identifier << number_literal) | (binary_expression "(utf8[1] & 0x3f) << 6" (parenthesized_expression "(utf8[1] & 0x3f)" ( (binary_expression "utf8[1] & 0x3f" (subscript_expression "utf8[1]" identifier [ number_literal ]) & number_literal) )) << number_literal))) ;) (expression_statement "*pwVar3 = wVar6;" (assignment_expression "*pwVar3 = wVar6" (pointer_expression "*pwVar3" * identifier) = identifier) ;) (expression_statement "bVar2 = utf8[2];" (assignment_expression "bVar2 = utf8[2]" identifier = (subscript_expression "utf8[2]" identifier [ number_literal ])) ;) }))) (if_statement "if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }" if (parenthesized_expression "((bVar2 & 0xc0) != 0x80)" ( (binary_expression "(bVar2 & 0xc0) != 0x80" (parenthesized_expression "(bVar2 & 0xc0)" ( (binary_expression "bVar2 & 0xc0" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pwVar4 = pwVar3 + 1;" (assignment_expression "pwVar4 = pwVar3 + 1" identifier = (binary_expression "pwVar3 + 1" identifier + number_literal)) ;) (expression_statement "*pwVar3 = wVar6 | bVar2 & 0x3f;" (assignment_expression "*pwVar3 = wVar6 | bVar2 & 0x3f" (pointer_expression "*pwVar3" * identifier) = (binary_expression "wVar6 | bVar2 & 0x3f" identifier | (binary_expression "bVar2 & 0x3f" identifier & number_literal))) ;) (expression_statement "utf8 = puVar5 + 1;" (assignment_expression "utf8 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "bVar2 = puVar5[1];" (assignment_expression "bVar2 = puVar5[1]" identifier = (subscript_expression "puVar5[1]" identifier [ number_literal ])) ;) (expression_statement "pwVar3 = pwVar4;" (assignment_expression "pwVar3 = pwVar4" identifier = identifier) ;) (if_statement "if (bVar2 == 0) goto LAB_0023411a;" if (parenthesized_expression "(bVar2 == 0)" ( (binary_expression "bVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0023411a;" goto statement_identifier ;)) })) (expression_statement "*pwVar3 = wVar6;" (assignment_expression "*pwVar3 = wVar6" (pointer_expression "*pwVar3" * identifier) = identifier) ;) (expression_statement "bVar2 = utf8[1];" (assignment_expression "bVar2 = utf8[1]" identifier = (subscript_expression "utf8[1]" identifier [ number_literal ])) ;) (expression_statement "utf8 = utf8 + 1;" (assignment_expression "utf8 = utf8 + 1" identifier = (binary_expression "utf8 + 1" identifier + number_literal)) ;) (expression_statement "pwVar4 = pwVar3 + 1;" (assignment_expression "pwVar4 = pwVar3 + 1" identifier = (binary_expression "pwVar3 + 1" identifier + number_literal)) ;) })) (labeled_statement "LAB_0023411a:\n    *pwVar4 = L'\0';" statement_identifier : (expression_statement "*pwVar4 = L'\0';" (assignment_expression "*pwVar4 = L'\0'" (pointer_expression "*pwVar4" * identifier) = (char_literal "L'\0'" L' escape_sequence ')) ;)) (return_statement "return (int)pwVar4 + (4 - (int)utf16) >> 2;" return (binary_expression "(int)pwVar4 + (4 - (int)utf16) >> 2" (binary_expression "(int)pwVar4 + (4 - (int)utf16)" (cast_expression "(int)pwVar4" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(4 - (int)utf16)" ( (binary_expression "4 - (int)utf16" number_literal - (cast_expression "(int)utf16" ( (type_descriptor "int" primitive_type) ) identifier)) ))) >> number_literal) ;) })) (expression_statement "puVar5 = utf8;" (assignment_expression "puVar5 = utf8" identifier = identifier) ;) (if_statement "if (bVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(bVar2 == 0)" ( (binary_expression "bVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (do_statement "do {\n    if ((char)bVar2 < '\0') {\n      if ((bVar2 & 0xe0) == 0xc0) {\n        pbVar1 = puVar5 + 1;\n        puVar5 = puVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }\n      if ((bVar2 & 0xf0) != 0xe0) {\n        return 0;\n      }\n      if ((puVar5[1] & 0xc0) != 0x80) {\n        return 0;\n      }\n      if ((puVar5[2] & 0xc0) != 0x80) {\n        return 0;\n      }\n      bVar2 = puVar5[3];\n      puVar5 = puVar5 + 3;\n    }\n    else {\nLAB_00234160:\n      bVar2 = puVar5[1];\n      puVar5 = puVar5 + 1;\n    }\n    if (bVar2 == 0) {\n      return (int)puVar5 - (int)utf8;\n    }\n  } while( true );" do (compound_statement "{\n    if ((char)bVar2 < '\0') {\n      if ((bVar2 & 0xe0) == 0xc0) {\n        pbVar1 = puVar5 + 1;\n        puVar5 = puVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }\n      if ((bVar2 & 0xf0) != 0xe0) {\n        return 0;\n      }\n      if ((puVar5[1] & 0xc0) != 0x80) {\n        return 0;\n      }\n      if ((puVar5[2] & 0xc0) != 0x80) {\n        return 0;\n      }\n      bVar2 = puVar5[3];\n      puVar5 = puVar5 + 3;\n    }\n    else {\nLAB_00234160:\n      bVar2 = puVar5[1];\n      puVar5 = puVar5 + 1;\n    }\n    if (bVar2 == 0) {\n      return (int)puVar5 - (int)utf8;\n    }\n  }" { (if_statement "if ((char)bVar2 < '\0') {\n      if ((bVar2 & 0xe0) == 0xc0) {\n        pbVar1 = puVar5 + 1;\n        puVar5 = puVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }\n      if ((bVar2 & 0xf0) != 0xe0) {\n        return 0;\n      }\n      if ((puVar5[1] & 0xc0) != 0x80) {\n        return 0;\n      }\n      if ((puVar5[2] & 0xc0) != 0x80) {\n        return 0;\n      }\n      bVar2 = puVar5[3];\n      puVar5 = puVar5 + 3;\n    }\n    else {\nLAB_00234160:\n      bVar2 = puVar5[1];\n      puVar5 = puVar5 + 1;\n    }" if (parenthesized_expression "((char)bVar2 < '\0')" ( (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if ((bVar2 & 0xe0) == 0xc0) {\n        pbVar1 = puVar5 + 1;\n        puVar5 = puVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }\n      if ((bVar2 & 0xf0) != 0xe0) {\n        return 0;\n      }\n      if ((puVar5[1] & 0xc0) != 0x80) {\n        return 0;\n      }\n      if ((puVar5[2] & 0xc0) != 0x80) {\n        return 0;\n      }\n      bVar2 = puVar5[3];\n      puVar5 = puVar5 + 3;\n    }" { (if_statement "if ((bVar2 & 0xe0) == 0xc0) {\n        pbVar1 = puVar5 + 1;\n        puVar5 = puVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }" if (parenthesized_expression "((bVar2 & 0xe0) == 0xc0)" ( (binary_expression "(bVar2 & 0xe0) == 0xc0" (parenthesized_expression "(bVar2 & 0xe0)" ( (binary_expression "bVar2 & 0xe0" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        pbVar1 = puVar5 + 1;\n        puVar5 = puVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }" { (expression_statement "pbVar1 = puVar5 + 1;" (assignment_expression "pbVar1 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (if_statement "if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }" if (parenthesized_expression "((*pbVar1 & 0xc0) != 0x80)" ( (binary_expression "(*pbVar1 & 0xc0) != 0x80" (parenthesized_expression "(*pbVar1 & 0xc0)" ( (binary_expression "*pbVar1 & 0xc0" (pointer_expression "*pbVar1" * identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (goto_statement "goto LAB_00234160;" goto statement_identifier ;) })) (if_statement "if ((bVar2 & 0xf0) != 0xe0) {\n        return 0;\n      }" if (parenthesized_expression "((bVar2 & 0xf0) != 0xe0)" ( (binary_expression "(bVar2 & 0xf0) != 0xe0" (parenthesized_expression "(bVar2 & 0xf0)" ( (binary_expression "bVar2 & 0xf0" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((puVar5[1] & 0xc0) != 0x80) {\n        return 0;\n      }" if (parenthesized_expression "((puVar5[1] & 0xc0) != 0x80)" ( (binary_expression "(puVar5[1] & 0xc0) != 0x80" (parenthesized_expression "(puVar5[1] & 0xc0)" ( (binary_expression "puVar5[1] & 0xc0" (subscript_expression "puVar5[1]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((puVar5[2] & 0xc0) != 0x80) {\n        return 0;\n      }" if (parenthesized_expression "((puVar5[2] & 0xc0) != 0x80)" ( (binary_expression "(puVar5[2] & 0xc0) != 0x80" (parenthesized_expression "(puVar5[2] & 0xc0)" ( (binary_expression "puVar5[2] & 0xc0" (subscript_expression "puVar5[2]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "bVar2 = puVar5[3];" (assignment_expression "bVar2 = puVar5[3]" identifier = (subscript_expression "puVar5[3]" identifier [ number_literal ])) ;) (expression_statement "puVar5 = puVar5 + 3;" (assignment_expression "puVar5 = puVar5 + 3" identifier = (binary_expression "puVar5 + 3" identifier + number_literal)) ;) }) (else_clause "else {\nLAB_00234160:\n      bVar2 = puVar5[1];\n      puVar5 = puVar5 + 1;\n    }" else (compound_statement "{\nLAB_00234160:\n      bVar2 = puVar5[1];\n      puVar5 = puVar5 + 1;\n    }" { (labeled_statement "LAB_00234160:\n      bVar2 = puVar5[1];" statement_identifier : (expression_statement "bVar2 = puVar5[1];" (assignment_expression "bVar2 = puVar5[1]" identifier = (subscript_expression "puVar5[1]" identifier [ number_literal ])) ;)) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) }))) (if_statement "if (bVar2 == 0) {\n      return (int)puVar5 - (int)utf8;\n    }" if (parenthesized_expression "(bVar2 == 0)" ( (binary_expression "bVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return (int)puVar5 - (int)utf8;\n    }" { (return_statement "return (int)puVar5 - (int)utf8;" return (binary_expression "(int)puVar5 - (int)utf8" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)utf8" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "int __regparm3 FUN_00234080(byte *param_1,uint *param_2)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  uint *puVar3;\n  uint *puVar4;\n  byte *pbVar5;\n  uint uVar6;\n  \n  bVar2 = *param_1;\n  puVar4 = param_2;\n  if (param_2 != (uint *)0x0) {\n    while (puVar3 = puVar4, bVar2 != 0) {\n      while (uVar6 = (uint)bVar2, (char)bVar2 < '\0') {\n        if ((bVar2 & 0xe0) == 0xc0) {\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar4 = puVar3 + 1;\n        *puVar3 = uVar6 | bVar2 & 0x3f;\n        param_1 = pbVar5 + 1;\n        bVar2 = pbVar5[1];\n        puVar3 = puVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }\n      *puVar3 = uVar6;\n      bVar2 = param_1[1];\n      param_1 = param_1 + 1;\n      puVar4 = puVar3 + 1;\n    }\nLAB_0023411a:\n    *puVar4 = 0;\n    return (int)puVar4 + (4 - (int)param_2) >> 2;\n  }\n  pbVar5 = param_1;\n  if (bVar2 == 0) {\n    return 0;\n  }\n  do {\n    if ((char)bVar2 < '\0') {\n      if ((bVar2 & 0xe0) == 0xc0) {\n        pbVar1 = pbVar5 + 1;\n        pbVar5 = pbVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }\n      if ((bVar2 & 0xf0) != 0xe0) {\n        return 0;\n      }\n      if ((pbVar5[1] & 0xc0) != 0x80) {\n        return 0;\n      }\n      if ((pbVar5[2] & 0xc0) != 0x80) {\n        return 0;\n      }\n      bVar2 = pbVar5[3];\n      pbVar5 = pbVar5 + 3;\n    }\n    else {\nLAB_00234160:\n      bVar2 = pbVar5[1];\n      pbVar5 = pbVar5 + 1;\n    }\n    if (bVar2 == 0) {\n      return (int)pbVar5 - (int)param_1;\n    }\n  } while( true );\n}\n\n" (function_definition "int __regparm3 FUN_00234080(byte *param_1,uint *param_2)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  uint *puVar3;\n  uint *puVar4;\n  byte *pbVar5;\n  uint uVar6;\n  \n  bVar2 = *param_1;\n  puVar4 = param_2;\n  if (param_2 != (uint *)0x0) {\n    while (puVar3 = puVar4, bVar2 != 0) {\n      while (uVar6 = (uint)bVar2, (char)bVar2 < '\0') {\n        if ((bVar2 & 0xe0) == 0xc0) {\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar4 = puVar3 + 1;\n        *puVar3 = uVar6 | bVar2 & 0x3f;\n        param_1 = pbVar5 + 1;\n        bVar2 = pbVar5[1];\n        puVar3 = puVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }\n      *puVar3 = uVar6;\n      bVar2 = param_1[1];\n      param_1 = param_1 + 1;\n      puVar4 = puVar3 + 1;\n    }\nLAB_0023411a:\n    *puVar4 = 0;\n    return (int)puVar4 + (4 - (int)param_2) >> 2;\n  }\n  pbVar5 = param_1;\n  if (bVar2 == 0) {\n    return 0;\n  }\n  do {\n    if ((char)bVar2 < '\0') {\n      if ((bVar2 & 0xe0) == 0xc0) {\n        pbVar1 = pbVar5 + 1;\n        pbVar5 = pbVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }\n      if ((bVar2 & 0xf0) != 0xe0) {\n        return 0;\n      }\n      if ((pbVar5[1] & 0xc0) != 0x80) {\n        return 0;\n      }\n      if ((pbVar5[2] & 0xc0) != 0x80) {\n        return 0;\n      }\n      bVar2 = pbVar5[3];\n      pbVar5 = pbVar5 + 3;\n    }\n    else {\nLAB_00234160:\n      bVar2 = pbVar5[1];\n      pbVar5 = pbVar5 + 1;\n    }\n    if (bVar2 == 0) {\n      return (int)pbVar5 - (int)param_1;\n    }\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00234080(byte *param_1,uint *param_2)" identifier (parameter_list "(byte *param_1,uint *param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  byte *pbVar1;\n  byte bVar2;\n  uint *puVar3;\n  uint *puVar4;\n  byte *pbVar5;\n  uint uVar6;\n  \n  bVar2 = *param_1;\n  puVar4 = param_2;\n  if (param_2 != (uint *)0x0) {\n    while (puVar3 = puVar4, bVar2 != 0) {\n      while (uVar6 = (uint)bVar2, (char)bVar2 < '\0') {\n        if ((bVar2 & 0xe0) == 0xc0) {\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar4 = puVar3 + 1;\n        *puVar3 = uVar6 | bVar2 & 0x3f;\n        param_1 = pbVar5 + 1;\n        bVar2 = pbVar5[1];\n        puVar3 = puVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }\n      *puVar3 = uVar6;\n      bVar2 = param_1[1];\n      param_1 = param_1 + 1;\n      puVar4 = puVar3 + 1;\n    }\nLAB_0023411a:\n    *puVar4 = 0;\n    return (int)puVar4 + (4 - (int)param_2) >> 2;\n  }\n  pbVar5 = param_1;\n  if (bVar2 == 0) {\n    return 0;\n  }\n  do {\n    if ((char)bVar2 < '\0') {\n      if ((bVar2 & 0xe0) == 0xc0) {\n        pbVar1 = pbVar5 + 1;\n        pbVar5 = pbVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }\n      if ((bVar2 & 0xf0) != 0xe0) {\n        return 0;\n      }\n      if ((pbVar5[1] & 0xc0) != 0x80) {\n        return 0;\n      }\n      if ((pbVar5[2] & 0xc0) != 0x80) {\n        return 0;\n      }\n      bVar2 = pbVar5[3];\n      pbVar5 = pbVar5 + 3;\n    }\n    else {\nLAB_00234160:\n      bVar2 = pbVar5[1];\n      pbVar5 = pbVar5 + 1;\n    }\n    if (bVar2 == 0) {\n      return (int)pbVar5 - (int)param_1;\n    }\n  } while( true );\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (expression_statement "bVar2 = *param_1;" (assignment_expression "bVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "puVar4 = param_2;" (assignment_expression "puVar4 = param_2" identifier = identifier) ;) (if_statement "if (param_2 != (uint *)0x0) {\n    while (puVar3 = puVar4, bVar2 != 0) {\n      while (uVar6 = (uint)bVar2, (char)bVar2 < '\0') {\n        if ((bVar2 & 0xe0) == 0xc0) {\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar4 = puVar3 + 1;\n        *puVar3 = uVar6 | bVar2 & 0x3f;\n        param_1 = pbVar5 + 1;\n        bVar2 = pbVar5[1];\n        puVar3 = puVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }\n      *puVar3 = uVar6;\n      bVar2 = param_1[1];\n      param_1 = param_1 + 1;\n      puVar4 = puVar3 + 1;\n    }\nLAB_0023411a:\n    *puVar4 = 0;\n    return (int)puVar4 + (4 - (int)param_2) >> 2;\n  }" if (parenthesized_expression "(param_2 != (uint *)0x0)" ( (binary_expression "param_2 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    while (puVar3 = puVar4, bVar2 != 0) {\n      while (uVar6 = (uint)bVar2, (char)bVar2 < '\0') {\n        if ((bVar2 & 0xe0) == 0xc0) {\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar4 = puVar3 + 1;\n        *puVar3 = uVar6 | bVar2 & 0x3f;\n        param_1 = pbVar5 + 1;\n        bVar2 = pbVar5[1];\n        puVar3 = puVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }\n      *puVar3 = uVar6;\n      bVar2 = param_1[1];\n      param_1 = param_1 + 1;\n      puVar4 = puVar3 + 1;\n    }\nLAB_0023411a:\n    *puVar4 = 0;\n    return (int)puVar4 + (4 - (int)param_2) >> 2;\n  }" { (while_statement "while (puVar3 = puVar4, bVar2 != 0) {\n      while (uVar6 = (uint)bVar2, (char)bVar2 < '\0') {\n        if ((bVar2 & 0xe0) == 0xc0) {\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar4 = puVar3 + 1;\n        *puVar3 = uVar6 | bVar2 & 0x3f;\n        param_1 = pbVar5 + 1;\n        bVar2 = pbVar5[1];\n        puVar3 = puVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }\n      *puVar3 = uVar6;\n      bVar2 = param_1[1];\n      param_1 = param_1 + 1;\n      puVar4 = puVar3 + 1;\n    }" while (parenthesized_expression "(puVar3 = puVar4, bVar2 != 0)" ( (comma_expression "puVar3 = puVar4, bVar2 != 0" (assignment_expression "puVar3 = puVar4" identifier = identifier) , (binary_expression "bVar2 != 0" identifier != number_literal)) )) (compound_statement "{\n      while (uVar6 = (uint)bVar2, (char)bVar2 < '\0') {\n        if ((bVar2 & 0xe0) == 0xc0) {\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar4 = puVar3 + 1;\n        *puVar3 = uVar6 | bVar2 & 0x3f;\n        param_1 = pbVar5 + 1;\n        bVar2 = pbVar5[1];\n        puVar3 = puVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }\n      *puVar3 = uVar6;\n      bVar2 = param_1[1];\n      param_1 = param_1 + 1;\n      puVar4 = puVar3 + 1;\n    }" { (while_statement "while (uVar6 = (uint)bVar2, (char)bVar2 < '\0') {\n        if ((bVar2 & 0xe0) == 0xc0) {\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar4 = puVar3 + 1;\n        *puVar3 = uVar6 | bVar2 & 0x3f;\n        param_1 = pbVar5 + 1;\n        bVar2 = pbVar5[1];\n        puVar3 = puVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }" while (parenthesized_expression "(uVar6 = (uint)bVar2, (char)bVar2 < '\0')" ( (comma_expression "uVar6 = (uint)bVar2, (char)bVar2 < '\0'" (assignment_expression "uVar6 = (uint)bVar2" identifier = (cast_expression "(uint)bVar2" ( (type_descriptor "uint" type_identifier) ) identifier)) , (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence '))) )) (compound_statement "{\n        if ((bVar2 & 0xe0) == 0xc0) {\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar4 = puVar3 + 1;\n        *puVar3 = uVar6 | bVar2 & 0x3f;\n        param_1 = pbVar5 + 1;\n        bVar2 = pbVar5[1];\n        puVar3 = puVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }" { (if_statement "if ((bVar2 & 0xe0) == 0xc0) {\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }" if (parenthesized_expression "((bVar2 & 0xe0) == 0xc0)" ( (binary_expression "(bVar2 & 0xe0) == 0xc0" (parenthesized_expression "(bVar2 & 0xe0)" ( (binary_expression "bVar2 & 0xe0" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }" { (expression_statement "pbVar5 = param_1 + 1;" (assignment_expression "pbVar5 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "uVar6 = (uVar6 & 0x1f) << 6;" (assignment_expression "uVar6 = (uVar6 & 0x1f) << 6" identifier = (binary_expression "(uVar6 & 0x1f) << 6" (parenthesized_expression "(uVar6 & 0x1f)" ( (binary_expression "uVar6 & 0x1f" identifier & number_literal) )) << number_literal)) ;) (expression_statement "*puVar3 = uVar6;" (assignment_expression "*puVar3 = uVar6" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "bVar2 = param_1[1];" (assignment_expression "bVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }" else (compound_statement "{\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }" { (if_statement "if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }" if (parenthesized_expression "((bVar2 & 0xf0) != 0xe0)" ( (binary_expression "(bVar2 & 0xf0) != 0xe0" (parenthesized_expression "(bVar2 & 0xf0)" ( (binary_expression "bVar2 & 0xf0" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n            return 0;\n          }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*puVar3 = uVar6 << 0xc;" (assignment_expression "*puVar3 = uVar6 << 0xc" (pointer_expression "*puVar3" * identifier) = (binary_expression "uVar6 << 0xc" identifier << number_literal)) ;) (if_statement "if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }" if (parenthesized_expression "((param_1[1] & 0xc0) != 0x80)" ( (binary_expression "(param_1[1] & 0xc0) != 0x80" (parenthesized_expression "(param_1[1] & 0xc0)" ( (binary_expression "param_1[1] & 0xc0" (subscript_expression "param_1[1]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n            return 0;\n          }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pbVar5 = param_1 + 2;" (assignment_expression "pbVar5 = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (expression_statement "uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;" (assignment_expression "uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6" identifier = (binary_expression "uVar6 << 0xc | (param_1[1] & 0x3f) << 6" (binary_expression "uVar6 << 0xc" identifier << number_literal) | (binary_expression "(param_1[1] & 0x3f) << 6" (parenthesized_expression "(param_1[1] & 0x3f)" ( (binary_expression "param_1[1] & 0x3f" (subscript_expression "param_1[1]" identifier [ number_literal ]) & number_literal) )) << number_literal))) ;) (expression_statement "*puVar3 = uVar6;" (assignment_expression "*puVar3 = uVar6" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "bVar2 = param_1[2];" (assignment_expression "bVar2 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) }))) (if_statement "if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }" if (parenthesized_expression "((bVar2 & 0xc0) != 0x80)" ( (binary_expression "(bVar2 & 0xc0) != 0x80" (parenthesized_expression "(bVar2 & 0xc0)" ( (binary_expression "bVar2 & 0xc0" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "puVar4 = puVar3 + 1;" (assignment_expression "puVar4 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (expression_statement "*puVar3 = uVar6 | bVar2 & 0x3f;" (assignment_expression "*puVar3 = uVar6 | bVar2 & 0x3f" (pointer_expression "*puVar3" * identifier) = (binary_expression "uVar6 | bVar2 & 0x3f" identifier | (binary_expression "bVar2 & 0x3f" identifier & number_literal))) ;) (expression_statement "param_1 = pbVar5 + 1;" (assignment_expression "param_1 = pbVar5 + 1" identifier = (binary_expression "pbVar5 + 1" identifier + number_literal)) ;) (expression_statement "bVar2 = pbVar5[1];" (assignment_expression "bVar2 = pbVar5[1]" identifier = (subscript_expression "pbVar5[1]" identifier [ number_literal ])) ;) (expression_statement "puVar3 = puVar4;" (assignment_expression "puVar3 = puVar4" identifier = identifier) ;) (if_statement "if (bVar2 == 0) goto LAB_0023411a;" if (parenthesized_expression "(bVar2 == 0)" ( (binary_expression "bVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0023411a;" goto statement_identifier ;)) })) (expression_statement "*puVar3 = uVar6;" (assignment_expression "*puVar3 = uVar6" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "bVar2 = param_1[1];" (assignment_expression "bVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "puVar4 = puVar3 + 1;" (assignment_expression "puVar4 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) })) (labeled_statement "LAB_0023411a:\n    *puVar4 = 0;" statement_identifier : (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;)) (return_statement "return (int)puVar4 + (4 - (int)param_2) >> 2;" return (binary_expression "(int)puVar4 + (4 - (int)param_2) >> 2" (binary_expression "(int)puVar4 + (4 - (int)param_2)" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(4 - (int)param_2)" ( (binary_expression "4 - (int)param_2" number_literal - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) ))) >> number_literal) ;) })) (expression_statement "pbVar5 = param_1;" (assignment_expression "pbVar5 = param_1" identifier = identifier) ;) (if_statement "if (bVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(bVar2 == 0)" ( (binary_expression "bVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (do_statement "do {\n    if ((char)bVar2 < '\0') {\n      if ((bVar2 & 0xe0) == 0xc0) {\n        pbVar1 = pbVar5 + 1;\n        pbVar5 = pbVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }\n      if ((bVar2 & 0xf0) != 0xe0) {\n        return 0;\n      }\n      if ((pbVar5[1] & 0xc0) != 0x80) {\n        return 0;\n      }\n      if ((pbVar5[2] & 0xc0) != 0x80) {\n        return 0;\n      }\n      bVar2 = pbVar5[3];\n      pbVar5 = pbVar5 + 3;\n    }\n    else {\nLAB_00234160:\n      bVar2 = pbVar5[1];\n      pbVar5 = pbVar5 + 1;\n    }\n    if (bVar2 == 0) {\n      return (int)pbVar5 - (int)param_1;\n    }\n  } while( true );" do (compound_statement "{\n    if ((char)bVar2 < '\0') {\n      if ((bVar2 & 0xe0) == 0xc0) {\n        pbVar1 = pbVar5 + 1;\n        pbVar5 = pbVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }\n      if ((bVar2 & 0xf0) != 0xe0) {\n        return 0;\n      }\n      if ((pbVar5[1] & 0xc0) != 0x80) {\n        return 0;\n      }\n      if ((pbVar5[2] & 0xc0) != 0x80) {\n        return 0;\n      }\n      bVar2 = pbVar5[3];\n      pbVar5 = pbVar5 + 3;\n    }\n    else {\nLAB_00234160:\n      bVar2 = pbVar5[1];\n      pbVar5 = pbVar5 + 1;\n    }\n    if (bVar2 == 0) {\n      return (int)pbVar5 - (int)param_1;\n    }\n  }" { (if_statement "if ((char)bVar2 < '\0') {\n      if ((bVar2 & 0xe0) == 0xc0) {\n        pbVar1 = pbVar5 + 1;\n        pbVar5 = pbVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }\n      if ((bVar2 & 0xf0) != 0xe0) {\n        return 0;\n      }\n      if ((pbVar5[1] & 0xc0) != 0x80) {\n        return 0;\n      }\n      if ((pbVar5[2] & 0xc0) != 0x80) {\n        return 0;\n      }\n      bVar2 = pbVar5[3];\n      pbVar5 = pbVar5 + 3;\n    }\n    else {\nLAB_00234160:\n      bVar2 = pbVar5[1];\n      pbVar5 = pbVar5 + 1;\n    }" if (parenthesized_expression "((char)bVar2 < '\0')" ( (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if ((bVar2 & 0xe0) == 0xc0) {\n        pbVar1 = pbVar5 + 1;\n        pbVar5 = pbVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }\n      if ((bVar2 & 0xf0) != 0xe0) {\n        return 0;\n      }\n      if ((pbVar5[1] & 0xc0) != 0x80) {\n        return 0;\n      }\n      if ((pbVar5[2] & 0xc0) != 0x80) {\n        return 0;\n      }\n      bVar2 = pbVar5[3];\n      pbVar5 = pbVar5 + 3;\n    }" { (if_statement "if ((bVar2 & 0xe0) == 0xc0) {\n        pbVar1 = pbVar5 + 1;\n        pbVar5 = pbVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }" if (parenthesized_expression "((bVar2 & 0xe0) == 0xc0)" ( (binary_expression "(bVar2 & 0xe0) == 0xc0" (parenthesized_expression "(bVar2 & 0xe0)" ( (binary_expression "bVar2 & 0xe0" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        pbVar1 = pbVar5 + 1;\n        pbVar5 = pbVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }" { (expression_statement "pbVar1 = pbVar5 + 1;" (assignment_expression "pbVar1 = pbVar5 + 1" identifier = (binary_expression "pbVar5 + 1" identifier + number_literal)) ;) (expression_statement "pbVar5 = pbVar5 + 1;" (assignment_expression "pbVar5 = pbVar5 + 1" identifier = (binary_expression "pbVar5 + 1" identifier + number_literal)) ;) (if_statement "if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }" if (parenthesized_expression "((*pbVar1 & 0xc0) != 0x80)" ( (binary_expression "(*pbVar1 & 0xc0) != 0x80" (parenthesized_expression "(*pbVar1 & 0xc0)" ( (binary_expression "*pbVar1 & 0xc0" (pointer_expression "*pbVar1" * identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (goto_statement "goto LAB_00234160;" goto statement_identifier ;) })) (if_statement "if ((bVar2 & 0xf0) != 0xe0) {\n        return 0;\n      }" if (parenthesized_expression "((bVar2 & 0xf0) != 0xe0)" ( (binary_expression "(bVar2 & 0xf0) != 0xe0" (parenthesized_expression "(bVar2 & 0xf0)" ( (binary_expression "bVar2 & 0xf0" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((pbVar5[1] & 0xc0) != 0x80) {\n        return 0;\n      }" if (parenthesized_expression "((pbVar5[1] & 0xc0) != 0x80)" ( (binary_expression "(pbVar5[1] & 0xc0) != 0x80" (parenthesized_expression "(pbVar5[1] & 0xc0)" ( (binary_expression "pbVar5[1] & 0xc0" (subscript_expression "pbVar5[1]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((pbVar5[2] & 0xc0) != 0x80) {\n        return 0;\n      }" if (parenthesized_expression "((pbVar5[2] & 0xc0) != 0x80)" ( (binary_expression "(pbVar5[2] & 0xc0) != 0x80" (parenthesized_expression "(pbVar5[2] & 0xc0)" ( (binary_expression "pbVar5[2] & 0xc0" (subscript_expression "pbVar5[2]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "bVar2 = pbVar5[3];" (assignment_expression "bVar2 = pbVar5[3]" identifier = (subscript_expression "pbVar5[3]" identifier [ number_literal ])) ;) (expression_statement "pbVar5 = pbVar5 + 3;" (assignment_expression "pbVar5 = pbVar5 + 3" identifier = (binary_expression "pbVar5 + 3" identifier + number_literal)) ;) }) (else_clause "else {\nLAB_00234160:\n      bVar2 = pbVar5[1];\n      pbVar5 = pbVar5 + 1;\n    }" else (compound_statement "{\nLAB_00234160:\n      bVar2 = pbVar5[1];\n      pbVar5 = pbVar5 + 1;\n    }" { (labeled_statement "LAB_00234160:\n      bVar2 = pbVar5[1];" statement_identifier : (expression_statement "bVar2 = pbVar5[1];" (assignment_expression "bVar2 = pbVar5[1]" identifier = (subscript_expression "pbVar5[1]" identifier [ number_literal ])) ;)) (expression_statement "pbVar5 = pbVar5 + 1;" (assignment_expression "pbVar5 = pbVar5 + 1" identifier = (binary_expression "pbVar5 + 1" identifier + number_literal)) ;) }))) (if_statement "if (bVar2 == 0) {\n      return (int)pbVar5 - (int)param_1;\n    }" if (parenthesized_expression "(bVar2 == 0)" ( (binary_expression "bVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return (int)pbVar5 - (int)param_1;\n    }" { (return_statement "return (int)pbVar5 - (int)param_1;" return (binary_expression "(int)pbVar5 - (int)param_1" (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT != LIT)) )) (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (char_literal ' escape_sequence '))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT << LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) != LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT << LIT) | (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) << LIT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT | (binary_expression IDENT & LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;)) (return_statement return (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) >> LIT) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) != LIT) )) (compound_statement { (return_statement return LIT ;) })) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) != LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) != LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) })) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "int __regparm3 FUN_00234080(byte *param_1,uint *param_2)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  uint *puVar3;\n  uint *puVar4;\n  byte *pbVar5;\n  uint uVar6;\n  \n  bVar2 = *param_1;\n  puVar4 = param_2;\n  if (param_2 != (uint *)0x0) {\n    while (puVar3 = puVar4, bVar2 != 0) {\n      while (uVar6 = (uint)bVar2, (char)bVar2 < '\0') {\n        if ((bVar2 & 0xe0) == 0xc0) {\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar4 = puVar3 + 1;\n        *puVar3 = uVar6 | bVar2 & 0x3f;\n        param_1 = pbVar5 + 1;\n        bVar2 = pbVar5[1];\n        puVar3 = puVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }\n      *puVar3 = uVar6;\n      bVar2 = param_1[1];\n      param_1 = param_1 + 1;\n      puVar4 = puVar3 + 1;\n    }\nLAB_0023411a:\n    *puVar4 = 0;\n    return (int)puVar4 + (4 - (int)param_2) >> 2;\n  }\n  pbVar5 = param_1;\n  if (bVar2 == 0) {\n    return 0;\n  }\n  do {\n    if ((char)bVar2 < '\0') {\n      if ((bVar2 & 0xe0) == 0xc0) {\n        pbVar1 = pbVar5 + 1;\n        pbVar5 = pbVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }\n      if ((bVar2 & 0xf0) != 0xe0) {\n        return 0;\n      }\n      if ((pbVar5[1] & 0xc0) != 0x80) {\n        return 0;\n      }\n      if ((pbVar5[2] & 0xc0) != 0x80) {\n        return 0;\n      }\n      bVar2 = pbVar5[3];\n      pbVar5 = pbVar5 + 3;\n    }\n    else {\nLAB_00234160:\n      bVar2 = pbVar5[1];\n      pbVar5 = pbVar5 + 1;\n    }\n    if (bVar2 == 0) {\n      return (int)pbVar5 - (int)param_1;\n    }\n  } while( true );\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00234080(byte *param_1,uint *param_2)" (identifier "FUN_00234080") (parameter_list "(byte *param_1,uint *param_2)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint *param_2" (type_identifier "uint") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  byte *pbVar1;\n  byte bVar2;\n  uint *puVar3;\n  uint *puVar4;\n  byte *pbVar5;\n  uint uVar6;\n  \n  bVar2 = *param_1;\n  puVar4 = param_2;\n  if (param_2 != (uint *)0x0) {\n    while (puVar3 = puVar4, bVar2 != 0) {\n      while (uVar6 = (uint)bVar2, (char)bVar2 < '\0') {\n        if ((bVar2 & 0xe0) == 0xc0) {\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar4 = puVar3 + 1;\n        *puVar3 = uVar6 | bVar2 & 0x3f;\n        param_1 = pbVar5 + 1;\n        bVar2 = pbVar5[1];\n        puVar3 = puVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }\n      *puVar3 = uVar6;\n      bVar2 = param_1[1];\n      param_1 = param_1 + 1;\n      puVar4 = puVar3 + 1;\n    }\nLAB_0023411a:\n    *puVar4 = 0;\n    return (int)puVar4 + (4 - (int)param_2) >> 2;\n  }\n  pbVar5 = param_1;\n  if (bVar2 == 0) {\n    return 0;\n  }\n  do {\n    if ((char)bVar2 < '\0') {\n      if ((bVar2 & 0xe0) == 0xc0) {\n        pbVar1 = pbVar5 + 1;\n        pbVar5 = pbVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }\n      if ((bVar2 & 0xf0) != 0xe0) {\n        return 0;\n      }\n      if ((pbVar5[1] & 0xc0) != 0x80) {\n        return 0;\n      }\n      if ((pbVar5[2] & 0xc0) != 0x80) {\n        return 0;\n      }\n      bVar2 = pbVar5[3];\n      pbVar5 = pbVar5 + 3;\n    }\n    else {\nLAB_00234160:\n      bVar2 = pbVar5[1];\n      pbVar5 = pbVar5 + 1;\n    }\n    if (bVar2 == 0) {\n      return (int)pbVar5 - (int)param_1;\n    }\n  } while( true );\n}" ({ "{") (declaration "byte *pbVar1;" (type_identifier "byte") (pointer_declarator "*pbVar1" (* "*") (identifier "pbVar1")) (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (declaration "uint *puVar3;" (type_identifier "uint") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "uint *puVar4;" (type_identifier "uint") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "byte *pbVar5;" (type_identifier "byte") (pointer_declarator "*pbVar5" (* "*") (identifier "pbVar5")) (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (expression_statement "bVar2 = *param_1;" (assignment_expression "bVar2 = *param_1" (identifier "bVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "puVar4 = param_2;" (assignment_expression "puVar4 = param_2" (identifier "puVar4") (= "=") (identifier "param_2")) (; ";")) (if_statement "if (param_2 != (uint *)0x0) {\n    while (puVar3 = puVar4, bVar2 != 0) {\n      while (uVar6 = (uint)bVar2, (char)bVar2 < '\0') {\n        if ((bVar2 & 0xe0) == 0xc0) {\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar4 = puVar3 + 1;\n        *puVar3 = uVar6 | bVar2 & 0x3f;\n        param_1 = pbVar5 + 1;\n        bVar2 = pbVar5[1];\n        puVar3 = puVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }\n      *puVar3 = uVar6;\n      bVar2 = param_1[1];\n      param_1 = param_1 + 1;\n      puVar4 = puVar3 + 1;\n    }\nLAB_0023411a:\n    *puVar4 = 0;\n    return (int)puVar4 + (4 - (int)param_2) >> 2;\n  }" (if "if") (parenthesized_expression "(param_2 != (uint *)0x0)" (( "(") (binary_expression "param_2 != (uint *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    while (puVar3 = puVar4, bVar2 != 0) {\n      while (uVar6 = (uint)bVar2, (char)bVar2 < '\0') {\n        if ((bVar2 & 0xe0) == 0xc0) {\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar4 = puVar3 + 1;\n        *puVar3 = uVar6 | bVar2 & 0x3f;\n        param_1 = pbVar5 + 1;\n        bVar2 = pbVar5[1];\n        puVar3 = puVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }\n      *puVar3 = uVar6;\n      bVar2 = param_1[1];\n      param_1 = param_1 + 1;\n      puVar4 = puVar3 + 1;\n    }\nLAB_0023411a:\n    *puVar4 = 0;\n    return (int)puVar4 + (4 - (int)param_2) >> 2;\n  }" ({ "{") (while_statement "while (puVar3 = puVar4, bVar2 != 0) {\n      while (uVar6 = (uint)bVar2, (char)bVar2 < '\0') {\n        if ((bVar2 & 0xe0) == 0xc0) {\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar4 = puVar3 + 1;\n        *puVar3 = uVar6 | bVar2 & 0x3f;\n        param_1 = pbVar5 + 1;\n        bVar2 = pbVar5[1];\n        puVar3 = puVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }\n      *puVar3 = uVar6;\n      bVar2 = param_1[1];\n      param_1 = param_1 + 1;\n      puVar4 = puVar3 + 1;\n    }" (while "while") (parenthesized_expression "(puVar3 = puVar4, bVar2 != 0)" (( "(") (comma_expression "puVar3 = puVar4, bVar2 != 0" (assignment_expression "puVar3 = puVar4" (identifier "puVar3") (= "=") (identifier "puVar4")) (, ",") (binary_expression "bVar2 != 0" (identifier "bVar2") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n      while (uVar6 = (uint)bVar2, (char)bVar2 < '\0') {\n        if ((bVar2 & 0xe0) == 0xc0) {\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar4 = puVar3 + 1;\n        *puVar3 = uVar6 | bVar2 & 0x3f;\n        param_1 = pbVar5 + 1;\n        bVar2 = pbVar5[1];\n        puVar3 = puVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }\n      *puVar3 = uVar6;\n      bVar2 = param_1[1];\n      param_1 = param_1 + 1;\n      puVar4 = puVar3 + 1;\n    }" ({ "{") (while_statement "while (uVar6 = (uint)bVar2, (char)bVar2 < '\0') {\n        if ((bVar2 & 0xe0) == 0xc0) {\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar4 = puVar3 + 1;\n        *puVar3 = uVar6 | bVar2 & 0x3f;\n        param_1 = pbVar5 + 1;\n        bVar2 = pbVar5[1];\n        puVar3 = puVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }" (while "while") (parenthesized_expression "(uVar6 = (uint)bVar2, (char)bVar2 < '\0')" (( "(") (comma_expression "uVar6 = (uint)bVar2, (char)bVar2 < '\0'" (assignment_expression "uVar6 = (uint)bVar2" (identifier "uVar6") (= "=") (cast_expression "(uint)bVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar2"))) (, ",") (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "bVar2")) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) () ")")) (compound_statement "{\n        if ((bVar2 & 0xe0) == 0xc0) {\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }\n        if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar4 = puVar3 + 1;\n        *puVar3 = uVar6 | bVar2 & 0x3f;\n        param_1 = pbVar5 + 1;\n        bVar2 = pbVar5[1];\n        puVar3 = puVar4;\n        if (bVar2 == 0) goto LAB_0023411a;\n      }" ({ "{") (if_statement "if ((bVar2 & 0xe0) == 0xc0) {\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }\n        else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }" (if "if") (parenthesized_expression "((bVar2 & 0xe0) == 0xc0)" (( "(") (binary_expression "(bVar2 & 0xe0) == 0xc0" (parenthesized_expression "(bVar2 & 0xe0)" (( "(") (binary_expression "bVar2 & 0xe0" (identifier "bVar2") (& "&") (number_literal "0xe0")) () ")")) (== "==") (number_literal "0xc0")) () ")")) (compound_statement "{\n          pbVar5 = param_1 + 1;\n          uVar6 = (uVar6 & 0x1f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[1];\n        }" ({ "{") (expression_statement "pbVar5 = param_1 + 1;" (assignment_expression "pbVar5 = param_1 + 1" (identifier "pbVar5") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar6 = (uVar6 & 0x1f) << 6;" (assignment_expression "uVar6 = (uVar6 & 0x1f) << 6" (identifier "uVar6") (= "=") (binary_expression "(uVar6 & 0x1f) << 6" (parenthesized_expression "(uVar6 & 0x1f)" (( "(") (binary_expression "uVar6 & 0x1f" (identifier "uVar6") (& "&") (number_literal "0x1f")) () ")")) (<< "<<") (number_literal "6"))) (; ";")) (expression_statement "*puVar3 = uVar6;" (assignment_expression "*puVar3 = uVar6" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "bVar2 = param_1[1];" (assignment_expression "bVar2 = param_1[1]" (identifier "bVar2") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }" (else "else") (compound_statement "{\n          if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }\n          *puVar3 = uVar6 << 0xc;\n          if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }\n          pbVar5 = param_1 + 2;\n          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;\n          *puVar3 = uVar6;\n          bVar2 = param_1[2];\n        }" ({ "{") (if_statement "if ((bVar2 & 0xf0) != 0xe0) {\n            return 0;\n          }" (if "if") (parenthesized_expression "((bVar2 & 0xf0) != 0xe0)" (( "(") (binary_expression "(bVar2 & 0xf0) != 0xe0" (parenthesized_expression "(bVar2 & 0xf0)" (( "(") (binary_expression "bVar2 & 0xf0" (identifier "bVar2") (& "&") (number_literal "0xf0")) () ")")) (!= "!=") (number_literal "0xe0")) () ")")) (compound_statement "{\n            return 0;\n          }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "*puVar3 = uVar6 << 0xc;" (assignment_expression "*puVar3 = uVar6 << 0xc" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (binary_expression "uVar6 << 0xc" (identifier "uVar6") (<< "<<") (number_literal "0xc"))) (; ";")) (if_statement "if ((param_1[1] & 0xc0) != 0x80) {\n            return 0;\n          }" (if "if") (parenthesized_expression "((param_1[1] & 0xc0) != 0x80)" (( "(") (binary_expression "(param_1[1] & 0xc0) != 0x80" (parenthesized_expression "(param_1[1] & 0xc0)" (( "(") (binary_expression "param_1[1] & 0xc0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (& "&") (number_literal "0xc0")) () ")")) (!= "!=") (number_literal "0x80")) () ")")) (compound_statement "{\n            return 0;\n          }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "pbVar5 = param_1 + 2;" (assignment_expression "pbVar5 = param_1 + 2" (identifier "pbVar5") (= "=") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;" (assignment_expression "uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6" (identifier "uVar6") (= "=") (binary_expression "uVar6 << 0xc | (param_1[1] & 0x3f) << 6" (binary_expression "uVar6 << 0xc" (identifier "uVar6") (<< "<<") (number_literal "0xc")) (| "|") (binary_expression "(param_1[1] & 0x3f) << 6" (parenthesized_expression "(param_1[1] & 0x3f)" (( "(") (binary_expression "param_1[1] & 0x3f" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (& "&") (number_literal "0x3f")) () ")")) (<< "<<") (number_literal "6")))) (; ";")) (expression_statement "*puVar3 = uVar6;" (assignment_expression "*puVar3 = uVar6" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "bVar2 = param_1[2];" (assignment_expression "bVar2 = param_1[2]" (identifier "bVar2") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}")))) (if_statement "if ((bVar2 & 0xc0) != 0x80) {\n          return 0;\n        }" (if "if") (parenthesized_expression "((bVar2 & 0xc0) != 0x80)" (( "(") (binary_expression "(bVar2 & 0xc0) != 0x80" (parenthesized_expression "(bVar2 & 0xc0)" (( "(") (binary_expression "bVar2 & 0xc0" (identifier "bVar2") (& "&") (number_literal "0xc0")) () ")")) (!= "!=") (number_literal "0x80")) () ")")) (compound_statement "{\n          return 0;\n        }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "puVar4 = puVar3 + 1;" (assignment_expression "puVar4 = puVar3 + 1" (identifier "puVar4") (= "=") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar3 = uVar6 | bVar2 & 0x3f;" (assignment_expression "*puVar3 = uVar6 | bVar2 & 0x3f" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (binary_expression "uVar6 | bVar2 & 0x3f" (identifier "uVar6") (| "|") (binary_expression "bVar2 & 0x3f" (identifier "bVar2") (& "&") (number_literal "0x3f")))) (; ";")) (expression_statement "param_1 = pbVar5 + 1;" (assignment_expression "param_1 = pbVar5 + 1" (identifier "param_1") (= "=") (binary_expression "pbVar5 + 1" (identifier "pbVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar2 = pbVar5[1];" (assignment_expression "bVar2 = pbVar5[1]" (identifier "bVar2") (= "=") (subscript_expression "pbVar5[1]" (identifier "pbVar5") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "puVar3 = puVar4;" (assignment_expression "puVar3 = puVar4" (identifier "puVar3") (= "=") (identifier "puVar4")) (; ";")) (if_statement "if (bVar2 == 0) goto LAB_0023411a;" (if "if") (parenthesized_expression "(bVar2 == 0)" (( "(") (binary_expression "bVar2 == 0" (identifier "bVar2") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0023411a;" (goto "goto") (statement_identifier "LAB_0023411a") (; ";"))) (} "}"))) (expression_statement "*puVar3 = uVar6;" (assignment_expression "*puVar3 = uVar6" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "bVar2 = param_1[1];" (assignment_expression "bVar2 = param_1[1]" (identifier "bVar2") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar4 = puVar3 + 1;" (assignment_expression "puVar4 = puVar3 + 1" (identifier "puVar4") (= "=") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (labeled_statement "LAB_0023411a:\n    *puVar4 = 0;" (statement_identifier "LAB_0023411a") (: ":") (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0")) (; ";"))) (return_statement "return (int)puVar4 + (4 - (int)param_2) >> 2;" (return "return") (binary_expression "(int)puVar4 + (4 - (int)param_2) >> 2" (binary_expression "(int)puVar4 + (4 - (int)param_2)" (cast_expression "(int)puVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar4")) (+ "+") (parenthesized_expression "(4 - (int)param_2)" (( "(") (binary_expression "4 - (int)param_2" (number_literal "4") (- "-") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2"))) () ")"))) (>> ">>") (number_literal "2")) (; ";")) (} "}"))) (expression_statement "pbVar5 = param_1;" (assignment_expression "pbVar5 = param_1" (identifier "pbVar5") (= "=") (identifier "param_1")) (; ";")) (if_statement "if (bVar2 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(bVar2 == 0)" (( "(") (binary_expression "bVar2 == 0" (identifier "bVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (do_statement "do {\n    if ((char)bVar2 < '\0') {\n      if ((bVar2 & 0xe0) == 0xc0) {\n        pbVar1 = pbVar5 + 1;\n        pbVar5 = pbVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }\n      if ((bVar2 & 0xf0) != 0xe0) {\n        return 0;\n      }\n      if ((pbVar5[1] & 0xc0) != 0x80) {\n        return 0;\n      }\n      if ((pbVar5[2] & 0xc0) != 0x80) {\n        return 0;\n      }\n      bVar2 = pbVar5[3];\n      pbVar5 = pbVar5 + 3;\n    }\n    else {\nLAB_00234160:\n      bVar2 = pbVar5[1];\n      pbVar5 = pbVar5 + 1;\n    }\n    if (bVar2 == 0) {\n      return (int)pbVar5 - (int)param_1;\n    }\n  } while( true );" (do "do") (compound_statement "{\n    if ((char)bVar2 < '\0') {\n      if ((bVar2 & 0xe0) == 0xc0) {\n        pbVar1 = pbVar5 + 1;\n        pbVar5 = pbVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }\n      if ((bVar2 & 0xf0) != 0xe0) {\n        return 0;\n      }\n      if ((pbVar5[1] & 0xc0) != 0x80) {\n        return 0;\n      }\n      if ((pbVar5[2] & 0xc0) != 0x80) {\n        return 0;\n      }\n      bVar2 = pbVar5[3];\n      pbVar5 = pbVar5 + 3;\n    }\n    else {\nLAB_00234160:\n      bVar2 = pbVar5[1];\n      pbVar5 = pbVar5 + 1;\n    }\n    if (bVar2 == 0) {\n      return (int)pbVar5 - (int)param_1;\n    }\n  }" ({ "{") (if_statement "if ((char)bVar2 < '\0') {\n      if ((bVar2 & 0xe0) == 0xc0) {\n        pbVar1 = pbVar5 + 1;\n        pbVar5 = pbVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }\n      if ((bVar2 & 0xf0) != 0xe0) {\n        return 0;\n      }\n      if ((pbVar5[1] & 0xc0) != 0x80) {\n        return 0;\n      }\n      if ((pbVar5[2] & 0xc0) != 0x80) {\n        return 0;\n      }\n      bVar2 = pbVar5[3];\n      pbVar5 = pbVar5 + 3;\n    }\n    else {\nLAB_00234160:\n      bVar2 = pbVar5[1];\n      pbVar5 = pbVar5 + 1;\n    }" (if "if") (parenthesized_expression "((char)bVar2 < '\0')" (( "(") (binary_expression "(char)bVar2 < '\0'" (cast_expression "(char)bVar2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "bVar2")) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      if ((bVar2 & 0xe0) == 0xc0) {\n        pbVar1 = pbVar5 + 1;\n        pbVar5 = pbVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }\n      if ((bVar2 & 0xf0) != 0xe0) {\n        return 0;\n      }\n      if ((pbVar5[1] & 0xc0) != 0x80) {\n        return 0;\n      }\n      if ((pbVar5[2] & 0xc0) != 0x80) {\n        return 0;\n      }\n      bVar2 = pbVar5[3];\n      pbVar5 = pbVar5 + 3;\n    }" ({ "{") (if_statement "if ((bVar2 & 0xe0) == 0xc0) {\n        pbVar1 = pbVar5 + 1;\n        pbVar5 = pbVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }" (if "if") (parenthesized_expression "((bVar2 & 0xe0) == 0xc0)" (( "(") (binary_expression "(bVar2 & 0xe0) == 0xc0" (parenthesized_expression "(bVar2 & 0xe0)" (( "(") (binary_expression "bVar2 & 0xe0" (identifier "bVar2") (& "&") (number_literal "0xe0")) () ")")) (== "==") (number_literal "0xc0")) () ")")) (compound_statement "{\n        pbVar1 = pbVar5 + 1;\n        pbVar5 = pbVar5 + 1;\n        if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }\n        goto LAB_00234160;\n      }" ({ "{") (expression_statement "pbVar1 = pbVar5 + 1;" (assignment_expression "pbVar1 = pbVar5 + 1" (identifier "pbVar1") (= "=") (binary_expression "pbVar5 + 1" (identifier "pbVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar5 = pbVar5 + 1;" (assignment_expression "pbVar5 = pbVar5 + 1" (identifier "pbVar5") (= "=") (binary_expression "pbVar5 + 1" (identifier "pbVar5") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((*pbVar1 & 0xc0) != 0x80) {\n          return 0;\n        }" (if "if") (parenthesized_expression "((*pbVar1 & 0xc0) != 0x80)" (( "(") (binary_expression "(*pbVar1 & 0xc0) != 0x80" (parenthesized_expression "(*pbVar1 & 0xc0)" (( "(") (binary_expression "*pbVar1 & 0xc0" (pointer_expression "*pbVar1" (* "*") (identifier "pbVar1")) (& "&") (number_literal "0xc0")) () ")")) (!= "!=") (number_literal "0x80")) () ")")) (compound_statement "{\n          return 0;\n        }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (goto_statement "goto LAB_00234160;" (goto "goto") (statement_identifier "LAB_00234160") (; ";")) (} "}"))) (if_statement "if ((bVar2 & 0xf0) != 0xe0) {\n        return 0;\n      }" (if "if") (parenthesized_expression "((bVar2 & 0xf0) != 0xe0)" (( "(") (binary_expression "(bVar2 & 0xf0) != 0xe0" (parenthesized_expression "(bVar2 & 0xf0)" (( "(") (binary_expression "bVar2 & 0xf0" (identifier "bVar2") (& "&") (number_literal "0xf0")) () ")")) (!= "!=") (number_literal "0xe0")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if ((pbVar5[1] & 0xc0) != 0x80) {\n        return 0;\n      }" (if "if") (parenthesized_expression "((pbVar5[1] & 0xc0) != 0x80)" (( "(") (binary_expression "(pbVar5[1] & 0xc0) != 0x80" (parenthesized_expression "(pbVar5[1] & 0xc0)" (( "(") (binary_expression "pbVar5[1] & 0xc0" (subscript_expression "pbVar5[1]" (identifier "pbVar5") ([ "[") (number_literal "1") (] "]")) (& "&") (number_literal "0xc0")) () ")")) (!= "!=") (number_literal "0x80")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if ((pbVar5[2] & 0xc0) != 0x80) {\n        return 0;\n      }" (if "if") (parenthesized_expression "((pbVar5[2] & 0xc0) != 0x80)" (( "(") (binary_expression "(pbVar5[2] & 0xc0) != 0x80" (parenthesized_expression "(pbVar5[2] & 0xc0)" (( "(") (binary_expression "pbVar5[2] & 0xc0" (subscript_expression "pbVar5[2]" (identifier "pbVar5") ([ "[") (number_literal "2") (] "]")) (& "&") (number_literal "0xc0")) () ")")) (!= "!=") (number_literal "0x80")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "bVar2 = pbVar5[3];" (assignment_expression "bVar2 = pbVar5[3]" (identifier "bVar2") (= "=") (subscript_expression "pbVar5[3]" (identifier "pbVar5") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "pbVar5 = pbVar5 + 3;" (assignment_expression "pbVar5 = pbVar5 + 3" (identifier "pbVar5") (= "=") (binary_expression "pbVar5 + 3" (identifier "pbVar5") (+ "+") (number_literal "3"))) (; ";")) (} "}")) (else_clause "else {\nLAB_00234160:\n      bVar2 = pbVar5[1];\n      pbVar5 = pbVar5 + 1;\n    }" (else "else") (compound_statement "{\nLAB_00234160:\n      bVar2 = pbVar5[1];\n      pbVar5 = pbVar5 + 1;\n    }" ({ "{") (labeled_statement "LAB_00234160:\n      bVar2 = pbVar5[1];" (statement_identifier "LAB_00234160") (: ":") (expression_statement "bVar2 = pbVar5[1];" (assignment_expression "bVar2 = pbVar5[1]" (identifier "bVar2") (= "=") (subscript_expression "pbVar5[1]" (identifier "pbVar5") ([ "[") (number_literal "1") (] "]"))) (; ";"))) (expression_statement "pbVar5 = pbVar5 + 1;" (assignment_expression "pbVar5 = pbVar5 + 1" (identifier "pbVar5") (= "=") (binary_expression "pbVar5 + 1" (identifier "pbVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (if_statement "if (bVar2 == 0) {\n      return (int)pbVar5 - (int)param_1;\n    }" (if "if") (parenthesized_expression "(bVar2 == 0)" (( "(") (binary_expression "bVar2 == 0" (identifier "bVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return (int)pbVar5 - (int)param_1;\n    }" ({ "{") (return_statement "return (int)pbVar5 - (int)param_1;" (return "return") (binary_expression "(int)pbVar5 - (int)param_1" (cast_expression "(int)pbVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar5")) (- "-") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

size_t __regparm3 function_1(type_1 *var_3,type_2 *var_1)

{
  type_3 *pbVar1;
  type_3 var_2;
  type_2 *var_5;
  type_2 *pwVar4;
  type_1 *var_6;
  type_2 var_4;
  
  var_2 = *var_3;
  pwVar4 = var_1;
  if (var_1 != (type_2 *)0x0) {
    while (var_5 = pwVar4, var_2 != 0) {
      while (var_4 = (type_2)var_2, (char)var_2 < '\0') {
        if ((var_2 & 0xe0) == 0xc0) {
          var_6 = var_3 + 1;
          var_4 = (var_4 & 0x1fU) << 6;
          *var_5 = var_4;
          var_2 = var_3[1];
        }
        else {
          if ((var_2 & 0xf0) != 0xe0) {
            return 0;
          }
          *var_5 = var_4 << 0xc;
          if ((var_3[1] & 0xc0) != 0x80) {
            return 0;
          }
          var_6 = var_3 + 2;
          var_4 = var_4 << 0xc | (var_3[1] & 0x3f) << 6;
          *var_5 = var_4;
          var_2 = var_3[2];
        }
        if ((var_2 & 0xc0) != 0x80) {
          return 0;
        }
        pwVar4 = var_5 + 1;
        *var_5 = var_4 | var_2 & 0x3f;
        var_3 = var_6 + 1;
        var_2 = var_6[1];
        var_5 = pwVar4;
        if (var_2 == 0) goto LAB_0023411a;
      }
      *var_5 = var_4;
      var_2 = var_3[1];
      var_3 = var_3 + 1;
      pwVar4 = var_5 + 1;
    }
LAB_0023411a:
    *pwVar4 = L'\0';
    return (int)pwVar4 + (4 - (int)var_1) >> 2;
  }
  var_6 = var_3;
  if (var_2 == 0) {
    return 0;
  }
  do {
    if ((char)var_2 < '\0') {
      if ((var_2 & 0xe0) == 0xc0) {
        pbVar1 = var_6 + 1;
        var_6 = var_6 + 1;
        if ((*pbVar1 & 0xc0) != 0x80) {
          return 0;
        }
        goto LAB_00234160;
      }
      if ((var_2 & 0xf0) != 0xe0) {
        return 0;
      }
      if ((var_6[1] & 0xc0) != 0x80) {
        return 0;
      }
      if ((var_6[2] & 0xc0) != 0x80) {
        return 0;
      }
      var_2 = var_6[3];
      var_6 = var_6 + 3;
    }
    else {
LAB_00234160:
      var_2 = var_6[1];
      var_6 = var_6 + 1;
    }
    if (var_2 == 0) {
      return (int)var_6 - (int)var_3;
    }
  } while( true );
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) body: (compound_statement (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (char_literal (escape_sequence))))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (return_statement (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))))) condition: (parenthesized_expression (true))))))

int __regparm3 MASKED(byte *param_1,uint *param_2)

{
  byte *pbVar1;
  byte bVar2;
  uint *puVar3;
  uint *puVar4;
  byte *pbVar5;
  uint uVar6;
  
  bVar2 = *param_1;
  puVar4 = param_2;
  if (param_2 != (uint *)0x0) {
    while (puVar3 = puVar4, bVar2 != 0) {
      while (uVar6 = (uint)bVar2, (char)bVar2 < '\0') {
        if ((bVar2 & 0xe0) == 0xc0) {
          pbVar5 = param_1 + 1;
          uVar6 = (uVar6 & 0x1f) << 6;
          *puVar3 = uVar6;
          bVar2 = param_1[1];
        }
        else {
          if ((bVar2 & 0xf0) != 0xe0) {
            return 0;
          }
          *puVar3 = uVar6 << 0xc;
          if ((param_1[1] & 0xc0) != 0x80) {
            return 0;
          }
          pbVar5 = param_1 + 2;
          uVar6 = uVar6 << 0xc | (param_1[1] & 0x3f) << 6;
          *puVar3 = uVar6;
          bVar2 = param_1[2];
        }
        if ((bVar2 & 0xc0) != 0x80) {
          return 0;
        }
        puVar4 = puVar3 + 1;
        *puVar3 = uVar6 | bVar2 & 0x3f;
        param_1 = pbVar5 + 1;
        bVar2 = pbVar5[1];
        puVar3 = puVar4;
        if (bVar2 == 0) goto LAB_0023411a;
      }
      *puVar3 = uVar6;
      bVar2 = param_1[1];
      param_1 = param_1 + 1;
      puVar4 = puVar3 + 1;
    }
LAB_0023411a:
    *puVar4 = 0;
    return (int)puVar4 + (4 - (int)param_2) >> 2;
  }
  pbVar5 = param_1;
  if (bVar2 == 0) {
    return 0;
  }
  do {
    if ((char)bVar2 < '\0') {
      if ((bVar2 & 0xe0) == 0xc0) {
        pbVar1 = pbVar5 + 1;
        pbVar5 = pbVar5 + 1;
        if ((*pbVar1 & 0xc0) != 0x80) {
          return 0;
        }
        goto LAB_00234160;
      }
      if ((bVar2 & 0xf0) != 0xe0) {
        return 0;
      }
      if ((pbVar5[1] & 0xc0) != 0x80) {
        return 0;
      }
      if ((pbVar5[2] & 0xc0) != 0x80) {
        return 0;
      }
      bVar2 = pbVar5[3];
      pbVar5 = pbVar5 + 3;
    }
    else {
LAB_00234160:
      bVar2 = pbVar5[1];
      pbVar5 = pbVar5 + 1;
    }
    if (bVar2 == 0) {
      return (int)pbVar5 - (int)param_1;
    }
  } while( true );
}

