
/* WARNING: Unknown calling convention */

int sqlite3Fts3GetVarint(char *pBuf,sqlite_int64 *v)

{
  byte bVar1;
  uint uVar2;
  byte *pbVar3;
  uint uVar5;
  uint uVar6;
  uchar *pStart;
  uint uVar7;
  uint uVar8;
  int iVar9;
  byte *pbVar4;
  
  bVar1 = *pBuf;
  if (-1 < (char)bVar1) {
    *(uint *)((int)v + 4) = (uint)bVar1;
    *(undefined4 *)v = 0;
    return 1;
  }
  uVar2 = bVar1 & 0x7f;
  uVar5 = (uint)(byte)pBuf[1] << 7;
  if ((uVar5 & 0x4000) == 0) {
    *(uint *)((int)v + 4) = uVar5 | uVar2;
    *(undefined4 *)v = 0;
    return 2;
  }
  uVar2 = uVar5 & 0x3fff | uVar2;
  uVar5 = (uint)(byte)pBuf[2] << 0xe;
  if (uVar5 >> 0x15 == 0) {
    *(uint *)((int)v + 4) = uVar5 | uVar2;
    *(undefined4 *)v = 0;
    return 3;
  }
  uVar2 = uVar5 & 0x1fffff | uVar2;
  uVar5 = (uint)(byte)pBuf[3] << 0x15;
  if (uVar5 >> 0x1c != 0) {
    iVar9 = 0;
    uVar7 = 0x1c;
    pbVar4 = (byte *)(pBuf + 4);
    uVar2 = uVar5 & 0xfffffff | uVar2;
    do {
      pbVar3 = pbVar4 + 1;
      uVar8 = uVar7 & 0x20;
      uVar5 = *pbVar4 & 0x7f;
      uVar6 = uVar5 << (uVar7 & 0x1f);
      uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);
      if (uVar8 != 0) {
        uVar5 = uVar6;
      }
      uVar7 = uVar7 + 7;
      if (uVar8 != 0) {
        uVar6 = 0;
      }
      uVar6 = uVar2 + uVar6;
      iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;
    } while (((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46));
    *(int *)v = iVar9;
    *(uint *)((int)v + 4) = uVar6;
    return (int)pbVar3 - (int)pBuf;
  }
  *(uint *)((int)v + 4) = uVar5 | uVar2;
  *(undefined4 *)v = 0;
  return 4;
}



int FUN_000218a4(byte *param_1,int *param_2)

{
  byte bVar1;
  uint uVar2;
  byte *pbVar3;
  uint uVar5;
  uint uVar6;
  uint uVar7;
  uint uVar8;
  int iVar9;
  byte *pbVar4;
  
  bVar1 = *param_1;
  if (-1 < (char)bVar1) {
    param_2[1] = (uint)bVar1;
    *param_2 = 0;
    return 1;
  }
  uVar2 = bVar1 & 0x7f;
  uVar5 = (uint)param_1[1] << 7;
  if ((uVar5 & 0x4000) == 0) {
    param_2[1] = uVar5 | uVar2;
    *param_2 = 0;
    return 2;
  }
  uVar2 = uVar5 & 0x3fff | uVar2;
  uVar5 = (uint)param_1[2] << 0xe;
  if (uVar5 >> 0x15 == 0) {
    param_2[1] = uVar5 | uVar2;
    *param_2 = 0;
    return 3;
  }
  uVar2 = uVar5 & 0x1fffff | uVar2;
  uVar5 = (uint)param_1[3] << 0x15;
  if (uVar5 >> 0x1c != 0) {
    iVar9 = 0;
    uVar7 = 0x1c;
    pbVar4 = param_1 + 4;
    uVar2 = uVar5 & 0xfffffff | uVar2;
    do {
      pbVar3 = pbVar4 + 1;
      uVar8 = uVar7 & 0x20;
      uVar5 = *pbVar4 & 0x7f;
      uVar6 = uVar5 << (uVar7 & 0x1f);
      uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);
      if (uVar8 != 0) {
        uVar5 = uVar6;
      }
      uVar7 = uVar7 + 7;
      if (uVar8 != 0) {
        uVar6 = 0;
      }
      uVar6 = uVar2 + uVar6;
      iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;
    } while (((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46));
    *param_2 = iVar9;
    param_2[1] = uVar6;
    return (int)pbVar3 - (int)param_1;
  }
  param_2[1] = uVar5 | uVar2;
  *param_2 = 0;
  return 4;
}


lbu v0,0x0(a0)
seb v1,v0
bgez v1,0x00021978
_nop
lbu v1,0x1(a0)
andi v0,v0,0x7f
sll v1,v1,0x7
or v1,v1,v0
andi v0,v1,0x4000
beq v0,zero,0x00021988
_li v0,0x2
lbu a2,0x2(a0)
andi v1,v1,0x3fff
sll a2,a2,0xe
or v1,a2,v1
srl v0,v1,0x15
beq v0,zero,0x00021994
_nop
lbu a2,0x3(a0)
ext v1,v1,0x0,0x15
sll a2,a2,0x15
or a2,a2,v1
srl v1,a2,0x1c
beq v1,zero,0x000219a4
_addiu v0,a0,0x4
ext a2,a2,0x0,0x1c
or t3,zero,zero
li a3,0x1c
li t5,0x46
addiu v0,v0,0x1
lbu t1,-0x1(v0)
nor t4,zero,a3
andi t2,a3,0x20
andi v1,t1,0x7f
srl t0,v1,0x1
sllv v1,v1,a3
srlv t0,t0,t4
seb t1,t1
movn t0,v1,t2
addiu a3,a3,0x7
movn v1,zero,t2
addu t3,t3,t0
addu v1,a2,v1
sltu a2,v1,a2
addu t3,a2,t3
bgez t1,0x00021968
_or a2,v1,zero
bne a3,t5,0x00021918
_nop
subu v0,v0,a0
sw t3,0x0(a1)
jr ra
_sw v1,0x4(a1)
sw v0,0x4(a1)
li v0,0x1
jr ra
_sw zero,0x0(a1)
sw v1,0x4(a1)
jr ra
_sw zero,0x0(a1)
sw v1,0x4(a1)
li v0,0x3
jr ra
_sw zero,0x0(a1)
sw a2,0x4(a1)
li v0,0x4
jr ra
_sw zero,0x0(a1)
(translation_unit "int FUN_000218a4(byte *param_1,int *param_2)\n\n{\n  byte bVar1;\n  uint uVar2;\n  byte *pbVar3;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  byte *pbVar4;\n  \n  bVar1 = *param_1;\n  if (-1 < (char)bVar1) {\n    param_2[1] = (uint)bVar1;\n    *param_2 = 0;\n    return 1;\n  }\n  uVar2 = bVar1 & 0x7f;\n  uVar5 = (uint)param_1[1] << 7;\n  if ((uVar5 & 0x4000) == 0) {\n    param_2[1] = uVar5 | uVar2;\n    *param_2 = 0;\n    return 2;\n  }\n  uVar2 = uVar5 & 0x3fff | uVar2;\n  uVar5 = (uint)param_1[2] << 0xe;\n  if (uVar5 >> 0x15 == 0) {\n    param_2[1] = uVar5 | uVar2;\n    *param_2 = 0;\n    return 3;\n  }\n  uVar2 = uVar5 & 0x1fffff | uVar2;\n  uVar5 = (uint)param_1[3] << 0x15;\n  if (uVar5 >> 0x1c != 0) {\n    iVar9 = 0;\n    uVar7 = 0x1c;\n    pbVar4 = param_1 + 4;\n    uVar2 = uVar5 & 0xfffffff | uVar2;\n    do {\n      pbVar3 = pbVar4 + 1;\n      uVar8 = uVar7 & 0x20;\n      uVar5 = *pbVar4 & 0x7f;\n      uVar6 = uVar5 << (uVar7 & 0x1f);\n      uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);\n      if (uVar8 != 0) {\n        uVar5 = uVar6;\n      }\n      uVar7 = uVar7 + 7;\n      if (uVar8 != 0) {\n        uVar6 = 0;\n      }\n      uVar6 = uVar2 + uVar6;\n      iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;\n    } while (((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46));\n    *param_2 = iVar9;\n    param_2[1] = uVar6;\n    return (int)pbVar3 - (int)param_1;\n  }\n  param_2[1] = uVar5 | uVar2;\n  *param_2 = 0;\n  return 4;\n}\n\n" (function_definition "int FUN_000218a4(byte *param_1,int *param_2)\n\n{\n  byte bVar1;\n  uint uVar2;\n  byte *pbVar3;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  byte *pbVar4;\n  \n  bVar1 = *param_1;\n  if (-1 < (char)bVar1) {\n    param_2[1] = (uint)bVar1;\n    *param_2 = 0;\n    return 1;\n  }\n  uVar2 = bVar1 & 0x7f;\n  uVar5 = (uint)param_1[1] << 7;\n  if ((uVar5 & 0x4000) == 0) {\n    param_2[1] = uVar5 | uVar2;\n    *param_2 = 0;\n    return 2;\n  }\n  uVar2 = uVar5 & 0x3fff | uVar2;\n  uVar5 = (uint)param_1[2] << 0xe;\n  if (uVar5 >> 0x15 == 0) {\n    param_2[1] = uVar5 | uVar2;\n    *param_2 = 0;\n    return 3;\n  }\n  uVar2 = uVar5 & 0x1fffff | uVar2;\n  uVar5 = (uint)param_1[3] << 0x15;\n  if (uVar5 >> 0x1c != 0) {\n    iVar9 = 0;\n    uVar7 = 0x1c;\n    pbVar4 = param_1 + 4;\n    uVar2 = uVar5 & 0xfffffff | uVar2;\n    do {\n      pbVar3 = pbVar4 + 1;\n      uVar8 = uVar7 & 0x20;\n      uVar5 = *pbVar4 & 0x7f;\n      uVar6 = uVar5 << (uVar7 & 0x1f);\n      uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);\n      if (uVar8 != 0) {\n        uVar5 = uVar6;\n      }\n      uVar7 = uVar7 + 7;\n      if (uVar8 != 0) {\n        uVar6 = 0;\n      }\n      uVar6 = uVar2 + uVar6;\n      iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;\n    } while (((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46));\n    *param_2 = iVar9;\n    param_2[1] = uVar6;\n    return (int)pbVar3 - (int)param_1;\n  }\n  param_2[1] = uVar5 | uVar2;\n  *param_2 = 0;\n  return 4;\n}" primitive_type (function_declarator "FUN_000218a4(byte *param_1,int *param_2)" identifier (parameter_list "(byte *param_1,int *param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  byte *pbVar3;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  byte *pbVar4;\n  \n  bVar1 = *param_1;\n  if (-1 < (char)bVar1) {\n    param_2[1] = (uint)bVar1;\n    *param_2 = 0;\n    return 1;\n  }\n  uVar2 = bVar1 & 0x7f;\n  uVar5 = (uint)param_1[1] << 7;\n  if ((uVar5 & 0x4000) == 0) {\n    param_2[1] = uVar5 | uVar2;\n    *param_2 = 0;\n    return 2;\n  }\n  uVar2 = uVar5 & 0x3fff | uVar2;\n  uVar5 = (uint)param_1[2] << 0xe;\n  if (uVar5 >> 0x15 == 0) {\n    param_2[1] = uVar5 | uVar2;\n    *param_2 = 0;\n    return 3;\n  }\n  uVar2 = uVar5 & 0x1fffff | uVar2;\n  uVar5 = (uint)param_1[3] << 0x15;\n  if (uVar5 >> 0x1c != 0) {\n    iVar9 = 0;\n    uVar7 = 0x1c;\n    pbVar4 = param_1 + 4;\n    uVar2 = uVar5 & 0xfffffff | uVar2;\n    do {\n      pbVar3 = pbVar4 + 1;\n      uVar8 = uVar7 & 0x20;\n      uVar5 = *pbVar4 & 0x7f;\n      uVar6 = uVar5 << (uVar7 & 0x1f);\n      uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);\n      if (uVar8 != 0) {\n        uVar5 = uVar6;\n      }\n      uVar7 = uVar7 + 7;\n      if (uVar8 != 0) {\n        uVar6 = 0;\n      }\n      uVar6 = uVar2 + uVar6;\n      iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;\n    } while (((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46));\n    *param_2 = iVar9;\n    param_2[1] = uVar6;\n    return (int)pbVar3 - (int)param_1;\n  }\n  param_2[1] = uVar5 | uVar2;\n  *param_2 = 0;\n  return 4;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (-1 < (char)bVar1) {\n    param_2[1] = (uint)bVar1;\n    *param_2 = 0;\n    return 1;\n  }" if (parenthesized_expression "(-1 < (char)bVar1)" ( (binary_expression "-1 < (char)bVar1" number_literal < (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier)) )) (compound_statement "{\n    param_2[1] = (uint)bVar1;\n    *param_2 = 0;\n    return 1;\n  }" { (expression_statement "param_2[1] = (uint)bVar1;" (assignment_expression "param_2[1] = (uint)bVar1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar2 = bVar1 & 0x7f;" (assignment_expression "uVar2 = bVar1 & 0x7f" identifier = (binary_expression "bVar1 & 0x7f" identifier & number_literal)) ;) (expression_statement "uVar5 = (uint)param_1[1] << 7;" (assignment_expression "uVar5 = (uint)param_1[1] << 7" identifier = (binary_expression "(uint)param_1[1] << 7" (cast_expression "(uint)param_1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) << number_literal)) ;) (if_statement "if ((uVar5 & 0x4000) == 0) {\n    param_2[1] = uVar5 | uVar2;\n    *param_2 = 0;\n    return 2;\n  }" if (parenthesized_expression "((uVar5 & 0x4000) == 0)" ( (binary_expression "(uVar5 & 0x4000) == 0" (parenthesized_expression "(uVar5 & 0x4000)" ( (binary_expression "uVar5 & 0x4000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    param_2[1] = uVar5 | uVar2;\n    *param_2 = 0;\n    return 2;\n  }" { (expression_statement "param_2[1] = uVar5 | uVar2;" (assignment_expression "param_2[1] = uVar5 | uVar2" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "uVar5 | uVar2" identifier | identifier)) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return 2;" return number_literal ;) })) (expression_statement "uVar2 = uVar5 & 0x3fff | uVar2;" (assignment_expression "uVar2 = uVar5 & 0x3fff | uVar2" identifier = (binary_expression "uVar5 & 0x3fff | uVar2" (binary_expression "uVar5 & 0x3fff" identifier & number_literal) | identifier)) ;) (expression_statement "uVar5 = (uint)param_1[2] << 0xe;" (assignment_expression "uVar5 = (uint)param_1[2] << 0xe" identifier = (binary_expression "(uint)param_1[2] << 0xe" (cast_expression "(uint)param_1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) << number_literal)) ;) (if_statement "if (uVar5 >> 0x15 == 0) {\n    param_2[1] = uVar5 | uVar2;\n    *param_2 = 0;\n    return 3;\n  }" if (parenthesized_expression "(uVar5 >> 0x15 == 0)" ( (binary_expression "uVar5 >> 0x15 == 0" (binary_expression "uVar5 >> 0x15" identifier >> number_literal) == number_literal) )) (compound_statement "{\n    param_2[1] = uVar5 | uVar2;\n    *param_2 = 0;\n    return 3;\n  }" { (expression_statement "param_2[1] = uVar5 | uVar2;" (assignment_expression "param_2[1] = uVar5 | uVar2" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "uVar5 | uVar2" identifier | identifier)) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return 3;" return number_literal ;) })) (expression_statement "uVar2 = uVar5 & 0x1fffff | uVar2;" (assignment_expression "uVar2 = uVar5 & 0x1fffff | uVar2" identifier = (binary_expression "uVar5 & 0x1fffff | uVar2" (binary_expression "uVar5 & 0x1fffff" identifier & number_literal) | identifier)) ;) (expression_statement "uVar5 = (uint)param_1[3] << 0x15;" (assignment_expression "uVar5 = (uint)param_1[3] << 0x15" identifier = (binary_expression "(uint)param_1[3] << 0x15" (cast_expression "(uint)param_1[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[3]" identifier [ number_literal ])) << number_literal)) ;) (if_statement "if (uVar5 >> 0x1c != 0) {\n    iVar9 = 0;\n    uVar7 = 0x1c;\n    pbVar4 = param_1 + 4;\n    uVar2 = uVar5 & 0xfffffff | uVar2;\n    do {\n      pbVar3 = pbVar4 + 1;\n      uVar8 = uVar7 & 0x20;\n      uVar5 = *pbVar4 & 0x7f;\n      uVar6 = uVar5 << (uVar7 & 0x1f);\n      uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);\n      if (uVar8 != 0) {\n        uVar5 = uVar6;\n      }\n      uVar7 = uVar7 + 7;\n      if (uVar8 != 0) {\n        uVar6 = 0;\n      }\n      uVar6 = uVar2 + uVar6;\n      iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;\n    } while (((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46));\n    *param_2 = iVar9;\n    param_2[1] = uVar6;\n    return (int)pbVar3 - (int)param_1;\n  }" if (parenthesized_expression "(uVar5 >> 0x1c != 0)" ( (binary_expression "uVar5 >> 0x1c != 0" (binary_expression "uVar5 >> 0x1c" identifier >> number_literal) != number_literal) )) (compound_statement "{\n    iVar9 = 0;\n    uVar7 = 0x1c;\n    pbVar4 = param_1 + 4;\n    uVar2 = uVar5 & 0xfffffff | uVar2;\n    do {\n      pbVar3 = pbVar4 + 1;\n      uVar8 = uVar7 & 0x20;\n      uVar5 = *pbVar4 & 0x7f;\n      uVar6 = uVar5 << (uVar7 & 0x1f);\n      uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);\n      if (uVar8 != 0) {\n        uVar5 = uVar6;\n      }\n      uVar7 = uVar7 + 7;\n      if (uVar8 != 0) {\n        uVar6 = 0;\n      }\n      uVar6 = uVar2 + uVar6;\n      iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;\n    } while (((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46));\n    *param_2 = iVar9;\n    param_2[1] = uVar6;\n    return (int)pbVar3 - (int)param_1;\n  }" { (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (expression_statement "uVar7 = 0x1c;" (assignment_expression "uVar7 = 0x1c" identifier = number_literal) ;) (expression_statement "pbVar4 = param_1 + 4;" (assignment_expression "pbVar4 = param_1 + 4" identifier = (binary_expression "param_1 + 4" identifier + number_literal)) ;) (expression_statement "uVar2 = uVar5 & 0xfffffff | uVar2;" (assignment_expression "uVar2 = uVar5 & 0xfffffff | uVar2" identifier = (binary_expression "uVar5 & 0xfffffff | uVar2" (binary_expression "uVar5 & 0xfffffff" identifier & number_literal) | identifier)) ;) (do_statement "do {\n      pbVar3 = pbVar4 + 1;\n      uVar8 = uVar7 & 0x20;\n      uVar5 = *pbVar4 & 0x7f;\n      uVar6 = uVar5 << (uVar7 & 0x1f);\n      uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);\n      if (uVar8 != 0) {\n        uVar5 = uVar6;\n      }\n      uVar7 = uVar7 + 7;\n      if (uVar8 != 0) {\n        uVar6 = 0;\n      }\n      uVar6 = uVar2 + uVar6;\n      iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;\n    } while (((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46));" do (compound_statement "{\n      pbVar3 = pbVar4 + 1;\n      uVar8 = uVar7 & 0x20;\n      uVar5 = *pbVar4 & 0x7f;\n      uVar6 = uVar5 << (uVar7 & 0x1f);\n      uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);\n      if (uVar8 != 0) {\n        uVar5 = uVar6;\n      }\n      uVar7 = uVar7 + 7;\n      if (uVar8 != 0) {\n        uVar6 = 0;\n      }\n      uVar6 = uVar2 + uVar6;\n      iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;\n    }" { (expression_statement "pbVar3 = pbVar4 + 1;" (assignment_expression "pbVar3 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (expression_statement "uVar8 = uVar7 & 0x20;" (assignment_expression "uVar8 = uVar7 & 0x20" identifier = (binary_expression "uVar7 & 0x20" identifier & number_literal)) ;) (expression_statement "uVar5 = *pbVar4 & 0x7f;" (assignment_expression "uVar5 = *pbVar4 & 0x7f" identifier = (binary_expression "*pbVar4 & 0x7f" (pointer_expression "*pbVar4" * identifier) & number_literal)) ;) (expression_statement "uVar6 = uVar5 << (uVar7 & 0x1f);" (assignment_expression "uVar6 = uVar5 << (uVar7 & 0x1f)" identifier = (binary_expression "uVar5 << (uVar7 & 0x1f)" identifier << (parenthesized_expression "(uVar7 & 0x1f)" ( (binary_expression "uVar7 & 0x1f" identifier & number_literal) )))) ;) (expression_statement "uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);" (assignment_expression "uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f)" identifier = (binary_expression "(uVar5 >> 1) >> (~uVar7 & 0x1f)" (parenthesized_expression "(uVar5 >> 1)" ( (binary_expression "uVar5 >> 1" identifier >> number_literal) )) >> (parenthesized_expression "(~uVar7 & 0x1f)" ( (binary_expression "~uVar7 & 0x1f" (unary_expression "~uVar7" ~ identifier) & number_literal) )))) ;) (if_statement "if (uVar8 != 0) {\n        uVar5 = uVar6;\n      }" if (parenthesized_expression "(uVar8 != 0)" ( (binary_expression "uVar8 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar5 = uVar6;\n      }" { (expression_statement "uVar5 = uVar6;" (assignment_expression "uVar5 = uVar6" identifier = identifier) ;) })) (expression_statement "uVar7 = uVar7 + 7;" (assignment_expression "uVar7 = uVar7 + 7" identifier = (binary_expression "uVar7 + 7" identifier + number_literal)) ;) (if_statement "if (uVar8 != 0) {\n        uVar6 = 0;\n      }" if (parenthesized_expression "(uVar8 != 0)" ( (binary_expression "uVar8 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar6 = 0;\n      }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) })) (expression_statement "uVar6 = uVar2 + uVar6;" (assignment_expression "uVar6 = uVar2 + uVar6" identifier = (binary_expression "uVar2 + uVar6" identifier + identifier)) ;) (expression_statement "iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;" (assignment_expression "iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5" identifier = (binary_expression "(uint)(uVar6 < uVar2) + iVar9 + uVar5" (binary_expression "(uint)(uVar6 < uVar2) + iVar9" (call_expression "(uint)(uVar6 < uVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar6 < uVar2)" ( (binary_expression "uVar6 < uVar2" identifier < identifier) ))) + identifier) + identifier)) ;) }) while (parenthesized_expression "(((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46))" ( (binary_expression "((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46)" (parenthesized_expression "((char)*pbVar4 < '\0')" ( (binary_expression "(char)*pbVar4 < '\0'" (cast_expression "(char)*pbVar4" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*pbVar4" * identifier)) < (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46)" ( (comma_expression "pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46" (assignment_expression "pbVar4 = pbVar3" identifier = identifier) , (comma_expression "uVar2 = uVar6, uVar7 != 0x46" (assignment_expression "uVar2 = uVar6" identifier = identifier) , (binary_expression "uVar7 != 0x46" identifier != number_literal))) ))) )) ;) (expression_statement "*param_2 = iVar9;" (assignment_expression "*param_2 = iVar9" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = uVar6;" (assignment_expression "param_2[1] = uVar6" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return (int)pbVar3 - (int)param_1;" return (binary_expression "(int)pbVar3 - (int)param_1" (cast_expression "(int)pbVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) (expression_statement "param_2[1] = uVar5 | uVar2;" (assignment_expression "param_2[1] = uVar5 | uVar2" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "uVar5 | uVar2" identifier | identifier)) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return 4;" return number_literal ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint sqlite3Fts3GetVarint(char *pBuf,sqlite_int64 *v)\n\n{\n  byte bVar1;\n  uint uVar2;\n  byte *pbVar3;\n  uint uVar5;\n  uint uVar6;\n  uchar *pStart;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  byte *pbVar4;\n  \n  bVar1 = *pBuf;\n  if (-1 < (char)bVar1) {\n    *(uint *)((int)v + 4) = (uint)bVar1;\n    *(undefined4 *)v = 0;\n    return 1;\n  }\n  uVar2 = bVar1 & 0x7f;\n  uVar5 = (uint)(byte)pBuf[1] << 7;\n  if ((uVar5 & 0x4000) == 0) {\n    *(uint *)((int)v + 4) = uVar5 | uVar2;\n    *(undefined4 *)v = 0;\n    return 2;\n  }\n  uVar2 = uVar5 & 0x3fff | uVar2;\n  uVar5 = (uint)(byte)pBuf[2] << 0xe;\n  if (uVar5 >> 0x15 == 0) {\n    *(uint *)((int)v + 4) = uVar5 | uVar2;\n    *(undefined4 *)v = 0;\n    return 3;\n  }\n  uVar2 = uVar5 & 0x1fffff | uVar2;\n  uVar5 = (uint)(byte)pBuf[3] << 0x15;\n  if (uVar5 >> 0x1c != 0) {\n    iVar9 = 0;\n    uVar7 = 0x1c;\n    pbVar4 = (byte *)(pBuf + 4);\n    uVar2 = uVar5 & 0xfffffff | uVar2;\n    do {\n      pbVar3 = pbVar4 + 1;\n      uVar8 = uVar7 & 0x20;\n      uVar5 = *pbVar4 & 0x7f;\n      uVar6 = uVar5 << (uVar7 & 0x1f);\n      uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);\n      if (uVar8 != 0) {\n        uVar5 = uVar6;\n      }\n      uVar7 = uVar7 + 7;\n      if (uVar8 != 0) {\n        uVar6 = 0;\n      }\n      uVar6 = uVar2 + uVar6;\n      iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;\n    } while (((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46));\n    *(int *)v = iVar9;\n    *(uint *)((int)v + 4) = uVar6;\n    return (int)pbVar3 - (int)pBuf;\n  }\n  *(uint *)((int)v + 4) = uVar5 | uVar2;\n  *(undefined4 *)v = 0;\n  return 4;\n}\n\n" comment (function_definition "int sqlite3Fts3GetVarint(char *pBuf,sqlite_int64 *v)\n\n{\n  byte bVar1;\n  uint uVar2;\n  byte *pbVar3;\n  uint uVar5;\n  uint uVar6;\n  uchar *pStart;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  byte *pbVar4;\n  \n  bVar1 = *pBuf;\n  if (-1 < (char)bVar1) {\n    *(uint *)((int)v + 4) = (uint)bVar1;\n    *(undefined4 *)v = 0;\n    return 1;\n  }\n  uVar2 = bVar1 & 0x7f;\n  uVar5 = (uint)(byte)pBuf[1] << 7;\n  if ((uVar5 & 0x4000) == 0) {\n    *(uint *)((int)v + 4) = uVar5 | uVar2;\n    *(undefined4 *)v = 0;\n    return 2;\n  }\n  uVar2 = uVar5 & 0x3fff | uVar2;\n  uVar5 = (uint)(byte)pBuf[2] << 0xe;\n  if (uVar5 >> 0x15 == 0) {\n    *(uint *)((int)v + 4) = uVar5 | uVar2;\n    *(undefined4 *)v = 0;\n    return 3;\n  }\n  uVar2 = uVar5 & 0x1fffff | uVar2;\n  uVar5 = (uint)(byte)pBuf[3] << 0x15;\n  if (uVar5 >> 0x1c != 0) {\n    iVar9 = 0;\n    uVar7 = 0x1c;\n    pbVar4 = (byte *)(pBuf + 4);\n    uVar2 = uVar5 & 0xfffffff | uVar2;\n    do {\n      pbVar3 = pbVar4 + 1;\n      uVar8 = uVar7 & 0x20;\n      uVar5 = *pbVar4 & 0x7f;\n      uVar6 = uVar5 << (uVar7 & 0x1f);\n      uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);\n      if (uVar8 != 0) {\n        uVar5 = uVar6;\n      }\n      uVar7 = uVar7 + 7;\n      if (uVar8 != 0) {\n        uVar6 = 0;\n      }\n      uVar6 = uVar2 + uVar6;\n      iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;\n    } while (((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46));\n    *(int *)v = iVar9;\n    *(uint *)((int)v + 4) = uVar6;\n    return (int)pbVar3 - (int)pBuf;\n  }\n  *(uint *)((int)v + 4) = uVar5 | uVar2;\n  *(undefined4 *)v = 0;\n  return 4;\n}" primitive_type (function_declarator "sqlite3Fts3GetVarint(char *pBuf,sqlite_int64 *v)" identifier (parameter_list "(char *pBuf,sqlite_int64 *v)" ( (parameter_declaration "char *pBuf" primitive_type (pointer_declarator "*pBuf" * identifier)) , (parameter_declaration "sqlite_int64 *v" type_identifier (pointer_declarator "*v" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  byte *pbVar3;\n  uint uVar5;\n  uint uVar6;\n  uchar *pStart;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  byte *pbVar4;\n  \n  bVar1 = *pBuf;\n  if (-1 < (char)bVar1) {\n    *(uint *)((int)v + 4) = (uint)bVar1;\n    *(undefined4 *)v = 0;\n    return 1;\n  }\n  uVar2 = bVar1 & 0x7f;\n  uVar5 = (uint)(byte)pBuf[1] << 7;\n  if ((uVar5 & 0x4000) == 0) {\n    *(uint *)((int)v + 4) = uVar5 | uVar2;\n    *(undefined4 *)v = 0;\n    return 2;\n  }\n  uVar2 = uVar5 & 0x3fff | uVar2;\n  uVar5 = (uint)(byte)pBuf[2] << 0xe;\n  if (uVar5 >> 0x15 == 0) {\n    *(uint *)((int)v + 4) = uVar5 | uVar2;\n    *(undefined4 *)v = 0;\n    return 3;\n  }\n  uVar2 = uVar5 & 0x1fffff | uVar2;\n  uVar5 = (uint)(byte)pBuf[3] << 0x15;\n  if (uVar5 >> 0x1c != 0) {\n    iVar9 = 0;\n    uVar7 = 0x1c;\n    pbVar4 = (byte *)(pBuf + 4);\n    uVar2 = uVar5 & 0xfffffff | uVar2;\n    do {\n      pbVar3 = pbVar4 + 1;\n      uVar8 = uVar7 & 0x20;\n      uVar5 = *pbVar4 & 0x7f;\n      uVar6 = uVar5 << (uVar7 & 0x1f);\n      uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);\n      if (uVar8 != 0) {\n        uVar5 = uVar6;\n      }\n      uVar7 = uVar7 + 7;\n      if (uVar8 != 0) {\n        uVar6 = 0;\n      }\n      uVar6 = uVar2 + uVar6;\n      iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;\n    } while (((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46));\n    *(int *)v = iVar9;\n    *(uint *)((int)v + 4) = uVar6;\n    return (int)pbVar3 - (int)pBuf;\n  }\n  *(uint *)((int)v + 4) = uVar5 | uVar2;\n  *(undefined4 *)v = 0;\n  return 4;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uchar *pStart;" type_identifier (pointer_declarator "*pStart" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (expression_statement "bVar1 = *pBuf;" (assignment_expression "bVar1 = *pBuf" identifier = (pointer_expression "*pBuf" * identifier)) ;) (if_statement "if (-1 < (char)bVar1) {\n    *(uint *)((int)v + 4) = (uint)bVar1;\n    *(undefined4 *)v = 0;\n    return 1;\n  }" if (parenthesized_expression "(-1 < (char)bVar1)" ( (binary_expression "-1 < (char)bVar1" number_literal < (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier)) )) (compound_statement "{\n    *(uint *)((int)v + 4) = (uint)bVar1;\n    *(undefined4 *)v = 0;\n    return 1;\n  }" { (expression_statement "*(uint *)((int)v + 4) = (uint)bVar1;" (assignment_expression "*(uint *)((int)v + 4) = (uint)bVar1" (pointer_expression "*(uint *)((int)v + 4)" * (cast_expression "(uint *)((int)v + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)v + 4)" ( (binary_expression "(int)v + 4" (cast_expression "(int)v" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "*(undefined4 *)v = 0;" (assignment_expression "*(undefined4 *)v = 0" (pointer_expression "*(undefined4 *)v" * (cast_expression "(undefined4 *)v" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar2 = bVar1 & 0x7f;" (assignment_expression "uVar2 = bVar1 & 0x7f" identifier = (binary_expression "bVar1 & 0x7f" identifier & number_literal)) ;) (expression_statement "uVar5 = (uint)(byte)pBuf[1] << 7;" (assignment_expression "uVar5 = (uint)(byte)pBuf[1] << 7" identifier = (binary_expression "(uint)(byte)pBuf[1] << 7" (cast_expression "(uint)(byte)pBuf[1]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)pBuf[1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "pBuf[1]" identifier [ number_literal ]))) << number_literal)) ;) (if_statement "if ((uVar5 & 0x4000) == 0) {\n    *(uint *)((int)v + 4) = uVar5 | uVar2;\n    *(undefined4 *)v = 0;\n    return 2;\n  }" if (parenthesized_expression "((uVar5 & 0x4000) == 0)" ( (binary_expression "(uVar5 & 0x4000) == 0" (parenthesized_expression "(uVar5 & 0x4000)" ( (binary_expression "uVar5 & 0x4000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    *(uint *)((int)v + 4) = uVar5 | uVar2;\n    *(undefined4 *)v = 0;\n    return 2;\n  }" { (expression_statement "*(uint *)((int)v + 4) = uVar5 | uVar2;" (assignment_expression "*(uint *)((int)v + 4) = uVar5 | uVar2" (pointer_expression "*(uint *)((int)v + 4)" * (cast_expression "(uint *)((int)v + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)v + 4)" ( (binary_expression "(int)v + 4" (cast_expression "(int)v" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "uVar5 | uVar2" identifier | identifier)) ;) (expression_statement "*(undefined4 *)v = 0;" (assignment_expression "*(undefined4 *)v = 0" (pointer_expression "*(undefined4 *)v" * (cast_expression "(undefined4 *)v" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (return_statement "return 2;" return number_literal ;) })) (expression_statement "uVar2 = uVar5 & 0x3fff | uVar2;" (assignment_expression "uVar2 = uVar5 & 0x3fff | uVar2" identifier = (binary_expression "uVar5 & 0x3fff | uVar2" (binary_expression "uVar5 & 0x3fff" identifier & number_literal) | identifier)) ;) (expression_statement "uVar5 = (uint)(byte)pBuf[2] << 0xe;" (assignment_expression "uVar5 = (uint)(byte)pBuf[2] << 0xe" identifier = (binary_expression "(uint)(byte)pBuf[2] << 0xe" (cast_expression "(uint)(byte)pBuf[2]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)pBuf[2]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "pBuf[2]" identifier [ number_literal ]))) << number_literal)) ;) (if_statement "if (uVar5 >> 0x15 == 0) {\n    *(uint *)((int)v + 4) = uVar5 | uVar2;\n    *(undefined4 *)v = 0;\n    return 3;\n  }" if (parenthesized_expression "(uVar5 >> 0x15 == 0)" ( (binary_expression "uVar5 >> 0x15 == 0" (binary_expression "uVar5 >> 0x15" identifier >> number_literal) == number_literal) )) (compound_statement "{\n    *(uint *)((int)v + 4) = uVar5 | uVar2;\n    *(undefined4 *)v = 0;\n    return 3;\n  }" { (expression_statement "*(uint *)((int)v + 4) = uVar5 | uVar2;" (assignment_expression "*(uint *)((int)v + 4) = uVar5 | uVar2" (pointer_expression "*(uint *)((int)v + 4)" * (cast_expression "(uint *)((int)v + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)v + 4)" ( (binary_expression "(int)v + 4" (cast_expression "(int)v" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "uVar5 | uVar2" identifier | identifier)) ;) (expression_statement "*(undefined4 *)v = 0;" (assignment_expression "*(undefined4 *)v = 0" (pointer_expression "*(undefined4 *)v" * (cast_expression "(undefined4 *)v" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (return_statement "return 3;" return number_literal ;) })) (expression_statement "uVar2 = uVar5 & 0x1fffff | uVar2;" (assignment_expression "uVar2 = uVar5 & 0x1fffff | uVar2" identifier = (binary_expression "uVar5 & 0x1fffff | uVar2" (binary_expression "uVar5 & 0x1fffff" identifier & number_literal) | identifier)) ;) (expression_statement "uVar5 = (uint)(byte)pBuf[3] << 0x15;" (assignment_expression "uVar5 = (uint)(byte)pBuf[3] << 0x15" identifier = (binary_expression "(uint)(byte)pBuf[3] << 0x15" (cast_expression "(uint)(byte)pBuf[3]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)pBuf[3]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "pBuf[3]" identifier [ number_literal ]))) << number_literal)) ;) (if_statement "if (uVar5 >> 0x1c != 0) {\n    iVar9 = 0;\n    uVar7 = 0x1c;\n    pbVar4 = (byte *)(pBuf + 4);\n    uVar2 = uVar5 & 0xfffffff | uVar2;\n    do {\n      pbVar3 = pbVar4 + 1;\n      uVar8 = uVar7 & 0x20;\n      uVar5 = *pbVar4 & 0x7f;\n      uVar6 = uVar5 << (uVar7 & 0x1f);\n      uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);\n      if (uVar8 != 0) {\n        uVar5 = uVar6;\n      }\n      uVar7 = uVar7 + 7;\n      if (uVar8 != 0) {\n        uVar6 = 0;\n      }\n      uVar6 = uVar2 + uVar6;\n      iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;\n    } while (((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46));\n    *(int *)v = iVar9;\n    *(uint *)((int)v + 4) = uVar6;\n    return (int)pbVar3 - (int)pBuf;\n  }" if (parenthesized_expression "(uVar5 >> 0x1c != 0)" ( (binary_expression "uVar5 >> 0x1c != 0" (binary_expression "uVar5 >> 0x1c" identifier >> number_literal) != number_literal) )) (compound_statement "{\n    iVar9 = 0;\n    uVar7 = 0x1c;\n    pbVar4 = (byte *)(pBuf + 4);\n    uVar2 = uVar5 & 0xfffffff | uVar2;\n    do {\n      pbVar3 = pbVar4 + 1;\n      uVar8 = uVar7 & 0x20;\n      uVar5 = *pbVar4 & 0x7f;\n      uVar6 = uVar5 << (uVar7 & 0x1f);\n      uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);\n      if (uVar8 != 0) {\n        uVar5 = uVar6;\n      }\n      uVar7 = uVar7 + 7;\n      if (uVar8 != 0) {\n        uVar6 = 0;\n      }\n      uVar6 = uVar2 + uVar6;\n      iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;\n    } while (((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46));\n    *(int *)v = iVar9;\n    *(uint *)((int)v + 4) = uVar6;\n    return (int)pbVar3 - (int)pBuf;\n  }" { (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (expression_statement "uVar7 = 0x1c;" (assignment_expression "uVar7 = 0x1c" identifier = number_literal) ;) (expression_statement "pbVar4 = (byte *)(pBuf + 4);" (assignment_expression "pbVar4 = (byte *)(pBuf + 4)" identifier = (cast_expression "(byte *)(pBuf + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pBuf + 4)" ( (binary_expression "pBuf + 4" identifier + number_literal) )))) ;) (expression_statement "uVar2 = uVar5 & 0xfffffff | uVar2;" (assignment_expression "uVar2 = uVar5 & 0xfffffff | uVar2" identifier = (binary_expression "uVar5 & 0xfffffff | uVar2" (binary_expression "uVar5 & 0xfffffff" identifier & number_literal) | identifier)) ;) (do_statement "do {\n      pbVar3 = pbVar4 + 1;\n      uVar8 = uVar7 & 0x20;\n      uVar5 = *pbVar4 & 0x7f;\n      uVar6 = uVar5 << (uVar7 & 0x1f);\n      uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);\n      if (uVar8 != 0) {\n        uVar5 = uVar6;\n      }\n      uVar7 = uVar7 + 7;\n      if (uVar8 != 0) {\n        uVar6 = 0;\n      }\n      uVar6 = uVar2 + uVar6;\n      iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;\n    } while (((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46));" do (compound_statement "{\n      pbVar3 = pbVar4 + 1;\n      uVar8 = uVar7 & 0x20;\n      uVar5 = *pbVar4 & 0x7f;\n      uVar6 = uVar5 << (uVar7 & 0x1f);\n      uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);\n      if (uVar8 != 0) {\n        uVar5 = uVar6;\n      }\n      uVar7 = uVar7 + 7;\n      if (uVar8 != 0) {\n        uVar6 = 0;\n      }\n      uVar6 = uVar2 + uVar6;\n      iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;\n    }" { (expression_statement "pbVar3 = pbVar4 + 1;" (assignment_expression "pbVar3 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (expression_statement "uVar8 = uVar7 & 0x20;" (assignment_expression "uVar8 = uVar7 & 0x20" identifier = (binary_expression "uVar7 & 0x20" identifier & number_literal)) ;) (expression_statement "uVar5 = *pbVar4 & 0x7f;" (assignment_expression "uVar5 = *pbVar4 & 0x7f" identifier = (binary_expression "*pbVar4 & 0x7f" (pointer_expression "*pbVar4" * identifier) & number_literal)) ;) (expression_statement "uVar6 = uVar5 << (uVar7 & 0x1f);" (assignment_expression "uVar6 = uVar5 << (uVar7 & 0x1f)" identifier = (binary_expression "uVar5 << (uVar7 & 0x1f)" identifier << (parenthesized_expression "(uVar7 & 0x1f)" ( (binary_expression "uVar7 & 0x1f" identifier & number_literal) )))) ;) (expression_statement "uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);" (assignment_expression "uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f)" identifier = (binary_expression "(uVar5 >> 1) >> (~uVar7 & 0x1f)" (parenthesized_expression "(uVar5 >> 1)" ( (binary_expression "uVar5 >> 1" identifier >> number_literal) )) >> (parenthesized_expression "(~uVar7 & 0x1f)" ( (binary_expression "~uVar7 & 0x1f" (unary_expression "~uVar7" ~ identifier) & number_literal) )))) ;) (if_statement "if (uVar8 != 0) {\n        uVar5 = uVar6;\n      }" if (parenthesized_expression "(uVar8 != 0)" ( (binary_expression "uVar8 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar5 = uVar6;\n      }" { (expression_statement "uVar5 = uVar6;" (assignment_expression "uVar5 = uVar6" identifier = identifier) ;) })) (expression_statement "uVar7 = uVar7 + 7;" (assignment_expression "uVar7 = uVar7 + 7" identifier = (binary_expression "uVar7 + 7" identifier + number_literal)) ;) (if_statement "if (uVar8 != 0) {\n        uVar6 = 0;\n      }" if (parenthesized_expression "(uVar8 != 0)" ( (binary_expression "uVar8 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar6 = 0;\n      }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) })) (expression_statement "uVar6 = uVar2 + uVar6;" (assignment_expression "uVar6 = uVar2 + uVar6" identifier = (binary_expression "uVar2 + uVar6" identifier + identifier)) ;) (expression_statement "iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;" (assignment_expression "iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5" identifier = (binary_expression "(uint)(uVar6 < uVar2) + iVar9 + uVar5" (binary_expression "(uint)(uVar6 < uVar2) + iVar9" (call_expression "(uint)(uVar6 < uVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar6 < uVar2)" ( (binary_expression "uVar6 < uVar2" identifier < identifier) ))) + identifier) + identifier)) ;) }) while (parenthesized_expression "(((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46))" ( (binary_expression "((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46)" (parenthesized_expression "((char)*pbVar4 < '\0')" ( (binary_expression "(char)*pbVar4 < '\0'" (cast_expression "(char)*pbVar4" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*pbVar4" * identifier)) < (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46)" ( (comma_expression "pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46" (assignment_expression "pbVar4 = pbVar3" identifier = identifier) , (comma_expression "uVar2 = uVar6, uVar7 != 0x46" (assignment_expression "uVar2 = uVar6" identifier = identifier) , (binary_expression "uVar7 != 0x46" identifier != number_literal))) ))) )) ;) (expression_statement "*(int *)v = iVar9;" (assignment_expression "*(int *)v = iVar9" (pointer_expression "*(int *)v" * (cast_expression "(int *)v" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(uint *)((int)v + 4) = uVar6;" (assignment_expression "*(uint *)((int)v + 4) = uVar6" (pointer_expression "*(uint *)((int)v + 4)" * (cast_expression "(uint *)((int)v + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)v + 4)" ( (binary_expression "(int)v + 4" (cast_expression "(int)v" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (return_statement "return (int)pbVar3 - (int)pBuf;" return (binary_expression "(int)pbVar3 - (int)pBuf" (cast_expression "(int)pbVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pBuf" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) (expression_statement "*(uint *)((int)v + 4) = uVar5 | uVar2;" (assignment_expression "*(uint *)((int)v + 4) = uVar5 | uVar2" (pointer_expression "*(uint *)((int)v + 4)" * (cast_expression "(uint *)((int)v + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)v + 4)" ( (binary_expression "(int)v + 4" (cast_expression "(int)v" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "uVar5 | uVar2" identifier | identifier)) ;) (expression_statement "*(undefined4 *)v = 0;" (assignment_expression "*(undefined4 *)v = 0" (pointer_expression "*(undefined4 *)v" * (cast_expression "(undefined4 *)v" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (return_statement "return 4;" return number_literal ;) })))
(translation_unit "int FUN_000218a4(byte *param_1,int *param_2)\n\n{\n  byte bVar1;\n  uint uVar2;\n  byte *pbVar3;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  byte *pbVar4;\n  \n  bVar1 = *param_1;\n  if (-1 < (char)bVar1) {\n    param_2[1] = (uint)bVar1;\n    *param_2 = 0;\n    return 1;\n  }\n  uVar2 = bVar1 & 0x7f;\n  uVar5 = (uint)param_1[1] << 7;\n  if ((uVar5 & 0x4000) == 0) {\n    param_2[1] = uVar5 | uVar2;\n    *param_2 = 0;\n    return 2;\n  }\n  uVar2 = uVar5 & 0x3fff | uVar2;\n  uVar5 = (uint)param_1[2] << 0xe;\n  if (uVar5 >> 0x15 == 0) {\n    param_2[1] = uVar5 | uVar2;\n    *param_2 = 0;\n    return 3;\n  }\n  uVar2 = uVar5 & 0x1fffff | uVar2;\n  uVar5 = (uint)param_1[3] << 0x15;\n  if (uVar5 >> 0x1c != 0) {\n    iVar9 = 0;\n    uVar7 = 0x1c;\n    pbVar4 = param_1 + 4;\n    uVar2 = uVar5 & 0xfffffff | uVar2;\n    do {\n      pbVar3 = pbVar4 + 1;\n      uVar8 = uVar7 & 0x20;\n      uVar5 = *pbVar4 & 0x7f;\n      uVar6 = uVar5 << (uVar7 & 0x1f);\n      uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);\n      if (uVar8 != 0) {\n        uVar5 = uVar6;\n      }\n      uVar7 = uVar7 + 7;\n      if (uVar8 != 0) {\n        uVar6 = 0;\n      }\n      uVar6 = uVar2 + uVar6;\n      iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;\n    } while (((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46));\n    *param_2 = iVar9;\n    param_2[1] = uVar6;\n    return (int)pbVar3 - (int)param_1;\n  }\n  param_2[1] = uVar5 | uVar2;\n  *param_2 = 0;\n  return 4;\n}\n\n" (function_definition "int FUN_000218a4(byte *param_1,int *param_2)\n\n{\n  byte bVar1;\n  uint uVar2;\n  byte *pbVar3;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  byte *pbVar4;\n  \n  bVar1 = *param_1;\n  if (-1 < (char)bVar1) {\n    param_2[1] = (uint)bVar1;\n    *param_2 = 0;\n    return 1;\n  }\n  uVar2 = bVar1 & 0x7f;\n  uVar5 = (uint)param_1[1] << 7;\n  if ((uVar5 & 0x4000) == 0) {\n    param_2[1] = uVar5 | uVar2;\n    *param_2 = 0;\n    return 2;\n  }\n  uVar2 = uVar5 & 0x3fff | uVar2;\n  uVar5 = (uint)param_1[2] << 0xe;\n  if (uVar5 >> 0x15 == 0) {\n    param_2[1] = uVar5 | uVar2;\n    *param_2 = 0;\n    return 3;\n  }\n  uVar2 = uVar5 & 0x1fffff | uVar2;\n  uVar5 = (uint)param_1[3] << 0x15;\n  if (uVar5 >> 0x1c != 0) {\n    iVar9 = 0;\n    uVar7 = 0x1c;\n    pbVar4 = param_1 + 4;\n    uVar2 = uVar5 & 0xfffffff | uVar2;\n    do {\n      pbVar3 = pbVar4 + 1;\n      uVar8 = uVar7 & 0x20;\n      uVar5 = *pbVar4 & 0x7f;\n      uVar6 = uVar5 << (uVar7 & 0x1f);\n      uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);\n      if (uVar8 != 0) {\n        uVar5 = uVar6;\n      }\n      uVar7 = uVar7 + 7;\n      if (uVar8 != 0) {\n        uVar6 = 0;\n      }\n      uVar6 = uVar2 + uVar6;\n      iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;\n    } while (((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46));\n    *param_2 = iVar9;\n    param_2[1] = uVar6;\n    return (int)pbVar3 - (int)param_1;\n  }\n  param_2[1] = uVar5 | uVar2;\n  *param_2 = 0;\n  return 4;\n}" primitive_type (function_declarator "FUN_000218a4(byte *param_1,int *param_2)" identifier (parameter_list "(byte *param_1,int *param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  byte *pbVar3;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  byte *pbVar4;\n  \n  bVar1 = *param_1;\n  if (-1 < (char)bVar1) {\n    param_2[1] = (uint)bVar1;\n    *param_2 = 0;\n    return 1;\n  }\n  uVar2 = bVar1 & 0x7f;\n  uVar5 = (uint)param_1[1] << 7;\n  if ((uVar5 & 0x4000) == 0) {\n    param_2[1] = uVar5 | uVar2;\n    *param_2 = 0;\n    return 2;\n  }\n  uVar2 = uVar5 & 0x3fff | uVar2;\n  uVar5 = (uint)param_1[2] << 0xe;\n  if (uVar5 >> 0x15 == 0) {\n    param_2[1] = uVar5 | uVar2;\n    *param_2 = 0;\n    return 3;\n  }\n  uVar2 = uVar5 & 0x1fffff | uVar2;\n  uVar5 = (uint)param_1[3] << 0x15;\n  if (uVar5 >> 0x1c != 0) {\n    iVar9 = 0;\n    uVar7 = 0x1c;\n    pbVar4 = param_1 + 4;\n    uVar2 = uVar5 & 0xfffffff | uVar2;\n    do {\n      pbVar3 = pbVar4 + 1;\n      uVar8 = uVar7 & 0x20;\n      uVar5 = *pbVar4 & 0x7f;\n      uVar6 = uVar5 << (uVar7 & 0x1f);\n      uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);\n      if (uVar8 != 0) {\n        uVar5 = uVar6;\n      }\n      uVar7 = uVar7 + 7;\n      if (uVar8 != 0) {\n        uVar6 = 0;\n      }\n      uVar6 = uVar2 + uVar6;\n      iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;\n    } while (((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46));\n    *param_2 = iVar9;\n    param_2[1] = uVar6;\n    return (int)pbVar3 - (int)param_1;\n  }\n  param_2[1] = uVar5 | uVar2;\n  *param_2 = 0;\n  return 4;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (-1 < (char)bVar1) {\n    param_2[1] = (uint)bVar1;\n    *param_2 = 0;\n    return 1;\n  }" if (parenthesized_expression "(-1 < (char)bVar1)" ( (binary_expression "-1 < (char)bVar1" number_literal < (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier)) )) (compound_statement "{\n    param_2[1] = (uint)bVar1;\n    *param_2 = 0;\n    return 1;\n  }" { (expression_statement "param_2[1] = (uint)bVar1;" (assignment_expression "param_2[1] = (uint)bVar1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar2 = bVar1 & 0x7f;" (assignment_expression "uVar2 = bVar1 & 0x7f" identifier = (binary_expression "bVar1 & 0x7f" identifier & number_literal)) ;) (expression_statement "uVar5 = (uint)param_1[1] << 7;" (assignment_expression "uVar5 = (uint)param_1[1] << 7" identifier = (binary_expression "(uint)param_1[1] << 7" (cast_expression "(uint)param_1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) << number_literal)) ;) (if_statement "if ((uVar5 & 0x4000) == 0) {\n    param_2[1] = uVar5 | uVar2;\n    *param_2 = 0;\n    return 2;\n  }" if (parenthesized_expression "((uVar5 & 0x4000) == 0)" ( (binary_expression "(uVar5 & 0x4000) == 0" (parenthesized_expression "(uVar5 & 0x4000)" ( (binary_expression "uVar5 & 0x4000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    param_2[1] = uVar5 | uVar2;\n    *param_2 = 0;\n    return 2;\n  }" { (expression_statement "param_2[1] = uVar5 | uVar2;" (assignment_expression "param_2[1] = uVar5 | uVar2" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "uVar5 | uVar2" identifier | identifier)) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return 2;" return number_literal ;) })) (expression_statement "uVar2 = uVar5 & 0x3fff | uVar2;" (assignment_expression "uVar2 = uVar5 & 0x3fff | uVar2" identifier = (binary_expression "uVar5 & 0x3fff | uVar2" (binary_expression "uVar5 & 0x3fff" identifier & number_literal) | identifier)) ;) (expression_statement "uVar5 = (uint)param_1[2] << 0xe;" (assignment_expression "uVar5 = (uint)param_1[2] << 0xe" identifier = (binary_expression "(uint)param_1[2] << 0xe" (cast_expression "(uint)param_1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) << number_literal)) ;) (if_statement "if (uVar5 >> 0x15 == 0) {\n    param_2[1] = uVar5 | uVar2;\n    *param_2 = 0;\n    return 3;\n  }" if (parenthesized_expression "(uVar5 >> 0x15 == 0)" ( (binary_expression "uVar5 >> 0x15 == 0" (binary_expression "uVar5 >> 0x15" identifier >> number_literal) == number_literal) )) (compound_statement "{\n    param_2[1] = uVar5 | uVar2;\n    *param_2 = 0;\n    return 3;\n  }" { (expression_statement "param_2[1] = uVar5 | uVar2;" (assignment_expression "param_2[1] = uVar5 | uVar2" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "uVar5 | uVar2" identifier | identifier)) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return 3;" return number_literal ;) })) (expression_statement "uVar2 = uVar5 & 0x1fffff | uVar2;" (assignment_expression "uVar2 = uVar5 & 0x1fffff | uVar2" identifier = (binary_expression "uVar5 & 0x1fffff | uVar2" (binary_expression "uVar5 & 0x1fffff" identifier & number_literal) | identifier)) ;) (expression_statement "uVar5 = (uint)param_1[3] << 0x15;" (assignment_expression "uVar5 = (uint)param_1[3] << 0x15" identifier = (binary_expression "(uint)param_1[3] << 0x15" (cast_expression "(uint)param_1[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[3]" identifier [ number_literal ])) << number_literal)) ;) (if_statement "if (uVar5 >> 0x1c != 0) {\n    iVar9 = 0;\n    uVar7 = 0x1c;\n    pbVar4 = param_1 + 4;\n    uVar2 = uVar5 & 0xfffffff | uVar2;\n    do {\n      pbVar3 = pbVar4 + 1;\n      uVar8 = uVar7 & 0x20;\n      uVar5 = *pbVar4 & 0x7f;\n      uVar6 = uVar5 << (uVar7 & 0x1f);\n      uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);\n      if (uVar8 != 0) {\n        uVar5 = uVar6;\n      }\n      uVar7 = uVar7 + 7;\n      if (uVar8 != 0) {\n        uVar6 = 0;\n      }\n      uVar6 = uVar2 + uVar6;\n      iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;\n    } while (((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46));\n    *param_2 = iVar9;\n    param_2[1] = uVar6;\n    return (int)pbVar3 - (int)param_1;\n  }" if (parenthesized_expression "(uVar5 >> 0x1c != 0)" ( (binary_expression "uVar5 >> 0x1c != 0" (binary_expression "uVar5 >> 0x1c" identifier >> number_literal) != number_literal) )) (compound_statement "{\n    iVar9 = 0;\n    uVar7 = 0x1c;\n    pbVar4 = param_1 + 4;\n    uVar2 = uVar5 & 0xfffffff | uVar2;\n    do {\n      pbVar3 = pbVar4 + 1;\n      uVar8 = uVar7 & 0x20;\n      uVar5 = *pbVar4 & 0x7f;\n      uVar6 = uVar5 << (uVar7 & 0x1f);\n      uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);\n      if (uVar8 != 0) {\n        uVar5 = uVar6;\n      }\n      uVar7 = uVar7 + 7;\n      if (uVar8 != 0) {\n        uVar6 = 0;\n      }\n      uVar6 = uVar2 + uVar6;\n      iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;\n    } while (((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46));\n    *param_2 = iVar9;\n    param_2[1] = uVar6;\n    return (int)pbVar3 - (int)param_1;\n  }" { (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (expression_statement "uVar7 = 0x1c;" (assignment_expression "uVar7 = 0x1c" identifier = number_literal) ;) (expression_statement "pbVar4 = param_1 + 4;" (assignment_expression "pbVar4 = param_1 + 4" identifier = (binary_expression "param_1 + 4" identifier + number_literal)) ;) (expression_statement "uVar2 = uVar5 & 0xfffffff | uVar2;" (assignment_expression "uVar2 = uVar5 & 0xfffffff | uVar2" identifier = (binary_expression "uVar5 & 0xfffffff | uVar2" (binary_expression "uVar5 & 0xfffffff" identifier & number_literal) | identifier)) ;) (do_statement "do {\n      pbVar3 = pbVar4 + 1;\n      uVar8 = uVar7 & 0x20;\n      uVar5 = *pbVar4 & 0x7f;\n      uVar6 = uVar5 << (uVar7 & 0x1f);\n      uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);\n      if (uVar8 != 0) {\n        uVar5 = uVar6;\n      }\n      uVar7 = uVar7 + 7;\n      if (uVar8 != 0) {\n        uVar6 = 0;\n      }\n      uVar6 = uVar2 + uVar6;\n      iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;\n    } while (((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46));" do (compound_statement "{\n      pbVar3 = pbVar4 + 1;\n      uVar8 = uVar7 & 0x20;\n      uVar5 = *pbVar4 & 0x7f;\n      uVar6 = uVar5 << (uVar7 & 0x1f);\n      uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);\n      if (uVar8 != 0) {\n        uVar5 = uVar6;\n      }\n      uVar7 = uVar7 + 7;\n      if (uVar8 != 0) {\n        uVar6 = 0;\n      }\n      uVar6 = uVar2 + uVar6;\n      iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;\n    }" { (expression_statement "pbVar3 = pbVar4 + 1;" (assignment_expression "pbVar3 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (expression_statement "uVar8 = uVar7 & 0x20;" (assignment_expression "uVar8 = uVar7 & 0x20" identifier = (binary_expression "uVar7 & 0x20" identifier & number_literal)) ;) (expression_statement "uVar5 = *pbVar4 & 0x7f;" (assignment_expression "uVar5 = *pbVar4 & 0x7f" identifier = (binary_expression "*pbVar4 & 0x7f" (pointer_expression "*pbVar4" * identifier) & number_literal)) ;) (expression_statement "uVar6 = uVar5 << (uVar7 & 0x1f);" (assignment_expression "uVar6 = uVar5 << (uVar7 & 0x1f)" identifier = (binary_expression "uVar5 << (uVar7 & 0x1f)" identifier << (parenthesized_expression "(uVar7 & 0x1f)" ( (binary_expression "uVar7 & 0x1f" identifier & number_literal) )))) ;) (expression_statement "uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);" (assignment_expression "uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f)" identifier = (binary_expression "(uVar5 >> 1) >> (~uVar7 & 0x1f)" (parenthesized_expression "(uVar5 >> 1)" ( (binary_expression "uVar5 >> 1" identifier >> number_literal) )) >> (parenthesized_expression "(~uVar7 & 0x1f)" ( (binary_expression "~uVar7 & 0x1f" (unary_expression "~uVar7" ~ identifier) & number_literal) )))) ;) (if_statement "if (uVar8 != 0) {\n        uVar5 = uVar6;\n      }" if (parenthesized_expression "(uVar8 != 0)" ( (binary_expression "uVar8 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar5 = uVar6;\n      }" { (expression_statement "uVar5 = uVar6;" (assignment_expression "uVar5 = uVar6" identifier = identifier) ;) })) (expression_statement "uVar7 = uVar7 + 7;" (assignment_expression "uVar7 = uVar7 + 7" identifier = (binary_expression "uVar7 + 7" identifier + number_literal)) ;) (if_statement "if (uVar8 != 0) {\n        uVar6 = 0;\n      }" if (parenthesized_expression "(uVar8 != 0)" ( (binary_expression "uVar8 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar6 = 0;\n      }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) })) (expression_statement "uVar6 = uVar2 + uVar6;" (assignment_expression "uVar6 = uVar2 + uVar6" identifier = (binary_expression "uVar2 + uVar6" identifier + identifier)) ;) (expression_statement "iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;" (assignment_expression "iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5" identifier = (binary_expression "(uint)(uVar6 < uVar2) + iVar9 + uVar5" (binary_expression "(uint)(uVar6 < uVar2) + iVar9" (call_expression "(uint)(uVar6 < uVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar6 < uVar2)" ( (binary_expression "uVar6 < uVar2" identifier < identifier) ))) + identifier) + identifier)) ;) }) while (parenthesized_expression "(((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46))" ( (binary_expression "((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46)" (parenthesized_expression "((char)*pbVar4 < '\0')" ( (binary_expression "(char)*pbVar4 < '\0'" (cast_expression "(char)*pbVar4" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*pbVar4" * identifier)) < (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46)" ( (comma_expression "pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46" (assignment_expression "pbVar4 = pbVar3" identifier = identifier) , (comma_expression "uVar2 = uVar6, uVar7 != 0x46" (assignment_expression "uVar2 = uVar6" identifier = identifier) , (binary_expression "uVar7 != 0x46" identifier != number_literal))) ))) )) ;) (expression_statement "*param_2 = iVar9;" (assignment_expression "*param_2 = iVar9" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = uVar6;" (assignment_expression "param_2[1] = uVar6" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return (int)pbVar3 - (int)param_1;" return (binary_expression "(int)pbVar3 - (int)param_1" (cast_expression "(int)pbVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) (expression_statement "param_2[1] = uVar5 | uVar2;" (assignment_expression "param_2[1] = uVar5 | uVar2" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "uVar5 | uVar2" identifier | identifier)) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return 4;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) << LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT | IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT & LIT) | IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) << LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT >> LIT) == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT | IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT & LIT) | IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) << LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT >> LIT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT & LIT) | IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) & LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT << (parenthesized_expression ( (binary_expression IDENT & LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT >> LIT) )) >> (parenthesized_expression ( (binary_expression (unary_expression ~ IDENT) & LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))) + IDENT) + IDENT)) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)) < (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT != LIT))) ))) )) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT | IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })))
(function_definition "int FUN_000218a4(byte *param_1,int *param_2)\n\n{\n  byte bVar1;\n  uint uVar2;\n  byte *pbVar3;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  byte *pbVar4;\n  \n  bVar1 = *param_1;\n  if (-1 < (char)bVar1) {\n    param_2[1] = (uint)bVar1;\n    *param_2 = 0;\n    return 1;\n  }\n  uVar2 = bVar1 & 0x7f;\n  uVar5 = (uint)param_1[1] << 7;\n  if ((uVar5 & 0x4000) == 0) {\n    param_2[1] = uVar5 | uVar2;\n    *param_2 = 0;\n    return 2;\n  }\n  uVar2 = uVar5 & 0x3fff | uVar2;\n  uVar5 = (uint)param_1[2] << 0xe;\n  if (uVar5 >> 0x15 == 0) {\n    param_2[1] = uVar5 | uVar2;\n    *param_2 = 0;\n    return 3;\n  }\n  uVar2 = uVar5 & 0x1fffff | uVar2;\n  uVar5 = (uint)param_1[3] << 0x15;\n  if (uVar5 >> 0x1c != 0) {\n    iVar9 = 0;\n    uVar7 = 0x1c;\n    pbVar4 = param_1 + 4;\n    uVar2 = uVar5 & 0xfffffff | uVar2;\n    do {\n      pbVar3 = pbVar4 + 1;\n      uVar8 = uVar7 & 0x20;\n      uVar5 = *pbVar4 & 0x7f;\n      uVar6 = uVar5 << (uVar7 & 0x1f);\n      uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);\n      if (uVar8 != 0) {\n        uVar5 = uVar6;\n      }\n      uVar7 = uVar7 + 7;\n      if (uVar8 != 0) {\n        uVar6 = 0;\n      }\n      uVar6 = uVar2 + uVar6;\n      iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;\n    } while (((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46));\n    *param_2 = iVar9;\n    param_2[1] = uVar6;\n    return (int)pbVar3 - (int)param_1;\n  }\n  param_2[1] = uVar5 | uVar2;\n  *param_2 = 0;\n  return 4;\n}" (primitive_type "int") (function_declarator "FUN_000218a4(byte *param_1,int *param_2)" (identifier "FUN_000218a4") (parameter_list "(byte *param_1,int *param_2)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  byte *pbVar3;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  byte *pbVar4;\n  \n  bVar1 = *param_1;\n  if (-1 < (char)bVar1) {\n    param_2[1] = (uint)bVar1;\n    *param_2 = 0;\n    return 1;\n  }\n  uVar2 = bVar1 & 0x7f;\n  uVar5 = (uint)param_1[1] << 7;\n  if ((uVar5 & 0x4000) == 0) {\n    param_2[1] = uVar5 | uVar2;\n    *param_2 = 0;\n    return 2;\n  }\n  uVar2 = uVar5 & 0x3fff | uVar2;\n  uVar5 = (uint)param_1[2] << 0xe;\n  if (uVar5 >> 0x15 == 0) {\n    param_2[1] = uVar5 | uVar2;\n    *param_2 = 0;\n    return 3;\n  }\n  uVar2 = uVar5 & 0x1fffff | uVar2;\n  uVar5 = (uint)param_1[3] << 0x15;\n  if (uVar5 >> 0x1c != 0) {\n    iVar9 = 0;\n    uVar7 = 0x1c;\n    pbVar4 = param_1 + 4;\n    uVar2 = uVar5 & 0xfffffff | uVar2;\n    do {\n      pbVar3 = pbVar4 + 1;\n      uVar8 = uVar7 & 0x20;\n      uVar5 = *pbVar4 & 0x7f;\n      uVar6 = uVar5 << (uVar7 & 0x1f);\n      uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);\n      if (uVar8 != 0) {\n        uVar5 = uVar6;\n      }\n      uVar7 = uVar7 + 7;\n      if (uVar8 != 0) {\n        uVar6 = 0;\n      }\n      uVar6 = uVar2 + uVar6;\n      iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;\n    } while (((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46));\n    *param_2 = iVar9;\n    param_2[1] = uVar6;\n    return (int)pbVar3 - (int)param_1;\n  }\n  param_2[1] = uVar5 | uVar2;\n  *param_2 = 0;\n  return 4;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" (identifier "bVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (-1 < (char)bVar1) {\n    param_2[1] = (uint)bVar1;\n    *param_2 = 0;\n    return 1;\n  }" (if "if") (parenthesized_expression "(-1 < (char)bVar1)" (( "(") (binary_expression "-1 < (char)bVar1" (number_literal "-1") (< "<") (cast_expression "(char)bVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "bVar1"))) () ")")) (compound_statement "{\n    param_2[1] = (uint)bVar1;\n    *param_2 = 0;\n    return 1;\n  }" ({ "{") (expression_statement "param_2[1] = (uint)bVar1;" (assignment_expression "param_2[1] = (uint)bVar1" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1"))) (; ";")) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "uVar2 = bVar1 & 0x7f;" (assignment_expression "uVar2 = bVar1 & 0x7f" (identifier "uVar2") (= "=") (binary_expression "bVar1 & 0x7f" (identifier "bVar1") (& "&") (number_literal "0x7f"))) (; ";")) (expression_statement "uVar5 = (uint)param_1[1] << 7;" (assignment_expression "uVar5 = (uint)param_1[1] << 7" (identifier "uVar5") (= "=") (binary_expression "(uint)param_1[1] << 7" (cast_expression "(uint)param_1[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (<< "<<") (number_literal "7"))) (; ";")) (if_statement "if ((uVar5 & 0x4000) == 0) {\n    param_2[1] = uVar5 | uVar2;\n    *param_2 = 0;\n    return 2;\n  }" (if "if") (parenthesized_expression "((uVar5 & 0x4000) == 0)" (( "(") (binary_expression "(uVar5 & 0x4000) == 0" (parenthesized_expression "(uVar5 & 0x4000)" (( "(") (binary_expression "uVar5 & 0x4000" (identifier "uVar5") (& "&") (number_literal "0x4000")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_2[1] = uVar5 | uVar2;\n    *param_2 = 0;\n    return 2;\n  }" ({ "{") (expression_statement "param_2[1] = uVar5 | uVar2;" (assignment_expression "param_2[1] = uVar5 | uVar2" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "uVar5 | uVar2" (identifier "uVar5") (| "|") (identifier "uVar2"))) (; ";")) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (return_statement "return 2;" (return "return") (number_literal "2") (; ";")) (} "}"))) (expression_statement "uVar2 = uVar5 & 0x3fff | uVar2;" (assignment_expression "uVar2 = uVar5 & 0x3fff | uVar2" (identifier "uVar2") (= "=") (binary_expression "uVar5 & 0x3fff | uVar2" (binary_expression "uVar5 & 0x3fff" (identifier "uVar5") (& "&") (number_literal "0x3fff")) (| "|") (identifier "uVar2"))) (; ";")) (expression_statement "uVar5 = (uint)param_1[2] << 0xe;" (assignment_expression "uVar5 = (uint)param_1[2] << 0xe" (identifier "uVar5") (= "=") (binary_expression "(uint)param_1[2] << 0xe" (cast_expression "(uint)param_1[2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (<< "<<") (number_literal "0xe"))) (; ";")) (if_statement "if (uVar5 >> 0x15 == 0) {\n    param_2[1] = uVar5 | uVar2;\n    *param_2 = 0;\n    return 3;\n  }" (if "if") (parenthesized_expression "(uVar5 >> 0x15 == 0)" (( "(") (binary_expression "uVar5 >> 0x15 == 0" (binary_expression "uVar5 >> 0x15" (identifier "uVar5") (>> ">>") (number_literal "0x15")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_2[1] = uVar5 | uVar2;\n    *param_2 = 0;\n    return 3;\n  }" ({ "{") (expression_statement "param_2[1] = uVar5 | uVar2;" (assignment_expression "param_2[1] = uVar5 | uVar2" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "uVar5 | uVar2" (identifier "uVar5") (| "|") (identifier "uVar2"))) (; ";")) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (return_statement "return 3;" (return "return") (number_literal "3") (; ";")) (} "}"))) (expression_statement "uVar2 = uVar5 & 0x1fffff | uVar2;" (assignment_expression "uVar2 = uVar5 & 0x1fffff | uVar2" (identifier "uVar2") (= "=") (binary_expression "uVar5 & 0x1fffff | uVar2" (binary_expression "uVar5 & 0x1fffff" (identifier "uVar5") (& "&") (number_literal "0x1fffff")) (| "|") (identifier "uVar2"))) (; ";")) (expression_statement "uVar5 = (uint)param_1[3] << 0x15;" (assignment_expression "uVar5 = (uint)param_1[3] << 0x15" (identifier "uVar5") (= "=") (binary_expression "(uint)param_1[3] << 0x15" (cast_expression "(uint)param_1[3]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (<< "<<") (number_literal "0x15"))) (; ";")) (if_statement "if (uVar5 >> 0x1c != 0) {\n    iVar9 = 0;\n    uVar7 = 0x1c;\n    pbVar4 = param_1 + 4;\n    uVar2 = uVar5 & 0xfffffff | uVar2;\n    do {\n      pbVar3 = pbVar4 + 1;\n      uVar8 = uVar7 & 0x20;\n      uVar5 = *pbVar4 & 0x7f;\n      uVar6 = uVar5 << (uVar7 & 0x1f);\n      uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);\n      if (uVar8 != 0) {\n        uVar5 = uVar6;\n      }\n      uVar7 = uVar7 + 7;\n      if (uVar8 != 0) {\n        uVar6 = 0;\n      }\n      uVar6 = uVar2 + uVar6;\n      iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;\n    } while (((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46));\n    *param_2 = iVar9;\n    param_2[1] = uVar6;\n    return (int)pbVar3 - (int)param_1;\n  }" (if "if") (parenthesized_expression "(uVar5 >> 0x1c != 0)" (( "(") (binary_expression "uVar5 >> 0x1c != 0" (binary_expression "uVar5 >> 0x1c" (identifier "uVar5") (>> ">>") (number_literal "0x1c")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar9 = 0;\n    uVar7 = 0x1c;\n    pbVar4 = param_1 + 4;\n    uVar2 = uVar5 & 0xfffffff | uVar2;\n    do {\n      pbVar3 = pbVar4 + 1;\n      uVar8 = uVar7 & 0x20;\n      uVar5 = *pbVar4 & 0x7f;\n      uVar6 = uVar5 << (uVar7 & 0x1f);\n      uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);\n      if (uVar8 != 0) {\n        uVar5 = uVar6;\n      }\n      uVar7 = uVar7 + 7;\n      if (uVar8 != 0) {\n        uVar6 = 0;\n      }\n      uVar6 = uVar2 + uVar6;\n      iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;\n    } while (((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46));\n    *param_2 = iVar9;\n    param_2[1] = uVar6;\n    return (int)pbVar3 - (int)param_1;\n  }" ({ "{") (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" (identifier "iVar9") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar7 = 0x1c;" (assignment_expression "uVar7 = 0x1c" (identifier "uVar7") (= "=") (number_literal "0x1c")) (; ";")) (expression_statement "pbVar4 = param_1 + 4;" (assignment_expression "pbVar4 = param_1 + 4" (identifier "pbVar4") (= "=") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "uVar2 = uVar5 & 0xfffffff | uVar2;" (assignment_expression "uVar2 = uVar5 & 0xfffffff | uVar2" (identifier "uVar2") (= "=") (binary_expression "uVar5 & 0xfffffff | uVar2" (binary_expression "uVar5 & 0xfffffff" (identifier "uVar5") (& "&") (number_literal "0xfffffff")) (| "|") (identifier "uVar2"))) (; ";")) (do_statement "do {\n      pbVar3 = pbVar4 + 1;\n      uVar8 = uVar7 & 0x20;\n      uVar5 = *pbVar4 & 0x7f;\n      uVar6 = uVar5 << (uVar7 & 0x1f);\n      uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);\n      if (uVar8 != 0) {\n        uVar5 = uVar6;\n      }\n      uVar7 = uVar7 + 7;\n      if (uVar8 != 0) {\n        uVar6 = 0;\n      }\n      uVar6 = uVar2 + uVar6;\n      iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;\n    } while (((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46));" (do "do") (compound_statement "{\n      pbVar3 = pbVar4 + 1;\n      uVar8 = uVar7 & 0x20;\n      uVar5 = *pbVar4 & 0x7f;\n      uVar6 = uVar5 << (uVar7 & 0x1f);\n      uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);\n      if (uVar8 != 0) {\n        uVar5 = uVar6;\n      }\n      uVar7 = uVar7 + 7;\n      if (uVar8 != 0) {\n        uVar6 = 0;\n      }\n      uVar6 = uVar2 + uVar6;\n      iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;\n    }" ({ "{") (expression_statement "pbVar3 = pbVar4 + 1;" (assignment_expression "pbVar3 = pbVar4 + 1" (identifier "pbVar3") (= "=") (binary_expression "pbVar4 + 1" (identifier "pbVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar8 = uVar7 & 0x20;" (assignment_expression "uVar8 = uVar7 & 0x20" (identifier "uVar8") (= "=") (binary_expression "uVar7 & 0x20" (identifier "uVar7") (& "&") (number_literal "0x20"))) (; ";")) (expression_statement "uVar5 = *pbVar4 & 0x7f;" (assignment_expression "uVar5 = *pbVar4 & 0x7f" (identifier "uVar5") (= "=") (binary_expression "*pbVar4 & 0x7f" (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")) (& "&") (number_literal "0x7f"))) (; ";")) (expression_statement "uVar6 = uVar5 << (uVar7 & 0x1f);" (assignment_expression "uVar6 = uVar5 << (uVar7 & 0x1f)" (identifier "uVar6") (= "=") (binary_expression "uVar5 << (uVar7 & 0x1f)" (identifier "uVar5") (<< "<<") (parenthesized_expression "(uVar7 & 0x1f)" (( "(") (binary_expression "uVar7 & 0x1f" (identifier "uVar7") (& "&") (number_literal "0x1f")) () ")")))) (; ";")) (expression_statement "uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);" (assignment_expression "uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f)" (identifier "uVar5") (= "=") (binary_expression "(uVar5 >> 1) >> (~uVar7 & 0x1f)" (parenthesized_expression "(uVar5 >> 1)" (( "(") (binary_expression "uVar5 >> 1" (identifier "uVar5") (>> ">>") (number_literal "1")) () ")")) (>> ">>") (parenthesized_expression "(~uVar7 & 0x1f)" (( "(") (binary_expression "~uVar7 & 0x1f" (unary_expression "~uVar7" (~ "~") (identifier "uVar7")) (& "&") (number_literal "0x1f")) () ")")))) (; ";")) (if_statement "if (uVar8 != 0) {\n        uVar5 = uVar6;\n      }" (if "if") (parenthesized_expression "(uVar8 != 0)" (( "(") (binary_expression "uVar8 != 0" (identifier "uVar8") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        uVar5 = uVar6;\n      }" ({ "{") (expression_statement "uVar5 = uVar6;" (assignment_expression "uVar5 = uVar6" (identifier "uVar5") (= "=") (identifier "uVar6")) (; ";")) (} "}"))) (expression_statement "uVar7 = uVar7 + 7;" (assignment_expression "uVar7 = uVar7 + 7" (identifier "uVar7") (= "=") (binary_expression "uVar7 + 7" (identifier "uVar7") (+ "+") (number_literal "7"))) (; ";")) (if_statement "if (uVar8 != 0) {\n        uVar6 = 0;\n      }" (if "if") (parenthesized_expression "(uVar8 != 0)" (( "(") (binary_expression "uVar8 != 0" (identifier "uVar8") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        uVar6 = 0;\n      }" ({ "{") (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "uVar6 = uVar2 + uVar6;" (assignment_expression "uVar6 = uVar2 + uVar6" (identifier "uVar6") (= "=") (binary_expression "uVar2 + uVar6" (identifier "uVar2") (+ "+") (identifier "uVar6"))) (; ";")) (expression_statement "iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;" (assignment_expression "iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5" (identifier "iVar9") (= "=") (binary_expression "(uint)(uVar6 < uVar2) + iVar9 + uVar5" (binary_expression "(uint)(uVar6 < uVar2) + iVar9" (call_expression "(uint)(uVar6 < uVar2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar6 < uVar2)" (( "(") (binary_expression "uVar6 < uVar2" (identifier "uVar6") (< "<") (identifier "uVar2")) () ")"))) (+ "+") (identifier "iVar9")) (+ "+") (identifier "uVar5"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46))" (( "(") (binary_expression "((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46)" (parenthesized_expression "((char)*pbVar4 < '\0')" (( "(") (binary_expression "(char)*pbVar4 < '\0'" (cast_expression "(char)*pbVar4" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4"))) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46)" (( "(") (comma_expression "pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46" (assignment_expression "pbVar4 = pbVar3" (identifier "pbVar4") (= "=") (identifier "pbVar3")) (, ",") (comma_expression "uVar2 = uVar6, uVar7 != 0x46" (assignment_expression "uVar2 = uVar6" (identifier "uVar2") (= "=") (identifier "uVar6")) (, ",") (binary_expression "uVar7 != 0x46" (identifier "uVar7") (!= "!=") (number_literal "0x46")))) () ")"))) () ")")) (; ";")) (expression_statement "*param_2 = iVar9;" (assignment_expression "*param_2 = iVar9" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "iVar9")) (; ";")) (expression_statement "param_2[1] = uVar6;" (assignment_expression "param_2[1] = uVar6" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar6")) (; ";")) (return_statement "return (int)pbVar3 - (int)param_1;" (return "return") (binary_expression "(int)pbVar3 - (int)param_1" (cast_expression "(int)pbVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar3")) (- "-") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) (; ";")) (} "}"))) (expression_statement "param_2[1] = uVar5 | uVar2;" (assignment_expression "param_2[1] = uVar5 | uVar2" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "uVar5 | uVar2" (identifier "uVar5") (| "|") (identifier "uVar2"))) (; ";")) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (return_statement "return 4;" (return "return") (number_literal "4") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(char *var_4,type_1 *v)

{
  type_2 var_1;
  type_3 var_3;
  type_2 *pbVar3;
  type_3 var_2;
  type_3 var_8;
  type_4 *pStart;
  type_3 var_6;
  type_3 var_7;
  int var_9;
  type_2 *var_5;
  
  var_1 = *var_4;
  if (-1 < (char)var_1) {
    *(type_3 *)((int)v + 4) = (type_3)var_1;
    *(type_5 *)v = 0;
    return 1;
  }
  var_3 = var_1 & 0x7f;
  var_2 = (type_3)(type_2)var_4[1] << 7;
  if ((var_2 & 0x4000) == 0) {
    *(type_3 *)((int)v + 4) = var_2 | var_3;
    *(type_5 *)v = 0;
    return 2;
  }
  var_3 = var_2 & 0x3fff | var_3;
  var_2 = (type_3)(type_2)var_4[2] << 0xe;
  if (var_2 >> 0x15 == 0) {
    *(type_3 *)((int)v + 4) = var_2 | var_3;
    *(type_5 *)v = 0;
    return 3;
  }
  var_3 = var_2 & 0x1fffff | var_3;
  var_2 = (type_3)(type_2)var_4[3] << 0x15;
  if (var_2 >> 0x1c != 0) {
    var_9 = 0;
    var_6 = 0x1c;
    var_5 = (type_2 *)(var_4 + 4);
    var_3 = var_2 & 0xfffffff | var_3;
    do {
      pbVar3 = var_5 + 1;
      var_7 = var_6 & 0x20;
      var_2 = *var_5 & 0x7f;
      var_8 = var_2 << (var_6 & 0x1f);
      var_2 = (var_2 >> 1) >> (~var_6 & 0x1f);
      if (var_7 != 0) {
        var_2 = var_8;
      }
      var_6 = var_6 + 7;
      if (var_7 != 0) {
        var_8 = 0;
      }
      var_8 = var_3 + var_8;
      var_9 = (type_3)(var_8 < var_3) + var_9 + var_2;
    } while (((char)*var_5 < '\0') && (var_5 = pbVar3, var_3 = var_8, var_6 != 0x46));
    *(int *)v = var_9;
    *(type_3 *)((int)v + 4) = var_8;
    return (int)pbVar3 - (int)var_4;
  }
  *(type_3 *)((int)v + 4) = var_2 | var_3;
  *(type_5 *)v = 0;
  return 4;
}


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

int MASKED(byte *param_1,int *param_2)

{
  byte bVar1;
  uint uVar2;
  byte *pbVar3;
  uint uVar5;
  uint uVar6;
  uint uVar7;
  uint uVar8;
  int iVar9;
  byte *pbVar4;
  
  bVar1 = *param_1;
  if (-1 < (char)bVar1) {
    param_2[1] = (uint)bVar1;
    *param_2 = 0;
    return 1;
  }
  uVar2 = bVar1 & 0x7f;
  uVar5 = (uint)param_1[1] << 7;
  if ((uVar5 & 0x4000) == 0) {
    param_2[1] = uVar5 | uVar2;
    *param_2 = 0;
    return 2;
  }
  uVar2 = uVar5 & 0x3fff | uVar2;
  uVar5 = (uint)param_1[2] << 0xe;
  if (uVar5 >> 0x15 == 0) {
    param_2[1] = uVar5 | uVar2;
    *param_2 = 0;
    return 3;
  }
  uVar2 = uVar5 & 0x1fffff | uVar2;
  uVar5 = (uint)param_1[3] << 0x15;
  if (uVar5 >> 0x1c != 0) {
    iVar9 = 0;
    uVar7 = 0x1c;
    pbVar4 = param_1 + 4;
    uVar2 = uVar5 & 0xfffffff | uVar2;
    do {
      pbVar3 = pbVar4 + 1;
      uVar8 = uVar7 & 0x20;
      uVar5 = *pbVar4 & 0x7f;
      uVar6 = uVar5 << (uVar7 & 0x1f);
      uVar5 = (uVar5 >> 1) >> (~uVar7 & 0x1f);
      if (uVar8 != 0) {
        uVar5 = uVar6;
      }
      uVar7 = uVar7 + 7;
      if (uVar8 != 0) {
        uVar6 = 0;
      }
      uVar6 = uVar2 + uVar6;
      iVar9 = (uint)(uVar6 < uVar2) + iVar9 + uVar5;
    } while (((char)*pbVar4 < '\0') && (pbVar4 = pbVar3, uVar2 = uVar6, uVar7 != 0x46));
    *param_2 = iVar9;
    param_2[1] = uVar6;
    return (int)pbVar3 - (int)param_1;
  }
  param_2[1] = uVar5 | uVar2;
  *param_2 = 0;
  return 4;
}

