
/* WARNING: Unknown calling convention */

void volume_id_set_unicode16(char *str,size_t len,uint8_t *buf,endian endianess,size_t count)

{
  uint uVar1;
  byte bVar2;
  byte *pbVar3;
  ushort uVar4;
  uint uVar5;
  uint uVar6;
  byte bVar7;
  uint uVar8;
  uint uVar9;
  
  pbVar3 = (byte *)str;
  if (count < 2) {
LAB_00074646:
    *pbVar3 = 0;
    return;
  }
  if (endianess == LE) {
    uVar9 = 2;
    uVar6 = 0;
    do {
      while( true ) {
        bVar2 = buf[uVar9 - 2];
        uVar4 = CONCAT11(buf[uVar9 - 1],bVar2);
        pbVar3 = (byte *)(str + uVar6);
        if ((uVar4 == 0) || (uVar8 = uVar6 + 1, len <= uVar8)) goto LAB_00074646;
        if (0x7f < uVar4) break;
        *pbVar3 = bVar2;
        uVar9 = uVar9 + 2;
        uVar6 = uVar8;
        if (count < uVar9) goto LAB_00074696;
      }
      uVar1 = uVar6 + 2;
      if (len <= uVar1) goto LAB_00074646;
      if (uVar4 < 0x800) {
        bVar7 = 0xc0;
        uVar6 = uVar1;
      }
      else {
        uVar6 = uVar6 + 3;
        if (len <= uVar6) goto LAB_00074646;
        *pbVar3 = buf[uVar9 - 1] >> 4 | 0xe0;
        pbVar3 = (byte *)(str + uVar8);
        bVar7 = 0x80;
        uVar8 = uVar1;
      }
      *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar7;
      str[uVar8] = bVar2 & 0x3f | 0x80;
      uVar9 = uVar9 + 2;
    } while (uVar9 <= count);
  }
  else {
    uVar8 = 2;
    uVar9 = 0;
    do {
      bVar2 = buf[uVar8 - 1];
      uVar4 = CONCAT11(buf[uVar8 - 2],bVar2);
      pbVar3 = (byte *)(str + uVar9);
      if ((uVar4 == 0) || (uVar6 = uVar9 + 1, len <= uVar6)) goto LAB_00074646;
      if (0x7f < uVar4) {
        uVar1 = uVar9 + 2;
        if (len <= uVar1) goto LAB_00074646;
        if (uVar4 < 0x800) {
          bVar7 = 0xc0;
          uVar5 = uVar6;
          uVar6 = uVar1;
        }
        else {
          if (len <= uVar9 + 3) goto LAB_00074646;
          *pbVar3 = buf[uVar8 - 2] >> 4 | 0xe0;
          pbVar3 = (byte *)(str + uVar6);
          bVar7 = 0x80;
          uVar5 = uVar1;
          uVar6 = uVar9 + 3;
        }
        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar7;
        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);
        pbVar3 = (byte *)(str + uVar5);
      }
      *pbVar3 = (byte)uVar4;
      uVar8 = uVar8 + 2;
      uVar9 = uVar6;
    } while (uVar8 <= count);
  }
LAB_00074696:
  str[uVar6] = '\0';
  return;
}



uint __regparm2
FUN_00074604(undefined4 param_1,uint param_2,byte *param_3,uint param_4,int param_5,int param_6,
            uint param_7)

{
  uint uVar1;
  byte bVar2;
  byte *pbVar3;
  ushort uVar4;
  uint uVar5;
  byte bVar6;
  uint uVar7;
  uint uVar8;
  uint local_14;
  
  pbVar3 = param_3;
  local_14 = param_2;
  if (param_7 < 2) {
LAB_00074646:
    *pbVar3 = 0;
    return local_14;
  }
  local_14 = param_2;
  if (param_6 == 0) {
    uVar8 = 2;
    uVar5 = 0;
    do {
      while( true ) {
        bVar6 = *(byte *)(param_5 + -1 + uVar8);
        bVar2 = *(byte *)(param_5 + -2 + uVar8);
        uVar4 = CONCAT11(bVar6,bVar2);
        pbVar3 = param_3 + uVar5;
        if ((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)) goto LAB_00074646;
        if (0x7f < uVar4) break;
        *pbVar3 = bVar2;
        uVar8 = uVar8 + 2;
        uVar5 = uVar7;
        if (param_7 < uVar8) goto LAB_00074696;
      }
      uVar1 = uVar5 + 2;
      if (param_4 <= uVar1) goto LAB_00074646;
      if (uVar4 < 0x800) {
        bVar6 = 0xc0;
        uVar5 = uVar1;
      }
      else {
        uVar5 = uVar5 + 3;
        local_14 = uVar5;
        if (param_4 <= uVar5) goto LAB_00074646;
        *pbVar3 = bVar6 >> 4 | 0xe0;
        pbVar3 = param_3 + uVar7;
        bVar6 = 0x80;
        uVar7 = uVar1;
      }
      *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;
      param_3[uVar7] = bVar2 & 0x3f | 0x80;
      uVar8 = uVar8 + 2;
    } while (uVar8 <= param_7);
  }
  else {
    uVar7 = 2;
    uVar8 = 0;
    do {
      bVar6 = *(byte *)(param_5 + -2 + uVar7);
      bVar2 = *(byte *)(param_5 + -1 + uVar7);
      uVar4 = CONCAT11(bVar6,bVar2);
      pbVar3 = param_3 + uVar8;
      if ((uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5)) goto LAB_00074646;
      if (0x7f < uVar4) {
        uVar1 = uVar8 + 2;
        if (param_4 <= uVar1) goto LAB_00074646;
        if (uVar4 < 0x800) {
          bVar6 = 0xc0;
          uVar8 = uVar5;
          uVar5 = uVar1;
        }
        else {
          local_14 = uVar8 + 3;
          if (param_4 <= local_14) goto LAB_00074646;
          *pbVar3 = bVar6 >> 4 | 0xe0;
          pbVar3 = param_3 + uVar5;
          bVar6 = 0x80;
          uVar8 = uVar1;
          uVar5 = local_14;
        }
        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;
        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);
        pbVar3 = param_3 + uVar8;
      }
      *pbVar3 = (byte)uVar4;
      uVar7 = uVar7 + 2;
      uVar8 = uVar5;
    } while (uVar7 <= param_7);
  }
LAB_00074696:
  param_3[uVar5] = 0;
  return local_14;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
PUSH EDX
MOV EBX,dword ptr [ESP + 0x24]
MOV EAX,dword ptr [ESP + 0x18]
CMP dword ptr [ESP + 0x28],0x1
JBE 0x00074646
TEST EBX,EBX
JZ 0x0007464f
XOR EBX,EBX
MOV ESI,0x2
MOV EAX,dword ptr [ESP + 0x20]
MOVZX ECX,byte ptr [EAX + ESI*0x1 + -0x2]
SHL ECX,0x8
MOVZX EAX,byte ptr [EAX + ESI*0x1 + -0x1]
OR ECX,EAX
MOV EBP,ECX
MOV EAX,dword ptr [ESP + 0x18]
ADD EAX,EBX
TEST ECX,ECX
JNZ 0x0007470e
MOV byte ptr [EAX],0x0
POP EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ESI,0x2
MOV EAX,dword ptr [ESP + 0x20]
MOVZX ECX,byte ptr [EAX + ESI*0x1 + -0x1]
SHL ECX,0x8
MOVZX EAX,byte ptr [EAX + ESI*0x1 + -0x2]
OR ECX,EAX
MOV EBP,ECX
MOV EAX,dword ptr [ESP + 0x18]
ADD EAX,EBX
TEST ECX,ECX
JZ 0x00074646
LEA EDX,[EBX + 0x1]
CMP EDX,dword ptr [ESP + 0x1c]
JNC 0x00074646
CMP ECX,0x7f
JA 0x0007469f
MOV ECX,EBP
MOV byte ptr [EAX],CL
ADD ESI,0x2
MOV EBX,EDX
CMP ESI,dword ptr [ESP + 0x28]
JBE 0x00074654
MOV EAX,dword ptr [ESP + 0x18]
ADD EAX,EDX
MOV byte ptr [EAX],0x0
POP EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EDI,[EBX + 0x2]
CMP EDI,dword ptr [ESP + 0x1c]
JNC 0x00074646
CMP ECX,0x7ff
JA 0x000746b7
MOV EBP,0xffffffc0
JMP 0x000746dd
ADD EBX,0x3
MOV dword ptr [ESP],EBX
CMP EBX,dword ptr [ESP + 0x1c]
JNC 0x00074646
SHR EBP,0xc
OR EBP,0xffffffe0
MOV EBX,EBP
MOV byte ptr [EAX],BL
MOV EAX,dword ptr [ESP + 0x18]
ADD EAX,EDX
MOV EDX,EDI
MOV EDI,dword ptr [ESP]
MOV EBP,0xffffff80
MOV EBX,ECX
SHR EBX,0x6
AND EBX,0x3f
OR EBX,EBP
MOV byte ptr [EAX],BL
AND ECX,0x3f
OR CL,0x80
MOV EBP,ECX
MOV EAX,dword ptr [ESP + 0x18]
ADD EAX,EDX
MOV EDX,EDI
MOV ECX,EBP
MOV byte ptr [EAX],CL
ADD ESI,0x2
MOV EBX,EDX
CMP ESI,dword ptr [ESP + 0x28]
JBE 0x00074654
JMP 0x00074690
LEA EDX,[EBX + 0x1]
CMP dword ptr [ESP + 0x1c],EDX
JBE 0x00074646
CMP ECX,0x7f
JBE 0x00074782
LEA EDI,[EBX + 0x2]
CMP EDI,dword ptr [ESP + 0x1c]
JNC 0x00074646
CMP ECX,0x7ff
JA 0x0007473c
MOV EBP,0xffffffc0
JMP 0x00074766
ADD EBX,0x3
MOV dword ptr [ESP],EBX
CMP EBX,dword ptr [ESP + 0x1c]
JNC 0x00074646
SHR EBP,0xc
OR EBP,0xffffffe0
MOV EBX,EBP
MOV byte ptr [EAX],BL
MOV EAX,dword ptr [ESP + 0x18]
ADD EAX,EDX
MOV EDX,EDI
MOV EDI,dword ptr [ESP]
MOV EBP,0xffffff80
MOV EBX,ECX
SHR EBX,0x6
AND EBX,0x3f
OR EBX,EBP
MOV byte ptr [EAX],BL
AND ECX,0x3f
OR CL,0x80
MOV EBP,ECX
MOV EAX,dword ptr [ESP + 0x18]
ADD EAX,EDX
MOV EDX,EDI
MOV ECX,EBP
MOV byte ptr [EAX],CL
ADD ESI,0x2
MOV EBX,EDX
CMP dword ptr [ESP + 0x28],ESI
JNC 0x00074623
MOV EAX,dword ptr [ESP + 0x18]
ADD EAX,EDX
JMP 0x00074696
(translation_unit "uint __regparm2\nFUN_00074604(undefined4 param_1,uint param_2,byte *param_3,uint param_4,int param_5,int param_6,\n            uint param_7)\n\n{\n  uint uVar1;\n  byte bVar2;\n  byte *pbVar3;\n  ushort uVar4;\n  uint uVar5;\n  byte bVar6;\n  uint uVar7;\n  uint uVar8;\n  uint local_14;\n  \n  pbVar3 = param_3;\n  local_14 = param_2;\n  if (param_7 < 2) {\nLAB_00074646:\n    *pbVar3 = 0;\n    return local_14;\n  }\n  local_14 = param_2;\n  if (param_6 == 0) {\n    uVar8 = 2;\n    uVar5 = 0;\n    do {\n      while( true ) {\n        bVar6 = *(byte *)(param_5 + -1 + uVar8);\n        bVar2 = *(byte *)(param_5 + -2 + uVar8);\n        uVar4 = CONCAT11(bVar6,bVar2);\n        pbVar3 = param_3 + uVar5;\n        if ((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar8 = uVar8 + 2;\n        uVar5 = uVar7;\n        if (param_7 < uVar8) goto LAB_00074696;\n      }\n      uVar1 = uVar5 + 2;\n      if (param_4 <= uVar1) goto LAB_00074646;\n      if (uVar4 < 0x800) {\n        bVar6 = 0xc0;\n        uVar5 = uVar1;\n      }\n      else {\n        uVar5 = uVar5 + 3;\n        local_14 = uVar5;\n        if (param_4 <= uVar5) goto LAB_00074646;\n        *pbVar3 = bVar6 >> 4 | 0xe0;\n        pbVar3 = param_3 + uVar7;\n        bVar6 = 0x80;\n        uVar7 = uVar1;\n      }\n      *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n      param_3[uVar7] = bVar2 & 0x3f | 0x80;\n      uVar8 = uVar8 + 2;\n    } while (uVar8 <= param_7);\n  }\n  else {\n    uVar7 = 2;\n    uVar8 = 0;\n    do {\n      bVar6 = *(byte *)(param_5 + -2 + uVar7);\n      bVar2 = *(byte *)(param_5 + -1 + uVar7);\n      uVar4 = CONCAT11(bVar6,bVar2);\n      pbVar3 = param_3 + uVar8;\n      if ((uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5)) goto LAB_00074646;\n      if (0x7f < uVar4) {\n        uVar1 = uVar8 + 2;\n        if (param_4 <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = param_3 + uVar8;\n      }\n      *pbVar3 = (byte)uVar4;\n      uVar7 = uVar7 + 2;\n      uVar8 = uVar5;\n    } while (uVar7 <= param_7);\n  }\nLAB_00074696:\n  param_3[uVar5] = 0;\n  return local_14;\n}\n\n" (function_definition "uint __regparm2\nFUN_00074604(undefined4 param_1,uint param_2,byte *param_3,uint param_4,int param_5,int param_6,\n            uint param_7)\n\n{\n  uint uVar1;\n  byte bVar2;\n  byte *pbVar3;\n  ushort uVar4;\n  uint uVar5;\n  byte bVar6;\n  uint uVar7;\n  uint uVar8;\n  uint local_14;\n  \n  pbVar3 = param_3;\n  local_14 = param_2;\n  if (param_7 < 2) {\nLAB_00074646:\n    *pbVar3 = 0;\n    return local_14;\n  }\n  local_14 = param_2;\n  if (param_6 == 0) {\n    uVar8 = 2;\n    uVar5 = 0;\n    do {\n      while( true ) {\n        bVar6 = *(byte *)(param_5 + -1 + uVar8);\n        bVar2 = *(byte *)(param_5 + -2 + uVar8);\n        uVar4 = CONCAT11(bVar6,bVar2);\n        pbVar3 = param_3 + uVar5;\n        if ((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar8 = uVar8 + 2;\n        uVar5 = uVar7;\n        if (param_7 < uVar8) goto LAB_00074696;\n      }\n      uVar1 = uVar5 + 2;\n      if (param_4 <= uVar1) goto LAB_00074646;\n      if (uVar4 < 0x800) {\n        bVar6 = 0xc0;\n        uVar5 = uVar1;\n      }\n      else {\n        uVar5 = uVar5 + 3;\n        local_14 = uVar5;\n        if (param_4 <= uVar5) goto LAB_00074646;\n        *pbVar3 = bVar6 >> 4 | 0xe0;\n        pbVar3 = param_3 + uVar7;\n        bVar6 = 0x80;\n        uVar7 = uVar1;\n      }\n      *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n      param_3[uVar7] = bVar2 & 0x3f | 0x80;\n      uVar8 = uVar8 + 2;\n    } while (uVar8 <= param_7);\n  }\n  else {\n    uVar7 = 2;\n    uVar8 = 0;\n    do {\n      bVar6 = *(byte *)(param_5 + -2 + uVar7);\n      bVar2 = *(byte *)(param_5 + -1 + uVar7);\n      uVar4 = CONCAT11(bVar6,bVar2);\n      pbVar3 = param_3 + uVar8;\n      if ((uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5)) goto LAB_00074646;\n      if (0x7f < uVar4) {\n        uVar1 = uVar8 + 2;\n        if (param_4 <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = param_3 + uVar8;\n      }\n      *pbVar3 = (byte)uVar4;\n      uVar7 = uVar7 + 2;\n      uVar8 = uVar5;\n    } while (uVar7 <= param_7);\n  }\nLAB_00074696:\n  param_3[uVar5] = 0;\n  return local_14;\n}" type_identifier (ERROR "__regparm2" identifier) (function_declarator "FUN_00074604(undefined4 param_1,uint param_2,byte *param_3,uint param_4,int param_5,int param_6,\n            uint param_7)" identifier (parameter_list "(undefined4 param_1,uint param_2,byte *param_3,uint param_4,int param_5,int param_6,\n            uint param_7)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "byte *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "uint param_7" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  byte bVar2;\n  byte *pbVar3;\n  ushort uVar4;\n  uint uVar5;\n  byte bVar6;\n  uint uVar7;\n  uint uVar8;\n  uint local_14;\n  \n  pbVar3 = param_3;\n  local_14 = param_2;\n  if (param_7 < 2) {\nLAB_00074646:\n    *pbVar3 = 0;\n    return local_14;\n  }\n  local_14 = param_2;\n  if (param_6 == 0) {\n    uVar8 = 2;\n    uVar5 = 0;\n    do {\n      while( true ) {\n        bVar6 = *(byte *)(param_5 + -1 + uVar8);\n        bVar2 = *(byte *)(param_5 + -2 + uVar8);\n        uVar4 = CONCAT11(bVar6,bVar2);\n        pbVar3 = param_3 + uVar5;\n        if ((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar8 = uVar8 + 2;\n        uVar5 = uVar7;\n        if (param_7 < uVar8) goto LAB_00074696;\n      }\n      uVar1 = uVar5 + 2;\n      if (param_4 <= uVar1) goto LAB_00074646;\n      if (uVar4 < 0x800) {\n        bVar6 = 0xc0;\n        uVar5 = uVar1;\n      }\n      else {\n        uVar5 = uVar5 + 3;\n        local_14 = uVar5;\n        if (param_4 <= uVar5) goto LAB_00074646;\n        *pbVar3 = bVar6 >> 4 | 0xe0;\n        pbVar3 = param_3 + uVar7;\n        bVar6 = 0x80;\n        uVar7 = uVar1;\n      }\n      *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n      param_3[uVar7] = bVar2 & 0x3f | 0x80;\n      uVar8 = uVar8 + 2;\n    } while (uVar8 <= param_7);\n  }\n  else {\n    uVar7 = 2;\n    uVar8 = 0;\n    do {\n      bVar6 = *(byte *)(param_5 + -2 + uVar7);\n      bVar2 = *(byte *)(param_5 + -1 + uVar7);\n      uVar4 = CONCAT11(bVar6,bVar2);\n      pbVar3 = param_3 + uVar8;\n      if ((uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5)) goto LAB_00074646;\n      if (0x7f < uVar4) {\n        uVar1 = uVar8 + 2;\n        if (param_4 <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = param_3 + uVar8;\n      }\n      *pbVar3 = (byte)uVar4;\n      uVar7 = uVar7 + 2;\n      uVar8 = uVar5;\n    } while (uVar7 <= param_7);\n  }\nLAB_00074696:\n  param_3[uVar5] = 0;\n  return local_14;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "ushort uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "byte bVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint local_14;" type_identifier identifier ;) (expression_statement "pbVar3 = param_3;" (assignment_expression "pbVar3 = param_3" identifier = identifier) ;) (expression_statement "local_14 = param_2;" (assignment_expression "local_14 = param_2" identifier = identifier) ;) (if_statement "if (param_7 < 2) {\nLAB_00074646:\n    *pbVar3 = 0;\n    return local_14;\n  }" if (parenthesized_expression "(param_7 < 2)" ( (binary_expression "param_7 < 2" identifier < number_literal) )) (compound_statement "{\nLAB_00074646:\n    *pbVar3 = 0;\n    return local_14;\n  }" { (labeled_statement "LAB_00074646:\n    *pbVar3 = 0;" statement_identifier : (expression_statement "*pbVar3 = 0;" (assignment_expression "*pbVar3 = 0" (pointer_expression "*pbVar3" * identifier) = number_literal) ;)) (return_statement "return local_14;" return identifier ;) })) (expression_statement "local_14 = param_2;" (assignment_expression "local_14 = param_2" identifier = identifier) ;) (if_statement "if (param_6 == 0) {\n    uVar8 = 2;\n    uVar5 = 0;\n    do {\n      while( true ) {\n        bVar6 = *(byte *)(param_5 + -1 + uVar8);\n        bVar2 = *(byte *)(param_5 + -2 + uVar8);\n        uVar4 = CONCAT11(bVar6,bVar2);\n        pbVar3 = param_3 + uVar5;\n        if ((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar8 = uVar8 + 2;\n        uVar5 = uVar7;\n        if (param_7 < uVar8) goto LAB_00074696;\n      }\n      uVar1 = uVar5 + 2;\n      if (param_4 <= uVar1) goto LAB_00074646;\n      if (uVar4 < 0x800) {\n        bVar6 = 0xc0;\n        uVar5 = uVar1;\n      }\n      else {\n        uVar5 = uVar5 + 3;\n        local_14 = uVar5;\n        if (param_4 <= uVar5) goto LAB_00074646;\n        *pbVar3 = bVar6 >> 4 | 0xe0;\n        pbVar3 = param_3 + uVar7;\n        bVar6 = 0x80;\n        uVar7 = uVar1;\n      }\n      *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n      param_3[uVar7] = bVar2 & 0x3f | 0x80;\n      uVar8 = uVar8 + 2;\n    } while (uVar8 <= param_7);\n  }\n  else {\n    uVar7 = 2;\n    uVar8 = 0;\n    do {\n      bVar6 = *(byte *)(param_5 + -2 + uVar7);\n      bVar2 = *(byte *)(param_5 + -1 + uVar7);\n      uVar4 = CONCAT11(bVar6,bVar2);\n      pbVar3 = param_3 + uVar8;\n      if ((uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5)) goto LAB_00074646;\n      if (0x7f < uVar4) {\n        uVar1 = uVar8 + 2;\n        if (param_4 <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = param_3 + uVar8;\n      }\n      *pbVar3 = (byte)uVar4;\n      uVar7 = uVar7 + 2;\n      uVar8 = uVar5;\n    } while (uVar7 <= param_7);\n  }" if (parenthesized_expression "(param_6 == 0)" ( (binary_expression "param_6 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar8 = 2;\n    uVar5 = 0;\n    do {\n      while( true ) {\n        bVar6 = *(byte *)(param_5 + -1 + uVar8);\n        bVar2 = *(byte *)(param_5 + -2 + uVar8);\n        uVar4 = CONCAT11(bVar6,bVar2);\n        pbVar3 = param_3 + uVar5;\n        if ((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar8 = uVar8 + 2;\n        uVar5 = uVar7;\n        if (param_7 < uVar8) goto LAB_00074696;\n      }\n      uVar1 = uVar5 + 2;\n      if (param_4 <= uVar1) goto LAB_00074646;\n      if (uVar4 < 0x800) {\n        bVar6 = 0xc0;\n        uVar5 = uVar1;\n      }\n      else {\n        uVar5 = uVar5 + 3;\n        local_14 = uVar5;\n        if (param_4 <= uVar5) goto LAB_00074646;\n        *pbVar3 = bVar6 >> 4 | 0xe0;\n        pbVar3 = param_3 + uVar7;\n        bVar6 = 0x80;\n        uVar7 = uVar1;\n      }\n      *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n      param_3[uVar7] = bVar2 & 0x3f | 0x80;\n      uVar8 = uVar8 + 2;\n    } while (uVar8 <= param_7);\n  }" { (expression_statement "uVar8 = 2;" (assignment_expression "uVar8 = 2" identifier = number_literal) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n      while( true ) {\n        bVar6 = *(byte *)(param_5 + -1 + uVar8);\n        bVar2 = *(byte *)(param_5 + -2 + uVar8);\n        uVar4 = CONCAT11(bVar6,bVar2);\n        pbVar3 = param_3 + uVar5;\n        if ((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar8 = uVar8 + 2;\n        uVar5 = uVar7;\n        if (param_7 < uVar8) goto LAB_00074696;\n      }\n      uVar1 = uVar5 + 2;\n      if (param_4 <= uVar1) goto LAB_00074646;\n      if (uVar4 < 0x800) {\n        bVar6 = 0xc0;\n        uVar5 = uVar1;\n      }\n      else {\n        uVar5 = uVar5 + 3;\n        local_14 = uVar5;\n        if (param_4 <= uVar5) goto LAB_00074646;\n        *pbVar3 = bVar6 >> 4 | 0xe0;\n        pbVar3 = param_3 + uVar7;\n        bVar6 = 0x80;\n        uVar7 = uVar1;\n      }\n      *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n      param_3[uVar7] = bVar2 & 0x3f | 0x80;\n      uVar8 = uVar8 + 2;\n    } while (uVar8 <= param_7);" do (compound_statement "{\n      while( true ) {\n        bVar6 = *(byte *)(param_5 + -1 + uVar8);\n        bVar2 = *(byte *)(param_5 + -2 + uVar8);\n        uVar4 = CONCAT11(bVar6,bVar2);\n        pbVar3 = param_3 + uVar5;\n        if ((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar8 = uVar8 + 2;\n        uVar5 = uVar7;\n        if (param_7 < uVar8) goto LAB_00074696;\n      }\n      uVar1 = uVar5 + 2;\n      if (param_4 <= uVar1) goto LAB_00074646;\n      if (uVar4 < 0x800) {\n        bVar6 = 0xc0;\n        uVar5 = uVar1;\n      }\n      else {\n        uVar5 = uVar5 + 3;\n        local_14 = uVar5;\n        if (param_4 <= uVar5) goto LAB_00074646;\n        *pbVar3 = bVar6 >> 4 | 0xe0;\n        pbVar3 = param_3 + uVar7;\n        bVar6 = 0x80;\n        uVar7 = uVar1;\n      }\n      *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n      param_3[uVar7] = bVar2 & 0x3f | 0x80;\n      uVar8 = uVar8 + 2;\n    }" { (while_statement "while( true ) {\n        bVar6 = *(byte *)(param_5 + -1 + uVar8);\n        bVar2 = *(byte *)(param_5 + -2 + uVar8);\n        uVar4 = CONCAT11(bVar6,bVar2);\n        pbVar3 = param_3 + uVar5;\n        if ((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar8 = uVar8 + 2;\n        uVar5 = uVar7;\n        if (param_7 < uVar8) goto LAB_00074696;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        bVar6 = *(byte *)(param_5 + -1 + uVar8);\n        bVar2 = *(byte *)(param_5 + -2 + uVar8);\n        uVar4 = CONCAT11(bVar6,bVar2);\n        pbVar3 = param_3 + uVar5;\n        if ((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar8 = uVar8 + 2;\n        uVar5 = uVar7;\n        if (param_7 < uVar8) goto LAB_00074696;\n      }" { (expression_statement "bVar6 = *(byte *)(param_5 + -1 + uVar8);" (assignment_expression "bVar6 = *(byte *)(param_5 + -1 + uVar8)" identifier = (pointer_expression "*(byte *)(param_5 + -1 + uVar8)" * (cast_expression "(byte *)(param_5 + -1 + uVar8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + -1 + uVar8)" ( (binary_expression "param_5 + -1 + uVar8" (binary_expression "param_5 + -1" identifier + number_literal) + identifier) ))))) ;) (expression_statement "bVar2 = *(byte *)(param_5 + -2 + uVar8);" (assignment_expression "bVar2 = *(byte *)(param_5 + -2 + uVar8)" identifier = (pointer_expression "*(byte *)(param_5 + -2 + uVar8)" * (cast_expression "(byte *)(param_5 + -2 + uVar8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + -2 + uVar8)" ( (binary_expression "param_5 + -2 + uVar8" (binary_expression "param_5 + -2" identifier + number_literal) + identifier) ))))) ;) (expression_statement "uVar4 = CONCAT11(bVar6,bVar2);" (assignment_expression "uVar4 = CONCAT11(bVar6,bVar2)" identifier = (call_expression "CONCAT11(bVar6,bVar2)" identifier (argument_list "(bVar6,bVar2)" ( identifier , identifier )))) ;) (expression_statement "pbVar3 = param_3 + uVar5;" (assignment_expression "pbVar3 = param_3 + uVar5" identifier = (binary_expression "param_3 + uVar5" identifier + identifier)) ;) (if_statement "if ((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)) goto LAB_00074646;" if (parenthesized_expression "((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7))" ( (binary_expression "(uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)" (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) || (parenthesized_expression "(uVar7 = uVar5 + 1, param_4 <= uVar7)" ( (comma_expression "uVar7 = uVar5 + 1, param_4 <= uVar7" (assignment_expression "uVar7 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) , (binary_expression "param_4 <= uVar7" identifier <= identifier)) ))) )) (goto_statement "goto LAB_00074646;" goto statement_identifier ;)) (if_statement "if (0x7f < uVar4) break;" if (parenthesized_expression "(0x7f < uVar4)" ( (binary_expression "0x7f < uVar4" number_literal < identifier) )) (break_statement "break;" break ;)) (expression_statement "*pbVar3 = bVar2;" (assignment_expression "*pbVar3 = bVar2" (pointer_expression "*pbVar3" * identifier) = identifier) ;) (expression_statement "uVar8 = uVar8 + 2;" (assignment_expression "uVar8 = uVar8 + 2" identifier = (binary_expression "uVar8 + 2" identifier + number_literal)) ;) (expression_statement "uVar5 = uVar7;" (assignment_expression "uVar5 = uVar7" identifier = identifier) ;) (if_statement "if (param_7 < uVar8) goto LAB_00074696;" if (parenthesized_expression "(param_7 < uVar8)" ( (binary_expression "param_7 < uVar8" identifier < identifier) )) (goto_statement "goto LAB_00074696;" goto statement_identifier ;)) })) (expression_statement "uVar1 = uVar5 + 2;" (assignment_expression "uVar1 = uVar5 + 2" identifier = (binary_expression "uVar5 + 2" identifier + number_literal)) ;) (if_statement "if (param_4 <= uVar1) goto LAB_00074646;" if (parenthesized_expression "(param_4 <= uVar1)" ( (binary_expression "param_4 <= uVar1" identifier <= identifier) )) (goto_statement "goto LAB_00074646;" goto statement_identifier ;)) (if_statement "if (uVar4 < 0x800) {\n        bVar6 = 0xc0;\n        uVar5 = uVar1;\n      }\n      else {\n        uVar5 = uVar5 + 3;\n        local_14 = uVar5;\n        if (param_4 <= uVar5) goto LAB_00074646;\n        *pbVar3 = bVar6 >> 4 | 0xe0;\n        pbVar3 = param_3 + uVar7;\n        bVar6 = 0x80;\n        uVar7 = uVar1;\n      }" if (parenthesized_expression "(uVar4 < 0x800)" ( (binary_expression "uVar4 < 0x800" identifier < number_literal) )) (compound_statement "{\n        bVar6 = 0xc0;\n        uVar5 = uVar1;\n      }" { (expression_statement "bVar6 = 0xc0;" (assignment_expression "bVar6 = 0xc0" identifier = number_literal) ;) (expression_statement "uVar5 = uVar1;" (assignment_expression "uVar5 = uVar1" identifier = identifier) ;) }) (else_clause "else {\n        uVar5 = uVar5 + 3;\n        local_14 = uVar5;\n        if (param_4 <= uVar5) goto LAB_00074646;\n        *pbVar3 = bVar6 >> 4 | 0xe0;\n        pbVar3 = param_3 + uVar7;\n        bVar6 = 0x80;\n        uVar7 = uVar1;\n      }" else (compound_statement "{\n        uVar5 = uVar5 + 3;\n        local_14 = uVar5;\n        if (param_4 <= uVar5) goto LAB_00074646;\n        *pbVar3 = bVar6 >> 4 | 0xe0;\n        pbVar3 = param_3 + uVar7;\n        bVar6 = 0x80;\n        uVar7 = uVar1;\n      }" { (expression_statement "uVar5 = uVar5 + 3;" (assignment_expression "uVar5 = uVar5 + 3" identifier = (binary_expression "uVar5 + 3" identifier + number_literal)) ;) (expression_statement "local_14 = uVar5;" (assignment_expression "local_14 = uVar5" identifier = identifier) ;) (if_statement "if (param_4 <= uVar5) goto LAB_00074646;" if (parenthesized_expression "(param_4 <= uVar5)" ( (binary_expression "param_4 <= uVar5" identifier <= identifier) )) (goto_statement "goto LAB_00074646;" goto statement_identifier ;)) (expression_statement "*pbVar3 = bVar6 >> 4 | 0xe0;" (assignment_expression "*pbVar3 = bVar6 >> 4 | 0xe0" (pointer_expression "*pbVar3" * identifier) = (binary_expression "bVar6 >> 4 | 0xe0" (binary_expression "bVar6 >> 4" identifier >> number_literal) | number_literal)) ;) (expression_statement "pbVar3 = param_3 + uVar7;" (assignment_expression "pbVar3 = param_3 + uVar7" identifier = (binary_expression "param_3 + uVar7" identifier + identifier)) ;) (expression_statement "bVar6 = 0x80;" (assignment_expression "bVar6 = 0x80" identifier = number_literal) ;) (expression_statement "uVar7 = uVar1;" (assignment_expression "uVar7 = uVar1" identifier = identifier) ;) }))) (expression_statement "*pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;" (assignment_expression "*pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6" (pointer_expression "*pbVar3" * identifier) = (binary_expression "(byte)(uVar4 >> 6) & 0x3f | bVar6" (binary_expression "(byte)(uVar4 >> 6) & 0x3f" (call_expression "(byte)(uVar4 >> 6)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar4 >> 6)" ( (binary_expression "uVar4 >> 6" identifier >> number_literal) ))) & number_literal) | identifier)) ;) (expression_statement "param_3[uVar7] = bVar2 & 0x3f | 0x80;" (assignment_expression "param_3[uVar7] = bVar2 & 0x3f | 0x80" (subscript_expression "param_3[uVar7]" identifier [ identifier ]) = (binary_expression "bVar2 & 0x3f | 0x80" (binary_expression "bVar2 & 0x3f" identifier & number_literal) | number_literal)) ;) (expression_statement "uVar8 = uVar8 + 2;" (assignment_expression "uVar8 = uVar8 + 2" identifier = (binary_expression "uVar8 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar8 <= param_7)" ( (binary_expression "uVar8 <= param_7" identifier <= identifier) )) ;) }) (else_clause "else {\n    uVar7 = 2;\n    uVar8 = 0;\n    do {\n      bVar6 = *(byte *)(param_5 + -2 + uVar7);\n      bVar2 = *(byte *)(param_5 + -1 + uVar7);\n      uVar4 = CONCAT11(bVar6,bVar2);\n      pbVar3 = param_3 + uVar8;\n      if ((uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5)) goto LAB_00074646;\n      if (0x7f < uVar4) {\n        uVar1 = uVar8 + 2;\n        if (param_4 <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = param_3 + uVar8;\n      }\n      *pbVar3 = (byte)uVar4;\n      uVar7 = uVar7 + 2;\n      uVar8 = uVar5;\n    } while (uVar7 <= param_7);\n  }" else (compound_statement "{\n    uVar7 = 2;\n    uVar8 = 0;\n    do {\n      bVar6 = *(byte *)(param_5 + -2 + uVar7);\n      bVar2 = *(byte *)(param_5 + -1 + uVar7);\n      uVar4 = CONCAT11(bVar6,bVar2);\n      pbVar3 = param_3 + uVar8;\n      if ((uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5)) goto LAB_00074646;\n      if (0x7f < uVar4) {\n        uVar1 = uVar8 + 2;\n        if (param_4 <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = param_3 + uVar8;\n      }\n      *pbVar3 = (byte)uVar4;\n      uVar7 = uVar7 + 2;\n      uVar8 = uVar5;\n    } while (uVar7 <= param_7);\n  }" { (expression_statement "uVar7 = 2;" (assignment_expression "uVar7 = 2" identifier = number_literal) ;) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (do_statement "do {\n      bVar6 = *(byte *)(param_5 + -2 + uVar7);\n      bVar2 = *(byte *)(param_5 + -1 + uVar7);\n      uVar4 = CONCAT11(bVar6,bVar2);\n      pbVar3 = param_3 + uVar8;\n      if ((uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5)) goto LAB_00074646;\n      if (0x7f < uVar4) {\n        uVar1 = uVar8 + 2;\n        if (param_4 <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = param_3 + uVar8;\n      }\n      *pbVar3 = (byte)uVar4;\n      uVar7 = uVar7 + 2;\n      uVar8 = uVar5;\n    } while (uVar7 <= param_7);" do (compound_statement "{\n      bVar6 = *(byte *)(param_5 + -2 + uVar7);\n      bVar2 = *(byte *)(param_5 + -1 + uVar7);\n      uVar4 = CONCAT11(bVar6,bVar2);\n      pbVar3 = param_3 + uVar8;\n      if ((uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5)) goto LAB_00074646;\n      if (0x7f < uVar4) {\n        uVar1 = uVar8 + 2;\n        if (param_4 <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = param_3 + uVar8;\n      }\n      *pbVar3 = (byte)uVar4;\n      uVar7 = uVar7 + 2;\n      uVar8 = uVar5;\n    }" { (expression_statement "bVar6 = *(byte *)(param_5 + -2 + uVar7);" (assignment_expression "bVar6 = *(byte *)(param_5 + -2 + uVar7)" identifier = (pointer_expression "*(byte *)(param_5 + -2 + uVar7)" * (cast_expression "(byte *)(param_5 + -2 + uVar7)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + -2 + uVar7)" ( (binary_expression "param_5 + -2 + uVar7" (binary_expression "param_5 + -2" identifier + number_literal) + identifier) ))))) ;) (expression_statement "bVar2 = *(byte *)(param_5 + -1 + uVar7);" (assignment_expression "bVar2 = *(byte *)(param_5 + -1 + uVar7)" identifier = (pointer_expression "*(byte *)(param_5 + -1 + uVar7)" * (cast_expression "(byte *)(param_5 + -1 + uVar7)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + -1 + uVar7)" ( (binary_expression "param_5 + -1 + uVar7" (binary_expression "param_5 + -1" identifier + number_literal) + identifier) ))))) ;) (expression_statement "uVar4 = CONCAT11(bVar6,bVar2);" (assignment_expression "uVar4 = CONCAT11(bVar6,bVar2)" identifier = (call_expression "CONCAT11(bVar6,bVar2)" identifier (argument_list "(bVar6,bVar2)" ( identifier , identifier )))) ;) (expression_statement "pbVar3 = param_3 + uVar8;" (assignment_expression "pbVar3 = param_3 + uVar8" identifier = (binary_expression "param_3 + uVar8" identifier + identifier)) ;) (if_statement "if ((uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5)) goto LAB_00074646;" if (parenthesized_expression "((uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5))" ( (binary_expression "(uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5)" (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) || (parenthesized_expression "(uVar5 = uVar8 + 1, param_4 <= uVar5)" ( (comma_expression "uVar5 = uVar8 + 1, param_4 <= uVar5" (assignment_expression "uVar5 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) , (binary_expression "param_4 <= uVar5" identifier <= identifier)) ))) )) (goto_statement "goto LAB_00074646;" goto statement_identifier ;)) (if_statement "if (0x7f < uVar4) {\n        uVar1 = uVar8 + 2;\n        if (param_4 <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = param_3 + uVar8;\n      }" if (parenthesized_expression "(0x7f < uVar4)" ( (binary_expression "0x7f < uVar4" number_literal < identifier) )) (compound_statement "{\n        uVar1 = uVar8 + 2;\n        if (param_4 <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = param_3 + uVar8;\n      }" { (expression_statement "uVar1 = uVar8 + 2;" (assignment_expression "uVar1 = uVar8 + 2" identifier = (binary_expression "uVar8 + 2" identifier + number_literal)) ;) (if_statement "if (param_4 <= uVar1) goto LAB_00074646;" if (parenthesized_expression "(param_4 <= uVar1)" ( (binary_expression "param_4 <= uVar1" identifier <= identifier) )) (goto_statement "goto LAB_00074646;" goto statement_identifier ;)) (if_statement "if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }" if (parenthesized_expression "(uVar4 < 0x800)" ( (binary_expression "uVar4 < 0x800" identifier < number_literal) )) (compound_statement "{\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }" { (expression_statement "bVar6 = 0xc0;" (assignment_expression "bVar6 = 0xc0" identifier = number_literal) ;) (expression_statement "uVar8 = uVar5;" (assignment_expression "uVar8 = uVar5" identifier = identifier) ;) (expression_statement "uVar5 = uVar1;" (assignment_expression "uVar5 = uVar1" identifier = identifier) ;) }) (else_clause "else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }" else (compound_statement "{\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }" { (expression_statement "local_14 = uVar8 + 3;" (assignment_expression "local_14 = uVar8 + 3" identifier = (binary_expression "uVar8 + 3" identifier + number_literal)) ;) (if_statement "if (param_4 <= local_14) goto LAB_00074646;" if (parenthesized_expression "(param_4 <= local_14)" ( (binary_expression "param_4 <= local_14" identifier <= identifier) )) (goto_statement "goto LAB_00074646;" goto statement_identifier ;)) (expression_statement "*pbVar3 = bVar6 >> 4 | 0xe0;" (assignment_expression "*pbVar3 = bVar6 >> 4 | 0xe0" (pointer_expression "*pbVar3" * identifier) = (binary_expression "bVar6 >> 4 | 0xe0" (binary_expression "bVar6 >> 4" identifier >> number_literal) | number_literal)) ;) (expression_statement "pbVar3 = param_3 + uVar5;" (assignment_expression "pbVar3 = param_3 + uVar5" identifier = (binary_expression "param_3 + uVar5" identifier + identifier)) ;) (expression_statement "bVar6 = 0x80;" (assignment_expression "bVar6 = 0x80" identifier = number_literal) ;) (expression_statement "uVar8 = uVar1;" (assignment_expression "uVar8 = uVar1" identifier = identifier) ;) (expression_statement "uVar5 = local_14;" (assignment_expression "uVar5 = local_14" identifier = identifier) ;) }))) (expression_statement "*pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;" (assignment_expression "*pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6" (pointer_expression "*pbVar3" * identifier) = (binary_expression "(byte)(uVar4 >> 6) & 0x3f | bVar6" (binary_expression "(byte)(uVar4 >> 6) & 0x3f" (call_expression "(byte)(uVar4 >> 6)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar4 >> 6)" ( (binary_expression "uVar4 >> 6" identifier >> number_literal) ))) & number_literal) | identifier)) ;) (expression_statement "uVar4 = (ushort)(bVar2 & 0x3f | 0x80);" (assignment_expression "uVar4 = (ushort)(bVar2 & 0x3f | 0x80)" identifier = (call_expression "(ushort)(bVar2 & 0x3f | 0x80)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(bVar2 & 0x3f | 0x80)" ( (binary_expression "bVar2 & 0x3f | 0x80" (binary_expression "bVar2 & 0x3f" identifier & number_literal) | number_literal) )))) ;) (expression_statement "pbVar3 = param_3 + uVar8;" (assignment_expression "pbVar3 = param_3 + uVar8" identifier = (binary_expression "param_3 + uVar8" identifier + identifier)) ;) })) (expression_statement "*pbVar3 = (byte)uVar4;" (assignment_expression "*pbVar3 = (byte)uVar4" (pointer_expression "*pbVar3" * identifier) = (cast_expression "(byte)uVar4" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "uVar7 = uVar7 + 2;" (assignment_expression "uVar7 = uVar7 + 2" identifier = (binary_expression "uVar7 + 2" identifier + number_literal)) ;) (expression_statement "uVar8 = uVar5;" (assignment_expression "uVar8 = uVar5" identifier = identifier) ;) }) while (parenthesized_expression "(uVar7 <= param_7)" ( (binary_expression "uVar7 <= param_7" identifier <= identifier) )) ;) }))) (labeled_statement "LAB_00074696:\n  param_3[uVar5] = 0;" statement_identifier : (expression_statement "param_3[uVar5] = 0;" (assignment_expression "param_3[uVar5] = 0" (subscript_expression "param_3[uVar5]" identifier [ identifier ]) = number_literal) ;)) (return_statement "return local_14;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nvoid volume_id_set_unicode16(char *str,size_t len,uint8_t *buf,endian endianess,size_t count)\n\n{\n  uint uVar1;\n  byte bVar2;\n  byte *pbVar3;\n  ushort uVar4;\n  uint uVar5;\n  uint uVar6;\n  byte bVar7;\n  uint uVar8;\n  uint uVar9;\n  \n  pbVar3 = (byte *)str;\n  if (count < 2) {\nLAB_00074646:\n    *pbVar3 = 0;\n    return;\n  }\n  if (endianess == LE) {\n    uVar9 = 2;\n    uVar6 = 0;\n    do {\n      while( true ) {\n        bVar2 = buf[uVar9 - 2];\n        uVar4 = CONCAT11(buf[uVar9 - 1],bVar2);\n        pbVar3 = (byte *)(str + uVar6);\n        if ((uVar4 == 0) || (uVar8 = uVar6 + 1, len <= uVar8)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar9 = uVar9 + 2;\n        uVar6 = uVar8;\n        if (count < uVar9) goto LAB_00074696;\n      }\n      uVar1 = uVar6 + 2;\n      if (len <= uVar1) goto LAB_00074646;\n      if (uVar4 < 0x800) {\n        bVar7 = 0xc0;\n        uVar6 = uVar1;\n      }\n      else {\n        uVar6 = uVar6 + 3;\n        if (len <= uVar6) goto LAB_00074646;\n        *pbVar3 = buf[uVar9 - 1] >> 4 | 0xe0;\n        pbVar3 = (byte *)(str + uVar8);\n        bVar7 = 0x80;\n        uVar8 = uVar1;\n      }\n      *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar7;\n      str[uVar8] = bVar2 & 0x3f | 0x80;\n      uVar9 = uVar9 + 2;\n    } while (uVar9 <= count);\n  }\n  else {\n    uVar8 = 2;\n    uVar9 = 0;\n    do {\n      bVar2 = buf[uVar8 - 1];\n      uVar4 = CONCAT11(buf[uVar8 - 2],bVar2);\n      pbVar3 = (byte *)(str + uVar9);\n      if ((uVar4 == 0) || (uVar6 = uVar9 + 1, len <= uVar6)) goto LAB_00074646;\n      if (0x7f < uVar4) {\n        uVar1 = uVar9 + 2;\n        if (len <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar7 = 0xc0;\n          uVar5 = uVar6;\n          uVar6 = uVar1;\n        }\n        else {\n          if (len <= uVar9 + 3) goto LAB_00074646;\n          *pbVar3 = buf[uVar8 - 2] >> 4 | 0xe0;\n          pbVar3 = (byte *)(str + uVar6);\n          bVar7 = 0x80;\n          uVar5 = uVar1;\n          uVar6 = uVar9 + 3;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar7;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = (byte *)(str + uVar5);\n      }\n      *pbVar3 = (byte)uVar4;\n      uVar8 = uVar8 + 2;\n      uVar9 = uVar6;\n    } while (uVar8 <= count);\n  }\nLAB_00074696:\n  str[uVar6] = '\0';\n  return;\n}\n\n" comment (function_definition "void volume_id_set_unicode16(char *str,size_t len,uint8_t *buf,endian endianess,size_t count)\n\n{\n  uint uVar1;\n  byte bVar2;\n  byte *pbVar3;\n  ushort uVar4;\n  uint uVar5;\n  uint uVar6;\n  byte bVar7;\n  uint uVar8;\n  uint uVar9;\n  \n  pbVar3 = (byte *)str;\n  if (count < 2) {\nLAB_00074646:\n    *pbVar3 = 0;\n    return;\n  }\n  if (endianess == LE) {\n    uVar9 = 2;\n    uVar6 = 0;\n    do {\n      while( true ) {\n        bVar2 = buf[uVar9 - 2];\n        uVar4 = CONCAT11(buf[uVar9 - 1],bVar2);\n        pbVar3 = (byte *)(str + uVar6);\n        if ((uVar4 == 0) || (uVar8 = uVar6 + 1, len <= uVar8)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar9 = uVar9 + 2;\n        uVar6 = uVar8;\n        if (count < uVar9) goto LAB_00074696;\n      }\n      uVar1 = uVar6 + 2;\n      if (len <= uVar1) goto LAB_00074646;\n      if (uVar4 < 0x800) {\n        bVar7 = 0xc0;\n        uVar6 = uVar1;\n      }\n      else {\n        uVar6 = uVar6 + 3;\n        if (len <= uVar6) goto LAB_00074646;\n        *pbVar3 = buf[uVar9 - 1] >> 4 | 0xe0;\n        pbVar3 = (byte *)(str + uVar8);\n        bVar7 = 0x80;\n        uVar8 = uVar1;\n      }\n      *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar7;\n      str[uVar8] = bVar2 & 0x3f | 0x80;\n      uVar9 = uVar9 + 2;\n    } while (uVar9 <= count);\n  }\n  else {\n    uVar8 = 2;\n    uVar9 = 0;\n    do {\n      bVar2 = buf[uVar8 - 1];\n      uVar4 = CONCAT11(buf[uVar8 - 2],bVar2);\n      pbVar3 = (byte *)(str + uVar9);\n      if ((uVar4 == 0) || (uVar6 = uVar9 + 1, len <= uVar6)) goto LAB_00074646;\n      if (0x7f < uVar4) {\n        uVar1 = uVar9 + 2;\n        if (len <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar7 = 0xc0;\n          uVar5 = uVar6;\n          uVar6 = uVar1;\n        }\n        else {\n          if (len <= uVar9 + 3) goto LAB_00074646;\n          *pbVar3 = buf[uVar8 - 2] >> 4 | 0xe0;\n          pbVar3 = (byte *)(str + uVar6);\n          bVar7 = 0x80;\n          uVar5 = uVar1;\n          uVar6 = uVar9 + 3;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar7;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = (byte *)(str + uVar5);\n      }\n      *pbVar3 = (byte)uVar4;\n      uVar8 = uVar8 + 2;\n      uVar9 = uVar6;\n    } while (uVar8 <= count);\n  }\nLAB_00074696:\n  str[uVar6] = '\0';\n  return;\n}" primitive_type (function_declarator "volume_id_set_unicode16(char *str,size_t len,uint8_t *buf,endian endianess,size_t count)" identifier (parameter_list "(char *str,size_t len,uint8_t *buf,endian endianess,size_t count)" ( (parameter_declaration "char *str" primitive_type (pointer_declarator "*str" * identifier)) , (parameter_declaration "size_t len" primitive_type identifier) , (parameter_declaration "uint8_t *buf" primitive_type (pointer_declarator "*buf" * identifier)) , (parameter_declaration "endian endianess" type_identifier identifier) , (parameter_declaration "size_t count" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  byte bVar2;\n  byte *pbVar3;\n  ushort uVar4;\n  uint uVar5;\n  uint uVar6;\n  byte bVar7;\n  uint uVar8;\n  uint uVar9;\n  \n  pbVar3 = (byte *)str;\n  if (count < 2) {\nLAB_00074646:\n    *pbVar3 = 0;\n    return;\n  }\n  if (endianess == LE) {\n    uVar9 = 2;\n    uVar6 = 0;\n    do {\n      while( true ) {\n        bVar2 = buf[uVar9 - 2];\n        uVar4 = CONCAT11(buf[uVar9 - 1],bVar2);\n        pbVar3 = (byte *)(str + uVar6);\n        if ((uVar4 == 0) || (uVar8 = uVar6 + 1, len <= uVar8)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar9 = uVar9 + 2;\n        uVar6 = uVar8;\n        if (count < uVar9) goto LAB_00074696;\n      }\n      uVar1 = uVar6 + 2;\n      if (len <= uVar1) goto LAB_00074646;\n      if (uVar4 < 0x800) {\n        bVar7 = 0xc0;\n        uVar6 = uVar1;\n      }\n      else {\n        uVar6 = uVar6 + 3;\n        if (len <= uVar6) goto LAB_00074646;\n        *pbVar3 = buf[uVar9 - 1] >> 4 | 0xe0;\n        pbVar3 = (byte *)(str + uVar8);\n        bVar7 = 0x80;\n        uVar8 = uVar1;\n      }\n      *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar7;\n      str[uVar8] = bVar2 & 0x3f | 0x80;\n      uVar9 = uVar9 + 2;\n    } while (uVar9 <= count);\n  }\n  else {\n    uVar8 = 2;\n    uVar9 = 0;\n    do {\n      bVar2 = buf[uVar8 - 1];\n      uVar4 = CONCAT11(buf[uVar8 - 2],bVar2);\n      pbVar3 = (byte *)(str + uVar9);\n      if ((uVar4 == 0) || (uVar6 = uVar9 + 1, len <= uVar6)) goto LAB_00074646;\n      if (0x7f < uVar4) {\n        uVar1 = uVar9 + 2;\n        if (len <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar7 = 0xc0;\n          uVar5 = uVar6;\n          uVar6 = uVar1;\n        }\n        else {\n          if (len <= uVar9 + 3) goto LAB_00074646;\n          *pbVar3 = buf[uVar8 - 2] >> 4 | 0xe0;\n          pbVar3 = (byte *)(str + uVar6);\n          bVar7 = 0x80;\n          uVar5 = uVar1;\n          uVar6 = uVar9 + 3;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar7;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = (byte *)(str + uVar5);\n      }\n      *pbVar3 = (byte)uVar4;\n      uVar8 = uVar8 + 2;\n      uVar9 = uVar6;\n    } while (uVar8 <= count);\n  }\nLAB_00074696:\n  str[uVar6] = '\0';\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "ushort uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "byte bVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (expression_statement "pbVar3 = (byte *)str;" (assignment_expression "pbVar3 = (byte *)str" identifier = (cast_expression "(byte *)str" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (count < 2) {\nLAB_00074646:\n    *pbVar3 = 0;\n    return;\n  }" if (parenthesized_expression "(count < 2)" ( (binary_expression "count < 2" identifier < number_literal) )) (compound_statement "{\nLAB_00074646:\n    *pbVar3 = 0;\n    return;\n  }" { (labeled_statement "LAB_00074646:\n    *pbVar3 = 0;" statement_identifier : (expression_statement "*pbVar3 = 0;" (assignment_expression "*pbVar3 = 0" (pointer_expression "*pbVar3" * identifier) = number_literal) ;)) (return_statement "return;" return ;) })) (if_statement "if (endianess == LE) {\n    uVar9 = 2;\n    uVar6 = 0;\n    do {\n      while( true ) {\n        bVar2 = buf[uVar9 - 2];\n        uVar4 = CONCAT11(buf[uVar9 - 1],bVar2);\n        pbVar3 = (byte *)(str + uVar6);\n        if ((uVar4 == 0) || (uVar8 = uVar6 + 1, len <= uVar8)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar9 = uVar9 + 2;\n        uVar6 = uVar8;\n        if (count < uVar9) goto LAB_00074696;\n      }\n      uVar1 = uVar6 + 2;\n      if (len <= uVar1) goto LAB_00074646;\n      if (uVar4 < 0x800) {\n        bVar7 = 0xc0;\n        uVar6 = uVar1;\n      }\n      else {\n        uVar6 = uVar6 + 3;\n        if (len <= uVar6) goto LAB_00074646;\n        *pbVar3 = buf[uVar9 - 1] >> 4 | 0xe0;\n        pbVar3 = (byte *)(str + uVar8);\n        bVar7 = 0x80;\n        uVar8 = uVar1;\n      }\n      *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar7;\n      str[uVar8] = bVar2 & 0x3f | 0x80;\n      uVar9 = uVar9 + 2;\n    } while (uVar9 <= count);\n  }\n  else {\n    uVar8 = 2;\n    uVar9 = 0;\n    do {\n      bVar2 = buf[uVar8 - 1];\n      uVar4 = CONCAT11(buf[uVar8 - 2],bVar2);\n      pbVar3 = (byte *)(str + uVar9);\n      if ((uVar4 == 0) || (uVar6 = uVar9 + 1, len <= uVar6)) goto LAB_00074646;\n      if (0x7f < uVar4) {\n        uVar1 = uVar9 + 2;\n        if (len <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar7 = 0xc0;\n          uVar5 = uVar6;\n          uVar6 = uVar1;\n        }\n        else {\n          if (len <= uVar9 + 3) goto LAB_00074646;\n          *pbVar3 = buf[uVar8 - 2] >> 4 | 0xe0;\n          pbVar3 = (byte *)(str + uVar6);\n          bVar7 = 0x80;\n          uVar5 = uVar1;\n          uVar6 = uVar9 + 3;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar7;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = (byte *)(str + uVar5);\n      }\n      *pbVar3 = (byte)uVar4;\n      uVar8 = uVar8 + 2;\n      uVar9 = uVar6;\n    } while (uVar8 <= count);\n  }" if (parenthesized_expression "(endianess == LE)" ( (binary_expression "endianess == LE" identifier == identifier) )) (compound_statement "{\n    uVar9 = 2;\n    uVar6 = 0;\n    do {\n      while( true ) {\n        bVar2 = buf[uVar9 - 2];\n        uVar4 = CONCAT11(buf[uVar9 - 1],bVar2);\n        pbVar3 = (byte *)(str + uVar6);\n        if ((uVar4 == 0) || (uVar8 = uVar6 + 1, len <= uVar8)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar9 = uVar9 + 2;\n        uVar6 = uVar8;\n        if (count < uVar9) goto LAB_00074696;\n      }\n      uVar1 = uVar6 + 2;\n      if (len <= uVar1) goto LAB_00074646;\n      if (uVar4 < 0x800) {\n        bVar7 = 0xc0;\n        uVar6 = uVar1;\n      }\n      else {\n        uVar6 = uVar6 + 3;\n        if (len <= uVar6) goto LAB_00074646;\n        *pbVar3 = buf[uVar9 - 1] >> 4 | 0xe0;\n        pbVar3 = (byte *)(str + uVar8);\n        bVar7 = 0x80;\n        uVar8 = uVar1;\n      }\n      *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar7;\n      str[uVar8] = bVar2 & 0x3f | 0x80;\n      uVar9 = uVar9 + 2;\n    } while (uVar9 <= count);\n  }" { (expression_statement "uVar9 = 2;" (assignment_expression "uVar9 = 2" identifier = number_literal) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n      while( true ) {\n        bVar2 = buf[uVar9 - 2];\n        uVar4 = CONCAT11(buf[uVar9 - 1],bVar2);\n        pbVar3 = (byte *)(str + uVar6);\n        if ((uVar4 == 0) || (uVar8 = uVar6 + 1, len <= uVar8)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar9 = uVar9 + 2;\n        uVar6 = uVar8;\n        if (count < uVar9) goto LAB_00074696;\n      }\n      uVar1 = uVar6 + 2;\n      if (len <= uVar1) goto LAB_00074646;\n      if (uVar4 < 0x800) {\n        bVar7 = 0xc0;\n        uVar6 = uVar1;\n      }\n      else {\n        uVar6 = uVar6 + 3;\n        if (len <= uVar6) goto LAB_00074646;\n        *pbVar3 = buf[uVar9 - 1] >> 4 | 0xe0;\n        pbVar3 = (byte *)(str + uVar8);\n        bVar7 = 0x80;\n        uVar8 = uVar1;\n      }\n      *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar7;\n      str[uVar8] = bVar2 & 0x3f | 0x80;\n      uVar9 = uVar9 + 2;\n    } while (uVar9 <= count);" do (compound_statement "{\n      while( true ) {\n        bVar2 = buf[uVar9 - 2];\n        uVar4 = CONCAT11(buf[uVar9 - 1],bVar2);\n        pbVar3 = (byte *)(str + uVar6);\n        if ((uVar4 == 0) || (uVar8 = uVar6 + 1, len <= uVar8)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar9 = uVar9 + 2;\n        uVar6 = uVar8;\n        if (count < uVar9) goto LAB_00074696;\n      }\n      uVar1 = uVar6 + 2;\n      if (len <= uVar1) goto LAB_00074646;\n      if (uVar4 < 0x800) {\n        bVar7 = 0xc0;\n        uVar6 = uVar1;\n      }\n      else {\n        uVar6 = uVar6 + 3;\n        if (len <= uVar6) goto LAB_00074646;\n        *pbVar3 = buf[uVar9 - 1] >> 4 | 0xe0;\n        pbVar3 = (byte *)(str + uVar8);\n        bVar7 = 0x80;\n        uVar8 = uVar1;\n      }\n      *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar7;\n      str[uVar8] = bVar2 & 0x3f | 0x80;\n      uVar9 = uVar9 + 2;\n    }" { (while_statement "while( true ) {\n        bVar2 = buf[uVar9 - 2];\n        uVar4 = CONCAT11(buf[uVar9 - 1],bVar2);\n        pbVar3 = (byte *)(str + uVar6);\n        if ((uVar4 == 0) || (uVar8 = uVar6 + 1, len <= uVar8)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar9 = uVar9 + 2;\n        uVar6 = uVar8;\n        if (count < uVar9) goto LAB_00074696;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        bVar2 = buf[uVar9 - 2];\n        uVar4 = CONCAT11(buf[uVar9 - 1],bVar2);\n        pbVar3 = (byte *)(str + uVar6);\n        if ((uVar4 == 0) || (uVar8 = uVar6 + 1, len <= uVar8)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar9 = uVar9 + 2;\n        uVar6 = uVar8;\n        if (count < uVar9) goto LAB_00074696;\n      }" { (expression_statement "bVar2 = buf[uVar9 - 2];" (assignment_expression "bVar2 = buf[uVar9 - 2]" identifier = (subscript_expression "buf[uVar9 - 2]" identifier [ (binary_expression "uVar9 - 2" identifier - number_literal) ])) ;) (expression_statement "uVar4 = CONCAT11(buf[uVar9 - 1],bVar2);" (assignment_expression "uVar4 = CONCAT11(buf[uVar9 - 1],bVar2)" identifier = (call_expression "CONCAT11(buf[uVar9 - 1],bVar2)" identifier (argument_list "(buf[uVar9 - 1],bVar2)" ( (subscript_expression "buf[uVar9 - 1]" identifier [ (binary_expression "uVar9 - 1" identifier - number_literal) ]) , identifier )))) ;) (expression_statement "pbVar3 = (byte *)(str + uVar6);" (assignment_expression "pbVar3 = (byte *)(str + uVar6)" identifier = (cast_expression "(byte *)(str + uVar6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(str + uVar6)" ( (binary_expression "str + uVar6" identifier + identifier) )))) ;) (if_statement "if ((uVar4 == 0) || (uVar8 = uVar6 + 1, len <= uVar8)) goto LAB_00074646;" if (parenthesized_expression "((uVar4 == 0) || (uVar8 = uVar6 + 1, len <= uVar8))" ( (binary_expression "(uVar4 == 0) || (uVar8 = uVar6 + 1, len <= uVar8)" (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) || (parenthesized_expression "(uVar8 = uVar6 + 1, len <= uVar8)" ( (comma_expression "uVar8 = uVar6 + 1, len <= uVar8" (assignment_expression "uVar8 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) , (binary_expression "len <= uVar8" identifier <= identifier)) ))) )) (goto_statement "goto LAB_00074646;" goto statement_identifier ;)) (if_statement "if (0x7f < uVar4) break;" if (parenthesized_expression "(0x7f < uVar4)" ( (binary_expression "0x7f < uVar4" number_literal < identifier) )) (break_statement "break;" break ;)) (expression_statement "*pbVar3 = bVar2;" (assignment_expression "*pbVar3 = bVar2" (pointer_expression "*pbVar3" * identifier) = identifier) ;) (expression_statement "uVar9 = uVar9 + 2;" (assignment_expression "uVar9 = uVar9 + 2" identifier = (binary_expression "uVar9 + 2" identifier + number_literal)) ;) (expression_statement "uVar6 = uVar8;" (assignment_expression "uVar6 = uVar8" identifier = identifier) ;) (if_statement "if (count < uVar9) goto LAB_00074696;" if (parenthesized_expression "(count < uVar9)" ( (binary_expression "count < uVar9" identifier < identifier) )) (goto_statement "goto LAB_00074696;" goto statement_identifier ;)) })) (expression_statement "uVar1 = uVar6 + 2;" (assignment_expression "uVar1 = uVar6 + 2" identifier = (binary_expression "uVar6 + 2" identifier + number_literal)) ;) (if_statement "if (len <= uVar1) goto LAB_00074646;" if (parenthesized_expression "(len <= uVar1)" ( (binary_expression "len <= uVar1" identifier <= identifier) )) (goto_statement "goto LAB_00074646;" goto statement_identifier ;)) (if_statement "if (uVar4 < 0x800) {\n        bVar7 = 0xc0;\n        uVar6 = uVar1;\n      }\n      else {\n        uVar6 = uVar6 + 3;\n        if (len <= uVar6) goto LAB_00074646;\n        *pbVar3 = buf[uVar9 - 1] >> 4 | 0xe0;\n        pbVar3 = (byte *)(str + uVar8);\n        bVar7 = 0x80;\n        uVar8 = uVar1;\n      }" if (parenthesized_expression "(uVar4 < 0x800)" ( (binary_expression "uVar4 < 0x800" identifier < number_literal) )) (compound_statement "{\n        bVar7 = 0xc0;\n        uVar6 = uVar1;\n      }" { (expression_statement "bVar7 = 0xc0;" (assignment_expression "bVar7 = 0xc0" identifier = number_literal) ;) (expression_statement "uVar6 = uVar1;" (assignment_expression "uVar6 = uVar1" identifier = identifier) ;) }) (else_clause "else {\n        uVar6 = uVar6 + 3;\n        if (len <= uVar6) goto LAB_00074646;\n        *pbVar3 = buf[uVar9 - 1] >> 4 | 0xe0;\n        pbVar3 = (byte *)(str + uVar8);\n        bVar7 = 0x80;\n        uVar8 = uVar1;\n      }" else (compound_statement "{\n        uVar6 = uVar6 + 3;\n        if (len <= uVar6) goto LAB_00074646;\n        *pbVar3 = buf[uVar9 - 1] >> 4 | 0xe0;\n        pbVar3 = (byte *)(str + uVar8);\n        bVar7 = 0x80;\n        uVar8 = uVar1;\n      }" { (expression_statement "uVar6 = uVar6 + 3;" (assignment_expression "uVar6 = uVar6 + 3" identifier = (binary_expression "uVar6 + 3" identifier + number_literal)) ;) (if_statement "if (len <= uVar6) goto LAB_00074646;" if (parenthesized_expression "(len <= uVar6)" ( (binary_expression "len <= uVar6" identifier <= identifier) )) (goto_statement "goto LAB_00074646;" goto statement_identifier ;)) (expression_statement "*pbVar3 = buf[uVar9 - 1] >> 4 | 0xe0;" (assignment_expression "*pbVar3 = buf[uVar9 - 1] >> 4 | 0xe0" (pointer_expression "*pbVar3" * identifier) = (binary_expression "buf[uVar9 - 1] >> 4 | 0xe0" (binary_expression "buf[uVar9 - 1] >> 4" (subscript_expression "buf[uVar9 - 1]" identifier [ (binary_expression "uVar9 - 1" identifier - number_literal) ]) >> number_literal) | number_literal)) ;) (expression_statement "pbVar3 = (byte *)(str + uVar8);" (assignment_expression "pbVar3 = (byte *)(str + uVar8)" identifier = (cast_expression "(byte *)(str + uVar8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(str + uVar8)" ( (binary_expression "str + uVar8" identifier + identifier) )))) ;) (expression_statement "bVar7 = 0x80;" (assignment_expression "bVar7 = 0x80" identifier = number_literal) ;) (expression_statement "uVar8 = uVar1;" (assignment_expression "uVar8 = uVar1" identifier = identifier) ;) }))) (expression_statement "*pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar7;" (assignment_expression "*pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar7" (pointer_expression "*pbVar3" * identifier) = (binary_expression "(byte)(uVar4 >> 6) & 0x3f | bVar7" (binary_expression "(byte)(uVar4 >> 6) & 0x3f" (call_expression "(byte)(uVar4 >> 6)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar4 >> 6)" ( (binary_expression "uVar4 >> 6" identifier >> number_literal) ))) & number_literal) | identifier)) ;) (expression_statement "str[uVar8] = bVar2 & 0x3f | 0x80;" (assignment_expression "str[uVar8] = bVar2 & 0x3f | 0x80" (subscript_expression "str[uVar8]" identifier [ identifier ]) = (binary_expression "bVar2 & 0x3f | 0x80" (binary_expression "bVar2 & 0x3f" identifier & number_literal) | number_literal)) ;) (expression_statement "uVar9 = uVar9 + 2;" (assignment_expression "uVar9 = uVar9 + 2" identifier = (binary_expression "uVar9 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar9 <= count)" ( (binary_expression "uVar9 <= count" identifier <= identifier) )) ;) }) (else_clause "else {\n    uVar8 = 2;\n    uVar9 = 0;\n    do {\n      bVar2 = buf[uVar8 - 1];\n      uVar4 = CONCAT11(buf[uVar8 - 2],bVar2);\n      pbVar3 = (byte *)(str + uVar9);\n      if ((uVar4 == 0) || (uVar6 = uVar9 + 1, len <= uVar6)) goto LAB_00074646;\n      if (0x7f < uVar4) {\n        uVar1 = uVar9 + 2;\n        if (len <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar7 = 0xc0;\n          uVar5 = uVar6;\n          uVar6 = uVar1;\n        }\n        else {\n          if (len <= uVar9 + 3) goto LAB_00074646;\n          *pbVar3 = buf[uVar8 - 2] >> 4 | 0xe0;\n          pbVar3 = (byte *)(str + uVar6);\n          bVar7 = 0x80;\n          uVar5 = uVar1;\n          uVar6 = uVar9 + 3;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar7;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = (byte *)(str + uVar5);\n      }\n      *pbVar3 = (byte)uVar4;\n      uVar8 = uVar8 + 2;\n      uVar9 = uVar6;\n    } while (uVar8 <= count);\n  }" else (compound_statement "{\n    uVar8 = 2;\n    uVar9 = 0;\n    do {\n      bVar2 = buf[uVar8 - 1];\n      uVar4 = CONCAT11(buf[uVar8 - 2],bVar2);\n      pbVar3 = (byte *)(str + uVar9);\n      if ((uVar4 == 0) || (uVar6 = uVar9 + 1, len <= uVar6)) goto LAB_00074646;\n      if (0x7f < uVar4) {\n        uVar1 = uVar9 + 2;\n        if (len <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar7 = 0xc0;\n          uVar5 = uVar6;\n          uVar6 = uVar1;\n        }\n        else {\n          if (len <= uVar9 + 3) goto LAB_00074646;\n          *pbVar3 = buf[uVar8 - 2] >> 4 | 0xe0;\n          pbVar3 = (byte *)(str + uVar6);\n          bVar7 = 0x80;\n          uVar5 = uVar1;\n          uVar6 = uVar9 + 3;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar7;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = (byte *)(str + uVar5);\n      }\n      *pbVar3 = (byte)uVar4;\n      uVar8 = uVar8 + 2;\n      uVar9 = uVar6;\n    } while (uVar8 <= count);\n  }" { (expression_statement "uVar8 = 2;" (assignment_expression "uVar8 = 2" identifier = number_literal) ;) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (do_statement "do {\n      bVar2 = buf[uVar8 - 1];\n      uVar4 = CONCAT11(buf[uVar8 - 2],bVar2);\n      pbVar3 = (byte *)(str + uVar9);\n      if ((uVar4 == 0) || (uVar6 = uVar9 + 1, len <= uVar6)) goto LAB_00074646;\n      if (0x7f < uVar4) {\n        uVar1 = uVar9 + 2;\n        if (len <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar7 = 0xc0;\n          uVar5 = uVar6;\n          uVar6 = uVar1;\n        }\n        else {\n          if (len <= uVar9 + 3) goto LAB_00074646;\n          *pbVar3 = buf[uVar8 - 2] >> 4 | 0xe0;\n          pbVar3 = (byte *)(str + uVar6);\n          bVar7 = 0x80;\n          uVar5 = uVar1;\n          uVar6 = uVar9 + 3;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar7;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = (byte *)(str + uVar5);\n      }\n      *pbVar3 = (byte)uVar4;\n      uVar8 = uVar8 + 2;\n      uVar9 = uVar6;\n    } while (uVar8 <= count);" do (compound_statement "{\n      bVar2 = buf[uVar8 - 1];\n      uVar4 = CONCAT11(buf[uVar8 - 2],bVar2);\n      pbVar3 = (byte *)(str + uVar9);\n      if ((uVar4 == 0) || (uVar6 = uVar9 + 1, len <= uVar6)) goto LAB_00074646;\n      if (0x7f < uVar4) {\n        uVar1 = uVar9 + 2;\n        if (len <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar7 = 0xc0;\n          uVar5 = uVar6;\n          uVar6 = uVar1;\n        }\n        else {\n          if (len <= uVar9 + 3) goto LAB_00074646;\n          *pbVar3 = buf[uVar8 - 2] >> 4 | 0xe0;\n          pbVar3 = (byte *)(str + uVar6);\n          bVar7 = 0x80;\n          uVar5 = uVar1;\n          uVar6 = uVar9 + 3;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar7;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = (byte *)(str + uVar5);\n      }\n      *pbVar3 = (byte)uVar4;\n      uVar8 = uVar8 + 2;\n      uVar9 = uVar6;\n    }" { (expression_statement "bVar2 = buf[uVar8 - 1];" (assignment_expression "bVar2 = buf[uVar8 - 1]" identifier = (subscript_expression "buf[uVar8 - 1]" identifier [ (binary_expression "uVar8 - 1" identifier - number_literal) ])) ;) (expression_statement "uVar4 = CONCAT11(buf[uVar8 - 2],bVar2);" (assignment_expression "uVar4 = CONCAT11(buf[uVar8 - 2],bVar2)" identifier = (call_expression "CONCAT11(buf[uVar8 - 2],bVar2)" identifier (argument_list "(buf[uVar8 - 2],bVar2)" ( (subscript_expression "buf[uVar8 - 2]" identifier [ (binary_expression "uVar8 - 2" identifier - number_literal) ]) , identifier )))) ;) (expression_statement "pbVar3 = (byte *)(str + uVar9);" (assignment_expression "pbVar3 = (byte *)(str + uVar9)" identifier = (cast_expression "(byte *)(str + uVar9)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(str + uVar9)" ( (binary_expression "str + uVar9" identifier + identifier) )))) ;) (if_statement "if ((uVar4 == 0) || (uVar6 = uVar9 + 1, len <= uVar6)) goto LAB_00074646;" if (parenthesized_expression "((uVar4 == 0) || (uVar6 = uVar9 + 1, len <= uVar6))" ( (binary_expression "(uVar4 == 0) || (uVar6 = uVar9 + 1, len <= uVar6)" (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) || (parenthesized_expression "(uVar6 = uVar9 + 1, len <= uVar6)" ( (comma_expression "uVar6 = uVar9 + 1, len <= uVar6" (assignment_expression "uVar6 = uVar9 + 1" identifier = (binary_expression "uVar9 + 1" identifier + number_literal)) , (binary_expression "len <= uVar6" identifier <= identifier)) ))) )) (goto_statement "goto LAB_00074646;" goto statement_identifier ;)) (if_statement "if (0x7f < uVar4) {\n        uVar1 = uVar9 + 2;\n        if (len <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar7 = 0xc0;\n          uVar5 = uVar6;\n          uVar6 = uVar1;\n        }\n        else {\n          if (len <= uVar9 + 3) goto LAB_00074646;\n          *pbVar3 = buf[uVar8 - 2] >> 4 | 0xe0;\n          pbVar3 = (byte *)(str + uVar6);\n          bVar7 = 0x80;\n          uVar5 = uVar1;\n          uVar6 = uVar9 + 3;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar7;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = (byte *)(str + uVar5);\n      }" if (parenthesized_expression "(0x7f < uVar4)" ( (binary_expression "0x7f < uVar4" number_literal < identifier) )) (compound_statement "{\n        uVar1 = uVar9 + 2;\n        if (len <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar7 = 0xc0;\n          uVar5 = uVar6;\n          uVar6 = uVar1;\n        }\n        else {\n          if (len <= uVar9 + 3) goto LAB_00074646;\n          *pbVar3 = buf[uVar8 - 2] >> 4 | 0xe0;\n          pbVar3 = (byte *)(str + uVar6);\n          bVar7 = 0x80;\n          uVar5 = uVar1;\n          uVar6 = uVar9 + 3;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar7;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = (byte *)(str + uVar5);\n      }" { (expression_statement "uVar1 = uVar9 + 2;" (assignment_expression "uVar1 = uVar9 + 2" identifier = (binary_expression "uVar9 + 2" identifier + number_literal)) ;) (if_statement "if (len <= uVar1) goto LAB_00074646;" if (parenthesized_expression "(len <= uVar1)" ( (binary_expression "len <= uVar1" identifier <= identifier) )) (goto_statement "goto LAB_00074646;" goto statement_identifier ;)) (if_statement "if (uVar4 < 0x800) {\n          bVar7 = 0xc0;\n          uVar5 = uVar6;\n          uVar6 = uVar1;\n        }\n        else {\n          if (len <= uVar9 + 3) goto LAB_00074646;\n          *pbVar3 = buf[uVar8 - 2] >> 4 | 0xe0;\n          pbVar3 = (byte *)(str + uVar6);\n          bVar7 = 0x80;\n          uVar5 = uVar1;\n          uVar6 = uVar9 + 3;\n        }" if (parenthesized_expression "(uVar4 < 0x800)" ( (binary_expression "uVar4 < 0x800" identifier < number_literal) )) (compound_statement "{\n          bVar7 = 0xc0;\n          uVar5 = uVar6;\n          uVar6 = uVar1;\n        }" { (expression_statement "bVar7 = 0xc0;" (assignment_expression "bVar7 = 0xc0" identifier = number_literal) ;) (expression_statement "uVar5 = uVar6;" (assignment_expression "uVar5 = uVar6" identifier = identifier) ;) (expression_statement "uVar6 = uVar1;" (assignment_expression "uVar6 = uVar1" identifier = identifier) ;) }) (else_clause "else {\n          if (len <= uVar9 + 3) goto LAB_00074646;\n          *pbVar3 = buf[uVar8 - 2] >> 4 | 0xe0;\n          pbVar3 = (byte *)(str + uVar6);\n          bVar7 = 0x80;\n          uVar5 = uVar1;\n          uVar6 = uVar9 + 3;\n        }" else (compound_statement "{\n          if (len <= uVar9 + 3) goto LAB_00074646;\n          *pbVar3 = buf[uVar8 - 2] >> 4 | 0xe0;\n          pbVar3 = (byte *)(str + uVar6);\n          bVar7 = 0x80;\n          uVar5 = uVar1;\n          uVar6 = uVar9 + 3;\n        }" { (if_statement "if (len <= uVar9 + 3) goto LAB_00074646;" if (parenthesized_expression "(len <= uVar9 + 3)" ( (binary_expression "len <= uVar9 + 3" identifier <= (binary_expression "uVar9 + 3" identifier + number_literal)) )) (goto_statement "goto LAB_00074646;" goto statement_identifier ;)) (expression_statement "*pbVar3 = buf[uVar8 - 2] >> 4 | 0xe0;" (assignment_expression "*pbVar3 = buf[uVar8 - 2] >> 4 | 0xe0" (pointer_expression "*pbVar3" * identifier) = (binary_expression "buf[uVar8 - 2] >> 4 | 0xe0" (binary_expression "buf[uVar8 - 2] >> 4" (subscript_expression "buf[uVar8 - 2]" identifier [ (binary_expression "uVar8 - 2" identifier - number_literal) ]) >> number_literal) | number_literal)) ;) (expression_statement "pbVar3 = (byte *)(str + uVar6);" (assignment_expression "pbVar3 = (byte *)(str + uVar6)" identifier = (cast_expression "(byte *)(str + uVar6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(str + uVar6)" ( (binary_expression "str + uVar6" identifier + identifier) )))) ;) (expression_statement "bVar7 = 0x80;" (assignment_expression "bVar7 = 0x80" identifier = number_literal) ;) (expression_statement "uVar5 = uVar1;" (assignment_expression "uVar5 = uVar1" identifier = identifier) ;) (expression_statement "uVar6 = uVar9 + 3;" (assignment_expression "uVar6 = uVar9 + 3" identifier = (binary_expression "uVar9 + 3" identifier + number_literal)) ;) }))) (expression_statement "*pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar7;" (assignment_expression "*pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar7" (pointer_expression "*pbVar3" * identifier) = (binary_expression "(byte)(uVar4 >> 6) & 0x3f | bVar7" (binary_expression "(byte)(uVar4 >> 6) & 0x3f" (call_expression "(byte)(uVar4 >> 6)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar4 >> 6)" ( (binary_expression "uVar4 >> 6" identifier >> number_literal) ))) & number_literal) | identifier)) ;) (expression_statement "uVar4 = (ushort)(bVar2 & 0x3f | 0x80);" (assignment_expression "uVar4 = (ushort)(bVar2 & 0x3f | 0x80)" identifier = (call_expression "(ushort)(bVar2 & 0x3f | 0x80)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(bVar2 & 0x3f | 0x80)" ( (binary_expression "bVar2 & 0x3f | 0x80" (binary_expression "bVar2 & 0x3f" identifier & number_literal) | number_literal) )))) ;) (expression_statement "pbVar3 = (byte *)(str + uVar5);" (assignment_expression "pbVar3 = (byte *)(str + uVar5)" identifier = (cast_expression "(byte *)(str + uVar5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(str + uVar5)" ( (binary_expression "str + uVar5" identifier + identifier) )))) ;) })) (expression_statement "*pbVar3 = (byte)uVar4;" (assignment_expression "*pbVar3 = (byte)uVar4" (pointer_expression "*pbVar3" * identifier) = (cast_expression "(byte)uVar4" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "uVar8 = uVar8 + 2;" (assignment_expression "uVar8 = uVar8 + 2" identifier = (binary_expression "uVar8 + 2" identifier + number_literal)) ;) (expression_statement "uVar9 = uVar6;" (assignment_expression "uVar9 = uVar6" identifier = identifier) ;) }) while (parenthesized_expression "(uVar8 <= count)" ( (binary_expression "uVar8 <= count" identifier <= identifier) )) ;) }))) (labeled_statement "LAB_00074696:\n  str[uVar6] = '\0';" statement_identifier : (expression_statement "str[uVar6] = '\0';" (assignment_expression "str[uVar6] = '\0'" (subscript_expression "str[uVar6]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;)) (return_statement "return;" return ;) })))
(translation_unit "uint __regparm2\nFUN_00074604(undefined4 param_1,uint param_2,byte *param_3,uint param_4,int param_5,int param_6,\n            uint param_7)\n\n{\n  uint uVar1;\n  byte bVar2;\n  byte *pbVar3;\n  ushort uVar4;\n  uint uVar5;\n  byte bVar6;\n  uint uVar7;\n  uint uVar8;\n  uint local_14;\n  \n  pbVar3 = param_3;\n  local_14 = param_2;\n  if (param_7 < 2) {\nLAB_00074646:\n    *pbVar3 = 0;\n    return local_14;\n  }\n  local_14 = param_2;\n  if (param_6 == 0) {\n    uVar8 = 2;\n    uVar5 = 0;\n    do {\n      while( true ) {\n        bVar6 = *(byte *)(param_5 + -1 + uVar8);\n        bVar2 = *(byte *)(param_5 + -2 + uVar8);\n        uVar4 = CONCAT11(bVar6,bVar2);\n        pbVar3 = param_3 + uVar5;\n        if ((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar8 = uVar8 + 2;\n        uVar5 = uVar7;\n        if (param_7 < uVar8) goto LAB_00074696;\n      }\n      uVar1 = uVar5 + 2;\n      if (param_4 <= uVar1) goto LAB_00074646;\n      if (uVar4 < 0x800) {\n        bVar6 = 0xc0;\n        uVar5 = uVar1;\n      }\n      else {\n        uVar5 = uVar5 + 3;\n        local_14 = uVar5;\n        if (param_4 <= uVar5) goto LAB_00074646;\n        *pbVar3 = bVar6 >> 4 | 0xe0;\n        pbVar3 = param_3 + uVar7;\n        bVar6 = 0x80;\n        uVar7 = uVar1;\n      }\n      *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n      param_3[uVar7] = bVar2 & 0x3f | 0x80;\n      uVar8 = uVar8 + 2;\n    } while (uVar8 <= param_7);\n  }\n  else {\n    uVar7 = 2;\n    uVar8 = 0;\n    do {\n      bVar6 = *(byte *)(param_5 + -2 + uVar7);\n      bVar2 = *(byte *)(param_5 + -1 + uVar7);\n      uVar4 = CONCAT11(bVar6,bVar2);\n      pbVar3 = param_3 + uVar8;\n      if ((uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5)) goto LAB_00074646;\n      if (0x7f < uVar4) {\n        uVar1 = uVar8 + 2;\n        if (param_4 <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = param_3 + uVar8;\n      }\n      *pbVar3 = (byte)uVar4;\n      uVar7 = uVar7 + 2;\n      uVar8 = uVar5;\n    } while (uVar7 <= param_7);\n  }\nLAB_00074696:\n  param_3[uVar5] = 0;\n  return local_14;\n}\n\n" (function_definition "uint __regparm2\nFUN_00074604(undefined4 param_1,uint param_2,byte *param_3,uint param_4,int param_5,int param_6,\n            uint param_7)\n\n{\n  uint uVar1;\n  byte bVar2;\n  byte *pbVar3;\n  ushort uVar4;\n  uint uVar5;\n  byte bVar6;\n  uint uVar7;\n  uint uVar8;\n  uint local_14;\n  \n  pbVar3 = param_3;\n  local_14 = param_2;\n  if (param_7 < 2) {\nLAB_00074646:\n    *pbVar3 = 0;\n    return local_14;\n  }\n  local_14 = param_2;\n  if (param_6 == 0) {\n    uVar8 = 2;\n    uVar5 = 0;\n    do {\n      while( true ) {\n        bVar6 = *(byte *)(param_5 + -1 + uVar8);\n        bVar2 = *(byte *)(param_5 + -2 + uVar8);\n        uVar4 = CONCAT11(bVar6,bVar2);\n        pbVar3 = param_3 + uVar5;\n        if ((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar8 = uVar8 + 2;\n        uVar5 = uVar7;\n        if (param_7 < uVar8) goto LAB_00074696;\n      }\n      uVar1 = uVar5 + 2;\n      if (param_4 <= uVar1) goto LAB_00074646;\n      if (uVar4 < 0x800) {\n        bVar6 = 0xc0;\n        uVar5 = uVar1;\n      }\n      else {\n        uVar5 = uVar5 + 3;\n        local_14 = uVar5;\n        if (param_4 <= uVar5) goto LAB_00074646;\n        *pbVar3 = bVar6 >> 4 | 0xe0;\n        pbVar3 = param_3 + uVar7;\n        bVar6 = 0x80;\n        uVar7 = uVar1;\n      }\n      *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n      param_3[uVar7] = bVar2 & 0x3f | 0x80;\n      uVar8 = uVar8 + 2;\n    } while (uVar8 <= param_7);\n  }\n  else {\n    uVar7 = 2;\n    uVar8 = 0;\n    do {\n      bVar6 = *(byte *)(param_5 + -2 + uVar7);\n      bVar2 = *(byte *)(param_5 + -1 + uVar7);\n      uVar4 = CONCAT11(bVar6,bVar2);\n      pbVar3 = param_3 + uVar8;\n      if ((uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5)) goto LAB_00074646;\n      if (0x7f < uVar4) {\n        uVar1 = uVar8 + 2;\n        if (param_4 <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = param_3 + uVar8;\n      }\n      *pbVar3 = (byte)uVar4;\n      uVar7 = uVar7 + 2;\n      uVar8 = uVar5;\n    } while (uVar7 <= param_7);\n  }\nLAB_00074696:\n  param_3[uVar5] = 0;\n  return local_14;\n}" type_identifier (ERROR "__regparm2" identifier) (function_declarator "FUN_00074604(undefined4 param_1,uint param_2,byte *param_3,uint param_4,int param_5,int param_6,\n            uint param_7)" identifier (parameter_list "(undefined4 param_1,uint param_2,byte *param_3,uint param_4,int param_5,int param_6,\n            uint param_7)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "byte *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "uint param_7" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  byte bVar2;\n  byte *pbVar3;\n  ushort uVar4;\n  uint uVar5;\n  byte bVar6;\n  uint uVar7;\n  uint uVar8;\n  uint local_14;\n  \n  pbVar3 = param_3;\n  local_14 = param_2;\n  if (param_7 < 2) {\nLAB_00074646:\n    *pbVar3 = 0;\n    return local_14;\n  }\n  local_14 = param_2;\n  if (param_6 == 0) {\n    uVar8 = 2;\n    uVar5 = 0;\n    do {\n      while( true ) {\n        bVar6 = *(byte *)(param_5 + -1 + uVar8);\n        bVar2 = *(byte *)(param_5 + -2 + uVar8);\n        uVar4 = CONCAT11(bVar6,bVar2);\n        pbVar3 = param_3 + uVar5;\n        if ((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar8 = uVar8 + 2;\n        uVar5 = uVar7;\n        if (param_7 < uVar8) goto LAB_00074696;\n      }\n      uVar1 = uVar5 + 2;\n      if (param_4 <= uVar1) goto LAB_00074646;\n      if (uVar4 < 0x800) {\n        bVar6 = 0xc0;\n        uVar5 = uVar1;\n      }\n      else {\n        uVar5 = uVar5 + 3;\n        local_14 = uVar5;\n        if (param_4 <= uVar5) goto LAB_00074646;\n        *pbVar3 = bVar6 >> 4 | 0xe0;\n        pbVar3 = param_3 + uVar7;\n        bVar6 = 0x80;\n        uVar7 = uVar1;\n      }\n      *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n      param_3[uVar7] = bVar2 & 0x3f | 0x80;\n      uVar8 = uVar8 + 2;\n    } while (uVar8 <= param_7);\n  }\n  else {\n    uVar7 = 2;\n    uVar8 = 0;\n    do {\n      bVar6 = *(byte *)(param_5 + -2 + uVar7);\n      bVar2 = *(byte *)(param_5 + -1 + uVar7);\n      uVar4 = CONCAT11(bVar6,bVar2);\n      pbVar3 = param_3 + uVar8;\n      if ((uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5)) goto LAB_00074646;\n      if (0x7f < uVar4) {\n        uVar1 = uVar8 + 2;\n        if (param_4 <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = param_3 + uVar8;\n      }\n      *pbVar3 = (byte)uVar4;\n      uVar7 = uVar7 + 2;\n      uVar8 = uVar5;\n    } while (uVar7 <= param_7);\n  }\nLAB_00074696:\n  param_3[uVar5] = 0;\n  return local_14;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "ushort uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "byte bVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint local_14;" type_identifier identifier ;) (expression_statement "pbVar3 = param_3;" (assignment_expression "pbVar3 = param_3" identifier = identifier) ;) (expression_statement "local_14 = param_2;" (assignment_expression "local_14 = param_2" identifier = identifier) ;) (if_statement "if (param_7 < 2) {\nLAB_00074646:\n    *pbVar3 = 0;\n    return local_14;\n  }" if (parenthesized_expression "(param_7 < 2)" ( (binary_expression "param_7 < 2" identifier < number_literal) )) (compound_statement "{\nLAB_00074646:\n    *pbVar3 = 0;\n    return local_14;\n  }" { (labeled_statement "LAB_00074646:\n    *pbVar3 = 0;" statement_identifier : (expression_statement "*pbVar3 = 0;" (assignment_expression "*pbVar3 = 0" (pointer_expression "*pbVar3" * identifier) = number_literal) ;)) (return_statement "return local_14;" return identifier ;) })) (expression_statement "local_14 = param_2;" (assignment_expression "local_14 = param_2" identifier = identifier) ;) (if_statement "if (param_6 == 0) {\n    uVar8 = 2;\n    uVar5 = 0;\n    do {\n      while( true ) {\n        bVar6 = *(byte *)(param_5 + -1 + uVar8);\n        bVar2 = *(byte *)(param_5 + -2 + uVar8);\n        uVar4 = CONCAT11(bVar6,bVar2);\n        pbVar3 = param_3 + uVar5;\n        if ((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar8 = uVar8 + 2;\n        uVar5 = uVar7;\n        if (param_7 < uVar8) goto LAB_00074696;\n      }\n      uVar1 = uVar5 + 2;\n      if (param_4 <= uVar1) goto LAB_00074646;\n      if (uVar4 < 0x800) {\n        bVar6 = 0xc0;\n        uVar5 = uVar1;\n      }\n      else {\n        uVar5 = uVar5 + 3;\n        local_14 = uVar5;\n        if (param_4 <= uVar5) goto LAB_00074646;\n        *pbVar3 = bVar6 >> 4 | 0xe0;\n        pbVar3 = param_3 + uVar7;\n        bVar6 = 0x80;\n        uVar7 = uVar1;\n      }\n      *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n      param_3[uVar7] = bVar2 & 0x3f | 0x80;\n      uVar8 = uVar8 + 2;\n    } while (uVar8 <= param_7);\n  }\n  else {\n    uVar7 = 2;\n    uVar8 = 0;\n    do {\n      bVar6 = *(byte *)(param_5 + -2 + uVar7);\n      bVar2 = *(byte *)(param_5 + -1 + uVar7);\n      uVar4 = CONCAT11(bVar6,bVar2);\n      pbVar3 = param_3 + uVar8;\n      if ((uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5)) goto LAB_00074646;\n      if (0x7f < uVar4) {\n        uVar1 = uVar8 + 2;\n        if (param_4 <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = param_3 + uVar8;\n      }\n      *pbVar3 = (byte)uVar4;\n      uVar7 = uVar7 + 2;\n      uVar8 = uVar5;\n    } while (uVar7 <= param_7);\n  }" if (parenthesized_expression "(param_6 == 0)" ( (binary_expression "param_6 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar8 = 2;\n    uVar5 = 0;\n    do {\n      while( true ) {\n        bVar6 = *(byte *)(param_5 + -1 + uVar8);\n        bVar2 = *(byte *)(param_5 + -2 + uVar8);\n        uVar4 = CONCAT11(bVar6,bVar2);\n        pbVar3 = param_3 + uVar5;\n        if ((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar8 = uVar8 + 2;\n        uVar5 = uVar7;\n        if (param_7 < uVar8) goto LAB_00074696;\n      }\n      uVar1 = uVar5 + 2;\n      if (param_4 <= uVar1) goto LAB_00074646;\n      if (uVar4 < 0x800) {\n        bVar6 = 0xc0;\n        uVar5 = uVar1;\n      }\n      else {\n        uVar5 = uVar5 + 3;\n        local_14 = uVar5;\n        if (param_4 <= uVar5) goto LAB_00074646;\n        *pbVar3 = bVar6 >> 4 | 0xe0;\n        pbVar3 = param_3 + uVar7;\n        bVar6 = 0x80;\n        uVar7 = uVar1;\n      }\n      *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n      param_3[uVar7] = bVar2 & 0x3f | 0x80;\n      uVar8 = uVar8 + 2;\n    } while (uVar8 <= param_7);\n  }" { (expression_statement "uVar8 = 2;" (assignment_expression "uVar8 = 2" identifier = number_literal) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n      while( true ) {\n        bVar6 = *(byte *)(param_5 + -1 + uVar8);\n        bVar2 = *(byte *)(param_5 + -2 + uVar8);\n        uVar4 = CONCAT11(bVar6,bVar2);\n        pbVar3 = param_3 + uVar5;\n        if ((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar8 = uVar8 + 2;\n        uVar5 = uVar7;\n        if (param_7 < uVar8) goto LAB_00074696;\n      }\n      uVar1 = uVar5 + 2;\n      if (param_4 <= uVar1) goto LAB_00074646;\n      if (uVar4 < 0x800) {\n        bVar6 = 0xc0;\n        uVar5 = uVar1;\n      }\n      else {\n        uVar5 = uVar5 + 3;\n        local_14 = uVar5;\n        if (param_4 <= uVar5) goto LAB_00074646;\n        *pbVar3 = bVar6 >> 4 | 0xe0;\n        pbVar3 = param_3 + uVar7;\n        bVar6 = 0x80;\n        uVar7 = uVar1;\n      }\n      *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n      param_3[uVar7] = bVar2 & 0x3f | 0x80;\n      uVar8 = uVar8 + 2;\n    } while (uVar8 <= param_7);" do (compound_statement "{\n      while( true ) {\n        bVar6 = *(byte *)(param_5 + -1 + uVar8);\n        bVar2 = *(byte *)(param_5 + -2 + uVar8);\n        uVar4 = CONCAT11(bVar6,bVar2);\n        pbVar3 = param_3 + uVar5;\n        if ((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar8 = uVar8 + 2;\n        uVar5 = uVar7;\n        if (param_7 < uVar8) goto LAB_00074696;\n      }\n      uVar1 = uVar5 + 2;\n      if (param_4 <= uVar1) goto LAB_00074646;\n      if (uVar4 < 0x800) {\n        bVar6 = 0xc0;\n        uVar5 = uVar1;\n      }\n      else {\n        uVar5 = uVar5 + 3;\n        local_14 = uVar5;\n        if (param_4 <= uVar5) goto LAB_00074646;\n        *pbVar3 = bVar6 >> 4 | 0xe0;\n        pbVar3 = param_3 + uVar7;\n        bVar6 = 0x80;\n        uVar7 = uVar1;\n      }\n      *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n      param_3[uVar7] = bVar2 & 0x3f | 0x80;\n      uVar8 = uVar8 + 2;\n    }" { (while_statement "while( true ) {\n        bVar6 = *(byte *)(param_5 + -1 + uVar8);\n        bVar2 = *(byte *)(param_5 + -2 + uVar8);\n        uVar4 = CONCAT11(bVar6,bVar2);\n        pbVar3 = param_3 + uVar5;\n        if ((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar8 = uVar8 + 2;\n        uVar5 = uVar7;\n        if (param_7 < uVar8) goto LAB_00074696;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        bVar6 = *(byte *)(param_5 + -1 + uVar8);\n        bVar2 = *(byte *)(param_5 + -2 + uVar8);\n        uVar4 = CONCAT11(bVar6,bVar2);\n        pbVar3 = param_3 + uVar5;\n        if ((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar8 = uVar8 + 2;\n        uVar5 = uVar7;\n        if (param_7 < uVar8) goto LAB_00074696;\n      }" { (expression_statement "bVar6 = *(byte *)(param_5 + -1 + uVar8);" (assignment_expression "bVar6 = *(byte *)(param_5 + -1 + uVar8)" identifier = (pointer_expression "*(byte *)(param_5 + -1 + uVar8)" * (cast_expression "(byte *)(param_5 + -1 + uVar8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + -1 + uVar8)" ( (binary_expression "param_5 + -1 + uVar8" (binary_expression "param_5 + -1" identifier + number_literal) + identifier) ))))) ;) (expression_statement "bVar2 = *(byte *)(param_5 + -2 + uVar8);" (assignment_expression "bVar2 = *(byte *)(param_5 + -2 + uVar8)" identifier = (pointer_expression "*(byte *)(param_5 + -2 + uVar8)" * (cast_expression "(byte *)(param_5 + -2 + uVar8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + -2 + uVar8)" ( (binary_expression "param_5 + -2 + uVar8" (binary_expression "param_5 + -2" identifier + number_literal) + identifier) ))))) ;) (expression_statement "uVar4 = CONCAT11(bVar6,bVar2);" (assignment_expression "uVar4 = CONCAT11(bVar6,bVar2)" identifier = (call_expression "CONCAT11(bVar6,bVar2)" identifier (argument_list "(bVar6,bVar2)" ( identifier , identifier )))) ;) (expression_statement "pbVar3 = param_3 + uVar5;" (assignment_expression "pbVar3 = param_3 + uVar5" identifier = (binary_expression "param_3 + uVar5" identifier + identifier)) ;) (if_statement "if ((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)) goto LAB_00074646;" if (parenthesized_expression "((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7))" ( (binary_expression "(uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)" (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) || (parenthesized_expression "(uVar7 = uVar5 + 1, param_4 <= uVar7)" ( (comma_expression "uVar7 = uVar5 + 1, param_4 <= uVar7" (assignment_expression "uVar7 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) , (binary_expression "param_4 <= uVar7" identifier <= identifier)) ))) )) (goto_statement "goto LAB_00074646;" goto statement_identifier ;)) (if_statement "if (0x7f < uVar4) break;" if (parenthesized_expression "(0x7f < uVar4)" ( (binary_expression "0x7f < uVar4" number_literal < identifier) )) (break_statement "break;" break ;)) (expression_statement "*pbVar3 = bVar2;" (assignment_expression "*pbVar3 = bVar2" (pointer_expression "*pbVar3" * identifier) = identifier) ;) (expression_statement "uVar8 = uVar8 + 2;" (assignment_expression "uVar8 = uVar8 + 2" identifier = (binary_expression "uVar8 + 2" identifier + number_literal)) ;) (expression_statement "uVar5 = uVar7;" (assignment_expression "uVar5 = uVar7" identifier = identifier) ;) (if_statement "if (param_7 < uVar8) goto LAB_00074696;" if (parenthesized_expression "(param_7 < uVar8)" ( (binary_expression "param_7 < uVar8" identifier < identifier) )) (goto_statement "goto LAB_00074696;" goto statement_identifier ;)) })) (expression_statement "uVar1 = uVar5 + 2;" (assignment_expression "uVar1 = uVar5 + 2" identifier = (binary_expression "uVar5 + 2" identifier + number_literal)) ;) (if_statement "if (param_4 <= uVar1) goto LAB_00074646;" if (parenthesized_expression "(param_4 <= uVar1)" ( (binary_expression "param_4 <= uVar1" identifier <= identifier) )) (goto_statement "goto LAB_00074646;" goto statement_identifier ;)) (if_statement "if (uVar4 < 0x800) {\n        bVar6 = 0xc0;\n        uVar5 = uVar1;\n      }\n      else {\n        uVar5 = uVar5 + 3;\n        local_14 = uVar5;\n        if (param_4 <= uVar5) goto LAB_00074646;\n        *pbVar3 = bVar6 >> 4 | 0xe0;\n        pbVar3 = param_3 + uVar7;\n        bVar6 = 0x80;\n        uVar7 = uVar1;\n      }" if (parenthesized_expression "(uVar4 < 0x800)" ( (binary_expression "uVar4 < 0x800" identifier < number_literal) )) (compound_statement "{\n        bVar6 = 0xc0;\n        uVar5 = uVar1;\n      }" { (expression_statement "bVar6 = 0xc0;" (assignment_expression "bVar6 = 0xc0" identifier = number_literal) ;) (expression_statement "uVar5 = uVar1;" (assignment_expression "uVar5 = uVar1" identifier = identifier) ;) }) (else_clause "else {\n        uVar5 = uVar5 + 3;\n        local_14 = uVar5;\n        if (param_4 <= uVar5) goto LAB_00074646;\n        *pbVar3 = bVar6 >> 4 | 0xe0;\n        pbVar3 = param_3 + uVar7;\n        bVar6 = 0x80;\n        uVar7 = uVar1;\n      }" else (compound_statement "{\n        uVar5 = uVar5 + 3;\n        local_14 = uVar5;\n        if (param_4 <= uVar5) goto LAB_00074646;\n        *pbVar3 = bVar6 >> 4 | 0xe0;\n        pbVar3 = param_3 + uVar7;\n        bVar6 = 0x80;\n        uVar7 = uVar1;\n      }" { (expression_statement "uVar5 = uVar5 + 3;" (assignment_expression "uVar5 = uVar5 + 3" identifier = (binary_expression "uVar5 + 3" identifier + number_literal)) ;) (expression_statement "local_14 = uVar5;" (assignment_expression "local_14 = uVar5" identifier = identifier) ;) (if_statement "if (param_4 <= uVar5) goto LAB_00074646;" if (parenthesized_expression "(param_4 <= uVar5)" ( (binary_expression "param_4 <= uVar5" identifier <= identifier) )) (goto_statement "goto LAB_00074646;" goto statement_identifier ;)) (expression_statement "*pbVar3 = bVar6 >> 4 | 0xe0;" (assignment_expression "*pbVar3 = bVar6 >> 4 | 0xe0" (pointer_expression "*pbVar3" * identifier) = (binary_expression "bVar6 >> 4 | 0xe0" (binary_expression "bVar6 >> 4" identifier >> number_literal) | number_literal)) ;) (expression_statement "pbVar3 = param_3 + uVar7;" (assignment_expression "pbVar3 = param_3 + uVar7" identifier = (binary_expression "param_3 + uVar7" identifier + identifier)) ;) (expression_statement "bVar6 = 0x80;" (assignment_expression "bVar6 = 0x80" identifier = number_literal) ;) (expression_statement "uVar7 = uVar1;" (assignment_expression "uVar7 = uVar1" identifier = identifier) ;) }))) (expression_statement "*pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;" (assignment_expression "*pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6" (pointer_expression "*pbVar3" * identifier) = (binary_expression "(byte)(uVar4 >> 6) & 0x3f | bVar6" (binary_expression "(byte)(uVar4 >> 6) & 0x3f" (call_expression "(byte)(uVar4 >> 6)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar4 >> 6)" ( (binary_expression "uVar4 >> 6" identifier >> number_literal) ))) & number_literal) | identifier)) ;) (expression_statement "param_3[uVar7] = bVar2 & 0x3f | 0x80;" (assignment_expression "param_3[uVar7] = bVar2 & 0x3f | 0x80" (subscript_expression "param_3[uVar7]" identifier [ identifier ]) = (binary_expression "bVar2 & 0x3f | 0x80" (binary_expression "bVar2 & 0x3f" identifier & number_literal) | number_literal)) ;) (expression_statement "uVar8 = uVar8 + 2;" (assignment_expression "uVar8 = uVar8 + 2" identifier = (binary_expression "uVar8 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar8 <= param_7)" ( (binary_expression "uVar8 <= param_7" identifier <= identifier) )) ;) }) (else_clause "else {\n    uVar7 = 2;\n    uVar8 = 0;\n    do {\n      bVar6 = *(byte *)(param_5 + -2 + uVar7);\n      bVar2 = *(byte *)(param_5 + -1 + uVar7);\n      uVar4 = CONCAT11(bVar6,bVar2);\n      pbVar3 = param_3 + uVar8;\n      if ((uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5)) goto LAB_00074646;\n      if (0x7f < uVar4) {\n        uVar1 = uVar8 + 2;\n        if (param_4 <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = param_3 + uVar8;\n      }\n      *pbVar3 = (byte)uVar4;\n      uVar7 = uVar7 + 2;\n      uVar8 = uVar5;\n    } while (uVar7 <= param_7);\n  }" else (compound_statement "{\n    uVar7 = 2;\n    uVar8 = 0;\n    do {\n      bVar6 = *(byte *)(param_5 + -2 + uVar7);\n      bVar2 = *(byte *)(param_5 + -1 + uVar7);\n      uVar4 = CONCAT11(bVar6,bVar2);\n      pbVar3 = param_3 + uVar8;\n      if ((uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5)) goto LAB_00074646;\n      if (0x7f < uVar4) {\n        uVar1 = uVar8 + 2;\n        if (param_4 <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = param_3 + uVar8;\n      }\n      *pbVar3 = (byte)uVar4;\n      uVar7 = uVar7 + 2;\n      uVar8 = uVar5;\n    } while (uVar7 <= param_7);\n  }" { (expression_statement "uVar7 = 2;" (assignment_expression "uVar7 = 2" identifier = number_literal) ;) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (do_statement "do {\n      bVar6 = *(byte *)(param_5 + -2 + uVar7);\n      bVar2 = *(byte *)(param_5 + -1 + uVar7);\n      uVar4 = CONCAT11(bVar6,bVar2);\n      pbVar3 = param_3 + uVar8;\n      if ((uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5)) goto LAB_00074646;\n      if (0x7f < uVar4) {\n        uVar1 = uVar8 + 2;\n        if (param_4 <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = param_3 + uVar8;\n      }\n      *pbVar3 = (byte)uVar4;\n      uVar7 = uVar7 + 2;\n      uVar8 = uVar5;\n    } while (uVar7 <= param_7);" do (compound_statement "{\n      bVar6 = *(byte *)(param_5 + -2 + uVar7);\n      bVar2 = *(byte *)(param_5 + -1 + uVar7);\n      uVar4 = CONCAT11(bVar6,bVar2);\n      pbVar3 = param_3 + uVar8;\n      if ((uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5)) goto LAB_00074646;\n      if (0x7f < uVar4) {\n        uVar1 = uVar8 + 2;\n        if (param_4 <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = param_3 + uVar8;\n      }\n      *pbVar3 = (byte)uVar4;\n      uVar7 = uVar7 + 2;\n      uVar8 = uVar5;\n    }" { (expression_statement "bVar6 = *(byte *)(param_5 + -2 + uVar7);" (assignment_expression "bVar6 = *(byte *)(param_5 + -2 + uVar7)" identifier = (pointer_expression "*(byte *)(param_5 + -2 + uVar7)" * (cast_expression "(byte *)(param_5 + -2 + uVar7)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + -2 + uVar7)" ( (binary_expression "param_5 + -2 + uVar7" (binary_expression "param_5 + -2" identifier + number_literal) + identifier) ))))) ;) (expression_statement "bVar2 = *(byte *)(param_5 + -1 + uVar7);" (assignment_expression "bVar2 = *(byte *)(param_5 + -1 + uVar7)" identifier = (pointer_expression "*(byte *)(param_5 + -1 + uVar7)" * (cast_expression "(byte *)(param_5 + -1 + uVar7)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + -1 + uVar7)" ( (binary_expression "param_5 + -1 + uVar7" (binary_expression "param_5 + -1" identifier + number_literal) + identifier) ))))) ;) (expression_statement "uVar4 = CONCAT11(bVar6,bVar2);" (assignment_expression "uVar4 = CONCAT11(bVar6,bVar2)" identifier = (call_expression "CONCAT11(bVar6,bVar2)" identifier (argument_list "(bVar6,bVar2)" ( identifier , identifier )))) ;) (expression_statement "pbVar3 = param_3 + uVar8;" (assignment_expression "pbVar3 = param_3 + uVar8" identifier = (binary_expression "param_3 + uVar8" identifier + identifier)) ;) (if_statement "if ((uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5)) goto LAB_00074646;" if (parenthesized_expression "((uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5))" ( (binary_expression "(uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5)" (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) || (parenthesized_expression "(uVar5 = uVar8 + 1, param_4 <= uVar5)" ( (comma_expression "uVar5 = uVar8 + 1, param_4 <= uVar5" (assignment_expression "uVar5 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) , (binary_expression "param_4 <= uVar5" identifier <= identifier)) ))) )) (goto_statement "goto LAB_00074646;" goto statement_identifier ;)) (if_statement "if (0x7f < uVar4) {\n        uVar1 = uVar8 + 2;\n        if (param_4 <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = param_3 + uVar8;\n      }" if (parenthesized_expression "(0x7f < uVar4)" ( (binary_expression "0x7f < uVar4" number_literal < identifier) )) (compound_statement "{\n        uVar1 = uVar8 + 2;\n        if (param_4 <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = param_3 + uVar8;\n      }" { (expression_statement "uVar1 = uVar8 + 2;" (assignment_expression "uVar1 = uVar8 + 2" identifier = (binary_expression "uVar8 + 2" identifier + number_literal)) ;) (if_statement "if (param_4 <= uVar1) goto LAB_00074646;" if (parenthesized_expression "(param_4 <= uVar1)" ( (binary_expression "param_4 <= uVar1" identifier <= identifier) )) (goto_statement "goto LAB_00074646;" goto statement_identifier ;)) (if_statement "if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }" if (parenthesized_expression "(uVar4 < 0x800)" ( (binary_expression "uVar4 < 0x800" identifier < number_literal) )) (compound_statement "{\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }" { (expression_statement "bVar6 = 0xc0;" (assignment_expression "bVar6 = 0xc0" identifier = number_literal) ;) (expression_statement "uVar8 = uVar5;" (assignment_expression "uVar8 = uVar5" identifier = identifier) ;) (expression_statement "uVar5 = uVar1;" (assignment_expression "uVar5 = uVar1" identifier = identifier) ;) }) (else_clause "else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }" else (compound_statement "{\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }" { (expression_statement "local_14 = uVar8 + 3;" (assignment_expression "local_14 = uVar8 + 3" identifier = (binary_expression "uVar8 + 3" identifier + number_literal)) ;) (if_statement "if (param_4 <= local_14) goto LAB_00074646;" if (parenthesized_expression "(param_4 <= local_14)" ( (binary_expression "param_4 <= local_14" identifier <= identifier) )) (goto_statement "goto LAB_00074646;" goto statement_identifier ;)) (expression_statement "*pbVar3 = bVar6 >> 4 | 0xe0;" (assignment_expression "*pbVar3 = bVar6 >> 4 | 0xe0" (pointer_expression "*pbVar3" * identifier) = (binary_expression "bVar6 >> 4 | 0xe0" (binary_expression "bVar6 >> 4" identifier >> number_literal) | number_literal)) ;) (expression_statement "pbVar3 = param_3 + uVar5;" (assignment_expression "pbVar3 = param_3 + uVar5" identifier = (binary_expression "param_3 + uVar5" identifier + identifier)) ;) (expression_statement "bVar6 = 0x80;" (assignment_expression "bVar6 = 0x80" identifier = number_literal) ;) (expression_statement "uVar8 = uVar1;" (assignment_expression "uVar8 = uVar1" identifier = identifier) ;) (expression_statement "uVar5 = local_14;" (assignment_expression "uVar5 = local_14" identifier = identifier) ;) }))) (expression_statement "*pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;" (assignment_expression "*pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6" (pointer_expression "*pbVar3" * identifier) = (binary_expression "(byte)(uVar4 >> 6) & 0x3f | bVar6" (binary_expression "(byte)(uVar4 >> 6) & 0x3f" (call_expression "(byte)(uVar4 >> 6)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(uVar4 >> 6)" ( (binary_expression "uVar4 >> 6" identifier >> number_literal) ))) & number_literal) | identifier)) ;) (expression_statement "uVar4 = (ushort)(bVar2 & 0x3f | 0x80);" (assignment_expression "uVar4 = (ushort)(bVar2 & 0x3f | 0x80)" identifier = (call_expression "(ushort)(bVar2 & 0x3f | 0x80)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(bVar2 & 0x3f | 0x80)" ( (binary_expression "bVar2 & 0x3f | 0x80" (binary_expression "bVar2 & 0x3f" identifier & number_literal) | number_literal) )))) ;) (expression_statement "pbVar3 = param_3 + uVar8;" (assignment_expression "pbVar3 = param_3 + uVar8" identifier = (binary_expression "param_3 + uVar8" identifier + identifier)) ;) })) (expression_statement "*pbVar3 = (byte)uVar4;" (assignment_expression "*pbVar3 = (byte)uVar4" (pointer_expression "*pbVar3" * identifier) = (cast_expression "(byte)uVar4" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "uVar7 = uVar7 + 2;" (assignment_expression "uVar7 = uVar7 + 2" identifier = (binary_expression "uVar7 + 2" identifier + number_literal)) ;) (expression_statement "uVar8 = uVar5;" (assignment_expression "uVar8 = uVar5" identifier = identifier) ;) }) while (parenthesized_expression "(uVar7 <= param_7)" ( (binary_expression "uVar7 <= param_7" identifier <= identifier) )) ;) }))) (labeled_statement "LAB_00074696:\n  param_3[uVar5] = 0;" statement_identifier : (expression_statement "param_3[uVar5] = 0;" (assignment_expression "param_3[uVar5] = 0" (subscript_expression "param_3[uVar5]" identifier [ identifier ]) = number_literal) ;)) (return_statement "return local_14;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;)) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (binary_expression IDENT <= IDENT)) ))) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression IDENT >> LIT) | LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) ))) & LIT) | IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = (binary_expression (binary_expression IDENT & LIT) | LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (binary_expression IDENT <= IDENT)) ))) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression IDENT >> LIT) | LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) ))) & LIT) | IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression IDENT & LIT) | LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) ;) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = LIT) ;)) (return_statement return IDENT ;) })))
(function_definition "uint __regparm2\nFUN_00074604(undefined4 param_1,uint param_2,byte *param_3,uint param_4,int param_5,int param_6,\n            uint param_7)\n\n{\n  uint uVar1;\n  byte bVar2;\n  byte *pbVar3;\n  ushort uVar4;\n  uint uVar5;\n  byte bVar6;\n  uint uVar7;\n  uint uVar8;\n  uint local_14;\n  \n  pbVar3 = param_3;\n  local_14 = param_2;\n  if (param_7 < 2) {\nLAB_00074646:\n    *pbVar3 = 0;\n    return local_14;\n  }\n  local_14 = param_2;\n  if (param_6 == 0) {\n    uVar8 = 2;\n    uVar5 = 0;\n    do {\n      while( true ) {\n        bVar6 = *(byte *)(param_5 + -1 + uVar8);\n        bVar2 = *(byte *)(param_5 + -2 + uVar8);\n        uVar4 = CONCAT11(bVar6,bVar2);\n        pbVar3 = param_3 + uVar5;\n        if ((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar8 = uVar8 + 2;\n        uVar5 = uVar7;\n        if (param_7 < uVar8) goto LAB_00074696;\n      }\n      uVar1 = uVar5 + 2;\n      if (param_4 <= uVar1) goto LAB_00074646;\n      if (uVar4 < 0x800) {\n        bVar6 = 0xc0;\n        uVar5 = uVar1;\n      }\n      else {\n        uVar5 = uVar5 + 3;\n        local_14 = uVar5;\n        if (param_4 <= uVar5) goto LAB_00074646;\n        *pbVar3 = bVar6 >> 4 | 0xe0;\n        pbVar3 = param_3 + uVar7;\n        bVar6 = 0x80;\n        uVar7 = uVar1;\n      }\n      *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n      param_3[uVar7] = bVar2 & 0x3f | 0x80;\n      uVar8 = uVar8 + 2;\n    } while (uVar8 <= param_7);\n  }\n  else {\n    uVar7 = 2;\n    uVar8 = 0;\n    do {\n      bVar6 = *(byte *)(param_5 + -2 + uVar7);\n      bVar2 = *(byte *)(param_5 + -1 + uVar7);\n      uVar4 = CONCAT11(bVar6,bVar2);\n      pbVar3 = param_3 + uVar8;\n      if ((uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5)) goto LAB_00074646;\n      if (0x7f < uVar4) {\n        uVar1 = uVar8 + 2;\n        if (param_4 <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = param_3 + uVar8;\n      }\n      *pbVar3 = (byte)uVar4;\n      uVar7 = uVar7 + 2;\n      uVar8 = uVar5;\n    } while (uVar7 <= param_7);\n  }\nLAB_00074696:\n  param_3[uVar5] = 0;\n  return local_14;\n}" (type_identifier "uint") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "FUN_00074604(undefined4 param_1,uint param_2,byte *param_3,uint param_4,int param_5,int param_6,\n            uint param_7)" (identifier "FUN_00074604") (parameter_list "(undefined4 param_1,uint param_2,byte *param_3,uint param_4,int param_5,int param_6,\n            uint param_7)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "byte *param_3" (type_identifier "byte") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) (, ",") (parameter_declaration "int param_6" (primitive_type "int") (identifier "param_6")) (, ",") (parameter_declaration "uint param_7" (type_identifier "uint") (identifier "param_7")) () ")"))) (compound_statement "{\n  uint uVar1;\n  byte bVar2;\n  byte *pbVar3;\n  ushort uVar4;\n  uint uVar5;\n  byte bVar6;\n  uint uVar7;\n  uint uVar8;\n  uint local_14;\n  \n  pbVar3 = param_3;\n  local_14 = param_2;\n  if (param_7 < 2) {\nLAB_00074646:\n    *pbVar3 = 0;\n    return local_14;\n  }\n  local_14 = param_2;\n  if (param_6 == 0) {\n    uVar8 = 2;\n    uVar5 = 0;\n    do {\n      while( true ) {\n        bVar6 = *(byte *)(param_5 + -1 + uVar8);\n        bVar2 = *(byte *)(param_5 + -2 + uVar8);\n        uVar4 = CONCAT11(bVar6,bVar2);\n        pbVar3 = param_3 + uVar5;\n        if ((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar8 = uVar8 + 2;\n        uVar5 = uVar7;\n        if (param_7 < uVar8) goto LAB_00074696;\n      }\n      uVar1 = uVar5 + 2;\n      if (param_4 <= uVar1) goto LAB_00074646;\n      if (uVar4 < 0x800) {\n        bVar6 = 0xc0;\n        uVar5 = uVar1;\n      }\n      else {\n        uVar5 = uVar5 + 3;\n        local_14 = uVar5;\n        if (param_4 <= uVar5) goto LAB_00074646;\n        *pbVar3 = bVar6 >> 4 | 0xe0;\n        pbVar3 = param_3 + uVar7;\n        bVar6 = 0x80;\n        uVar7 = uVar1;\n      }\n      *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n      param_3[uVar7] = bVar2 & 0x3f | 0x80;\n      uVar8 = uVar8 + 2;\n    } while (uVar8 <= param_7);\n  }\n  else {\n    uVar7 = 2;\n    uVar8 = 0;\n    do {\n      bVar6 = *(byte *)(param_5 + -2 + uVar7);\n      bVar2 = *(byte *)(param_5 + -1 + uVar7);\n      uVar4 = CONCAT11(bVar6,bVar2);\n      pbVar3 = param_3 + uVar8;\n      if ((uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5)) goto LAB_00074646;\n      if (0x7f < uVar4) {\n        uVar1 = uVar8 + 2;\n        if (param_4 <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = param_3 + uVar8;\n      }\n      *pbVar3 = (byte)uVar4;\n      uVar7 = uVar7 + 2;\n      uVar8 = uVar5;\n    } while (uVar7 <= param_7);\n  }\nLAB_00074696:\n  param_3[uVar5] = 0;\n  return local_14;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "ushort uVar4;" (type_identifier "ushort") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "byte bVar6;" (type_identifier "byte") (identifier "bVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "uint local_14;" (type_identifier "uint") (identifier "local_14") (; ";")) (expression_statement "pbVar3 = param_3;" (assignment_expression "pbVar3 = param_3" (identifier "pbVar3") (= "=") (identifier "param_3")) (; ";")) (expression_statement "local_14 = param_2;" (assignment_expression "local_14 = param_2" (identifier "local_14") (= "=") (identifier "param_2")) (; ";")) (if_statement "if (param_7 < 2) {\nLAB_00074646:\n    *pbVar3 = 0;\n    return local_14;\n  }" (if "if") (parenthesized_expression "(param_7 < 2)" (( "(") (binary_expression "param_7 < 2" (identifier "param_7") (< "<") (number_literal "2")) () ")")) (compound_statement "{\nLAB_00074646:\n    *pbVar3 = 0;\n    return local_14;\n  }" ({ "{") (labeled_statement "LAB_00074646:\n    *pbVar3 = 0;" (statement_identifier "LAB_00074646") (: ":") (expression_statement "*pbVar3 = 0;" (assignment_expression "*pbVar3 = 0" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (= "=") (number_literal "0")) (; ";"))) (return_statement "return local_14;" (return "return") (identifier "local_14") (; ";")) (} "}"))) (expression_statement "local_14 = param_2;" (assignment_expression "local_14 = param_2" (identifier "local_14") (= "=") (identifier "param_2")) (; ";")) (if_statement "if (param_6 == 0) {\n    uVar8 = 2;\n    uVar5 = 0;\n    do {\n      while( true ) {\n        bVar6 = *(byte *)(param_5 + -1 + uVar8);\n        bVar2 = *(byte *)(param_5 + -2 + uVar8);\n        uVar4 = CONCAT11(bVar6,bVar2);\n        pbVar3 = param_3 + uVar5;\n        if ((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar8 = uVar8 + 2;\n        uVar5 = uVar7;\n        if (param_7 < uVar8) goto LAB_00074696;\n      }\n      uVar1 = uVar5 + 2;\n      if (param_4 <= uVar1) goto LAB_00074646;\n      if (uVar4 < 0x800) {\n        bVar6 = 0xc0;\n        uVar5 = uVar1;\n      }\n      else {\n        uVar5 = uVar5 + 3;\n        local_14 = uVar5;\n        if (param_4 <= uVar5) goto LAB_00074646;\n        *pbVar3 = bVar6 >> 4 | 0xe0;\n        pbVar3 = param_3 + uVar7;\n        bVar6 = 0x80;\n        uVar7 = uVar1;\n      }\n      *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n      param_3[uVar7] = bVar2 & 0x3f | 0x80;\n      uVar8 = uVar8 + 2;\n    } while (uVar8 <= param_7);\n  }\n  else {\n    uVar7 = 2;\n    uVar8 = 0;\n    do {\n      bVar6 = *(byte *)(param_5 + -2 + uVar7);\n      bVar2 = *(byte *)(param_5 + -1 + uVar7);\n      uVar4 = CONCAT11(bVar6,bVar2);\n      pbVar3 = param_3 + uVar8;\n      if ((uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5)) goto LAB_00074646;\n      if (0x7f < uVar4) {\n        uVar1 = uVar8 + 2;\n        if (param_4 <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = param_3 + uVar8;\n      }\n      *pbVar3 = (byte)uVar4;\n      uVar7 = uVar7 + 2;\n      uVar8 = uVar5;\n    } while (uVar7 <= param_7);\n  }" (if "if") (parenthesized_expression "(param_6 == 0)" (( "(") (binary_expression "param_6 == 0" (identifier "param_6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar8 = 2;\n    uVar5 = 0;\n    do {\n      while( true ) {\n        bVar6 = *(byte *)(param_5 + -1 + uVar8);\n        bVar2 = *(byte *)(param_5 + -2 + uVar8);\n        uVar4 = CONCAT11(bVar6,bVar2);\n        pbVar3 = param_3 + uVar5;\n        if ((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar8 = uVar8 + 2;\n        uVar5 = uVar7;\n        if (param_7 < uVar8) goto LAB_00074696;\n      }\n      uVar1 = uVar5 + 2;\n      if (param_4 <= uVar1) goto LAB_00074646;\n      if (uVar4 < 0x800) {\n        bVar6 = 0xc0;\n        uVar5 = uVar1;\n      }\n      else {\n        uVar5 = uVar5 + 3;\n        local_14 = uVar5;\n        if (param_4 <= uVar5) goto LAB_00074646;\n        *pbVar3 = bVar6 >> 4 | 0xe0;\n        pbVar3 = param_3 + uVar7;\n        bVar6 = 0x80;\n        uVar7 = uVar1;\n      }\n      *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n      param_3[uVar7] = bVar2 & 0x3f | 0x80;\n      uVar8 = uVar8 + 2;\n    } while (uVar8 <= param_7);\n  }" ({ "{") (expression_statement "uVar8 = 2;" (assignment_expression "uVar8 = 2" (identifier "uVar8") (= "=") (number_literal "2")) (; ";")) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      while( true ) {\n        bVar6 = *(byte *)(param_5 + -1 + uVar8);\n        bVar2 = *(byte *)(param_5 + -2 + uVar8);\n        uVar4 = CONCAT11(bVar6,bVar2);\n        pbVar3 = param_3 + uVar5;\n        if ((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar8 = uVar8 + 2;\n        uVar5 = uVar7;\n        if (param_7 < uVar8) goto LAB_00074696;\n      }\n      uVar1 = uVar5 + 2;\n      if (param_4 <= uVar1) goto LAB_00074646;\n      if (uVar4 < 0x800) {\n        bVar6 = 0xc0;\n        uVar5 = uVar1;\n      }\n      else {\n        uVar5 = uVar5 + 3;\n        local_14 = uVar5;\n        if (param_4 <= uVar5) goto LAB_00074646;\n        *pbVar3 = bVar6 >> 4 | 0xe0;\n        pbVar3 = param_3 + uVar7;\n        bVar6 = 0x80;\n        uVar7 = uVar1;\n      }\n      *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n      param_3[uVar7] = bVar2 & 0x3f | 0x80;\n      uVar8 = uVar8 + 2;\n    } while (uVar8 <= param_7);" (do "do") (compound_statement "{\n      while( true ) {\n        bVar6 = *(byte *)(param_5 + -1 + uVar8);\n        bVar2 = *(byte *)(param_5 + -2 + uVar8);\n        uVar4 = CONCAT11(bVar6,bVar2);\n        pbVar3 = param_3 + uVar5;\n        if ((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar8 = uVar8 + 2;\n        uVar5 = uVar7;\n        if (param_7 < uVar8) goto LAB_00074696;\n      }\n      uVar1 = uVar5 + 2;\n      if (param_4 <= uVar1) goto LAB_00074646;\n      if (uVar4 < 0x800) {\n        bVar6 = 0xc0;\n        uVar5 = uVar1;\n      }\n      else {\n        uVar5 = uVar5 + 3;\n        local_14 = uVar5;\n        if (param_4 <= uVar5) goto LAB_00074646;\n        *pbVar3 = bVar6 >> 4 | 0xe0;\n        pbVar3 = param_3 + uVar7;\n        bVar6 = 0x80;\n        uVar7 = uVar1;\n      }\n      *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n      param_3[uVar7] = bVar2 & 0x3f | 0x80;\n      uVar8 = uVar8 + 2;\n    }" ({ "{") (while_statement "while( true ) {\n        bVar6 = *(byte *)(param_5 + -1 + uVar8);\n        bVar2 = *(byte *)(param_5 + -2 + uVar8);\n        uVar4 = CONCAT11(bVar6,bVar2);\n        pbVar3 = param_3 + uVar5;\n        if ((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar8 = uVar8 + 2;\n        uVar5 = uVar7;\n        if (param_7 < uVar8) goto LAB_00074696;\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        bVar6 = *(byte *)(param_5 + -1 + uVar8);\n        bVar2 = *(byte *)(param_5 + -2 + uVar8);\n        uVar4 = CONCAT11(bVar6,bVar2);\n        pbVar3 = param_3 + uVar5;\n        if ((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)) goto LAB_00074646;\n        if (0x7f < uVar4) break;\n        *pbVar3 = bVar2;\n        uVar8 = uVar8 + 2;\n        uVar5 = uVar7;\n        if (param_7 < uVar8) goto LAB_00074696;\n      }" ({ "{") (expression_statement "bVar6 = *(byte *)(param_5 + -1 + uVar8);" (assignment_expression "bVar6 = *(byte *)(param_5 + -1 + uVar8)" (identifier "bVar6") (= "=") (pointer_expression "*(byte *)(param_5 + -1 + uVar8)" (* "*") (cast_expression "(byte *)(param_5 + -1 + uVar8)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + -1 + uVar8)" (( "(") (binary_expression "param_5 + -1 + uVar8" (binary_expression "param_5 + -1" (identifier "param_5") (+ "+") (number_literal "-1")) (+ "+") (identifier "uVar8")) () ")"))))) (; ";")) (expression_statement "bVar2 = *(byte *)(param_5 + -2 + uVar8);" (assignment_expression "bVar2 = *(byte *)(param_5 + -2 + uVar8)" (identifier "bVar2") (= "=") (pointer_expression "*(byte *)(param_5 + -2 + uVar8)" (* "*") (cast_expression "(byte *)(param_5 + -2 + uVar8)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + -2 + uVar8)" (( "(") (binary_expression "param_5 + -2 + uVar8" (binary_expression "param_5 + -2" (identifier "param_5") (+ "+") (number_literal "-2")) (+ "+") (identifier "uVar8")) () ")"))))) (; ";")) (expression_statement "uVar4 = CONCAT11(bVar6,bVar2);" (assignment_expression "uVar4 = CONCAT11(bVar6,bVar2)" (identifier "uVar4") (= "=") (call_expression "CONCAT11(bVar6,bVar2)" (identifier "CONCAT11") (argument_list "(bVar6,bVar2)" (( "(") (identifier "bVar6") (, ",") (identifier "bVar2") () ")")))) (; ";")) (expression_statement "pbVar3 = param_3 + uVar5;" (assignment_expression "pbVar3 = param_3 + uVar5" (identifier "pbVar3") (= "=") (binary_expression "param_3 + uVar5" (identifier "param_3") (+ "+") (identifier "uVar5"))) (; ";")) (if_statement "if ((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)) goto LAB_00074646;" (if "if") (parenthesized_expression "((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7))" (( "(") (binary_expression "(uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)" (parenthesized_expression "(uVar4 == 0)" (( "(") (binary_expression "uVar4 == 0" (identifier "uVar4") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(uVar7 = uVar5 + 1, param_4 <= uVar7)" (( "(") (comma_expression "uVar7 = uVar5 + 1, param_4 <= uVar7" (assignment_expression "uVar7 = uVar5 + 1" (identifier "uVar7") (= "=") (binary_expression "uVar5 + 1" (identifier "uVar5") (+ "+") (number_literal "1"))) (, ",") (binary_expression "param_4 <= uVar7" (identifier "param_4") (<= "<=") (identifier "uVar7"))) () ")"))) () ")")) (goto_statement "goto LAB_00074646;" (goto "goto") (statement_identifier "LAB_00074646") (; ";"))) (if_statement "if (0x7f < uVar4) break;" (if "if") (parenthesized_expression "(0x7f < uVar4)" (( "(") (binary_expression "0x7f < uVar4" (number_literal "0x7f") (< "<") (identifier "uVar4")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "*pbVar3 = bVar2;" (assignment_expression "*pbVar3 = bVar2" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (= "=") (identifier "bVar2")) (; ";")) (expression_statement "uVar8 = uVar8 + 2;" (assignment_expression "uVar8 = uVar8 + 2" (identifier "uVar8") (= "=") (binary_expression "uVar8 + 2" (identifier "uVar8") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "uVar5 = uVar7;" (assignment_expression "uVar5 = uVar7" (identifier "uVar5") (= "=") (identifier "uVar7")) (; ";")) (if_statement "if (param_7 < uVar8) goto LAB_00074696;" (if "if") (parenthesized_expression "(param_7 < uVar8)" (( "(") (binary_expression "param_7 < uVar8" (identifier "param_7") (< "<") (identifier "uVar8")) () ")")) (goto_statement "goto LAB_00074696;" (goto "goto") (statement_identifier "LAB_00074696") (; ";"))) (} "}"))) (expression_statement "uVar1 = uVar5 + 2;" (assignment_expression "uVar1 = uVar5 + 2" (identifier "uVar1") (= "=") (binary_expression "uVar5 + 2" (identifier "uVar5") (+ "+") (number_literal "2"))) (; ";")) (if_statement "if (param_4 <= uVar1) goto LAB_00074646;" (if "if") (parenthesized_expression "(param_4 <= uVar1)" (( "(") (binary_expression "param_4 <= uVar1" (identifier "param_4") (<= "<=") (identifier "uVar1")) () ")")) (goto_statement "goto LAB_00074646;" (goto "goto") (statement_identifier "LAB_00074646") (; ";"))) (if_statement "if (uVar4 < 0x800) {\n        bVar6 = 0xc0;\n        uVar5 = uVar1;\n      }\n      else {\n        uVar5 = uVar5 + 3;\n        local_14 = uVar5;\n        if (param_4 <= uVar5) goto LAB_00074646;\n        *pbVar3 = bVar6 >> 4 | 0xe0;\n        pbVar3 = param_3 + uVar7;\n        bVar6 = 0x80;\n        uVar7 = uVar1;\n      }" (if "if") (parenthesized_expression "(uVar4 < 0x800)" (( "(") (binary_expression "uVar4 < 0x800" (identifier "uVar4") (< "<") (number_literal "0x800")) () ")")) (compound_statement "{\n        bVar6 = 0xc0;\n        uVar5 = uVar1;\n      }" ({ "{") (expression_statement "bVar6 = 0xc0;" (assignment_expression "bVar6 = 0xc0" (identifier "bVar6") (= "=") (number_literal "0xc0")) (; ";")) (expression_statement "uVar5 = uVar1;" (assignment_expression "uVar5 = uVar1" (identifier "uVar5") (= "=") (identifier "uVar1")) (; ";")) (} "}")) (else_clause "else {\n        uVar5 = uVar5 + 3;\n        local_14 = uVar5;\n        if (param_4 <= uVar5) goto LAB_00074646;\n        *pbVar3 = bVar6 >> 4 | 0xe0;\n        pbVar3 = param_3 + uVar7;\n        bVar6 = 0x80;\n        uVar7 = uVar1;\n      }" (else "else") (compound_statement "{\n        uVar5 = uVar5 + 3;\n        local_14 = uVar5;\n        if (param_4 <= uVar5) goto LAB_00074646;\n        *pbVar3 = bVar6 >> 4 | 0xe0;\n        pbVar3 = param_3 + uVar7;\n        bVar6 = 0x80;\n        uVar7 = uVar1;\n      }" ({ "{") (expression_statement "uVar5 = uVar5 + 3;" (assignment_expression "uVar5 = uVar5 + 3" (identifier "uVar5") (= "=") (binary_expression "uVar5 + 3" (identifier "uVar5") (+ "+") (number_literal "3"))) (; ";")) (expression_statement "local_14 = uVar5;" (assignment_expression "local_14 = uVar5" (identifier "local_14") (= "=") (identifier "uVar5")) (; ";")) (if_statement "if (param_4 <= uVar5) goto LAB_00074646;" (if "if") (parenthesized_expression "(param_4 <= uVar5)" (( "(") (binary_expression "param_4 <= uVar5" (identifier "param_4") (<= "<=") (identifier "uVar5")) () ")")) (goto_statement "goto LAB_00074646;" (goto "goto") (statement_identifier "LAB_00074646") (; ";"))) (expression_statement "*pbVar3 = bVar6 >> 4 | 0xe0;" (assignment_expression "*pbVar3 = bVar6 >> 4 | 0xe0" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (= "=") (binary_expression "bVar6 >> 4 | 0xe0" (binary_expression "bVar6 >> 4" (identifier "bVar6") (>> ">>") (number_literal "4")) (| "|") (number_literal "0xe0"))) (; ";")) (expression_statement "pbVar3 = param_3 + uVar7;" (assignment_expression "pbVar3 = param_3 + uVar7" (identifier "pbVar3") (= "=") (binary_expression "param_3 + uVar7" (identifier "param_3") (+ "+") (identifier "uVar7"))) (; ";")) (expression_statement "bVar6 = 0x80;" (assignment_expression "bVar6 = 0x80" (identifier "bVar6") (= "=") (number_literal "0x80")) (; ";")) (expression_statement "uVar7 = uVar1;" (assignment_expression "uVar7 = uVar1" (identifier "uVar7") (= "=") (identifier "uVar1")) (; ";")) (} "}")))) (expression_statement "*pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;" (assignment_expression "*pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (= "=") (binary_expression "(byte)(uVar4 >> 6) & 0x3f | bVar6" (binary_expression "(byte)(uVar4 >> 6) & 0x3f" (call_expression "(byte)(uVar4 >> 6)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(uVar4 >> 6)" (( "(") (binary_expression "uVar4 >> 6" (identifier "uVar4") (>> ">>") (number_literal "6")) () ")"))) (& "&") (number_literal "0x3f")) (| "|") (identifier "bVar6"))) (; ";")) (expression_statement "param_3[uVar7] = bVar2 & 0x3f | 0x80;" (assignment_expression "param_3[uVar7] = bVar2 & 0x3f | 0x80" (subscript_expression "param_3[uVar7]" (identifier "param_3") ([ "[") (identifier "uVar7") (] "]")) (= "=") (binary_expression "bVar2 & 0x3f | 0x80" (binary_expression "bVar2 & 0x3f" (identifier "bVar2") (& "&") (number_literal "0x3f")) (| "|") (number_literal "0x80"))) (; ";")) (expression_statement "uVar8 = uVar8 + 2;" (assignment_expression "uVar8 = uVar8 + 2" (identifier "uVar8") (= "=") (binary_expression "uVar8 + 2" (identifier "uVar8") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar8 <= param_7)" (( "(") (binary_expression "uVar8 <= param_7" (identifier "uVar8") (<= "<=") (identifier "param_7")) () ")")) (; ";")) (} "}")) (else_clause "else {\n    uVar7 = 2;\n    uVar8 = 0;\n    do {\n      bVar6 = *(byte *)(param_5 + -2 + uVar7);\n      bVar2 = *(byte *)(param_5 + -1 + uVar7);\n      uVar4 = CONCAT11(bVar6,bVar2);\n      pbVar3 = param_3 + uVar8;\n      if ((uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5)) goto LAB_00074646;\n      if (0x7f < uVar4) {\n        uVar1 = uVar8 + 2;\n        if (param_4 <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = param_3 + uVar8;\n      }\n      *pbVar3 = (byte)uVar4;\n      uVar7 = uVar7 + 2;\n      uVar8 = uVar5;\n    } while (uVar7 <= param_7);\n  }" (else "else") (compound_statement "{\n    uVar7 = 2;\n    uVar8 = 0;\n    do {\n      bVar6 = *(byte *)(param_5 + -2 + uVar7);\n      bVar2 = *(byte *)(param_5 + -1 + uVar7);\n      uVar4 = CONCAT11(bVar6,bVar2);\n      pbVar3 = param_3 + uVar8;\n      if ((uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5)) goto LAB_00074646;\n      if (0x7f < uVar4) {\n        uVar1 = uVar8 + 2;\n        if (param_4 <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = param_3 + uVar8;\n      }\n      *pbVar3 = (byte)uVar4;\n      uVar7 = uVar7 + 2;\n      uVar8 = uVar5;\n    } while (uVar7 <= param_7);\n  }" ({ "{") (expression_statement "uVar7 = 2;" (assignment_expression "uVar7 = 2" (identifier "uVar7") (= "=") (number_literal "2")) (; ";")) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" (identifier "uVar8") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      bVar6 = *(byte *)(param_5 + -2 + uVar7);\n      bVar2 = *(byte *)(param_5 + -1 + uVar7);\n      uVar4 = CONCAT11(bVar6,bVar2);\n      pbVar3 = param_3 + uVar8;\n      if ((uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5)) goto LAB_00074646;\n      if (0x7f < uVar4) {\n        uVar1 = uVar8 + 2;\n        if (param_4 <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = param_3 + uVar8;\n      }\n      *pbVar3 = (byte)uVar4;\n      uVar7 = uVar7 + 2;\n      uVar8 = uVar5;\n    } while (uVar7 <= param_7);" (do "do") (compound_statement "{\n      bVar6 = *(byte *)(param_5 + -2 + uVar7);\n      bVar2 = *(byte *)(param_5 + -1 + uVar7);\n      uVar4 = CONCAT11(bVar6,bVar2);\n      pbVar3 = param_3 + uVar8;\n      if ((uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5)) goto LAB_00074646;\n      if (0x7f < uVar4) {\n        uVar1 = uVar8 + 2;\n        if (param_4 <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = param_3 + uVar8;\n      }\n      *pbVar3 = (byte)uVar4;\n      uVar7 = uVar7 + 2;\n      uVar8 = uVar5;\n    }" ({ "{") (expression_statement "bVar6 = *(byte *)(param_5 + -2 + uVar7);" (assignment_expression "bVar6 = *(byte *)(param_5 + -2 + uVar7)" (identifier "bVar6") (= "=") (pointer_expression "*(byte *)(param_5 + -2 + uVar7)" (* "*") (cast_expression "(byte *)(param_5 + -2 + uVar7)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + -2 + uVar7)" (( "(") (binary_expression "param_5 + -2 + uVar7" (binary_expression "param_5 + -2" (identifier "param_5") (+ "+") (number_literal "-2")) (+ "+") (identifier "uVar7")) () ")"))))) (; ";")) (expression_statement "bVar2 = *(byte *)(param_5 + -1 + uVar7);" (assignment_expression "bVar2 = *(byte *)(param_5 + -1 + uVar7)" (identifier "bVar2") (= "=") (pointer_expression "*(byte *)(param_5 + -1 + uVar7)" (* "*") (cast_expression "(byte *)(param_5 + -1 + uVar7)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + -1 + uVar7)" (( "(") (binary_expression "param_5 + -1 + uVar7" (binary_expression "param_5 + -1" (identifier "param_5") (+ "+") (number_literal "-1")) (+ "+") (identifier "uVar7")) () ")"))))) (; ";")) (expression_statement "uVar4 = CONCAT11(bVar6,bVar2);" (assignment_expression "uVar4 = CONCAT11(bVar6,bVar2)" (identifier "uVar4") (= "=") (call_expression "CONCAT11(bVar6,bVar2)" (identifier "CONCAT11") (argument_list "(bVar6,bVar2)" (( "(") (identifier "bVar6") (, ",") (identifier "bVar2") () ")")))) (; ";")) (expression_statement "pbVar3 = param_3 + uVar8;" (assignment_expression "pbVar3 = param_3 + uVar8" (identifier "pbVar3") (= "=") (binary_expression "param_3 + uVar8" (identifier "param_3") (+ "+") (identifier "uVar8"))) (; ";")) (if_statement "if ((uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5)) goto LAB_00074646;" (if "if") (parenthesized_expression "((uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5))" (( "(") (binary_expression "(uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5)" (parenthesized_expression "(uVar4 == 0)" (( "(") (binary_expression "uVar4 == 0" (identifier "uVar4") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(uVar5 = uVar8 + 1, param_4 <= uVar5)" (( "(") (comma_expression "uVar5 = uVar8 + 1, param_4 <= uVar5" (assignment_expression "uVar5 = uVar8 + 1" (identifier "uVar5") (= "=") (binary_expression "uVar8 + 1" (identifier "uVar8") (+ "+") (number_literal "1"))) (, ",") (binary_expression "param_4 <= uVar5" (identifier "param_4") (<= "<=") (identifier "uVar5"))) () ")"))) () ")")) (goto_statement "goto LAB_00074646;" (goto "goto") (statement_identifier "LAB_00074646") (; ";"))) (if_statement "if (0x7f < uVar4) {\n        uVar1 = uVar8 + 2;\n        if (param_4 <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = param_3 + uVar8;\n      }" (if "if") (parenthesized_expression "(0x7f < uVar4)" (( "(") (binary_expression "0x7f < uVar4" (number_literal "0x7f") (< "<") (identifier "uVar4")) () ")")) (compound_statement "{\n        uVar1 = uVar8 + 2;\n        if (param_4 <= uVar1) goto LAB_00074646;\n        if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }\n        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;\n        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);\n        pbVar3 = param_3 + uVar8;\n      }" ({ "{") (expression_statement "uVar1 = uVar8 + 2;" (assignment_expression "uVar1 = uVar8 + 2" (identifier "uVar1") (= "=") (binary_expression "uVar8 + 2" (identifier "uVar8") (+ "+") (number_literal "2"))) (; ";")) (if_statement "if (param_4 <= uVar1) goto LAB_00074646;" (if "if") (parenthesized_expression "(param_4 <= uVar1)" (( "(") (binary_expression "param_4 <= uVar1" (identifier "param_4") (<= "<=") (identifier "uVar1")) () ")")) (goto_statement "goto LAB_00074646;" (goto "goto") (statement_identifier "LAB_00074646") (; ";"))) (if_statement "if (uVar4 < 0x800) {\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }\n        else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }" (if "if") (parenthesized_expression "(uVar4 < 0x800)" (( "(") (binary_expression "uVar4 < 0x800" (identifier "uVar4") (< "<") (number_literal "0x800")) () ")")) (compound_statement "{\n          bVar6 = 0xc0;\n          uVar8 = uVar5;\n          uVar5 = uVar1;\n        }" ({ "{") (expression_statement "bVar6 = 0xc0;" (assignment_expression "bVar6 = 0xc0" (identifier "bVar6") (= "=") (number_literal "0xc0")) (; ";")) (expression_statement "uVar8 = uVar5;" (assignment_expression "uVar8 = uVar5" (identifier "uVar8") (= "=") (identifier "uVar5")) (; ";")) (expression_statement "uVar5 = uVar1;" (assignment_expression "uVar5 = uVar1" (identifier "uVar5") (= "=") (identifier "uVar1")) (; ";")) (} "}")) (else_clause "else {\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }" (else "else") (compound_statement "{\n          local_14 = uVar8 + 3;\n          if (param_4 <= local_14) goto LAB_00074646;\n          *pbVar3 = bVar6 >> 4 | 0xe0;\n          pbVar3 = param_3 + uVar5;\n          bVar6 = 0x80;\n          uVar8 = uVar1;\n          uVar5 = local_14;\n        }" ({ "{") (expression_statement "local_14 = uVar8 + 3;" (assignment_expression "local_14 = uVar8 + 3" (identifier "local_14") (= "=") (binary_expression "uVar8 + 3" (identifier "uVar8") (+ "+") (number_literal "3"))) (; ";")) (if_statement "if (param_4 <= local_14) goto LAB_00074646;" (if "if") (parenthesized_expression "(param_4 <= local_14)" (( "(") (binary_expression "param_4 <= local_14" (identifier "param_4") (<= "<=") (identifier "local_14")) () ")")) (goto_statement "goto LAB_00074646;" (goto "goto") (statement_identifier "LAB_00074646") (; ";"))) (expression_statement "*pbVar3 = bVar6 >> 4 | 0xe0;" (assignment_expression "*pbVar3 = bVar6 >> 4 | 0xe0" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (= "=") (binary_expression "bVar6 >> 4 | 0xe0" (binary_expression "bVar6 >> 4" (identifier "bVar6") (>> ">>") (number_literal "4")) (| "|") (number_literal "0xe0"))) (; ";")) (expression_statement "pbVar3 = param_3 + uVar5;" (assignment_expression "pbVar3 = param_3 + uVar5" (identifier "pbVar3") (= "=") (binary_expression "param_3 + uVar5" (identifier "param_3") (+ "+") (identifier "uVar5"))) (; ";")) (expression_statement "bVar6 = 0x80;" (assignment_expression "bVar6 = 0x80" (identifier "bVar6") (= "=") (number_literal "0x80")) (; ";")) (expression_statement "uVar8 = uVar1;" (assignment_expression "uVar8 = uVar1" (identifier "uVar8") (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar5 = local_14;" (assignment_expression "uVar5 = local_14" (identifier "uVar5") (= "=") (identifier "local_14")) (; ";")) (} "}")))) (expression_statement "*pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;" (assignment_expression "*pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (= "=") (binary_expression "(byte)(uVar4 >> 6) & 0x3f | bVar6" (binary_expression "(byte)(uVar4 >> 6) & 0x3f" (call_expression "(byte)(uVar4 >> 6)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(uVar4 >> 6)" (( "(") (binary_expression "uVar4 >> 6" (identifier "uVar4") (>> ">>") (number_literal "6")) () ")"))) (& "&") (number_literal "0x3f")) (| "|") (identifier "bVar6"))) (; ";")) (expression_statement "uVar4 = (ushort)(bVar2 & 0x3f | 0x80);" (assignment_expression "uVar4 = (ushort)(bVar2 & 0x3f | 0x80)" (identifier "uVar4") (= "=") (call_expression "(ushort)(bVar2 & 0x3f | 0x80)" (parenthesized_expression "(ushort)" (( "(") (identifier "ushort") () ")")) (argument_list "(bVar2 & 0x3f | 0x80)" (( "(") (binary_expression "bVar2 & 0x3f | 0x80" (binary_expression "bVar2 & 0x3f" (identifier "bVar2") (& "&") (number_literal "0x3f")) (| "|") (number_literal "0x80")) () ")")))) (; ";")) (expression_statement "pbVar3 = param_3 + uVar8;" (assignment_expression "pbVar3 = param_3 + uVar8" (identifier "pbVar3") (= "=") (binary_expression "param_3 + uVar8" (identifier "param_3") (+ "+") (identifier "uVar8"))) (; ";")) (} "}"))) (expression_statement "*pbVar3 = (byte)uVar4;" (assignment_expression "*pbVar3 = (byte)uVar4" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (= "=") (cast_expression "(byte)uVar4" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar4"))) (; ";")) (expression_statement "uVar7 = uVar7 + 2;" (assignment_expression "uVar7 = uVar7 + 2" (identifier "uVar7") (= "=") (binary_expression "uVar7 + 2" (identifier "uVar7") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "uVar8 = uVar5;" (assignment_expression "uVar8 = uVar5" (identifier "uVar8") (= "=") (identifier "uVar5")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar7 <= param_7)" (( "(") (binary_expression "uVar7 <= param_7" (identifier "uVar7") (<= "<=") (identifier "param_7")) () ")")) (; ";")) (} "}")))) (labeled_statement "LAB_00074696:\n  param_3[uVar5] = 0;" (statement_identifier "LAB_00074696") (: ":") (expression_statement "param_3[uVar5] = 0;" (assignment_expression "param_3[uVar5] = 0" (subscript_expression "param_3[uVar5]" (identifier "param_3") ([ "[") (identifier "uVar5") (] "]")) (= "=") (number_literal "0")) (; ";"))) (return_statement "return local_14;" (return "return") (identifier "local_14") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

void function_1(char *var_6,size_t var_9,uint8_t *buf,type_1 var_2,size_t var_1)

{
  type_2 var_11;
  type_3 var_13;
  type_3 *pbVar3;
  type_4 var_8;
  type_2 var_14;
  type_2 var_7;
  type_3 var_12;
  type_2 var_10;
  type_2 var_4;
  
  pbVar3 = (type_3 *)var_6;
  if (var_1 < 2) {
LAB_00074646:
    *pbVar3 = 0;
    return;
  }
  if (var_2 == var_3) {
    var_4 = 2;
    var_7 = 0;
    do {
      while( true ) {
        var_13 = buf[var_4 - 2];
        var_8 = var_5(buf[var_4 - 1],var_13);
        pbVar3 = (type_3 *)(var_6 + var_7);
        if ((var_8 == 0) || (var_10 = var_7 + 1, var_9 <= var_10)) goto LAB_00074646;
        if (0x7f < var_8) break;
        *pbVar3 = var_13;
        var_4 = var_4 + 2;
        var_7 = var_10;
        if (var_1 < var_4) goto LAB_00074696;
      }
      var_11 = var_7 + 2;
      if (var_9 <= var_11) goto LAB_00074646;
      if (var_8 < 0x800) {
        var_12 = 0xc0;
        var_7 = var_11;
      }
      else {
        var_7 = var_7 + 3;
        if (var_9 <= var_7) goto LAB_00074646;
        *pbVar3 = buf[var_4 - 1] >> 4 | 0xe0;
        pbVar3 = (type_3 *)(var_6 + var_10);
        var_12 = 0x80;
        var_10 = var_11;
      }
      *pbVar3 = (type_3)(var_8 >> 6) & 0x3f | var_12;
      var_6[var_10] = var_13 & 0x3f | 0x80;
      var_4 = var_4 + 2;
    } while (var_4 <= var_1);
  }
  else {
    var_10 = 2;
    var_4 = 0;
    do {
      var_13 = buf[var_10 - 1];
      var_8 = var_5(buf[var_10 - 2],var_13);
      pbVar3 = (type_3 *)(var_6 + var_4);
      if ((var_8 == 0) || (var_7 = var_4 + 1, var_9 <= var_7)) goto LAB_00074646;
      if (0x7f < var_8) {
        var_11 = var_4 + 2;
        if (var_9 <= var_11) goto LAB_00074646;
        if (var_8 < 0x800) {
          var_12 = 0xc0;
          var_14 = var_7;
          var_7 = var_11;
        }
        else {
          if (var_9 <= var_4 + 3) goto LAB_00074646;
          *pbVar3 = buf[var_10 - 2] >> 4 | 0xe0;
          pbVar3 = (type_3 *)(var_6 + var_7);
          var_12 = 0x80;
          var_14 = var_11;
          var_7 = var_4 + 3;
        }
        *pbVar3 = (type_3)(var_8 >> 6) & 0x3f | var_12;
        var_8 = (type_4)(var_13 & 0x3f | 0x80);
        pbVar3 = (type_3 *)(var_6 + var_14);
      }
      *pbVar3 = (type_3)var_8;
      var_10 = var_10 + 2;
      var_4 = var_7;
    } while (var_10 <= var_1);
  }
LAB_00074696:
  var_6[var_7] = '\0';
  return;
}


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

uint __regparm2
MASKED(undefined4 param_1,uint param_2,byte *param_3,uint param_4,int param_5,int param_6,
            uint param_7)

{
  uint uVar1;
  byte bVar2;
  byte *pbVar3;
  ushort uVar4;
  uint uVar5;
  byte bVar6;
  uint uVar7;
  uint uVar8;
  uint local_14;
  
  pbVar3 = param_3;
  local_14 = param_2;
  if (param_7 < 2) {
LAB_00074646:
    *pbVar3 = 0;
    return local_14;
  }
  local_14 = param_2;
  if (param_6 == 0) {
    uVar8 = 2;
    uVar5 = 0;
    do {
      while( true ) {
        bVar6 = *(byte *)(param_5 + -1 + uVar8);
        bVar2 = *(byte *)(param_5 + -2 + uVar8);
        uVar4 = CONCAT11(bVar6,bVar2);
        pbVar3 = param_3 + uVar5;
        if ((uVar4 == 0) || (uVar7 = uVar5 + 1, param_4 <= uVar7)) goto LAB_00074646;
        if (0x7f < uVar4) break;
        *pbVar3 = bVar2;
        uVar8 = uVar8 + 2;
        uVar5 = uVar7;
        if (param_7 < uVar8) goto LAB_00074696;
      }
      uVar1 = uVar5 + 2;
      if (param_4 <= uVar1) goto LAB_00074646;
      if (uVar4 < 0x800) {
        bVar6 = 0xc0;
        uVar5 = uVar1;
      }
      else {
        uVar5 = uVar5 + 3;
        local_14 = uVar5;
        if (param_4 <= uVar5) goto LAB_00074646;
        *pbVar3 = bVar6 >> 4 | 0xe0;
        pbVar3 = param_3 + uVar7;
        bVar6 = 0x80;
        uVar7 = uVar1;
      }
      *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;
      param_3[uVar7] = bVar2 & 0x3f | 0x80;
      uVar8 = uVar8 + 2;
    } while (uVar8 <= param_7);
  }
  else {
    uVar7 = 2;
    uVar8 = 0;
    do {
      bVar6 = *(byte *)(param_5 + -2 + uVar7);
      bVar2 = *(byte *)(param_5 + -1 + uVar7);
      uVar4 = CONCAT11(bVar6,bVar2);
      pbVar3 = param_3 + uVar8;
      if ((uVar4 == 0) || (uVar5 = uVar8 + 1, param_4 <= uVar5)) goto LAB_00074646;
      if (0x7f < uVar4) {
        uVar1 = uVar8 + 2;
        if (param_4 <= uVar1) goto LAB_00074646;
        if (uVar4 < 0x800) {
          bVar6 = 0xc0;
          uVar8 = uVar5;
          uVar5 = uVar1;
        }
        else {
          local_14 = uVar8 + 3;
          if (param_4 <= local_14) goto LAB_00074646;
          *pbVar3 = bVar6 >> 4 | 0xe0;
          pbVar3 = param_3 + uVar5;
          bVar6 = 0x80;
          uVar8 = uVar1;
          uVar5 = local_14;
        }
        *pbVar3 = (byte)(uVar4 >> 6) & 0x3f | bVar6;
        uVar4 = (ushort)(bVar2 & 0x3f | 0x80);
        pbVar3 = param_3 + uVar8;
      }
      *pbVar3 = (byte)uVar4;
      uVar7 = uVar7 + 2;
      uVar8 = uVar5;
    } while (uVar7 <= param_7);
  }
LAB_00074696:
  param_3[uVar5] = 0;
  return local_14;
}

