
size_t UTF8ToUTF16(uchar *utf8,wchar_t *utf16)

{
  byte *pbVar1;
  uint uVar2;
  byte bVar3;
  uint *puVar4;
  uchar *puVar5;
  uint uVar6;
  uchar *puVar7;
  
  uVar2 = (uint)*utf8;
  puVar4 = (uint *)utf16;
  if (utf16 == (wchar_t *)0x0) {
    puVar7 = utf8;
    if (uVar2 == 0) {
      return 0;
    }
    do {
      bVar3 = (byte)uVar2;
      while ((char)bVar3 < '\0') {
        if ((uVar2 & 0xffffffe0) == 0xc0) {
          pbVar1 = puVar7 + 1;
          puVar7 = puVar7 + 1;
          if ((*pbVar1 & 0xc0) != 0x80) {
            return 0;
          }
          break;
        }
        if ((uVar2 & 0xfffffff0) != 0xe0) {
          return 0;
        }
        if ((puVar7[1] & 0xc0) != 0x80) {
          return 0;
        }
        if ((puVar7[2] & 0xc0) != 0x80) {
          return 0;
        }
        puVar5 = puVar7 + 3;
        bVar3 = puVar7[3];
        uVar2 = (uint)bVar3;
        puVar7 = puVar5;
        if (uVar2 == 0) goto LAB_00267750;
      }
      puVar5 = puVar7 + 1;
      uVar2 = (uint)puVar7[1];
      puVar7 = puVar5;
      if (uVar2 == 0) {
LAB_00267750:
        return (int)puVar5 - (int)utf8;
      }
    } while( true );
  }
  while (uVar2 != 0) {
    while ((char)uVar2 < '\0') {
      if ((uVar2 & 0xffffffe0) == 0xc0) {
        puVar7 = utf8 + 1;
        uVar2 = (uVar2 & 0x1f) << 6;
        *puVar4 = uVar2;
        uVar6 = (uint)utf8[1];
        uVar2 = uVar6 & 0x3f | uVar2;
      }
      else {
        if ((uVar2 & 0xfffffff0) != 0xe0) {
          return 0;
        }
        *puVar4 = uVar2 << 0xc;
        puVar7 = utf8 + 2;
        if ((utf8[1] & 0xffffffc0) != 0x80) {
          return 0;
        }
        uVar2 = (utf8[1] & 0x3f) << 6 | uVar2 << 0xc;
        *puVar4 = uVar2;
        uVar6 = (uint)utf8[2];
        uVar2 = uVar6 & 0x3f | uVar2;
      }
      if ((uVar6 & 0xffffffc0) != 0x80) {
        return 0;
      }
      *puVar4 = uVar2;
      utf8 = puVar7 + 1;
      uVar2 = (uint)puVar7[1];
      puVar4 = puVar4 + 1;
      if (uVar2 == 0) goto LAB_00267688;
    }
    *puVar4 = uVar2;
    uVar2 = (uint)utf8[1];
    utf8 = utf8 + 1;
    puVar4 = puVar4 + 1;
  }
LAB_00267688:
  *puVar4 = 0;
  return (int)puVar4 + (4 - (int)utf16) >> 2;
}



int FUN_002675d4(byte *param_1,uint *param_2)

{
  uint uVar1;
  byte bVar2;
  uint *puVar3;
  byte *pbVar4;
  uint uVar5;
  byte *pbVar6;
  
  uVar1 = (uint)*param_1;
  puVar3 = param_2;
  if (param_2 == (uint *)0x0) {
    pbVar6 = param_1;
    if (uVar1 == 0) {
      return 0;
    }
    do {
      bVar2 = (byte)uVar1;
      while ((char)bVar2 < '\0') {
        if ((uVar1 & 0xffffffe0) == 0xc0) {
          pbVar4 = pbVar6 + 1;
          pbVar6 = pbVar6 + 1;
          if ((*pbVar4 & 0xc0) != 0x80) {
            return 0;
          }
          break;
        }
        if ((uVar1 & 0xfffffff0) != 0xe0) {
          return 0;
        }
        if ((pbVar6[1] & 0xc0) != 0x80) {
          return 0;
        }
        if ((pbVar6[2] & 0xc0) != 0x80) {
          return 0;
        }
        pbVar4 = pbVar6 + 3;
        bVar2 = pbVar6[3];
        uVar1 = (uint)bVar2;
        pbVar6 = pbVar4;
        if (uVar1 == 0) goto LAB_00267750;
      }
      pbVar4 = pbVar6 + 1;
      uVar1 = (uint)pbVar6[1];
      pbVar6 = pbVar4;
      if (uVar1 == 0) {
LAB_00267750:
        return (int)pbVar4 - (int)param_1;
      }
    } while( true );
  }
  while (uVar1 != 0) {
    while ((char)uVar1 < '\0') {
      if ((uVar1 & 0xffffffe0) == 0xc0) {
        pbVar6 = param_1 + 1;
        uVar1 = (uVar1 & 0x1f) << 6;
        *puVar3 = uVar1;
        uVar5 = (uint)param_1[1];
        uVar1 = uVar5 & 0x3f | uVar1;
      }
      else {
        if ((uVar1 & 0xfffffff0) != 0xe0) {
          return 0;
        }
        *puVar3 = uVar1 << 0xc;
        pbVar6 = param_1 + 2;
        if ((param_1[1] & 0xffffffc0) != 0x80) {
          return 0;
        }
        uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;
        *puVar3 = uVar1;
        uVar5 = (uint)param_1[2];
        uVar1 = uVar5 & 0x3f | uVar1;
      }
      if ((uVar5 & 0xffffffc0) != 0x80) {
        return 0;
      }
      *puVar3 = uVar1;
      param_1 = pbVar6 + 1;
      uVar1 = (uint)pbVar6[1];
      puVar3 = puVar3 + 1;
      if (uVar1 == 0) goto LAB_00267688;
    }
    *puVar3 = uVar1;
    uVar1 = (uint)param_1[1];
    puVar3 = puVar3 + 1;
    param_1 = param_1 + 1;
  }
LAB_00267688:
  *puVar3 = 0;
  return (int)puVar3 + (4 - (int)param_2) >> 2;
}


beq a1,zero,0x002676cc
_lbu v0,0x0(a0)
beq v0,zero,0x00267774
_nop
li t4,-0x20
li t3,0xc0
li t2,-0x10
li t5,0xe0
li t1,-0x40
li t0,0x80
b 0x00267618
_or v1,a1,zero
sw v0,0x0(v1)
addiu a0,a2,0x1
lbu v0,0x1(a2)
beq v0,zero,0x00267688
_addiu v1,v1,0x4
seb a2,v0
bgez a2,0x00267604
_or a2,a0,zero
and a2,v0,t4
sll t6,v0,0xc
beq a2,t3,0x0026769c
_and a3,v0,t2
bne a3,t5,0x002676c0
_nop
sw t6,0x0(v1)
addiu a2,a0,0x2
lbu a3,0x1(a0)
sll v0,a3,0x6
and a3,a3,t1
bne a3,t0,0x002676c0
_andi v0,v0,0xfc0
or v0,v0,t6
sw v0,0x0(v1)
lbu a0,0x2(a0)
andi a3,a0,0x3f
and a0,a0,t1
bne a0,t0,0x002676c0
_or v0,a3,v0
sw v0,0x0(v1)
addiu a0,a2,0x1
lbu v0,0x1(a2)
bne v0,zero,0x00267618
_addiu v1,v1,0x4
addiu v0,v1,0x4
sw zero,0x0(v1)
subu v0,v0,a1
jr ra
_sra v0,v0,0x2
sll v0,v0,0x6
addiu a2,a0,0x1
andi v0,v0,0x7c0
sw v0,0x0(v1)
lbu a0,0x1(a0)
andi a3,a0,0x3f
and a0,a0,t1
beq a0,t0,0x00267674
_or v0,a3,v0
or v0,zero,zero
jr ra
_nop
beq v0,zero,0x002676c0
_or v1,a0,zero
li t2,-0x20
li t1,0xc0
li t0,-0x10
li t3,0xe0
li a3,-0x40
b 0x00267704
_li a2,0x80
or v0,v1,zero
addiu v1,v0,0x1
lbu v0,0x1(v0)
beq v0,zero,0x00267750
_nop
seb a1,v0
bgez a1,0x002676f0
_and a1,v0,t2
beq a1,t1,0x00267758
_and v0,v0,t0
bne v0,t3,0x002676c0
_nop
lbu a1,0x1(v1)
and a1,a3,a1
bne a1,a2,0x002676c0
_addiu v0,v1,0x2
lbu v1,0x2(v1)
and v1,a3,v1
bne v1,a2,0x002676c0
_nop
addiu v1,v0,0x1
lbu v0,0x1(v0)
bne v0,zero,0x00267708
_seb a1,v0
jr ra
_subu v0,v1,a0
lbu a1,0x1(v1)
addiu v0,v1,0x1
and v1,a3,a1
beq v1,a2,0x002676f8
_addiu v1,v0,0x1
jr ra
_or v0,zero,zero
b 0x00267688
_or v1,a1,zero
(translation_unit "int FUN_002675d4(byte *param_1,uint *param_2)\n\n{\n  uint uVar1;\n  byte bVar2;\n  uint *puVar3;\n  byte *pbVar4;\n  uint uVar5;\n  byte *pbVar6;\n  \n  uVar1 = (uint)*param_1;\n  puVar3 = param_2;\n  if (param_2 == (uint *)0x0) {\n    pbVar6 = param_1;\n    if (uVar1 == 0) {\n      return 0;\n    }\n    do {\n      bVar2 = (byte)uVar1;\n      while ((char)bVar2 < '\0') {\n        if ((uVar1 & 0xffffffe0) == 0xc0) {\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((pbVar6[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((pbVar6[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        pbVar4 = pbVar6 + 3;\n        bVar2 = pbVar6[3];\n        uVar1 = (uint)bVar2;\n        pbVar6 = pbVar4;\n        if (uVar1 == 0) goto LAB_00267750;\n      }\n      pbVar4 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      pbVar6 = pbVar4;\n      if (uVar1 == 0) {\nLAB_00267750:\n        return (int)pbVar4 - (int)param_1;\n      }\n    } while( true );\n  }\n  while (uVar1 != 0) {\n    while ((char)uVar1 < '\0') {\n      if ((uVar1 & 0xffffffe0) == 0xc0) {\n        pbVar6 = param_1 + 1;\n        uVar1 = (uVar1 & 0x1f) << 6;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[1];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      else {\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar3 = uVar1 << 0xc;\n        pbVar6 = param_1 + 2;\n        if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[2];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      if ((uVar5 & 0xffffffc0) != 0x80) {\n        return 0;\n      }\n      *puVar3 = uVar1;\n      param_1 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      puVar3 = puVar3 + 1;\n      if (uVar1 == 0) goto LAB_00267688;\n    }\n    *puVar3 = uVar1;\n    uVar1 = (uint)param_1[1];\n    puVar3 = puVar3 + 1;\n    param_1 = param_1 + 1;\n  }\nLAB_00267688:\n  *puVar3 = 0;\n  return (int)puVar3 + (4 - (int)param_2) >> 2;\n}\n\n" (function_definition "int FUN_002675d4(byte *param_1,uint *param_2)\n\n{\n  uint uVar1;\n  byte bVar2;\n  uint *puVar3;\n  byte *pbVar4;\n  uint uVar5;\n  byte *pbVar6;\n  \n  uVar1 = (uint)*param_1;\n  puVar3 = param_2;\n  if (param_2 == (uint *)0x0) {\n    pbVar6 = param_1;\n    if (uVar1 == 0) {\n      return 0;\n    }\n    do {\n      bVar2 = (byte)uVar1;\n      while ((char)bVar2 < '\0') {\n        if ((uVar1 & 0xffffffe0) == 0xc0) {\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((pbVar6[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((pbVar6[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        pbVar4 = pbVar6 + 3;\n        bVar2 = pbVar6[3];\n        uVar1 = (uint)bVar2;\n        pbVar6 = pbVar4;\n        if (uVar1 == 0) goto LAB_00267750;\n      }\n      pbVar4 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      pbVar6 = pbVar4;\n      if (uVar1 == 0) {\nLAB_00267750:\n        return (int)pbVar4 - (int)param_1;\n      }\n    } while( true );\n  }\n  while (uVar1 != 0) {\n    while ((char)uVar1 < '\0') {\n      if ((uVar1 & 0xffffffe0) == 0xc0) {\n        pbVar6 = param_1 + 1;\n        uVar1 = (uVar1 & 0x1f) << 6;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[1];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      else {\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar3 = uVar1 << 0xc;\n        pbVar6 = param_1 + 2;\n        if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[2];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      if ((uVar5 & 0xffffffc0) != 0x80) {\n        return 0;\n      }\n      *puVar3 = uVar1;\n      param_1 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      puVar3 = puVar3 + 1;\n      if (uVar1 == 0) goto LAB_00267688;\n    }\n    *puVar3 = uVar1;\n    uVar1 = (uint)param_1[1];\n    puVar3 = puVar3 + 1;\n    param_1 = param_1 + 1;\n  }\nLAB_00267688:\n  *puVar3 = 0;\n  return (int)puVar3 + (4 - (int)param_2) >> 2;\n}" primitive_type (function_declarator "FUN_002675d4(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  uint uVar1;\n  byte bVar2;\n  uint *puVar3;\n  byte *pbVar4;\n  uint uVar5;\n  byte *pbVar6;\n  \n  uVar1 = (uint)*param_1;\n  puVar3 = param_2;\n  if (param_2 == (uint *)0x0) {\n    pbVar6 = param_1;\n    if (uVar1 == 0) {\n      return 0;\n    }\n    do {\n      bVar2 = (byte)uVar1;\n      while ((char)bVar2 < '\0') {\n        if ((uVar1 & 0xffffffe0) == 0xc0) {\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((pbVar6[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((pbVar6[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        pbVar4 = pbVar6 + 3;\n        bVar2 = pbVar6[3];\n        uVar1 = (uint)bVar2;\n        pbVar6 = pbVar4;\n        if (uVar1 == 0) goto LAB_00267750;\n      }\n      pbVar4 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      pbVar6 = pbVar4;\n      if (uVar1 == 0) {\nLAB_00267750:\n        return (int)pbVar4 - (int)param_1;\n      }\n    } while( true );\n  }\n  while (uVar1 != 0) {\n    while ((char)uVar1 < '\0') {\n      if ((uVar1 & 0xffffffe0) == 0xc0) {\n        pbVar6 = param_1 + 1;\n        uVar1 = (uVar1 & 0x1f) << 6;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[1];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      else {\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar3 = uVar1 << 0xc;\n        pbVar6 = param_1 + 2;\n        if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[2];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      if ((uVar5 & 0xffffffc0) != 0x80) {\n        return 0;\n      }\n      *puVar3 = uVar1;\n      param_1 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      puVar3 = puVar3 + 1;\n      if (uVar1 == 0) goto LAB_00267688;\n    }\n    *puVar3 = uVar1;\n    uVar1 = (uint)param_1[1];\n    puVar3 = puVar3 + 1;\n    param_1 = param_1 + 1;\n  }\nLAB_00267688:\n  *puVar3 = 0;\n  return (int)puVar3 + (4 - (int)param_2) >> 2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (expression_statement "uVar1 = (uint)*param_1;" (assignment_expression "uVar1 = (uint)*param_1" identifier = (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "puVar3 = param_2;" (assignment_expression "puVar3 = param_2" identifier = identifier) ;) (if_statement "if (param_2 == (uint *)0x0) {\n    pbVar6 = param_1;\n    if (uVar1 == 0) {\n      return 0;\n    }\n    do {\n      bVar2 = (byte)uVar1;\n      while ((char)bVar2 < '\0') {\n        if ((uVar1 & 0xffffffe0) == 0xc0) {\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((pbVar6[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((pbVar6[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        pbVar4 = pbVar6 + 3;\n        bVar2 = pbVar6[3];\n        uVar1 = (uint)bVar2;\n        pbVar6 = pbVar4;\n        if (uVar1 == 0) goto LAB_00267750;\n      }\n      pbVar4 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      pbVar6 = pbVar4;\n      if (uVar1 == 0) {\nLAB_00267750:\n        return (int)pbVar4 - (int)param_1;\n      }\n    } while( true );\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    pbVar6 = param_1;\n    if (uVar1 == 0) {\n      return 0;\n    }\n    do {\n      bVar2 = (byte)uVar1;\n      while ((char)bVar2 < '\0') {\n        if ((uVar1 & 0xffffffe0) == 0xc0) {\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((pbVar6[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((pbVar6[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        pbVar4 = pbVar6 + 3;\n        bVar2 = pbVar6[3];\n        uVar1 = (uint)bVar2;\n        pbVar6 = pbVar4;\n        if (uVar1 == 0) goto LAB_00267750;\n      }\n      pbVar4 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      pbVar6 = pbVar4;\n      if (uVar1 == 0) {\nLAB_00267750:\n        return (int)pbVar4 - (int)param_1;\n      }\n    } while( true );\n  }" { (expression_statement "pbVar6 = param_1;" (assignment_expression "pbVar6 = param_1" identifier = identifier) ;) (if_statement "if (uVar1 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (do_statement "do {\n      bVar2 = (byte)uVar1;\n      while ((char)bVar2 < '\0') {\n        if ((uVar1 & 0xffffffe0) == 0xc0) {\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((pbVar6[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((pbVar6[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        pbVar4 = pbVar6 + 3;\n        bVar2 = pbVar6[3];\n        uVar1 = (uint)bVar2;\n        pbVar6 = pbVar4;\n        if (uVar1 == 0) goto LAB_00267750;\n      }\n      pbVar4 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      pbVar6 = pbVar4;\n      if (uVar1 == 0) {\nLAB_00267750:\n        return (int)pbVar4 - (int)param_1;\n      }\n    } while( true );" do (compound_statement "{\n      bVar2 = (byte)uVar1;\n      while ((char)bVar2 < '\0') {\n        if ((uVar1 & 0xffffffe0) == 0xc0) {\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((pbVar6[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((pbVar6[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        pbVar4 = pbVar6 + 3;\n        bVar2 = pbVar6[3];\n        uVar1 = (uint)bVar2;\n        pbVar6 = pbVar4;\n        if (uVar1 == 0) goto LAB_00267750;\n      }\n      pbVar4 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      pbVar6 = pbVar4;\n      if (uVar1 == 0) {\nLAB_00267750:\n        return (int)pbVar4 - (int)param_1;\n      }\n    }" { (expression_statement "bVar2 = (byte)uVar1;" (assignment_expression "bVar2 = (byte)uVar1" identifier = (cast_expression "(byte)uVar1" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (while_statement "while ((char)bVar2 < '\0') {\n        if ((uVar1 & 0xffffffe0) == 0xc0) {\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((pbVar6[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((pbVar6[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        pbVar4 = pbVar6 + 3;\n        bVar2 = pbVar6[3];\n        uVar1 = (uint)bVar2;\n        pbVar6 = pbVar4;\n        if (uVar1 == 0) goto LAB_00267750;\n      }" while (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 ((uVar1 & 0xffffffe0) == 0xc0) {\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((pbVar6[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((pbVar6[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        pbVar4 = pbVar6 + 3;\n        bVar2 = pbVar6[3];\n        uVar1 = (uint)bVar2;\n        pbVar6 = pbVar4;\n        if (uVar1 == 0) goto LAB_00267750;\n      }" { (if_statement "if ((uVar1 & 0xffffffe0) == 0xc0) {\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }" if (parenthesized_expression "((uVar1 & 0xffffffe0) == 0xc0)" ( (binary_expression "(uVar1 & 0xffffffe0) == 0xc0" (parenthesized_expression "(uVar1 & 0xffffffe0)" ( (binary_expression "uVar1 & 0xffffffe0" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }" { (expression_statement "pbVar4 = pbVar6 + 1;" (assignment_expression "pbVar4 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (if_statement "if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }" if (parenthesized_expression "((*pbVar4 & 0xc0) != 0x80)" ( (binary_expression "(*pbVar4 & 0xc0) != 0x80" (parenthesized_expression "(*pbVar4 & 0xc0)" ( (binary_expression "*pbVar4 & 0xc0" (pointer_expression "*pbVar4" * identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n            return 0;\n          }" { (return_statement "return 0;" return number_literal ;) })) (break_statement "break;" break ;) })) (if_statement "if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }" if (parenthesized_expression "((uVar1 & 0xfffffff0) != 0xe0)" ( (binary_expression "(uVar1 & 0xfffffff0) != 0xe0" (parenthesized_expression "(uVar1 & 0xfffffff0)" ( (binary_expression "uVar1 & 0xfffffff0" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((pbVar6[1] & 0xc0) != 0x80) {\n          return 0;\n        }" if (parenthesized_expression "((pbVar6[1] & 0xc0) != 0x80)" ( (binary_expression "(pbVar6[1] & 0xc0) != 0x80" (parenthesized_expression "(pbVar6[1] & 0xc0)" ( (binary_expression "pbVar6[1] & 0xc0" (subscript_expression "pbVar6[1]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((pbVar6[2] & 0xc0) != 0x80) {\n          return 0;\n        }" if (parenthesized_expression "((pbVar6[2] & 0xc0) != 0x80)" ( (binary_expression "(pbVar6[2] & 0xc0) != 0x80" (parenthesized_expression "(pbVar6[2] & 0xc0)" ( (binary_expression "pbVar6[2] & 0xc0" (subscript_expression "pbVar6[2]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pbVar4 = pbVar6 + 3;" (assignment_expression "pbVar4 = pbVar6 + 3" identifier = (binary_expression "pbVar6 + 3" identifier + number_literal)) ;) (expression_statement "bVar2 = pbVar6[3];" (assignment_expression "bVar2 = pbVar6[3]" identifier = (subscript_expression "pbVar6[3]" identifier [ number_literal ])) ;) (expression_statement "uVar1 = (uint)bVar2;" (assignment_expression "uVar1 = (uint)bVar2" identifier = (cast_expression "(uint)bVar2" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "pbVar6 = pbVar4;" (assignment_expression "pbVar6 = pbVar4" identifier = identifier) ;) (if_statement "if (uVar1 == 0) goto LAB_00267750;" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00267750;" goto statement_identifier ;)) })) (expression_statement "pbVar4 = pbVar6 + 1;" (assignment_expression "pbVar4 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = (uint)pbVar6[1];" (assignment_expression "uVar1 = (uint)pbVar6[1]" identifier = (cast_expression "(uint)pbVar6[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar6[1]" identifier [ number_literal ]))) ;) (expression_statement "pbVar6 = pbVar4;" (assignment_expression "pbVar6 = pbVar4" identifier = identifier) ;) (if_statement "if (uVar1 == 0) {\nLAB_00267750:\n        return (int)pbVar4 - (int)param_1;\n      }" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00267750:\n        return (int)pbVar4 - (int)param_1;\n      }" { (labeled_statement "LAB_00267750:\n        return (int)pbVar4 - (int)param_1;" statement_identifier : (return_statement "return (int)pbVar4 - (int)param_1;" return (binary_expression "(int)pbVar4 - (int)param_1" (cast_expression "(int)pbVar4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ;)) })) }) while (parenthesized_expression "( true )" ( true )) ;) })) (while_statement "while (uVar1 != 0) {\n    while ((char)uVar1 < '\0') {\n      if ((uVar1 & 0xffffffe0) == 0xc0) {\n        pbVar6 = param_1 + 1;\n        uVar1 = (uVar1 & 0x1f) << 6;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[1];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      else {\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar3 = uVar1 << 0xc;\n        pbVar6 = param_1 + 2;\n        if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[2];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      if ((uVar5 & 0xffffffc0) != 0x80) {\n        return 0;\n      }\n      *puVar3 = uVar1;\n      param_1 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      puVar3 = puVar3 + 1;\n      if (uVar1 == 0) goto LAB_00267688;\n    }\n    *puVar3 = uVar1;\n    uVar1 = (uint)param_1[1];\n    puVar3 = puVar3 + 1;\n    param_1 = param_1 + 1;\n  }" while (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    while ((char)uVar1 < '\0') {\n      if ((uVar1 & 0xffffffe0) == 0xc0) {\n        pbVar6 = param_1 + 1;\n        uVar1 = (uVar1 & 0x1f) << 6;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[1];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      else {\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar3 = uVar1 << 0xc;\n        pbVar6 = param_1 + 2;\n        if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[2];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      if ((uVar5 & 0xffffffc0) != 0x80) {\n        return 0;\n      }\n      *puVar3 = uVar1;\n      param_1 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      puVar3 = puVar3 + 1;\n      if (uVar1 == 0) goto LAB_00267688;\n    }\n    *puVar3 = uVar1;\n    uVar1 = (uint)param_1[1];\n    puVar3 = puVar3 + 1;\n    param_1 = param_1 + 1;\n  }" { (while_statement "while ((char)uVar1 < '\0') {\n      if ((uVar1 & 0xffffffe0) == 0xc0) {\n        pbVar6 = param_1 + 1;\n        uVar1 = (uVar1 & 0x1f) << 6;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[1];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      else {\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar3 = uVar1 << 0xc;\n        pbVar6 = param_1 + 2;\n        if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[2];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      if ((uVar5 & 0xffffffc0) != 0x80) {\n        return 0;\n      }\n      *puVar3 = uVar1;\n      param_1 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      puVar3 = puVar3 + 1;\n      if (uVar1 == 0) goto LAB_00267688;\n    }" while (parenthesized_expression "((char)uVar1 < '\0')" ( (binary_expression "(char)uVar1 < '\0'" (cast_expression "(char)uVar1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if ((uVar1 & 0xffffffe0) == 0xc0) {\n        pbVar6 = param_1 + 1;\n        uVar1 = (uVar1 & 0x1f) << 6;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[1];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      else {\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar3 = uVar1 << 0xc;\n        pbVar6 = param_1 + 2;\n        if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[2];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      if ((uVar5 & 0xffffffc0) != 0x80) {\n        return 0;\n      }\n      *puVar3 = uVar1;\n      param_1 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      puVar3 = puVar3 + 1;\n      if (uVar1 == 0) goto LAB_00267688;\n    }" { (if_statement "if ((uVar1 & 0xffffffe0) == 0xc0) {\n        pbVar6 = param_1 + 1;\n        uVar1 = (uVar1 & 0x1f) << 6;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[1];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      else {\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar3 = uVar1 << 0xc;\n        pbVar6 = param_1 + 2;\n        if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[2];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }" if (parenthesized_expression "((uVar1 & 0xffffffe0) == 0xc0)" ( (binary_expression "(uVar1 & 0xffffffe0) == 0xc0" (parenthesized_expression "(uVar1 & 0xffffffe0)" ( (binary_expression "uVar1 & 0xffffffe0" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        pbVar6 = param_1 + 1;\n        uVar1 = (uVar1 & 0x1f) << 6;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[1];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }" { (expression_statement "pbVar6 = param_1 + 1;" (assignment_expression "pbVar6 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = (uVar1 & 0x1f) << 6;" (assignment_expression "uVar1 = (uVar1 & 0x1f) << 6" identifier = (binary_expression "(uVar1 & 0x1f) << 6" (parenthesized_expression "(uVar1 & 0x1f)" ( (binary_expression "uVar1 & 0x1f" identifier & number_literal) )) << number_literal)) ;) (expression_statement "*puVar3 = uVar1;" (assignment_expression "*puVar3 = uVar1" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "uVar5 = (uint)param_1[1];" (assignment_expression "uVar5 = (uint)param_1[1]" identifier = (cast_expression "(uint)param_1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar1 = uVar5 & 0x3f | uVar1;" (assignment_expression "uVar1 = uVar5 & 0x3f | uVar1" identifier = (binary_expression "uVar5 & 0x3f | uVar1" (binary_expression "uVar5 & 0x3f" identifier & number_literal) | identifier)) ;) }) (else_clause "else {\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar3 = uVar1 << 0xc;\n        pbVar6 = param_1 + 2;\n        if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[2];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }" else (compound_statement "{\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar3 = uVar1 << 0xc;\n        pbVar6 = param_1 + 2;\n        if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[2];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }" { (if_statement "if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }" if (parenthesized_expression "((uVar1 & 0xfffffff0) != 0xe0)" ( (binary_expression "(uVar1 & 0xfffffff0) != 0xe0" (parenthesized_expression "(uVar1 & 0xfffffff0)" ( (binary_expression "uVar1 & 0xfffffff0" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*puVar3 = uVar1 << 0xc;" (assignment_expression "*puVar3 = uVar1 << 0xc" (pointer_expression "*puVar3" * identifier) = (binary_expression "uVar1 << 0xc" identifier << number_literal)) ;) (expression_statement "pbVar6 = param_1 + 2;" (assignment_expression "pbVar6 = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (if_statement "if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }" if (parenthesized_expression "((param_1[1] & 0xffffffc0) != 0x80)" ( (binary_expression "(param_1[1] & 0xffffffc0) != 0x80" (parenthesized_expression "(param_1[1] & 0xffffffc0)" ( (binary_expression "param_1[1] & 0xffffffc0" (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 "uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;" (assignment_expression "uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc" identifier = (binary_expression "(param_1[1] & 0x3f) << 6 | uVar1 << 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 [ number_literal ]) & number_literal) )) << number_literal) | (binary_expression "uVar1 << 0xc" identifier << number_literal))) ;) (expression_statement "*puVar3 = uVar1;" (assignment_expression "*puVar3 = uVar1" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "uVar5 = (uint)param_1[2];" (assignment_expression "uVar5 = (uint)param_1[2]" identifier = (cast_expression "(uint)param_1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (expression_statement "uVar1 = uVar5 & 0x3f | uVar1;" (assignment_expression "uVar1 = uVar5 & 0x3f | uVar1" identifier = (binary_expression "uVar5 & 0x3f | uVar1" (binary_expression "uVar5 & 0x3f" identifier & number_literal) | identifier)) ;) }))) (if_statement "if ((uVar5 & 0xffffffc0) != 0x80) {\n        return 0;\n      }" if (parenthesized_expression "((uVar5 & 0xffffffc0) != 0x80)" ( (binary_expression "(uVar5 & 0xffffffc0) != 0x80" (parenthesized_expression "(uVar5 & 0xffffffc0)" ( (binary_expression "uVar5 & 0xffffffc0" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*puVar3 = uVar1;" (assignment_expression "*puVar3 = uVar1" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "param_1 = pbVar6 + 1;" (assignment_expression "param_1 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = (uint)pbVar6[1];" (assignment_expression "uVar1 = (uint)pbVar6[1]" identifier = (cast_expression "(uint)pbVar6[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar6[1]" identifier [ number_literal ]))) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (if_statement "if (uVar1 == 0) goto LAB_00267688;" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00267688;" goto statement_identifier ;)) })) (expression_statement "*puVar3 = uVar1;" (assignment_expression "*puVar3 = uVar1" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "uVar1 = (uint)param_1[1];" (assignment_expression "uVar1 = (uint)param_1[1]" identifier = (cast_expression "(uint)param_1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 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)) ;) })) (labeled_statement "LAB_00267688:\n  *puVar3 = 0;" statement_identifier : (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;)) (return_statement "return (int)puVar3 + (4 - (int)param_2) >> 2;" return (binary_expression "(int)puVar3 + (4 - (int)param_2) >> 2" (binary_expression "(int)puVar3 + (4 - (int)param_2)" (cast_expression "(int)puVar3" ( (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) ;) })))
(translation_unit "size_t UTF8ToUTF16(uchar *utf8,wchar_t *utf16)\n\n{\n  byte *pbVar1;\n  uint uVar2;\n  byte bVar3;\n  uint *puVar4;\n  uchar *puVar5;\n  uint uVar6;\n  uchar *puVar7;\n  \n  uVar2 = (uint)*utf8;\n  puVar4 = (uint *)utf16;\n  if (utf16 == (wchar_t *)0x0) {\n    puVar7 = utf8;\n    if (uVar2 == 0) {\n      return 0;\n    }\n    do {\n      bVar3 = (byte)uVar2;\n      while ((char)bVar3 < '\0') {\n        if ((uVar2 & 0xffffffe0) == 0xc0) {\n          pbVar1 = puVar7 + 1;\n          puVar7 = puVar7 + 1;\n          if ((*pbVar1 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar2 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((puVar7[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((puVar7[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar5 = puVar7 + 3;\n        bVar3 = puVar7[3];\n        uVar2 = (uint)bVar3;\n        puVar7 = puVar5;\n        if (uVar2 == 0) goto LAB_00267750;\n      }\n      puVar5 = puVar7 + 1;\n      uVar2 = (uint)puVar7[1];\n      puVar7 = puVar5;\n      if (uVar2 == 0) {\nLAB_00267750:\n        return (int)puVar5 - (int)utf8;\n      }\n    } while( true );\n  }\n  while (uVar2 != 0) {\n    while ((char)uVar2 < '\0') {\n      if ((uVar2 & 0xffffffe0) == 0xc0) {\n        puVar7 = utf8 + 1;\n        uVar2 = (uVar2 & 0x1f) << 6;\n        *puVar4 = uVar2;\n        uVar6 = (uint)utf8[1];\n        uVar2 = uVar6 & 0x3f | uVar2;\n      }\n      else {\n        if ((uVar2 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar4 = uVar2 << 0xc;\n        puVar7 = utf8 + 2;\n        if ((utf8[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar2 = (utf8[1] & 0x3f) << 6 | uVar2 << 0xc;\n        *puVar4 = uVar2;\n        uVar6 = (uint)utf8[2];\n        uVar2 = uVar6 & 0x3f | uVar2;\n      }\n      if ((uVar6 & 0xffffffc0) != 0x80) {\n        return 0;\n      }\n      *puVar4 = uVar2;\n      utf8 = puVar7 + 1;\n      uVar2 = (uint)puVar7[1];\n      puVar4 = puVar4 + 1;\n      if (uVar2 == 0) goto LAB_00267688;\n    }\n    *puVar4 = uVar2;\n    uVar2 = (uint)utf8[1];\n    utf8 = utf8 + 1;\n    puVar4 = puVar4 + 1;\n  }\nLAB_00267688:\n  *puVar4 = 0;\n  return (int)puVar4 + (4 - (int)utf16) >> 2;\n}\n\n" (function_definition "size_t UTF8ToUTF16(uchar *utf8,wchar_t *utf16)\n\n{\n  byte *pbVar1;\n  uint uVar2;\n  byte bVar3;\n  uint *puVar4;\n  uchar *puVar5;\n  uint uVar6;\n  uchar *puVar7;\n  \n  uVar2 = (uint)*utf8;\n  puVar4 = (uint *)utf16;\n  if (utf16 == (wchar_t *)0x0) {\n    puVar7 = utf8;\n    if (uVar2 == 0) {\n      return 0;\n    }\n    do {\n      bVar3 = (byte)uVar2;\n      while ((char)bVar3 < '\0') {\n        if ((uVar2 & 0xffffffe0) == 0xc0) {\n          pbVar1 = puVar7 + 1;\n          puVar7 = puVar7 + 1;\n          if ((*pbVar1 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar2 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((puVar7[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((puVar7[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar5 = puVar7 + 3;\n        bVar3 = puVar7[3];\n        uVar2 = (uint)bVar3;\n        puVar7 = puVar5;\n        if (uVar2 == 0) goto LAB_00267750;\n      }\n      puVar5 = puVar7 + 1;\n      uVar2 = (uint)puVar7[1];\n      puVar7 = puVar5;\n      if (uVar2 == 0) {\nLAB_00267750:\n        return (int)puVar5 - (int)utf8;\n      }\n    } while( true );\n  }\n  while (uVar2 != 0) {\n    while ((char)uVar2 < '\0') {\n      if ((uVar2 & 0xffffffe0) == 0xc0) {\n        puVar7 = utf8 + 1;\n        uVar2 = (uVar2 & 0x1f) << 6;\n        *puVar4 = uVar2;\n        uVar6 = (uint)utf8[1];\n        uVar2 = uVar6 & 0x3f | uVar2;\n      }\n      else {\n        if ((uVar2 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar4 = uVar2 << 0xc;\n        puVar7 = utf8 + 2;\n        if ((utf8[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar2 = (utf8[1] & 0x3f) << 6 | uVar2 << 0xc;\n        *puVar4 = uVar2;\n        uVar6 = (uint)utf8[2];\n        uVar2 = uVar6 & 0x3f | uVar2;\n      }\n      if ((uVar6 & 0xffffffc0) != 0x80) {\n        return 0;\n      }\n      *puVar4 = uVar2;\n      utf8 = puVar7 + 1;\n      uVar2 = (uint)puVar7[1];\n      puVar4 = puVar4 + 1;\n      if (uVar2 == 0) goto LAB_00267688;\n    }\n    *puVar4 = uVar2;\n    uVar2 = (uint)utf8[1];\n    utf8 = utf8 + 1;\n    puVar4 = puVar4 + 1;\n  }\nLAB_00267688:\n  *puVar4 = 0;\n  return (int)puVar4 + (4 - (int)utf16) >> 2;\n}" primitive_type (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  uint uVar2;\n  byte bVar3;\n  uint *puVar4;\n  uchar *puVar5;\n  uint uVar6;\n  uchar *puVar7;\n  \n  uVar2 = (uint)*utf8;\n  puVar4 = (uint *)utf16;\n  if (utf16 == (wchar_t *)0x0) {\n    puVar7 = utf8;\n    if (uVar2 == 0) {\n      return 0;\n    }\n    do {\n      bVar3 = (byte)uVar2;\n      while ((char)bVar3 < '\0') {\n        if ((uVar2 & 0xffffffe0) == 0xc0) {\n          pbVar1 = puVar7 + 1;\n          puVar7 = puVar7 + 1;\n          if ((*pbVar1 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar2 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((puVar7[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((puVar7[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar5 = puVar7 + 3;\n        bVar3 = puVar7[3];\n        uVar2 = (uint)bVar3;\n        puVar7 = puVar5;\n        if (uVar2 == 0) goto LAB_00267750;\n      }\n      puVar5 = puVar7 + 1;\n      uVar2 = (uint)puVar7[1];\n      puVar7 = puVar5;\n      if (uVar2 == 0) {\nLAB_00267750:\n        return (int)puVar5 - (int)utf8;\n      }\n    } while( true );\n  }\n  while (uVar2 != 0) {\n    while ((char)uVar2 < '\0') {\n      if ((uVar2 & 0xffffffe0) == 0xc0) {\n        puVar7 = utf8 + 1;\n        uVar2 = (uVar2 & 0x1f) << 6;\n        *puVar4 = uVar2;\n        uVar6 = (uint)utf8[1];\n        uVar2 = uVar6 & 0x3f | uVar2;\n      }\n      else {\n        if ((uVar2 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar4 = uVar2 << 0xc;\n        puVar7 = utf8 + 2;\n        if ((utf8[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar2 = (utf8[1] & 0x3f) << 6 | uVar2 << 0xc;\n        *puVar4 = uVar2;\n        uVar6 = (uint)utf8[2];\n        uVar2 = uVar6 & 0x3f | uVar2;\n      }\n      if ((uVar6 & 0xffffffc0) != 0x80) {\n        return 0;\n      }\n      *puVar4 = uVar2;\n      utf8 = puVar7 + 1;\n      uVar2 = (uint)puVar7[1];\n      puVar4 = puVar4 + 1;\n      if (uVar2 == 0) goto LAB_00267688;\n    }\n    *puVar4 = uVar2;\n    uVar2 = (uint)utf8[1];\n    utf8 = utf8 + 1;\n    puVar4 = puVar4 + 1;\n  }\nLAB_00267688:\n  *puVar4 = 0;\n  return (int)puVar4 + (4 - (int)utf16) >> 2;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uchar *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uchar *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (expression_statement "uVar2 = (uint)*utf8;" (assignment_expression "uVar2 = (uint)*utf8" identifier = (binary_expression "(uint)*utf8" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "puVar4 = (uint *)utf16;" (assignment_expression "puVar4 = (uint *)utf16" identifier = (cast_expression "(uint *)utf16" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (utf16 == (wchar_t *)0x0) {\n    puVar7 = utf8;\n    if (uVar2 == 0) {\n      return 0;\n    }\n    do {\n      bVar3 = (byte)uVar2;\n      while ((char)bVar3 < '\0') {\n        if ((uVar2 & 0xffffffe0) == 0xc0) {\n          pbVar1 = puVar7 + 1;\n          puVar7 = puVar7 + 1;\n          if ((*pbVar1 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar2 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((puVar7[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((puVar7[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar5 = puVar7 + 3;\n        bVar3 = puVar7[3];\n        uVar2 = (uint)bVar3;\n        puVar7 = puVar5;\n        if (uVar2 == 0) goto LAB_00267750;\n      }\n      puVar5 = puVar7 + 1;\n      uVar2 = (uint)puVar7[1];\n      puVar7 = puVar5;\n      if (uVar2 == 0) {\nLAB_00267750:\n        return (int)puVar5 - (int)utf8;\n      }\n    } while( true );\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    puVar7 = utf8;\n    if (uVar2 == 0) {\n      return 0;\n    }\n    do {\n      bVar3 = (byte)uVar2;\n      while ((char)bVar3 < '\0') {\n        if ((uVar2 & 0xffffffe0) == 0xc0) {\n          pbVar1 = puVar7 + 1;\n          puVar7 = puVar7 + 1;\n          if ((*pbVar1 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar2 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((puVar7[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((puVar7[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar5 = puVar7 + 3;\n        bVar3 = puVar7[3];\n        uVar2 = (uint)bVar3;\n        puVar7 = puVar5;\n        if (uVar2 == 0) goto LAB_00267750;\n      }\n      puVar5 = puVar7 + 1;\n      uVar2 = (uint)puVar7[1];\n      puVar7 = puVar5;\n      if (uVar2 == 0) {\nLAB_00267750:\n        return (int)puVar5 - (int)utf8;\n      }\n    } while( true );\n  }" { (expression_statement "puVar7 = utf8;" (assignment_expression "puVar7 = utf8" identifier = identifier) ;) (if_statement "if (uVar2 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (do_statement "do {\n      bVar3 = (byte)uVar2;\n      while ((char)bVar3 < '\0') {\n        if ((uVar2 & 0xffffffe0) == 0xc0) {\n          pbVar1 = puVar7 + 1;\n          puVar7 = puVar7 + 1;\n          if ((*pbVar1 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar2 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((puVar7[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((puVar7[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar5 = puVar7 + 3;\n        bVar3 = puVar7[3];\n        uVar2 = (uint)bVar3;\n        puVar7 = puVar5;\n        if (uVar2 == 0) goto LAB_00267750;\n      }\n      puVar5 = puVar7 + 1;\n      uVar2 = (uint)puVar7[1];\n      puVar7 = puVar5;\n      if (uVar2 == 0) {\nLAB_00267750:\n        return (int)puVar5 - (int)utf8;\n      }\n    } while( true );" do (compound_statement "{\n      bVar3 = (byte)uVar2;\n      while ((char)bVar3 < '\0') {\n        if ((uVar2 & 0xffffffe0) == 0xc0) {\n          pbVar1 = puVar7 + 1;\n          puVar7 = puVar7 + 1;\n          if ((*pbVar1 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar2 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((puVar7[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((puVar7[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar5 = puVar7 + 3;\n        bVar3 = puVar7[3];\n        uVar2 = (uint)bVar3;\n        puVar7 = puVar5;\n        if (uVar2 == 0) goto LAB_00267750;\n      }\n      puVar5 = puVar7 + 1;\n      uVar2 = (uint)puVar7[1];\n      puVar7 = puVar5;\n      if (uVar2 == 0) {\nLAB_00267750:\n        return (int)puVar5 - (int)utf8;\n      }\n    }" { (expression_statement "bVar3 = (byte)uVar2;" (assignment_expression "bVar3 = (byte)uVar2" identifier = (cast_expression "(byte)uVar2" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (while_statement "while ((char)bVar3 < '\0') {\n        if ((uVar2 & 0xffffffe0) == 0xc0) {\n          pbVar1 = puVar7 + 1;\n          puVar7 = puVar7 + 1;\n          if ((*pbVar1 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar2 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((puVar7[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((puVar7[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar5 = puVar7 + 3;\n        bVar3 = puVar7[3];\n        uVar2 = (uint)bVar3;\n        puVar7 = puVar5;\n        if (uVar2 == 0) goto LAB_00267750;\n      }" while (parenthesized_expression "((char)bVar3 < '\0')" ( (binary_expression "(char)bVar3 < '\0'" (cast_expression "(char)bVar3" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        if ((uVar2 & 0xffffffe0) == 0xc0) {\n          pbVar1 = puVar7 + 1;\n          puVar7 = puVar7 + 1;\n          if ((*pbVar1 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar2 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((puVar7[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((puVar7[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        puVar5 = puVar7 + 3;\n        bVar3 = puVar7[3];\n        uVar2 = (uint)bVar3;\n        puVar7 = puVar5;\n        if (uVar2 == 0) goto LAB_00267750;\n      }" { (if_statement "if ((uVar2 & 0xffffffe0) == 0xc0) {\n          pbVar1 = puVar7 + 1;\n          puVar7 = puVar7 + 1;\n          if ((*pbVar1 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }" if (parenthesized_expression "((uVar2 & 0xffffffe0) == 0xc0)" ( (binary_expression "(uVar2 & 0xffffffe0) == 0xc0" (parenthesized_expression "(uVar2 & 0xffffffe0)" ( (binary_expression "uVar2 & 0xffffffe0" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n          pbVar1 = puVar7 + 1;\n          puVar7 = puVar7 + 1;\n          if ((*pbVar1 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }" { (expression_statement "pbVar1 = puVar7 + 1;" (assignment_expression "pbVar1 = puVar7 + 1" identifier = (binary_expression "puVar7 + 1" identifier + number_literal)) ;) (expression_statement "puVar7 = puVar7 + 1;" (assignment_expression "puVar7 = puVar7 + 1" identifier = (binary_expression "puVar7 + 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 ;) })) (break_statement "break;" break ;) })) (if_statement "if ((uVar2 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }" if (parenthesized_expression "((uVar2 & 0xfffffff0) != 0xe0)" ( (binary_expression "(uVar2 & 0xfffffff0) != 0xe0" (parenthesized_expression "(uVar2 & 0xfffffff0)" ( (binary_expression "uVar2 & 0xfffffff0" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((puVar7[1] & 0xc0) != 0x80) {\n          return 0;\n        }" if (parenthesized_expression "((puVar7[1] & 0xc0) != 0x80)" ( (binary_expression "(puVar7[1] & 0xc0) != 0x80" (parenthesized_expression "(puVar7[1] & 0xc0)" ( (binary_expression "puVar7[1] & 0xc0" (subscript_expression "puVar7[1]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((puVar7[2] & 0xc0) != 0x80) {\n          return 0;\n        }" if (parenthesized_expression "((puVar7[2] & 0xc0) != 0x80)" ( (binary_expression "(puVar7[2] & 0xc0) != 0x80" (parenthesized_expression "(puVar7[2] & 0xc0)" ( (binary_expression "puVar7[2] & 0xc0" (subscript_expression "puVar7[2]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "puVar5 = puVar7 + 3;" (assignment_expression "puVar5 = puVar7 + 3" identifier = (binary_expression "puVar7 + 3" identifier + number_literal)) ;) (expression_statement "bVar3 = puVar7[3];" (assignment_expression "bVar3 = puVar7[3]" identifier = (subscript_expression "puVar7[3]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = (uint)bVar3;" (assignment_expression "uVar2 = (uint)bVar3" identifier = (cast_expression "(uint)bVar3" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "puVar7 = puVar5;" (assignment_expression "puVar7 = puVar5" identifier = identifier) ;) (if_statement "if (uVar2 == 0) goto LAB_00267750;" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00267750;" goto statement_identifier ;)) })) (expression_statement "puVar5 = puVar7 + 1;" (assignment_expression "puVar5 = puVar7 + 1" identifier = (binary_expression "puVar7 + 1" identifier + number_literal)) ;) (expression_statement "uVar2 = (uint)puVar7[1];" (assignment_expression "uVar2 = (uint)puVar7[1]" identifier = (cast_expression "(uint)puVar7[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "puVar7[1]" identifier [ number_literal ]))) ;) (expression_statement "puVar7 = puVar5;" (assignment_expression "puVar7 = puVar5" identifier = identifier) ;) (if_statement "if (uVar2 == 0) {\nLAB_00267750:\n        return (int)puVar5 - (int)utf8;\n      }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00267750:\n        return (int)puVar5 - (int)utf8;\n      }" { (labeled_statement "LAB_00267750:\n        return (int)puVar5 - (int)utf8;" statement_identifier : (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 )) ;) })) (while_statement "while (uVar2 != 0) {\n    while ((char)uVar2 < '\0') {\n      if ((uVar2 & 0xffffffe0) == 0xc0) {\n        puVar7 = utf8 + 1;\n        uVar2 = (uVar2 & 0x1f) << 6;\n        *puVar4 = uVar2;\n        uVar6 = (uint)utf8[1];\n        uVar2 = uVar6 & 0x3f | uVar2;\n      }\n      else {\n        if ((uVar2 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar4 = uVar2 << 0xc;\n        puVar7 = utf8 + 2;\n        if ((utf8[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar2 = (utf8[1] & 0x3f) << 6 | uVar2 << 0xc;\n        *puVar4 = uVar2;\n        uVar6 = (uint)utf8[2];\n        uVar2 = uVar6 & 0x3f | uVar2;\n      }\n      if ((uVar6 & 0xffffffc0) != 0x80) {\n        return 0;\n      }\n      *puVar4 = uVar2;\n      utf8 = puVar7 + 1;\n      uVar2 = (uint)puVar7[1];\n      puVar4 = puVar4 + 1;\n      if (uVar2 == 0) goto LAB_00267688;\n    }\n    *puVar4 = uVar2;\n    uVar2 = (uint)utf8[1];\n    utf8 = utf8 + 1;\n    puVar4 = puVar4 + 1;\n  }" while (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    while ((char)uVar2 < '\0') {\n      if ((uVar2 & 0xffffffe0) == 0xc0) {\n        puVar7 = utf8 + 1;\n        uVar2 = (uVar2 & 0x1f) << 6;\n        *puVar4 = uVar2;\n        uVar6 = (uint)utf8[1];\n        uVar2 = uVar6 & 0x3f | uVar2;\n      }\n      else {\n        if ((uVar2 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar4 = uVar2 << 0xc;\n        puVar7 = utf8 + 2;\n        if ((utf8[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar2 = (utf8[1] & 0x3f) << 6 | uVar2 << 0xc;\n        *puVar4 = uVar2;\n        uVar6 = (uint)utf8[2];\n        uVar2 = uVar6 & 0x3f | uVar2;\n      }\n      if ((uVar6 & 0xffffffc0) != 0x80) {\n        return 0;\n      }\n      *puVar4 = uVar2;\n      utf8 = puVar7 + 1;\n      uVar2 = (uint)puVar7[1];\n      puVar4 = puVar4 + 1;\n      if (uVar2 == 0) goto LAB_00267688;\n    }\n    *puVar4 = uVar2;\n    uVar2 = (uint)utf8[1];\n    utf8 = utf8 + 1;\n    puVar4 = puVar4 + 1;\n  }" { (while_statement "while ((char)uVar2 < '\0') {\n      if ((uVar2 & 0xffffffe0) == 0xc0) {\n        puVar7 = utf8 + 1;\n        uVar2 = (uVar2 & 0x1f) << 6;\n        *puVar4 = uVar2;\n        uVar6 = (uint)utf8[1];\n        uVar2 = uVar6 & 0x3f | uVar2;\n      }\n      else {\n        if ((uVar2 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar4 = uVar2 << 0xc;\n        puVar7 = utf8 + 2;\n        if ((utf8[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar2 = (utf8[1] & 0x3f) << 6 | uVar2 << 0xc;\n        *puVar4 = uVar2;\n        uVar6 = (uint)utf8[2];\n        uVar2 = uVar6 & 0x3f | uVar2;\n      }\n      if ((uVar6 & 0xffffffc0) != 0x80) {\n        return 0;\n      }\n      *puVar4 = uVar2;\n      utf8 = puVar7 + 1;\n      uVar2 = (uint)puVar7[1];\n      puVar4 = puVar4 + 1;\n      if (uVar2 == 0) goto LAB_00267688;\n    }" while (parenthesized_expression "((char)uVar2 < '\0')" ( (binary_expression "(char)uVar2 < '\0'" (cast_expression "(char)uVar2" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if ((uVar2 & 0xffffffe0) == 0xc0) {\n        puVar7 = utf8 + 1;\n        uVar2 = (uVar2 & 0x1f) << 6;\n        *puVar4 = uVar2;\n        uVar6 = (uint)utf8[1];\n        uVar2 = uVar6 & 0x3f | uVar2;\n      }\n      else {\n        if ((uVar2 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar4 = uVar2 << 0xc;\n        puVar7 = utf8 + 2;\n        if ((utf8[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar2 = (utf8[1] & 0x3f) << 6 | uVar2 << 0xc;\n        *puVar4 = uVar2;\n        uVar6 = (uint)utf8[2];\n        uVar2 = uVar6 & 0x3f | uVar2;\n      }\n      if ((uVar6 & 0xffffffc0) != 0x80) {\n        return 0;\n      }\n      *puVar4 = uVar2;\n      utf8 = puVar7 + 1;\n      uVar2 = (uint)puVar7[1];\n      puVar4 = puVar4 + 1;\n      if (uVar2 == 0) goto LAB_00267688;\n    }" { (if_statement "if ((uVar2 & 0xffffffe0) == 0xc0) {\n        puVar7 = utf8 + 1;\n        uVar2 = (uVar2 & 0x1f) << 6;\n        *puVar4 = uVar2;\n        uVar6 = (uint)utf8[1];\n        uVar2 = uVar6 & 0x3f | uVar2;\n      }\n      else {\n        if ((uVar2 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar4 = uVar2 << 0xc;\n        puVar7 = utf8 + 2;\n        if ((utf8[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar2 = (utf8[1] & 0x3f) << 6 | uVar2 << 0xc;\n        *puVar4 = uVar2;\n        uVar6 = (uint)utf8[2];\n        uVar2 = uVar6 & 0x3f | uVar2;\n      }" if (parenthesized_expression "((uVar2 & 0xffffffe0) == 0xc0)" ( (binary_expression "(uVar2 & 0xffffffe0) == 0xc0" (parenthesized_expression "(uVar2 & 0xffffffe0)" ( (binary_expression "uVar2 & 0xffffffe0" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        puVar7 = utf8 + 1;\n        uVar2 = (uVar2 & 0x1f) << 6;\n        *puVar4 = uVar2;\n        uVar6 = (uint)utf8[1];\n        uVar2 = uVar6 & 0x3f | uVar2;\n      }" { (expression_statement "puVar7 = utf8 + 1;" (assignment_expression "puVar7 = utf8 + 1" identifier = (binary_expression "utf8 + 1" identifier + number_literal)) ;) (expression_statement "uVar2 = (uVar2 & 0x1f) << 6;" (assignment_expression "uVar2 = (uVar2 & 0x1f) << 6" identifier = (binary_expression "(uVar2 & 0x1f) << 6" (parenthesized_expression "(uVar2 & 0x1f)" ( (binary_expression "uVar2 & 0x1f" identifier & number_literal) )) << number_literal)) ;) (expression_statement "*puVar4 = uVar2;" (assignment_expression "*puVar4 = uVar2" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "uVar6 = (uint)utf8[1];" (assignment_expression "uVar6 = (uint)utf8[1]" identifier = (cast_expression "(uint)utf8[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "utf8[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar2 = uVar6 & 0x3f | uVar2;" (assignment_expression "uVar2 = uVar6 & 0x3f | uVar2" identifier = (binary_expression "uVar6 & 0x3f | uVar2" (binary_expression "uVar6 & 0x3f" identifier & number_literal) | identifier)) ;) }) (else_clause "else {\n        if ((uVar2 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar4 = uVar2 << 0xc;\n        puVar7 = utf8 + 2;\n        if ((utf8[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar2 = (utf8[1] & 0x3f) << 6 | uVar2 << 0xc;\n        *puVar4 = uVar2;\n        uVar6 = (uint)utf8[2];\n        uVar2 = uVar6 & 0x3f | uVar2;\n      }" else (compound_statement "{\n        if ((uVar2 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar4 = uVar2 << 0xc;\n        puVar7 = utf8 + 2;\n        if ((utf8[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar2 = (utf8[1] & 0x3f) << 6 | uVar2 << 0xc;\n        *puVar4 = uVar2;\n        uVar6 = (uint)utf8[2];\n        uVar2 = uVar6 & 0x3f | uVar2;\n      }" { (if_statement "if ((uVar2 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }" if (parenthesized_expression "((uVar2 & 0xfffffff0) != 0xe0)" ( (binary_expression "(uVar2 & 0xfffffff0) != 0xe0" (parenthesized_expression "(uVar2 & 0xfffffff0)" ( (binary_expression "uVar2 & 0xfffffff0" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*puVar4 = uVar2 << 0xc;" (assignment_expression "*puVar4 = uVar2 << 0xc" (pointer_expression "*puVar4" * identifier) = (binary_expression "uVar2 << 0xc" identifier << number_literal)) ;) (expression_statement "puVar7 = utf8 + 2;" (assignment_expression "puVar7 = utf8 + 2" identifier = (binary_expression "utf8 + 2" identifier + number_literal)) ;) (if_statement "if ((utf8[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }" if (parenthesized_expression "((utf8[1] & 0xffffffc0) != 0x80)" ( (binary_expression "(utf8[1] & 0xffffffc0) != 0x80" (parenthesized_expression "(utf8[1] & 0xffffffc0)" ( (binary_expression "utf8[1] & 0xffffffc0" (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 "uVar2 = (utf8[1] & 0x3f) << 6 | uVar2 << 0xc;" (assignment_expression "uVar2 = (utf8[1] & 0x3f) << 6 | uVar2 << 0xc" identifier = (binary_expression "(utf8[1] & 0x3f) << 6 | uVar2 << 0xc" (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) | (binary_expression "uVar2 << 0xc" identifier << number_literal))) ;) (expression_statement "*puVar4 = uVar2;" (assignment_expression "*puVar4 = uVar2" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "uVar6 = (uint)utf8[2];" (assignment_expression "uVar6 = (uint)utf8[2]" identifier = (cast_expression "(uint)utf8[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "utf8[2]" identifier [ number_literal ]))) ;) (expression_statement "uVar2 = uVar6 & 0x3f | uVar2;" (assignment_expression "uVar2 = uVar6 & 0x3f | uVar2" identifier = (binary_expression "uVar6 & 0x3f | uVar2" (binary_expression "uVar6 & 0x3f" identifier & number_literal) | identifier)) ;) }))) (if_statement "if ((uVar6 & 0xffffffc0) != 0x80) {\n        return 0;\n      }" if (parenthesized_expression "((uVar6 & 0xffffffc0) != 0x80)" ( (binary_expression "(uVar6 & 0xffffffc0) != 0x80" (parenthesized_expression "(uVar6 & 0xffffffc0)" ( (binary_expression "uVar6 & 0xffffffc0" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*puVar4 = uVar2;" (assignment_expression "*puVar4 = uVar2" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "utf8 = puVar7 + 1;" (assignment_expression "utf8 = puVar7 + 1" identifier = (binary_expression "puVar7 + 1" identifier + number_literal)) ;) (expression_statement "uVar2 = (uint)puVar7[1];" (assignment_expression "uVar2 = (uint)puVar7[1]" identifier = (cast_expression "(uint)puVar7[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "puVar7[1]" identifier [ number_literal ]))) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) (if_statement "if (uVar2 == 0) goto LAB_00267688;" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00267688;" goto statement_identifier ;)) })) (expression_statement "*puVar4 = uVar2;" (assignment_expression "*puVar4 = uVar2" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "uVar2 = (uint)utf8[1];" (assignment_expression "uVar2 = (uint)utf8[1]" identifier = (cast_expression "(uint)utf8[1]" ( (type_descriptor "uint" type_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 "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) })) (labeled_statement "LAB_00267688:\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)utf16) >> 2;" return (binary_expression "(int)puVar4 + (4 - (int)utf16) >> 2" (binary_expression "(int)puVar4 + (4 - (int)utf16)" (cast_expression "(int)puVar4" ( (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) ;) })))
(translation_unit "int FUN_002675d4(byte *param_1,uint *param_2)\n\n{\n  uint uVar1;\n  byte bVar2;\n  uint *puVar3;\n  byte *pbVar4;\n  uint uVar5;\n  byte *pbVar6;\n  \n  uVar1 = (uint)*param_1;\n  puVar3 = param_2;\n  if (param_2 == (uint *)0x0) {\n    pbVar6 = param_1;\n    if (uVar1 == 0) {\n      return 0;\n    }\n    do {\n      bVar2 = (byte)uVar1;\n      while ((char)bVar2 < '\0') {\n        if ((uVar1 & 0xffffffe0) == 0xc0) {\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((pbVar6[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((pbVar6[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        pbVar4 = pbVar6 + 3;\n        bVar2 = pbVar6[3];\n        uVar1 = (uint)bVar2;\n        pbVar6 = pbVar4;\n        if (uVar1 == 0) goto LAB_00267750;\n      }\n      pbVar4 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      pbVar6 = pbVar4;\n      if (uVar1 == 0) {\nLAB_00267750:\n        return (int)pbVar4 - (int)param_1;\n      }\n    } while( true );\n  }\n  while (uVar1 != 0) {\n    while ((char)uVar1 < '\0') {\n      if ((uVar1 & 0xffffffe0) == 0xc0) {\n        pbVar6 = param_1 + 1;\n        uVar1 = (uVar1 & 0x1f) << 6;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[1];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      else {\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar3 = uVar1 << 0xc;\n        pbVar6 = param_1 + 2;\n        if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[2];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      if ((uVar5 & 0xffffffc0) != 0x80) {\n        return 0;\n      }\n      *puVar3 = uVar1;\n      param_1 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      puVar3 = puVar3 + 1;\n      if (uVar1 == 0) goto LAB_00267688;\n    }\n    *puVar3 = uVar1;\n    uVar1 = (uint)param_1[1];\n    puVar3 = puVar3 + 1;\n    param_1 = param_1 + 1;\n  }\nLAB_00267688:\n  *puVar3 = 0;\n  return (int)puVar3 + (4 - (int)param_2) >> 2;\n}\n\n" (function_definition "int FUN_002675d4(byte *param_1,uint *param_2)\n\n{\n  uint uVar1;\n  byte bVar2;\n  uint *puVar3;\n  byte *pbVar4;\n  uint uVar5;\n  byte *pbVar6;\n  \n  uVar1 = (uint)*param_1;\n  puVar3 = param_2;\n  if (param_2 == (uint *)0x0) {\n    pbVar6 = param_1;\n    if (uVar1 == 0) {\n      return 0;\n    }\n    do {\n      bVar2 = (byte)uVar1;\n      while ((char)bVar2 < '\0') {\n        if ((uVar1 & 0xffffffe0) == 0xc0) {\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((pbVar6[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((pbVar6[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        pbVar4 = pbVar6 + 3;\n        bVar2 = pbVar6[3];\n        uVar1 = (uint)bVar2;\n        pbVar6 = pbVar4;\n        if (uVar1 == 0) goto LAB_00267750;\n      }\n      pbVar4 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      pbVar6 = pbVar4;\n      if (uVar1 == 0) {\nLAB_00267750:\n        return (int)pbVar4 - (int)param_1;\n      }\n    } while( true );\n  }\n  while (uVar1 != 0) {\n    while ((char)uVar1 < '\0') {\n      if ((uVar1 & 0xffffffe0) == 0xc0) {\n        pbVar6 = param_1 + 1;\n        uVar1 = (uVar1 & 0x1f) << 6;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[1];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      else {\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar3 = uVar1 << 0xc;\n        pbVar6 = param_1 + 2;\n        if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[2];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      if ((uVar5 & 0xffffffc0) != 0x80) {\n        return 0;\n      }\n      *puVar3 = uVar1;\n      param_1 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      puVar3 = puVar3 + 1;\n      if (uVar1 == 0) goto LAB_00267688;\n    }\n    *puVar3 = uVar1;\n    uVar1 = (uint)param_1[1];\n    puVar3 = puVar3 + 1;\n    param_1 = param_1 + 1;\n  }\nLAB_00267688:\n  *puVar3 = 0;\n  return (int)puVar3 + (4 - (int)param_2) >> 2;\n}" primitive_type (function_declarator "FUN_002675d4(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  uint uVar1;\n  byte bVar2;\n  uint *puVar3;\n  byte *pbVar4;\n  uint uVar5;\n  byte *pbVar6;\n  \n  uVar1 = (uint)*param_1;\n  puVar3 = param_2;\n  if (param_2 == (uint *)0x0) {\n    pbVar6 = param_1;\n    if (uVar1 == 0) {\n      return 0;\n    }\n    do {\n      bVar2 = (byte)uVar1;\n      while ((char)bVar2 < '\0') {\n        if ((uVar1 & 0xffffffe0) == 0xc0) {\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((pbVar6[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((pbVar6[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        pbVar4 = pbVar6 + 3;\n        bVar2 = pbVar6[3];\n        uVar1 = (uint)bVar2;\n        pbVar6 = pbVar4;\n        if (uVar1 == 0) goto LAB_00267750;\n      }\n      pbVar4 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      pbVar6 = pbVar4;\n      if (uVar1 == 0) {\nLAB_00267750:\n        return (int)pbVar4 - (int)param_1;\n      }\n    } while( true );\n  }\n  while (uVar1 != 0) {\n    while ((char)uVar1 < '\0') {\n      if ((uVar1 & 0xffffffe0) == 0xc0) {\n        pbVar6 = param_1 + 1;\n        uVar1 = (uVar1 & 0x1f) << 6;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[1];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      else {\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar3 = uVar1 << 0xc;\n        pbVar6 = param_1 + 2;\n        if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[2];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      if ((uVar5 & 0xffffffc0) != 0x80) {\n        return 0;\n      }\n      *puVar3 = uVar1;\n      param_1 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      puVar3 = puVar3 + 1;\n      if (uVar1 == 0) goto LAB_00267688;\n    }\n    *puVar3 = uVar1;\n    uVar1 = (uint)param_1[1];\n    puVar3 = puVar3 + 1;\n    param_1 = param_1 + 1;\n  }\nLAB_00267688:\n  *puVar3 = 0;\n  return (int)puVar3 + (4 - (int)param_2) >> 2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (expression_statement "uVar1 = (uint)*param_1;" (assignment_expression "uVar1 = (uint)*param_1" identifier = (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "puVar3 = param_2;" (assignment_expression "puVar3 = param_2" identifier = identifier) ;) (if_statement "if (param_2 == (uint *)0x0) {\n    pbVar6 = param_1;\n    if (uVar1 == 0) {\n      return 0;\n    }\n    do {\n      bVar2 = (byte)uVar1;\n      while ((char)bVar2 < '\0') {\n        if ((uVar1 & 0xffffffe0) == 0xc0) {\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((pbVar6[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((pbVar6[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        pbVar4 = pbVar6 + 3;\n        bVar2 = pbVar6[3];\n        uVar1 = (uint)bVar2;\n        pbVar6 = pbVar4;\n        if (uVar1 == 0) goto LAB_00267750;\n      }\n      pbVar4 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      pbVar6 = pbVar4;\n      if (uVar1 == 0) {\nLAB_00267750:\n        return (int)pbVar4 - (int)param_1;\n      }\n    } while( true );\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    pbVar6 = param_1;\n    if (uVar1 == 0) {\n      return 0;\n    }\n    do {\n      bVar2 = (byte)uVar1;\n      while ((char)bVar2 < '\0') {\n        if ((uVar1 & 0xffffffe0) == 0xc0) {\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((pbVar6[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((pbVar6[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        pbVar4 = pbVar6 + 3;\n        bVar2 = pbVar6[3];\n        uVar1 = (uint)bVar2;\n        pbVar6 = pbVar4;\n        if (uVar1 == 0) goto LAB_00267750;\n      }\n      pbVar4 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      pbVar6 = pbVar4;\n      if (uVar1 == 0) {\nLAB_00267750:\n        return (int)pbVar4 - (int)param_1;\n      }\n    } while( true );\n  }" { (expression_statement "pbVar6 = param_1;" (assignment_expression "pbVar6 = param_1" identifier = identifier) ;) (if_statement "if (uVar1 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (do_statement "do {\n      bVar2 = (byte)uVar1;\n      while ((char)bVar2 < '\0') {\n        if ((uVar1 & 0xffffffe0) == 0xc0) {\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((pbVar6[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((pbVar6[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        pbVar4 = pbVar6 + 3;\n        bVar2 = pbVar6[3];\n        uVar1 = (uint)bVar2;\n        pbVar6 = pbVar4;\n        if (uVar1 == 0) goto LAB_00267750;\n      }\n      pbVar4 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      pbVar6 = pbVar4;\n      if (uVar1 == 0) {\nLAB_00267750:\n        return (int)pbVar4 - (int)param_1;\n      }\n    } while( true );" do (compound_statement "{\n      bVar2 = (byte)uVar1;\n      while ((char)bVar2 < '\0') {\n        if ((uVar1 & 0xffffffe0) == 0xc0) {\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((pbVar6[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((pbVar6[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        pbVar4 = pbVar6 + 3;\n        bVar2 = pbVar6[3];\n        uVar1 = (uint)bVar2;\n        pbVar6 = pbVar4;\n        if (uVar1 == 0) goto LAB_00267750;\n      }\n      pbVar4 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      pbVar6 = pbVar4;\n      if (uVar1 == 0) {\nLAB_00267750:\n        return (int)pbVar4 - (int)param_1;\n      }\n    }" { (expression_statement "bVar2 = (byte)uVar1;" (assignment_expression "bVar2 = (byte)uVar1" identifier = (cast_expression "(byte)uVar1" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (while_statement "while ((char)bVar2 < '\0') {\n        if ((uVar1 & 0xffffffe0) == 0xc0) {\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((pbVar6[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((pbVar6[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        pbVar4 = pbVar6 + 3;\n        bVar2 = pbVar6[3];\n        uVar1 = (uint)bVar2;\n        pbVar6 = pbVar4;\n        if (uVar1 == 0) goto LAB_00267750;\n      }" while (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 ((uVar1 & 0xffffffe0) == 0xc0) {\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((pbVar6[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((pbVar6[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        pbVar4 = pbVar6 + 3;\n        bVar2 = pbVar6[3];\n        uVar1 = (uint)bVar2;\n        pbVar6 = pbVar4;\n        if (uVar1 == 0) goto LAB_00267750;\n      }" { (if_statement "if ((uVar1 & 0xffffffe0) == 0xc0) {\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }" if (parenthesized_expression "((uVar1 & 0xffffffe0) == 0xc0)" ( (binary_expression "(uVar1 & 0xffffffe0) == 0xc0" (parenthesized_expression "(uVar1 & 0xffffffe0)" ( (binary_expression "uVar1 & 0xffffffe0" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }" { (expression_statement "pbVar4 = pbVar6 + 1;" (assignment_expression "pbVar4 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (if_statement "if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }" if (parenthesized_expression "((*pbVar4 & 0xc0) != 0x80)" ( (binary_expression "(*pbVar4 & 0xc0) != 0x80" (parenthesized_expression "(*pbVar4 & 0xc0)" ( (binary_expression "*pbVar4 & 0xc0" (pointer_expression "*pbVar4" * identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n            return 0;\n          }" { (return_statement "return 0;" return number_literal ;) })) (break_statement "break;" break ;) })) (if_statement "if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }" if (parenthesized_expression "((uVar1 & 0xfffffff0) != 0xe0)" ( (binary_expression "(uVar1 & 0xfffffff0) != 0xe0" (parenthesized_expression "(uVar1 & 0xfffffff0)" ( (binary_expression "uVar1 & 0xfffffff0" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((pbVar6[1] & 0xc0) != 0x80) {\n          return 0;\n        }" if (parenthesized_expression "((pbVar6[1] & 0xc0) != 0x80)" ( (binary_expression "(pbVar6[1] & 0xc0) != 0x80" (parenthesized_expression "(pbVar6[1] & 0xc0)" ( (binary_expression "pbVar6[1] & 0xc0" (subscript_expression "pbVar6[1]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((pbVar6[2] & 0xc0) != 0x80) {\n          return 0;\n        }" if (parenthesized_expression "((pbVar6[2] & 0xc0) != 0x80)" ( (binary_expression "(pbVar6[2] & 0xc0) != 0x80" (parenthesized_expression "(pbVar6[2] & 0xc0)" ( (binary_expression "pbVar6[2] & 0xc0" (subscript_expression "pbVar6[2]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pbVar4 = pbVar6 + 3;" (assignment_expression "pbVar4 = pbVar6 + 3" identifier = (binary_expression "pbVar6 + 3" identifier + number_literal)) ;) (expression_statement "bVar2 = pbVar6[3];" (assignment_expression "bVar2 = pbVar6[3]" identifier = (subscript_expression "pbVar6[3]" identifier [ number_literal ])) ;) (expression_statement "uVar1 = (uint)bVar2;" (assignment_expression "uVar1 = (uint)bVar2" identifier = (cast_expression "(uint)bVar2" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "pbVar6 = pbVar4;" (assignment_expression "pbVar6 = pbVar4" identifier = identifier) ;) (if_statement "if (uVar1 == 0) goto LAB_00267750;" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00267750;" goto statement_identifier ;)) })) (expression_statement "pbVar4 = pbVar6 + 1;" (assignment_expression "pbVar4 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = (uint)pbVar6[1];" (assignment_expression "uVar1 = (uint)pbVar6[1]" identifier = (cast_expression "(uint)pbVar6[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar6[1]" identifier [ number_literal ]))) ;) (expression_statement "pbVar6 = pbVar4;" (assignment_expression "pbVar6 = pbVar4" identifier = identifier) ;) (if_statement "if (uVar1 == 0) {\nLAB_00267750:\n        return (int)pbVar4 - (int)param_1;\n      }" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00267750:\n        return (int)pbVar4 - (int)param_1;\n      }" { (labeled_statement "LAB_00267750:\n        return (int)pbVar4 - (int)param_1;" statement_identifier : (return_statement "return (int)pbVar4 - (int)param_1;" return (binary_expression "(int)pbVar4 - (int)param_1" (cast_expression "(int)pbVar4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ;)) })) }) while (parenthesized_expression "( true )" ( true )) ;) })) (while_statement "while (uVar1 != 0) {\n    while ((char)uVar1 < '\0') {\n      if ((uVar1 & 0xffffffe0) == 0xc0) {\n        pbVar6 = param_1 + 1;\n        uVar1 = (uVar1 & 0x1f) << 6;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[1];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      else {\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar3 = uVar1 << 0xc;\n        pbVar6 = param_1 + 2;\n        if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[2];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      if ((uVar5 & 0xffffffc0) != 0x80) {\n        return 0;\n      }\n      *puVar3 = uVar1;\n      param_1 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      puVar3 = puVar3 + 1;\n      if (uVar1 == 0) goto LAB_00267688;\n    }\n    *puVar3 = uVar1;\n    uVar1 = (uint)param_1[1];\n    puVar3 = puVar3 + 1;\n    param_1 = param_1 + 1;\n  }" while (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    while ((char)uVar1 < '\0') {\n      if ((uVar1 & 0xffffffe0) == 0xc0) {\n        pbVar6 = param_1 + 1;\n        uVar1 = (uVar1 & 0x1f) << 6;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[1];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      else {\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar3 = uVar1 << 0xc;\n        pbVar6 = param_1 + 2;\n        if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[2];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      if ((uVar5 & 0xffffffc0) != 0x80) {\n        return 0;\n      }\n      *puVar3 = uVar1;\n      param_1 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      puVar3 = puVar3 + 1;\n      if (uVar1 == 0) goto LAB_00267688;\n    }\n    *puVar3 = uVar1;\n    uVar1 = (uint)param_1[1];\n    puVar3 = puVar3 + 1;\n    param_1 = param_1 + 1;\n  }" { (while_statement "while ((char)uVar1 < '\0') {\n      if ((uVar1 & 0xffffffe0) == 0xc0) {\n        pbVar6 = param_1 + 1;\n        uVar1 = (uVar1 & 0x1f) << 6;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[1];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      else {\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar3 = uVar1 << 0xc;\n        pbVar6 = param_1 + 2;\n        if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[2];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      if ((uVar5 & 0xffffffc0) != 0x80) {\n        return 0;\n      }\n      *puVar3 = uVar1;\n      param_1 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      puVar3 = puVar3 + 1;\n      if (uVar1 == 0) goto LAB_00267688;\n    }" while (parenthesized_expression "((char)uVar1 < '\0')" ( (binary_expression "(char)uVar1 < '\0'" (cast_expression "(char)uVar1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if ((uVar1 & 0xffffffe0) == 0xc0) {\n        pbVar6 = param_1 + 1;\n        uVar1 = (uVar1 & 0x1f) << 6;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[1];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      else {\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar3 = uVar1 << 0xc;\n        pbVar6 = param_1 + 2;\n        if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[2];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      if ((uVar5 & 0xffffffc0) != 0x80) {\n        return 0;\n      }\n      *puVar3 = uVar1;\n      param_1 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      puVar3 = puVar3 + 1;\n      if (uVar1 == 0) goto LAB_00267688;\n    }" { (if_statement "if ((uVar1 & 0xffffffe0) == 0xc0) {\n        pbVar6 = param_1 + 1;\n        uVar1 = (uVar1 & 0x1f) << 6;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[1];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      else {\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar3 = uVar1 << 0xc;\n        pbVar6 = param_1 + 2;\n        if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[2];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }" if (parenthesized_expression "((uVar1 & 0xffffffe0) == 0xc0)" ( (binary_expression "(uVar1 & 0xffffffe0) == 0xc0" (parenthesized_expression "(uVar1 & 0xffffffe0)" ( (binary_expression "uVar1 & 0xffffffe0" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        pbVar6 = param_1 + 1;\n        uVar1 = (uVar1 & 0x1f) << 6;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[1];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }" { (expression_statement "pbVar6 = param_1 + 1;" (assignment_expression "pbVar6 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = (uVar1 & 0x1f) << 6;" (assignment_expression "uVar1 = (uVar1 & 0x1f) << 6" identifier = (binary_expression "(uVar1 & 0x1f) << 6" (parenthesized_expression "(uVar1 & 0x1f)" ( (binary_expression "uVar1 & 0x1f" identifier & number_literal) )) << number_literal)) ;) (expression_statement "*puVar3 = uVar1;" (assignment_expression "*puVar3 = uVar1" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "uVar5 = (uint)param_1[1];" (assignment_expression "uVar5 = (uint)param_1[1]" identifier = (cast_expression "(uint)param_1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar1 = uVar5 & 0x3f | uVar1;" (assignment_expression "uVar1 = uVar5 & 0x3f | uVar1" identifier = (binary_expression "uVar5 & 0x3f | uVar1" (binary_expression "uVar5 & 0x3f" identifier & number_literal) | identifier)) ;) }) (else_clause "else {\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar3 = uVar1 << 0xc;\n        pbVar6 = param_1 + 2;\n        if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[2];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }" else (compound_statement "{\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar3 = uVar1 << 0xc;\n        pbVar6 = param_1 + 2;\n        if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[2];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }" { (if_statement "if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }" if (parenthesized_expression "((uVar1 & 0xfffffff0) != 0xe0)" ( (binary_expression "(uVar1 & 0xfffffff0) != 0xe0" (parenthesized_expression "(uVar1 & 0xfffffff0)" ( (binary_expression "uVar1 & 0xfffffff0" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*puVar3 = uVar1 << 0xc;" (assignment_expression "*puVar3 = uVar1 << 0xc" (pointer_expression "*puVar3" * identifier) = (binary_expression "uVar1 << 0xc" identifier << number_literal)) ;) (expression_statement "pbVar6 = param_1 + 2;" (assignment_expression "pbVar6 = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (if_statement "if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }" if (parenthesized_expression "((param_1[1] & 0xffffffc0) != 0x80)" ( (binary_expression "(param_1[1] & 0xffffffc0) != 0x80" (parenthesized_expression "(param_1[1] & 0xffffffc0)" ( (binary_expression "param_1[1] & 0xffffffc0" (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 "uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;" (assignment_expression "uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc" identifier = (binary_expression "(param_1[1] & 0x3f) << 6 | uVar1 << 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 [ number_literal ]) & number_literal) )) << number_literal) | (binary_expression "uVar1 << 0xc" identifier << number_literal))) ;) (expression_statement "*puVar3 = uVar1;" (assignment_expression "*puVar3 = uVar1" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "uVar5 = (uint)param_1[2];" (assignment_expression "uVar5 = (uint)param_1[2]" identifier = (cast_expression "(uint)param_1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (expression_statement "uVar1 = uVar5 & 0x3f | uVar1;" (assignment_expression "uVar1 = uVar5 & 0x3f | uVar1" identifier = (binary_expression "uVar5 & 0x3f | uVar1" (binary_expression "uVar5 & 0x3f" identifier & number_literal) | identifier)) ;) }))) (if_statement "if ((uVar5 & 0xffffffc0) != 0x80) {\n        return 0;\n      }" if (parenthesized_expression "((uVar5 & 0xffffffc0) != 0x80)" ( (binary_expression "(uVar5 & 0xffffffc0) != 0x80" (parenthesized_expression "(uVar5 & 0xffffffc0)" ( (binary_expression "uVar5 & 0xffffffc0" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*puVar3 = uVar1;" (assignment_expression "*puVar3 = uVar1" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "param_1 = pbVar6 + 1;" (assignment_expression "param_1 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = (uint)pbVar6[1];" (assignment_expression "uVar1 = (uint)pbVar6[1]" identifier = (cast_expression "(uint)pbVar6[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar6[1]" identifier [ number_literal ]))) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (if_statement "if (uVar1 == 0) goto LAB_00267688;" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00267688;" goto statement_identifier ;)) })) (expression_statement "*puVar3 = uVar1;" (assignment_expression "*puVar3 = uVar1" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "uVar1 = (uint)param_1[1];" (assignment_expression "uVar1 = (uint)param_1[1]" identifier = (cast_expression "(uint)param_1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 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)) ;) })) (labeled_statement "LAB_00267688:\n  *puVar3 = 0;" statement_identifier : (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;)) (return_statement "return (int)puVar3 + (4 - (int)param_2) >> 2;" return (binary_expression "(int)puVar3 + (4 - (int)param_2) >> 2" (binary_expression "(int)puVar3 + (4 - (int)param_2)" (cast_expression "(int)puVar3" ( (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) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * 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 { (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 { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (while_statement while (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 ;) })) (break_statement break ;) })) (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 = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (return_statement return (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;)) })) }) while (parenthesized_expression ( BOOL )) ;) })) (while_statement while (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (while_statement while (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 (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT & LIT) | IDENT)) ;) }) (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)) ;) (expression_statement (assignment_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 (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) << LIT) | (binary_expression IDENT << LIT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT & LIT) | IDENT)) ;) }))) (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) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (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 = (cast_expression ( (type_descriptor TYPE) ) (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) ;) })))
(function_definition "int FUN_002675d4(byte *param_1,uint *param_2)\n\n{\n  uint uVar1;\n  byte bVar2;\n  uint *puVar3;\n  byte *pbVar4;\n  uint uVar5;\n  byte *pbVar6;\n  \n  uVar1 = (uint)*param_1;\n  puVar3 = param_2;\n  if (param_2 == (uint *)0x0) {\n    pbVar6 = param_1;\n    if (uVar1 == 0) {\n      return 0;\n    }\n    do {\n      bVar2 = (byte)uVar1;\n      while ((char)bVar2 < '\0') {\n        if ((uVar1 & 0xffffffe0) == 0xc0) {\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((pbVar6[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((pbVar6[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        pbVar4 = pbVar6 + 3;\n        bVar2 = pbVar6[3];\n        uVar1 = (uint)bVar2;\n        pbVar6 = pbVar4;\n        if (uVar1 == 0) goto LAB_00267750;\n      }\n      pbVar4 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      pbVar6 = pbVar4;\n      if (uVar1 == 0) {\nLAB_00267750:\n        return (int)pbVar4 - (int)param_1;\n      }\n    } while( true );\n  }\n  while (uVar1 != 0) {\n    while ((char)uVar1 < '\0') {\n      if ((uVar1 & 0xffffffe0) == 0xc0) {\n        pbVar6 = param_1 + 1;\n        uVar1 = (uVar1 & 0x1f) << 6;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[1];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      else {\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar3 = uVar1 << 0xc;\n        pbVar6 = param_1 + 2;\n        if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[2];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      if ((uVar5 & 0xffffffc0) != 0x80) {\n        return 0;\n      }\n      *puVar3 = uVar1;\n      param_1 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      puVar3 = puVar3 + 1;\n      if (uVar1 == 0) goto LAB_00267688;\n    }\n    *puVar3 = uVar1;\n    uVar1 = (uint)param_1[1];\n    puVar3 = puVar3 + 1;\n    param_1 = param_1 + 1;\n  }\nLAB_00267688:\n  *puVar3 = 0;\n  return (int)puVar3 + (4 - (int)param_2) >> 2;\n}" (primitive_type "int") (function_declarator "FUN_002675d4(byte *param_1,uint *param_2)" (identifier "FUN_002675d4") (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  uint uVar1;\n  byte bVar2;\n  uint *puVar3;\n  byte *pbVar4;\n  uint uVar5;\n  byte *pbVar6;\n  \n  uVar1 = (uint)*param_1;\n  puVar3 = param_2;\n  if (param_2 == (uint *)0x0) {\n    pbVar6 = param_1;\n    if (uVar1 == 0) {\n      return 0;\n    }\n    do {\n      bVar2 = (byte)uVar1;\n      while ((char)bVar2 < '\0') {\n        if ((uVar1 & 0xffffffe0) == 0xc0) {\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((pbVar6[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((pbVar6[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        pbVar4 = pbVar6 + 3;\n        bVar2 = pbVar6[3];\n        uVar1 = (uint)bVar2;\n        pbVar6 = pbVar4;\n        if (uVar1 == 0) goto LAB_00267750;\n      }\n      pbVar4 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      pbVar6 = pbVar4;\n      if (uVar1 == 0) {\nLAB_00267750:\n        return (int)pbVar4 - (int)param_1;\n      }\n    } while( true );\n  }\n  while (uVar1 != 0) {\n    while ((char)uVar1 < '\0') {\n      if ((uVar1 & 0xffffffe0) == 0xc0) {\n        pbVar6 = param_1 + 1;\n        uVar1 = (uVar1 & 0x1f) << 6;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[1];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      else {\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar3 = uVar1 << 0xc;\n        pbVar6 = param_1 + 2;\n        if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[2];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      if ((uVar5 & 0xffffffc0) != 0x80) {\n        return 0;\n      }\n      *puVar3 = uVar1;\n      param_1 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      puVar3 = puVar3 + 1;\n      if (uVar1 == 0) goto LAB_00267688;\n    }\n    *puVar3 = uVar1;\n    uVar1 = (uint)param_1[1];\n    puVar3 = puVar3 + 1;\n    param_1 = param_1 + 1;\n  }\nLAB_00267688:\n  *puVar3 = 0;\n  return (int)puVar3 + (4 - (int)param_2) >> 2;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (declaration "uint *puVar3;" (type_identifier "uint") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "byte *pbVar6;" (type_identifier "byte") (pointer_declarator "*pbVar6" (* "*") (identifier "pbVar6")) (; ";")) (expression_statement "uVar1 = (uint)*param_1;" (assignment_expression "uVar1 = (uint)*param_1" (identifier "uVar1") (= "=") (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "param_1"))) (; ";")) (expression_statement "puVar3 = param_2;" (assignment_expression "puVar3 = param_2" (identifier "puVar3") (= "=") (identifier "param_2")) (; ";")) (if_statement "if (param_2 == (uint *)0x0) {\n    pbVar6 = param_1;\n    if (uVar1 == 0) {\n      return 0;\n    }\n    do {\n      bVar2 = (byte)uVar1;\n      while ((char)bVar2 < '\0') {\n        if ((uVar1 & 0xffffffe0) == 0xc0) {\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((pbVar6[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((pbVar6[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        pbVar4 = pbVar6 + 3;\n        bVar2 = pbVar6[3];\n        uVar1 = (uint)bVar2;\n        pbVar6 = pbVar4;\n        if (uVar1 == 0) goto LAB_00267750;\n      }\n      pbVar4 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      pbVar6 = pbVar4;\n      if (uVar1 == 0) {\nLAB_00267750:\n        return (int)pbVar4 - (int)param_1;\n      }\n    } while( true );\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    pbVar6 = param_1;\n    if (uVar1 == 0) {\n      return 0;\n    }\n    do {\n      bVar2 = (byte)uVar1;\n      while ((char)bVar2 < '\0') {\n        if ((uVar1 & 0xffffffe0) == 0xc0) {\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((pbVar6[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((pbVar6[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        pbVar4 = pbVar6 + 3;\n        bVar2 = pbVar6[3];\n        uVar1 = (uint)bVar2;\n        pbVar6 = pbVar4;\n        if (uVar1 == 0) goto LAB_00267750;\n      }\n      pbVar4 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      pbVar6 = pbVar4;\n      if (uVar1 == 0) {\nLAB_00267750:\n        return (int)pbVar4 - (int)param_1;\n      }\n    } while( true );\n  }" ({ "{") (expression_statement "pbVar6 = param_1;" (assignment_expression "pbVar6 = param_1" (identifier "pbVar6") (= "=") (identifier "param_1")) (; ";")) (if_statement "if (uVar1 == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(uVar1 == 0)" (( "(") (binary_expression "uVar1 == 0" (identifier "uVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (do_statement "do {\n      bVar2 = (byte)uVar1;\n      while ((char)bVar2 < '\0') {\n        if ((uVar1 & 0xffffffe0) == 0xc0) {\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((pbVar6[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((pbVar6[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        pbVar4 = pbVar6 + 3;\n        bVar2 = pbVar6[3];\n        uVar1 = (uint)bVar2;\n        pbVar6 = pbVar4;\n        if (uVar1 == 0) goto LAB_00267750;\n      }\n      pbVar4 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      pbVar6 = pbVar4;\n      if (uVar1 == 0) {\nLAB_00267750:\n        return (int)pbVar4 - (int)param_1;\n      }\n    } while( true );" (do "do") (compound_statement "{\n      bVar2 = (byte)uVar1;\n      while ((char)bVar2 < '\0') {\n        if ((uVar1 & 0xffffffe0) == 0xc0) {\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((pbVar6[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((pbVar6[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        pbVar4 = pbVar6 + 3;\n        bVar2 = pbVar6[3];\n        uVar1 = (uint)bVar2;\n        pbVar6 = pbVar4;\n        if (uVar1 == 0) goto LAB_00267750;\n      }\n      pbVar4 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      pbVar6 = pbVar4;\n      if (uVar1 == 0) {\nLAB_00267750:\n        return (int)pbVar4 - (int)param_1;\n      }\n    }" ({ "{") (expression_statement "bVar2 = (byte)uVar1;" (assignment_expression "bVar2 = (byte)uVar1" (identifier "bVar2") (= "=") (cast_expression "(byte)uVar1" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar1"))) (; ";")) (while_statement "while ((char)bVar2 < '\0') {\n        if ((uVar1 & 0xffffffe0) == 0xc0) {\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((pbVar6[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((pbVar6[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        pbVar4 = pbVar6 + 3;\n        bVar2 = pbVar6[3];\n        uVar1 = (uint)bVar2;\n        pbVar6 = pbVar4;\n        if (uVar1 == 0) goto LAB_00267750;\n      }" (while "while") (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 ((uVar1 & 0xffffffe0) == 0xc0) {\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        if ((pbVar6[1] & 0xc0) != 0x80) {\n          return 0;\n        }\n        if ((pbVar6[2] & 0xc0) != 0x80) {\n          return 0;\n        }\n        pbVar4 = pbVar6 + 3;\n        bVar2 = pbVar6[3];\n        uVar1 = (uint)bVar2;\n        pbVar6 = pbVar4;\n        if (uVar1 == 0) goto LAB_00267750;\n      }" ({ "{") (if_statement "if ((uVar1 & 0xffffffe0) == 0xc0) {\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }" (if "if") (parenthesized_expression "((uVar1 & 0xffffffe0) == 0xc0)" (( "(") (binary_expression "(uVar1 & 0xffffffe0) == 0xc0" (parenthesized_expression "(uVar1 & 0xffffffe0)" (( "(") (binary_expression "uVar1 & 0xffffffe0" (identifier "uVar1") (& "&") (number_literal "0xffffffe0")) () ")")) (== "==") (number_literal "0xc0")) () ")")) (compound_statement "{\n          pbVar4 = pbVar6 + 1;\n          pbVar6 = pbVar6 + 1;\n          if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }\n          break;\n        }" ({ "{") (expression_statement "pbVar4 = pbVar6 + 1;" (assignment_expression "pbVar4 = pbVar6 + 1" (identifier "pbVar4") (= "=") (binary_expression "pbVar6 + 1" (identifier "pbVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" (identifier "pbVar6") (= "=") (binary_expression "pbVar6 + 1" (identifier "pbVar6") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((*pbVar4 & 0xc0) != 0x80) {\n            return 0;\n          }" (if "if") (parenthesized_expression "((*pbVar4 & 0xc0) != 0x80)" (( "(") (binary_expression "(*pbVar4 & 0xc0) != 0x80" (parenthesized_expression "(*pbVar4 & 0xc0)" (( "(") (binary_expression "*pbVar4 & 0xc0" (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")) (& "&") (number_literal "0xc0")) () ")")) (!= "!=") (number_literal "0x80")) () ")")) (compound_statement "{\n            return 0;\n          }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";")) (} "}"))) (if_statement "if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }" (if "if") (parenthesized_expression "((uVar1 & 0xfffffff0) != 0xe0)" (( "(") (binary_expression "(uVar1 & 0xfffffff0) != 0xe0" (parenthesized_expression "(uVar1 & 0xfffffff0)" (( "(") (binary_expression "uVar1 & 0xfffffff0" (identifier "uVar1") (& "&") (number_literal "0xfffffff0")) () ")")) (!= "!=") (number_literal "0xe0")) () ")")) (compound_statement "{\n          return 0;\n        }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if ((pbVar6[1] & 0xc0) != 0x80) {\n          return 0;\n        }" (if "if") (parenthesized_expression "((pbVar6[1] & 0xc0) != 0x80)" (( "(") (binary_expression "(pbVar6[1] & 0xc0) != 0x80" (parenthesized_expression "(pbVar6[1] & 0xc0)" (( "(") (binary_expression "pbVar6[1] & 0xc0" (subscript_expression "pbVar6[1]" (identifier "pbVar6") ([ "[") (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 ((pbVar6[2] & 0xc0) != 0x80) {\n          return 0;\n        }" (if "if") (parenthesized_expression "((pbVar6[2] & 0xc0) != 0x80)" (( "(") (binary_expression "(pbVar6[2] & 0xc0) != 0x80" (parenthesized_expression "(pbVar6[2] & 0xc0)" (( "(") (binary_expression "pbVar6[2] & 0xc0" (subscript_expression "pbVar6[2]" (identifier "pbVar6") ([ "[") (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 "pbVar4 = pbVar6 + 3;" (assignment_expression "pbVar4 = pbVar6 + 3" (identifier "pbVar4") (= "=") (binary_expression "pbVar6 + 3" (identifier "pbVar6") (+ "+") (number_literal "3"))) (; ";")) (expression_statement "bVar2 = pbVar6[3];" (assignment_expression "bVar2 = pbVar6[3]" (identifier "bVar2") (= "=") (subscript_expression "pbVar6[3]" (identifier "pbVar6") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "uVar1 = (uint)bVar2;" (assignment_expression "uVar1 = (uint)bVar2" (identifier "uVar1") (= "=") (cast_expression "(uint)bVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar2"))) (; ";")) (expression_statement "pbVar6 = pbVar4;" (assignment_expression "pbVar6 = pbVar4" (identifier "pbVar6") (= "=") (identifier "pbVar4")) (; ";")) (if_statement "if (uVar1 == 0) goto LAB_00267750;" (if "if") (parenthesized_expression "(uVar1 == 0)" (( "(") (binary_expression "uVar1 == 0" (identifier "uVar1") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00267750;" (goto "goto") (statement_identifier "LAB_00267750") (; ";"))) (} "}"))) (expression_statement "pbVar4 = pbVar6 + 1;" (assignment_expression "pbVar4 = pbVar6 + 1" (identifier "pbVar4") (= "=") (binary_expression "pbVar6 + 1" (identifier "pbVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar1 = (uint)pbVar6[1];" (assignment_expression "uVar1 = (uint)pbVar6[1]" (identifier "uVar1") (= "=") (cast_expression "(uint)pbVar6[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar6[1]" (identifier "pbVar6") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "pbVar6 = pbVar4;" (assignment_expression "pbVar6 = pbVar4" (identifier "pbVar6") (= "=") (identifier "pbVar4")) (; ";")) (if_statement "if (uVar1 == 0) {\nLAB_00267750:\n        return (int)pbVar4 - (int)param_1;\n      }" (if "if") (parenthesized_expression "(uVar1 == 0)" (( "(") (binary_expression "uVar1 == 0" (identifier "uVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00267750:\n        return (int)pbVar4 - (int)param_1;\n      }" ({ "{") (labeled_statement "LAB_00267750:\n        return (int)pbVar4 - (int)param_1;" (statement_identifier "LAB_00267750") (: ":") (return_statement "return (int)pbVar4 - (int)param_1;" (return "return") (binary_expression "(int)pbVar4 - (int)param_1" (cast_expression "(int)pbVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar4")) (- "-") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) (; ";"))) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}"))) (while_statement "while (uVar1 != 0) {\n    while ((char)uVar1 < '\0') {\n      if ((uVar1 & 0xffffffe0) == 0xc0) {\n        pbVar6 = param_1 + 1;\n        uVar1 = (uVar1 & 0x1f) << 6;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[1];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      else {\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar3 = uVar1 << 0xc;\n        pbVar6 = param_1 + 2;\n        if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[2];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      if ((uVar5 & 0xffffffc0) != 0x80) {\n        return 0;\n      }\n      *puVar3 = uVar1;\n      param_1 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      puVar3 = puVar3 + 1;\n      if (uVar1 == 0) goto LAB_00267688;\n    }\n    *puVar3 = uVar1;\n    uVar1 = (uint)param_1[1];\n    puVar3 = puVar3 + 1;\n    param_1 = param_1 + 1;\n  }" (while "while") (parenthesized_expression "(uVar1 != 0)" (( "(") (binary_expression "uVar1 != 0" (identifier "uVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    while ((char)uVar1 < '\0') {\n      if ((uVar1 & 0xffffffe0) == 0xc0) {\n        pbVar6 = param_1 + 1;\n        uVar1 = (uVar1 & 0x1f) << 6;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[1];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      else {\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar3 = uVar1 << 0xc;\n        pbVar6 = param_1 + 2;\n        if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[2];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      if ((uVar5 & 0xffffffc0) != 0x80) {\n        return 0;\n      }\n      *puVar3 = uVar1;\n      param_1 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      puVar3 = puVar3 + 1;\n      if (uVar1 == 0) goto LAB_00267688;\n    }\n    *puVar3 = uVar1;\n    uVar1 = (uint)param_1[1];\n    puVar3 = puVar3 + 1;\n    param_1 = param_1 + 1;\n  }" ({ "{") (while_statement "while ((char)uVar1 < '\0') {\n      if ((uVar1 & 0xffffffe0) == 0xc0) {\n        pbVar6 = param_1 + 1;\n        uVar1 = (uVar1 & 0x1f) << 6;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[1];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      else {\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar3 = uVar1 << 0xc;\n        pbVar6 = param_1 + 2;\n        if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[2];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      if ((uVar5 & 0xffffffc0) != 0x80) {\n        return 0;\n      }\n      *puVar3 = uVar1;\n      param_1 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      puVar3 = puVar3 + 1;\n      if (uVar1 == 0) goto LAB_00267688;\n    }" (while "while") (parenthesized_expression "((char)uVar1 < '\0')" (( "(") (binary_expression "(char)uVar1 < '\0'" (cast_expression "(char)uVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar1")) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      if ((uVar1 & 0xffffffe0) == 0xc0) {\n        pbVar6 = param_1 + 1;\n        uVar1 = (uVar1 & 0x1f) << 6;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[1];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      else {\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar3 = uVar1 << 0xc;\n        pbVar6 = param_1 + 2;\n        if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[2];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      if ((uVar5 & 0xffffffc0) != 0x80) {\n        return 0;\n      }\n      *puVar3 = uVar1;\n      param_1 = pbVar6 + 1;\n      uVar1 = (uint)pbVar6[1];\n      puVar3 = puVar3 + 1;\n      if (uVar1 == 0) goto LAB_00267688;\n    }" ({ "{") (if_statement "if ((uVar1 & 0xffffffe0) == 0xc0) {\n        pbVar6 = param_1 + 1;\n        uVar1 = (uVar1 & 0x1f) << 6;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[1];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }\n      else {\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar3 = uVar1 << 0xc;\n        pbVar6 = param_1 + 2;\n        if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[2];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }" (if "if") (parenthesized_expression "((uVar1 & 0xffffffe0) == 0xc0)" (( "(") (binary_expression "(uVar1 & 0xffffffe0) == 0xc0" (parenthesized_expression "(uVar1 & 0xffffffe0)" (( "(") (binary_expression "uVar1 & 0xffffffe0" (identifier "uVar1") (& "&") (number_literal "0xffffffe0")) () ")")) (== "==") (number_literal "0xc0")) () ")")) (compound_statement "{\n        pbVar6 = param_1 + 1;\n        uVar1 = (uVar1 & 0x1f) << 6;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[1];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }" ({ "{") (expression_statement "pbVar6 = param_1 + 1;" (assignment_expression "pbVar6 = param_1 + 1" (identifier "pbVar6") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar1 = (uVar1 & 0x1f) << 6;" (assignment_expression "uVar1 = (uVar1 & 0x1f) << 6" (identifier "uVar1") (= "=") (binary_expression "(uVar1 & 0x1f) << 6" (parenthesized_expression "(uVar1 & 0x1f)" (( "(") (binary_expression "uVar1 & 0x1f" (identifier "uVar1") (& "&") (number_literal "0x1f")) () ")")) (<< "<<") (number_literal "6"))) (; ";")) (expression_statement "*puVar3 = uVar1;" (assignment_expression "*puVar3 = uVar1" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar5 = (uint)param_1[1];" (assignment_expression "uVar5 = (uint)param_1[1]" (identifier "uVar5") (= "=") (cast_expression "(uint)param_1[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "uVar1 = uVar5 & 0x3f | uVar1;" (assignment_expression "uVar1 = uVar5 & 0x3f | uVar1" (identifier "uVar1") (= "=") (binary_expression "uVar5 & 0x3f | uVar1" (binary_expression "uVar5 & 0x3f" (identifier "uVar5") (& "&") (number_literal "0x3f")) (| "|") (identifier "uVar1"))) (; ";")) (} "}")) (else_clause "else {\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar3 = uVar1 << 0xc;\n        pbVar6 = param_1 + 2;\n        if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[2];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }" (else "else") (compound_statement "{\n        if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }\n        *puVar3 = uVar1 << 0xc;\n        pbVar6 = param_1 + 2;\n        if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }\n        uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;\n        *puVar3 = uVar1;\n        uVar5 = (uint)param_1[2];\n        uVar1 = uVar5 & 0x3f | uVar1;\n      }" ({ "{") (if_statement "if ((uVar1 & 0xfffffff0) != 0xe0) {\n          return 0;\n        }" (if "if") (parenthesized_expression "((uVar1 & 0xfffffff0) != 0xe0)" (( "(") (binary_expression "(uVar1 & 0xfffffff0) != 0xe0" (parenthesized_expression "(uVar1 & 0xfffffff0)" (( "(") (binary_expression "uVar1 & 0xfffffff0" (identifier "uVar1") (& "&") (number_literal "0xfffffff0")) () ")")) (!= "!=") (number_literal "0xe0")) () ")")) (compound_statement "{\n          return 0;\n        }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "*puVar3 = uVar1 << 0xc;" (assignment_expression "*puVar3 = uVar1 << 0xc" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (binary_expression "uVar1 << 0xc" (identifier "uVar1") (<< "<<") (number_literal "0xc"))) (; ";")) (expression_statement "pbVar6 = param_1 + 2;" (assignment_expression "pbVar6 = param_1 + 2" (identifier "pbVar6") (= "=") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2"))) (; ";")) (if_statement "if ((param_1[1] & 0xffffffc0) != 0x80) {\n          return 0;\n        }" (if "if") (parenthesized_expression "((param_1[1] & 0xffffffc0) != 0x80)" (( "(") (binary_expression "(param_1[1] & 0xffffffc0) != 0x80" (parenthesized_expression "(param_1[1] & 0xffffffc0)" (( "(") (binary_expression "param_1[1] & 0xffffffc0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (& "&") (number_literal "0xffffffc0")) () ")")) (!= "!=") (number_literal "0x80")) () ")")) (compound_statement "{\n          return 0;\n        }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;" (assignment_expression "uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc" (identifier "uVar1") (= "=") (binary_expression "(param_1[1] & 0x3f) << 6 | uVar1 << 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")) (| "|") (binary_expression "uVar1 << 0xc" (identifier "uVar1") (<< "<<") (number_literal "0xc")))) (; ";")) (expression_statement "*puVar3 = uVar1;" (assignment_expression "*puVar3 = uVar1" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar5 = (uint)param_1[2];" (assignment_expression "uVar5 = (uint)param_1[2]" (identifier "uVar5") (= "=") (cast_expression "(uint)param_1[2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "uVar1 = uVar5 & 0x3f | uVar1;" (assignment_expression "uVar1 = uVar5 & 0x3f | uVar1" (identifier "uVar1") (= "=") (binary_expression "uVar5 & 0x3f | uVar1" (binary_expression "uVar5 & 0x3f" (identifier "uVar5") (& "&") (number_literal "0x3f")) (| "|") (identifier "uVar1"))) (; ";")) (} "}")))) (if_statement "if ((uVar5 & 0xffffffc0) != 0x80) {\n        return 0;\n      }" (if "if") (parenthesized_expression "((uVar5 & 0xffffffc0) != 0x80)" (( "(") (binary_expression "(uVar5 & 0xffffffc0) != 0x80" (parenthesized_expression "(uVar5 & 0xffffffc0)" (( "(") (binary_expression "uVar5 & 0xffffffc0" (identifier "uVar5") (& "&") (number_literal "0xffffffc0")) () ")")) (!= "!=") (number_literal "0x80")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "*puVar3 = uVar1;" (assignment_expression "*puVar3 = uVar1" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "param_1 = pbVar6 + 1;" (assignment_expression "param_1 = pbVar6 + 1" (identifier "param_1") (= "=") (binary_expression "pbVar6 + 1" (identifier "pbVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar1 = (uint)pbVar6[1];" (assignment_expression "uVar1 = (uint)pbVar6[1]" (identifier "uVar1") (= "=") (cast_expression "(uint)pbVar6[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar6[1]" (identifier "pbVar6") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" (identifier "puVar3") (= "=") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (uVar1 == 0) goto LAB_00267688;" (if "if") (parenthesized_expression "(uVar1 == 0)" (( "(") (binary_expression "uVar1 == 0" (identifier "uVar1") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00267688;" (goto "goto") (statement_identifier "LAB_00267688") (; ";"))) (} "}"))) (expression_statement "*puVar3 = uVar1;" (assignment_expression "*puVar3 = uVar1" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar1 = (uint)param_1[1];" (assignment_expression "uVar1 = (uint)param_1[1]" (identifier "uVar1") (= "=") (cast_expression "(uint)param_1[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" (identifier "puVar3") (= "=") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (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"))) (; ";")) (} "}"))) (labeled_statement "LAB_00267688:\n  *puVar3 = 0;" (statement_identifier "LAB_00267688") (: ":") (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0")) (; ";"))) (return_statement "return (int)puVar3 + (4 - (int)param_2) >> 2;" (return "return") (binary_expression "(int)puVar3 + (4 - (int)param_2) >> 2" (binary_expression "(int)puVar3 + (4 - (int)param_2)" (cast_expression "(int)puVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar3")) (+ "+") (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")) (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) 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: (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: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (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 (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 (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (while_statement condition: (parenthesized_expression (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: (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)))) (break_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)))) (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: (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: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (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: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (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: (compound_statement (labeled_statement label: (statement_identifier) (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))))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (while_statement condition: (parenthesized_expression (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: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))))) 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)))) (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: (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: (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (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: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (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))))))

int MASKED(byte *param_1,uint *param_2)

{
  uint uVar1;
  byte bVar2;
  uint *puVar3;
  byte *pbVar4;
  uint uVar5;
  byte *pbVar6;
  
  uVar1 = (uint)*param_1;
  puVar3 = param_2;
  if (param_2 == (uint *)0x0) {
    pbVar6 = param_1;
    if (uVar1 == 0) {
      return 0;
    }
    do {
      bVar2 = (byte)uVar1;
      while ((char)bVar2 < '\0') {
        if ((uVar1 & 0xffffffe0) == 0xc0) {
          pbVar4 = pbVar6 + 1;
          pbVar6 = pbVar6 + 1;
          if ((*pbVar4 & 0xc0) != 0x80) {
            return 0;
          }
          break;
        }
        if ((uVar1 & 0xfffffff0) != 0xe0) {
          return 0;
        }
        if ((pbVar6[1] & 0xc0) != 0x80) {
          return 0;
        }
        if ((pbVar6[2] & 0xc0) != 0x80) {
          return 0;
        }
        pbVar4 = pbVar6 + 3;
        bVar2 = pbVar6[3];
        uVar1 = (uint)bVar2;
        pbVar6 = pbVar4;
        if (uVar1 == 0) goto LAB_00267750;
      }
      pbVar4 = pbVar6 + 1;
      uVar1 = (uint)pbVar6[1];
      pbVar6 = pbVar4;
      if (uVar1 == 0) {
LAB_00267750:
        return (int)pbVar4 - (int)param_1;
      }
    } while( true );
  }
  while (uVar1 != 0) {
    while ((char)uVar1 < '\0') {
      if ((uVar1 & 0xffffffe0) == 0xc0) {
        pbVar6 = param_1 + 1;
        uVar1 = (uVar1 & 0x1f) << 6;
        *puVar3 = uVar1;
        uVar5 = (uint)param_1[1];
        uVar1 = uVar5 & 0x3f | uVar1;
      }
      else {
        if ((uVar1 & 0xfffffff0) != 0xe0) {
          return 0;
        }
        *puVar3 = uVar1 << 0xc;
        pbVar6 = param_1 + 2;
        if ((param_1[1] & 0xffffffc0) != 0x80) {
          return 0;
        }
        uVar1 = (param_1[1] & 0x3f) << 6 | uVar1 << 0xc;
        *puVar3 = uVar1;
        uVar5 = (uint)param_1[2];
        uVar1 = uVar5 & 0x3f | uVar1;
      }
      if ((uVar5 & 0xffffffc0) != 0x80) {
        return 0;
      }
      *puVar3 = uVar1;
      param_1 = pbVar6 + 1;
      uVar1 = (uint)pbVar6[1];
      puVar3 = puVar3 + 1;
      if (uVar1 == 0) goto LAB_00267688;
    }
    *puVar3 = uVar1;
    uVar1 = (uint)param_1[1];
    puVar3 = puVar3 + 1;
    param_1 = param_1 + 1;
  }
LAB_00267688:
  *puVar3 = 0;
  return (int)puVar3 + (4 - (int)param_2) >> 2;
}

