
uint output_leb128(char *p,valueT value,int sign)

{
  byte bVar1;
  char *pcVar2;
  byte *pbVar4;
  byte *pbVar5;
  uint in_a2;
  int iVar6;
  uint in_a3;
  uint uVar7;
  byte bVar8;
  uint uVar9;
  char cVar10;
  uint uVar11;
  uint uVar12;
  char *pcVar3;
  
  if (value._0_4_ == 0) {
    uVar12 = in_a2 >> 7;
    uVar7 = in_a2 << 0x19 | in_a3 >> 7;
    uVar9 = in_a3 & 0x7f;
    bVar8 = (byte)uVar9;
    pbVar4 = (byte *)p;
    pbVar5 = (byte *)p;
    if (uVar12 != 0 || uVar7 != 0) {
      do {
        uVar11 = uVar12 << 0x19;
        pbVar5 = pbVar4 + 1;
        uVar12 = uVar12 >> 7;
        bVar1 = (byte)uVar9;
        uVar9 = uVar7 & 0x7f;
        bVar8 = (byte)uVar9;
        uVar7 = uVar11 | uVar7 >> 7;
        *pbVar4 = bVar1 | 0x80;
        pbVar4 = pbVar5;
      } while (uVar12 != 0 || uVar7 != 0);
    }
    *pbVar5 = bVar8;
    return (uint)(pbVar5 + (1 - (int)p));
  }
  iVar6 = (int)in_a2 >> 7;
  uVar9 = in_a3 & 0x7f;
  cVar10 = (char)uVar9;
  uVar7 = in_a2 << 0x19 | in_a3 >> 7;
  uVar12 = uVar9 | 0x80;
  pcVar2 = p;
  if (iVar6 != 0 || uVar7 != 0) goto LAB_00045d34;
LAB_00045cfc:
  cVar10 = (char)uVar9;
  do {
    pcVar3 = pcVar2;
    if ((in_a3 & 0x40) == 0) {
      *pcVar2 = cVar10;
      return (uint)(pcVar2 + (1 - (int)p));
    }
    do {
      in_a3 = uVar7;
      pcVar2 = pcVar3 + 1;
      *pcVar3 = (char)uVar12;
      uVar7 = iVar6 << 0x19;
      iVar6 = iVar6 >> 7;
      uVar9 = in_a3 & 0x7f;
      cVar10 = (char)uVar9;
      uVar7 = uVar7 | in_a3 >> 7;
      uVar12 = uVar9 | 0x80;
      if (iVar6 == 0 && uVar7 == 0) goto LAB_00045cfc;
LAB_00045d34:
      pcVar3 = pcVar2;
    } while ((iVar6 != -1) || (uVar7 != 0xffffffff));
  } while( true );
}



byte * output_leb128(byte *param_1,undefined4 param_2,uint param_3,uint param_4,int param_5)

{
  byte bVar1;
  byte *pbVar2;
  byte *pbVar3;
  int iVar4;
  uint uVar5;
  uint uVar6;
  byte bVar7;
  uint uVar8;
  
  if (param_5 == 0) {
    uVar8 = param_3 >> 7;
    uVar5 = param_3 << 0x19 | param_4 >> 7;
    param_4 = param_4 & 0x7f;
    bVar7 = (byte)param_4;
    pbVar2 = param_1;
    pbVar3 = param_1;
    if (uVar8 != 0 || uVar5 != 0) {
      do {
        uVar6 = uVar8 << 0x19;
        pbVar3 = pbVar2 + 1;
        uVar8 = uVar8 >> 7;
        bVar1 = (byte)param_4;
        param_4 = uVar5 & 0x7f;
        bVar7 = (byte)param_4;
        uVar5 = uVar6 | uVar5 >> 7;
        *pbVar2 = bVar1 | 0x80;
        pbVar2 = pbVar3;
      } while (uVar8 != 0 || uVar5 != 0);
    }
    *pbVar3 = bVar7;
    return pbVar3 + (1 - (int)param_1);
  }
  iVar4 = (int)param_3 >> 7;
  uVar6 = param_4 & 0x7f;
  bVar7 = (byte)uVar6;
  uVar5 = param_3 << 0x19 | param_4 >> 7;
  uVar8 = uVar6 | 0x80;
  pbVar2 = param_1;
  if (iVar4 != 0 || uVar5 != 0) goto LAB_00045d34;
LAB_00045cfc:
  bVar7 = (byte)uVar6;
  do {
    pbVar3 = pbVar2;
    if ((param_4 & 0x40) == 0) {
      *pbVar2 = bVar7;
      return pbVar2 + (1 - (int)param_1);
    }
    do {
      param_4 = uVar5;
      pbVar2 = pbVar3 + 1;
      *pbVar3 = (byte)uVar8;
      uVar5 = iVar4 << 0x19;
      iVar4 = iVar4 >> 7;
      uVar6 = param_4 & 0x7f;
      bVar7 = (byte)uVar6;
      uVar5 = uVar5 | param_4 >> 7;
      uVar8 = uVar6 | 0x80;
      if (iVar4 == 0 && uVar5 == 0) goto LAB_00045cfc;
LAB_00045d34:
      pbVar3 = pbVar2;
    } while ((iVar4 != -1) || (uVar5 != 0xffffffff));
  } while( true );
}


lw v0,0x10(sp)
beq v0,zero,0x00045d5c
_sll v0,a2,0x19
sll t2,a2,0x19
srl t1,a3,0x7
sra a2,a2,0x7
andi t0,a3,0x7f
or v1,a3,zero
or a3,t2,t1
or t1,a2,a3
li v0,-0x1
or a1,a0,zero
bne t1,zero,0x00045d34
_ori t2,t0,0x80
andi v1,v1,0x40
beq v1,zero,0x00045d4c
_nop
addiu a1,a1,0x1
sb t2,-0x1(a1)
srl t1,a3,0x7
sll t2,a2,0x19
sra a2,a2,0x7
andi t0,a3,0x7f
or v1,a3,zero
or a3,t2,t1
or t1,a2,a3
beq t1,zero,0x00045cfc
_ori t2,t0,0x80
bne a2,v0,0x00045d08
_nop
bne a3,a2,0x00045d08
_andi v1,v1,0x40
beq v1,zero,0x00045d08
_nop
addiu v0,a1,0x1
sb t0,0x0(a1)
jr ra
_subu v0,v0,a0
srl v1,a3,0x7
srl a2,a2,0x7
or v1,v0,v1
or v0,a2,v1
andi a3,a3,0x7f
beq v0,zero,0x00045da0
_or a1,a0,zero
sll t1,a2,0x19
srl t0,v1,0x7
addiu a1,a1,0x1
srl a2,a2,0x7
ori t2,a3,0x80
andi a3,v1,0x7f
or v1,t1,t0
or t0,a2,v1
bne t0,zero,0x00045d78
_sb t2,-0x1(a1)
addiu v0,a1,0x1
sb a3,0x0(a1)
jr ra
_subu v0,v0,a0
(translation_unit "byte * output_leb128(byte *param_1,undefined4 param_2,uint param_3,uint param_4,int param_5)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  byte bVar7;\n  uint uVar8;\n  \n  if (param_5 == 0) {\n    uVar8 = param_3 >> 7;\n    uVar5 = param_3 << 0x19 | param_4 >> 7;\n    param_4 = param_4 & 0x7f;\n    bVar7 = (byte)param_4;\n    pbVar2 = param_1;\n    pbVar3 = param_1;\n    if (uVar8 != 0 || uVar5 != 0) {\n      do {\n        uVar6 = uVar8 << 0x19;\n        pbVar3 = pbVar2 + 1;\n        uVar8 = uVar8 >> 7;\n        bVar1 = (byte)param_4;\n        param_4 = uVar5 & 0x7f;\n        bVar7 = (byte)param_4;\n        uVar5 = uVar6 | uVar5 >> 7;\n        *pbVar2 = bVar1 | 0x80;\n        pbVar2 = pbVar3;\n      } while (uVar8 != 0 || uVar5 != 0);\n    }\n    *pbVar3 = bVar7;\n    return pbVar3 + (1 - (int)param_1);\n  }\n  iVar4 = (int)param_3 >> 7;\n  uVar6 = param_4 & 0x7f;\n  bVar7 = (byte)uVar6;\n  uVar5 = param_3 << 0x19 | param_4 >> 7;\n  uVar8 = uVar6 | 0x80;\n  pbVar2 = param_1;\n  if (iVar4 != 0 || uVar5 != 0) goto LAB_00045d34;\nLAB_00045cfc:\n  bVar7 = (byte)uVar6;\n  do {\n    pbVar3 = pbVar2;\n    if ((param_4 & 0x40) == 0) {\n      *pbVar2 = bVar7;\n      return pbVar2 + (1 - (int)param_1);\n    }\n    do {\n      param_4 = uVar5;\n      pbVar2 = pbVar3 + 1;\n      *pbVar3 = (byte)uVar8;\n      uVar5 = iVar4 << 0x19;\n      iVar4 = iVar4 >> 7;\n      uVar6 = param_4 & 0x7f;\n      bVar7 = (byte)uVar6;\n      uVar5 = uVar5 | param_4 >> 7;\n      uVar8 = uVar6 | 0x80;\n      if (iVar4 == 0 && uVar5 == 0) goto LAB_00045cfc;\nLAB_00045d34:\n      pbVar3 = pbVar2;\n    } while ((iVar4 != -1) || (uVar5 != 0xffffffff));\n  } while( true );\n}\n\n" (function_definition "byte * output_leb128(byte *param_1,undefined4 param_2,uint param_3,uint param_4,int param_5)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  byte bVar7;\n  uint uVar8;\n  \n  if (param_5 == 0) {\n    uVar8 = param_3 >> 7;\n    uVar5 = param_3 << 0x19 | param_4 >> 7;\n    param_4 = param_4 & 0x7f;\n    bVar7 = (byte)param_4;\n    pbVar2 = param_1;\n    pbVar3 = param_1;\n    if (uVar8 != 0 || uVar5 != 0) {\n      do {\n        uVar6 = uVar8 << 0x19;\n        pbVar3 = pbVar2 + 1;\n        uVar8 = uVar8 >> 7;\n        bVar1 = (byte)param_4;\n        param_4 = uVar5 & 0x7f;\n        bVar7 = (byte)param_4;\n        uVar5 = uVar6 | uVar5 >> 7;\n        *pbVar2 = bVar1 | 0x80;\n        pbVar2 = pbVar3;\n      } while (uVar8 != 0 || uVar5 != 0);\n    }\n    *pbVar3 = bVar7;\n    return pbVar3 + (1 - (int)param_1);\n  }\n  iVar4 = (int)param_3 >> 7;\n  uVar6 = param_4 & 0x7f;\n  bVar7 = (byte)uVar6;\n  uVar5 = param_3 << 0x19 | param_4 >> 7;\n  uVar8 = uVar6 | 0x80;\n  pbVar2 = param_1;\n  if (iVar4 != 0 || uVar5 != 0) goto LAB_00045d34;\nLAB_00045cfc:\n  bVar7 = (byte)uVar6;\n  do {\n    pbVar3 = pbVar2;\n    if ((param_4 & 0x40) == 0) {\n      *pbVar2 = bVar7;\n      return pbVar2 + (1 - (int)param_1);\n    }\n    do {\n      param_4 = uVar5;\n      pbVar2 = pbVar3 + 1;\n      *pbVar3 = (byte)uVar8;\n      uVar5 = iVar4 << 0x19;\n      iVar4 = iVar4 >> 7;\n      uVar6 = param_4 & 0x7f;\n      bVar7 = (byte)uVar6;\n      uVar5 = uVar5 | param_4 >> 7;\n      uVar8 = uVar6 | 0x80;\n      if (iVar4 == 0 && uVar5 == 0) goto LAB_00045cfc;\nLAB_00045d34:\n      pbVar3 = pbVar2;\n    } while ((iVar4 != -1) || (uVar5 != 0xffffffff));\n  } while( true );\n}" type_identifier (pointer_declarator "* output_leb128(byte *param_1,undefined4 param_2,uint param_3,uint param_4,int param_5)" * (function_declarator "output_leb128(byte *param_1,undefined4 param_2,uint param_3,uint param_4,int param_5)" identifier (parameter_list "(byte *param_1,undefined4 param_2,uint param_3,uint param_4,int param_5)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) )))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  byte bVar7;\n  uint uVar8;\n  \n  if (param_5 == 0) {\n    uVar8 = param_3 >> 7;\n    uVar5 = param_3 << 0x19 | param_4 >> 7;\n    param_4 = param_4 & 0x7f;\n    bVar7 = (byte)param_4;\n    pbVar2 = param_1;\n    pbVar3 = param_1;\n    if (uVar8 != 0 || uVar5 != 0) {\n      do {\n        uVar6 = uVar8 << 0x19;\n        pbVar3 = pbVar2 + 1;\n        uVar8 = uVar8 >> 7;\n        bVar1 = (byte)param_4;\n        param_4 = uVar5 & 0x7f;\n        bVar7 = (byte)param_4;\n        uVar5 = uVar6 | uVar5 >> 7;\n        *pbVar2 = bVar1 | 0x80;\n        pbVar2 = pbVar3;\n      } while (uVar8 != 0 || uVar5 != 0);\n    }\n    *pbVar3 = bVar7;\n    return pbVar3 + (1 - (int)param_1);\n  }\n  iVar4 = (int)param_3 >> 7;\n  uVar6 = param_4 & 0x7f;\n  bVar7 = (byte)uVar6;\n  uVar5 = param_3 << 0x19 | param_4 >> 7;\n  uVar8 = uVar6 | 0x80;\n  pbVar2 = param_1;\n  if (iVar4 != 0 || uVar5 != 0) goto LAB_00045d34;\nLAB_00045cfc:\n  bVar7 = (byte)uVar6;\n  do {\n    pbVar3 = pbVar2;\n    if ((param_4 & 0x40) == 0) {\n      *pbVar2 = bVar7;\n      return pbVar2 + (1 - (int)param_1);\n    }\n    do {\n      param_4 = uVar5;\n      pbVar2 = pbVar3 + 1;\n      *pbVar3 = (byte)uVar8;\n      uVar5 = iVar4 << 0x19;\n      iVar4 = iVar4 >> 7;\n      uVar6 = param_4 & 0x7f;\n      bVar7 = (byte)uVar6;\n      uVar5 = uVar5 | param_4 >> 7;\n      uVar8 = uVar6 | 0x80;\n      if (iVar4 == 0 && uVar5 == 0) goto LAB_00045cfc;\nLAB_00045d34:\n      pbVar3 = pbVar2;\n    } while ((iVar4 != -1) || (uVar5 != 0xffffffff));\n  } while( true );\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "byte bVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (if_statement "if (param_5 == 0) {\n    uVar8 = param_3 >> 7;\n    uVar5 = param_3 << 0x19 | param_4 >> 7;\n    param_4 = param_4 & 0x7f;\n    bVar7 = (byte)param_4;\n    pbVar2 = param_1;\n    pbVar3 = param_1;\n    if (uVar8 != 0 || uVar5 != 0) {\n      do {\n        uVar6 = uVar8 << 0x19;\n        pbVar3 = pbVar2 + 1;\n        uVar8 = uVar8 >> 7;\n        bVar1 = (byte)param_4;\n        param_4 = uVar5 & 0x7f;\n        bVar7 = (byte)param_4;\n        uVar5 = uVar6 | uVar5 >> 7;\n        *pbVar2 = bVar1 | 0x80;\n        pbVar2 = pbVar3;\n      } while (uVar8 != 0 || uVar5 != 0);\n    }\n    *pbVar3 = bVar7;\n    return pbVar3 + (1 - (int)param_1);\n  }" if (parenthesized_expression "(param_5 == 0)" ( (binary_expression "param_5 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar8 = param_3 >> 7;\n    uVar5 = param_3 << 0x19 | param_4 >> 7;\n    param_4 = param_4 & 0x7f;\n    bVar7 = (byte)param_4;\n    pbVar2 = param_1;\n    pbVar3 = param_1;\n    if (uVar8 != 0 || uVar5 != 0) {\n      do {\n        uVar6 = uVar8 << 0x19;\n        pbVar3 = pbVar2 + 1;\n        uVar8 = uVar8 >> 7;\n        bVar1 = (byte)param_4;\n        param_4 = uVar5 & 0x7f;\n        bVar7 = (byte)param_4;\n        uVar5 = uVar6 | uVar5 >> 7;\n        *pbVar2 = bVar1 | 0x80;\n        pbVar2 = pbVar3;\n      } while (uVar8 != 0 || uVar5 != 0);\n    }\n    *pbVar3 = bVar7;\n    return pbVar3 + (1 - (int)param_1);\n  }" { (expression_statement "uVar8 = param_3 >> 7;" (assignment_expression "uVar8 = param_3 >> 7" identifier = (binary_expression "param_3 >> 7" identifier >> number_literal)) ;) (expression_statement "uVar5 = param_3 << 0x19 | param_4 >> 7;" (assignment_expression "uVar5 = param_3 << 0x19 | param_4 >> 7" identifier = (binary_expression "param_3 << 0x19 | param_4 >> 7" (binary_expression "param_3 << 0x19" identifier << number_literal) | (binary_expression "param_4 >> 7" identifier >> number_literal))) ;) (expression_statement "param_4 = param_4 & 0x7f;" (assignment_expression "param_4 = param_4 & 0x7f" identifier = (binary_expression "param_4 & 0x7f" identifier & number_literal)) ;) (expression_statement "bVar7 = (byte)param_4;" (assignment_expression "bVar7 = (byte)param_4" identifier = (cast_expression "(byte)param_4" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" identifier = identifier) ;) (expression_statement "pbVar3 = param_1;" (assignment_expression "pbVar3 = param_1" identifier = identifier) ;) (if_statement "if (uVar8 != 0 || uVar5 != 0) {\n      do {\n        uVar6 = uVar8 << 0x19;\n        pbVar3 = pbVar2 + 1;\n        uVar8 = uVar8 >> 7;\n        bVar1 = (byte)param_4;\n        param_4 = uVar5 & 0x7f;\n        bVar7 = (byte)param_4;\n        uVar5 = uVar6 | uVar5 >> 7;\n        *pbVar2 = bVar1 | 0x80;\n        pbVar2 = pbVar3;\n      } while (uVar8 != 0 || uVar5 != 0);\n    }" if (parenthesized_expression "(uVar8 != 0 || uVar5 != 0)" ( (binary_expression "uVar8 != 0 || uVar5 != 0" (binary_expression "uVar8 != 0" identifier != number_literal) || (binary_expression "uVar5 != 0" identifier != number_literal)) )) (compound_statement "{\n      do {\n        uVar6 = uVar8 << 0x19;\n        pbVar3 = pbVar2 + 1;\n        uVar8 = uVar8 >> 7;\n        bVar1 = (byte)param_4;\n        param_4 = uVar5 & 0x7f;\n        bVar7 = (byte)param_4;\n        uVar5 = uVar6 | uVar5 >> 7;\n        *pbVar2 = bVar1 | 0x80;\n        pbVar2 = pbVar3;\n      } while (uVar8 != 0 || uVar5 != 0);\n    }" { (do_statement "do {\n        uVar6 = uVar8 << 0x19;\n        pbVar3 = pbVar2 + 1;\n        uVar8 = uVar8 >> 7;\n        bVar1 = (byte)param_4;\n        param_4 = uVar5 & 0x7f;\n        bVar7 = (byte)param_4;\n        uVar5 = uVar6 | uVar5 >> 7;\n        *pbVar2 = bVar1 | 0x80;\n        pbVar2 = pbVar3;\n      } while (uVar8 != 0 || uVar5 != 0);" do (compound_statement "{\n        uVar6 = uVar8 << 0x19;\n        pbVar3 = pbVar2 + 1;\n        uVar8 = uVar8 >> 7;\n        bVar1 = (byte)param_4;\n        param_4 = uVar5 & 0x7f;\n        bVar7 = (byte)param_4;\n        uVar5 = uVar6 | uVar5 >> 7;\n        *pbVar2 = bVar1 | 0x80;\n        pbVar2 = pbVar3;\n      }" { (expression_statement "uVar6 = uVar8 << 0x19;" (assignment_expression "uVar6 = uVar8 << 0x19" identifier = (binary_expression "uVar8 << 0x19" identifier << number_literal)) ;) (expression_statement "pbVar3 = pbVar2 + 1;" (assignment_expression "pbVar3 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar8 = uVar8 >> 7;" (assignment_expression "uVar8 = uVar8 >> 7" identifier = (binary_expression "uVar8 >> 7" identifier >> number_literal)) ;) (expression_statement "bVar1 = (byte)param_4;" (assignment_expression "bVar1 = (byte)param_4" identifier = (cast_expression "(byte)param_4" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "param_4 = uVar5 & 0x7f;" (assignment_expression "param_4 = uVar5 & 0x7f" identifier = (binary_expression "uVar5 & 0x7f" identifier & number_literal)) ;) (expression_statement "bVar7 = (byte)param_4;" (assignment_expression "bVar7 = (byte)param_4" identifier = (cast_expression "(byte)param_4" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "uVar5 = uVar6 | uVar5 >> 7;" (assignment_expression "uVar5 = uVar6 | uVar5 >> 7" identifier = (binary_expression "uVar6 | uVar5 >> 7" identifier | (binary_expression "uVar5 >> 7" identifier >> number_literal))) ;) (expression_statement "*pbVar2 = bVar1 | 0x80;" (assignment_expression "*pbVar2 = bVar1 | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "bVar1 | 0x80" identifier | number_literal)) ;) (expression_statement "pbVar2 = pbVar3;" (assignment_expression "pbVar2 = pbVar3" identifier = identifier) ;) }) while (parenthesized_expression "(uVar8 != 0 || uVar5 != 0)" ( (binary_expression "uVar8 != 0 || uVar5 != 0" (binary_expression "uVar8 != 0" identifier != number_literal) || (binary_expression "uVar5 != 0" identifier != number_literal)) )) ;) })) (expression_statement "*pbVar3 = bVar7;" (assignment_expression "*pbVar3 = bVar7" (pointer_expression "*pbVar3" * identifier) = identifier) ;) (return_statement "return pbVar3 + (1 - (int)param_1);" return (binary_expression "pbVar3 + (1 - (int)param_1)" identifier + (parenthesized_expression "(1 - (int)param_1)" ( (binary_expression "1 - (int)param_1" number_literal - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) })) (expression_statement "iVar4 = (int)param_3 >> 7;" (assignment_expression "iVar4 = (int)param_3 >> 7" identifier = (binary_expression "(int)param_3 >> 7" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (expression_statement "uVar6 = param_4 & 0x7f;" (assignment_expression "uVar6 = param_4 & 0x7f" identifier = (binary_expression "param_4 & 0x7f" identifier & number_literal)) ;) (expression_statement "bVar7 = (byte)uVar6;" (assignment_expression "bVar7 = (byte)uVar6" identifier = (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "uVar5 = param_3 << 0x19 | param_4 >> 7;" (assignment_expression "uVar5 = param_3 << 0x19 | param_4 >> 7" identifier = (binary_expression "param_3 << 0x19 | param_4 >> 7" (binary_expression "param_3 << 0x19" identifier << number_literal) | (binary_expression "param_4 >> 7" identifier >> number_literal))) ;) (expression_statement "uVar8 = uVar6 | 0x80;" (assignment_expression "uVar8 = uVar6 | 0x80" identifier = (binary_expression "uVar6 | 0x80" identifier | number_literal)) ;) (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" identifier = identifier) ;) (if_statement "if (iVar4 != 0 || uVar5 != 0) goto LAB_00045d34;" if (parenthesized_expression "(iVar4 != 0 || uVar5 != 0)" ( (binary_expression "iVar4 != 0 || uVar5 != 0" (binary_expression "iVar4 != 0" identifier != number_literal) || (binary_expression "uVar5 != 0" identifier != number_literal)) )) (goto_statement "goto LAB_00045d34;" goto statement_identifier ;)) (labeled_statement "LAB_00045cfc:\n  bVar7 = (byte)uVar6;" statement_identifier : (expression_statement "bVar7 = (byte)uVar6;" (assignment_expression "bVar7 = (byte)uVar6" identifier = (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier)) ;)) (do_statement "do {\n    pbVar3 = pbVar2;\n    if ((param_4 & 0x40) == 0) {\n      *pbVar2 = bVar7;\n      return pbVar2 + (1 - (int)param_1);\n    }\n    do {\n      param_4 = uVar5;\n      pbVar2 = pbVar3 + 1;\n      *pbVar3 = (byte)uVar8;\n      uVar5 = iVar4 << 0x19;\n      iVar4 = iVar4 >> 7;\n      uVar6 = param_4 & 0x7f;\n      bVar7 = (byte)uVar6;\n      uVar5 = uVar5 | param_4 >> 7;\n      uVar8 = uVar6 | 0x80;\n      if (iVar4 == 0 && uVar5 == 0) goto LAB_00045cfc;\nLAB_00045d34:\n      pbVar3 = pbVar2;\n    } while ((iVar4 != -1) || (uVar5 != 0xffffffff));\n  } while( true );" do (compound_statement "{\n    pbVar3 = pbVar2;\n    if ((param_4 & 0x40) == 0) {\n      *pbVar2 = bVar7;\n      return pbVar2 + (1 - (int)param_1);\n    }\n    do {\n      param_4 = uVar5;\n      pbVar2 = pbVar3 + 1;\n      *pbVar3 = (byte)uVar8;\n      uVar5 = iVar4 << 0x19;\n      iVar4 = iVar4 >> 7;\n      uVar6 = param_4 & 0x7f;\n      bVar7 = (byte)uVar6;\n      uVar5 = uVar5 | param_4 >> 7;\n      uVar8 = uVar6 | 0x80;\n      if (iVar4 == 0 && uVar5 == 0) goto LAB_00045cfc;\nLAB_00045d34:\n      pbVar3 = pbVar2;\n    } while ((iVar4 != -1) || (uVar5 != 0xffffffff));\n  }" { (expression_statement "pbVar3 = pbVar2;" (assignment_expression "pbVar3 = pbVar2" identifier = identifier) ;) (if_statement "if ((param_4 & 0x40) == 0) {\n      *pbVar2 = bVar7;\n      return pbVar2 + (1 - (int)param_1);\n    }" if (parenthesized_expression "((param_4 & 0x40) == 0)" ( (binary_expression "(param_4 & 0x40) == 0" (parenthesized_expression "(param_4 & 0x40)" ( (binary_expression "param_4 & 0x40" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      *pbVar2 = bVar7;\n      return pbVar2 + (1 - (int)param_1);\n    }" { (expression_statement "*pbVar2 = bVar7;" (assignment_expression "*pbVar2 = bVar7" (pointer_expression "*pbVar2" * identifier) = identifier) ;) (return_statement "return pbVar2 + (1 - (int)param_1);" return (binary_expression "pbVar2 + (1 - (int)param_1)" identifier + (parenthesized_expression "(1 - (int)param_1)" ( (binary_expression "1 - (int)param_1" number_literal - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) })) (do_statement "do {\n      param_4 = uVar5;\n      pbVar2 = pbVar3 + 1;\n      *pbVar3 = (byte)uVar8;\n      uVar5 = iVar4 << 0x19;\n      iVar4 = iVar4 >> 7;\n      uVar6 = param_4 & 0x7f;\n      bVar7 = (byte)uVar6;\n      uVar5 = uVar5 | param_4 >> 7;\n      uVar8 = uVar6 | 0x80;\n      if (iVar4 == 0 && uVar5 == 0) goto LAB_00045cfc;\nLAB_00045d34:\n      pbVar3 = pbVar2;\n    } while ((iVar4 != -1) || (uVar5 != 0xffffffff));" do (compound_statement "{\n      param_4 = uVar5;\n      pbVar2 = pbVar3 + 1;\n      *pbVar3 = (byte)uVar8;\n      uVar5 = iVar4 << 0x19;\n      iVar4 = iVar4 >> 7;\n      uVar6 = param_4 & 0x7f;\n      bVar7 = (byte)uVar6;\n      uVar5 = uVar5 | param_4 >> 7;\n      uVar8 = uVar6 | 0x80;\n      if (iVar4 == 0 && uVar5 == 0) goto LAB_00045cfc;\nLAB_00045d34:\n      pbVar3 = pbVar2;\n    }" { (expression_statement "param_4 = uVar5;" (assignment_expression "param_4 = uVar5" identifier = identifier) ;) (expression_statement "pbVar2 = pbVar3 + 1;" (assignment_expression "pbVar2 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (expression_statement "*pbVar3 = (byte)uVar8;" (assignment_expression "*pbVar3 = (byte)uVar8" (pointer_expression "*pbVar3" * identifier) = (cast_expression "(byte)uVar8" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "uVar5 = iVar4 << 0x19;" (assignment_expression "uVar5 = iVar4 << 0x19" identifier = (binary_expression "iVar4 << 0x19" identifier << number_literal)) ;) (expression_statement "iVar4 = iVar4 >> 7;" (assignment_expression "iVar4 = iVar4 >> 7" identifier = (binary_expression "iVar4 >> 7" identifier >> number_literal)) ;) (expression_statement "uVar6 = param_4 & 0x7f;" (assignment_expression "uVar6 = param_4 & 0x7f" identifier = (binary_expression "param_4 & 0x7f" identifier & number_literal)) ;) (expression_statement "bVar7 = (byte)uVar6;" (assignment_expression "bVar7 = (byte)uVar6" identifier = (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "uVar5 = uVar5 | param_4 >> 7;" (assignment_expression "uVar5 = uVar5 | param_4 >> 7" identifier = (binary_expression "uVar5 | param_4 >> 7" identifier | (binary_expression "param_4 >> 7" identifier >> number_literal))) ;) (expression_statement "uVar8 = uVar6 | 0x80;" (assignment_expression "uVar8 = uVar6 | 0x80" identifier = (binary_expression "uVar6 | 0x80" identifier | number_literal)) ;) (if_statement "if (iVar4 == 0 && uVar5 == 0) goto LAB_00045cfc;" if (parenthesized_expression "(iVar4 == 0 && uVar5 == 0)" ( (binary_expression "iVar4 == 0 && uVar5 == 0" (binary_expression "iVar4 == 0" identifier == number_literal) && (binary_expression "uVar5 == 0" identifier == number_literal)) )) (goto_statement "goto LAB_00045cfc;" goto statement_identifier ;)) (labeled_statement "LAB_00045d34:\n      pbVar3 = pbVar2;" statement_identifier : (expression_statement "pbVar3 = pbVar2;" (assignment_expression "pbVar3 = pbVar2" identifier = identifier) ;)) }) while (parenthesized_expression "((iVar4 != -1) || (uVar5 != 0xffffffff))" ( (binary_expression "(iVar4 != -1) || (uVar5 != 0xffffffff)" (parenthesized_expression "(iVar4 != -1)" ( (binary_expression "iVar4 != -1" identifier != number_literal) )) || (parenthesized_expression "(uVar5 != 0xffffffff)" ( (binary_expression "uVar5 != 0xffffffff" identifier != number_literal) ))) )) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "uint output_leb128(char *p,valueT value,int sign)\n\n{\n  byte bVar1;\n  char *pcVar2;\n  byte *pbVar4;\n  byte *pbVar5;\n  uint in_a2;\n  int iVar6;\n  uint in_a3;\n  uint uVar7;\n  byte bVar8;\n  uint uVar9;\n  char cVar10;\n  uint uVar11;\n  uint uVar12;\n  char *pcVar3;\n  \n  if (value._0_4_ == 0) {\n    uVar12 = in_a2 >> 7;\n    uVar7 = in_a2 << 0x19 | in_a3 >> 7;\n    uVar9 = in_a3 & 0x7f;\n    bVar8 = (byte)uVar9;\n    pbVar4 = (byte *)p;\n    pbVar5 = (byte *)p;\n    if (uVar12 != 0 || uVar7 != 0) {\n      do {\n        uVar11 = uVar12 << 0x19;\n        pbVar5 = pbVar4 + 1;\n        uVar12 = uVar12 >> 7;\n        bVar1 = (byte)uVar9;\n        uVar9 = uVar7 & 0x7f;\n        bVar8 = (byte)uVar9;\n        uVar7 = uVar11 | uVar7 >> 7;\n        *pbVar4 = bVar1 | 0x80;\n        pbVar4 = pbVar5;\n      } while (uVar12 != 0 || uVar7 != 0);\n    }\n    *pbVar5 = bVar8;\n    return (uint)(pbVar5 + (1 - (int)p));\n  }\n  iVar6 = (int)in_a2 >> 7;\n  uVar9 = in_a3 & 0x7f;\n  cVar10 = (char)uVar9;\n  uVar7 = in_a2 << 0x19 | in_a3 >> 7;\n  uVar12 = uVar9 | 0x80;\n  pcVar2 = p;\n  if (iVar6 != 0 || uVar7 != 0) goto LAB_00045d34;\nLAB_00045cfc:\n  cVar10 = (char)uVar9;\n  do {\n    pcVar3 = pcVar2;\n    if ((in_a3 & 0x40) == 0) {\n      *pcVar2 = cVar10;\n      return (uint)(pcVar2 + (1 - (int)p));\n    }\n    do {\n      in_a3 = uVar7;\n      pcVar2 = pcVar3 + 1;\n      *pcVar3 = (char)uVar12;\n      uVar7 = iVar6 << 0x19;\n      iVar6 = iVar6 >> 7;\n      uVar9 = in_a3 & 0x7f;\n      cVar10 = (char)uVar9;\n      uVar7 = uVar7 | in_a3 >> 7;\n      uVar12 = uVar9 | 0x80;\n      if (iVar6 == 0 && uVar7 == 0) goto LAB_00045cfc;\nLAB_00045d34:\n      pcVar3 = pcVar2;\n    } while ((iVar6 != -1) || (uVar7 != 0xffffffff));\n  } while( true );\n}\n\n" (function_definition "uint output_leb128(char *p,valueT value,int sign)\n\n{\n  byte bVar1;\n  char *pcVar2;\n  byte *pbVar4;\n  byte *pbVar5;\n  uint in_a2;\n  int iVar6;\n  uint in_a3;\n  uint uVar7;\n  byte bVar8;\n  uint uVar9;\n  char cVar10;\n  uint uVar11;\n  uint uVar12;\n  char *pcVar3;\n  \n  if (value._0_4_ == 0) {\n    uVar12 = in_a2 >> 7;\n    uVar7 = in_a2 << 0x19 | in_a3 >> 7;\n    uVar9 = in_a3 & 0x7f;\n    bVar8 = (byte)uVar9;\n    pbVar4 = (byte *)p;\n    pbVar5 = (byte *)p;\n    if (uVar12 != 0 || uVar7 != 0) {\n      do {\n        uVar11 = uVar12 << 0x19;\n        pbVar5 = pbVar4 + 1;\n        uVar12 = uVar12 >> 7;\n        bVar1 = (byte)uVar9;\n        uVar9 = uVar7 & 0x7f;\n        bVar8 = (byte)uVar9;\n        uVar7 = uVar11 | uVar7 >> 7;\n        *pbVar4 = bVar1 | 0x80;\n        pbVar4 = pbVar5;\n      } while (uVar12 != 0 || uVar7 != 0);\n    }\n    *pbVar5 = bVar8;\n    return (uint)(pbVar5 + (1 - (int)p));\n  }\n  iVar6 = (int)in_a2 >> 7;\n  uVar9 = in_a3 & 0x7f;\n  cVar10 = (char)uVar9;\n  uVar7 = in_a2 << 0x19 | in_a3 >> 7;\n  uVar12 = uVar9 | 0x80;\n  pcVar2 = p;\n  if (iVar6 != 0 || uVar7 != 0) goto LAB_00045d34;\nLAB_00045cfc:\n  cVar10 = (char)uVar9;\n  do {\n    pcVar3 = pcVar2;\n    if ((in_a3 & 0x40) == 0) {\n      *pcVar2 = cVar10;\n      return (uint)(pcVar2 + (1 - (int)p));\n    }\n    do {\n      in_a3 = uVar7;\n      pcVar2 = pcVar3 + 1;\n      *pcVar3 = (char)uVar12;\n      uVar7 = iVar6 << 0x19;\n      iVar6 = iVar6 >> 7;\n      uVar9 = in_a3 & 0x7f;\n      cVar10 = (char)uVar9;\n      uVar7 = uVar7 | in_a3 >> 7;\n      uVar12 = uVar9 | 0x80;\n      if (iVar6 == 0 && uVar7 == 0) goto LAB_00045cfc;\nLAB_00045d34:\n      pcVar3 = pcVar2;\n    } while ((iVar6 != -1) || (uVar7 != 0xffffffff));\n  } while( true );\n}" type_identifier (function_declarator "output_leb128(char *p,valueT value,int sign)" identifier (parameter_list "(char *p,valueT value,int sign)" ( (parameter_declaration "char *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "valueT value" type_identifier identifier) , (parameter_declaration "int sign" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  char *pcVar2;\n  byte *pbVar4;\n  byte *pbVar5;\n  uint in_a2;\n  int iVar6;\n  uint in_a3;\n  uint uVar7;\n  byte bVar8;\n  uint uVar9;\n  char cVar10;\n  uint uVar11;\n  uint uVar12;\n  char *pcVar3;\n  \n  if (value._0_4_ == 0) {\n    uVar12 = in_a2 >> 7;\n    uVar7 = in_a2 << 0x19 | in_a3 >> 7;\n    uVar9 = in_a3 & 0x7f;\n    bVar8 = (byte)uVar9;\n    pbVar4 = (byte *)p;\n    pbVar5 = (byte *)p;\n    if (uVar12 != 0 || uVar7 != 0) {\n      do {\n        uVar11 = uVar12 << 0x19;\n        pbVar5 = pbVar4 + 1;\n        uVar12 = uVar12 >> 7;\n        bVar1 = (byte)uVar9;\n        uVar9 = uVar7 & 0x7f;\n        bVar8 = (byte)uVar9;\n        uVar7 = uVar11 | uVar7 >> 7;\n        *pbVar4 = bVar1 | 0x80;\n        pbVar4 = pbVar5;\n      } while (uVar12 != 0 || uVar7 != 0);\n    }\n    *pbVar5 = bVar8;\n    return (uint)(pbVar5 + (1 - (int)p));\n  }\n  iVar6 = (int)in_a2 >> 7;\n  uVar9 = in_a3 & 0x7f;\n  cVar10 = (char)uVar9;\n  uVar7 = in_a2 << 0x19 | in_a3 >> 7;\n  uVar12 = uVar9 | 0x80;\n  pcVar2 = p;\n  if (iVar6 != 0 || uVar7 != 0) goto LAB_00045d34;\nLAB_00045cfc:\n  cVar10 = (char)uVar9;\n  do {\n    pcVar3 = pcVar2;\n    if ((in_a3 & 0x40) == 0) {\n      *pcVar2 = cVar10;\n      return (uint)(pcVar2 + (1 - (int)p));\n    }\n    do {\n      in_a3 = uVar7;\n      pcVar2 = pcVar3 + 1;\n      *pcVar3 = (char)uVar12;\n      uVar7 = iVar6 << 0x19;\n      iVar6 = iVar6 >> 7;\n      uVar9 = in_a3 & 0x7f;\n      cVar10 = (char)uVar9;\n      uVar7 = uVar7 | in_a3 >> 7;\n      uVar12 = uVar9 | 0x80;\n      if (iVar6 == 0 && uVar7 == 0) goto LAB_00045cfc;\nLAB_00045d34:\n      pcVar3 = pcVar2;\n    } while ((iVar6 != -1) || (uVar7 != 0xffffffff));\n  } while( true );\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "uint in_a2;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint in_a3;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "byte bVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "char cVar10;" primitive_type identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if (value._0_4_ == 0) {\n    uVar12 = in_a2 >> 7;\n    uVar7 = in_a2 << 0x19 | in_a3 >> 7;\n    uVar9 = in_a3 & 0x7f;\n    bVar8 = (byte)uVar9;\n    pbVar4 = (byte *)p;\n    pbVar5 = (byte *)p;\n    if (uVar12 != 0 || uVar7 != 0) {\n      do {\n        uVar11 = uVar12 << 0x19;\n        pbVar5 = pbVar4 + 1;\n        uVar12 = uVar12 >> 7;\n        bVar1 = (byte)uVar9;\n        uVar9 = uVar7 & 0x7f;\n        bVar8 = (byte)uVar9;\n        uVar7 = uVar11 | uVar7 >> 7;\n        *pbVar4 = bVar1 | 0x80;\n        pbVar4 = pbVar5;\n      } while (uVar12 != 0 || uVar7 != 0);\n    }\n    *pbVar5 = bVar8;\n    return (uint)(pbVar5 + (1 - (int)p));\n  }" if (parenthesized_expression "(value._0_4_ == 0)" ( (binary_expression "value._0_4_ == 0" (field_expression "value._0_4_" identifier . field_identifier) == number_literal) )) (compound_statement "{\n    uVar12 = in_a2 >> 7;\n    uVar7 = in_a2 << 0x19 | in_a3 >> 7;\n    uVar9 = in_a3 & 0x7f;\n    bVar8 = (byte)uVar9;\n    pbVar4 = (byte *)p;\n    pbVar5 = (byte *)p;\n    if (uVar12 != 0 || uVar7 != 0) {\n      do {\n        uVar11 = uVar12 << 0x19;\n        pbVar5 = pbVar4 + 1;\n        uVar12 = uVar12 >> 7;\n        bVar1 = (byte)uVar9;\n        uVar9 = uVar7 & 0x7f;\n        bVar8 = (byte)uVar9;\n        uVar7 = uVar11 | uVar7 >> 7;\n        *pbVar4 = bVar1 | 0x80;\n        pbVar4 = pbVar5;\n      } while (uVar12 != 0 || uVar7 != 0);\n    }\n    *pbVar5 = bVar8;\n    return (uint)(pbVar5 + (1 - (int)p));\n  }" { (expression_statement "uVar12 = in_a2 >> 7;" (assignment_expression "uVar12 = in_a2 >> 7" identifier = (binary_expression "in_a2 >> 7" identifier >> number_literal)) ;) (expression_statement "uVar7 = in_a2 << 0x19 | in_a3 >> 7;" (assignment_expression "uVar7 = in_a2 << 0x19 | in_a3 >> 7" identifier = (binary_expression "in_a2 << 0x19 | in_a3 >> 7" (binary_expression "in_a2 << 0x19" identifier << number_literal) | (binary_expression "in_a3 >> 7" identifier >> number_literal))) ;) (expression_statement "uVar9 = in_a3 & 0x7f;" (assignment_expression "uVar9 = in_a3 & 0x7f" identifier = (binary_expression "in_a3 & 0x7f" identifier & number_literal)) ;) (expression_statement "bVar8 = (byte)uVar9;" (assignment_expression "bVar8 = (byte)uVar9" identifier = (cast_expression "(byte)uVar9" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "pbVar4 = (byte *)p;" (assignment_expression "pbVar4 = (byte *)p" identifier = (cast_expression "(byte *)p" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pbVar5 = (byte *)p;" (assignment_expression "pbVar5 = (byte *)p" identifier = (cast_expression "(byte *)p" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (uVar12 != 0 || uVar7 != 0) {\n      do {\n        uVar11 = uVar12 << 0x19;\n        pbVar5 = pbVar4 + 1;\n        uVar12 = uVar12 >> 7;\n        bVar1 = (byte)uVar9;\n        uVar9 = uVar7 & 0x7f;\n        bVar8 = (byte)uVar9;\n        uVar7 = uVar11 | uVar7 >> 7;\n        *pbVar4 = bVar1 | 0x80;\n        pbVar4 = pbVar5;\n      } while (uVar12 != 0 || uVar7 != 0);\n    }" if (parenthesized_expression "(uVar12 != 0 || uVar7 != 0)" ( (binary_expression "uVar12 != 0 || uVar7 != 0" (binary_expression "uVar12 != 0" identifier != number_literal) || (binary_expression "uVar7 != 0" identifier != number_literal)) )) (compound_statement "{\n      do {\n        uVar11 = uVar12 << 0x19;\n        pbVar5 = pbVar4 + 1;\n        uVar12 = uVar12 >> 7;\n        bVar1 = (byte)uVar9;\n        uVar9 = uVar7 & 0x7f;\n        bVar8 = (byte)uVar9;\n        uVar7 = uVar11 | uVar7 >> 7;\n        *pbVar4 = bVar1 | 0x80;\n        pbVar4 = pbVar5;\n      } while (uVar12 != 0 || uVar7 != 0);\n    }" { (do_statement "do {\n        uVar11 = uVar12 << 0x19;\n        pbVar5 = pbVar4 + 1;\n        uVar12 = uVar12 >> 7;\n        bVar1 = (byte)uVar9;\n        uVar9 = uVar7 & 0x7f;\n        bVar8 = (byte)uVar9;\n        uVar7 = uVar11 | uVar7 >> 7;\n        *pbVar4 = bVar1 | 0x80;\n        pbVar4 = pbVar5;\n      } while (uVar12 != 0 || uVar7 != 0);" do (compound_statement "{\n        uVar11 = uVar12 << 0x19;\n        pbVar5 = pbVar4 + 1;\n        uVar12 = uVar12 >> 7;\n        bVar1 = (byte)uVar9;\n        uVar9 = uVar7 & 0x7f;\n        bVar8 = (byte)uVar9;\n        uVar7 = uVar11 | uVar7 >> 7;\n        *pbVar4 = bVar1 | 0x80;\n        pbVar4 = pbVar5;\n      }" { (expression_statement "uVar11 = uVar12 << 0x19;" (assignment_expression "uVar11 = uVar12 << 0x19" identifier = (binary_expression "uVar12 << 0x19" identifier << number_literal)) ;) (expression_statement "pbVar5 = pbVar4 + 1;" (assignment_expression "pbVar5 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (expression_statement "uVar12 = uVar12 >> 7;" (assignment_expression "uVar12 = uVar12 >> 7" identifier = (binary_expression "uVar12 >> 7" identifier >> number_literal)) ;) (expression_statement "bVar1 = (byte)uVar9;" (assignment_expression "bVar1 = (byte)uVar9" identifier = (cast_expression "(byte)uVar9" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "uVar9 = uVar7 & 0x7f;" (assignment_expression "uVar9 = uVar7 & 0x7f" identifier = (binary_expression "uVar7 & 0x7f" identifier & number_literal)) ;) (expression_statement "bVar8 = (byte)uVar9;" (assignment_expression "bVar8 = (byte)uVar9" identifier = (cast_expression "(byte)uVar9" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "uVar7 = uVar11 | uVar7 >> 7;" (assignment_expression "uVar7 = uVar11 | uVar7 >> 7" identifier = (binary_expression "uVar11 | uVar7 >> 7" identifier | (binary_expression "uVar7 >> 7" identifier >> number_literal))) ;) (expression_statement "*pbVar4 = bVar1 | 0x80;" (assignment_expression "*pbVar4 = bVar1 | 0x80" (pointer_expression "*pbVar4" * identifier) = (binary_expression "bVar1 | 0x80" identifier | number_literal)) ;) (expression_statement "pbVar4 = pbVar5;" (assignment_expression "pbVar4 = pbVar5" identifier = identifier) ;) }) while (parenthesized_expression "(uVar12 != 0 || uVar7 != 0)" ( (binary_expression "uVar12 != 0 || uVar7 != 0" (binary_expression "uVar12 != 0" identifier != number_literal) || (binary_expression "uVar7 != 0" identifier != number_literal)) )) ;) })) (expression_statement "*pbVar5 = bVar8;" (assignment_expression "*pbVar5 = bVar8" (pointer_expression "*pbVar5" * identifier) = identifier) ;) (return_statement "return (uint)(pbVar5 + (1 - (int)p));" return (call_expression "(uint)(pbVar5 + (1 - (int)p))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pbVar5 + (1 - (int)p))" ( (binary_expression "pbVar5 + (1 - (int)p)" identifier + (parenthesized_expression "(1 - (int)p)" ( (binary_expression "1 - (int)p" number_literal - (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))) ;) })) (expression_statement "iVar6 = (int)in_a2 >> 7;" (assignment_expression "iVar6 = (int)in_a2 >> 7" identifier = (binary_expression "(int)in_a2 >> 7" (cast_expression "(int)in_a2" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (expression_statement "uVar9 = in_a3 & 0x7f;" (assignment_expression "uVar9 = in_a3 & 0x7f" identifier = (binary_expression "in_a3 & 0x7f" identifier & number_literal)) ;) (expression_statement "cVar10 = (char)uVar9;" (assignment_expression "cVar10 = (char)uVar9" identifier = (cast_expression "(char)uVar9" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "uVar7 = in_a2 << 0x19 | in_a3 >> 7;" (assignment_expression "uVar7 = in_a2 << 0x19 | in_a3 >> 7" identifier = (binary_expression "in_a2 << 0x19 | in_a3 >> 7" (binary_expression "in_a2 << 0x19" identifier << number_literal) | (binary_expression "in_a3 >> 7" identifier >> number_literal))) ;) (expression_statement "uVar12 = uVar9 | 0x80;" (assignment_expression "uVar12 = uVar9 | 0x80" identifier = (binary_expression "uVar9 | 0x80" identifier | number_literal)) ;) (expression_statement "pcVar2 = p;" (assignment_expression "pcVar2 = p" identifier = identifier) ;) (if_statement "if (iVar6 != 0 || uVar7 != 0) goto LAB_00045d34;" if (parenthesized_expression "(iVar6 != 0 || uVar7 != 0)" ( (binary_expression "iVar6 != 0 || uVar7 != 0" (binary_expression "iVar6 != 0" identifier != number_literal) || (binary_expression "uVar7 != 0" identifier != number_literal)) )) (goto_statement "goto LAB_00045d34;" goto statement_identifier ;)) (labeled_statement "LAB_00045cfc:\n  cVar10 = (char)uVar9;" statement_identifier : (expression_statement "cVar10 = (char)uVar9;" (assignment_expression "cVar10 = (char)uVar9" identifier = (cast_expression "(char)uVar9" ( (type_descriptor "char" primitive_type) ) identifier)) ;)) (do_statement "do {\n    pcVar3 = pcVar2;\n    if ((in_a3 & 0x40) == 0) {\n      *pcVar2 = cVar10;\n      return (uint)(pcVar2 + (1 - (int)p));\n    }\n    do {\n      in_a3 = uVar7;\n      pcVar2 = pcVar3 + 1;\n      *pcVar3 = (char)uVar12;\n      uVar7 = iVar6 << 0x19;\n      iVar6 = iVar6 >> 7;\n      uVar9 = in_a3 & 0x7f;\n      cVar10 = (char)uVar9;\n      uVar7 = uVar7 | in_a3 >> 7;\n      uVar12 = uVar9 | 0x80;\n      if (iVar6 == 0 && uVar7 == 0) goto LAB_00045cfc;\nLAB_00045d34:\n      pcVar3 = pcVar2;\n    } while ((iVar6 != -1) || (uVar7 != 0xffffffff));\n  } while( true );" do (compound_statement "{\n    pcVar3 = pcVar2;\n    if ((in_a3 & 0x40) == 0) {\n      *pcVar2 = cVar10;\n      return (uint)(pcVar2 + (1 - (int)p));\n    }\n    do {\n      in_a3 = uVar7;\n      pcVar2 = pcVar3 + 1;\n      *pcVar3 = (char)uVar12;\n      uVar7 = iVar6 << 0x19;\n      iVar6 = iVar6 >> 7;\n      uVar9 = in_a3 & 0x7f;\n      cVar10 = (char)uVar9;\n      uVar7 = uVar7 | in_a3 >> 7;\n      uVar12 = uVar9 | 0x80;\n      if (iVar6 == 0 && uVar7 == 0) goto LAB_00045cfc;\nLAB_00045d34:\n      pcVar3 = pcVar2;\n    } while ((iVar6 != -1) || (uVar7 != 0xffffffff));\n  }" { (expression_statement "pcVar3 = pcVar2;" (assignment_expression "pcVar3 = pcVar2" identifier = identifier) ;) (if_statement "if ((in_a3 & 0x40) == 0) {\n      *pcVar2 = cVar10;\n      return (uint)(pcVar2 + (1 - (int)p));\n    }" if (parenthesized_expression "((in_a3 & 0x40) == 0)" ( (binary_expression "(in_a3 & 0x40) == 0" (parenthesized_expression "(in_a3 & 0x40)" ( (binary_expression "in_a3 & 0x40" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      *pcVar2 = cVar10;\n      return (uint)(pcVar2 + (1 - (int)p));\n    }" { (expression_statement "*pcVar2 = cVar10;" (assignment_expression "*pcVar2 = cVar10" (pointer_expression "*pcVar2" * identifier) = identifier) ;) (return_statement "return (uint)(pcVar2 + (1 - (int)p));" return (call_expression "(uint)(pcVar2 + (1 - (int)p))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pcVar2 + (1 - (int)p))" ( (binary_expression "pcVar2 + (1 - (int)p)" identifier + (parenthesized_expression "(1 - (int)p)" ( (binary_expression "1 - (int)p" number_literal - (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))) ;) })) (do_statement "do {\n      in_a3 = uVar7;\n      pcVar2 = pcVar3 + 1;\n      *pcVar3 = (char)uVar12;\n      uVar7 = iVar6 << 0x19;\n      iVar6 = iVar6 >> 7;\n      uVar9 = in_a3 & 0x7f;\n      cVar10 = (char)uVar9;\n      uVar7 = uVar7 | in_a3 >> 7;\n      uVar12 = uVar9 | 0x80;\n      if (iVar6 == 0 && uVar7 == 0) goto LAB_00045cfc;\nLAB_00045d34:\n      pcVar3 = pcVar2;\n    } while ((iVar6 != -1) || (uVar7 != 0xffffffff));" do (compound_statement "{\n      in_a3 = uVar7;\n      pcVar2 = pcVar3 + 1;\n      *pcVar3 = (char)uVar12;\n      uVar7 = iVar6 << 0x19;\n      iVar6 = iVar6 >> 7;\n      uVar9 = in_a3 & 0x7f;\n      cVar10 = (char)uVar9;\n      uVar7 = uVar7 | in_a3 >> 7;\n      uVar12 = uVar9 | 0x80;\n      if (iVar6 == 0 && uVar7 == 0) goto LAB_00045cfc;\nLAB_00045d34:\n      pcVar3 = pcVar2;\n    }" { (expression_statement "in_a3 = uVar7;" (assignment_expression "in_a3 = uVar7" identifier = identifier) ;) (expression_statement "pcVar2 = pcVar3 + 1;" (assignment_expression "pcVar2 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar3 = (char)uVar12;" (assignment_expression "*pcVar3 = (char)uVar12" (pointer_expression "*pcVar3" * identifier) = (cast_expression "(char)uVar12" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "uVar7 = iVar6 << 0x19;" (assignment_expression "uVar7 = iVar6 << 0x19" identifier = (binary_expression "iVar6 << 0x19" identifier << number_literal)) ;) (expression_statement "iVar6 = iVar6 >> 7;" (assignment_expression "iVar6 = iVar6 >> 7" identifier = (binary_expression "iVar6 >> 7" identifier >> number_literal)) ;) (expression_statement "uVar9 = in_a3 & 0x7f;" (assignment_expression "uVar9 = in_a3 & 0x7f" identifier = (binary_expression "in_a3 & 0x7f" identifier & number_literal)) ;) (expression_statement "cVar10 = (char)uVar9;" (assignment_expression "cVar10 = (char)uVar9" identifier = (cast_expression "(char)uVar9" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "uVar7 = uVar7 | in_a3 >> 7;" (assignment_expression "uVar7 = uVar7 | in_a3 >> 7" identifier = (binary_expression "uVar7 | in_a3 >> 7" identifier | (binary_expression "in_a3 >> 7" identifier >> number_literal))) ;) (expression_statement "uVar12 = uVar9 | 0x80;" (assignment_expression "uVar12 = uVar9 | 0x80" identifier = (binary_expression "uVar9 | 0x80" identifier | number_literal)) ;) (if_statement "if (iVar6 == 0 && uVar7 == 0) goto LAB_00045cfc;" if (parenthesized_expression "(iVar6 == 0 && uVar7 == 0)" ( (binary_expression "iVar6 == 0 && uVar7 == 0" (binary_expression "iVar6 == 0" identifier == number_literal) && (binary_expression "uVar7 == 0" identifier == number_literal)) )) (goto_statement "goto LAB_00045cfc;" goto statement_identifier ;)) (labeled_statement "LAB_00045d34:\n      pcVar3 = pcVar2;" statement_identifier : (expression_statement "pcVar3 = pcVar2;" (assignment_expression "pcVar3 = pcVar2" identifier = identifier) ;)) }) while (parenthesized_expression "((iVar6 != -1) || (uVar7 != 0xffffffff))" ( (binary_expression "(iVar6 != -1) || (uVar7 != 0xffffffff)" (parenthesized_expression "(iVar6 != -1)" ( (binary_expression "iVar6 != -1" identifier != number_literal) )) || (parenthesized_expression "(uVar7 != 0xffffffff)" ( (binary_expression "uVar7 != 0xffffffff" identifier != number_literal) ))) )) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "byte * output_leb128(byte *param_1,undefined4 param_2,uint param_3,uint param_4,int param_5)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  byte bVar7;\n  uint uVar8;\n  \n  if (param_5 == 0) {\n    uVar8 = param_3 >> 7;\n    uVar5 = param_3 << 0x19 | param_4 >> 7;\n    param_4 = param_4 & 0x7f;\n    bVar7 = (byte)param_4;\n    pbVar2 = param_1;\n    pbVar3 = param_1;\n    if (uVar8 != 0 || uVar5 != 0) {\n      do {\n        uVar6 = uVar8 << 0x19;\n        pbVar3 = pbVar2 + 1;\n        uVar8 = uVar8 >> 7;\n        bVar1 = (byte)param_4;\n        param_4 = uVar5 & 0x7f;\n        bVar7 = (byte)param_4;\n        uVar5 = uVar6 | uVar5 >> 7;\n        *pbVar2 = bVar1 | 0x80;\n        pbVar2 = pbVar3;\n      } while (uVar8 != 0 || uVar5 != 0);\n    }\n    *pbVar3 = bVar7;\n    return pbVar3 + (1 - (int)param_1);\n  }\n  iVar4 = (int)param_3 >> 7;\n  uVar6 = param_4 & 0x7f;\n  bVar7 = (byte)uVar6;\n  uVar5 = param_3 << 0x19 | param_4 >> 7;\n  uVar8 = uVar6 | 0x80;\n  pbVar2 = param_1;\n  if (iVar4 != 0 || uVar5 != 0) goto LAB_00045d34;\nLAB_00045cfc:\n  bVar7 = (byte)uVar6;\n  do {\n    pbVar3 = pbVar2;\n    if ((param_4 & 0x40) == 0) {\n      *pbVar2 = bVar7;\n      return pbVar2 + (1 - (int)param_1);\n    }\n    do {\n      param_4 = uVar5;\n      pbVar2 = pbVar3 + 1;\n      *pbVar3 = (byte)uVar8;\n      uVar5 = iVar4 << 0x19;\n      iVar4 = iVar4 >> 7;\n      uVar6 = param_4 & 0x7f;\n      bVar7 = (byte)uVar6;\n      uVar5 = uVar5 | param_4 >> 7;\n      uVar8 = uVar6 | 0x80;\n      if (iVar4 == 0 && uVar5 == 0) goto LAB_00045cfc;\nLAB_00045d34:\n      pbVar3 = pbVar2;\n    } while ((iVar4 != -1) || (uVar5 != 0xffffffff));\n  } while( true );\n}\n\n" (function_definition "byte * output_leb128(byte *param_1,undefined4 param_2,uint param_3,uint param_4,int param_5)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  byte bVar7;\n  uint uVar8;\n  \n  if (param_5 == 0) {\n    uVar8 = param_3 >> 7;\n    uVar5 = param_3 << 0x19 | param_4 >> 7;\n    param_4 = param_4 & 0x7f;\n    bVar7 = (byte)param_4;\n    pbVar2 = param_1;\n    pbVar3 = param_1;\n    if (uVar8 != 0 || uVar5 != 0) {\n      do {\n        uVar6 = uVar8 << 0x19;\n        pbVar3 = pbVar2 + 1;\n        uVar8 = uVar8 >> 7;\n        bVar1 = (byte)param_4;\n        param_4 = uVar5 & 0x7f;\n        bVar7 = (byte)param_4;\n        uVar5 = uVar6 | uVar5 >> 7;\n        *pbVar2 = bVar1 | 0x80;\n        pbVar2 = pbVar3;\n      } while (uVar8 != 0 || uVar5 != 0);\n    }\n    *pbVar3 = bVar7;\n    return pbVar3 + (1 - (int)param_1);\n  }\n  iVar4 = (int)param_3 >> 7;\n  uVar6 = param_4 & 0x7f;\n  bVar7 = (byte)uVar6;\n  uVar5 = param_3 << 0x19 | param_4 >> 7;\n  uVar8 = uVar6 | 0x80;\n  pbVar2 = param_1;\n  if (iVar4 != 0 || uVar5 != 0) goto LAB_00045d34;\nLAB_00045cfc:\n  bVar7 = (byte)uVar6;\n  do {\n    pbVar3 = pbVar2;\n    if ((param_4 & 0x40) == 0) {\n      *pbVar2 = bVar7;\n      return pbVar2 + (1 - (int)param_1);\n    }\n    do {\n      param_4 = uVar5;\n      pbVar2 = pbVar3 + 1;\n      *pbVar3 = (byte)uVar8;\n      uVar5 = iVar4 << 0x19;\n      iVar4 = iVar4 >> 7;\n      uVar6 = param_4 & 0x7f;\n      bVar7 = (byte)uVar6;\n      uVar5 = uVar5 | param_4 >> 7;\n      uVar8 = uVar6 | 0x80;\n      if (iVar4 == 0 && uVar5 == 0) goto LAB_00045cfc;\nLAB_00045d34:\n      pbVar3 = pbVar2;\n    } while ((iVar4 != -1) || (uVar5 != 0xffffffff));\n  } while( true );\n}" type_identifier (pointer_declarator "* output_leb128(byte *param_1,undefined4 param_2,uint param_3,uint param_4,int param_5)" * (function_declarator "output_leb128(byte *param_1,undefined4 param_2,uint param_3,uint param_4,int param_5)" identifier (parameter_list "(byte *param_1,undefined4 param_2,uint param_3,uint param_4,int param_5)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) )))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  byte bVar7;\n  uint uVar8;\n  \n  if (param_5 == 0) {\n    uVar8 = param_3 >> 7;\n    uVar5 = param_3 << 0x19 | param_4 >> 7;\n    param_4 = param_4 & 0x7f;\n    bVar7 = (byte)param_4;\n    pbVar2 = param_1;\n    pbVar3 = param_1;\n    if (uVar8 != 0 || uVar5 != 0) {\n      do {\n        uVar6 = uVar8 << 0x19;\n        pbVar3 = pbVar2 + 1;\n        uVar8 = uVar8 >> 7;\n        bVar1 = (byte)param_4;\n        param_4 = uVar5 & 0x7f;\n        bVar7 = (byte)param_4;\n        uVar5 = uVar6 | uVar5 >> 7;\n        *pbVar2 = bVar1 | 0x80;\n        pbVar2 = pbVar3;\n      } while (uVar8 != 0 || uVar5 != 0);\n    }\n    *pbVar3 = bVar7;\n    return pbVar3 + (1 - (int)param_1);\n  }\n  iVar4 = (int)param_3 >> 7;\n  uVar6 = param_4 & 0x7f;\n  bVar7 = (byte)uVar6;\n  uVar5 = param_3 << 0x19 | param_4 >> 7;\n  uVar8 = uVar6 | 0x80;\n  pbVar2 = param_1;\n  if (iVar4 != 0 || uVar5 != 0) goto LAB_00045d34;\nLAB_00045cfc:\n  bVar7 = (byte)uVar6;\n  do {\n    pbVar3 = pbVar2;\n    if ((param_4 & 0x40) == 0) {\n      *pbVar2 = bVar7;\n      return pbVar2 + (1 - (int)param_1);\n    }\n    do {\n      param_4 = uVar5;\n      pbVar2 = pbVar3 + 1;\n      *pbVar3 = (byte)uVar8;\n      uVar5 = iVar4 << 0x19;\n      iVar4 = iVar4 >> 7;\n      uVar6 = param_4 & 0x7f;\n      bVar7 = (byte)uVar6;\n      uVar5 = uVar5 | param_4 >> 7;\n      uVar8 = uVar6 | 0x80;\n      if (iVar4 == 0 && uVar5 == 0) goto LAB_00045cfc;\nLAB_00045d34:\n      pbVar3 = pbVar2;\n    } while ((iVar4 != -1) || (uVar5 != 0xffffffff));\n  } while( true );\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "byte bVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (if_statement "if (param_5 == 0) {\n    uVar8 = param_3 >> 7;\n    uVar5 = param_3 << 0x19 | param_4 >> 7;\n    param_4 = param_4 & 0x7f;\n    bVar7 = (byte)param_4;\n    pbVar2 = param_1;\n    pbVar3 = param_1;\n    if (uVar8 != 0 || uVar5 != 0) {\n      do {\n        uVar6 = uVar8 << 0x19;\n        pbVar3 = pbVar2 + 1;\n        uVar8 = uVar8 >> 7;\n        bVar1 = (byte)param_4;\n        param_4 = uVar5 & 0x7f;\n        bVar7 = (byte)param_4;\n        uVar5 = uVar6 | uVar5 >> 7;\n        *pbVar2 = bVar1 | 0x80;\n        pbVar2 = pbVar3;\n      } while (uVar8 != 0 || uVar5 != 0);\n    }\n    *pbVar3 = bVar7;\n    return pbVar3 + (1 - (int)param_1);\n  }" if (parenthesized_expression "(param_5 == 0)" ( (binary_expression "param_5 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar8 = param_3 >> 7;\n    uVar5 = param_3 << 0x19 | param_4 >> 7;\n    param_4 = param_4 & 0x7f;\n    bVar7 = (byte)param_4;\n    pbVar2 = param_1;\n    pbVar3 = param_1;\n    if (uVar8 != 0 || uVar5 != 0) {\n      do {\n        uVar6 = uVar8 << 0x19;\n        pbVar3 = pbVar2 + 1;\n        uVar8 = uVar8 >> 7;\n        bVar1 = (byte)param_4;\n        param_4 = uVar5 & 0x7f;\n        bVar7 = (byte)param_4;\n        uVar5 = uVar6 | uVar5 >> 7;\n        *pbVar2 = bVar1 | 0x80;\n        pbVar2 = pbVar3;\n      } while (uVar8 != 0 || uVar5 != 0);\n    }\n    *pbVar3 = bVar7;\n    return pbVar3 + (1 - (int)param_1);\n  }" { (expression_statement "uVar8 = param_3 >> 7;" (assignment_expression "uVar8 = param_3 >> 7" identifier = (binary_expression "param_3 >> 7" identifier >> number_literal)) ;) (expression_statement "uVar5 = param_3 << 0x19 | param_4 >> 7;" (assignment_expression "uVar5 = param_3 << 0x19 | param_4 >> 7" identifier = (binary_expression "param_3 << 0x19 | param_4 >> 7" (binary_expression "param_3 << 0x19" identifier << number_literal) | (binary_expression "param_4 >> 7" identifier >> number_literal))) ;) (expression_statement "param_4 = param_4 & 0x7f;" (assignment_expression "param_4 = param_4 & 0x7f" identifier = (binary_expression "param_4 & 0x7f" identifier & number_literal)) ;) (expression_statement "bVar7 = (byte)param_4;" (assignment_expression "bVar7 = (byte)param_4" identifier = (cast_expression "(byte)param_4" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" identifier = identifier) ;) (expression_statement "pbVar3 = param_1;" (assignment_expression "pbVar3 = param_1" identifier = identifier) ;) (if_statement "if (uVar8 != 0 || uVar5 != 0) {\n      do {\n        uVar6 = uVar8 << 0x19;\n        pbVar3 = pbVar2 + 1;\n        uVar8 = uVar8 >> 7;\n        bVar1 = (byte)param_4;\n        param_4 = uVar5 & 0x7f;\n        bVar7 = (byte)param_4;\n        uVar5 = uVar6 | uVar5 >> 7;\n        *pbVar2 = bVar1 | 0x80;\n        pbVar2 = pbVar3;\n      } while (uVar8 != 0 || uVar5 != 0);\n    }" if (parenthesized_expression "(uVar8 != 0 || uVar5 != 0)" ( (binary_expression "uVar8 != 0 || uVar5 != 0" (binary_expression "uVar8 != 0" identifier != number_literal) || (binary_expression "uVar5 != 0" identifier != number_literal)) )) (compound_statement "{\n      do {\n        uVar6 = uVar8 << 0x19;\n        pbVar3 = pbVar2 + 1;\n        uVar8 = uVar8 >> 7;\n        bVar1 = (byte)param_4;\n        param_4 = uVar5 & 0x7f;\n        bVar7 = (byte)param_4;\n        uVar5 = uVar6 | uVar5 >> 7;\n        *pbVar2 = bVar1 | 0x80;\n        pbVar2 = pbVar3;\n      } while (uVar8 != 0 || uVar5 != 0);\n    }" { (do_statement "do {\n        uVar6 = uVar8 << 0x19;\n        pbVar3 = pbVar2 + 1;\n        uVar8 = uVar8 >> 7;\n        bVar1 = (byte)param_4;\n        param_4 = uVar5 & 0x7f;\n        bVar7 = (byte)param_4;\n        uVar5 = uVar6 | uVar5 >> 7;\n        *pbVar2 = bVar1 | 0x80;\n        pbVar2 = pbVar3;\n      } while (uVar8 != 0 || uVar5 != 0);" do (compound_statement "{\n        uVar6 = uVar8 << 0x19;\n        pbVar3 = pbVar2 + 1;\n        uVar8 = uVar8 >> 7;\n        bVar1 = (byte)param_4;\n        param_4 = uVar5 & 0x7f;\n        bVar7 = (byte)param_4;\n        uVar5 = uVar6 | uVar5 >> 7;\n        *pbVar2 = bVar1 | 0x80;\n        pbVar2 = pbVar3;\n      }" { (expression_statement "uVar6 = uVar8 << 0x19;" (assignment_expression "uVar6 = uVar8 << 0x19" identifier = (binary_expression "uVar8 << 0x19" identifier << number_literal)) ;) (expression_statement "pbVar3 = pbVar2 + 1;" (assignment_expression "pbVar3 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar8 = uVar8 >> 7;" (assignment_expression "uVar8 = uVar8 >> 7" identifier = (binary_expression "uVar8 >> 7" identifier >> number_literal)) ;) (expression_statement "bVar1 = (byte)param_4;" (assignment_expression "bVar1 = (byte)param_4" identifier = (cast_expression "(byte)param_4" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "param_4 = uVar5 & 0x7f;" (assignment_expression "param_4 = uVar5 & 0x7f" identifier = (binary_expression "uVar5 & 0x7f" identifier & number_literal)) ;) (expression_statement "bVar7 = (byte)param_4;" (assignment_expression "bVar7 = (byte)param_4" identifier = (cast_expression "(byte)param_4" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "uVar5 = uVar6 | uVar5 >> 7;" (assignment_expression "uVar5 = uVar6 | uVar5 >> 7" identifier = (binary_expression "uVar6 | uVar5 >> 7" identifier | (binary_expression "uVar5 >> 7" identifier >> number_literal))) ;) (expression_statement "*pbVar2 = bVar1 | 0x80;" (assignment_expression "*pbVar2 = bVar1 | 0x80" (pointer_expression "*pbVar2" * identifier) = (binary_expression "bVar1 | 0x80" identifier | number_literal)) ;) (expression_statement "pbVar2 = pbVar3;" (assignment_expression "pbVar2 = pbVar3" identifier = identifier) ;) }) while (parenthesized_expression "(uVar8 != 0 || uVar5 != 0)" ( (binary_expression "uVar8 != 0 || uVar5 != 0" (binary_expression "uVar8 != 0" identifier != number_literal) || (binary_expression "uVar5 != 0" identifier != number_literal)) )) ;) })) (expression_statement "*pbVar3 = bVar7;" (assignment_expression "*pbVar3 = bVar7" (pointer_expression "*pbVar3" * identifier) = identifier) ;) (return_statement "return pbVar3 + (1 - (int)param_1);" return (binary_expression "pbVar3 + (1 - (int)param_1)" identifier + (parenthesized_expression "(1 - (int)param_1)" ( (binary_expression "1 - (int)param_1" number_literal - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) })) (expression_statement "iVar4 = (int)param_3 >> 7;" (assignment_expression "iVar4 = (int)param_3 >> 7" identifier = (binary_expression "(int)param_3 >> 7" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (expression_statement "uVar6 = param_4 & 0x7f;" (assignment_expression "uVar6 = param_4 & 0x7f" identifier = (binary_expression "param_4 & 0x7f" identifier & number_literal)) ;) (expression_statement "bVar7 = (byte)uVar6;" (assignment_expression "bVar7 = (byte)uVar6" identifier = (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "uVar5 = param_3 << 0x19 | param_4 >> 7;" (assignment_expression "uVar5 = param_3 << 0x19 | param_4 >> 7" identifier = (binary_expression "param_3 << 0x19 | param_4 >> 7" (binary_expression "param_3 << 0x19" identifier << number_literal) | (binary_expression "param_4 >> 7" identifier >> number_literal))) ;) (expression_statement "uVar8 = uVar6 | 0x80;" (assignment_expression "uVar8 = uVar6 | 0x80" identifier = (binary_expression "uVar6 | 0x80" identifier | number_literal)) ;) (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" identifier = identifier) ;) (if_statement "if (iVar4 != 0 || uVar5 != 0) goto LAB_00045d34;" if (parenthesized_expression "(iVar4 != 0 || uVar5 != 0)" ( (binary_expression "iVar4 != 0 || uVar5 != 0" (binary_expression "iVar4 != 0" identifier != number_literal) || (binary_expression "uVar5 != 0" identifier != number_literal)) )) (goto_statement "goto LAB_00045d34;" goto statement_identifier ;)) (labeled_statement "LAB_00045cfc:\n  bVar7 = (byte)uVar6;" statement_identifier : (expression_statement "bVar7 = (byte)uVar6;" (assignment_expression "bVar7 = (byte)uVar6" identifier = (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier)) ;)) (do_statement "do {\n    pbVar3 = pbVar2;\n    if ((param_4 & 0x40) == 0) {\n      *pbVar2 = bVar7;\n      return pbVar2 + (1 - (int)param_1);\n    }\n    do {\n      param_4 = uVar5;\n      pbVar2 = pbVar3 + 1;\n      *pbVar3 = (byte)uVar8;\n      uVar5 = iVar4 << 0x19;\n      iVar4 = iVar4 >> 7;\n      uVar6 = param_4 & 0x7f;\n      bVar7 = (byte)uVar6;\n      uVar5 = uVar5 | param_4 >> 7;\n      uVar8 = uVar6 | 0x80;\n      if (iVar4 == 0 && uVar5 == 0) goto LAB_00045cfc;\nLAB_00045d34:\n      pbVar3 = pbVar2;\n    } while ((iVar4 != -1) || (uVar5 != 0xffffffff));\n  } while( true );" do (compound_statement "{\n    pbVar3 = pbVar2;\n    if ((param_4 & 0x40) == 0) {\n      *pbVar2 = bVar7;\n      return pbVar2 + (1 - (int)param_1);\n    }\n    do {\n      param_4 = uVar5;\n      pbVar2 = pbVar3 + 1;\n      *pbVar3 = (byte)uVar8;\n      uVar5 = iVar4 << 0x19;\n      iVar4 = iVar4 >> 7;\n      uVar6 = param_4 & 0x7f;\n      bVar7 = (byte)uVar6;\n      uVar5 = uVar5 | param_4 >> 7;\n      uVar8 = uVar6 | 0x80;\n      if (iVar4 == 0 && uVar5 == 0) goto LAB_00045cfc;\nLAB_00045d34:\n      pbVar3 = pbVar2;\n    } while ((iVar4 != -1) || (uVar5 != 0xffffffff));\n  }" { (expression_statement "pbVar3 = pbVar2;" (assignment_expression "pbVar3 = pbVar2" identifier = identifier) ;) (if_statement "if ((param_4 & 0x40) == 0) {\n      *pbVar2 = bVar7;\n      return pbVar2 + (1 - (int)param_1);\n    }" if (parenthesized_expression "((param_4 & 0x40) == 0)" ( (binary_expression "(param_4 & 0x40) == 0" (parenthesized_expression "(param_4 & 0x40)" ( (binary_expression "param_4 & 0x40" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      *pbVar2 = bVar7;\n      return pbVar2 + (1 - (int)param_1);\n    }" { (expression_statement "*pbVar2 = bVar7;" (assignment_expression "*pbVar2 = bVar7" (pointer_expression "*pbVar2" * identifier) = identifier) ;) (return_statement "return pbVar2 + (1 - (int)param_1);" return (binary_expression "pbVar2 + (1 - (int)param_1)" identifier + (parenthesized_expression "(1 - (int)param_1)" ( (binary_expression "1 - (int)param_1" number_literal - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) })) (do_statement "do {\n      param_4 = uVar5;\n      pbVar2 = pbVar3 + 1;\n      *pbVar3 = (byte)uVar8;\n      uVar5 = iVar4 << 0x19;\n      iVar4 = iVar4 >> 7;\n      uVar6 = param_4 & 0x7f;\n      bVar7 = (byte)uVar6;\n      uVar5 = uVar5 | param_4 >> 7;\n      uVar8 = uVar6 | 0x80;\n      if (iVar4 == 0 && uVar5 == 0) goto LAB_00045cfc;\nLAB_00045d34:\n      pbVar3 = pbVar2;\n    } while ((iVar4 != -1) || (uVar5 != 0xffffffff));" do (compound_statement "{\n      param_4 = uVar5;\n      pbVar2 = pbVar3 + 1;\n      *pbVar3 = (byte)uVar8;\n      uVar5 = iVar4 << 0x19;\n      iVar4 = iVar4 >> 7;\n      uVar6 = param_4 & 0x7f;\n      bVar7 = (byte)uVar6;\n      uVar5 = uVar5 | param_4 >> 7;\n      uVar8 = uVar6 | 0x80;\n      if (iVar4 == 0 && uVar5 == 0) goto LAB_00045cfc;\nLAB_00045d34:\n      pbVar3 = pbVar2;\n    }" { (expression_statement "param_4 = uVar5;" (assignment_expression "param_4 = uVar5" identifier = identifier) ;) (expression_statement "pbVar2 = pbVar3 + 1;" (assignment_expression "pbVar2 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (expression_statement "*pbVar3 = (byte)uVar8;" (assignment_expression "*pbVar3 = (byte)uVar8" (pointer_expression "*pbVar3" * identifier) = (cast_expression "(byte)uVar8" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "uVar5 = iVar4 << 0x19;" (assignment_expression "uVar5 = iVar4 << 0x19" identifier = (binary_expression "iVar4 << 0x19" identifier << number_literal)) ;) (expression_statement "iVar4 = iVar4 >> 7;" (assignment_expression "iVar4 = iVar4 >> 7" identifier = (binary_expression "iVar4 >> 7" identifier >> number_literal)) ;) (expression_statement "uVar6 = param_4 & 0x7f;" (assignment_expression "uVar6 = param_4 & 0x7f" identifier = (binary_expression "param_4 & 0x7f" identifier & number_literal)) ;) (expression_statement "bVar7 = (byte)uVar6;" (assignment_expression "bVar7 = (byte)uVar6" identifier = (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "uVar5 = uVar5 | param_4 >> 7;" (assignment_expression "uVar5 = uVar5 | param_4 >> 7" identifier = (binary_expression "uVar5 | param_4 >> 7" identifier | (binary_expression "param_4 >> 7" identifier >> number_literal))) ;) (expression_statement "uVar8 = uVar6 | 0x80;" (assignment_expression "uVar8 = uVar6 | 0x80" identifier = (binary_expression "uVar6 | 0x80" identifier | number_literal)) ;) (if_statement "if (iVar4 == 0 && uVar5 == 0) goto LAB_00045cfc;" if (parenthesized_expression "(iVar4 == 0 && uVar5 == 0)" ( (binary_expression "iVar4 == 0 && uVar5 == 0" (binary_expression "iVar4 == 0" identifier == number_literal) && (binary_expression "uVar5 == 0" identifier == number_literal)) )) (goto_statement "goto LAB_00045cfc;" goto statement_identifier ;)) (labeled_statement "LAB_00045d34:\n      pbVar3 = pbVar2;" statement_identifier : (expression_statement "pbVar3 = pbVar2;" (assignment_expression "pbVar3 = pbVar2" identifier = identifier) ;)) }) while (parenthesized_expression "((iVar4 != -1) || (uVar5 != 0xffffffff))" ( (binary_expression "(iVar4 != -1) || (uVar5 != 0xffffffff)" (parenthesized_expression "(iVar4 != -1)" ( (binary_expression "iVar4 != -1" identifier != number_literal) )) || (parenthesized_expression "(uVar5 != 0xffffffff)" ( (binary_expression "uVar5 != 0xffffffff" identifier != number_literal) ))) )) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT << LIT) | (binary_expression IDENT >> LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (binary_expression IDENT != LIT)) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT << LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | (binary_expression IDENT >> LIT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT | LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (binary_expression IDENT != LIT)) )) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return (binary_expression IDENT + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT << LIT) | (binary_expression IDENT >> LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (binary_expression IDENT != LIT)) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;)) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return (binary_expression IDENT + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) ;) })) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT << LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | (binary_expression IDENT >> LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) && (binary_expression IDENT == LIT)) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) || (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "byte * output_leb128(byte *param_1,undefined4 param_2,uint param_3,uint param_4,int param_5)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  byte bVar7;\n  uint uVar8;\n  \n  if (param_5 == 0) {\n    uVar8 = param_3 >> 7;\n    uVar5 = param_3 << 0x19 | param_4 >> 7;\n    param_4 = param_4 & 0x7f;\n    bVar7 = (byte)param_4;\n    pbVar2 = param_1;\n    pbVar3 = param_1;\n    if (uVar8 != 0 || uVar5 != 0) {\n      do {\n        uVar6 = uVar8 << 0x19;\n        pbVar3 = pbVar2 + 1;\n        uVar8 = uVar8 >> 7;\n        bVar1 = (byte)param_4;\n        param_4 = uVar5 & 0x7f;\n        bVar7 = (byte)param_4;\n        uVar5 = uVar6 | uVar5 >> 7;\n        *pbVar2 = bVar1 | 0x80;\n        pbVar2 = pbVar3;\n      } while (uVar8 != 0 || uVar5 != 0);\n    }\n    *pbVar3 = bVar7;\n    return pbVar3 + (1 - (int)param_1);\n  }\n  iVar4 = (int)param_3 >> 7;\n  uVar6 = param_4 & 0x7f;\n  bVar7 = (byte)uVar6;\n  uVar5 = param_3 << 0x19 | param_4 >> 7;\n  uVar8 = uVar6 | 0x80;\n  pbVar2 = param_1;\n  if (iVar4 != 0 || uVar5 != 0) goto LAB_00045d34;\nLAB_00045cfc:\n  bVar7 = (byte)uVar6;\n  do {\n    pbVar3 = pbVar2;\n    if ((param_4 & 0x40) == 0) {\n      *pbVar2 = bVar7;\n      return pbVar2 + (1 - (int)param_1);\n    }\n    do {\n      param_4 = uVar5;\n      pbVar2 = pbVar3 + 1;\n      *pbVar3 = (byte)uVar8;\n      uVar5 = iVar4 << 0x19;\n      iVar4 = iVar4 >> 7;\n      uVar6 = param_4 & 0x7f;\n      bVar7 = (byte)uVar6;\n      uVar5 = uVar5 | param_4 >> 7;\n      uVar8 = uVar6 | 0x80;\n      if (iVar4 == 0 && uVar5 == 0) goto LAB_00045cfc;\nLAB_00045d34:\n      pbVar3 = pbVar2;\n    } while ((iVar4 != -1) || (uVar5 != 0xffffffff));\n  } while( true );\n}" (type_identifier "byte") (pointer_declarator "* output_leb128(byte *param_1,undefined4 param_2,uint param_3,uint param_4,int param_5)" (* "*") (function_declarator "output_leb128(byte *param_1,undefined4 param_2,uint param_3,uint param_4,int param_5)" (identifier "output_leb128") (parameter_list "(byte *param_1,undefined4 param_2,uint param_3,uint param_4,int param_5)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) () ")")))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  byte bVar7;\n  uint uVar8;\n  \n  if (param_5 == 0) {\n    uVar8 = param_3 >> 7;\n    uVar5 = param_3 << 0x19 | param_4 >> 7;\n    param_4 = param_4 & 0x7f;\n    bVar7 = (byte)param_4;\n    pbVar2 = param_1;\n    pbVar3 = param_1;\n    if (uVar8 != 0 || uVar5 != 0) {\n      do {\n        uVar6 = uVar8 << 0x19;\n        pbVar3 = pbVar2 + 1;\n        uVar8 = uVar8 >> 7;\n        bVar1 = (byte)param_4;\n        param_4 = uVar5 & 0x7f;\n        bVar7 = (byte)param_4;\n        uVar5 = uVar6 | uVar5 >> 7;\n        *pbVar2 = bVar1 | 0x80;\n        pbVar2 = pbVar3;\n      } while (uVar8 != 0 || uVar5 != 0);\n    }\n    *pbVar3 = bVar7;\n    return pbVar3 + (1 - (int)param_1);\n  }\n  iVar4 = (int)param_3 >> 7;\n  uVar6 = param_4 & 0x7f;\n  bVar7 = (byte)uVar6;\n  uVar5 = param_3 << 0x19 | param_4 >> 7;\n  uVar8 = uVar6 | 0x80;\n  pbVar2 = param_1;\n  if (iVar4 != 0 || uVar5 != 0) goto LAB_00045d34;\nLAB_00045cfc:\n  bVar7 = (byte)uVar6;\n  do {\n    pbVar3 = pbVar2;\n    if ((param_4 & 0x40) == 0) {\n      *pbVar2 = bVar7;\n      return pbVar2 + (1 - (int)param_1);\n    }\n    do {\n      param_4 = uVar5;\n      pbVar2 = pbVar3 + 1;\n      *pbVar3 = (byte)uVar8;\n      uVar5 = iVar4 << 0x19;\n      iVar4 = iVar4 >> 7;\n      uVar6 = param_4 & 0x7f;\n      bVar7 = (byte)uVar6;\n      uVar5 = uVar5 | param_4 >> 7;\n      uVar8 = uVar6 | 0x80;\n      if (iVar4 == 0 && uVar5 == 0) goto LAB_00045cfc;\nLAB_00045d34:\n      pbVar3 = pbVar2;\n    } while ((iVar4 != -1) || (uVar5 != 0xffffffff));\n  } while( true );\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "byte bVar7;" (type_identifier "byte") (identifier "bVar7") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (if_statement "if (param_5 == 0) {\n    uVar8 = param_3 >> 7;\n    uVar5 = param_3 << 0x19 | param_4 >> 7;\n    param_4 = param_4 & 0x7f;\n    bVar7 = (byte)param_4;\n    pbVar2 = param_1;\n    pbVar3 = param_1;\n    if (uVar8 != 0 || uVar5 != 0) {\n      do {\n        uVar6 = uVar8 << 0x19;\n        pbVar3 = pbVar2 + 1;\n        uVar8 = uVar8 >> 7;\n        bVar1 = (byte)param_4;\n        param_4 = uVar5 & 0x7f;\n        bVar7 = (byte)param_4;\n        uVar5 = uVar6 | uVar5 >> 7;\n        *pbVar2 = bVar1 | 0x80;\n        pbVar2 = pbVar3;\n      } while (uVar8 != 0 || uVar5 != 0);\n    }\n    *pbVar3 = bVar7;\n    return pbVar3 + (1 - (int)param_1);\n  }" (if "if") (parenthesized_expression "(param_5 == 0)" (( "(") (binary_expression "param_5 == 0" (identifier "param_5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar8 = param_3 >> 7;\n    uVar5 = param_3 << 0x19 | param_4 >> 7;\n    param_4 = param_4 & 0x7f;\n    bVar7 = (byte)param_4;\n    pbVar2 = param_1;\n    pbVar3 = param_1;\n    if (uVar8 != 0 || uVar5 != 0) {\n      do {\n        uVar6 = uVar8 << 0x19;\n        pbVar3 = pbVar2 + 1;\n        uVar8 = uVar8 >> 7;\n        bVar1 = (byte)param_4;\n        param_4 = uVar5 & 0x7f;\n        bVar7 = (byte)param_4;\n        uVar5 = uVar6 | uVar5 >> 7;\n        *pbVar2 = bVar1 | 0x80;\n        pbVar2 = pbVar3;\n      } while (uVar8 != 0 || uVar5 != 0);\n    }\n    *pbVar3 = bVar7;\n    return pbVar3 + (1 - (int)param_1);\n  }" ({ "{") (expression_statement "uVar8 = param_3 >> 7;" (assignment_expression "uVar8 = param_3 >> 7" (identifier "uVar8") (= "=") (binary_expression "param_3 >> 7" (identifier "param_3") (>> ">>") (number_literal "7"))) (; ";")) (expression_statement "uVar5 = param_3 << 0x19 | param_4 >> 7;" (assignment_expression "uVar5 = param_3 << 0x19 | param_4 >> 7" (identifier "uVar5") (= "=") (binary_expression "param_3 << 0x19 | param_4 >> 7" (binary_expression "param_3 << 0x19" (identifier "param_3") (<< "<<") (number_literal "0x19")) (| "|") (binary_expression "param_4 >> 7" (identifier "param_4") (>> ">>") (number_literal "7")))) (; ";")) (expression_statement "param_4 = param_4 & 0x7f;" (assignment_expression "param_4 = param_4 & 0x7f" (identifier "param_4") (= "=") (binary_expression "param_4 & 0x7f" (identifier "param_4") (& "&") (number_literal "0x7f"))) (; ";")) (expression_statement "bVar7 = (byte)param_4;" (assignment_expression "bVar7 = (byte)param_4" (identifier "bVar7") (= "=") (cast_expression "(byte)param_4" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "param_4"))) (; ";")) (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" (identifier "pbVar2") (= "=") (identifier "param_1")) (; ";")) (expression_statement "pbVar3 = param_1;" (assignment_expression "pbVar3 = param_1" (identifier "pbVar3") (= "=") (identifier "param_1")) (; ";")) (if_statement "if (uVar8 != 0 || uVar5 != 0) {\n      do {\n        uVar6 = uVar8 << 0x19;\n        pbVar3 = pbVar2 + 1;\n        uVar8 = uVar8 >> 7;\n        bVar1 = (byte)param_4;\n        param_4 = uVar5 & 0x7f;\n        bVar7 = (byte)param_4;\n        uVar5 = uVar6 | uVar5 >> 7;\n        *pbVar2 = bVar1 | 0x80;\n        pbVar2 = pbVar3;\n      } while (uVar8 != 0 || uVar5 != 0);\n    }" (if "if") (parenthesized_expression "(uVar8 != 0 || uVar5 != 0)" (( "(") (binary_expression "uVar8 != 0 || uVar5 != 0" (binary_expression "uVar8 != 0" (identifier "uVar8") (!= "!=") (number_literal "0")) (|| "||") (binary_expression "uVar5 != 0" (identifier "uVar5") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n      do {\n        uVar6 = uVar8 << 0x19;\n        pbVar3 = pbVar2 + 1;\n        uVar8 = uVar8 >> 7;\n        bVar1 = (byte)param_4;\n        param_4 = uVar5 & 0x7f;\n        bVar7 = (byte)param_4;\n        uVar5 = uVar6 | uVar5 >> 7;\n        *pbVar2 = bVar1 | 0x80;\n        pbVar2 = pbVar3;\n      } while (uVar8 != 0 || uVar5 != 0);\n    }" ({ "{") (do_statement "do {\n        uVar6 = uVar8 << 0x19;\n        pbVar3 = pbVar2 + 1;\n        uVar8 = uVar8 >> 7;\n        bVar1 = (byte)param_4;\n        param_4 = uVar5 & 0x7f;\n        bVar7 = (byte)param_4;\n        uVar5 = uVar6 | uVar5 >> 7;\n        *pbVar2 = bVar1 | 0x80;\n        pbVar2 = pbVar3;\n      } while (uVar8 != 0 || uVar5 != 0);" (do "do") (compound_statement "{\n        uVar6 = uVar8 << 0x19;\n        pbVar3 = pbVar2 + 1;\n        uVar8 = uVar8 >> 7;\n        bVar1 = (byte)param_4;\n        param_4 = uVar5 & 0x7f;\n        bVar7 = (byte)param_4;\n        uVar5 = uVar6 | uVar5 >> 7;\n        *pbVar2 = bVar1 | 0x80;\n        pbVar2 = pbVar3;\n      }" ({ "{") (expression_statement "uVar6 = uVar8 << 0x19;" (assignment_expression "uVar6 = uVar8 << 0x19" (identifier "uVar6") (= "=") (binary_expression "uVar8 << 0x19" (identifier "uVar8") (<< "<<") (number_literal "0x19"))) (; ";")) (expression_statement "pbVar3 = pbVar2 + 1;" (assignment_expression "pbVar3 = pbVar2 + 1" (identifier "pbVar3") (= "=") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar8 = uVar8 >> 7;" (assignment_expression "uVar8 = uVar8 >> 7" (identifier "uVar8") (= "=") (binary_expression "uVar8 >> 7" (identifier "uVar8") (>> ">>") (number_literal "7"))) (; ";")) (expression_statement "bVar1 = (byte)param_4;" (assignment_expression "bVar1 = (byte)param_4" (identifier "bVar1") (= "=") (cast_expression "(byte)param_4" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "param_4"))) (; ";")) (expression_statement "param_4 = uVar5 & 0x7f;" (assignment_expression "param_4 = uVar5 & 0x7f" (identifier "param_4") (= "=") (binary_expression "uVar5 & 0x7f" (identifier "uVar5") (& "&") (number_literal "0x7f"))) (; ";")) (expression_statement "bVar7 = (byte)param_4;" (assignment_expression "bVar7 = (byte)param_4" (identifier "bVar7") (= "=") (cast_expression "(byte)param_4" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "param_4"))) (; ";")) (expression_statement "uVar5 = uVar6 | uVar5 >> 7;" (assignment_expression "uVar5 = uVar6 | uVar5 >> 7" (identifier "uVar5") (= "=") (binary_expression "uVar6 | uVar5 >> 7" (identifier "uVar6") (| "|") (binary_expression "uVar5 >> 7" (identifier "uVar5") (>> ">>") (number_literal "7")))) (; ";")) (expression_statement "*pbVar2 = bVar1 | 0x80;" (assignment_expression "*pbVar2 = bVar1 | 0x80" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (= "=") (binary_expression "bVar1 | 0x80" (identifier "bVar1") (| "|") (number_literal "0x80"))) (; ";")) (expression_statement "pbVar2 = pbVar3;" (assignment_expression "pbVar2 = pbVar3" (identifier "pbVar2") (= "=") (identifier "pbVar3")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar8 != 0 || uVar5 != 0)" (( "(") (binary_expression "uVar8 != 0 || uVar5 != 0" (binary_expression "uVar8 != 0" (identifier "uVar8") (!= "!=") (number_literal "0")) (|| "||") (binary_expression "uVar5 != 0" (identifier "uVar5") (!= "!=") (number_literal "0"))) () ")")) (; ";")) (} "}"))) (expression_statement "*pbVar3 = bVar7;" (assignment_expression "*pbVar3 = bVar7" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (= "=") (identifier "bVar7")) (; ";")) (return_statement "return pbVar3 + (1 - (int)param_1);" (return "return") (binary_expression "pbVar3 + (1 - (int)param_1)" (identifier "pbVar3") (+ "+") (parenthesized_expression "(1 - (int)param_1)" (( "(") (binary_expression "1 - (int)param_1" (number_literal "1") (- "-") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar4 = (int)param_3 >> 7;" (assignment_expression "iVar4 = (int)param_3 >> 7" (identifier "iVar4") (= "=") (binary_expression "(int)param_3 >> 7" (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) (>> ">>") (number_literal "7"))) (; ";")) (expression_statement "uVar6 = param_4 & 0x7f;" (assignment_expression "uVar6 = param_4 & 0x7f" (identifier "uVar6") (= "=") (binary_expression "param_4 & 0x7f" (identifier "param_4") (& "&") (number_literal "0x7f"))) (; ";")) (expression_statement "bVar7 = (byte)uVar6;" (assignment_expression "bVar7 = (byte)uVar6" (identifier "bVar7") (= "=") (cast_expression "(byte)uVar6" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar6"))) (; ";")) (expression_statement "uVar5 = param_3 << 0x19 | param_4 >> 7;" (assignment_expression "uVar5 = param_3 << 0x19 | param_4 >> 7" (identifier "uVar5") (= "=") (binary_expression "param_3 << 0x19 | param_4 >> 7" (binary_expression "param_3 << 0x19" (identifier "param_3") (<< "<<") (number_literal "0x19")) (| "|") (binary_expression "param_4 >> 7" (identifier "param_4") (>> ">>") (number_literal "7")))) (; ";")) (expression_statement "uVar8 = uVar6 | 0x80;" (assignment_expression "uVar8 = uVar6 | 0x80" (identifier "uVar8") (= "=") (binary_expression "uVar6 | 0x80" (identifier "uVar6") (| "|") (number_literal "0x80"))) (; ";")) (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" (identifier "pbVar2") (= "=") (identifier "param_1")) (; ";")) (if_statement "if (iVar4 != 0 || uVar5 != 0) goto LAB_00045d34;" (if "if") (parenthesized_expression "(iVar4 != 0 || uVar5 != 0)" (( "(") (binary_expression "iVar4 != 0 || uVar5 != 0" (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) (|| "||") (binary_expression "uVar5 != 0" (identifier "uVar5") (!= "!=") (number_literal "0"))) () ")")) (goto_statement "goto LAB_00045d34;" (goto "goto") (statement_identifier "LAB_00045d34") (; ";"))) (labeled_statement "LAB_00045cfc:\n  bVar7 = (byte)uVar6;" (statement_identifier "LAB_00045cfc") (: ":") (expression_statement "bVar7 = (byte)uVar6;" (assignment_expression "bVar7 = (byte)uVar6" (identifier "bVar7") (= "=") (cast_expression "(byte)uVar6" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar6"))) (; ";"))) (do_statement "do {\n    pbVar3 = pbVar2;\n    if ((param_4 & 0x40) == 0) {\n      *pbVar2 = bVar7;\n      return pbVar2 + (1 - (int)param_1);\n    }\n    do {\n      param_4 = uVar5;\n      pbVar2 = pbVar3 + 1;\n      *pbVar3 = (byte)uVar8;\n      uVar5 = iVar4 << 0x19;\n      iVar4 = iVar4 >> 7;\n      uVar6 = param_4 & 0x7f;\n      bVar7 = (byte)uVar6;\n      uVar5 = uVar5 | param_4 >> 7;\n      uVar8 = uVar6 | 0x80;\n      if (iVar4 == 0 && uVar5 == 0) goto LAB_00045cfc;\nLAB_00045d34:\n      pbVar3 = pbVar2;\n    } while ((iVar4 != -1) || (uVar5 != 0xffffffff));\n  } while( true );" (do "do") (compound_statement "{\n    pbVar3 = pbVar2;\n    if ((param_4 & 0x40) == 0) {\n      *pbVar2 = bVar7;\n      return pbVar2 + (1 - (int)param_1);\n    }\n    do {\n      param_4 = uVar5;\n      pbVar2 = pbVar3 + 1;\n      *pbVar3 = (byte)uVar8;\n      uVar5 = iVar4 << 0x19;\n      iVar4 = iVar4 >> 7;\n      uVar6 = param_4 & 0x7f;\n      bVar7 = (byte)uVar6;\n      uVar5 = uVar5 | param_4 >> 7;\n      uVar8 = uVar6 | 0x80;\n      if (iVar4 == 0 && uVar5 == 0) goto LAB_00045cfc;\nLAB_00045d34:\n      pbVar3 = pbVar2;\n    } while ((iVar4 != -1) || (uVar5 != 0xffffffff));\n  }" ({ "{") (expression_statement "pbVar3 = pbVar2;" (assignment_expression "pbVar3 = pbVar2" (identifier "pbVar3") (= "=") (identifier "pbVar2")) (; ";")) (if_statement "if ((param_4 & 0x40) == 0) {\n      *pbVar2 = bVar7;\n      return pbVar2 + (1 - (int)param_1);\n    }" (if "if") (parenthesized_expression "((param_4 & 0x40) == 0)" (( "(") (binary_expression "(param_4 & 0x40) == 0" (parenthesized_expression "(param_4 & 0x40)" (( "(") (binary_expression "param_4 & 0x40" (identifier "param_4") (& "&") (number_literal "0x40")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *pbVar2 = bVar7;\n      return pbVar2 + (1 - (int)param_1);\n    }" ({ "{") (expression_statement "*pbVar2 = bVar7;" (assignment_expression "*pbVar2 = bVar7" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (= "=") (identifier "bVar7")) (; ";")) (return_statement "return pbVar2 + (1 - (int)param_1);" (return "return") (binary_expression "pbVar2 + (1 - (int)param_1)" (identifier "pbVar2") (+ "+") (parenthesized_expression "(1 - (int)param_1)" (( "(") (binary_expression "1 - (int)param_1" (number_literal "1") (- "-") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) () ")"))) (; ";")) (} "}"))) (do_statement "do {\n      param_4 = uVar5;\n      pbVar2 = pbVar3 + 1;\n      *pbVar3 = (byte)uVar8;\n      uVar5 = iVar4 << 0x19;\n      iVar4 = iVar4 >> 7;\n      uVar6 = param_4 & 0x7f;\n      bVar7 = (byte)uVar6;\n      uVar5 = uVar5 | param_4 >> 7;\n      uVar8 = uVar6 | 0x80;\n      if (iVar4 == 0 && uVar5 == 0) goto LAB_00045cfc;\nLAB_00045d34:\n      pbVar3 = pbVar2;\n    } while ((iVar4 != -1) || (uVar5 != 0xffffffff));" (do "do") (compound_statement "{\n      param_4 = uVar5;\n      pbVar2 = pbVar3 + 1;\n      *pbVar3 = (byte)uVar8;\n      uVar5 = iVar4 << 0x19;\n      iVar4 = iVar4 >> 7;\n      uVar6 = param_4 & 0x7f;\n      bVar7 = (byte)uVar6;\n      uVar5 = uVar5 | param_4 >> 7;\n      uVar8 = uVar6 | 0x80;\n      if (iVar4 == 0 && uVar5 == 0) goto LAB_00045cfc;\nLAB_00045d34:\n      pbVar3 = pbVar2;\n    }" ({ "{") (expression_statement "param_4 = uVar5;" (assignment_expression "param_4 = uVar5" (identifier "param_4") (= "=") (identifier "uVar5")) (; ";")) (expression_statement "pbVar2 = pbVar3 + 1;" (assignment_expression "pbVar2 = pbVar3 + 1" (identifier "pbVar2") (= "=") (binary_expression "pbVar3 + 1" (identifier "pbVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*pbVar3 = (byte)uVar8;" (assignment_expression "*pbVar3 = (byte)uVar8" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (= "=") (cast_expression "(byte)uVar8" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar8"))) (; ";")) (expression_statement "uVar5 = iVar4 << 0x19;" (assignment_expression "uVar5 = iVar4 << 0x19" (identifier "uVar5") (= "=") (binary_expression "iVar4 << 0x19" (identifier "iVar4") (<< "<<") (number_literal "0x19"))) (; ";")) (expression_statement "iVar4 = iVar4 >> 7;" (assignment_expression "iVar4 = iVar4 >> 7" (identifier "iVar4") (= "=") (binary_expression "iVar4 >> 7" (identifier "iVar4") (>> ">>") (number_literal "7"))) (; ";")) (expression_statement "uVar6 = param_4 & 0x7f;" (assignment_expression "uVar6 = param_4 & 0x7f" (identifier "uVar6") (= "=") (binary_expression "param_4 & 0x7f" (identifier "param_4") (& "&") (number_literal "0x7f"))) (; ";")) (expression_statement "bVar7 = (byte)uVar6;" (assignment_expression "bVar7 = (byte)uVar6" (identifier "bVar7") (= "=") (cast_expression "(byte)uVar6" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar6"))) (; ";")) (expression_statement "uVar5 = uVar5 | param_4 >> 7;" (assignment_expression "uVar5 = uVar5 | param_4 >> 7" (identifier "uVar5") (= "=") (binary_expression "uVar5 | param_4 >> 7" (identifier "uVar5") (| "|") (binary_expression "param_4 >> 7" (identifier "param_4") (>> ">>") (number_literal "7")))) (; ";")) (expression_statement "uVar8 = uVar6 | 0x80;" (assignment_expression "uVar8 = uVar6 | 0x80" (identifier "uVar8") (= "=") (binary_expression "uVar6 | 0x80" (identifier "uVar6") (| "|") (number_literal "0x80"))) (; ";")) (if_statement "if (iVar4 == 0 && uVar5 == 0) goto LAB_00045cfc;" (if "if") (parenthesized_expression "(iVar4 == 0 && uVar5 == 0)" (( "(") (binary_expression "iVar4 == 0 && uVar5 == 0" (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) (&& "&&") (binary_expression "uVar5 == 0" (identifier "uVar5") (== "==") (number_literal "0"))) () ")")) (goto_statement "goto LAB_00045cfc;" (goto "goto") (statement_identifier "LAB_00045cfc") (; ";"))) (labeled_statement "LAB_00045d34:\n      pbVar3 = pbVar2;" (statement_identifier "LAB_00045d34") (: ":") (expression_statement "pbVar3 = pbVar2;" (assignment_expression "pbVar3 = pbVar2" (identifier "pbVar3") (= "=") (identifier "pbVar2")) (; ";"))) (} "}")) (while "while") (parenthesized_expression "((iVar4 != -1) || (uVar5 != 0xffffffff))" (( "(") (binary_expression "(iVar4 != -1) || (uVar5 != 0xffffffff)" (parenthesized_expression "(iVar4 != -1)" (( "(") (binary_expression "iVar4 != -1" (identifier "iVar4") (!= "!=") (number_literal "-1")) () ")")) (|| "||") (parenthesized_expression "(uVar5 != 0xffffffff)" (( "(") (binary_expression "uVar5 != 0xffffffff" (identifier "uVar5") (!= "!=") (number_literal "0xffffffff")) () ")"))) () ")")) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) 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)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (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: (identifier))) (return_statement (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (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: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) condition: (parenthesized_expression (true))))))

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

{
  byte bVar1;
  byte *pbVar2;
  byte *pbVar3;
  int iVar4;
  uint uVar5;
  uint uVar6;
  byte bVar7;
  uint uVar8;
  
  if (param_5 == 0) {
    uVar8 = param_3 >> 7;
    uVar5 = param_3 << 0x19 | param_4 >> 7;
    param_4 = param_4 & 0x7f;
    bVar7 = (byte)param_4;
    pbVar2 = param_1;
    pbVar3 = param_1;
    if (uVar8 != 0 || uVar5 != 0) {
      do {
        uVar6 = uVar8 << 0x19;
        pbVar3 = pbVar2 + 1;
        uVar8 = uVar8 >> 7;
        bVar1 = (byte)param_4;
        param_4 = uVar5 & 0x7f;
        bVar7 = (byte)param_4;
        uVar5 = uVar6 | uVar5 >> 7;
        *pbVar2 = bVar1 | 0x80;
        pbVar2 = pbVar3;
      } while (uVar8 != 0 || uVar5 != 0);
    }
    *pbVar3 = bVar7;
    return pbVar3 + (1 - (int)param_1);
  }
  iVar4 = (int)param_3 >> 7;
  uVar6 = param_4 & 0x7f;
  bVar7 = (byte)uVar6;
  uVar5 = param_3 << 0x19 | param_4 >> 7;
  uVar8 = uVar6 | 0x80;
  pbVar2 = param_1;
  if (iVar4 != 0 || uVar5 != 0) goto LAB_00045d34;
LAB_00045cfc:
  bVar7 = (byte)uVar6;
  do {
    pbVar3 = pbVar2;
    if ((param_4 & 0x40) == 0) {
      *pbVar2 = bVar7;
      return pbVar2 + (1 - (int)param_1);
    }
    do {
      param_4 = uVar5;
      pbVar2 = pbVar3 + 1;
      *pbVar3 = (byte)uVar8;
      uVar5 = iVar4 << 0x19;
      iVar4 = iVar4 >> 7;
      uVar6 = param_4 & 0x7f;
      bVar7 = (byte)uVar6;
      uVar5 = uVar5 | param_4 >> 7;
      uVar8 = uVar6 | 0x80;
      if (iVar4 == 0 && uVar5 == 0) goto LAB_00045cfc;
LAB_00045d34:
      pbVar3 = pbVar2;
    } while ((iVar4 != -1) || (uVar5 != 0xffffffff));
  } while( true );
}

