
void put_wchar(char **pp,LWCHAR ch)

{
  byte bVar1;
  byte *pbVar2;
  byte bVar3;
  
  bVar3 = (byte)ch;
  if ((*(int *)PTR_utf_mode_0004fe08 == 0) || (ch < 0x80)) {
    pbVar2 = (byte *)*pp;
    *pp = (char *)(pbVar2 + 1);
    *pbVar2 = bVar3;
    return;
  }
  if (ch < 0x800) {
    pbVar2 = (byte *)*pp;
    *pp = (char *)(pbVar2 + 1);
    *pbVar2 = (byte)(ch >> 6) | 0xc0;
    pbVar2 = (byte *)*pp;
    *pp = (char *)(pbVar2 + 1);
    *pbVar2 = bVar3 & 0x3f | 0x80;
    return;
  }
  if (ch < 0x10000) {
    pbVar2 = (byte *)*pp;
    *pp = (char *)(pbVar2 + 1);
    *pbVar2 = (byte)(ch >> 0xc) | 0xe0;
    pbVar2 = (byte *)*pp;
    *pp = (char *)(pbVar2 + 1);
    *pbVar2 = (byte)((ch << 0x14) >> 0x1a) | 0x80;
    pbVar2 = (byte *)*pp;
    *pp = (char *)(pbVar2 + 1);
    *pbVar2 = bVar3 & 0x3f | 0x80;
    return;
  }
  if (ch < 0x200000) {
    pbVar2 = (byte *)*pp;
    *pp = (char *)(pbVar2 + 1);
    *pbVar2 = (byte)(ch >> 0x12) | 0xf0;
    pbVar2 = (byte *)*pp;
    *pp = (char *)(pbVar2 + 1);
    *pbVar2 = (byte)((ch << 0xe) >> 0x1a) | 0x80;
    pbVar2 = (byte *)*pp;
    *pp = (char *)(pbVar2 + 1);
    *pbVar2 = (byte)((ch << 0x14) >> 0x1a) | 0x80;
    pbVar2 = (byte *)*pp;
    *pp = (char *)(pbVar2 + 1);
    *pbVar2 = bVar3 & 0x3f | 0x80;
    return;
  }
  bVar1 = (byte)(ch >> 0x10);
  if (ch < 0x4000000) {
    pbVar2 = (byte *)*pp;
    *pp = (char *)(pbVar2 + 1);
    *pbVar2 = (byte)(ch >> 0x18) | 0xf0;
    pbVar2 = (byte *)*pp;
    *pp = (char *)(pbVar2 + 1);
    *pbVar2 = bVar1 >> 2 | 0x80;
    pbVar2 = (byte *)*pp;
    *pp = (char *)(pbVar2 + 1);
    *pbVar2 = (byte)((ch << 0xe) >> 0x1a) | 0x80;
    pbVar2 = (byte *)*pp;
    *pp = (char *)(pbVar2 + 1);
    *pbVar2 = (byte)((ch << 0x14) >> 0x1a) | 0x80;
    pbVar2 = (byte *)*pp;
    *pp = (char *)(pbVar2 + 1);
    *pbVar2 = bVar3 & 0x3f | 0x80;
    return;
  }
  pbVar2 = (byte *)*pp;
  *pp = (char *)(pbVar2 + 1);
  *pbVar2 = (byte)((ch << 1) >> 0x1f) | 0xf0;
  pbVar2 = (byte *)*pp;
  *pp = (char *)(pbVar2 + 1);
  *pbVar2 = (byte)((ch << 2) >> 0x1a) | 0x80;
  pbVar2 = (byte *)*pp;
  *pp = (char *)(pbVar2 + 1);
  *pbVar2 = bVar1 >> 2 | 0x80;
  pbVar2 = (byte *)*pp;
  *pp = (char *)(pbVar2 + 1);
  *pbVar2 = (byte)((ch << 0xe) >> 0x1a) | 0x80;
  pbVar2 = (byte *)*pp;
  *pp = (char *)(pbVar2 + 1);
  *pbVar2 = (byte)((ch << 0x14) >> 0x1a) | 0x80;
  pbVar2 = (byte *)*pp;
  *pp = (char *)(pbVar2 + 1);
  *pbVar2 = bVar3 & 0x3f | 0x80;
  return;
}



void put_wchar(int *param_1,uint param_2)

{
  byte bVar1;
  byte *pbVar2;
  byte bVar3;
  
  bVar3 = (byte)param_2;
  if ((*(int *)PTR_utf_mode_0004fe08 == 0) || (param_2 < 0x80)) {
    pbVar2 = (byte *)*param_1;
    *param_1 = (int)(pbVar2 + 1);
    *pbVar2 = bVar3;
    return;
  }
  if (param_2 < 0x800) {
    pbVar2 = (byte *)*param_1;
    *param_1 = (int)(pbVar2 + 1);
    *pbVar2 = (byte)(param_2 >> 6) | 0xc0;
    pbVar2 = (byte *)*param_1;
    *param_1 = (int)(pbVar2 + 1);
    *pbVar2 = bVar3 & 0x3f | 0x80;
    return;
  }
  if (param_2 < 0x10000) {
    pbVar2 = (byte *)*param_1;
    *param_1 = (int)(pbVar2 + 1);
    *pbVar2 = (byte)(param_2 >> 0xc) | 0xe0;
    pbVar2 = (byte *)*param_1;
    *param_1 = (int)(pbVar2 + 1);
    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;
    pbVar2 = (byte *)*param_1;
    *param_1 = (int)(pbVar2 + 1);
    *pbVar2 = bVar3 & 0x3f | 0x80;
    return;
  }
  if (param_2 < 0x200000) {
    pbVar2 = (byte *)*param_1;
    *param_1 = (int)(pbVar2 + 1);
    *pbVar2 = (byte)(param_2 >> 0x12) | 0xf0;
    pbVar2 = (byte *)*param_1;
    *param_1 = (int)(pbVar2 + 1);
    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;
    pbVar2 = (byte *)*param_1;
    *param_1 = (int)(pbVar2 + 1);
    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;
    pbVar2 = (byte *)*param_1;
    *param_1 = (int)(pbVar2 + 1);
    *pbVar2 = bVar3 & 0x3f | 0x80;
    return;
  }
  bVar1 = (byte)(param_2 >> 0x10);
  if (param_2 < 0x4000000) {
    pbVar2 = (byte *)*param_1;
    *param_1 = (int)(pbVar2 + 1);
    *pbVar2 = (byte)(param_2 >> 0x18) | 0xf0;
    pbVar2 = (byte *)*param_1;
    *param_1 = (int)(pbVar2 + 1);
    *pbVar2 = bVar1 >> 2 | 0x80;
    pbVar2 = (byte *)*param_1;
    *param_1 = (int)(pbVar2 + 1);
    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;
    pbVar2 = (byte *)*param_1;
    *param_1 = (int)(pbVar2 + 1);
    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;
    pbVar2 = (byte *)*param_1;
    *param_1 = (int)(pbVar2 + 1);
    *pbVar2 = bVar3 & 0x3f | 0x80;
    return;
  }
  pbVar2 = (byte *)*param_1;
  *param_1 = (int)(pbVar2 + 1);
  *pbVar2 = (byte)((param_2 << 1) >> 0x1f) | 0xf0;
  pbVar2 = (byte *)*param_1;
  *param_1 = (int)(pbVar2 + 1);
  *pbVar2 = (byte)((param_2 << 2) >> 0x1a) | 0x80;
  pbVar2 = (byte *)*param_1;
  *param_1 = (int)(pbVar2 + 1);
  *pbVar2 = bVar1 >> 2 | 0x80;
  pbVar2 = (byte *)*param_1;
  *param_1 = (int)(pbVar2 + 1);
  *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;
  pbVar2 = (byte *)*param_1;
  *param_1 = (int)(pbVar2 + 1);
  *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;
  pbVar2 = (byte *)*param_1;
  *param_1 = (int)(pbVar2 + 1);
  *pbVar2 = bVar3 & 0x3f | 0x80;
  return;
}


lui gp,0x4
addiu gp,gp,-0x2928
addu gp,gp,t9
lw v0,-0x7dc8(gp)
lw v0,0x0(v0)
beq v0,zero,0x0001a51c
_sltiu v0,a1,0x80
beq v0,zero,0x0001a530
_sltiu v0,a1,0x800
lw v0,0x0(a0)
addiu v1,v0,0x1
sw v1,0x0(a0)
jr ra
_sb a1,0x0(v0)
beq v0,zero,0x0001a574
_lui v0,0x1
lw v1,0x0(a0)
addiu v0,v1,0x1
sw v0,0x0(a0)
srl v0,a1,0x6
li a2,-0x40
or v0,v0,a2
sb v0,0x0(v1)
lw v0,0x0(a0)
addiu v1,v0,0x1
sw v1,0x0(a0)
andi a1,a1,0x3f
li v1,-0x80
or a1,a1,v1
jr ra
_sb a1,0x0(v0)
sltu v0,a1,v0
beq v0,zero,0x0001a5d4
_lui v0,0x20
lw v1,0x0(a0)
addiu v0,v1,0x1
sw v0,0x0(a0)
srl v0,a1,0xc
li a2,-0x20
or v0,v0,a2
sb v0,0x0(v1)
lw a2,0x0(a0)
addiu v0,a2,0x1
sw v0,0x0(a0)
ext v0,a1,0x6,0x6
li v1,-0x80
or v0,v0,v1
sb v0,0x0(a2)
lw v0,0x0(a0)
addiu a2,v0,0x1
sw a2,0x0(a0)
andi a1,a1,0x3f
or a1,a1,v1
jr ra
_sb a1,0x0(v0)
sltu v0,a1,v0
beq v0,zero,0x0001a64c
_lui v0,0x400
lw v1,0x0(a0)
addiu v0,v1,0x1
sw v0,0x0(a0)
srl v0,a1,0x12
li a2,-0x10
or v0,v0,a2
sb v0,0x0(v1)
lw a2,0x0(a0)
addiu v0,a2,0x1
sw v0,0x0(a0)
ext v1,a1,0xc,0x6
li v0,-0x80
or v1,v1,v0
sb v1,0x0(a2)
lw a2,0x0(a0)
addiu v1,a2,0x1
sw v1,0x0(a0)
ext v1,a1,0x6,0x6
or v1,v1,v0
sb v1,0x0(a2)
lw v1,0x0(a0)
addiu a2,v1,0x1
sw a2,0x0(a0)
andi a1,a1,0x3f
or a1,a1,v0
jr ra
_sb a1,0x0(v1)
sltu v0,a1,v0
beq v0,zero,0x0001a6d8
_li a2,-0x10
lw v1,0x0(a0)
addiu v0,v1,0x1
sw v0,0x0(a0)
srl v0,a1,0x18
or v0,v0,a2
sb v0,0x0(v1)
lw a2,0x0(a0)
addiu v0,a2,0x1
sw v0,0x0(a0)
ext v1,a1,0x12,0x6
li v0,-0x80
or v1,v1,v0
sb v1,0x0(a2)
lw a2,0x0(a0)
addiu v1,a2,0x1
sw v1,0x0(a0)
ext v1,a1,0xc,0x6
or v1,v1,v0
sb v1,0x0(a2)
lw a2,0x0(a0)
addiu v1,a2,0x1
sw v1,0x0(a0)
ext v1,a1,0x6,0x6
or v1,v1,v0
sb v1,0x0(a2)
lw v1,0x0(a0)
addiu a2,v1,0x1
sw a2,0x0(a0)
andi a1,a1,0x3f
or v0,a1,v0
jr ra
_sb v0,0x0(v1)
lw v1,0x0(a0)
addiu v0,v1,0x1
sw v0,0x0(a0)
ext v0,a1,0x1e,0x1
or v0,v0,a2
sb v0,0x0(v1)
lw a2,0x0(a0)
addiu v0,a2,0x1
sw v0,0x0(a0)
ext v0,a1,0x18,0x6
li v1,-0x80
or v0,v0,v1
sb v0,0x0(a2)
lw a2,0x0(a0)
addiu v0,a2,0x1
sw v0,0x0(a0)
ext v0,a1,0x12,0x6
or v0,v0,v1
sb v0,0x0(a2)
lw a2,0x0(a0)
addiu v0,a2,0x1
sw v0,0x0(a0)
ext v0,a1,0xc,0x6
or v0,v0,v1
sb v0,0x0(a2)
lw a2,0x0(a0)
addiu v0,a2,0x1
sw v0,0x0(a0)
ext v0,a1,0x6,0x6
or v0,v0,v1
sb v0,0x0(a2)
lw a2,0x0(a0)
addiu v0,a2,0x1
sw v0,0x0(a0)
andi v0,a1,0x3f
or v0,v0,v1
jr ra
_sb v0,0x0(a2)
(translation_unit "void put_wchar(int *param_1,uint param_2)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  byte bVar3;\n  \n  bVar3 = (byte)param_2;\n  if ((*(int *)PTR_utf_mode_0004fe08 == 0) || (param_2 < 0x80)) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3;\n    return;\n  }\n  if (param_2 < 0x800) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 6) | 0xc0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  if (param_2 < 0x10000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0xc) | 0xe0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  if (param_2 < 0x200000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0x12) | 0xf0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  bVar1 = (byte)(param_2 >> 0x10);\n  if (param_2 < 0x4000000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0x18) | 0xf0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar1 >> 2 | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 1) >> 0x1f) | 0xf0;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 2) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = bVar1 >> 2 | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = bVar3 & 0x3f | 0x80;\n  return;\n}\n\n" (function_definition "void put_wchar(int *param_1,uint param_2)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  byte bVar3;\n  \n  bVar3 = (byte)param_2;\n  if ((*(int *)PTR_utf_mode_0004fe08 == 0) || (param_2 < 0x80)) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3;\n    return;\n  }\n  if (param_2 < 0x800) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 6) | 0xc0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  if (param_2 < 0x10000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0xc) | 0xe0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  if (param_2 < 0x200000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0x12) | 0xf0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  bVar1 = (byte)(param_2 >> 0x10);\n  if (param_2 < 0x4000000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0x18) | 0xf0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar1 >> 2 | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 1) >> 0x1f) | 0xf0;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 2) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = bVar1 >> 2 | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = bVar3 & 0x3f | 0x80;\n  return;\n}" primitive_type (function_declarator "put_wchar(int *param_1,uint param_2)" identifier (parameter_list "(int *param_1,uint param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  byte bVar3;\n  \n  bVar3 = (byte)param_2;\n  if ((*(int *)PTR_utf_mode_0004fe08 == 0) || (param_2 < 0x80)) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3;\n    return;\n  }\n  if (param_2 < 0x800) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 6) | 0xc0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  if (param_2 < 0x10000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0xc) | 0xe0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  if (param_2 < 0x200000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0x12) | 0xf0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  bVar1 = (byte)(param_2 >> 0x10);\n  if (param_2 < 0x4000000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0x18) | 0xf0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar1 >> 2 | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 1) >> 0x1f) | 0xf0;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 2) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = bVar1 >> 2 | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = bVar3 & 0x3f | 0x80;\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte bVar3;" type_identifier identifier ;) (expression_statement "bVar3 = (byte)param_2;" (assignment_expression "bVar3 = (byte)param_2" identifier = (cast_expression "(byte)param_2" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (if_statement "if ((*(int *)PTR_utf_mode_0004fe08 == 0) || (param_2 < 0x80)) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3;\n    return;\n  }" if (parenthesized_expression "((*(int *)PTR_utf_mode_0004fe08 == 0) || (param_2 < 0x80))" ( (binary_expression "(*(int *)PTR_utf_mode_0004fe08 == 0) || (param_2 < 0x80)" (parenthesized_expression "(*(int *)PTR_utf_mode_0004fe08 == 0)" ( (binary_expression "*(int *)PTR_utf_mode_0004fe08 == 0" (pointer_expression "*(int *)PTR_utf_mode_0004fe08" * (cast_expression "(int *)PTR_utf_mode_0004fe08" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) || (parenthesized_expression "(param_2 < 0x80)" ( (binary_expression "param_2 < 0x80" identifier < number_literal) ))) )) (compound_statement "{\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3;\n    return;\n  }" { (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = bVar3;" (assignment_expression "*pbVar2 = bVar3" (pointer_expression "*pbVar2" * identifier) = identifier) ;) (return_statement "return;" return ;) })) (if_statement "if (param_2 < 0x800) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 6) | 0xc0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" if (parenthesized_expression "(param_2 < 0x800)" ( (binary_expression "param_2 < 0x800" identifier < number_literal) )) (compound_statement "{\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 6) | 0xc0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" { (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)(param_2 >> 6) | 0xc0;" (assignment_expression "*pbVar2 = (byte)(param_2 >> 6) | 0xc0" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)(param_2 >> 6) | 0xc0" (call_expression "(byte)(param_2 >> 6)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(param_2 >> 6)" ( (binary_expression "param_2 >> 6" identifier >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = bVar3 & 0x3f | 0x80;" (assignment_expression "*pbVar2 = bVar3 & 0x3f | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "bVar3 & 0x3f | 0x80" (binary_expression "bVar3 & 0x3f" identifier & number_literal) | number_literal)) ;) (return_statement "return;" return ;) })) (if_statement "if (param_2 < 0x10000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0xc) | 0xe0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" if (parenthesized_expression "(param_2 < 0x10000)" ( (binary_expression "param_2 < 0x10000" identifier < number_literal) )) (compound_statement "{\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0xc) | 0xe0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" { (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)(param_2 >> 0xc) | 0xe0;" (assignment_expression "*pbVar2 = (byte)(param_2 >> 0xc) | 0xe0" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)(param_2 >> 0xc) | 0xe0" (call_expression "(byte)(param_2 >> 0xc)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(param_2 >> 0xc)" ( (binary_expression "param_2 >> 0xc" identifier >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)((param_2 << 0x14) >> 0x1a) | 0x80" (call_expression "(byte)((param_2 << 0x14) >> 0x1a)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((param_2 << 0x14) >> 0x1a)" ( (binary_expression "(param_2 << 0x14) >> 0x1a" (parenthesized_expression "(param_2 << 0x14)" ( (binary_expression "param_2 << 0x14" identifier << number_literal) )) >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = bVar3 & 0x3f | 0x80;" (assignment_expression "*pbVar2 = bVar3 & 0x3f | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "bVar3 & 0x3f | 0x80" (binary_expression "bVar3 & 0x3f" identifier & number_literal) | number_literal)) ;) (return_statement "return;" return ;) })) (if_statement "if (param_2 < 0x200000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0x12) | 0xf0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" if (parenthesized_expression "(param_2 < 0x200000)" ( (binary_expression "param_2 < 0x200000" identifier < number_literal) )) (compound_statement "{\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0x12) | 0xf0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" { (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)(param_2 >> 0x12) | 0xf0;" (assignment_expression "*pbVar2 = (byte)(param_2 >> 0x12) | 0xf0" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)(param_2 >> 0x12) | 0xf0" (call_expression "(byte)(param_2 >> 0x12)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(param_2 >> 0x12)" ( (binary_expression "param_2 >> 0x12" identifier >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)((param_2 << 0xe) >> 0x1a) | 0x80" (call_expression "(byte)((param_2 << 0xe) >> 0x1a)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((param_2 << 0xe) >> 0x1a)" ( (binary_expression "(param_2 << 0xe) >> 0x1a" (parenthesized_expression "(param_2 << 0xe)" ( (binary_expression "param_2 << 0xe" identifier << number_literal) )) >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)((param_2 << 0x14) >> 0x1a) | 0x80" (call_expression "(byte)((param_2 << 0x14) >> 0x1a)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((param_2 << 0x14) >> 0x1a)" ( (binary_expression "(param_2 << 0x14) >> 0x1a" (parenthesized_expression "(param_2 << 0x14)" ( (binary_expression "param_2 << 0x14" identifier << number_literal) )) >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = bVar3 & 0x3f | 0x80;" (assignment_expression "*pbVar2 = bVar3 & 0x3f | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "bVar3 & 0x3f | 0x80" (binary_expression "bVar3 & 0x3f" identifier & number_literal) | number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "bVar1 = (byte)(param_2 >> 0x10);" (assignment_expression "bVar1 = (byte)(param_2 >> 0x10)" identifier = (call_expression "(byte)(param_2 >> 0x10)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(param_2 >> 0x10)" ( (binary_expression "param_2 >> 0x10" identifier >> number_literal) )))) ;) (if_statement "if (param_2 < 0x4000000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0x18) | 0xf0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar1 >> 2 | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" if (parenthesized_expression "(param_2 < 0x4000000)" ( (binary_expression "param_2 < 0x4000000" identifier < number_literal) )) (compound_statement "{\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0x18) | 0xf0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar1 >> 2 | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" { (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)(param_2 >> 0x18) | 0xf0;" (assignment_expression "*pbVar2 = (byte)(param_2 >> 0x18) | 0xf0" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)(param_2 >> 0x18) | 0xf0" (call_expression "(byte)(param_2 >> 0x18)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(param_2 >> 0x18)" ( (binary_expression "param_2 >> 0x18" identifier >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = bVar1 >> 2 | 0x80;" (assignment_expression "*pbVar2 = bVar1 >> 2 | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "bVar1 >> 2 | 0x80" (binary_expression "bVar1 >> 2" identifier >> number_literal) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)((param_2 << 0xe) >> 0x1a) | 0x80" (call_expression "(byte)((param_2 << 0xe) >> 0x1a)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((param_2 << 0xe) >> 0x1a)" ( (binary_expression "(param_2 << 0xe) >> 0x1a" (parenthesized_expression "(param_2 << 0xe)" ( (binary_expression "param_2 << 0xe" identifier << number_literal) )) >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)((param_2 << 0x14) >> 0x1a) | 0x80" (call_expression "(byte)((param_2 << 0x14) >> 0x1a)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((param_2 << 0x14) >> 0x1a)" ( (binary_expression "(param_2 << 0x14) >> 0x1a" (parenthesized_expression "(param_2 << 0x14)" ( (binary_expression "param_2 << 0x14" identifier << number_literal) )) >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = bVar3 & 0x3f | 0x80;" (assignment_expression "*pbVar2 = bVar3 & 0x3f | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "bVar3 & 0x3f | 0x80" (binary_expression "bVar3 & 0x3f" identifier & number_literal) | number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)((param_2 << 1) >> 0x1f) | 0xf0;" (assignment_expression "*pbVar2 = (byte)((param_2 << 1) >> 0x1f) | 0xf0" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)((param_2 << 1) >> 0x1f) | 0xf0" (call_expression "(byte)((param_2 << 1) >> 0x1f)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((param_2 << 1) >> 0x1f)" ( (binary_expression "(param_2 << 1) >> 0x1f" (parenthesized_expression "(param_2 << 1)" ( (binary_expression "param_2 << 1" identifier << number_literal) )) >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)((param_2 << 2) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((param_2 << 2) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)((param_2 << 2) >> 0x1a) | 0x80" (call_expression "(byte)((param_2 << 2) >> 0x1a)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((param_2 << 2) >> 0x1a)" ( (binary_expression "(param_2 << 2) >> 0x1a" (parenthesized_expression "(param_2 << 2)" ( (binary_expression "param_2 << 2" identifier << number_literal) )) >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = bVar1 >> 2 | 0x80;" (assignment_expression "*pbVar2 = bVar1 >> 2 | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "bVar1 >> 2 | 0x80" (binary_expression "bVar1 >> 2" identifier >> number_literal) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)((param_2 << 0xe) >> 0x1a) | 0x80" (call_expression "(byte)((param_2 << 0xe) >> 0x1a)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((param_2 << 0xe) >> 0x1a)" ( (binary_expression "(param_2 << 0xe) >> 0x1a" (parenthesized_expression "(param_2 << 0xe)" ( (binary_expression "param_2 << 0xe" identifier << number_literal) )) >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)((param_2 << 0x14) >> 0x1a) | 0x80" (call_expression "(byte)((param_2 << 0x14) >> 0x1a)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((param_2 << 0x14) >> 0x1a)" ( (binary_expression "(param_2 << 0x14) >> 0x1a" (parenthesized_expression "(param_2 << 0x14)" ( (binary_expression "param_2 << 0x14" identifier << number_literal) )) >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = bVar3 & 0x3f | 0x80;" (assignment_expression "*pbVar2 = bVar3 & 0x3f | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "bVar3 & 0x3f | 0x80" (binary_expression "bVar3 & 0x3f" identifier & number_literal) | number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void put_wchar(char **pp,LWCHAR ch)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  byte bVar3;\n  \n  bVar3 = (byte)ch;\n  if ((*(int *)PTR_utf_mode_0004fe08 == 0) || (ch < 0x80)) {\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = bVar3;\n    return;\n  }\n  if (ch < 0x800) {\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)(ch >> 6) | 0xc0;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  if (ch < 0x10000) {\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)(ch >> 0xc) | 0xe0;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)((ch << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  if (ch < 0x200000) {\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)(ch >> 0x12) | 0xf0;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)((ch << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)((ch << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  bVar1 = (byte)(ch >> 0x10);\n  if (ch < 0x4000000) {\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)(ch >> 0x18) | 0xf0;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = bVar1 >> 2 | 0x80;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)((ch << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)((ch << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  pbVar2 = (byte *)*pp;\n  *pp = (char *)(pbVar2 + 1);\n  *pbVar2 = (byte)((ch << 1) >> 0x1f) | 0xf0;\n  pbVar2 = (byte *)*pp;\n  *pp = (char *)(pbVar2 + 1);\n  *pbVar2 = (byte)((ch << 2) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*pp;\n  *pp = (char *)(pbVar2 + 1);\n  *pbVar2 = bVar1 >> 2 | 0x80;\n  pbVar2 = (byte *)*pp;\n  *pp = (char *)(pbVar2 + 1);\n  *pbVar2 = (byte)((ch << 0xe) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*pp;\n  *pp = (char *)(pbVar2 + 1);\n  *pbVar2 = (byte)((ch << 0x14) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*pp;\n  *pp = (char *)(pbVar2 + 1);\n  *pbVar2 = bVar3 & 0x3f | 0x80;\n  return;\n}\n\n" (function_definition "void put_wchar(char **pp,LWCHAR ch)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  byte bVar3;\n  \n  bVar3 = (byte)ch;\n  if ((*(int *)PTR_utf_mode_0004fe08 == 0) || (ch < 0x80)) {\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = bVar3;\n    return;\n  }\n  if (ch < 0x800) {\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)(ch >> 6) | 0xc0;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  if (ch < 0x10000) {\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)(ch >> 0xc) | 0xe0;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)((ch << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  if (ch < 0x200000) {\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)(ch >> 0x12) | 0xf0;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)((ch << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)((ch << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  bVar1 = (byte)(ch >> 0x10);\n  if (ch < 0x4000000) {\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)(ch >> 0x18) | 0xf0;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = bVar1 >> 2 | 0x80;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)((ch << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)((ch << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  pbVar2 = (byte *)*pp;\n  *pp = (char *)(pbVar2 + 1);\n  *pbVar2 = (byte)((ch << 1) >> 0x1f) | 0xf0;\n  pbVar2 = (byte *)*pp;\n  *pp = (char *)(pbVar2 + 1);\n  *pbVar2 = (byte)((ch << 2) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*pp;\n  *pp = (char *)(pbVar2 + 1);\n  *pbVar2 = bVar1 >> 2 | 0x80;\n  pbVar2 = (byte *)*pp;\n  *pp = (char *)(pbVar2 + 1);\n  *pbVar2 = (byte)((ch << 0xe) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*pp;\n  *pp = (char *)(pbVar2 + 1);\n  *pbVar2 = (byte)((ch << 0x14) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*pp;\n  *pp = (char *)(pbVar2 + 1);\n  *pbVar2 = bVar3 & 0x3f | 0x80;\n  return;\n}" primitive_type (function_declarator "put_wchar(char **pp,LWCHAR ch)" identifier (parameter_list "(char **pp,LWCHAR ch)" ( (parameter_declaration "char **pp" primitive_type (pointer_declarator "**pp" * (pointer_declarator "*pp" * identifier))) , (parameter_declaration "LWCHAR ch" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  byte bVar3;\n  \n  bVar3 = (byte)ch;\n  if ((*(int *)PTR_utf_mode_0004fe08 == 0) || (ch < 0x80)) {\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = bVar3;\n    return;\n  }\n  if (ch < 0x800) {\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)(ch >> 6) | 0xc0;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  if (ch < 0x10000) {\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)(ch >> 0xc) | 0xe0;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)((ch << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  if (ch < 0x200000) {\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)(ch >> 0x12) | 0xf0;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)((ch << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)((ch << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  bVar1 = (byte)(ch >> 0x10);\n  if (ch < 0x4000000) {\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)(ch >> 0x18) | 0xf0;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = bVar1 >> 2 | 0x80;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)((ch << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)((ch << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  pbVar2 = (byte *)*pp;\n  *pp = (char *)(pbVar2 + 1);\n  *pbVar2 = (byte)((ch << 1) >> 0x1f) | 0xf0;\n  pbVar2 = (byte *)*pp;\n  *pp = (char *)(pbVar2 + 1);\n  *pbVar2 = (byte)((ch << 2) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*pp;\n  *pp = (char *)(pbVar2 + 1);\n  *pbVar2 = bVar1 >> 2 | 0x80;\n  pbVar2 = (byte *)*pp;\n  *pp = (char *)(pbVar2 + 1);\n  *pbVar2 = (byte)((ch << 0xe) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*pp;\n  *pp = (char *)(pbVar2 + 1);\n  *pbVar2 = (byte)((ch << 0x14) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*pp;\n  *pp = (char *)(pbVar2 + 1);\n  *pbVar2 = bVar3 & 0x3f | 0x80;\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte bVar3;" type_identifier identifier ;) (expression_statement "bVar3 = (byte)ch;" (assignment_expression "bVar3 = (byte)ch" identifier = (cast_expression "(byte)ch" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (if_statement "if ((*(int *)PTR_utf_mode_0004fe08 == 0) || (ch < 0x80)) {\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = bVar3;\n    return;\n  }" if (parenthesized_expression "((*(int *)PTR_utf_mode_0004fe08 == 0) || (ch < 0x80))" ( (binary_expression "(*(int *)PTR_utf_mode_0004fe08 == 0) || (ch < 0x80)" (parenthesized_expression "(*(int *)PTR_utf_mode_0004fe08 == 0)" ( (binary_expression "*(int *)PTR_utf_mode_0004fe08 == 0" (pointer_expression "*(int *)PTR_utf_mode_0004fe08" * (cast_expression "(int *)PTR_utf_mode_0004fe08" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) || (parenthesized_expression "(ch < 0x80)" ( (binary_expression "ch < 0x80" identifier < number_literal) ))) )) (compound_statement "{\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = bVar3;\n    return;\n  }" { (expression_statement "pbVar2 = (byte *)*pp;" (assignment_expression "pbVar2 = (byte *)*pp" identifier = (cast_expression "(byte *)*pp" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*pp" * identifier))) ;) (expression_statement "*pp = (char *)(pbVar2 + 1);" (assignment_expression "*pp = (char *)(pbVar2 + 1)" (pointer_expression "*pp" * identifier) = (cast_expression "(char *)(pbVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = bVar3;" (assignment_expression "*pbVar2 = bVar3" (pointer_expression "*pbVar2" * identifier) = identifier) ;) (return_statement "return;" return ;) })) (if_statement "if (ch < 0x800) {\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)(ch >> 6) | 0xc0;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" if (parenthesized_expression "(ch < 0x800)" ( (binary_expression "ch < 0x800" identifier < number_literal) )) (compound_statement "{\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)(ch >> 6) | 0xc0;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" { (expression_statement "pbVar2 = (byte *)*pp;" (assignment_expression "pbVar2 = (byte *)*pp" identifier = (cast_expression "(byte *)*pp" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*pp" * identifier))) ;) (expression_statement "*pp = (char *)(pbVar2 + 1);" (assignment_expression "*pp = (char *)(pbVar2 + 1)" (pointer_expression "*pp" * identifier) = (cast_expression "(char *)(pbVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)(ch >> 6) | 0xc0;" (assignment_expression "*pbVar2 = (byte)(ch >> 6) | 0xc0" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)(ch >> 6) | 0xc0" (call_expression "(byte)(ch >> 6)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(ch >> 6)" ( (binary_expression "ch >> 6" identifier >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*pp;" (assignment_expression "pbVar2 = (byte *)*pp" identifier = (cast_expression "(byte *)*pp" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*pp" * identifier))) ;) (expression_statement "*pp = (char *)(pbVar2 + 1);" (assignment_expression "*pp = (char *)(pbVar2 + 1)" (pointer_expression "*pp" * identifier) = (cast_expression "(char *)(pbVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = bVar3 & 0x3f | 0x80;" (assignment_expression "*pbVar2 = bVar3 & 0x3f | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "bVar3 & 0x3f | 0x80" (binary_expression "bVar3 & 0x3f" identifier & number_literal) | number_literal)) ;) (return_statement "return;" return ;) })) (if_statement "if (ch < 0x10000) {\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)(ch >> 0xc) | 0xe0;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)((ch << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" if (parenthesized_expression "(ch < 0x10000)" ( (binary_expression "ch < 0x10000" identifier < number_literal) )) (compound_statement "{\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)(ch >> 0xc) | 0xe0;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)((ch << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" { (expression_statement "pbVar2 = (byte *)*pp;" (assignment_expression "pbVar2 = (byte *)*pp" identifier = (cast_expression "(byte *)*pp" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*pp" * identifier))) ;) (expression_statement "*pp = (char *)(pbVar2 + 1);" (assignment_expression "*pp = (char *)(pbVar2 + 1)" (pointer_expression "*pp" * identifier) = (cast_expression "(char *)(pbVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)(ch >> 0xc) | 0xe0;" (assignment_expression "*pbVar2 = (byte)(ch >> 0xc) | 0xe0" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)(ch >> 0xc) | 0xe0" (call_expression "(byte)(ch >> 0xc)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(ch >> 0xc)" ( (binary_expression "ch >> 0xc" identifier >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*pp;" (assignment_expression "pbVar2 = (byte *)*pp" identifier = (cast_expression "(byte *)*pp" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*pp" * identifier))) ;) (expression_statement "*pp = (char *)(pbVar2 + 1);" (assignment_expression "*pp = (char *)(pbVar2 + 1)" (pointer_expression "*pp" * identifier) = (cast_expression "(char *)(pbVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)((ch << 0x14) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((ch << 0x14) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)((ch << 0x14) >> 0x1a) | 0x80" (call_expression "(byte)((ch << 0x14) >> 0x1a)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((ch << 0x14) >> 0x1a)" ( (binary_expression "(ch << 0x14) >> 0x1a" (parenthesized_expression "(ch << 0x14)" ( (binary_expression "ch << 0x14" identifier << number_literal) )) >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*pp;" (assignment_expression "pbVar2 = (byte *)*pp" identifier = (cast_expression "(byte *)*pp" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*pp" * identifier))) ;) (expression_statement "*pp = (char *)(pbVar2 + 1);" (assignment_expression "*pp = (char *)(pbVar2 + 1)" (pointer_expression "*pp" * identifier) = (cast_expression "(char *)(pbVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = bVar3 & 0x3f | 0x80;" (assignment_expression "*pbVar2 = bVar3 & 0x3f | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "bVar3 & 0x3f | 0x80" (binary_expression "bVar3 & 0x3f" identifier & number_literal) | number_literal)) ;) (return_statement "return;" return ;) })) (if_statement "if (ch < 0x200000) {\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)(ch >> 0x12) | 0xf0;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)((ch << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)((ch << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" if (parenthesized_expression "(ch < 0x200000)" ( (binary_expression "ch < 0x200000" identifier < number_literal) )) (compound_statement "{\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)(ch >> 0x12) | 0xf0;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)((ch << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)((ch << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" { (expression_statement "pbVar2 = (byte *)*pp;" (assignment_expression "pbVar2 = (byte *)*pp" identifier = (cast_expression "(byte *)*pp" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*pp" * identifier))) ;) (expression_statement "*pp = (char *)(pbVar2 + 1);" (assignment_expression "*pp = (char *)(pbVar2 + 1)" (pointer_expression "*pp" * identifier) = (cast_expression "(char *)(pbVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)(ch >> 0x12) | 0xf0;" (assignment_expression "*pbVar2 = (byte)(ch >> 0x12) | 0xf0" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)(ch >> 0x12) | 0xf0" (call_expression "(byte)(ch >> 0x12)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(ch >> 0x12)" ( (binary_expression "ch >> 0x12" identifier >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*pp;" (assignment_expression "pbVar2 = (byte *)*pp" identifier = (cast_expression "(byte *)*pp" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*pp" * identifier))) ;) (expression_statement "*pp = (char *)(pbVar2 + 1);" (assignment_expression "*pp = (char *)(pbVar2 + 1)" (pointer_expression "*pp" * identifier) = (cast_expression "(char *)(pbVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)((ch << 0xe) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((ch << 0xe) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)((ch << 0xe) >> 0x1a) | 0x80" (call_expression "(byte)((ch << 0xe) >> 0x1a)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((ch << 0xe) >> 0x1a)" ( (binary_expression "(ch << 0xe) >> 0x1a" (parenthesized_expression "(ch << 0xe)" ( (binary_expression "ch << 0xe" identifier << number_literal) )) >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*pp;" (assignment_expression "pbVar2 = (byte *)*pp" identifier = (cast_expression "(byte *)*pp" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*pp" * identifier))) ;) (expression_statement "*pp = (char *)(pbVar2 + 1);" (assignment_expression "*pp = (char *)(pbVar2 + 1)" (pointer_expression "*pp" * identifier) = (cast_expression "(char *)(pbVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)((ch << 0x14) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((ch << 0x14) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)((ch << 0x14) >> 0x1a) | 0x80" (call_expression "(byte)((ch << 0x14) >> 0x1a)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((ch << 0x14) >> 0x1a)" ( (binary_expression "(ch << 0x14) >> 0x1a" (parenthesized_expression "(ch << 0x14)" ( (binary_expression "ch << 0x14" identifier << number_literal) )) >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*pp;" (assignment_expression "pbVar2 = (byte *)*pp" identifier = (cast_expression "(byte *)*pp" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*pp" * identifier))) ;) (expression_statement "*pp = (char *)(pbVar2 + 1);" (assignment_expression "*pp = (char *)(pbVar2 + 1)" (pointer_expression "*pp" * identifier) = (cast_expression "(char *)(pbVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = bVar3 & 0x3f | 0x80;" (assignment_expression "*pbVar2 = bVar3 & 0x3f | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "bVar3 & 0x3f | 0x80" (binary_expression "bVar3 & 0x3f" identifier & number_literal) | number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "bVar1 = (byte)(ch >> 0x10);" (assignment_expression "bVar1 = (byte)(ch >> 0x10)" identifier = (call_expression "(byte)(ch >> 0x10)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(ch >> 0x10)" ( (binary_expression "ch >> 0x10" identifier >> number_literal) )))) ;) (if_statement "if (ch < 0x4000000) {\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)(ch >> 0x18) | 0xf0;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = bVar1 >> 2 | 0x80;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)((ch << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)((ch << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" if (parenthesized_expression "(ch < 0x4000000)" ( (binary_expression "ch < 0x4000000" identifier < number_literal) )) (compound_statement "{\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)(ch >> 0x18) | 0xf0;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = bVar1 >> 2 | 0x80;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)((ch << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = (byte)((ch << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*pp;\n    *pp = (char *)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" { (expression_statement "pbVar2 = (byte *)*pp;" (assignment_expression "pbVar2 = (byte *)*pp" identifier = (cast_expression "(byte *)*pp" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*pp" * identifier))) ;) (expression_statement "*pp = (char *)(pbVar2 + 1);" (assignment_expression "*pp = (char *)(pbVar2 + 1)" (pointer_expression "*pp" * identifier) = (cast_expression "(char *)(pbVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)(ch >> 0x18) | 0xf0;" (assignment_expression "*pbVar2 = (byte)(ch >> 0x18) | 0xf0" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)(ch >> 0x18) | 0xf0" (call_expression "(byte)(ch >> 0x18)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(ch >> 0x18)" ( (binary_expression "ch >> 0x18" identifier >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*pp;" (assignment_expression "pbVar2 = (byte *)*pp" identifier = (cast_expression "(byte *)*pp" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*pp" * identifier))) ;) (expression_statement "*pp = (char *)(pbVar2 + 1);" (assignment_expression "*pp = (char *)(pbVar2 + 1)" (pointer_expression "*pp" * identifier) = (cast_expression "(char *)(pbVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = bVar1 >> 2 | 0x80;" (assignment_expression "*pbVar2 = bVar1 >> 2 | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "bVar1 >> 2 | 0x80" (binary_expression "bVar1 >> 2" identifier >> number_literal) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*pp;" (assignment_expression "pbVar2 = (byte *)*pp" identifier = (cast_expression "(byte *)*pp" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*pp" * identifier))) ;) (expression_statement "*pp = (char *)(pbVar2 + 1);" (assignment_expression "*pp = (char *)(pbVar2 + 1)" (pointer_expression "*pp" * identifier) = (cast_expression "(char *)(pbVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)((ch << 0xe) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((ch << 0xe) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)((ch << 0xe) >> 0x1a) | 0x80" (call_expression "(byte)((ch << 0xe) >> 0x1a)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((ch << 0xe) >> 0x1a)" ( (binary_expression "(ch << 0xe) >> 0x1a" (parenthesized_expression "(ch << 0xe)" ( (binary_expression "ch << 0xe" identifier << number_literal) )) >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*pp;" (assignment_expression "pbVar2 = (byte *)*pp" identifier = (cast_expression "(byte *)*pp" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*pp" * identifier))) ;) (expression_statement "*pp = (char *)(pbVar2 + 1);" (assignment_expression "*pp = (char *)(pbVar2 + 1)" (pointer_expression "*pp" * identifier) = (cast_expression "(char *)(pbVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)((ch << 0x14) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((ch << 0x14) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)((ch << 0x14) >> 0x1a) | 0x80" (call_expression "(byte)((ch << 0x14) >> 0x1a)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((ch << 0x14) >> 0x1a)" ( (binary_expression "(ch << 0x14) >> 0x1a" (parenthesized_expression "(ch << 0x14)" ( (binary_expression "ch << 0x14" identifier << number_literal) )) >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*pp;" (assignment_expression "pbVar2 = (byte *)*pp" identifier = (cast_expression "(byte *)*pp" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*pp" * identifier))) ;) (expression_statement "*pp = (char *)(pbVar2 + 1);" (assignment_expression "*pp = (char *)(pbVar2 + 1)" (pointer_expression "*pp" * identifier) = (cast_expression "(char *)(pbVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = bVar3 & 0x3f | 0x80;" (assignment_expression "*pbVar2 = bVar3 & 0x3f | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "bVar3 & 0x3f | 0x80" (binary_expression "bVar3 & 0x3f" identifier & number_literal) | number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "pbVar2 = (byte *)*pp;" (assignment_expression "pbVar2 = (byte *)*pp" identifier = (cast_expression "(byte *)*pp" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*pp" * identifier))) ;) (expression_statement "*pp = (char *)(pbVar2 + 1);" (assignment_expression "*pp = (char *)(pbVar2 + 1)" (pointer_expression "*pp" * identifier) = (cast_expression "(char *)(pbVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)((ch << 1) >> 0x1f) | 0xf0;" (assignment_expression "*pbVar2 = (byte)((ch << 1) >> 0x1f) | 0xf0" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)((ch << 1) >> 0x1f) | 0xf0" (call_expression "(byte)((ch << 1) >> 0x1f)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((ch << 1) >> 0x1f)" ( (binary_expression "(ch << 1) >> 0x1f" (parenthesized_expression "(ch << 1)" ( (binary_expression "ch << 1" identifier << number_literal) )) >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*pp;" (assignment_expression "pbVar2 = (byte *)*pp" identifier = (cast_expression "(byte *)*pp" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*pp" * identifier))) ;) (expression_statement "*pp = (char *)(pbVar2 + 1);" (assignment_expression "*pp = (char *)(pbVar2 + 1)" (pointer_expression "*pp" * identifier) = (cast_expression "(char *)(pbVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)((ch << 2) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((ch << 2) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)((ch << 2) >> 0x1a) | 0x80" (call_expression "(byte)((ch << 2) >> 0x1a)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((ch << 2) >> 0x1a)" ( (binary_expression "(ch << 2) >> 0x1a" (parenthesized_expression "(ch << 2)" ( (binary_expression "ch << 2" identifier << number_literal) )) >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*pp;" (assignment_expression "pbVar2 = (byte *)*pp" identifier = (cast_expression "(byte *)*pp" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*pp" * identifier))) ;) (expression_statement "*pp = (char *)(pbVar2 + 1);" (assignment_expression "*pp = (char *)(pbVar2 + 1)" (pointer_expression "*pp" * identifier) = (cast_expression "(char *)(pbVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = bVar1 >> 2 | 0x80;" (assignment_expression "*pbVar2 = bVar1 >> 2 | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "bVar1 >> 2 | 0x80" (binary_expression "bVar1 >> 2" identifier >> number_literal) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*pp;" (assignment_expression "pbVar2 = (byte *)*pp" identifier = (cast_expression "(byte *)*pp" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*pp" * identifier))) ;) (expression_statement "*pp = (char *)(pbVar2 + 1);" (assignment_expression "*pp = (char *)(pbVar2 + 1)" (pointer_expression "*pp" * identifier) = (cast_expression "(char *)(pbVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)((ch << 0xe) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((ch << 0xe) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)((ch << 0xe) >> 0x1a) | 0x80" (call_expression "(byte)((ch << 0xe) >> 0x1a)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((ch << 0xe) >> 0x1a)" ( (binary_expression "(ch << 0xe) >> 0x1a" (parenthesized_expression "(ch << 0xe)" ( (binary_expression "ch << 0xe" identifier << number_literal) )) >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*pp;" (assignment_expression "pbVar2 = (byte *)*pp" identifier = (cast_expression "(byte *)*pp" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*pp" * identifier))) ;) (expression_statement "*pp = (char *)(pbVar2 + 1);" (assignment_expression "*pp = (char *)(pbVar2 + 1)" (pointer_expression "*pp" * identifier) = (cast_expression "(char *)(pbVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)((ch << 0x14) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((ch << 0x14) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)((ch << 0x14) >> 0x1a) | 0x80" (call_expression "(byte)((ch << 0x14) >> 0x1a)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((ch << 0x14) >> 0x1a)" ( (binary_expression "(ch << 0x14) >> 0x1a" (parenthesized_expression "(ch << 0x14)" ( (binary_expression "ch << 0x14" identifier << number_literal) )) >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*pp;" (assignment_expression "pbVar2 = (byte *)*pp" identifier = (cast_expression "(byte *)*pp" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*pp" * identifier))) ;) (expression_statement "*pp = (char *)(pbVar2 + 1);" (assignment_expression "*pp = (char *)(pbVar2 + 1)" (pointer_expression "*pp" * identifier) = (cast_expression "(char *)(pbVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = bVar3 & 0x3f | 0x80;" (assignment_expression "*pbVar2 = bVar3 & 0x3f | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "bVar3 & 0x3f | 0x80" (binary_expression "bVar3 & 0x3f" identifier & number_literal) | number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void put_wchar(int *param_1,uint param_2)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  byte bVar3;\n  \n  bVar3 = (byte)param_2;\n  if ((*(int *)PTR_utf_mode_0004fe08 == 0) || (param_2 < 0x80)) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3;\n    return;\n  }\n  if (param_2 < 0x800) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 6) | 0xc0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  if (param_2 < 0x10000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0xc) | 0xe0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  if (param_2 < 0x200000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0x12) | 0xf0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  bVar1 = (byte)(param_2 >> 0x10);\n  if (param_2 < 0x4000000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0x18) | 0xf0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar1 >> 2 | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 1) >> 0x1f) | 0xf0;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 2) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = bVar1 >> 2 | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = bVar3 & 0x3f | 0x80;\n  return;\n}\n\n" (function_definition "void put_wchar(int *param_1,uint param_2)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  byte bVar3;\n  \n  bVar3 = (byte)param_2;\n  if ((*(int *)PTR_utf_mode_0004fe08 == 0) || (param_2 < 0x80)) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3;\n    return;\n  }\n  if (param_2 < 0x800) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 6) | 0xc0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  if (param_2 < 0x10000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0xc) | 0xe0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  if (param_2 < 0x200000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0x12) | 0xf0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  bVar1 = (byte)(param_2 >> 0x10);\n  if (param_2 < 0x4000000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0x18) | 0xf0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar1 >> 2 | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 1) >> 0x1f) | 0xf0;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 2) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = bVar1 >> 2 | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = bVar3 & 0x3f | 0x80;\n  return;\n}" primitive_type (function_declarator "put_wchar(int *param_1,uint param_2)" identifier (parameter_list "(int *param_1,uint param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  byte bVar3;\n  \n  bVar3 = (byte)param_2;\n  if ((*(int *)PTR_utf_mode_0004fe08 == 0) || (param_2 < 0x80)) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3;\n    return;\n  }\n  if (param_2 < 0x800) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 6) | 0xc0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  if (param_2 < 0x10000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0xc) | 0xe0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  if (param_2 < 0x200000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0x12) | 0xf0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  bVar1 = (byte)(param_2 >> 0x10);\n  if (param_2 < 0x4000000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0x18) | 0xf0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar1 >> 2 | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 1) >> 0x1f) | 0xf0;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 2) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = bVar1 >> 2 | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = bVar3 & 0x3f | 0x80;\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte bVar3;" type_identifier identifier ;) (expression_statement "bVar3 = (byte)param_2;" (assignment_expression "bVar3 = (byte)param_2" identifier = (cast_expression "(byte)param_2" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (if_statement "if ((*(int *)PTR_utf_mode_0004fe08 == 0) || (param_2 < 0x80)) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3;\n    return;\n  }" if (parenthesized_expression "((*(int *)PTR_utf_mode_0004fe08 == 0) || (param_2 < 0x80))" ( (binary_expression "(*(int *)PTR_utf_mode_0004fe08 == 0) || (param_2 < 0x80)" (parenthesized_expression "(*(int *)PTR_utf_mode_0004fe08 == 0)" ( (binary_expression "*(int *)PTR_utf_mode_0004fe08 == 0" (pointer_expression "*(int *)PTR_utf_mode_0004fe08" * (cast_expression "(int *)PTR_utf_mode_0004fe08" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) || (parenthesized_expression "(param_2 < 0x80)" ( (binary_expression "param_2 < 0x80" identifier < number_literal) ))) )) (compound_statement "{\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3;\n    return;\n  }" { (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = bVar3;" (assignment_expression "*pbVar2 = bVar3" (pointer_expression "*pbVar2" * identifier) = identifier) ;) (return_statement "return;" return ;) })) (if_statement "if (param_2 < 0x800) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 6) | 0xc0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" if (parenthesized_expression "(param_2 < 0x800)" ( (binary_expression "param_2 < 0x800" identifier < number_literal) )) (compound_statement "{\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 6) | 0xc0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" { (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)(param_2 >> 6) | 0xc0;" (assignment_expression "*pbVar2 = (byte)(param_2 >> 6) | 0xc0" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)(param_2 >> 6) | 0xc0" (call_expression "(byte)(param_2 >> 6)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(param_2 >> 6)" ( (binary_expression "param_2 >> 6" identifier >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = bVar3 & 0x3f | 0x80;" (assignment_expression "*pbVar2 = bVar3 & 0x3f | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "bVar3 & 0x3f | 0x80" (binary_expression "bVar3 & 0x3f" identifier & number_literal) | number_literal)) ;) (return_statement "return;" return ;) })) (if_statement "if (param_2 < 0x10000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0xc) | 0xe0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" if (parenthesized_expression "(param_2 < 0x10000)" ( (binary_expression "param_2 < 0x10000" identifier < number_literal) )) (compound_statement "{\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0xc) | 0xe0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" { (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)(param_2 >> 0xc) | 0xe0;" (assignment_expression "*pbVar2 = (byte)(param_2 >> 0xc) | 0xe0" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)(param_2 >> 0xc) | 0xe0" (call_expression "(byte)(param_2 >> 0xc)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(param_2 >> 0xc)" ( (binary_expression "param_2 >> 0xc" identifier >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)((param_2 << 0x14) >> 0x1a) | 0x80" (call_expression "(byte)((param_2 << 0x14) >> 0x1a)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((param_2 << 0x14) >> 0x1a)" ( (binary_expression "(param_2 << 0x14) >> 0x1a" (parenthesized_expression "(param_2 << 0x14)" ( (binary_expression "param_2 << 0x14" identifier << number_literal) )) >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = bVar3 & 0x3f | 0x80;" (assignment_expression "*pbVar2 = bVar3 & 0x3f | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "bVar3 & 0x3f | 0x80" (binary_expression "bVar3 & 0x3f" identifier & number_literal) | number_literal)) ;) (return_statement "return;" return ;) })) (if_statement "if (param_2 < 0x200000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0x12) | 0xf0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" if (parenthesized_expression "(param_2 < 0x200000)" ( (binary_expression "param_2 < 0x200000" identifier < number_literal) )) (compound_statement "{\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0x12) | 0xf0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" { (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)(param_2 >> 0x12) | 0xf0;" (assignment_expression "*pbVar2 = (byte)(param_2 >> 0x12) | 0xf0" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)(param_2 >> 0x12) | 0xf0" (call_expression "(byte)(param_2 >> 0x12)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(param_2 >> 0x12)" ( (binary_expression "param_2 >> 0x12" identifier >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)((param_2 << 0xe) >> 0x1a) | 0x80" (call_expression "(byte)((param_2 << 0xe) >> 0x1a)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((param_2 << 0xe) >> 0x1a)" ( (binary_expression "(param_2 << 0xe) >> 0x1a" (parenthesized_expression "(param_2 << 0xe)" ( (binary_expression "param_2 << 0xe" identifier << number_literal) )) >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)((param_2 << 0x14) >> 0x1a) | 0x80" (call_expression "(byte)((param_2 << 0x14) >> 0x1a)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((param_2 << 0x14) >> 0x1a)" ( (binary_expression "(param_2 << 0x14) >> 0x1a" (parenthesized_expression "(param_2 << 0x14)" ( (binary_expression "param_2 << 0x14" identifier << number_literal) )) >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = bVar3 & 0x3f | 0x80;" (assignment_expression "*pbVar2 = bVar3 & 0x3f | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "bVar3 & 0x3f | 0x80" (binary_expression "bVar3 & 0x3f" identifier & number_literal) | number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "bVar1 = (byte)(param_2 >> 0x10);" (assignment_expression "bVar1 = (byte)(param_2 >> 0x10)" identifier = (call_expression "(byte)(param_2 >> 0x10)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(param_2 >> 0x10)" ( (binary_expression "param_2 >> 0x10" identifier >> number_literal) )))) ;) (if_statement "if (param_2 < 0x4000000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0x18) | 0xf0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar1 >> 2 | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" if (parenthesized_expression "(param_2 < 0x4000000)" ( (binary_expression "param_2 < 0x4000000" identifier < number_literal) )) (compound_statement "{\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0x18) | 0xf0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar1 >> 2 | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" { (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)(param_2 >> 0x18) | 0xf0;" (assignment_expression "*pbVar2 = (byte)(param_2 >> 0x18) | 0xf0" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)(param_2 >> 0x18) | 0xf0" (call_expression "(byte)(param_2 >> 0x18)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(param_2 >> 0x18)" ( (binary_expression "param_2 >> 0x18" identifier >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = bVar1 >> 2 | 0x80;" (assignment_expression "*pbVar2 = bVar1 >> 2 | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "bVar1 >> 2 | 0x80" (binary_expression "bVar1 >> 2" identifier >> number_literal) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)((param_2 << 0xe) >> 0x1a) | 0x80" (call_expression "(byte)((param_2 << 0xe) >> 0x1a)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((param_2 << 0xe) >> 0x1a)" ( (binary_expression "(param_2 << 0xe) >> 0x1a" (parenthesized_expression "(param_2 << 0xe)" ( (binary_expression "param_2 << 0xe" identifier << number_literal) )) >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)((param_2 << 0x14) >> 0x1a) | 0x80" (call_expression "(byte)((param_2 << 0x14) >> 0x1a)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((param_2 << 0x14) >> 0x1a)" ( (binary_expression "(param_2 << 0x14) >> 0x1a" (parenthesized_expression "(param_2 << 0x14)" ( (binary_expression "param_2 << 0x14" identifier << number_literal) )) >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = bVar3 & 0x3f | 0x80;" (assignment_expression "*pbVar2 = bVar3 & 0x3f | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "bVar3 & 0x3f | 0x80" (binary_expression "bVar3 & 0x3f" identifier & number_literal) | number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)((param_2 << 1) >> 0x1f) | 0xf0;" (assignment_expression "*pbVar2 = (byte)((param_2 << 1) >> 0x1f) | 0xf0" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)((param_2 << 1) >> 0x1f) | 0xf0" (call_expression "(byte)((param_2 << 1) >> 0x1f)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((param_2 << 1) >> 0x1f)" ( (binary_expression "(param_2 << 1) >> 0x1f" (parenthesized_expression "(param_2 << 1)" ( (binary_expression "param_2 << 1" identifier << number_literal) )) >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)((param_2 << 2) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((param_2 << 2) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)((param_2 << 2) >> 0x1a) | 0x80" (call_expression "(byte)((param_2 << 2) >> 0x1a)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((param_2 << 2) >> 0x1a)" ( (binary_expression "(param_2 << 2) >> 0x1a" (parenthesized_expression "(param_2 << 2)" ( (binary_expression "param_2 << 2" identifier << number_literal) )) >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = bVar1 >> 2 | 0x80;" (assignment_expression "*pbVar2 = bVar1 >> 2 | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "bVar1 >> 2 | 0x80" (binary_expression "bVar1 >> 2" identifier >> number_literal) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)((param_2 << 0xe) >> 0x1a) | 0x80" (call_expression "(byte)((param_2 << 0xe) >> 0x1a)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((param_2 << 0xe) >> 0x1a)" ( (binary_expression "(param_2 << 0xe) >> 0x1a" (parenthesized_expression "(param_2 << 0xe)" ( (binary_expression "param_2 << 0xe" identifier << number_literal) )) >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "(byte)((param_2 << 0x14) >> 0x1a) | 0x80" (call_expression "(byte)((param_2 << 0x14) >> 0x1a)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((param_2 << 0x14) >> 0x1a)" ( (binary_expression "(param_2 << 0x14) >> 0x1a" (parenthesized_expression "(param_2 << 0x14)" ( (binary_expression "param_2 << 0x14" identifier << number_literal) )) >> number_literal) ))) | number_literal)) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pbVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*pbVar2 = bVar3 & 0x3f | 0x80;" (assignment_expression "*pbVar2 = bVar3 & 0x3f | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "bVar3 & 0x3f | 0x80" (binary_expression "bVar3 & 0x3f" identifier & number_literal) | number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) == LIT) )) || (parenthesized_expression ( (binary_expression IDENT < LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) ))) | LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression IDENT & LIT) | LIT)) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) ))) | LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT << LIT) )) >> LIT) ))) | LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression IDENT & LIT) | LIT)) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) ))) | LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT << LIT) )) >> LIT) ))) | LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT << LIT) )) >> LIT) ))) | LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression IDENT & LIT) | LIT)) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) ))) | LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression IDENT >> LIT) | LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT << LIT) )) >> LIT) ))) | LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT << LIT) )) >> LIT) ))) | LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression IDENT & LIT) | LIT)) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT << LIT) )) >> LIT) ))) | LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT << LIT) )) >> LIT) ))) | LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression IDENT >> LIT) | LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT << LIT) )) >> LIT) ))) | LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT << LIT) )) >> LIT) ))) | LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression IDENT & LIT) | LIT)) ;) (return_statement return ;) })))
(function_definition "void put_wchar(int *param_1,uint param_2)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  byte bVar3;\n  \n  bVar3 = (byte)param_2;\n  if ((*(int *)PTR_utf_mode_0004fe08 == 0) || (param_2 < 0x80)) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3;\n    return;\n  }\n  if (param_2 < 0x800) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 6) | 0xc0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  if (param_2 < 0x10000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0xc) | 0xe0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  if (param_2 < 0x200000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0x12) | 0xf0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  bVar1 = (byte)(param_2 >> 0x10);\n  if (param_2 < 0x4000000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0x18) | 0xf0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar1 >> 2 | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 1) >> 0x1f) | 0xf0;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 2) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = bVar1 >> 2 | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = bVar3 & 0x3f | 0x80;\n  return;\n}" (primitive_type "void") (function_declarator "put_wchar(int *param_1,uint param_2)" (identifier "put_wchar") (parameter_list "(int *param_1,uint param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  byte bVar3;\n  \n  bVar3 = (byte)param_2;\n  if ((*(int *)PTR_utf_mode_0004fe08 == 0) || (param_2 < 0x80)) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3;\n    return;\n  }\n  if (param_2 < 0x800) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 6) | 0xc0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  if (param_2 < 0x10000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0xc) | 0xe0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  if (param_2 < 0x200000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0x12) | 0xf0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  bVar1 = (byte)(param_2 >> 0x10);\n  if (param_2 < 0x4000000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0x18) | 0xf0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar1 >> 2 | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 1) >> 0x1f) | 0xf0;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 2) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = bVar1 >> 2 | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n  pbVar2 = (byte *)*param_1;\n  *param_1 = (int)(pbVar2 + 1);\n  *pbVar2 = bVar3 & 0x3f | 0x80;\n  return;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "byte bVar3;" (type_identifier "byte") (identifier "bVar3") (; ";")) (expression_statement "bVar3 = (byte)param_2;" (assignment_expression "bVar3 = (byte)param_2" (identifier "bVar3") (= "=") (cast_expression "(byte)param_2" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "param_2"))) (; ";")) (if_statement "if ((*(int *)PTR_utf_mode_0004fe08 == 0) || (param_2 < 0x80)) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3;\n    return;\n  }" (if "if") (parenthesized_expression "((*(int *)PTR_utf_mode_0004fe08 == 0) || (param_2 < 0x80))" (( "(") (binary_expression "(*(int *)PTR_utf_mode_0004fe08 == 0) || (param_2 < 0x80)" (parenthesized_expression "(*(int *)PTR_utf_mode_0004fe08 == 0)" (( "(") (binary_expression "*(int *)PTR_utf_mode_0004fe08 == 0" (pointer_expression "*(int *)PTR_utf_mode_0004fe08" (* "*") (cast_expression "(int *)PTR_utf_mode_0004fe08" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_utf_mode_0004fe08"))) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(param_2 < 0x80)" (( "(") (binary_expression "param_2 < 0x80" (identifier "param_2") (< "<") (number_literal "0x80")) () ")"))) () ")")) (compound_statement "{\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3;\n    return;\n  }" ({ "{") (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" (identifier "pbVar2") (= "=") (cast_expression "(byte *)*param_1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pbVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pbVar2 + 1)" (( "(") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pbVar2 = bVar3;" (assignment_expression "*pbVar2 = bVar3" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (= "=") (identifier "bVar3")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (param_2 < 0x800) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 6) | 0xc0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 < 0x800)" (( "(") (binary_expression "param_2 < 0x800" (identifier "param_2") (< "<") (number_literal "0x800")) () ")")) (compound_statement "{\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 6) | 0xc0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" ({ "{") (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" (identifier "pbVar2") (= "=") (cast_expression "(byte *)*param_1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pbVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pbVar2 + 1)" (( "(") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pbVar2 = (byte)(param_2 >> 6) | 0xc0;" (assignment_expression "*pbVar2 = (byte)(param_2 >> 6) | 0xc0" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (= "=") (binary_expression "(byte)(param_2 >> 6) | 0xc0" (call_expression "(byte)(param_2 >> 6)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(param_2 >> 6)" (( "(") (binary_expression "param_2 >> 6" (identifier "param_2") (>> ">>") (number_literal "6")) () ")"))) (| "|") (number_literal "0xc0"))) (; ";")) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" (identifier "pbVar2") (= "=") (cast_expression "(byte *)*param_1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pbVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pbVar2 + 1)" (( "(") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pbVar2 = bVar3 & 0x3f | 0x80;" (assignment_expression "*pbVar2 = bVar3 & 0x3f | 0x80" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (= "=") (binary_expression "bVar3 & 0x3f | 0x80" (binary_expression "bVar3 & 0x3f" (identifier "bVar3") (& "&") (number_literal "0x3f")) (| "|") (number_literal "0x80"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (param_2 < 0x10000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0xc) | 0xe0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 < 0x10000)" (( "(") (binary_expression "param_2 < 0x10000" (identifier "param_2") (< "<") (number_literal "0x10000")) () ")")) (compound_statement "{\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0xc) | 0xe0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" ({ "{") (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" (identifier "pbVar2") (= "=") (cast_expression "(byte *)*param_1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pbVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pbVar2 + 1)" (( "(") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pbVar2 = (byte)(param_2 >> 0xc) | 0xe0;" (assignment_expression "*pbVar2 = (byte)(param_2 >> 0xc) | 0xe0" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (= "=") (binary_expression "(byte)(param_2 >> 0xc) | 0xe0" (call_expression "(byte)(param_2 >> 0xc)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(param_2 >> 0xc)" (( "(") (binary_expression "param_2 >> 0xc" (identifier "param_2") (>> ">>") (number_literal "0xc")) () ")"))) (| "|") (number_literal "0xe0"))) (; ";")) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" (identifier "pbVar2") (= "=") (cast_expression "(byte *)*param_1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pbVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pbVar2 + 1)" (( "(") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (= "=") (binary_expression "(byte)((param_2 << 0x14) >> 0x1a) | 0x80" (call_expression "(byte)((param_2 << 0x14) >> 0x1a)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "((param_2 << 0x14) >> 0x1a)" (( "(") (binary_expression "(param_2 << 0x14) >> 0x1a" (parenthesized_expression "(param_2 << 0x14)" (( "(") (binary_expression "param_2 << 0x14" (identifier "param_2") (<< "<<") (number_literal "0x14")) () ")")) (>> ">>") (number_literal "0x1a")) () ")"))) (| "|") (number_literal "0x80"))) (; ";")) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" (identifier "pbVar2") (= "=") (cast_expression "(byte *)*param_1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pbVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pbVar2 + 1)" (( "(") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pbVar2 = bVar3 & 0x3f | 0x80;" (assignment_expression "*pbVar2 = bVar3 & 0x3f | 0x80" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (= "=") (binary_expression "bVar3 & 0x3f | 0x80" (binary_expression "bVar3 & 0x3f" (identifier "bVar3") (& "&") (number_literal "0x3f")) (| "|") (number_literal "0x80"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (param_2 < 0x200000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0x12) | 0xf0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 < 0x200000)" (( "(") (binary_expression "param_2 < 0x200000" (identifier "param_2") (< "<") (number_literal "0x200000")) () ")")) (compound_statement "{\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0x12) | 0xf0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" ({ "{") (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" (identifier "pbVar2") (= "=") (cast_expression "(byte *)*param_1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pbVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pbVar2 + 1)" (( "(") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pbVar2 = (byte)(param_2 >> 0x12) | 0xf0;" (assignment_expression "*pbVar2 = (byte)(param_2 >> 0x12) | 0xf0" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (= "=") (binary_expression "(byte)(param_2 >> 0x12) | 0xf0" (call_expression "(byte)(param_2 >> 0x12)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(param_2 >> 0x12)" (( "(") (binary_expression "param_2 >> 0x12" (identifier "param_2") (>> ">>") (number_literal "0x12")) () ")"))) (| "|") (number_literal "0xf0"))) (; ";")) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" (identifier "pbVar2") (= "=") (cast_expression "(byte *)*param_1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pbVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pbVar2 + 1)" (( "(") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (= "=") (binary_expression "(byte)((param_2 << 0xe) >> 0x1a) | 0x80" (call_expression "(byte)((param_2 << 0xe) >> 0x1a)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "((param_2 << 0xe) >> 0x1a)" (( "(") (binary_expression "(param_2 << 0xe) >> 0x1a" (parenthesized_expression "(param_2 << 0xe)" (( "(") (binary_expression "param_2 << 0xe" (identifier "param_2") (<< "<<") (number_literal "0xe")) () ")")) (>> ">>") (number_literal "0x1a")) () ")"))) (| "|") (number_literal "0x80"))) (; ";")) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" (identifier "pbVar2") (= "=") (cast_expression "(byte *)*param_1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pbVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pbVar2 + 1)" (( "(") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (= "=") (binary_expression "(byte)((param_2 << 0x14) >> 0x1a) | 0x80" (call_expression "(byte)((param_2 << 0x14) >> 0x1a)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "((param_2 << 0x14) >> 0x1a)" (( "(") (binary_expression "(param_2 << 0x14) >> 0x1a" (parenthesized_expression "(param_2 << 0x14)" (( "(") (binary_expression "param_2 << 0x14" (identifier "param_2") (<< "<<") (number_literal "0x14")) () ")")) (>> ">>") (number_literal "0x1a")) () ")"))) (| "|") (number_literal "0x80"))) (; ";")) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" (identifier "pbVar2") (= "=") (cast_expression "(byte *)*param_1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pbVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pbVar2 + 1)" (( "(") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pbVar2 = bVar3 & 0x3f | 0x80;" (assignment_expression "*pbVar2 = bVar3 & 0x3f | 0x80" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (= "=") (binary_expression "bVar3 & 0x3f | 0x80" (binary_expression "bVar3 & 0x3f" (identifier "bVar3") (& "&") (number_literal "0x3f")) (| "|") (number_literal "0x80"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "bVar1 = (byte)(param_2 >> 0x10);" (assignment_expression "bVar1 = (byte)(param_2 >> 0x10)" (identifier "bVar1") (= "=") (call_expression "(byte)(param_2 >> 0x10)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(param_2 >> 0x10)" (( "(") (binary_expression "param_2 >> 0x10" (identifier "param_2") (>> ">>") (number_literal "0x10")) () ")")))) (; ";")) (if_statement "if (param_2 < 0x4000000) {\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0x18) | 0xf0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar1 >> 2 | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 < 0x4000000)" (( "(") (binary_expression "param_2 < 0x4000000" (identifier "param_2") (< "<") (number_literal "0x4000000")) () ")")) (compound_statement "{\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)(param_2 >> 0x18) | 0xf0;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar1 >> 2 | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;\n    pbVar2 = (byte *)*param_1;\n    *param_1 = (int)(pbVar2 + 1);\n    *pbVar2 = bVar3 & 0x3f | 0x80;\n    return;\n  }" ({ "{") (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" (identifier "pbVar2") (= "=") (cast_expression "(byte *)*param_1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pbVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pbVar2 + 1)" (( "(") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pbVar2 = (byte)(param_2 >> 0x18) | 0xf0;" (assignment_expression "*pbVar2 = (byte)(param_2 >> 0x18) | 0xf0" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (= "=") (binary_expression "(byte)(param_2 >> 0x18) | 0xf0" (call_expression "(byte)(param_2 >> 0x18)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(param_2 >> 0x18)" (( "(") (binary_expression "param_2 >> 0x18" (identifier "param_2") (>> ">>") (number_literal "0x18")) () ")"))) (| "|") (number_literal "0xf0"))) (; ";")) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" (identifier "pbVar2") (= "=") (cast_expression "(byte *)*param_1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pbVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pbVar2 + 1)" (( "(") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pbVar2 = bVar1 >> 2 | 0x80;" (assignment_expression "*pbVar2 = bVar1 >> 2 | 0x80" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (= "=") (binary_expression "bVar1 >> 2 | 0x80" (binary_expression "bVar1 >> 2" (identifier "bVar1") (>> ">>") (number_literal "2")) (| "|") (number_literal "0x80"))) (; ";")) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" (identifier "pbVar2") (= "=") (cast_expression "(byte *)*param_1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pbVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pbVar2 + 1)" (( "(") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (= "=") (binary_expression "(byte)((param_2 << 0xe) >> 0x1a) | 0x80" (call_expression "(byte)((param_2 << 0xe) >> 0x1a)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "((param_2 << 0xe) >> 0x1a)" (( "(") (binary_expression "(param_2 << 0xe) >> 0x1a" (parenthesized_expression "(param_2 << 0xe)" (( "(") (binary_expression "param_2 << 0xe" (identifier "param_2") (<< "<<") (number_literal "0xe")) () ")")) (>> ">>") (number_literal "0x1a")) () ")"))) (| "|") (number_literal "0x80"))) (; ";")) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" (identifier "pbVar2") (= "=") (cast_expression "(byte *)*param_1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pbVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pbVar2 + 1)" (( "(") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (= "=") (binary_expression "(byte)((param_2 << 0x14) >> 0x1a) | 0x80" (call_expression "(byte)((param_2 << 0x14) >> 0x1a)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "((param_2 << 0x14) >> 0x1a)" (( "(") (binary_expression "(param_2 << 0x14) >> 0x1a" (parenthesized_expression "(param_2 << 0x14)" (( "(") (binary_expression "param_2 << 0x14" (identifier "param_2") (<< "<<") (number_literal "0x14")) () ")")) (>> ">>") (number_literal "0x1a")) () ")"))) (| "|") (number_literal "0x80"))) (; ";")) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" (identifier "pbVar2") (= "=") (cast_expression "(byte *)*param_1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pbVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pbVar2 + 1)" (( "(") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pbVar2 = bVar3 & 0x3f | 0x80;" (assignment_expression "*pbVar2 = bVar3 & 0x3f | 0x80" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (= "=") (binary_expression "bVar3 & 0x3f | 0x80" (binary_expression "bVar3 & 0x3f" (identifier "bVar3") (& "&") (number_literal "0x3f")) (| "|") (number_literal "0x80"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" (identifier "pbVar2") (= "=") (cast_expression "(byte *)*param_1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pbVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pbVar2 + 1)" (( "(") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pbVar2 = (byte)((param_2 << 1) >> 0x1f) | 0xf0;" (assignment_expression "*pbVar2 = (byte)((param_2 << 1) >> 0x1f) | 0xf0" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (= "=") (binary_expression "(byte)((param_2 << 1) >> 0x1f) | 0xf0" (call_expression "(byte)((param_2 << 1) >> 0x1f)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "((param_2 << 1) >> 0x1f)" (( "(") (binary_expression "(param_2 << 1) >> 0x1f" (parenthesized_expression "(param_2 << 1)" (( "(") (binary_expression "param_2 << 1" (identifier "param_2") (<< "<<") (number_literal "1")) () ")")) (>> ">>") (number_literal "0x1f")) () ")"))) (| "|") (number_literal "0xf0"))) (; ";")) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" (identifier "pbVar2") (= "=") (cast_expression "(byte *)*param_1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pbVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pbVar2 + 1)" (( "(") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pbVar2 = (byte)((param_2 << 2) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((param_2 << 2) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (= "=") (binary_expression "(byte)((param_2 << 2) >> 0x1a) | 0x80" (call_expression "(byte)((param_2 << 2) >> 0x1a)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "((param_2 << 2) >> 0x1a)" (( "(") (binary_expression "(param_2 << 2) >> 0x1a" (parenthesized_expression "(param_2 << 2)" (( "(") (binary_expression "param_2 << 2" (identifier "param_2") (<< "<<") (number_literal "2")) () ")")) (>> ">>") (number_literal "0x1a")) () ")"))) (| "|") (number_literal "0x80"))) (; ";")) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" (identifier "pbVar2") (= "=") (cast_expression "(byte *)*param_1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pbVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pbVar2 + 1)" (( "(") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pbVar2 = bVar1 >> 2 | 0x80;" (assignment_expression "*pbVar2 = bVar1 >> 2 | 0x80" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (= "=") (binary_expression "bVar1 >> 2 | 0x80" (binary_expression "bVar1 >> 2" (identifier "bVar1") (>> ">>") (number_literal "2")) (| "|") (number_literal "0x80"))) (; ";")) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" (identifier "pbVar2") (= "=") (cast_expression "(byte *)*param_1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pbVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pbVar2 + 1)" (( "(") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (= "=") (binary_expression "(byte)((param_2 << 0xe) >> 0x1a) | 0x80" (call_expression "(byte)((param_2 << 0xe) >> 0x1a)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "((param_2 << 0xe) >> 0x1a)" (( "(") (binary_expression "(param_2 << 0xe) >> 0x1a" (parenthesized_expression "(param_2 << 0xe)" (( "(") (binary_expression "param_2 << 0xe" (identifier "param_2") (<< "<<") (number_literal "0xe")) () ")")) (>> ">>") (number_literal "0x1a")) () ")"))) (| "|") (number_literal "0x80"))) (; ";")) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" (identifier "pbVar2") (= "=") (cast_expression "(byte *)*param_1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pbVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pbVar2 + 1)" (( "(") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;" (assignment_expression "*pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (= "=") (binary_expression "(byte)((param_2 << 0x14) >> 0x1a) | 0x80" (call_expression "(byte)((param_2 << 0x14) >> 0x1a)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "((param_2 << 0x14) >> 0x1a)" (( "(") (binary_expression "(param_2 << 0x14) >> 0x1a" (parenthesized_expression "(param_2 << 0x14)" (( "(") (binary_expression "param_2 << 0x14" (identifier "param_2") (<< "<<") (number_literal "0x14")) () ")")) (>> ">>") (number_literal "0x1a")) () ")"))) (| "|") (number_literal "0x80"))) (; ";")) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" (identifier "pbVar2") (= "=") (cast_expression "(byte *)*param_1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "*param_1 = (int)(pbVar2 + 1);" (assignment_expression "*param_1 = (int)(pbVar2 + 1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pbVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pbVar2 + 1)" (( "(") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*pbVar2 = bVar3 & 0x3f | 0x80;" (assignment_expression "*pbVar2 = bVar3 & 0x3f | 0x80" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (= "=") (binary_expression "bVar3 & 0x3f | 0x80" (binary_expression "bVar3 & 0x3f" (identifier "bVar3") (& "&") (number_literal "0x3f")) (| "|") (number_literal "0x80"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(char **pp,type_1 var_1)

{
  type_2 var_4;
  type_2 *var_2;
  type_2 var_3;
  
  var_3 = (type_2)var_1;
  if ((*(int *)PTR_utf_mode_0004fe08 == 0) || (var_1 < 0x80)) {
    var_2 = (type_2 *)*pp;
    *pp = (char *)(var_2 + 1);
    *var_2 = var_3;
    return;
  }
  if (var_1 < 0x800) {
    var_2 = (type_2 *)*pp;
    *pp = (char *)(var_2 + 1);
    *var_2 = (type_2)(var_1 >> 6) | 0xc0;
    var_2 = (type_2 *)*pp;
    *pp = (char *)(var_2 + 1);
    *var_2 = var_3 & 0x3f | 0x80;
    return;
  }
  if (var_1 < 0x10000) {
    var_2 = (type_2 *)*pp;
    *pp = (char *)(var_2 + 1);
    *var_2 = (type_2)(var_1 >> 0xc) | 0xe0;
    var_2 = (type_2 *)*pp;
    *pp = (char *)(var_2 + 1);
    *var_2 = (type_2)((var_1 << 0x14) >> 0x1a) | 0x80;
    var_2 = (type_2 *)*pp;
    *pp = (char *)(var_2 + 1);
    *var_2 = var_3 & 0x3f | 0x80;
    return;
  }
  if (var_1 < 0x200000) {
    var_2 = (type_2 *)*pp;
    *pp = (char *)(var_2 + 1);
    *var_2 = (type_2)(var_1 >> 0x12) | 0xf0;
    var_2 = (type_2 *)*pp;
    *pp = (char *)(var_2 + 1);
    *var_2 = (type_2)((var_1 << 0xe) >> 0x1a) | 0x80;
    var_2 = (type_2 *)*pp;
    *pp = (char *)(var_2 + 1);
    *var_2 = (type_2)((var_1 << 0x14) >> 0x1a) | 0x80;
    var_2 = (type_2 *)*pp;
    *pp = (char *)(var_2 + 1);
    *var_2 = var_3 & 0x3f | 0x80;
    return;
  }
  var_4 = (type_2)(var_1 >> 0x10);
  if (var_1 < 0x4000000) {
    var_2 = (type_2 *)*pp;
    *pp = (char *)(var_2 + 1);
    *var_2 = (type_2)(var_1 >> 0x18) | 0xf0;
    var_2 = (type_2 *)*pp;
    *pp = (char *)(var_2 + 1);
    *var_2 = var_4 >> 2 | 0x80;
    var_2 = (type_2 *)*pp;
    *pp = (char *)(var_2 + 1);
    *var_2 = (type_2)((var_1 << 0xe) >> 0x1a) | 0x80;
    var_2 = (type_2 *)*pp;
    *pp = (char *)(var_2 + 1);
    *var_2 = (type_2)((var_1 << 0x14) >> 0x1a) | 0x80;
    var_2 = (type_2 *)*pp;
    *pp = (char *)(var_2 + 1);
    *var_2 = var_3 & 0x3f | 0x80;
    return;
  }
  var_2 = (type_2 *)*pp;
  *pp = (char *)(var_2 + 1);
  *var_2 = (type_2)((var_1 << 1) >> 0x1f) | 0xf0;
  var_2 = (type_2 *)*pp;
  *pp = (char *)(var_2 + 1);
  *var_2 = (type_2)((var_1 << 2) >> 0x1a) | 0x80;
  var_2 = (type_2 *)*pp;
  *pp = (char *)(var_2 + 1);
  *var_2 = var_4 >> 2 | 0x80;
  var_2 = (type_2 *)*pp;
  *pp = (char *)(var_2 + 1);
  *var_2 = (type_2)((var_1 << 0xe) >> 0x1a) | 0x80;
  var_2 = (type_2 *)*pp;
  *pp = (char *)(var_2 + 1);
  *var_2 = (type_2)((var_1 << 0x14) >> 0x1a) | 0x80;
  var_2 = (type_2 *)*pp;
  *pp = (char *)(var_2 + 1);
  *var_2 = var_3 & 0x3f | 0x80;
  return;
}


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

void MASKED(int *param_1,uint param_2)

{
  byte bVar1;
  byte *pbVar2;
  byte bVar3;
  
  bVar3 = (byte)param_2;
  if ((*(int *)PTR_utf_mode_0004fe08 == 0) || (param_2 < 0x80)) {
    pbVar2 = (byte *)*param_1;
    *param_1 = (int)(pbVar2 + 1);
    *pbVar2 = bVar3;
    return;
  }
  if (param_2 < 0x800) {
    pbVar2 = (byte *)*param_1;
    *param_1 = (int)(pbVar2 + 1);
    *pbVar2 = (byte)(param_2 >> 6) | 0xc0;
    pbVar2 = (byte *)*param_1;
    *param_1 = (int)(pbVar2 + 1);
    *pbVar2 = bVar3 & 0x3f | 0x80;
    return;
  }
  if (param_2 < 0x10000) {
    pbVar2 = (byte *)*param_1;
    *param_1 = (int)(pbVar2 + 1);
    *pbVar2 = (byte)(param_2 >> 0xc) | 0xe0;
    pbVar2 = (byte *)*param_1;
    *param_1 = (int)(pbVar2 + 1);
    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;
    pbVar2 = (byte *)*param_1;
    *param_1 = (int)(pbVar2 + 1);
    *pbVar2 = bVar3 & 0x3f | 0x80;
    return;
  }
  if (param_2 < 0x200000) {
    pbVar2 = (byte *)*param_1;
    *param_1 = (int)(pbVar2 + 1);
    *pbVar2 = (byte)(param_2 >> 0x12) | 0xf0;
    pbVar2 = (byte *)*param_1;
    *param_1 = (int)(pbVar2 + 1);
    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;
    pbVar2 = (byte *)*param_1;
    *param_1 = (int)(pbVar2 + 1);
    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;
    pbVar2 = (byte *)*param_1;
    *param_1 = (int)(pbVar2 + 1);
    *pbVar2 = bVar3 & 0x3f | 0x80;
    return;
  }
  bVar1 = (byte)(param_2 >> 0x10);
  if (param_2 < 0x4000000) {
    pbVar2 = (byte *)*param_1;
    *param_1 = (int)(pbVar2 + 1);
    *pbVar2 = (byte)(param_2 >> 0x18) | 0xf0;
    pbVar2 = (byte *)*param_1;
    *param_1 = (int)(pbVar2 + 1);
    *pbVar2 = bVar1 >> 2 | 0x80;
    pbVar2 = (byte *)*param_1;
    *param_1 = (int)(pbVar2 + 1);
    *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;
    pbVar2 = (byte *)*param_1;
    *param_1 = (int)(pbVar2 + 1);
    *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;
    pbVar2 = (byte *)*param_1;
    *param_1 = (int)(pbVar2 + 1);
    *pbVar2 = bVar3 & 0x3f | 0x80;
    return;
  }
  pbVar2 = (byte *)*param_1;
  *param_1 = (int)(pbVar2 + 1);
  *pbVar2 = (byte)((param_2 << 1) >> 0x1f) | 0xf0;
  pbVar2 = (byte *)*param_1;
  *param_1 = (int)(pbVar2 + 1);
  *pbVar2 = (byte)((param_2 << 2) >> 0x1a) | 0x80;
  pbVar2 = (byte *)*param_1;
  *param_1 = (int)(pbVar2 + 1);
  *pbVar2 = bVar1 >> 2 | 0x80;
  pbVar2 = (byte *)*param_1;
  *param_1 = (int)(pbVar2 + 1);
  *pbVar2 = (byte)((param_2 << 0xe) >> 0x1a) | 0x80;
  pbVar2 = (byte *)*param_1;
  *param_1 = (int)(pbVar2 + 1);
  *pbVar2 = (byte)((param_2 << 0x14) >> 0x1a) | 0x80;
  pbVar2 = (byte *)*param_1;
  *param_1 = (int)(pbVar2 + 1);
  *pbVar2 = bVar3 & 0x3f | 0x80;
  return;
}

