
int64_t gold::read_signed_LEB_128_x(uchar *buffer,size_t *len,uchar byte)

{
  byte bVar1;
  char *format;
  byte bVar2;
  int iVar3;
  ulong uVar4;
  size_t sVar5;
  
  sVar5 = 1;
  iVar3 = 7;
  uVar4 = (ulong)(byte & 0x7f);
  do {
    bVar1 = buffer[sVar5 - 1];
    sVar5 = sVar5 + 1;
    bVar2 = (byte)iVar3;
    iVar3 = iVar3 + 7;
    uVar4 = uVar4 | (ulong)(bVar1 & 0x7f) << (bVar2 & 0x3f);
    if (-1 < (char)bVar1) {
      if ((iVar3 < 0x40) && ((bVar1 & 0x40) != 0)) {
        *len = sVar5;
        return uVar4 | -1L << ((byte)iVar3 & 0x3f);
      }
      goto LAB_0021139f;
    }
  } while (iVar3 != 0x4d);
  format = (char *)gettext("Unusually large LEB128 decoded, debug information may be corrupted");
  gold_warning(format);
  sVar5 = 0xb;
LAB_0021139f:
  *len = sVar5;
  return uVar4;
}



ulong FUN_00211340(long param_1,long *param_2,uint param_3)

{
  byte bVar1;
  undefined8 uVar2;
  byte bVar3;
  int iVar4;
  ulong uVar5;
  long lVar6;
  
  lVar6 = 1;
  iVar4 = 7;
  uVar5 = (ulong)(param_3 & 0x7f);
  do {
    bVar1 = *(byte *)(param_1 + -1 + lVar6);
    lVar6 = lVar6 + 1;
    bVar3 = (byte)iVar4;
    iVar4 = iVar4 + 7;
    uVar5 = uVar5 | (ulong)(bVar1 & 0x7f) << (bVar3 & 0x3f);
    if (-1 < (char)bVar1) {
      if ((iVar4 < 0x40) && ((bVar1 & 0x40) != 0)) {
        *param_2 = lVar6;
        return uVar5 | -1L << ((byte)iVar4 & 0x3f);
      }
      goto LAB_0021139f;
    }
  } while (iVar4 != 0x4d);
  uVar2 = gettext("Unusually large LEB128 decoded, debug information may be corrupted");
  FUN_001e15a0(uVar2);
  lVar6 = 0xb;
LAB_0021139f:
  *param_2 = lVar6;
  return uVar5;
}


PUSH RBP
MOV R8D,0x1
MOV RBP,RSI
MOV ECX,0x7
PUSH RBX
MOV EBX,EDX
AND EBX,0x7f
SUB RSP,0x8
NOP dword ptr [RAX]
MOVZX R9D,byte ptr [RDI + R8*0x1 + -0x1]
ADD R8,0x1
MOV RAX,R9
AND EAX,0x7f
SHL RAX,CL
ADD ECX,0x7
OR RBX,RAX
TEST R9B,R9B
JNS 0x002113b0
CMP ECX,0x4d
JNZ 0x00211360
LEA RDI,[0x3e5108]
CALL 0x00150320
MOV RDI,RAX
XOR EAX,EAX
CALL 0x001e15a0
MOV R8D,0xb
MOV qword ptr [RBP],R8
ADD RSP,0x8
MOV RAX,RBX
POP RBX
POP RBP
RET
CMP ECX,0x3f
JG 0x0021139f
AND R9D,0x40
JZ 0x0021139f
MOV RAX,-0x1
MOV qword ptr [RBP],R8
ADD RSP,0x8
SHL RAX,CL
OR RBX,RAX
MOV RAX,RBX
POP RBX
POP RBP
RET
(translation_unit "ulong FUN_00211340(long param_1,long *param_2,uint param_3)\n\n{\n  byte bVar1;\n  undefined8 uVar2;\n  byte bVar3;\n  int iVar4;\n  ulong uVar5;\n  long lVar6;\n  \n  lVar6 = 1;\n  iVar4 = 7;\n  uVar5 = (ulong)(param_3 & 0x7f);\n  do {\n    bVar1 = *(byte *)(param_1 + -1 + lVar6);\n    lVar6 = lVar6 + 1;\n    bVar3 = (byte)iVar4;\n    iVar4 = iVar4 + 7;\n    uVar5 = uVar5 | (ulong)(bVar1 & 0x7f) << (bVar3 & 0x3f);\n    if (-1 < (char)bVar1) {\n      if ((iVar4 < 0x40) && ((bVar1 & 0x40) != 0)) {\n        *param_2 = lVar6;\n        return uVar5 | -1L << ((byte)iVar4 & 0x3f);\n      }\n      goto LAB_0021139f;\n    }\n  } while (iVar4 != 0x4d);\n  uVar2 = gettext("Unusually large LEB128 decoded, debug information may be corrupted");\n  FUN_001e15a0(uVar2);\n  lVar6 = 0xb;\nLAB_0021139f:\n  *param_2 = lVar6;\n  return uVar5;\n}\n\n" (function_definition "ulong FUN_00211340(long param_1,long *param_2,uint param_3)\n\n{\n  byte bVar1;\n  undefined8 uVar2;\n  byte bVar3;\n  int iVar4;\n  ulong uVar5;\n  long lVar6;\n  \n  lVar6 = 1;\n  iVar4 = 7;\n  uVar5 = (ulong)(param_3 & 0x7f);\n  do {\n    bVar1 = *(byte *)(param_1 + -1 + lVar6);\n    lVar6 = lVar6 + 1;\n    bVar3 = (byte)iVar4;\n    iVar4 = iVar4 + 7;\n    uVar5 = uVar5 | (ulong)(bVar1 & 0x7f) << (bVar3 & 0x3f);\n    if (-1 < (char)bVar1) {\n      if ((iVar4 < 0x40) && ((bVar1 & 0x40) != 0)) {\n        *param_2 = lVar6;\n        return uVar5 | -1L << ((byte)iVar4 & 0x3f);\n      }\n      goto LAB_0021139f;\n    }\n  } while (iVar4 != 0x4d);\n  uVar2 = gettext("Unusually large LEB128 decoded, debug information may be corrupted");\n  FUN_001e15a0(uVar2);\n  lVar6 = 0xb;\nLAB_0021139f:\n  *param_2 = lVar6;\n  return uVar5;\n}" type_identifier (function_declarator "FUN_00211340(long param_1,long *param_2,uint param_3)" identifier (parameter_list "(long param_1,long *param_2,uint param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  undefined8 uVar2;\n  byte bVar3;\n  int iVar4;\n  ulong uVar5;\n  long lVar6;\n  \n  lVar6 = 1;\n  iVar4 = 7;\n  uVar5 = (ulong)(param_3 & 0x7f);\n  do {\n    bVar1 = *(byte *)(param_1 + -1 + lVar6);\n    lVar6 = lVar6 + 1;\n    bVar3 = (byte)iVar4;\n    iVar4 = iVar4 + 7;\n    uVar5 = uVar5 | (ulong)(bVar1 & 0x7f) << (bVar3 & 0x3f);\n    if (-1 < (char)bVar1) {\n      if ((iVar4 < 0x40) && ((bVar1 & 0x40) != 0)) {\n        *param_2 = lVar6;\n        return uVar5 | -1L << ((byte)iVar4 & 0x3f);\n      }\n      goto LAB_0021139f;\n    }\n  } while (iVar4 != 0x4d);\n  uVar2 = gettext("Unusually large LEB128 decoded, debug information may be corrupted");\n  FUN_001e15a0(uVar2);\n  lVar6 = 0xb;\nLAB_0021139f:\n  *param_2 = lVar6;\n  return uVar5;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar6 = 1;" (assignment_expression "lVar6 = 1" identifier = number_literal) ;) (expression_statement "iVar4 = 7;" (assignment_expression "iVar4 = 7" identifier = number_literal) ;) (expression_statement "uVar5 = (ulong)(param_3 & 0x7f);" (assignment_expression "uVar5 = (ulong)(param_3 & 0x7f)" identifier = (call_expression "(ulong)(param_3 & 0x7f)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_3 & 0x7f)" ( (binary_expression "param_3 & 0x7f" identifier & number_literal) )))) ;) (do_statement "do {\n    bVar1 = *(byte *)(param_1 + -1 + lVar6);\n    lVar6 = lVar6 + 1;\n    bVar3 = (byte)iVar4;\n    iVar4 = iVar4 + 7;\n    uVar5 = uVar5 | (ulong)(bVar1 & 0x7f) << (bVar3 & 0x3f);\n    if (-1 < (char)bVar1) {\n      if ((iVar4 < 0x40) && ((bVar1 & 0x40) != 0)) {\n        *param_2 = lVar6;\n        return uVar5 | -1L << ((byte)iVar4 & 0x3f);\n      }\n      goto LAB_0021139f;\n    }\n  } while (iVar4 != 0x4d);" do (compound_statement "{\n    bVar1 = *(byte *)(param_1 + -1 + lVar6);\n    lVar6 = lVar6 + 1;\n    bVar3 = (byte)iVar4;\n    iVar4 = iVar4 + 7;\n    uVar5 = uVar5 | (ulong)(bVar1 & 0x7f) << (bVar3 & 0x3f);\n    if (-1 < (char)bVar1) {\n      if ((iVar4 < 0x40) && ((bVar1 & 0x40) != 0)) {\n        *param_2 = lVar6;\n        return uVar5 | -1L << ((byte)iVar4 & 0x3f);\n      }\n      goto LAB_0021139f;\n    }\n  }" { (expression_statement "bVar1 = *(byte *)(param_1 + -1 + lVar6);" (assignment_expression "bVar1 = *(byte *)(param_1 + -1 + lVar6)" identifier = (pointer_expression "*(byte *)(param_1 + -1 + lVar6)" * (cast_expression "(byte *)(param_1 + -1 + lVar6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + -1 + lVar6)" ( (binary_expression "param_1 + -1 + lVar6" (binary_expression "param_1 + -1" identifier + number_literal) + identifier) ))))) ;) (expression_statement "lVar6 = lVar6 + 1;" (assignment_expression "lVar6 = lVar6 + 1" identifier = (binary_expression "lVar6 + 1" identifier + number_literal)) ;) (expression_statement "bVar3 = (byte)iVar4;" (assignment_expression "bVar3 = (byte)iVar4" identifier = (cast_expression "(byte)iVar4" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "iVar4 = iVar4 + 7;" (assignment_expression "iVar4 = iVar4 + 7" identifier = (binary_expression "iVar4 + 7" identifier + number_literal)) ;) (expression_statement "uVar5 = uVar5 | (ulong)(bVar1 & 0x7f) << (bVar3 & 0x3f);" (assignment_expression "uVar5 = uVar5 | (ulong)(bVar1 & 0x7f) << (bVar3 & 0x3f)" identifier = (binary_expression "uVar5 | (ulong)(bVar1 & 0x7f) << (bVar3 & 0x3f)" identifier | (binary_expression "(ulong)(bVar1 & 0x7f) << (bVar3 & 0x3f)" (call_expression "(ulong)(bVar1 & 0x7f)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(bVar1 & 0x7f)" ( (binary_expression "bVar1 & 0x7f" identifier & number_literal) ))) << (parenthesized_expression "(bVar3 & 0x3f)" ( (binary_expression "bVar3 & 0x3f" identifier & number_literal) ))))) ;) (if_statement "if (-1 < (char)bVar1) {\n      if ((iVar4 < 0x40) && ((bVar1 & 0x40) != 0)) {\n        *param_2 = lVar6;\n        return uVar5 | -1L << ((byte)iVar4 & 0x3f);\n      }\n      goto LAB_0021139f;\n    }" if (parenthesized_expression "(-1 < (char)bVar1)" ( (binary_expression "-1 < (char)bVar1" number_literal < (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier)) )) (compound_statement "{\n      if ((iVar4 < 0x40) && ((bVar1 & 0x40) != 0)) {\n        *param_2 = lVar6;\n        return uVar5 | -1L << ((byte)iVar4 & 0x3f);\n      }\n      goto LAB_0021139f;\n    }" { (if_statement "if ((iVar4 < 0x40) && ((bVar1 & 0x40) != 0)) {\n        *param_2 = lVar6;\n        return uVar5 | -1L << ((byte)iVar4 & 0x3f);\n      }" if (parenthesized_expression "((iVar4 < 0x40) && ((bVar1 & 0x40) != 0))" ( (binary_expression "(iVar4 < 0x40) && ((bVar1 & 0x40) != 0)" (parenthesized_expression "(iVar4 < 0x40)" ( (binary_expression "iVar4 < 0x40" identifier < number_literal) )) && (parenthesized_expression "((bVar1 & 0x40) != 0)" ( (binary_expression "(bVar1 & 0x40) != 0" (parenthesized_expression "(bVar1 & 0x40)" ( (binary_expression "bVar1 & 0x40" identifier & number_literal) )) != number_literal) ))) )) (compound_statement "{\n        *param_2 = lVar6;\n        return uVar5 | -1L << ((byte)iVar4 & 0x3f);\n      }" { (expression_statement "*param_2 = lVar6;" (assignment_expression "*param_2 = lVar6" (pointer_expression "*param_2" * identifier) = identifier) ;) (return_statement "return uVar5 | -1L << ((byte)iVar4 & 0x3f);" return (binary_expression "uVar5 | -1L << ((byte)iVar4 & 0x3f)" identifier | (binary_expression "-1L << ((byte)iVar4 & 0x3f)" number_literal << (parenthesized_expression "((byte)iVar4 & 0x3f)" ( (binary_expression "(byte)iVar4 & 0x3f" (cast_expression "(byte)iVar4" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )))) ;) })) (goto_statement "goto LAB_0021139f;" goto statement_identifier ;) })) }) while (parenthesized_expression "(iVar4 != 0x4d)" ( (binary_expression "iVar4 != 0x4d" identifier != number_literal) )) ;) (expression_statement "uVar2 = gettext("Unusually large LEB128 decoded, debug information may be corrupted");" (assignment_expression "uVar2 = gettext("Unusually large LEB128 decoded, debug information may be corrupted")" identifier = (call_expression "gettext("Unusually large LEB128 decoded, debug information may be corrupted")" identifier (argument_list "("Unusually large LEB128 decoded, debug information may be corrupted")" ( (string_literal ""Unusually large LEB128 decoded, debug information may be corrupted"" " string_content ") )))) ;) (expression_statement "FUN_001e15a0(uVar2);" (call_expression "FUN_001e15a0(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "lVar6 = 0xb;" (assignment_expression "lVar6 = 0xb" identifier = number_literal) ;) (labeled_statement "LAB_0021139f:\n  *param_2 = lVar6;" statement_identifier : (expression_statement "*param_2 = lVar6;" (assignment_expression "*param_2 = lVar6" (pointer_expression "*param_2" * identifier) = identifier) ;)) (return_statement "return uVar5;" return identifier ;) })))
(translation_unit "int64_t gold::read_signed_LEB_128_x(uchar *buffer,size_t *len,uchar byte)\n\n{\n  byte bVar1;\n  char *format;\n  byte bVar2;\n  int iVar3;\n  ulong uVar4;\n  size_t sVar5;\n  \n  sVar5 = 1;\n  iVar3 = 7;\n  uVar4 = (ulong)(byte & 0x7f);\n  do {\n    bVar1 = buffer[sVar5 - 1];\n    sVar5 = sVar5 + 1;\n    bVar2 = (byte)iVar3;\n    iVar3 = iVar3 + 7;\n    uVar4 = uVar4 | (ulong)(bVar1 & 0x7f) << (bVar2 & 0x3f);\n    if (-1 < (char)bVar1) {\n      if ((iVar3 < 0x40) && ((bVar1 & 0x40) != 0)) {\n        *len = sVar5;\n        return uVar4 | -1L << ((byte)iVar3 & 0x3f);\n      }\n      goto LAB_0021139f;\n    }\n  } while (iVar3 != 0x4d);\n  format = (char *)gettext("Unusually large LEB128 decoded, debug information may be corrupted");\n  gold_warning(format);\n  sVar5 = 0xb;\nLAB_0021139f:\n  *len = sVar5;\n  return uVar4;\n}\n\n" (function_definition "int64_t gold::read_signed_LEB_128_x(uchar *buffer,size_t *len,uchar byte)\n\n{\n  byte bVar1;\n  char *format;\n  byte bVar2;\n  int iVar3;\n  ulong uVar4;\n  size_t sVar5;\n  \n  sVar5 = 1;\n  iVar3 = 7;\n  uVar4 = (ulong)(byte & 0x7f);\n  do {\n    bVar1 = buffer[sVar5 - 1];\n    sVar5 = sVar5 + 1;\n    bVar2 = (byte)iVar3;\n    iVar3 = iVar3 + 7;\n    uVar4 = uVar4 | (ulong)(bVar1 & 0x7f) << (bVar2 & 0x3f);\n    if (-1 < (char)bVar1) {\n      if ((iVar3 < 0x40) && ((bVar1 & 0x40) != 0)) {\n        *len = sVar5;\n        return uVar4 | -1L << ((byte)iVar3 & 0x3f);\n      }\n      goto LAB_0021139f;\n    }\n  } while (iVar3 != 0x4d);\n  format = (char *)gettext("Unusually large LEB128 decoded, debug information may be corrupted");\n  gold_warning(format);\n  sVar5 = 0xb;\nLAB_0021139f:\n  *len = sVar5;\n  return uVar4;\n}" primitive_type (ERROR "gold::" identifier : :) (function_declarator "read_signed_LEB_128_x(uchar *buffer,size_t *len,uchar byte)" identifier (parameter_list "(uchar *buffer,size_t *len,uchar byte)" ( (parameter_declaration "uchar *buffer" type_identifier (pointer_declarator "*buffer" * identifier)) , (parameter_declaration "size_t *len" primitive_type (pointer_declarator "*len" * identifier)) , (parameter_declaration "uchar byte" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  char *format;\n  byte bVar2;\n  int iVar3;\n  ulong uVar4;\n  size_t sVar5;\n  \n  sVar5 = 1;\n  iVar3 = 7;\n  uVar4 = (ulong)(byte & 0x7f);\n  do {\n    bVar1 = buffer[sVar5 - 1];\n    sVar5 = sVar5 + 1;\n    bVar2 = (byte)iVar3;\n    iVar3 = iVar3 + 7;\n    uVar4 = uVar4 | (ulong)(bVar1 & 0x7f) << (bVar2 & 0x3f);\n    if (-1 < (char)bVar1) {\n      if ((iVar3 < 0x40) && ((bVar1 & 0x40) != 0)) {\n        *len = sVar5;\n        return uVar4 | -1L << ((byte)iVar3 & 0x3f);\n      }\n      goto LAB_0021139f;\n    }\n  } while (iVar3 != 0x4d);\n  format = (char *)gettext("Unusually large LEB128 decoded, debug information may be corrupted");\n  gold_warning(format);\n  sVar5 = 0xb;\nLAB_0021139f:\n  *len = sVar5;\n  return uVar4;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "size_t sVar5;" primitive_type identifier ;) (expression_statement "sVar5 = 1;" (assignment_expression "sVar5 = 1" identifier = number_literal) ;) (expression_statement "iVar3 = 7;" (assignment_expression "iVar3 = 7" identifier = number_literal) ;) (expression_statement "uVar4 = (ulong)(byte & 0x7f);" (assignment_expression "uVar4 = (ulong)(byte & 0x7f)" identifier = (call_expression "(ulong)(byte & 0x7f)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(byte & 0x7f)" ( (binary_expression "byte & 0x7f" identifier & number_literal) )))) ;) (do_statement "do {\n    bVar1 = buffer[sVar5 - 1];\n    sVar5 = sVar5 + 1;\n    bVar2 = (byte)iVar3;\n    iVar3 = iVar3 + 7;\n    uVar4 = uVar4 | (ulong)(bVar1 & 0x7f) << (bVar2 & 0x3f);\n    if (-1 < (char)bVar1) {\n      if ((iVar3 < 0x40) && ((bVar1 & 0x40) != 0)) {\n        *len = sVar5;\n        return uVar4 | -1L << ((byte)iVar3 & 0x3f);\n      }\n      goto LAB_0021139f;\n    }\n  } while (iVar3 != 0x4d);" do (compound_statement "{\n    bVar1 = buffer[sVar5 - 1];\n    sVar5 = sVar5 + 1;\n    bVar2 = (byte)iVar3;\n    iVar3 = iVar3 + 7;\n    uVar4 = uVar4 | (ulong)(bVar1 & 0x7f) << (bVar2 & 0x3f);\n    if (-1 < (char)bVar1) {\n      if ((iVar3 < 0x40) && ((bVar1 & 0x40) != 0)) {\n        *len = sVar5;\n        return uVar4 | -1L << ((byte)iVar3 & 0x3f);\n      }\n      goto LAB_0021139f;\n    }\n  }" { (expression_statement "bVar1 = buffer[sVar5 - 1];" (assignment_expression "bVar1 = buffer[sVar5 - 1]" identifier = (subscript_expression "buffer[sVar5 - 1]" identifier [ (binary_expression "sVar5 - 1" identifier - number_literal) ])) ;) (expression_statement "sVar5 = sVar5 + 1;" (assignment_expression "sVar5 = sVar5 + 1" identifier = (binary_expression "sVar5 + 1" identifier + number_literal)) ;) (expression_statement "bVar2 = (byte)iVar3;" (assignment_expression "bVar2 = (byte)iVar3" identifier = (cast_expression "(byte)iVar3" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "iVar3 = iVar3 + 7;" (assignment_expression "iVar3 = iVar3 + 7" identifier = (binary_expression "iVar3 + 7" identifier + number_literal)) ;) (expression_statement "uVar4 = uVar4 | (ulong)(bVar1 & 0x7f) << (bVar2 & 0x3f);" (assignment_expression "uVar4 = uVar4 | (ulong)(bVar1 & 0x7f) << (bVar2 & 0x3f)" identifier = (binary_expression "uVar4 | (ulong)(bVar1 & 0x7f) << (bVar2 & 0x3f)" identifier | (binary_expression "(ulong)(bVar1 & 0x7f) << (bVar2 & 0x3f)" (call_expression "(ulong)(bVar1 & 0x7f)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(bVar1 & 0x7f)" ( (binary_expression "bVar1 & 0x7f" identifier & number_literal) ))) << (parenthesized_expression "(bVar2 & 0x3f)" ( (binary_expression "bVar2 & 0x3f" identifier & number_literal) ))))) ;) (if_statement "if (-1 < (char)bVar1) {\n      if ((iVar3 < 0x40) && ((bVar1 & 0x40) != 0)) {\n        *len = sVar5;\n        return uVar4 | -1L << ((byte)iVar3 & 0x3f);\n      }\n      goto LAB_0021139f;\n    }" if (parenthesized_expression "(-1 < (char)bVar1)" ( (binary_expression "-1 < (char)bVar1" number_literal < (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier)) )) (compound_statement "{\n      if ((iVar3 < 0x40) && ((bVar1 & 0x40) != 0)) {\n        *len = sVar5;\n        return uVar4 | -1L << ((byte)iVar3 & 0x3f);\n      }\n      goto LAB_0021139f;\n    }" { (if_statement "if ((iVar3 < 0x40) && ((bVar1 & 0x40) != 0)) {\n        *len = sVar5;\n        return uVar4 | -1L << ((byte)iVar3 & 0x3f);\n      }" if (parenthesized_expression "((iVar3 < 0x40) && ((bVar1 & 0x40) != 0))" ( (binary_expression "(iVar3 < 0x40) && ((bVar1 & 0x40) != 0)" (parenthesized_expression "(iVar3 < 0x40)" ( (binary_expression "iVar3 < 0x40" identifier < number_literal) )) && (parenthesized_expression "((bVar1 & 0x40) != 0)" ( (binary_expression "(bVar1 & 0x40) != 0" (parenthesized_expression "(bVar1 & 0x40)" ( (binary_expression "bVar1 & 0x40" identifier & number_literal) )) != number_literal) ))) )) (compound_statement "{\n        *len = sVar5;\n        return uVar4 | -1L << ((byte)iVar3 & 0x3f);\n      }" { (expression_statement "*len = sVar5;" (assignment_expression "*len = sVar5" (pointer_expression "*len" * identifier) = identifier) ;) (return_statement "return uVar4 | -1L << ((byte)iVar3 & 0x3f);" return (binary_expression "uVar4 | -1L << ((byte)iVar3 & 0x3f)" identifier | (binary_expression "-1L << ((byte)iVar3 & 0x3f)" number_literal << (parenthesized_expression "((byte)iVar3 & 0x3f)" ( (binary_expression "(byte)iVar3 & 0x3f" (cast_expression "(byte)iVar3" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )))) ;) })) (goto_statement "goto LAB_0021139f;" goto statement_identifier ;) })) }) while (parenthesized_expression "(iVar3 != 0x4d)" ( (binary_expression "iVar3 != 0x4d" identifier != number_literal) )) ;) (expression_statement "format = (char *)gettext("Unusually large LEB128 decoded, debug information may be corrupted");" (assignment_expression "format = (char *)gettext("Unusually large LEB128 decoded, debug information may be corrupted")" identifier = (cast_expression "(char *)gettext("Unusually large LEB128 decoded, debug information may be corrupted")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext("Unusually large LEB128 decoded, debug information may be corrupted")" identifier (argument_list "("Unusually large LEB128 decoded, debug information may be corrupted")" ( (string_literal ""Unusually large LEB128 decoded, debug information may be corrupted"" " string_content ") ))))) ;) (expression_statement "gold_warning(format);" (call_expression "gold_warning(format)" identifier (argument_list "(format)" ( identifier ))) ;) (expression_statement "sVar5 = 0xb;" (assignment_expression "sVar5 = 0xb" identifier = number_literal) ;) (labeled_statement "LAB_0021139f:\n  *len = sVar5;" statement_identifier : (expression_statement "*len = sVar5;" (assignment_expression "*len = sVar5" (pointer_expression "*len" * identifier) = identifier) ;)) (return_statement "return uVar4;" return identifier ;) })))
(translation_unit "ulong FUN_00211340(long param_1,long *param_2,uint param_3)\n\n{\n  byte bVar1;\n  undefined8 uVar2;\n  byte bVar3;\n  int iVar4;\n  ulong uVar5;\n  long lVar6;\n  \n  lVar6 = 1;\n  iVar4 = 7;\n  uVar5 = (ulong)(param_3 & 0x7f);\n  do {\n    bVar1 = *(byte *)(param_1 + -1 + lVar6);\n    lVar6 = lVar6 + 1;\n    bVar3 = (byte)iVar4;\n    iVar4 = iVar4 + 7;\n    uVar5 = uVar5 | (ulong)(bVar1 & 0x7f) << (bVar3 & 0x3f);\n    if (-1 < (char)bVar1) {\n      if ((iVar4 < 0x40) && ((bVar1 & 0x40) != 0)) {\n        *param_2 = lVar6;\n        return uVar5 | -1L << ((byte)iVar4 & 0x3f);\n      }\n      goto LAB_0021139f;\n    }\n  } while (iVar4 != 0x4d);\n  uVar2 = gettext("Unusually large LEB128 decoded, debug information may be corrupted");\n  FUN_001e15a0(uVar2);\n  lVar6 = 0xb;\nLAB_0021139f:\n  *param_2 = lVar6;\n  return uVar5;\n}\n\n" (function_definition "ulong FUN_00211340(long param_1,long *param_2,uint param_3)\n\n{\n  byte bVar1;\n  undefined8 uVar2;\n  byte bVar3;\n  int iVar4;\n  ulong uVar5;\n  long lVar6;\n  \n  lVar6 = 1;\n  iVar4 = 7;\n  uVar5 = (ulong)(param_3 & 0x7f);\n  do {\n    bVar1 = *(byte *)(param_1 + -1 + lVar6);\n    lVar6 = lVar6 + 1;\n    bVar3 = (byte)iVar4;\n    iVar4 = iVar4 + 7;\n    uVar5 = uVar5 | (ulong)(bVar1 & 0x7f) << (bVar3 & 0x3f);\n    if (-1 < (char)bVar1) {\n      if ((iVar4 < 0x40) && ((bVar1 & 0x40) != 0)) {\n        *param_2 = lVar6;\n        return uVar5 | -1L << ((byte)iVar4 & 0x3f);\n      }\n      goto LAB_0021139f;\n    }\n  } while (iVar4 != 0x4d);\n  uVar2 = gettext("Unusually large LEB128 decoded, debug information may be corrupted");\n  FUN_001e15a0(uVar2);\n  lVar6 = 0xb;\nLAB_0021139f:\n  *param_2 = lVar6;\n  return uVar5;\n}" type_identifier (function_declarator "FUN_00211340(long param_1,long *param_2,uint param_3)" identifier (parameter_list "(long param_1,long *param_2,uint param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  undefined8 uVar2;\n  byte bVar3;\n  int iVar4;\n  ulong uVar5;\n  long lVar6;\n  \n  lVar6 = 1;\n  iVar4 = 7;\n  uVar5 = (ulong)(param_3 & 0x7f);\n  do {\n    bVar1 = *(byte *)(param_1 + -1 + lVar6);\n    lVar6 = lVar6 + 1;\n    bVar3 = (byte)iVar4;\n    iVar4 = iVar4 + 7;\n    uVar5 = uVar5 | (ulong)(bVar1 & 0x7f) << (bVar3 & 0x3f);\n    if (-1 < (char)bVar1) {\n      if ((iVar4 < 0x40) && ((bVar1 & 0x40) != 0)) {\n        *param_2 = lVar6;\n        return uVar5 | -1L << ((byte)iVar4 & 0x3f);\n      }\n      goto LAB_0021139f;\n    }\n  } while (iVar4 != 0x4d);\n  uVar2 = gettext("Unusually large LEB128 decoded, debug information may be corrupted");\n  FUN_001e15a0(uVar2);\n  lVar6 = 0xb;\nLAB_0021139f:\n  *param_2 = lVar6;\n  return uVar5;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar6 = 1;" (assignment_expression "lVar6 = 1" identifier = number_literal) ;) (expression_statement "iVar4 = 7;" (assignment_expression "iVar4 = 7" identifier = number_literal) ;) (expression_statement "uVar5 = (ulong)(param_3 & 0x7f);" (assignment_expression "uVar5 = (ulong)(param_3 & 0x7f)" identifier = (call_expression "(ulong)(param_3 & 0x7f)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_3 & 0x7f)" ( (binary_expression "param_3 & 0x7f" identifier & number_literal) )))) ;) (do_statement "do {\n    bVar1 = *(byte *)(param_1 + -1 + lVar6);\n    lVar6 = lVar6 + 1;\n    bVar3 = (byte)iVar4;\n    iVar4 = iVar4 + 7;\n    uVar5 = uVar5 | (ulong)(bVar1 & 0x7f) << (bVar3 & 0x3f);\n    if (-1 < (char)bVar1) {\n      if ((iVar4 < 0x40) && ((bVar1 & 0x40) != 0)) {\n        *param_2 = lVar6;\n        return uVar5 | -1L << ((byte)iVar4 & 0x3f);\n      }\n      goto LAB_0021139f;\n    }\n  } while (iVar4 != 0x4d);" do (compound_statement "{\n    bVar1 = *(byte *)(param_1 + -1 + lVar6);\n    lVar6 = lVar6 + 1;\n    bVar3 = (byte)iVar4;\n    iVar4 = iVar4 + 7;\n    uVar5 = uVar5 | (ulong)(bVar1 & 0x7f) << (bVar3 & 0x3f);\n    if (-1 < (char)bVar1) {\n      if ((iVar4 < 0x40) && ((bVar1 & 0x40) != 0)) {\n        *param_2 = lVar6;\n        return uVar5 | -1L << ((byte)iVar4 & 0x3f);\n      }\n      goto LAB_0021139f;\n    }\n  }" { (expression_statement "bVar1 = *(byte *)(param_1 + -1 + lVar6);" (assignment_expression "bVar1 = *(byte *)(param_1 + -1 + lVar6)" identifier = (pointer_expression "*(byte *)(param_1 + -1 + lVar6)" * (cast_expression "(byte *)(param_1 + -1 + lVar6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + -1 + lVar6)" ( (binary_expression "param_1 + -1 + lVar6" (binary_expression "param_1 + -1" identifier + number_literal) + identifier) ))))) ;) (expression_statement "lVar6 = lVar6 + 1;" (assignment_expression "lVar6 = lVar6 + 1" identifier = (binary_expression "lVar6 + 1" identifier + number_literal)) ;) (expression_statement "bVar3 = (byte)iVar4;" (assignment_expression "bVar3 = (byte)iVar4" identifier = (cast_expression "(byte)iVar4" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "iVar4 = iVar4 + 7;" (assignment_expression "iVar4 = iVar4 + 7" identifier = (binary_expression "iVar4 + 7" identifier + number_literal)) ;) (expression_statement "uVar5 = uVar5 | (ulong)(bVar1 & 0x7f) << (bVar3 & 0x3f);" (assignment_expression "uVar5 = uVar5 | (ulong)(bVar1 & 0x7f) << (bVar3 & 0x3f)" identifier = (binary_expression "uVar5 | (ulong)(bVar1 & 0x7f) << (bVar3 & 0x3f)" identifier | (binary_expression "(ulong)(bVar1 & 0x7f) << (bVar3 & 0x3f)" (call_expression "(ulong)(bVar1 & 0x7f)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(bVar1 & 0x7f)" ( (binary_expression "bVar1 & 0x7f" identifier & number_literal) ))) << (parenthesized_expression "(bVar3 & 0x3f)" ( (binary_expression "bVar3 & 0x3f" identifier & number_literal) ))))) ;) (if_statement "if (-1 < (char)bVar1) {\n      if ((iVar4 < 0x40) && ((bVar1 & 0x40) != 0)) {\n        *param_2 = lVar6;\n        return uVar5 | -1L << ((byte)iVar4 & 0x3f);\n      }\n      goto LAB_0021139f;\n    }" if (parenthesized_expression "(-1 < (char)bVar1)" ( (binary_expression "-1 < (char)bVar1" number_literal < (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier)) )) (compound_statement "{\n      if ((iVar4 < 0x40) && ((bVar1 & 0x40) != 0)) {\n        *param_2 = lVar6;\n        return uVar5 | -1L << ((byte)iVar4 & 0x3f);\n      }\n      goto LAB_0021139f;\n    }" { (if_statement "if ((iVar4 < 0x40) && ((bVar1 & 0x40) != 0)) {\n        *param_2 = lVar6;\n        return uVar5 | -1L << ((byte)iVar4 & 0x3f);\n      }" if (parenthesized_expression "((iVar4 < 0x40) && ((bVar1 & 0x40) != 0))" ( (binary_expression "(iVar4 < 0x40) && ((bVar1 & 0x40) != 0)" (parenthesized_expression "(iVar4 < 0x40)" ( (binary_expression "iVar4 < 0x40" identifier < number_literal) )) && (parenthesized_expression "((bVar1 & 0x40) != 0)" ( (binary_expression "(bVar1 & 0x40) != 0" (parenthesized_expression "(bVar1 & 0x40)" ( (binary_expression "bVar1 & 0x40" identifier & number_literal) )) != number_literal) ))) )) (compound_statement "{\n        *param_2 = lVar6;\n        return uVar5 | -1L << ((byte)iVar4 & 0x3f);\n      }" { (expression_statement "*param_2 = lVar6;" (assignment_expression "*param_2 = lVar6" (pointer_expression "*param_2" * identifier) = identifier) ;) (return_statement "return uVar5 | -1L << ((byte)iVar4 & 0x3f);" return (binary_expression "uVar5 | -1L << ((byte)iVar4 & 0x3f)" identifier | (binary_expression "-1L << ((byte)iVar4 & 0x3f)" number_literal << (parenthesized_expression "((byte)iVar4 & 0x3f)" ( (binary_expression "(byte)iVar4 & 0x3f" (cast_expression "(byte)iVar4" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )))) ;) })) (goto_statement "goto LAB_0021139f;" goto statement_identifier ;) })) }) while (parenthesized_expression "(iVar4 != 0x4d)" ( (binary_expression "iVar4 != 0x4d" identifier != number_literal) )) ;) (expression_statement "uVar2 = gettext("Unusually large LEB128 decoded, debug information may be corrupted");" (assignment_expression "uVar2 = gettext("Unusually large LEB128 decoded, debug information may be corrupted")" identifier = (call_expression "gettext("Unusually large LEB128 decoded, debug information may be corrupted")" identifier (argument_list "("Unusually large LEB128 decoded, debug information may be corrupted")" ( (string_literal ""Unusually large LEB128 decoded, debug information may be corrupted"" " string_content ") )))) ;) (expression_statement "FUN_001e15a0(uVar2);" (call_expression "FUN_001e15a0(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "lVar6 = 0xb;" (assignment_expression "lVar6 = 0xb" identifier = number_literal) ;) (labeled_statement "LAB_0021139f:\n  *param_2 = lVar6;" statement_identifier : (expression_statement "*param_2 = lVar6;" (assignment_expression "*param_2 = lVar6" (pointer_expression "*param_2" * identifier) = identifier) ;)) (return_statement "return uVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT & LIT) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (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 = (binary_expression IDENT | (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT & LIT) ))) << (parenthesized_expression ( (binary_expression IDENT & LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) && (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 | (binary_expression LIT << (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) )))) ;) })) (goto_statement goto statement_identifier ;) })) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;)) (return_statement return IDENT ;) })))
(function_definition "ulong FUN_00211340(long param_1,long *param_2,uint param_3)\n\n{\n  byte bVar1;\n  undefined8 uVar2;\n  byte bVar3;\n  int iVar4;\n  ulong uVar5;\n  long lVar6;\n  \n  lVar6 = 1;\n  iVar4 = 7;\n  uVar5 = (ulong)(param_3 & 0x7f);\n  do {\n    bVar1 = *(byte *)(param_1 + -1 + lVar6);\n    lVar6 = lVar6 + 1;\n    bVar3 = (byte)iVar4;\n    iVar4 = iVar4 + 7;\n    uVar5 = uVar5 | (ulong)(bVar1 & 0x7f) << (bVar3 & 0x3f);\n    if (-1 < (char)bVar1) {\n      if ((iVar4 < 0x40) && ((bVar1 & 0x40) != 0)) {\n        *param_2 = lVar6;\n        return uVar5 | -1L << ((byte)iVar4 & 0x3f);\n      }\n      goto LAB_0021139f;\n    }\n  } while (iVar4 != 0x4d);\n  uVar2 = gettext("Unusually large LEB128 decoded, debug information may be corrupted");\n  FUN_001e15a0(uVar2);\n  lVar6 = 0xb;\nLAB_0021139f:\n  *param_2 = lVar6;\n  return uVar5;\n}" (type_identifier "ulong") (function_declarator "FUN_00211340(long param_1,long *param_2,uint param_3)" (identifier "FUN_00211340") (parameter_list "(long param_1,long *param_2,uint param_3)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "long *param_2" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  byte bVar1;\n  undefined8 uVar2;\n  byte bVar3;\n  int iVar4;\n  ulong uVar5;\n  long lVar6;\n  \n  lVar6 = 1;\n  iVar4 = 7;\n  uVar5 = (ulong)(param_3 & 0x7f);\n  do {\n    bVar1 = *(byte *)(param_1 + -1 + lVar6);\n    lVar6 = lVar6 + 1;\n    bVar3 = (byte)iVar4;\n    iVar4 = iVar4 + 7;\n    uVar5 = uVar5 | (ulong)(bVar1 & 0x7f) << (bVar3 & 0x3f);\n    if (-1 < (char)bVar1) {\n      if ((iVar4 < 0x40) && ((bVar1 & 0x40) != 0)) {\n        *param_2 = lVar6;\n        return uVar5 | -1L << ((byte)iVar4 & 0x3f);\n      }\n      goto LAB_0021139f;\n    }\n  } while (iVar4 != 0x4d);\n  uVar2 = gettext("Unusually large LEB128 decoded, debug information may be corrupted");\n  FUN_001e15a0(uVar2);\n  lVar6 = 0xb;\nLAB_0021139f:\n  *param_2 = lVar6;\n  return uVar5;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (declaration "byte bVar3;" (type_identifier "byte") (identifier "bVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "ulong uVar5;" (type_identifier "ulong") (identifier "uVar5") (; ";")) (declaration "long lVar6;" (sized_type_specifier "long" (long "long")) (identifier "lVar6") (; ";")) (expression_statement "lVar6 = 1;" (assignment_expression "lVar6 = 1" (identifier "lVar6") (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar4 = 7;" (assignment_expression "iVar4 = 7" (identifier "iVar4") (= "=") (number_literal "7")) (; ";")) (expression_statement "uVar5 = (ulong)(param_3 & 0x7f);" (assignment_expression "uVar5 = (ulong)(param_3 & 0x7f)" (identifier "uVar5") (= "=") (call_expression "(ulong)(param_3 & 0x7f)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(param_3 & 0x7f)" (( "(") (binary_expression "param_3 & 0x7f" (identifier "param_3") (& "&") (number_literal "0x7f")) () ")")))) (; ";")) (do_statement "do {\n    bVar1 = *(byte *)(param_1 + -1 + lVar6);\n    lVar6 = lVar6 + 1;\n    bVar3 = (byte)iVar4;\n    iVar4 = iVar4 + 7;\n    uVar5 = uVar5 | (ulong)(bVar1 & 0x7f) << (bVar3 & 0x3f);\n    if (-1 < (char)bVar1) {\n      if ((iVar4 < 0x40) && ((bVar1 & 0x40) != 0)) {\n        *param_2 = lVar6;\n        return uVar5 | -1L << ((byte)iVar4 & 0x3f);\n      }\n      goto LAB_0021139f;\n    }\n  } while (iVar4 != 0x4d);" (do "do") (compound_statement "{\n    bVar1 = *(byte *)(param_1 + -1 + lVar6);\n    lVar6 = lVar6 + 1;\n    bVar3 = (byte)iVar4;\n    iVar4 = iVar4 + 7;\n    uVar5 = uVar5 | (ulong)(bVar1 & 0x7f) << (bVar3 & 0x3f);\n    if (-1 < (char)bVar1) {\n      if ((iVar4 < 0x40) && ((bVar1 & 0x40) != 0)) {\n        *param_2 = lVar6;\n        return uVar5 | -1L << ((byte)iVar4 & 0x3f);\n      }\n      goto LAB_0021139f;\n    }\n  }" ({ "{") (expression_statement "bVar1 = *(byte *)(param_1 + -1 + lVar6);" (assignment_expression "bVar1 = *(byte *)(param_1 + -1 + lVar6)" (identifier "bVar1") (= "=") (pointer_expression "*(byte *)(param_1 + -1 + lVar6)" (* "*") (cast_expression "(byte *)(param_1 + -1 + lVar6)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + -1 + lVar6)" (( "(") (binary_expression "param_1 + -1 + lVar6" (binary_expression "param_1 + -1" (identifier "param_1") (+ "+") (number_literal "-1")) (+ "+") (identifier "lVar6")) () ")"))))) (; ";")) (expression_statement "lVar6 = lVar6 + 1;" (assignment_expression "lVar6 = lVar6 + 1" (identifier "lVar6") (= "=") (binary_expression "lVar6 + 1" (identifier "lVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar3 = (byte)iVar4;" (assignment_expression "bVar3 = (byte)iVar4" (identifier "bVar3") (= "=") (cast_expression "(byte)iVar4" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "iVar4"))) (; ";")) (expression_statement "iVar4 = iVar4 + 7;" (assignment_expression "iVar4 = iVar4 + 7" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 7" (identifier "iVar4") (+ "+") (number_literal "7"))) (; ";")) (expression_statement "uVar5 = uVar5 | (ulong)(bVar1 & 0x7f) << (bVar3 & 0x3f);" (assignment_expression "uVar5 = uVar5 | (ulong)(bVar1 & 0x7f) << (bVar3 & 0x3f)" (identifier "uVar5") (= "=") (binary_expression "uVar5 | (ulong)(bVar1 & 0x7f) << (bVar3 & 0x3f)" (identifier "uVar5") (| "|") (binary_expression "(ulong)(bVar1 & 0x7f) << (bVar3 & 0x3f)" (call_expression "(ulong)(bVar1 & 0x7f)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(bVar1 & 0x7f)" (( "(") (binary_expression "bVar1 & 0x7f" (identifier "bVar1") (& "&") (number_literal "0x7f")) () ")"))) (<< "<<") (parenthesized_expression "(bVar3 & 0x3f)" (( "(") (binary_expression "bVar3 & 0x3f" (identifier "bVar3") (& "&") (number_literal "0x3f")) () ")"))))) (; ";")) (if_statement "if (-1 < (char)bVar1) {\n      if ((iVar4 < 0x40) && ((bVar1 & 0x40) != 0)) {\n        *param_2 = lVar6;\n        return uVar5 | -1L << ((byte)iVar4 & 0x3f);\n      }\n      goto LAB_0021139f;\n    }" (if "if") (parenthesized_expression "(-1 < (char)bVar1)" (( "(") (binary_expression "-1 < (char)bVar1" (number_literal "-1") (< "<") (cast_expression "(char)bVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "bVar1"))) () ")")) (compound_statement "{\n      if ((iVar4 < 0x40) && ((bVar1 & 0x40) != 0)) {\n        *param_2 = lVar6;\n        return uVar5 | -1L << ((byte)iVar4 & 0x3f);\n      }\n      goto LAB_0021139f;\n    }" ({ "{") (if_statement "if ((iVar4 < 0x40) && ((bVar1 & 0x40) != 0)) {\n        *param_2 = lVar6;\n        return uVar5 | -1L << ((byte)iVar4 & 0x3f);\n      }" (if "if") (parenthesized_expression "((iVar4 < 0x40) && ((bVar1 & 0x40) != 0))" (( "(") (binary_expression "(iVar4 < 0x40) && ((bVar1 & 0x40) != 0)" (parenthesized_expression "(iVar4 < 0x40)" (( "(") (binary_expression "iVar4 < 0x40" (identifier "iVar4") (< "<") (number_literal "0x40")) () ")")) (&& "&&") (parenthesized_expression "((bVar1 & 0x40) != 0)" (( "(") (binary_expression "(bVar1 & 0x40) != 0" (parenthesized_expression "(bVar1 & 0x40)" (( "(") (binary_expression "bVar1 & 0x40" (identifier "bVar1") (& "&") (number_literal "0x40")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n        *param_2 = lVar6;\n        return uVar5 | -1L << ((byte)iVar4 & 0x3f);\n      }" ({ "{") (expression_statement "*param_2 = lVar6;" (assignment_expression "*param_2 = lVar6" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "lVar6")) (; ";")) (return_statement "return uVar5 | -1L << ((byte)iVar4 & 0x3f);" (return "return") (binary_expression "uVar5 | -1L << ((byte)iVar4 & 0x3f)" (identifier "uVar5") (| "|") (binary_expression "-1L << ((byte)iVar4 & 0x3f)" (number_literal "-1L") (<< "<<") (parenthesized_expression "((byte)iVar4 & 0x3f)" (( "(") (binary_expression "(byte)iVar4 & 0x3f" (cast_expression "(byte)iVar4" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "iVar4")) (& "&") (number_literal "0x3f")) () ")")))) (; ";")) (} "}"))) (goto_statement "goto LAB_0021139f;" (goto "goto") (statement_identifier "LAB_0021139f") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(iVar4 != 0x4d)" (( "(") (binary_expression "iVar4 != 0x4d" (identifier "iVar4") (!= "!=") (number_literal "0x4d")) () ")")) (; ";")) (expression_statement "uVar2 = gettext("Unusually large LEB128 decoded, debug information may be corrupted");" (assignment_expression "uVar2 = gettext("Unusually large LEB128 decoded, debug information may be corrupted")" (identifier "uVar2") (= "=") (call_expression "gettext("Unusually large LEB128 decoded, debug information may be corrupted")" (identifier "gettext") (argument_list "("Unusually large LEB128 decoded, debug information may be corrupted")" (( "(") (string_literal ""Unusually large LEB128 decoded, debug information may be corrupted"" (" """) (string_content "Unusually large LEB128 decoded, debug information may be corrupted") (" """)) () ")")))) (; ";")) (expression_statement "FUN_001e15a0(uVar2);" (call_expression "FUN_001e15a0(uVar2)" (identifier "FUN_001e15a0") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "lVar6 = 0xb;" (assignment_expression "lVar6 = 0xb" (identifier "lVar6") (= "=") (number_literal "0xb")) (; ";")) (labeled_statement "LAB_0021139f:\n  *param_2 = lVar6;" (statement_identifier "LAB_0021139f") (: ":") (expression_statement "*param_2 = lVar6;" (assignment_expression "*param_2 = lVar6" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "lVar6")) (; ";"))) (return_statement "return uVar5;" (return "return") (identifier "uVar5") (; ";")) (} "}")))

int64_t gold::function_1(type_1 *buffer,size_t *len,type_1 type_2)

{
  type_2 var_4;
  char *format;
  type_2 var_5;
  int var_2;
  type_3 var_3;
  size_t var_1;
  
  var_1 = 1;
  var_2 = 7;
  var_3 = (type_3)(type_2 & 0x7f);
  do {
    var_4 = buffer[var_1 - 1];
    var_1 = var_1 + 1;
    var_5 = (type_2)var_2;
    var_2 = var_2 + 7;
    var_3 = var_3 | (type_3)(var_4 & 0x7f) << (var_5 & 0x3f);
    if (-1 < (char)var_4) {
      if ((var_2 < 0x40) && ((var_4 & 0x40) != 0)) {
        *len = var_1;
        return var_3 | -1L << ((type_2)var_2 & 0x3f);
      }
      goto LAB_0021139f;
    }
  } while (var_2 != 0x4d);
  format = (char *)var_6("Unusually large LEB128 decoded, debug information may be corrupted");
  var_7(format);
  var_1 = 0xb;
LAB_0021139f:
  *len = var_1;
  return var_3;
}


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

ulong MASKED(long param_1,long *param_2,uint param_3)

{
  byte bVar1;
  undefined8 uVar2;
  byte bVar3;
  int iVar4;
  ulong uVar5;
  long lVar6;
  
  lVar6 = 1;
  iVar4 = 7;
  uVar5 = (ulong)(param_3 & 0x7f);
  do {
    bVar1 = *(byte *)(param_1 + -1 + lVar6);
    lVar6 = lVar6 + 1;
    bVar3 = (byte)iVar4;
    iVar4 = iVar4 + 7;
    uVar5 = uVar5 | (ulong)(bVar1 & 0x7f) << (bVar3 & 0x3f);
    if (-1 < (char)bVar1) {
      if ((iVar4 < 0x40) && ((bVar1 & 0x40) != 0)) {
        *param_2 = lVar6;
        return uVar5 | -1L << ((byte)iVar4 & 0x3f);
      }
      goto LAB_0021139f;
    }
  } while (iVar4 != 0x4d);
  uVar2 = gettext("Unusually large LEB128 decoded, debug information may be corrupted");
  FUN_001e15a0(uVar2);
  lVar6 = 0xb;
LAB_0021139f:
  *param_2 = lVar6;
  return uVar5;
}

