
u8 sqlite3Fts5GetVarint(uchar *p,u64 *v)

{
  byte bVar1;
  byte bVar2;
  uint uVar3;
  uint uVar4;
  uint uVar5;
  
  uVar3 = (uint)*p;
  if (-1 < (char)*p) {
    *(uint *)((int)v + 4) = uVar3;
    *(undefined4 *)v = 0;
    return '\x01';
  }
  uVar5 = (uint)p[1];
  if (-1 < (char)p[1]) {
    *(uint *)((int)v + 4) = uVar5 | (uVar3 & 0x7f) << 7;
    *(undefined4 *)v = 0;
    return '\x02';
  }
  uVar3 = (uint)p[2] | uVar3 << 0xe;
  if ((p[2] & 0x80) == 0) {
    *(uint *)((int)v + 4) = (uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f;
    *(undefined4 *)v = 0;
    return '\x03';
  }
  uVar3 = uVar3 & 0x1fc07f;
  uVar5 = (uint)p[3] | uVar5 << 0xe;
  if ((p[3] & 0x80) == 0) {
    *(uint *)((int)v + 4) = uVar5 & 0x1fc07f | uVar3 << 7;
    *(undefined4 *)v = 0;
    return '\x04';
  }
  uVar5 = uVar5 & 0x1fc07f;
  bVar1 = p[4];
  uVar4 = (uint)bVar1 | uVar3 << 0xe;
  if ((bVar1 & 0x80) == 0) {
    *(uint *)v = uVar3 >> 0x12;
    *(uint *)((int)v + 4) = uVar5 << 7 | uVar4;
    return '\x05';
  }
  uVar3 = uVar5 | uVar3 << 7;
  uVar5 = (uint)p[5] | uVar5 << 0xe;
  if ((p[5] & 0x80) == 0) {
    *(uint *)v = uVar3 >> 0x12;
    *(uint *)((int)v + 4) = uVar5 | (uVar4 & 0x1fc07f) << 7;
    return '\x06';
  }
  uVar4 = (uint)p[6] | uVar4 << 0xe;
  if ((p[6] & 0x80) == 0) {
    *(uint *)v = uVar3 >> 0xb;
    *(uint *)((int)v + 4) = (uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f;
    return '\a';
  }
  uVar4 = uVar4 & 0x1fc07f;
  uVar5 = (uint)p[7] | uVar5 << 0xe;
  if ((p[7] & 0x80) != 0) {
    bVar2 = p[8];
    *(uint *)v = ((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4;
    *(uint *)((int)v + 4) = (uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8;
    return '\t';
  }
  *(uint *)v = uVar3 >> 4;
  *(uint *)((int)v + 4) = uVar5 & 0xf01fc07f | uVar4 << 7;
  return '\b';
}



undefined4 FUN_00054914(byte *param_1,uint *param_2)

{
  byte bVar1;
  byte bVar2;
  uint uVar3;
  uint uVar4;
  uint uVar5;
  
  uVar3 = (uint)*param_1;
  if (-1 < (char)*param_1) {
    param_2[1] = uVar3;
    *param_2 = 0;
    return 1;
  }
  uVar5 = (uint)param_1[1];
  if (-1 < (char)param_1[1]) {
    param_2[1] = uVar5 | (uVar3 & 0x7f) << 7;
    *param_2 = 0;
    return 2;
  }
  uVar3 = (uint)param_1[2] | uVar3 << 0xe;
  if ((param_1[2] & 0x80) == 0) {
    param_2[1] = (uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f;
    *param_2 = 0;
    return 3;
  }
  uVar3 = uVar3 & 0x1fc07f;
  uVar5 = (uint)param_1[3] | uVar5 << 0xe;
  if ((param_1[3] & 0x80) == 0) {
    param_2[1] = uVar5 & 0x1fc07f | uVar3 << 7;
    *param_2 = 0;
    return 4;
  }
  uVar5 = uVar5 & 0x1fc07f;
  bVar1 = param_1[4];
  uVar4 = (uint)bVar1 | uVar3 << 0xe;
  if ((bVar1 & 0x80) == 0) {
    *param_2 = uVar3 >> 0x12;
    param_2[1] = uVar5 << 7 | uVar4;
    return 5;
  }
  uVar3 = uVar5 | uVar3 << 7;
  uVar5 = (uint)param_1[5] | uVar5 << 0xe;
  if ((param_1[5] & 0x80) == 0) {
    *param_2 = uVar3 >> 0x12;
    param_2[1] = uVar5 | (uVar4 & 0x1fc07f) << 7;
    return 6;
  }
  uVar4 = (uint)param_1[6] | uVar4 << 0xe;
  if ((param_1[6] & 0x80) == 0) {
    *param_2 = uVar3 >> 0xb;
    param_2[1] = (uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f;
    return 7;
  }
  uVar4 = uVar4 & 0x1fc07f;
  uVar5 = (uint)param_1[7] | uVar5 << 0xe;
  if ((param_1[7] & 0x80) != 0) {
    bVar2 = param_1[8];
    *param_2 = ((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4;
    param_2[1] = (uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8;
    return 9;
  }
  *param_2 = uVar3 >> 4;
  param_2[1] = uVar5 & 0xf01fc07f | uVar4 << 7;
  return 8;
}


lbu v0,0x0(a0)
seb v1,v0
bgez v1,0x00054a1c
_nop
lbu a2,0x1(a0)
seb v1,a2
bgez v1,0x00054a2c
_nop
sll v0,v0,0xe
lbu v1,0x2(a0)
or v0,v1,v0
andi v1,v0,0x80
beq v1,zero,0x00054a48
_lui v1,0x1f
ori v1,v1,0xc07f
and v0,v0,v1
sll a2,a2,0xe
lbu v1,0x3(a0)
or a2,v1,a2
andi v1,a2,0x80
beq v1,zero,0x00054a6c
_lui v1,0x1f
ori v1,v1,0xc07f
and a2,a2,v1
sll v1,v0,0xe
lbu t0,0x4(a0)
or v1,t0,v1
andi a3,v1,0x80
beq a3,zero,0x00054a8c
_nop
sll v0,v0,0x7
or v0,a2,v0
sll a2,a2,0xe
lbu a3,0x5(a0)
or a2,a3,a2
andi a3,a2,0x80
beq a3,zero,0x00054aa8
_nop
sll v1,v1,0xe
lbu a3,0x6(a0)
or v1,a3,v1
andi a3,v1,0x80
beq a3,zero,0x00054ad0
_lui a3,0x1f
ori a3,a3,0xc07f
and v1,v1,a3
sll a2,a2,0xe
lbu a3,0x7(a0)
or a2,a3,a2
andi a3,a2,0x80
beq a3,zero,0x00054b04
_lui a3,0x1fc0
sll a2,a2,0x8
sll v1,v1,0xf
addiu a3,a3,0x7f00
and a2,a2,a3
or v1,v1,a2
sll v0,v0,0x4
ext a2,t0,0x3,0x4
or v0,a2,v0
lbu a0,0x8(a0)
or v1,a0,v1
sw v0,0x0(a1)
sw v1,0x4(a1)
jr ra
_li v0,0x9
sw v0,0x4(a1)
sw zero,0x0(a1)
jr ra
_li v0,0x1
andi v0,v0,0x7f
sll v0,v0,0x7
or v0,a2,v0
sw v0,0x4(a1)
sw zero,0x0(a1)
jr ra
_li v0,0x2
ori v1,v1,0xc07f
and v0,v0,v1
andi a2,a2,0x7f
sll a2,a2,0x7
or v0,a2,v0
sw v0,0x4(a1)
sw zero,0x0(a1)
jr ra
_li v0,0x3
sll v0,v0,0x7
ori v1,v1,0xc07f
and a2,a2,v1
or v0,a2,v0
sw v0,0x4(a1)
sw zero,0x0(a1)
jr ra
_li v0,0x4
srl v0,v0,0x12
sll a2,a2,0x7
or a2,a2,v1
sw v0,0x0(a1)
sw a2,0x4(a1)
jr ra
_li v0,0x5
sll v1,v1,0x7
lui a0,0xfe0
addiu a0,a0,0x3f80
and v1,v1,a0
srl v0,v0,0x12
or a2,a2,v1
sw v0,0x0(a1)
sw a2,0x4(a1)
jr ra
_li v0,0x6
lui a0,0xf01f
ori a0,a0,0xc07f
and a0,v1,a0
sll a2,a2,0x7
srl v0,v0,0xb
lui v1,0xfe0
addiu v1,v1,0x3f80
and v1,a2,v1
or v1,v1,a0
sw v0,0x0(a1)
sw v1,0x4(a1)
jr ra
_li v0,0x7
sll v1,v1,0x7
srl v0,v0,0x4
lui a0,0xf01f
ori a0,a0,0xc07f
and a2,a2,a0
or v1,a2,v1
sw v0,0x0(a1)
sw v1,0x4(a1)
jr ra
_li v0,0x8
(translation_unit "undefined4 FUN_00054914(byte *param_1,uint *param_2)\n\n{\n  byte bVar1;\n  byte bVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  \n  uVar3 = (uint)*param_1;\n  if (-1 < (char)*param_1) {\n    param_2[1] = uVar3;\n    *param_2 = 0;\n    return 1;\n  }\n  uVar5 = (uint)param_1[1];\n  if (-1 < (char)param_1[1]) {\n    param_2[1] = uVar5 | (uVar3 & 0x7f) << 7;\n    *param_2 = 0;\n    return 2;\n  }\n  uVar3 = (uint)param_1[2] | uVar3 << 0xe;\n  if ((param_1[2] & 0x80) == 0) {\n    param_2[1] = (uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f;\n    *param_2 = 0;\n    return 3;\n  }\n  uVar3 = uVar3 & 0x1fc07f;\n  uVar5 = (uint)param_1[3] | uVar5 << 0xe;\n  if ((param_1[3] & 0x80) == 0) {\n    param_2[1] = uVar5 & 0x1fc07f | uVar3 << 7;\n    *param_2 = 0;\n    return 4;\n  }\n  uVar5 = uVar5 & 0x1fc07f;\n  bVar1 = param_1[4];\n  uVar4 = (uint)bVar1 | uVar3 << 0xe;\n  if ((bVar1 & 0x80) == 0) {\n    *param_2 = uVar3 >> 0x12;\n    param_2[1] = uVar5 << 7 | uVar4;\n    return 5;\n  }\n  uVar3 = uVar5 | uVar3 << 7;\n  uVar5 = (uint)param_1[5] | uVar5 << 0xe;\n  if ((param_1[5] & 0x80) == 0) {\n    *param_2 = uVar3 >> 0x12;\n    param_2[1] = uVar5 | (uVar4 & 0x1fc07f) << 7;\n    return 6;\n  }\n  uVar4 = (uint)param_1[6] | uVar4 << 0xe;\n  if ((param_1[6] & 0x80) == 0) {\n    *param_2 = uVar3 >> 0xb;\n    param_2[1] = (uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f;\n    return 7;\n  }\n  uVar4 = uVar4 & 0x1fc07f;\n  uVar5 = (uint)param_1[7] | uVar5 << 0xe;\n  if ((param_1[7] & 0x80) != 0) {\n    bVar2 = param_1[8];\n    *param_2 = ((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4;\n    param_2[1] = (uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8;\n    return 9;\n  }\n  *param_2 = uVar3 >> 4;\n  param_2[1] = uVar5 & 0xf01fc07f | uVar4 << 7;\n  return 8;\n}\n\n" (function_definition "undefined4 FUN_00054914(byte *param_1,uint *param_2)\n\n{\n  byte bVar1;\n  byte bVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  \n  uVar3 = (uint)*param_1;\n  if (-1 < (char)*param_1) {\n    param_2[1] = uVar3;\n    *param_2 = 0;\n    return 1;\n  }\n  uVar5 = (uint)param_1[1];\n  if (-1 < (char)param_1[1]) {\n    param_2[1] = uVar5 | (uVar3 & 0x7f) << 7;\n    *param_2 = 0;\n    return 2;\n  }\n  uVar3 = (uint)param_1[2] | uVar3 << 0xe;\n  if ((param_1[2] & 0x80) == 0) {\n    param_2[1] = (uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f;\n    *param_2 = 0;\n    return 3;\n  }\n  uVar3 = uVar3 & 0x1fc07f;\n  uVar5 = (uint)param_1[3] | uVar5 << 0xe;\n  if ((param_1[3] & 0x80) == 0) {\n    param_2[1] = uVar5 & 0x1fc07f | uVar3 << 7;\n    *param_2 = 0;\n    return 4;\n  }\n  uVar5 = uVar5 & 0x1fc07f;\n  bVar1 = param_1[4];\n  uVar4 = (uint)bVar1 | uVar3 << 0xe;\n  if ((bVar1 & 0x80) == 0) {\n    *param_2 = uVar3 >> 0x12;\n    param_2[1] = uVar5 << 7 | uVar4;\n    return 5;\n  }\n  uVar3 = uVar5 | uVar3 << 7;\n  uVar5 = (uint)param_1[5] | uVar5 << 0xe;\n  if ((param_1[5] & 0x80) == 0) {\n    *param_2 = uVar3 >> 0x12;\n    param_2[1] = uVar5 | (uVar4 & 0x1fc07f) << 7;\n    return 6;\n  }\n  uVar4 = (uint)param_1[6] | uVar4 << 0xe;\n  if ((param_1[6] & 0x80) == 0) {\n    *param_2 = uVar3 >> 0xb;\n    param_2[1] = (uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f;\n    return 7;\n  }\n  uVar4 = uVar4 & 0x1fc07f;\n  uVar5 = (uint)param_1[7] | uVar5 << 0xe;\n  if ((param_1[7] & 0x80) != 0) {\n    bVar2 = param_1[8];\n    *param_2 = ((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4;\n    param_2[1] = (uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8;\n    return 9;\n  }\n  *param_2 = uVar3 >> 4;\n  param_2[1] = uVar5 & 0xf01fc07f | uVar4 << 7;\n  return 8;\n}" type_identifier (function_declarator "FUN_00054914(byte *param_1,uint *param_2)" identifier (parameter_list "(byte *param_1,uint *param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  \n  uVar3 = (uint)*param_1;\n  if (-1 < (char)*param_1) {\n    param_2[1] = uVar3;\n    *param_2 = 0;\n    return 1;\n  }\n  uVar5 = (uint)param_1[1];\n  if (-1 < (char)param_1[1]) {\n    param_2[1] = uVar5 | (uVar3 & 0x7f) << 7;\n    *param_2 = 0;\n    return 2;\n  }\n  uVar3 = (uint)param_1[2] | uVar3 << 0xe;\n  if ((param_1[2] & 0x80) == 0) {\n    param_2[1] = (uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f;\n    *param_2 = 0;\n    return 3;\n  }\n  uVar3 = uVar3 & 0x1fc07f;\n  uVar5 = (uint)param_1[3] | uVar5 << 0xe;\n  if ((param_1[3] & 0x80) == 0) {\n    param_2[1] = uVar5 & 0x1fc07f | uVar3 << 7;\n    *param_2 = 0;\n    return 4;\n  }\n  uVar5 = uVar5 & 0x1fc07f;\n  bVar1 = param_1[4];\n  uVar4 = (uint)bVar1 | uVar3 << 0xe;\n  if ((bVar1 & 0x80) == 0) {\n    *param_2 = uVar3 >> 0x12;\n    param_2[1] = uVar5 << 7 | uVar4;\n    return 5;\n  }\n  uVar3 = uVar5 | uVar3 << 7;\n  uVar5 = (uint)param_1[5] | uVar5 << 0xe;\n  if ((param_1[5] & 0x80) == 0) {\n    *param_2 = uVar3 >> 0x12;\n    param_2[1] = uVar5 | (uVar4 & 0x1fc07f) << 7;\n    return 6;\n  }\n  uVar4 = (uint)param_1[6] | uVar4 << 0xe;\n  if ((param_1[6] & 0x80) == 0) {\n    *param_2 = uVar3 >> 0xb;\n    param_2[1] = (uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f;\n    return 7;\n  }\n  uVar4 = uVar4 & 0x1fc07f;\n  uVar5 = (uint)param_1[7] | uVar5 << 0xe;\n  if ((param_1[7] & 0x80) != 0) {\n    bVar2 = param_1[8];\n    *param_2 = ((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4;\n    param_2[1] = (uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8;\n    return 9;\n  }\n  *param_2 = uVar3 >> 4;\n  param_2[1] = uVar5 & 0xf01fc07f | uVar4 << 7;\n  return 8;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (expression_statement "uVar3 = (uint)*param_1;" (assignment_expression "uVar3 = (uint)*param_1" identifier = (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (if_statement "if (-1 < (char)*param_1) {\n    param_2[1] = uVar3;\n    *param_2 = 0;\n    return 1;\n  }" if (parenthesized_expression "(-1 < (char)*param_1)" ( (binary_expression "-1 < (char)*param_1" number_literal < (cast_expression "(char)*param_1" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*param_1" * identifier))) )) (compound_statement "{\n    param_2[1] = uVar3;\n    *param_2 = 0;\n    return 1;\n  }" { (expression_statement "param_2[1] = uVar3;" (assignment_expression "param_2[1] = uVar3" (subscript_expression "param_2[1]" identifier [ number_literal ]) = 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 "uVar5 = (uint)param_1[1];" (assignment_expression "uVar5 = (uint)param_1[1]" identifier = (cast_expression "(uint)param_1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (if_statement "if (-1 < (char)param_1[1]) {\n    param_2[1] = uVar5 | (uVar3 & 0x7f) << 7;\n    *param_2 = 0;\n    return 2;\n  }" if (parenthesized_expression "(-1 < (char)param_1[1])" ( (binary_expression "-1 < (char)param_1[1]" number_literal < (cast_expression "(char)param_1[1]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    param_2[1] = uVar5 | (uVar3 & 0x7f) << 7;\n    *param_2 = 0;\n    return 2;\n  }" { (expression_statement "param_2[1] = uVar5 | (uVar3 & 0x7f) << 7;" (assignment_expression "param_2[1] = uVar5 | (uVar3 & 0x7f) << 7" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "uVar5 | (uVar3 & 0x7f) << 7" identifier | (binary_expression "(uVar3 & 0x7f) << 7" (parenthesized_expression "(uVar3 & 0x7f)" ( (binary_expression "uVar3 & 0x7f" identifier & number_literal) )) << number_literal))) ;) (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 "uVar3 = (uint)param_1[2] | uVar3 << 0xe;" (assignment_expression "uVar3 = (uint)param_1[2] | uVar3 << 0xe" identifier = (binary_expression "(uint)param_1[2] | uVar3 << 0xe" (cast_expression "(uint)param_1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) | (binary_expression "uVar3 << 0xe" identifier << number_literal))) ;) (if_statement "if ((param_1[2] & 0x80) == 0) {\n    param_2[1] = (uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f;\n    *param_2 = 0;\n    return 3;\n  }" if (parenthesized_expression "((param_1[2] & 0x80) == 0)" ( (binary_expression "(param_1[2] & 0x80) == 0" (parenthesized_expression "(param_1[2] & 0x80)" ( (binary_expression "param_1[2] & 0x80" (subscript_expression "param_1[2]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    param_2[1] = (uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f;\n    *param_2 = 0;\n    return 3;\n  }" { (expression_statement "param_2[1] = (uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f;" (assignment_expression "param_2[1] = (uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "(uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f" (binary_expression "(uVar5 & 0x7f) << 7" (parenthesized_expression "(uVar5 & 0x7f)" ( (binary_expression "uVar5 & 0x7f" identifier & number_literal) )) << number_literal) | (binary_expression "uVar3 & 0x1fc07f" identifier & number_literal))) ;) (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 "uVar3 = uVar3 & 0x1fc07f;" (assignment_expression "uVar3 = uVar3 & 0x1fc07f" identifier = (binary_expression "uVar3 & 0x1fc07f" identifier & number_literal)) ;) (expression_statement "uVar5 = (uint)param_1[3] | uVar5 << 0xe;" (assignment_expression "uVar5 = (uint)param_1[3] | uVar5 << 0xe" identifier = (binary_expression "(uint)param_1[3] | uVar5 << 0xe" (cast_expression "(uint)param_1[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[3]" identifier [ number_literal ])) | (binary_expression "uVar5 << 0xe" identifier << number_literal))) ;) (if_statement "if ((param_1[3] & 0x80) == 0) {\n    param_2[1] = uVar5 & 0x1fc07f | uVar3 << 7;\n    *param_2 = 0;\n    return 4;\n  }" if (parenthesized_expression "((param_1[3] & 0x80) == 0)" ( (binary_expression "(param_1[3] & 0x80) == 0" (parenthesized_expression "(param_1[3] & 0x80)" ( (binary_expression "param_1[3] & 0x80" (subscript_expression "param_1[3]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    param_2[1] = uVar5 & 0x1fc07f | uVar3 << 7;\n    *param_2 = 0;\n    return 4;\n  }" { (expression_statement "param_2[1] = uVar5 & 0x1fc07f | uVar3 << 7;" (assignment_expression "param_2[1] = uVar5 & 0x1fc07f | uVar3 << 7" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "uVar5 & 0x1fc07f | uVar3 << 7" (binary_expression "uVar5 & 0x1fc07f" identifier & number_literal) | (binary_expression "uVar3 << 7" identifier << number_literal))) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return 4;" return number_literal ;) })) (expression_statement "uVar5 = uVar5 & 0x1fc07f;" (assignment_expression "uVar5 = uVar5 & 0x1fc07f" identifier = (binary_expression "uVar5 & 0x1fc07f" identifier & number_literal)) ;) (expression_statement "bVar1 = param_1[4];" (assignment_expression "bVar1 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = (uint)bVar1 | uVar3 << 0xe;" (assignment_expression "uVar4 = (uint)bVar1 | uVar3 << 0xe" identifier = (binary_expression "(uint)bVar1 | uVar3 << 0xe" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) | (binary_expression "uVar3 << 0xe" identifier << number_literal))) ;) (if_statement "if ((bVar1 & 0x80) == 0) {\n    *param_2 = uVar3 >> 0x12;\n    param_2[1] = uVar5 << 7 | uVar4;\n    return 5;\n  }" if (parenthesized_expression "((bVar1 & 0x80) == 0)" ( (binary_expression "(bVar1 & 0x80) == 0" (parenthesized_expression "(bVar1 & 0x80)" ( (binary_expression "bVar1 & 0x80" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    *param_2 = uVar3 >> 0x12;\n    param_2[1] = uVar5 << 7 | uVar4;\n    return 5;\n  }" { (expression_statement "*param_2 = uVar3 >> 0x12;" (assignment_expression "*param_2 = uVar3 >> 0x12" (pointer_expression "*param_2" * identifier) = (binary_expression "uVar3 >> 0x12" identifier >> number_literal)) ;) (expression_statement "param_2[1] = uVar5 << 7 | uVar4;" (assignment_expression "param_2[1] = uVar5 << 7 | uVar4" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "uVar5 << 7 | uVar4" (binary_expression "uVar5 << 7" identifier << number_literal) | identifier)) ;) (return_statement "return 5;" return number_literal ;) })) (expression_statement "uVar3 = uVar5 | uVar3 << 7;" (assignment_expression "uVar3 = uVar5 | uVar3 << 7" identifier = (binary_expression "uVar5 | uVar3 << 7" identifier | (binary_expression "uVar3 << 7" identifier << number_literal))) ;) (expression_statement "uVar5 = (uint)param_1[5] | uVar5 << 0xe;" (assignment_expression "uVar5 = (uint)param_1[5] | uVar5 << 0xe" identifier = (binary_expression "(uint)param_1[5] | uVar5 << 0xe" (cast_expression "(uint)param_1[5]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[5]" identifier [ number_literal ])) | (binary_expression "uVar5 << 0xe" identifier << number_literal))) ;) (if_statement "if ((param_1[5] & 0x80) == 0) {\n    *param_2 = uVar3 >> 0x12;\n    param_2[1] = uVar5 | (uVar4 & 0x1fc07f) << 7;\n    return 6;\n  }" if (parenthesized_expression "((param_1[5] & 0x80) == 0)" ( (binary_expression "(param_1[5] & 0x80) == 0" (parenthesized_expression "(param_1[5] & 0x80)" ( (binary_expression "param_1[5] & 0x80" (subscript_expression "param_1[5]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    *param_2 = uVar3 >> 0x12;\n    param_2[1] = uVar5 | (uVar4 & 0x1fc07f) << 7;\n    return 6;\n  }" { (expression_statement "*param_2 = uVar3 >> 0x12;" (assignment_expression "*param_2 = uVar3 >> 0x12" (pointer_expression "*param_2" * identifier) = (binary_expression "uVar3 >> 0x12" identifier >> number_literal)) ;) (expression_statement "param_2[1] = uVar5 | (uVar4 & 0x1fc07f) << 7;" (assignment_expression "param_2[1] = uVar5 | (uVar4 & 0x1fc07f) << 7" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "uVar5 | (uVar4 & 0x1fc07f) << 7" identifier | (binary_expression "(uVar4 & 0x1fc07f) << 7" (parenthesized_expression "(uVar4 & 0x1fc07f)" ( (binary_expression "uVar4 & 0x1fc07f" identifier & number_literal) )) << number_literal))) ;) (return_statement "return 6;" return number_literal ;) })) (expression_statement "uVar4 = (uint)param_1[6] | uVar4 << 0xe;" (assignment_expression "uVar4 = (uint)param_1[6] | uVar4 << 0xe" identifier = (binary_expression "(uint)param_1[6] | uVar4 << 0xe" (cast_expression "(uint)param_1[6]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[6]" identifier [ number_literal ])) | (binary_expression "uVar4 << 0xe" identifier << number_literal))) ;) (if_statement "if ((param_1[6] & 0x80) == 0) {\n    *param_2 = uVar3 >> 0xb;\n    param_2[1] = (uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f;\n    return 7;\n  }" if (parenthesized_expression "((param_1[6] & 0x80) == 0)" ( (binary_expression "(param_1[6] & 0x80) == 0" (parenthesized_expression "(param_1[6] & 0x80)" ( (binary_expression "param_1[6] & 0x80" (subscript_expression "param_1[6]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    *param_2 = uVar3 >> 0xb;\n    param_2[1] = (uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f;\n    return 7;\n  }" { (expression_statement "*param_2 = uVar3 >> 0xb;" (assignment_expression "*param_2 = uVar3 >> 0xb" (pointer_expression "*param_2" * identifier) = (binary_expression "uVar3 >> 0xb" identifier >> number_literal)) ;) (expression_statement "param_2[1] = (uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f;" (assignment_expression "param_2[1] = (uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "(uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f" (binary_expression "(uVar5 & 0x1fc07f) << 7" (parenthesized_expression "(uVar5 & 0x1fc07f)" ( (binary_expression "uVar5 & 0x1fc07f" identifier & number_literal) )) << number_literal) | (binary_expression "uVar4 & 0xf01fc07f" identifier & number_literal))) ;) (return_statement "return 7;" return number_literal ;) })) (expression_statement "uVar4 = uVar4 & 0x1fc07f;" (assignment_expression "uVar4 = uVar4 & 0x1fc07f" identifier = (binary_expression "uVar4 & 0x1fc07f" identifier & number_literal)) ;) (expression_statement "uVar5 = (uint)param_1[7] | uVar5 << 0xe;" (assignment_expression "uVar5 = (uint)param_1[7] | uVar5 << 0xe" identifier = (binary_expression "(uint)param_1[7] | uVar5 << 0xe" (cast_expression "(uint)param_1[7]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[7]" identifier [ number_literal ])) | (binary_expression "uVar5 << 0xe" identifier << number_literal))) ;) (if_statement "if ((param_1[7] & 0x80) != 0) {\n    bVar2 = param_1[8];\n    *param_2 = ((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4;\n    param_2[1] = (uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8;\n    return 9;\n  }" if (parenthesized_expression "((param_1[7] & 0x80) != 0)" ( (binary_expression "(param_1[7] & 0x80) != 0" (parenthesized_expression "(param_1[7] & 0x80)" ( (binary_expression "param_1[7] & 0x80" (subscript_expression "param_1[7]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n    bVar2 = param_1[8];\n    *param_2 = ((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4;\n    param_2[1] = (uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8;\n    return 9;\n  }" { (expression_statement "bVar2 = param_1[8];" (assignment_expression "bVar2 = param_1[8]" identifier = (subscript_expression "param_1[8]" identifier [ number_literal ])) ;) (expression_statement "*param_2 = ((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4;" (assignment_expression "*param_2 = ((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4" (pointer_expression "*param_2" * identifier) = (binary_expression "((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4" (binary_expression "((uint)bVar1 << 0x19) >> 0x1c" (parenthesized_expression "((uint)bVar1 << 0x19)" ( (binary_expression "(uint)bVar1 << 0x19" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) << number_literal) )) >> number_literal) | (binary_expression "uVar3 << 4" identifier << number_literal))) ;) (expression_statement "param_2[1] = (uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8;" (assignment_expression "param_2[1] = (uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "(uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8" (binary_expression "(uint)bVar2 | uVar4 << 0xf" (cast_expression "(uint)bVar2" ( (type_descriptor "uint" type_identifier) ) identifier) | (binary_expression "uVar4 << 0xf" identifier << number_literal)) | (binary_expression "(uVar5 & 0x1fc07f) << 8" (parenthesized_expression "(uVar5 & 0x1fc07f)" ( (binary_expression "uVar5 & 0x1fc07f" identifier & number_literal) )) << number_literal))) ;) (return_statement "return 9;" return number_literal ;) })) (expression_statement "*param_2 = uVar3 >> 4;" (assignment_expression "*param_2 = uVar3 >> 4" (pointer_expression "*param_2" * identifier) = (binary_expression "uVar3 >> 4" identifier >> number_literal)) ;) (expression_statement "param_2[1] = uVar5 & 0xf01fc07f | uVar4 << 7;" (assignment_expression "param_2[1] = uVar5 & 0xf01fc07f | uVar4 << 7" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "uVar5 & 0xf01fc07f | uVar4 << 7" (binary_expression "uVar5 & 0xf01fc07f" identifier & number_literal) | (binary_expression "uVar4 << 7" identifier << number_literal))) ;) (return_statement "return 8;" return number_literal ;) })))
(translation_unit "u8 sqlite3Fts5GetVarint(uchar *p,u64 *v)\n\n{\n  byte bVar1;\n  byte bVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  \n  uVar3 = (uint)*p;\n  if (-1 < (char)*p) {\n    *(uint *)((int)v + 4) = uVar3;\n    *(undefined4 *)v = 0;\n    return '\x01';\n  }\n  uVar5 = (uint)p[1];\n  if (-1 < (char)p[1]) {\n    *(uint *)((int)v + 4) = uVar5 | (uVar3 & 0x7f) << 7;\n    *(undefined4 *)v = 0;\n    return '\x02';\n  }\n  uVar3 = (uint)p[2] | uVar3 << 0xe;\n  if ((p[2] & 0x80) == 0) {\n    *(uint *)((int)v + 4) = (uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f;\n    *(undefined4 *)v = 0;\n    return '\x03';\n  }\n  uVar3 = uVar3 & 0x1fc07f;\n  uVar5 = (uint)p[3] | uVar5 << 0xe;\n  if ((p[3] & 0x80) == 0) {\n    *(uint *)((int)v + 4) = uVar5 & 0x1fc07f | uVar3 << 7;\n    *(undefined4 *)v = 0;\n    return '\x04';\n  }\n  uVar5 = uVar5 & 0x1fc07f;\n  bVar1 = p[4];\n  uVar4 = (uint)bVar1 | uVar3 << 0xe;\n  if ((bVar1 & 0x80) == 0) {\n    *(uint *)v = uVar3 >> 0x12;\n    *(uint *)((int)v + 4) = uVar5 << 7 | uVar4;\n    return '\x05';\n  }\n  uVar3 = uVar5 | uVar3 << 7;\n  uVar5 = (uint)p[5] | uVar5 << 0xe;\n  if ((p[5] & 0x80) == 0) {\n    *(uint *)v = uVar3 >> 0x12;\n    *(uint *)((int)v + 4) = uVar5 | (uVar4 & 0x1fc07f) << 7;\n    return '\x06';\n  }\n  uVar4 = (uint)p[6] | uVar4 << 0xe;\n  if ((p[6] & 0x80) == 0) {\n    *(uint *)v = uVar3 >> 0xb;\n    *(uint *)((int)v + 4) = (uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f;\n    return '\a';\n  }\n  uVar4 = uVar4 & 0x1fc07f;\n  uVar5 = (uint)p[7] | uVar5 << 0xe;\n  if ((p[7] & 0x80) != 0) {\n    bVar2 = p[8];\n    *(uint *)v = ((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4;\n    *(uint *)((int)v + 4) = (uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8;\n    return '\t';\n  }\n  *(uint *)v = uVar3 >> 4;\n  *(uint *)((int)v + 4) = uVar5 & 0xf01fc07f | uVar4 << 7;\n  return '\b';\n}\n\n" (function_definition "u8 sqlite3Fts5GetVarint(uchar *p,u64 *v)\n\n{\n  byte bVar1;\n  byte bVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  \n  uVar3 = (uint)*p;\n  if (-1 < (char)*p) {\n    *(uint *)((int)v + 4) = uVar3;\n    *(undefined4 *)v = 0;\n    return '\x01';\n  }\n  uVar5 = (uint)p[1];\n  if (-1 < (char)p[1]) {\n    *(uint *)((int)v + 4) = uVar5 | (uVar3 & 0x7f) << 7;\n    *(undefined4 *)v = 0;\n    return '\x02';\n  }\n  uVar3 = (uint)p[2] | uVar3 << 0xe;\n  if ((p[2] & 0x80) == 0) {\n    *(uint *)((int)v + 4) = (uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f;\n    *(undefined4 *)v = 0;\n    return '\x03';\n  }\n  uVar3 = uVar3 & 0x1fc07f;\n  uVar5 = (uint)p[3] | uVar5 << 0xe;\n  if ((p[3] & 0x80) == 0) {\n    *(uint *)((int)v + 4) = uVar5 & 0x1fc07f | uVar3 << 7;\n    *(undefined4 *)v = 0;\n    return '\x04';\n  }\n  uVar5 = uVar5 & 0x1fc07f;\n  bVar1 = p[4];\n  uVar4 = (uint)bVar1 | uVar3 << 0xe;\n  if ((bVar1 & 0x80) == 0) {\n    *(uint *)v = uVar3 >> 0x12;\n    *(uint *)((int)v + 4) = uVar5 << 7 | uVar4;\n    return '\x05';\n  }\n  uVar3 = uVar5 | uVar3 << 7;\n  uVar5 = (uint)p[5] | uVar5 << 0xe;\n  if ((p[5] & 0x80) == 0) {\n    *(uint *)v = uVar3 >> 0x12;\n    *(uint *)((int)v + 4) = uVar5 | (uVar4 & 0x1fc07f) << 7;\n    return '\x06';\n  }\n  uVar4 = (uint)p[6] | uVar4 << 0xe;\n  if ((p[6] & 0x80) == 0) {\n    *(uint *)v = uVar3 >> 0xb;\n    *(uint *)((int)v + 4) = (uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f;\n    return '\a';\n  }\n  uVar4 = uVar4 & 0x1fc07f;\n  uVar5 = (uint)p[7] | uVar5 << 0xe;\n  if ((p[7] & 0x80) != 0) {\n    bVar2 = p[8];\n    *(uint *)v = ((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4;\n    *(uint *)((int)v + 4) = (uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8;\n    return '\t';\n  }\n  *(uint *)v = uVar3 >> 4;\n  *(uint *)((int)v + 4) = uVar5 & 0xf01fc07f | uVar4 << 7;\n  return '\b';\n}" type_identifier (function_declarator "sqlite3Fts5GetVarint(uchar *p,u64 *v)" identifier (parameter_list "(uchar *p,u64 *v)" ( (parameter_declaration "uchar *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "u64 *v" type_identifier (pointer_declarator "*v" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  \n  uVar3 = (uint)*p;\n  if (-1 < (char)*p) {\n    *(uint *)((int)v + 4) = uVar3;\n    *(undefined4 *)v = 0;\n    return '\x01';\n  }\n  uVar5 = (uint)p[1];\n  if (-1 < (char)p[1]) {\n    *(uint *)((int)v + 4) = uVar5 | (uVar3 & 0x7f) << 7;\n    *(undefined4 *)v = 0;\n    return '\x02';\n  }\n  uVar3 = (uint)p[2] | uVar3 << 0xe;\n  if ((p[2] & 0x80) == 0) {\n    *(uint *)((int)v + 4) = (uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f;\n    *(undefined4 *)v = 0;\n    return '\x03';\n  }\n  uVar3 = uVar3 & 0x1fc07f;\n  uVar5 = (uint)p[3] | uVar5 << 0xe;\n  if ((p[3] & 0x80) == 0) {\n    *(uint *)((int)v + 4) = uVar5 & 0x1fc07f | uVar3 << 7;\n    *(undefined4 *)v = 0;\n    return '\x04';\n  }\n  uVar5 = uVar5 & 0x1fc07f;\n  bVar1 = p[4];\n  uVar4 = (uint)bVar1 | uVar3 << 0xe;\n  if ((bVar1 & 0x80) == 0) {\n    *(uint *)v = uVar3 >> 0x12;\n    *(uint *)((int)v + 4) = uVar5 << 7 | uVar4;\n    return '\x05';\n  }\n  uVar3 = uVar5 | uVar3 << 7;\n  uVar5 = (uint)p[5] | uVar5 << 0xe;\n  if ((p[5] & 0x80) == 0) {\n    *(uint *)v = uVar3 >> 0x12;\n    *(uint *)((int)v + 4) = uVar5 | (uVar4 & 0x1fc07f) << 7;\n    return '\x06';\n  }\n  uVar4 = (uint)p[6] | uVar4 << 0xe;\n  if ((p[6] & 0x80) == 0) {\n    *(uint *)v = uVar3 >> 0xb;\n    *(uint *)((int)v + 4) = (uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f;\n    return '\a';\n  }\n  uVar4 = uVar4 & 0x1fc07f;\n  uVar5 = (uint)p[7] | uVar5 << 0xe;\n  if ((p[7] & 0x80) != 0) {\n    bVar2 = p[8];\n    *(uint *)v = ((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4;\n    *(uint *)((int)v + 4) = (uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8;\n    return '\t';\n  }\n  *(uint *)v = uVar3 >> 4;\n  *(uint *)((int)v + 4) = uVar5 & 0xf01fc07f | uVar4 << 7;\n  return '\b';\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (expression_statement "uVar3 = (uint)*p;" (assignment_expression "uVar3 = (uint)*p" identifier = (binary_expression "(uint)*p" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (if_statement "if (-1 < (char)*p) {\n    *(uint *)((int)v + 4) = uVar3;\n    *(undefined4 *)v = 0;\n    return '\x01';\n  }" if (parenthesized_expression "(-1 < (char)*p)" ( (binary_expression "-1 < (char)*p" number_literal < (cast_expression "(char)*p" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*p" * identifier))) )) (compound_statement "{\n    *(uint *)((int)v + 4) = uVar3;\n    *(undefined4 *)v = 0;\n    return '\x01';\n  }" { (expression_statement "*(uint *)((int)v + 4) = uVar3;" (assignment_expression "*(uint *)((int)v + 4) = uVar3" (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) ;) (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 '\x01';" return (char_literal "'\x01'" ' escape_sequence ') ;) })) (expression_statement "uVar5 = (uint)p[1];" (assignment_expression "uVar5 = (uint)p[1]" identifier = (cast_expression "(uint)p[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "p[1]" identifier [ number_literal ]))) ;) (if_statement "if (-1 < (char)p[1]) {\n    *(uint *)((int)v + 4) = uVar5 | (uVar3 & 0x7f) << 7;\n    *(undefined4 *)v = 0;\n    return '\x02';\n  }" if (parenthesized_expression "(-1 < (char)p[1])" ( (binary_expression "-1 < (char)p[1]" number_literal < (cast_expression "(char)p[1]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "p[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    *(uint *)((int)v + 4) = uVar5 | (uVar3 & 0x7f) << 7;\n    *(undefined4 *)v = 0;\n    return '\x02';\n  }" { (expression_statement "*(uint *)((int)v + 4) = uVar5 | (uVar3 & 0x7f) << 7;" (assignment_expression "*(uint *)((int)v + 4) = uVar5 | (uVar3 & 0x7f) << 7" (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 | (uVar3 & 0x7f) << 7" identifier | (binary_expression "(uVar3 & 0x7f) << 7" (parenthesized_expression "(uVar3 & 0x7f)" ( (binary_expression "uVar3 & 0x7f" identifier & number_literal) )) << number_literal))) ;) (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 '\x02';" return (char_literal "'\x02'" ' escape_sequence ') ;) })) (expression_statement "uVar3 = (uint)p[2] | uVar3 << 0xe;" (assignment_expression "uVar3 = (uint)p[2] | uVar3 << 0xe" identifier = (binary_expression "(uint)p[2] | uVar3 << 0xe" (cast_expression "(uint)p[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "p[2]" identifier [ number_literal ])) | (binary_expression "uVar3 << 0xe" identifier << number_literal))) ;) (if_statement "if ((p[2] & 0x80) == 0) {\n    *(uint *)((int)v + 4) = (uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f;\n    *(undefined4 *)v = 0;\n    return '\x03';\n  }" if (parenthesized_expression "((p[2] & 0x80) == 0)" ( (binary_expression "(p[2] & 0x80) == 0" (parenthesized_expression "(p[2] & 0x80)" ( (binary_expression "p[2] & 0x80" (subscript_expression "p[2]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    *(uint *)((int)v + 4) = (uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f;\n    *(undefined4 *)v = 0;\n    return '\x03';\n  }" { (expression_statement "*(uint *)((int)v + 4) = (uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f;" (assignment_expression "*(uint *)((int)v + 4) = (uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f" (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 & 0x7f) << 7 | uVar3 & 0x1fc07f" (binary_expression "(uVar5 & 0x7f) << 7" (parenthesized_expression "(uVar5 & 0x7f)" ( (binary_expression "uVar5 & 0x7f" identifier & number_literal) )) << number_literal) | (binary_expression "uVar3 & 0x1fc07f" identifier & number_literal))) ;) (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 '\x03';" return (char_literal "'\x03'" ' escape_sequence ') ;) })) (expression_statement "uVar3 = uVar3 & 0x1fc07f;" (assignment_expression "uVar3 = uVar3 & 0x1fc07f" identifier = (binary_expression "uVar3 & 0x1fc07f" identifier & number_literal)) ;) (expression_statement "uVar5 = (uint)p[3] | uVar5 << 0xe;" (assignment_expression "uVar5 = (uint)p[3] | uVar5 << 0xe" identifier = (binary_expression "(uint)p[3] | uVar5 << 0xe" (cast_expression "(uint)p[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "p[3]" identifier [ number_literal ])) | (binary_expression "uVar5 << 0xe" identifier << number_literal))) ;) (if_statement "if ((p[3] & 0x80) == 0) {\n    *(uint *)((int)v + 4) = uVar5 & 0x1fc07f | uVar3 << 7;\n    *(undefined4 *)v = 0;\n    return '\x04';\n  }" if (parenthesized_expression "((p[3] & 0x80) == 0)" ( (binary_expression "(p[3] & 0x80) == 0" (parenthesized_expression "(p[3] & 0x80)" ( (binary_expression "p[3] & 0x80" (subscript_expression "p[3]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    *(uint *)((int)v + 4) = uVar5 & 0x1fc07f | uVar3 << 7;\n    *(undefined4 *)v = 0;\n    return '\x04';\n  }" { (expression_statement "*(uint *)((int)v + 4) = uVar5 & 0x1fc07f | uVar3 << 7;" (assignment_expression "*(uint *)((int)v + 4) = uVar5 & 0x1fc07f | uVar3 << 7" (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 & 0x1fc07f | uVar3 << 7" (binary_expression "uVar5 & 0x1fc07f" identifier & number_literal) | (binary_expression "uVar3 << 7" identifier << number_literal))) ;) (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 '\x04';" return (char_literal "'\x04'" ' escape_sequence ') ;) })) (expression_statement "uVar5 = uVar5 & 0x1fc07f;" (assignment_expression "uVar5 = uVar5 & 0x1fc07f" identifier = (binary_expression "uVar5 & 0x1fc07f" identifier & number_literal)) ;) (expression_statement "bVar1 = p[4];" (assignment_expression "bVar1 = p[4]" identifier = (subscript_expression "p[4]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = (uint)bVar1 | uVar3 << 0xe;" (assignment_expression "uVar4 = (uint)bVar1 | uVar3 << 0xe" identifier = (binary_expression "(uint)bVar1 | uVar3 << 0xe" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) | (binary_expression "uVar3 << 0xe" identifier << number_literal))) ;) (if_statement "if ((bVar1 & 0x80) == 0) {\n    *(uint *)v = uVar3 >> 0x12;\n    *(uint *)((int)v + 4) = uVar5 << 7 | uVar4;\n    return '\x05';\n  }" if (parenthesized_expression "((bVar1 & 0x80) == 0)" ( (binary_expression "(bVar1 & 0x80) == 0" (parenthesized_expression "(bVar1 & 0x80)" ( (binary_expression "bVar1 & 0x80" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    *(uint *)v = uVar3 >> 0x12;\n    *(uint *)((int)v + 4) = uVar5 << 7 | uVar4;\n    return '\x05';\n  }" { (expression_statement "*(uint *)v = uVar3 >> 0x12;" (assignment_expression "*(uint *)v = uVar3 >> 0x12" (pointer_expression "*(uint *)v" * (cast_expression "(uint *)v" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "uVar3 >> 0x12" identifier >> number_literal)) ;) (expression_statement "*(uint *)((int)v + 4) = uVar5 << 7 | uVar4;" (assignment_expression "*(uint *)((int)v + 4) = uVar5 << 7 | uVar4" (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 << 7 | uVar4" (binary_expression "uVar5 << 7" identifier << number_literal) | identifier)) ;) (return_statement "return '\x05';" return (char_literal "'\x05'" ' escape_sequence ') ;) })) (expression_statement "uVar3 = uVar5 | uVar3 << 7;" (assignment_expression "uVar3 = uVar5 | uVar3 << 7" identifier = (binary_expression "uVar5 | uVar3 << 7" identifier | (binary_expression "uVar3 << 7" identifier << number_literal))) ;) (expression_statement "uVar5 = (uint)p[5] | uVar5 << 0xe;" (assignment_expression "uVar5 = (uint)p[5] | uVar5 << 0xe" identifier = (binary_expression "(uint)p[5] | uVar5 << 0xe" (cast_expression "(uint)p[5]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "p[5]" identifier [ number_literal ])) | (binary_expression "uVar5 << 0xe" identifier << number_literal))) ;) (if_statement "if ((p[5] & 0x80) == 0) {\n    *(uint *)v = uVar3 >> 0x12;\n    *(uint *)((int)v + 4) = uVar5 | (uVar4 & 0x1fc07f) << 7;\n    return '\x06';\n  }" if (parenthesized_expression "((p[5] & 0x80) == 0)" ( (binary_expression "(p[5] & 0x80) == 0" (parenthesized_expression "(p[5] & 0x80)" ( (binary_expression "p[5] & 0x80" (subscript_expression "p[5]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    *(uint *)v = uVar3 >> 0x12;\n    *(uint *)((int)v + 4) = uVar5 | (uVar4 & 0x1fc07f) << 7;\n    return '\x06';\n  }" { (expression_statement "*(uint *)v = uVar3 >> 0x12;" (assignment_expression "*(uint *)v = uVar3 >> 0x12" (pointer_expression "*(uint *)v" * (cast_expression "(uint *)v" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "uVar3 >> 0x12" identifier >> number_literal)) ;) (expression_statement "*(uint *)((int)v + 4) = uVar5 | (uVar4 & 0x1fc07f) << 7;" (assignment_expression "*(uint *)((int)v + 4) = uVar5 | (uVar4 & 0x1fc07f) << 7" (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 | (uVar4 & 0x1fc07f) << 7" identifier | (binary_expression "(uVar4 & 0x1fc07f) << 7" (parenthesized_expression "(uVar4 & 0x1fc07f)" ( (binary_expression "uVar4 & 0x1fc07f" identifier & number_literal) )) << number_literal))) ;) (return_statement "return '\x06';" return (char_literal "'\x06'" ' escape_sequence ') ;) })) (expression_statement "uVar4 = (uint)p[6] | uVar4 << 0xe;" (assignment_expression "uVar4 = (uint)p[6] | uVar4 << 0xe" identifier = (binary_expression "(uint)p[6] | uVar4 << 0xe" (cast_expression "(uint)p[6]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "p[6]" identifier [ number_literal ])) | (binary_expression "uVar4 << 0xe" identifier << number_literal))) ;) (if_statement "if ((p[6] & 0x80) == 0) {\n    *(uint *)v = uVar3 >> 0xb;\n    *(uint *)((int)v + 4) = (uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f;\n    return '\a';\n  }" if (parenthesized_expression "((p[6] & 0x80) == 0)" ( (binary_expression "(p[6] & 0x80) == 0" (parenthesized_expression "(p[6] & 0x80)" ( (binary_expression "p[6] & 0x80" (subscript_expression "p[6]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    *(uint *)v = uVar3 >> 0xb;\n    *(uint *)((int)v + 4) = (uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f;\n    return '\a';\n  }" { (expression_statement "*(uint *)v = uVar3 >> 0xb;" (assignment_expression "*(uint *)v = uVar3 >> 0xb" (pointer_expression "*(uint *)v" * (cast_expression "(uint *)v" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "uVar3 >> 0xb" identifier >> number_literal)) ;) (expression_statement "*(uint *)((int)v + 4) = (uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f;" (assignment_expression "*(uint *)((int)v + 4) = (uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f" (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 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f" (binary_expression "(uVar5 & 0x1fc07f) << 7" (parenthesized_expression "(uVar5 & 0x1fc07f)" ( (binary_expression "uVar5 & 0x1fc07f" identifier & number_literal) )) << number_literal) | (binary_expression "uVar4 & 0xf01fc07f" identifier & number_literal))) ;) (return_statement "return '\a';" return (char_literal "'\a'" ' escape_sequence ') ;) })) (expression_statement "uVar4 = uVar4 & 0x1fc07f;" (assignment_expression "uVar4 = uVar4 & 0x1fc07f" identifier = (binary_expression "uVar4 & 0x1fc07f" identifier & number_literal)) ;) (expression_statement "uVar5 = (uint)p[7] | uVar5 << 0xe;" (assignment_expression "uVar5 = (uint)p[7] | uVar5 << 0xe" identifier = (binary_expression "(uint)p[7] | uVar5 << 0xe" (cast_expression "(uint)p[7]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "p[7]" identifier [ number_literal ])) | (binary_expression "uVar5 << 0xe" identifier << number_literal))) ;) (if_statement "if ((p[7] & 0x80) != 0) {\n    bVar2 = p[8];\n    *(uint *)v = ((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4;\n    *(uint *)((int)v + 4) = (uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8;\n    return '\t';\n  }" if (parenthesized_expression "((p[7] & 0x80) != 0)" ( (binary_expression "(p[7] & 0x80) != 0" (parenthesized_expression "(p[7] & 0x80)" ( (binary_expression "p[7] & 0x80" (subscript_expression "p[7]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n    bVar2 = p[8];\n    *(uint *)v = ((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4;\n    *(uint *)((int)v + 4) = (uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8;\n    return '\t';\n  }" { (expression_statement "bVar2 = p[8];" (assignment_expression "bVar2 = p[8]" identifier = (subscript_expression "p[8]" identifier [ number_literal ])) ;) (expression_statement "*(uint *)v = ((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4;" (assignment_expression "*(uint *)v = ((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4" (pointer_expression "*(uint *)v" * (cast_expression "(uint *)v" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4" (binary_expression "((uint)bVar1 << 0x19) >> 0x1c" (parenthesized_expression "((uint)bVar1 << 0x19)" ( (binary_expression "(uint)bVar1 << 0x19" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) << number_literal) )) >> number_literal) | (binary_expression "uVar3 << 4" identifier << number_literal))) ;) (expression_statement "*(uint *)((int)v + 4) = (uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8;" (assignment_expression "*(uint *)((int)v + 4) = (uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8" (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 "(uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8" (binary_expression "(uint)bVar2 | uVar4 << 0xf" (cast_expression "(uint)bVar2" ( (type_descriptor "uint" type_identifier) ) identifier) | (binary_expression "uVar4 << 0xf" identifier << number_literal)) | (binary_expression "(uVar5 & 0x1fc07f) << 8" (parenthesized_expression "(uVar5 & 0x1fc07f)" ( (binary_expression "uVar5 & 0x1fc07f" identifier & number_literal) )) << number_literal))) ;) (return_statement "return '\t';" return (char_literal "'\t'" ' escape_sequence ') ;) })) (expression_statement "*(uint *)v = uVar3 >> 4;" (assignment_expression "*(uint *)v = uVar3 >> 4" (pointer_expression "*(uint *)v" * (cast_expression "(uint *)v" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "uVar3 >> 4" identifier >> number_literal)) ;) (expression_statement "*(uint *)((int)v + 4) = uVar5 & 0xf01fc07f | uVar4 << 7;" (assignment_expression "*(uint *)((int)v + 4) = uVar5 & 0xf01fc07f | uVar4 << 7" (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 & 0xf01fc07f | uVar4 << 7" (binary_expression "uVar5 & 0xf01fc07f" identifier & number_literal) | (binary_expression "uVar4 << 7" identifier << number_literal))) ;) (return_statement "return '\b';" return (char_literal "'\b'" ' escape_sequence ') ;) })))
(translation_unit "undefined4 FUN_00054914(byte *param_1,uint *param_2)\n\n{\n  byte bVar1;\n  byte bVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  \n  uVar3 = (uint)*param_1;\n  if (-1 < (char)*param_1) {\n    param_2[1] = uVar3;\n    *param_2 = 0;\n    return 1;\n  }\n  uVar5 = (uint)param_1[1];\n  if (-1 < (char)param_1[1]) {\n    param_2[1] = uVar5 | (uVar3 & 0x7f) << 7;\n    *param_2 = 0;\n    return 2;\n  }\n  uVar3 = (uint)param_1[2] | uVar3 << 0xe;\n  if ((param_1[2] & 0x80) == 0) {\n    param_2[1] = (uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f;\n    *param_2 = 0;\n    return 3;\n  }\n  uVar3 = uVar3 & 0x1fc07f;\n  uVar5 = (uint)param_1[3] | uVar5 << 0xe;\n  if ((param_1[3] & 0x80) == 0) {\n    param_2[1] = uVar5 & 0x1fc07f | uVar3 << 7;\n    *param_2 = 0;\n    return 4;\n  }\n  uVar5 = uVar5 & 0x1fc07f;\n  bVar1 = param_1[4];\n  uVar4 = (uint)bVar1 | uVar3 << 0xe;\n  if ((bVar1 & 0x80) == 0) {\n    *param_2 = uVar3 >> 0x12;\n    param_2[1] = uVar5 << 7 | uVar4;\n    return 5;\n  }\n  uVar3 = uVar5 | uVar3 << 7;\n  uVar5 = (uint)param_1[5] | uVar5 << 0xe;\n  if ((param_1[5] & 0x80) == 0) {\n    *param_2 = uVar3 >> 0x12;\n    param_2[1] = uVar5 | (uVar4 & 0x1fc07f) << 7;\n    return 6;\n  }\n  uVar4 = (uint)param_1[6] | uVar4 << 0xe;\n  if ((param_1[6] & 0x80) == 0) {\n    *param_2 = uVar3 >> 0xb;\n    param_2[1] = (uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f;\n    return 7;\n  }\n  uVar4 = uVar4 & 0x1fc07f;\n  uVar5 = (uint)param_1[7] | uVar5 << 0xe;\n  if ((param_1[7] & 0x80) != 0) {\n    bVar2 = param_1[8];\n    *param_2 = ((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4;\n    param_2[1] = (uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8;\n    return 9;\n  }\n  *param_2 = uVar3 >> 4;\n  param_2[1] = uVar5 & 0xf01fc07f | uVar4 << 7;\n  return 8;\n}\n\n" (function_definition "undefined4 FUN_00054914(byte *param_1,uint *param_2)\n\n{\n  byte bVar1;\n  byte bVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  \n  uVar3 = (uint)*param_1;\n  if (-1 < (char)*param_1) {\n    param_2[1] = uVar3;\n    *param_2 = 0;\n    return 1;\n  }\n  uVar5 = (uint)param_1[1];\n  if (-1 < (char)param_1[1]) {\n    param_2[1] = uVar5 | (uVar3 & 0x7f) << 7;\n    *param_2 = 0;\n    return 2;\n  }\n  uVar3 = (uint)param_1[2] | uVar3 << 0xe;\n  if ((param_1[2] & 0x80) == 0) {\n    param_2[1] = (uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f;\n    *param_2 = 0;\n    return 3;\n  }\n  uVar3 = uVar3 & 0x1fc07f;\n  uVar5 = (uint)param_1[3] | uVar5 << 0xe;\n  if ((param_1[3] & 0x80) == 0) {\n    param_2[1] = uVar5 & 0x1fc07f | uVar3 << 7;\n    *param_2 = 0;\n    return 4;\n  }\n  uVar5 = uVar5 & 0x1fc07f;\n  bVar1 = param_1[4];\n  uVar4 = (uint)bVar1 | uVar3 << 0xe;\n  if ((bVar1 & 0x80) == 0) {\n    *param_2 = uVar3 >> 0x12;\n    param_2[1] = uVar5 << 7 | uVar4;\n    return 5;\n  }\n  uVar3 = uVar5 | uVar3 << 7;\n  uVar5 = (uint)param_1[5] | uVar5 << 0xe;\n  if ((param_1[5] & 0x80) == 0) {\n    *param_2 = uVar3 >> 0x12;\n    param_2[1] = uVar5 | (uVar4 & 0x1fc07f) << 7;\n    return 6;\n  }\n  uVar4 = (uint)param_1[6] | uVar4 << 0xe;\n  if ((param_1[6] & 0x80) == 0) {\n    *param_2 = uVar3 >> 0xb;\n    param_2[1] = (uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f;\n    return 7;\n  }\n  uVar4 = uVar4 & 0x1fc07f;\n  uVar5 = (uint)param_1[7] | uVar5 << 0xe;\n  if ((param_1[7] & 0x80) != 0) {\n    bVar2 = param_1[8];\n    *param_2 = ((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4;\n    param_2[1] = (uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8;\n    return 9;\n  }\n  *param_2 = uVar3 >> 4;\n  param_2[1] = uVar5 & 0xf01fc07f | uVar4 << 7;\n  return 8;\n}" type_identifier (function_declarator "FUN_00054914(byte *param_1,uint *param_2)" identifier (parameter_list "(byte *param_1,uint *param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  \n  uVar3 = (uint)*param_1;\n  if (-1 < (char)*param_1) {\n    param_2[1] = uVar3;\n    *param_2 = 0;\n    return 1;\n  }\n  uVar5 = (uint)param_1[1];\n  if (-1 < (char)param_1[1]) {\n    param_2[1] = uVar5 | (uVar3 & 0x7f) << 7;\n    *param_2 = 0;\n    return 2;\n  }\n  uVar3 = (uint)param_1[2] | uVar3 << 0xe;\n  if ((param_1[2] & 0x80) == 0) {\n    param_2[1] = (uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f;\n    *param_2 = 0;\n    return 3;\n  }\n  uVar3 = uVar3 & 0x1fc07f;\n  uVar5 = (uint)param_1[3] | uVar5 << 0xe;\n  if ((param_1[3] & 0x80) == 0) {\n    param_2[1] = uVar5 & 0x1fc07f | uVar3 << 7;\n    *param_2 = 0;\n    return 4;\n  }\n  uVar5 = uVar5 & 0x1fc07f;\n  bVar1 = param_1[4];\n  uVar4 = (uint)bVar1 | uVar3 << 0xe;\n  if ((bVar1 & 0x80) == 0) {\n    *param_2 = uVar3 >> 0x12;\n    param_2[1] = uVar5 << 7 | uVar4;\n    return 5;\n  }\n  uVar3 = uVar5 | uVar3 << 7;\n  uVar5 = (uint)param_1[5] | uVar5 << 0xe;\n  if ((param_1[5] & 0x80) == 0) {\n    *param_2 = uVar3 >> 0x12;\n    param_2[1] = uVar5 | (uVar4 & 0x1fc07f) << 7;\n    return 6;\n  }\n  uVar4 = (uint)param_1[6] | uVar4 << 0xe;\n  if ((param_1[6] & 0x80) == 0) {\n    *param_2 = uVar3 >> 0xb;\n    param_2[1] = (uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f;\n    return 7;\n  }\n  uVar4 = uVar4 & 0x1fc07f;\n  uVar5 = (uint)param_1[7] | uVar5 << 0xe;\n  if ((param_1[7] & 0x80) != 0) {\n    bVar2 = param_1[8];\n    *param_2 = ((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4;\n    param_2[1] = (uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8;\n    return 9;\n  }\n  *param_2 = uVar3 >> 4;\n  param_2[1] = uVar5 & 0xf01fc07f | uVar4 << 7;\n  return 8;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (expression_statement "uVar3 = (uint)*param_1;" (assignment_expression "uVar3 = (uint)*param_1" identifier = (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (if_statement "if (-1 < (char)*param_1) {\n    param_2[1] = uVar3;\n    *param_2 = 0;\n    return 1;\n  }" if (parenthesized_expression "(-1 < (char)*param_1)" ( (binary_expression "-1 < (char)*param_1" number_literal < (cast_expression "(char)*param_1" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*param_1" * identifier))) )) (compound_statement "{\n    param_2[1] = uVar3;\n    *param_2 = 0;\n    return 1;\n  }" { (expression_statement "param_2[1] = uVar3;" (assignment_expression "param_2[1] = uVar3" (subscript_expression "param_2[1]" identifier [ number_literal ]) = 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 "uVar5 = (uint)param_1[1];" (assignment_expression "uVar5 = (uint)param_1[1]" identifier = (cast_expression "(uint)param_1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (if_statement "if (-1 < (char)param_1[1]) {\n    param_2[1] = uVar5 | (uVar3 & 0x7f) << 7;\n    *param_2 = 0;\n    return 2;\n  }" if (parenthesized_expression "(-1 < (char)param_1[1])" ( (binary_expression "-1 < (char)param_1[1]" number_literal < (cast_expression "(char)param_1[1]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    param_2[1] = uVar5 | (uVar3 & 0x7f) << 7;\n    *param_2 = 0;\n    return 2;\n  }" { (expression_statement "param_2[1] = uVar5 | (uVar3 & 0x7f) << 7;" (assignment_expression "param_2[1] = uVar5 | (uVar3 & 0x7f) << 7" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "uVar5 | (uVar3 & 0x7f) << 7" identifier | (binary_expression "(uVar3 & 0x7f) << 7" (parenthesized_expression "(uVar3 & 0x7f)" ( (binary_expression "uVar3 & 0x7f" identifier & number_literal) )) << number_literal))) ;) (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 "uVar3 = (uint)param_1[2] | uVar3 << 0xe;" (assignment_expression "uVar3 = (uint)param_1[2] | uVar3 << 0xe" identifier = (binary_expression "(uint)param_1[2] | uVar3 << 0xe" (cast_expression "(uint)param_1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) | (binary_expression "uVar3 << 0xe" identifier << number_literal))) ;) (if_statement "if ((param_1[2] & 0x80) == 0) {\n    param_2[1] = (uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f;\n    *param_2 = 0;\n    return 3;\n  }" if (parenthesized_expression "((param_1[2] & 0x80) == 0)" ( (binary_expression "(param_1[2] & 0x80) == 0" (parenthesized_expression "(param_1[2] & 0x80)" ( (binary_expression "param_1[2] & 0x80" (subscript_expression "param_1[2]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    param_2[1] = (uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f;\n    *param_2 = 0;\n    return 3;\n  }" { (expression_statement "param_2[1] = (uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f;" (assignment_expression "param_2[1] = (uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "(uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f" (binary_expression "(uVar5 & 0x7f) << 7" (parenthesized_expression "(uVar5 & 0x7f)" ( (binary_expression "uVar5 & 0x7f" identifier & number_literal) )) << number_literal) | (binary_expression "uVar3 & 0x1fc07f" identifier & number_literal))) ;) (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 "uVar3 = uVar3 & 0x1fc07f;" (assignment_expression "uVar3 = uVar3 & 0x1fc07f" identifier = (binary_expression "uVar3 & 0x1fc07f" identifier & number_literal)) ;) (expression_statement "uVar5 = (uint)param_1[3] | uVar5 << 0xe;" (assignment_expression "uVar5 = (uint)param_1[3] | uVar5 << 0xe" identifier = (binary_expression "(uint)param_1[3] | uVar5 << 0xe" (cast_expression "(uint)param_1[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[3]" identifier [ number_literal ])) | (binary_expression "uVar5 << 0xe" identifier << number_literal))) ;) (if_statement "if ((param_1[3] & 0x80) == 0) {\n    param_2[1] = uVar5 & 0x1fc07f | uVar3 << 7;\n    *param_2 = 0;\n    return 4;\n  }" if (parenthesized_expression "((param_1[3] & 0x80) == 0)" ( (binary_expression "(param_1[3] & 0x80) == 0" (parenthesized_expression "(param_1[3] & 0x80)" ( (binary_expression "param_1[3] & 0x80" (subscript_expression "param_1[3]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    param_2[1] = uVar5 & 0x1fc07f | uVar3 << 7;\n    *param_2 = 0;\n    return 4;\n  }" { (expression_statement "param_2[1] = uVar5 & 0x1fc07f | uVar3 << 7;" (assignment_expression "param_2[1] = uVar5 & 0x1fc07f | uVar3 << 7" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "uVar5 & 0x1fc07f | uVar3 << 7" (binary_expression "uVar5 & 0x1fc07f" identifier & number_literal) | (binary_expression "uVar3 << 7" identifier << number_literal))) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return 4;" return number_literal ;) })) (expression_statement "uVar5 = uVar5 & 0x1fc07f;" (assignment_expression "uVar5 = uVar5 & 0x1fc07f" identifier = (binary_expression "uVar5 & 0x1fc07f" identifier & number_literal)) ;) (expression_statement "bVar1 = param_1[4];" (assignment_expression "bVar1 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = (uint)bVar1 | uVar3 << 0xe;" (assignment_expression "uVar4 = (uint)bVar1 | uVar3 << 0xe" identifier = (binary_expression "(uint)bVar1 | uVar3 << 0xe" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) | (binary_expression "uVar3 << 0xe" identifier << number_literal))) ;) (if_statement "if ((bVar1 & 0x80) == 0) {\n    *param_2 = uVar3 >> 0x12;\n    param_2[1] = uVar5 << 7 | uVar4;\n    return 5;\n  }" if (parenthesized_expression "((bVar1 & 0x80) == 0)" ( (binary_expression "(bVar1 & 0x80) == 0" (parenthesized_expression "(bVar1 & 0x80)" ( (binary_expression "bVar1 & 0x80" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    *param_2 = uVar3 >> 0x12;\n    param_2[1] = uVar5 << 7 | uVar4;\n    return 5;\n  }" { (expression_statement "*param_2 = uVar3 >> 0x12;" (assignment_expression "*param_2 = uVar3 >> 0x12" (pointer_expression "*param_2" * identifier) = (binary_expression "uVar3 >> 0x12" identifier >> number_literal)) ;) (expression_statement "param_2[1] = uVar5 << 7 | uVar4;" (assignment_expression "param_2[1] = uVar5 << 7 | uVar4" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "uVar5 << 7 | uVar4" (binary_expression "uVar5 << 7" identifier << number_literal) | identifier)) ;) (return_statement "return 5;" return number_literal ;) })) (expression_statement "uVar3 = uVar5 | uVar3 << 7;" (assignment_expression "uVar3 = uVar5 | uVar3 << 7" identifier = (binary_expression "uVar5 | uVar3 << 7" identifier | (binary_expression "uVar3 << 7" identifier << number_literal))) ;) (expression_statement "uVar5 = (uint)param_1[5] | uVar5 << 0xe;" (assignment_expression "uVar5 = (uint)param_1[5] | uVar5 << 0xe" identifier = (binary_expression "(uint)param_1[5] | uVar5 << 0xe" (cast_expression "(uint)param_1[5]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[5]" identifier [ number_literal ])) | (binary_expression "uVar5 << 0xe" identifier << number_literal))) ;) (if_statement "if ((param_1[5] & 0x80) == 0) {\n    *param_2 = uVar3 >> 0x12;\n    param_2[1] = uVar5 | (uVar4 & 0x1fc07f) << 7;\n    return 6;\n  }" if (parenthesized_expression "((param_1[5] & 0x80) == 0)" ( (binary_expression "(param_1[5] & 0x80) == 0" (parenthesized_expression "(param_1[5] & 0x80)" ( (binary_expression "param_1[5] & 0x80" (subscript_expression "param_1[5]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    *param_2 = uVar3 >> 0x12;\n    param_2[1] = uVar5 | (uVar4 & 0x1fc07f) << 7;\n    return 6;\n  }" { (expression_statement "*param_2 = uVar3 >> 0x12;" (assignment_expression "*param_2 = uVar3 >> 0x12" (pointer_expression "*param_2" * identifier) = (binary_expression "uVar3 >> 0x12" identifier >> number_literal)) ;) (expression_statement "param_2[1] = uVar5 | (uVar4 & 0x1fc07f) << 7;" (assignment_expression "param_2[1] = uVar5 | (uVar4 & 0x1fc07f) << 7" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "uVar5 | (uVar4 & 0x1fc07f) << 7" identifier | (binary_expression "(uVar4 & 0x1fc07f) << 7" (parenthesized_expression "(uVar4 & 0x1fc07f)" ( (binary_expression "uVar4 & 0x1fc07f" identifier & number_literal) )) << number_literal))) ;) (return_statement "return 6;" return number_literal ;) })) (expression_statement "uVar4 = (uint)param_1[6] | uVar4 << 0xe;" (assignment_expression "uVar4 = (uint)param_1[6] | uVar4 << 0xe" identifier = (binary_expression "(uint)param_1[6] | uVar4 << 0xe" (cast_expression "(uint)param_1[6]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[6]" identifier [ number_literal ])) | (binary_expression "uVar4 << 0xe" identifier << number_literal))) ;) (if_statement "if ((param_1[6] & 0x80) == 0) {\n    *param_2 = uVar3 >> 0xb;\n    param_2[1] = (uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f;\n    return 7;\n  }" if (parenthesized_expression "((param_1[6] & 0x80) == 0)" ( (binary_expression "(param_1[6] & 0x80) == 0" (parenthesized_expression "(param_1[6] & 0x80)" ( (binary_expression "param_1[6] & 0x80" (subscript_expression "param_1[6]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    *param_2 = uVar3 >> 0xb;\n    param_2[1] = (uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f;\n    return 7;\n  }" { (expression_statement "*param_2 = uVar3 >> 0xb;" (assignment_expression "*param_2 = uVar3 >> 0xb" (pointer_expression "*param_2" * identifier) = (binary_expression "uVar3 >> 0xb" identifier >> number_literal)) ;) (expression_statement "param_2[1] = (uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f;" (assignment_expression "param_2[1] = (uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "(uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f" (binary_expression "(uVar5 & 0x1fc07f) << 7" (parenthesized_expression "(uVar5 & 0x1fc07f)" ( (binary_expression "uVar5 & 0x1fc07f" identifier & number_literal) )) << number_literal) | (binary_expression "uVar4 & 0xf01fc07f" identifier & number_literal))) ;) (return_statement "return 7;" return number_literal ;) })) (expression_statement "uVar4 = uVar4 & 0x1fc07f;" (assignment_expression "uVar4 = uVar4 & 0x1fc07f" identifier = (binary_expression "uVar4 & 0x1fc07f" identifier & number_literal)) ;) (expression_statement "uVar5 = (uint)param_1[7] | uVar5 << 0xe;" (assignment_expression "uVar5 = (uint)param_1[7] | uVar5 << 0xe" identifier = (binary_expression "(uint)param_1[7] | uVar5 << 0xe" (cast_expression "(uint)param_1[7]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[7]" identifier [ number_literal ])) | (binary_expression "uVar5 << 0xe" identifier << number_literal))) ;) (if_statement "if ((param_1[7] & 0x80) != 0) {\n    bVar2 = param_1[8];\n    *param_2 = ((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4;\n    param_2[1] = (uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8;\n    return 9;\n  }" if (parenthesized_expression "((param_1[7] & 0x80) != 0)" ( (binary_expression "(param_1[7] & 0x80) != 0" (parenthesized_expression "(param_1[7] & 0x80)" ( (binary_expression "param_1[7] & 0x80" (subscript_expression "param_1[7]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n    bVar2 = param_1[8];\n    *param_2 = ((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4;\n    param_2[1] = (uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8;\n    return 9;\n  }" { (expression_statement "bVar2 = param_1[8];" (assignment_expression "bVar2 = param_1[8]" identifier = (subscript_expression "param_1[8]" identifier [ number_literal ])) ;) (expression_statement "*param_2 = ((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4;" (assignment_expression "*param_2 = ((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4" (pointer_expression "*param_2" * identifier) = (binary_expression "((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4" (binary_expression "((uint)bVar1 << 0x19) >> 0x1c" (parenthesized_expression "((uint)bVar1 << 0x19)" ( (binary_expression "(uint)bVar1 << 0x19" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) << number_literal) )) >> number_literal) | (binary_expression "uVar3 << 4" identifier << number_literal))) ;) (expression_statement "param_2[1] = (uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8;" (assignment_expression "param_2[1] = (uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "(uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8" (binary_expression "(uint)bVar2 | uVar4 << 0xf" (cast_expression "(uint)bVar2" ( (type_descriptor "uint" type_identifier) ) identifier) | (binary_expression "uVar4 << 0xf" identifier << number_literal)) | (binary_expression "(uVar5 & 0x1fc07f) << 8" (parenthesized_expression "(uVar5 & 0x1fc07f)" ( (binary_expression "uVar5 & 0x1fc07f" identifier & number_literal) )) << number_literal))) ;) (return_statement "return 9;" return number_literal ;) })) (expression_statement "*param_2 = uVar3 >> 4;" (assignment_expression "*param_2 = uVar3 >> 4" (pointer_expression "*param_2" * identifier) = (binary_expression "uVar3 >> 4" identifier >> number_literal)) ;) (expression_statement "param_2[1] = uVar5 & 0xf01fc07f | uVar4 << 7;" (assignment_expression "param_2[1] = uVar5 & 0xf01fc07f | uVar4 << 7" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "uVar5 & 0xf01fc07f | uVar4 << 7" (binary_expression "uVar5 & 0xf01fc07f" identifier & number_literal) | (binary_expression "uVar4 << 7" identifier << number_literal))) ;) (return_statement "return 8;" 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 IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) | (binary_expression IDENT << LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT) | (binary_expression IDENT & LIT))) ;) (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 ])) | (binary_expression IDENT << LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (binary_expression IDENT & LIT) | (binary_expression IDENT << LIT))) ;) (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 = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) | (binary_expression IDENT << LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (binary_expression IDENT << LIT) | IDENT)) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | (binary_expression IDENT << LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) | (binary_expression IDENT << LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) | (binary_expression IDENT << LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT) | (binary_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 ])) | (binary_expression IDENT << LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) << LIT) )) >> LIT) | (binary_expression IDENT << LIT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) | (binary_expression IDENT << LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (binary_expression IDENT & LIT) | (binary_expression IDENT << LIT))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00054914(byte *param_1,uint *param_2)\n\n{\n  byte bVar1;\n  byte bVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  \n  uVar3 = (uint)*param_1;\n  if (-1 < (char)*param_1) {\n    param_2[1] = uVar3;\n    *param_2 = 0;\n    return 1;\n  }\n  uVar5 = (uint)param_1[1];\n  if (-1 < (char)param_1[1]) {\n    param_2[1] = uVar5 | (uVar3 & 0x7f) << 7;\n    *param_2 = 0;\n    return 2;\n  }\n  uVar3 = (uint)param_1[2] | uVar3 << 0xe;\n  if ((param_1[2] & 0x80) == 0) {\n    param_2[1] = (uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f;\n    *param_2 = 0;\n    return 3;\n  }\n  uVar3 = uVar3 & 0x1fc07f;\n  uVar5 = (uint)param_1[3] | uVar5 << 0xe;\n  if ((param_1[3] & 0x80) == 0) {\n    param_2[1] = uVar5 & 0x1fc07f | uVar3 << 7;\n    *param_2 = 0;\n    return 4;\n  }\n  uVar5 = uVar5 & 0x1fc07f;\n  bVar1 = param_1[4];\n  uVar4 = (uint)bVar1 | uVar3 << 0xe;\n  if ((bVar1 & 0x80) == 0) {\n    *param_2 = uVar3 >> 0x12;\n    param_2[1] = uVar5 << 7 | uVar4;\n    return 5;\n  }\n  uVar3 = uVar5 | uVar3 << 7;\n  uVar5 = (uint)param_1[5] | uVar5 << 0xe;\n  if ((param_1[5] & 0x80) == 0) {\n    *param_2 = uVar3 >> 0x12;\n    param_2[1] = uVar5 | (uVar4 & 0x1fc07f) << 7;\n    return 6;\n  }\n  uVar4 = (uint)param_1[6] | uVar4 << 0xe;\n  if ((param_1[6] & 0x80) == 0) {\n    *param_2 = uVar3 >> 0xb;\n    param_2[1] = (uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f;\n    return 7;\n  }\n  uVar4 = uVar4 & 0x1fc07f;\n  uVar5 = (uint)param_1[7] | uVar5 << 0xe;\n  if ((param_1[7] & 0x80) != 0) {\n    bVar2 = param_1[8];\n    *param_2 = ((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4;\n    param_2[1] = (uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8;\n    return 9;\n  }\n  *param_2 = uVar3 >> 4;\n  param_2[1] = uVar5 & 0xf01fc07f | uVar4 << 7;\n  return 8;\n}" (type_identifier "undefined4") (function_declarator "FUN_00054914(byte *param_1,uint *param_2)" (identifier "FUN_00054914") (parameter_list "(byte *param_1,uint *param_2)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint *param_2" (type_identifier "uint") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  \n  uVar3 = (uint)*param_1;\n  if (-1 < (char)*param_1) {\n    param_2[1] = uVar3;\n    *param_2 = 0;\n    return 1;\n  }\n  uVar5 = (uint)param_1[1];\n  if (-1 < (char)param_1[1]) {\n    param_2[1] = uVar5 | (uVar3 & 0x7f) << 7;\n    *param_2 = 0;\n    return 2;\n  }\n  uVar3 = (uint)param_1[2] | uVar3 << 0xe;\n  if ((param_1[2] & 0x80) == 0) {\n    param_2[1] = (uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f;\n    *param_2 = 0;\n    return 3;\n  }\n  uVar3 = uVar3 & 0x1fc07f;\n  uVar5 = (uint)param_1[3] | uVar5 << 0xe;\n  if ((param_1[3] & 0x80) == 0) {\n    param_2[1] = uVar5 & 0x1fc07f | uVar3 << 7;\n    *param_2 = 0;\n    return 4;\n  }\n  uVar5 = uVar5 & 0x1fc07f;\n  bVar1 = param_1[4];\n  uVar4 = (uint)bVar1 | uVar3 << 0xe;\n  if ((bVar1 & 0x80) == 0) {\n    *param_2 = uVar3 >> 0x12;\n    param_2[1] = uVar5 << 7 | uVar4;\n    return 5;\n  }\n  uVar3 = uVar5 | uVar3 << 7;\n  uVar5 = (uint)param_1[5] | uVar5 << 0xe;\n  if ((param_1[5] & 0x80) == 0) {\n    *param_2 = uVar3 >> 0x12;\n    param_2[1] = uVar5 | (uVar4 & 0x1fc07f) << 7;\n    return 6;\n  }\n  uVar4 = (uint)param_1[6] | uVar4 << 0xe;\n  if ((param_1[6] & 0x80) == 0) {\n    *param_2 = uVar3 >> 0xb;\n    param_2[1] = (uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f;\n    return 7;\n  }\n  uVar4 = uVar4 & 0x1fc07f;\n  uVar5 = (uint)param_1[7] | uVar5 << 0xe;\n  if ((param_1[7] & 0x80) != 0) {\n    bVar2 = param_1[8];\n    *param_2 = ((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4;\n    param_2[1] = (uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8;\n    return 9;\n  }\n  *param_2 = uVar3 >> 4;\n  param_2[1] = uVar5 & 0xf01fc07f | uVar4 << 7;\n  return 8;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (expression_statement "uVar3 = (uint)*param_1;" (assignment_expression "uVar3 = (uint)*param_1" (identifier "uVar3") (= "=") (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (-1 < (char)*param_1) {\n    param_2[1] = uVar3;\n    *param_2 = 0;\n    return 1;\n  }" (if "if") (parenthesized_expression "(-1 < (char)*param_1)" (( "(") (binary_expression "-1 < (char)*param_1" (number_literal "-1") (< "<") (cast_expression "(char)*param_1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) () ")")) (compound_statement "{\n    param_2[1] = uVar3;\n    *param_2 = 0;\n    return 1;\n  }" ({ "{") (expression_statement "param_2[1] = uVar3;" (assignment_expression "param_2[1] = uVar3" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (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 "uVar5 = (uint)param_1[1];" (assignment_expression "uVar5 = (uint)param_1[1]" (identifier "uVar5") (= "=") (cast_expression "(uint)param_1[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if (-1 < (char)param_1[1]) {\n    param_2[1] = uVar5 | (uVar3 & 0x7f) << 7;\n    *param_2 = 0;\n    return 2;\n  }" (if "if") (parenthesized_expression "(-1 < (char)param_1[1])" (( "(") (binary_expression "-1 < (char)param_1[1]" (number_literal "-1") (< "<") (cast_expression "(char)param_1[1]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (compound_statement "{\n    param_2[1] = uVar5 | (uVar3 & 0x7f) << 7;\n    *param_2 = 0;\n    return 2;\n  }" ({ "{") (expression_statement "param_2[1] = uVar5 | (uVar3 & 0x7f) << 7;" (assignment_expression "param_2[1] = uVar5 | (uVar3 & 0x7f) << 7" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "uVar5 | (uVar3 & 0x7f) << 7" (identifier "uVar5") (| "|") (binary_expression "(uVar3 & 0x7f) << 7" (parenthesized_expression "(uVar3 & 0x7f)" (( "(") (binary_expression "uVar3 & 0x7f" (identifier "uVar3") (& "&") (number_literal "0x7f")) () ")")) (<< "<<") (number_literal "7")))) (; ";")) (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 "uVar3 = (uint)param_1[2] | uVar3 << 0xe;" (assignment_expression "uVar3 = (uint)param_1[2] | uVar3 << 0xe" (identifier "uVar3") (= "=") (binary_expression "(uint)param_1[2] | uVar3 << 0xe" (cast_expression "(uint)param_1[2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (| "|") (binary_expression "uVar3 << 0xe" (identifier "uVar3") (<< "<<") (number_literal "0xe")))) (; ";")) (if_statement "if ((param_1[2] & 0x80) == 0) {\n    param_2[1] = (uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f;\n    *param_2 = 0;\n    return 3;\n  }" (if "if") (parenthesized_expression "((param_1[2] & 0x80) == 0)" (( "(") (binary_expression "(param_1[2] & 0x80) == 0" (parenthesized_expression "(param_1[2] & 0x80)" (( "(") (binary_expression "param_1[2] & 0x80" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (& "&") (number_literal "0x80")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_2[1] = (uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f;\n    *param_2 = 0;\n    return 3;\n  }" ({ "{") (expression_statement "param_2[1] = (uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f;" (assignment_expression "param_2[1] = (uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "(uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f" (binary_expression "(uVar5 & 0x7f) << 7" (parenthesized_expression "(uVar5 & 0x7f)" (( "(") (binary_expression "uVar5 & 0x7f" (identifier "uVar5") (& "&") (number_literal "0x7f")) () ")")) (<< "<<") (number_literal "7")) (| "|") (binary_expression "uVar3 & 0x1fc07f" (identifier "uVar3") (& "&") (number_literal "0x1fc07f")))) (; ";")) (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 "uVar3 = uVar3 & 0x1fc07f;" (assignment_expression "uVar3 = uVar3 & 0x1fc07f" (identifier "uVar3") (= "=") (binary_expression "uVar3 & 0x1fc07f" (identifier "uVar3") (& "&") (number_literal "0x1fc07f"))) (; ";")) (expression_statement "uVar5 = (uint)param_1[3] | uVar5 << 0xe;" (assignment_expression "uVar5 = (uint)param_1[3] | uVar5 << 0xe" (identifier "uVar5") (= "=") (binary_expression "(uint)param_1[3] | uVar5 << 0xe" (cast_expression "(uint)param_1[3]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (| "|") (binary_expression "uVar5 << 0xe" (identifier "uVar5") (<< "<<") (number_literal "0xe")))) (; ";")) (if_statement "if ((param_1[3] & 0x80) == 0) {\n    param_2[1] = uVar5 & 0x1fc07f | uVar3 << 7;\n    *param_2 = 0;\n    return 4;\n  }" (if "if") (parenthesized_expression "((param_1[3] & 0x80) == 0)" (( "(") (binary_expression "(param_1[3] & 0x80) == 0" (parenthesized_expression "(param_1[3] & 0x80)" (( "(") (binary_expression "param_1[3] & 0x80" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (& "&") (number_literal "0x80")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_2[1] = uVar5 & 0x1fc07f | uVar3 << 7;\n    *param_2 = 0;\n    return 4;\n  }" ({ "{") (expression_statement "param_2[1] = uVar5 & 0x1fc07f | uVar3 << 7;" (assignment_expression "param_2[1] = uVar5 & 0x1fc07f | uVar3 << 7" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "uVar5 & 0x1fc07f | uVar3 << 7" (binary_expression "uVar5 & 0x1fc07f" (identifier "uVar5") (& "&") (number_literal "0x1fc07f")) (| "|") (binary_expression "uVar3 << 7" (identifier "uVar3") (<< "<<") (number_literal "7")))) (; ";")) (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") (; ";")) (} "}"))) (expression_statement "uVar5 = uVar5 & 0x1fc07f;" (assignment_expression "uVar5 = uVar5 & 0x1fc07f" (identifier "uVar5") (= "=") (binary_expression "uVar5 & 0x1fc07f" (identifier "uVar5") (& "&") (number_literal "0x1fc07f"))) (; ";")) (expression_statement "bVar1 = param_1[4];" (assignment_expression "bVar1 = param_1[4]" (identifier "bVar1") (= "=") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "uVar4 = (uint)bVar1 | uVar3 << 0xe;" (assignment_expression "uVar4 = (uint)bVar1 | uVar3 << 0xe" (identifier "uVar4") (= "=") (binary_expression "(uint)bVar1 | uVar3 << 0xe" (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1")) (| "|") (binary_expression "uVar3 << 0xe" (identifier "uVar3") (<< "<<") (number_literal "0xe")))) (; ";")) (if_statement "if ((bVar1 & 0x80) == 0) {\n    *param_2 = uVar3 >> 0x12;\n    param_2[1] = uVar5 << 7 | uVar4;\n    return 5;\n  }" (if "if") (parenthesized_expression "((bVar1 & 0x80) == 0)" (( "(") (binary_expression "(bVar1 & 0x80) == 0" (parenthesized_expression "(bVar1 & 0x80)" (( "(") (binary_expression "bVar1 & 0x80" (identifier "bVar1") (& "&") (number_literal "0x80")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *param_2 = uVar3 >> 0x12;\n    param_2[1] = uVar5 << 7 | uVar4;\n    return 5;\n  }" ({ "{") (expression_statement "*param_2 = uVar3 >> 0x12;" (assignment_expression "*param_2 = uVar3 >> 0x12" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "uVar3 >> 0x12" (identifier "uVar3") (>> ">>") (number_literal "0x12"))) (; ";")) (expression_statement "param_2[1] = uVar5 << 7 | uVar4;" (assignment_expression "param_2[1] = uVar5 << 7 | uVar4" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "uVar5 << 7 | uVar4" (binary_expression "uVar5 << 7" (identifier "uVar5") (<< "<<") (number_literal "7")) (| "|") (identifier "uVar4"))) (; ";")) (return_statement "return 5;" (return "return") (number_literal "5") (; ";")) (} "}"))) (expression_statement "uVar3 = uVar5 | uVar3 << 7;" (assignment_expression "uVar3 = uVar5 | uVar3 << 7" (identifier "uVar3") (= "=") (binary_expression "uVar5 | uVar3 << 7" (identifier "uVar5") (| "|") (binary_expression "uVar3 << 7" (identifier "uVar3") (<< "<<") (number_literal "7")))) (; ";")) (expression_statement "uVar5 = (uint)param_1[5] | uVar5 << 0xe;" (assignment_expression "uVar5 = (uint)param_1[5] | uVar5 << 0xe" (identifier "uVar5") (= "=") (binary_expression "(uint)param_1[5] | uVar5 << 0xe" (cast_expression "(uint)param_1[5]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]"))) (| "|") (binary_expression "uVar5 << 0xe" (identifier "uVar5") (<< "<<") (number_literal "0xe")))) (; ";")) (if_statement "if ((param_1[5] & 0x80) == 0) {\n    *param_2 = uVar3 >> 0x12;\n    param_2[1] = uVar5 | (uVar4 & 0x1fc07f) << 7;\n    return 6;\n  }" (if "if") (parenthesized_expression "((param_1[5] & 0x80) == 0)" (( "(") (binary_expression "(param_1[5] & 0x80) == 0" (parenthesized_expression "(param_1[5] & 0x80)" (( "(") (binary_expression "param_1[5] & 0x80" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (& "&") (number_literal "0x80")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *param_2 = uVar3 >> 0x12;\n    param_2[1] = uVar5 | (uVar4 & 0x1fc07f) << 7;\n    return 6;\n  }" ({ "{") (expression_statement "*param_2 = uVar3 >> 0x12;" (assignment_expression "*param_2 = uVar3 >> 0x12" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "uVar3 >> 0x12" (identifier "uVar3") (>> ">>") (number_literal "0x12"))) (; ";")) (expression_statement "param_2[1] = uVar5 | (uVar4 & 0x1fc07f) << 7;" (assignment_expression "param_2[1] = uVar5 | (uVar4 & 0x1fc07f) << 7" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "uVar5 | (uVar4 & 0x1fc07f) << 7" (identifier "uVar5") (| "|") (binary_expression "(uVar4 & 0x1fc07f) << 7" (parenthesized_expression "(uVar4 & 0x1fc07f)" (( "(") (binary_expression "uVar4 & 0x1fc07f" (identifier "uVar4") (& "&") (number_literal "0x1fc07f")) () ")")) (<< "<<") (number_literal "7")))) (; ";")) (return_statement "return 6;" (return "return") (number_literal "6") (; ";")) (} "}"))) (expression_statement "uVar4 = (uint)param_1[6] | uVar4 << 0xe;" (assignment_expression "uVar4 = (uint)param_1[6] | uVar4 << 0xe" (identifier "uVar4") (= "=") (binary_expression "(uint)param_1[6] | uVar4 << 0xe" (cast_expression "(uint)param_1[6]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]"))) (| "|") (binary_expression "uVar4 << 0xe" (identifier "uVar4") (<< "<<") (number_literal "0xe")))) (; ";")) (if_statement "if ((param_1[6] & 0x80) == 0) {\n    *param_2 = uVar3 >> 0xb;\n    param_2[1] = (uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f;\n    return 7;\n  }" (if "if") (parenthesized_expression "((param_1[6] & 0x80) == 0)" (( "(") (binary_expression "(param_1[6] & 0x80) == 0" (parenthesized_expression "(param_1[6] & 0x80)" (( "(") (binary_expression "param_1[6] & 0x80" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (& "&") (number_literal "0x80")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *param_2 = uVar3 >> 0xb;\n    param_2[1] = (uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f;\n    return 7;\n  }" ({ "{") (expression_statement "*param_2 = uVar3 >> 0xb;" (assignment_expression "*param_2 = uVar3 >> 0xb" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "uVar3 >> 0xb" (identifier "uVar3") (>> ">>") (number_literal "0xb"))) (; ";")) (expression_statement "param_2[1] = (uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f;" (assignment_expression "param_2[1] = (uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "(uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f" (binary_expression "(uVar5 & 0x1fc07f) << 7" (parenthesized_expression "(uVar5 & 0x1fc07f)" (( "(") (binary_expression "uVar5 & 0x1fc07f" (identifier "uVar5") (& "&") (number_literal "0x1fc07f")) () ")")) (<< "<<") (number_literal "7")) (| "|") (binary_expression "uVar4 & 0xf01fc07f" (identifier "uVar4") (& "&") (number_literal "0xf01fc07f")))) (; ";")) (return_statement "return 7;" (return "return") (number_literal "7") (; ";")) (} "}"))) (expression_statement "uVar4 = uVar4 & 0x1fc07f;" (assignment_expression "uVar4 = uVar4 & 0x1fc07f" (identifier "uVar4") (= "=") (binary_expression "uVar4 & 0x1fc07f" (identifier "uVar4") (& "&") (number_literal "0x1fc07f"))) (; ";")) (expression_statement "uVar5 = (uint)param_1[7] | uVar5 << 0xe;" (assignment_expression "uVar5 = (uint)param_1[7] | uVar5 << 0xe" (identifier "uVar5") (= "=") (binary_expression "(uint)param_1[7] | uVar5 << 0xe" (cast_expression "(uint)param_1[7]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]"))) (| "|") (binary_expression "uVar5 << 0xe" (identifier "uVar5") (<< "<<") (number_literal "0xe")))) (; ";")) (if_statement "if ((param_1[7] & 0x80) != 0) {\n    bVar2 = param_1[8];\n    *param_2 = ((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4;\n    param_2[1] = (uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8;\n    return 9;\n  }" (if "if") (parenthesized_expression "((param_1[7] & 0x80) != 0)" (( "(") (binary_expression "(param_1[7] & 0x80) != 0" (parenthesized_expression "(param_1[7] & 0x80)" (( "(") (binary_expression "param_1[7] & 0x80" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (& "&") (number_literal "0x80")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    bVar2 = param_1[8];\n    *param_2 = ((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4;\n    param_2[1] = (uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8;\n    return 9;\n  }" ({ "{") (expression_statement "bVar2 = param_1[8];" (assignment_expression "bVar2 = param_1[8]" (identifier "bVar2") (= "=") (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]"))) (; ";")) (expression_statement "*param_2 = ((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4;" (assignment_expression "*param_2 = ((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4" (binary_expression "((uint)bVar1 << 0x19) >> 0x1c" (parenthesized_expression "((uint)bVar1 << 0x19)" (( "(") (binary_expression "(uint)bVar1 << 0x19" (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1")) (<< "<<") (number_literal "0x19")) () ")")) (>> ">>") (number_literal "0x1c")) (| "|") (binary_expression "uVar3 << 4" (identifier "uVar3") (<< "<<") (number_literal "4")))) (; ";")) (expression_statement "param_2[1] = (uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8;" (assignment_expression "param_2[1] = (uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "(uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8" (binary_expression "(uint)bVar2 | uVar4 << 0xf" (cast_expression "(uint)bVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar2")) (| "|") (binary_expression "uVar4 << 0xf" (identifier "uVar4") (<< "<<") (number_literal "0xf"))) (| "|") (binary_expression "(uVar5 & 0x1fc07f) << 8" (parenthesized_expression "(uVar5 & 0x1fc07f)" (( "(") (binary_expression "uVar5 & 0x1fc07f" (identifier "uVar5") (& "&") (number_literal "0x1fc07f")) () ")")) (<< "<<") (number_literal "8")))) (; ";")) (return_statement "return 9;" (return "return") (number_literal "9") (; ";")) (} "}"))) (expression_statement "*param_2 = uVar3 >> 4;" (assignment_expression "*param_2 = uVar3 >> 4" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "uVar3 >> 4" (identifier "uVar3") (>> ">>") (number_literal "4"))) (; ";")) (expression_statement "param_2[1] = uVar5 & 0xf01fc07f | uVar4 << 7;" (assignment_expression "param_2[1] = uVar5 & 0xf01fc07f | uVar4 << 7" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "uVar5 & 0xf01fc07f | uVar4 << 7" (binary_expression "uVar5 & 0xf01fc07f" (identifier "uVar5") (& "&") (number_literal "0xf01fc07f")) (| "|") (binary_expression "uVar4 << 7" (identifier "uVar4") (<< "<<") (number_literal "7")))) (; ";")) (return_statement "return 8;" (return "return") (number_literal "8") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement (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: (binary_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))) (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: (binary_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))) (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: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (binary_expression left: (identifier) 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: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier)))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_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: (binary_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))) (return_statement (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: (binary_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)) right: (binary_expression left: (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: (binary_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (binary_expression left: (identifier) right: (number_literal))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))) (return_statement (number_literal)))))

undefined4 MASKED(byte *param_1,uint *param_2)

{
  byte bVar1;
  byte bVar2;
  uint uVar3;
  uint uVar4;
  uint uVar5;
  
  uVar3 = (uint)*param_1;
  if (-1 < (char)*param_1) {
    param_2[1] = uVar3;
    *param_2 = 0;
    return 1;
  }
  uVar5 = (uint)param_1[1];
  if (-1 < (char)param_1[1]) {
    param_2[1] = uVar5 | (uVar3 & 0x7f) << 7;
    *param_2 = 0;
    return 2;
  }
  uVar3 = (uint)param_1[2] | uVar3 << 0xe;
  if ((param_1[2] & 0x80) == 0) {
    param_2[1] = (uVar5 & 0x7f) << 7 | uVar3 & 0x1fc07f;
    *param_2 = 0;
    return 3;
  }
  uVar3 = uVar3 & 0x1fc07f;
  uVar5 = (uint)param_1[3] | uVar5 << 0xe;
  if ((param_1[3] & 0x80) == 0) {
    param_2[1] = uVar5 & 0x1fc07f | uVar3 << 7;
    *param_2 = 0;
    return 4;
  }
  uVar5 = uVar5 & 0x1fc07f;
  bVar1 = param_1[4];
  uVar4 = (uint)bVar1 | uVar3 << 0xe;
  if ((bVar1 & 0x80) == 0) {
    *param_2 = uVar3 >> 0x12;
    param_2[1] = uVar5 << 7 | uVar4;
    return 5;
  }
  uVar3 = uVar5 | uVar3 << 7;
  uVar5 = (uint)param_1[5] | uVar5 << 0xe;
  if ((param_1[5] & 0x80) == 0) {
    *param_2 = uVar3 >> 0x12;
    param_2[1] = uVar5 | (uVar4 & 0x1fc07f) << 7;
    return 6;
  }
  uVar4 = (uint)param_1[6] | uVar4 << 0xe;
  if ((param_1[6] & 0x80) == 0) {
    *param_2 = uVar3 >> 0xb;
    param_2[1] = (uVar5 & 0x1fc07f) << 7 | uVar4 & 0xf01fc07f;
    return 7;
  }
  uVar4 = uVar4 & 0x1fc07f;
  uVar5 = (uint)param_1[7] | uVar5 << 0xe;
  if ((param_1[7] & 0x80) != 0) {
    bVar2 = param_1[8];
    *param_2 = ((uint)bVar1 << 0x19) >> 0x1c | uVar3 << 4;
    param_2[1] = (uint)bVar2 | uVar4 << 0xf | (uVar5 & 0x1fc07f) << 8;
    return 9;
  }
  *param_2 = uVar3 >> 4;
  param_2[1] = uVar5 & 0xf01fc07f | uVar4 << 7;
  return 8;
}

