
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

uint64_t gold::read_unsigned_LEB_128_x(uchar *buffer,size_t *len,uchar byte)

{
  byte bVar1;
  uint uVar2;
  int iVar3;
  uint uVar4;
  uint uVar5;
  uint uVar6;
  char *format;
  byte bVar7;
  size_t sVar8;
  uint local_2c;
  uint local_28;
  
  sVar8 = 1;
  local_28 = 0;
  local_2c = byte & 0x7f;
  do {
    iVar3 = sVar8 - 1;
    uVar2 = sVar8 * 7;
    sVar8 = sVar8 + 1;
    uVar4 = buffer[iVar3] & 0x7f;
    bVar7 = (byte)uVar2;
    bVar1 = bVar7 & 0x1f;
    uVar5 = uVar4 << (bVar7 & 0x1f);
    uVar6 = uVar5;
    uVar4 = 0 << bVar1 | uVar4 >> 0x20 - bVar1;
    if ((uVar2 & 0x20) != 0) {
      uVar6 = 0;
      uVar4 = uVar5;
    }
    local_2c = uVar6 | local_2c;
    local_28 = uVar4 | local_28;
    if (-1 < (char)buffer[iVar3]) goto LAB_001dc8cd;
  } while (sVar8 != 0xb);
  format = (char *)gettext("Unusually large LEB128 decoded, debug information may be corrupted");
  gold_warning(format);
LAB_001dc8cd:
  *len = sVar8;
  return CONCAT44(local_28,local_2c);
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined8 FUN_001dc830(int param_1,int *param_2,uint param_3)

{
  byte bVar1;
  byte bVar2;
  uint uVar3;
  uint uVar4;
  uint uVar5;
  uint uVar6;
  undefined4 uVar7;
  byte bVar8;
  int iVar9;
  uint local_2c;
  uint local_28;
  
  iVar9 = 1;
  local_28 = 0;
  local_2c = param_3 & 0x7f;
  do {
    bVar1 = *(byte *)(param_1 + -1 + iVar9);
    uVar3 = iVar9 * 7;
    iVar9 = iVar9 + 1;
    uVar4 = bVar1 & 0x7f;
    bVar8 = (byte)uVar3;
    bVar2 = bVar8 & 0x1f;
    uVar5 = uVar4 << (bVar8 & 0x1f);
    uVar6 = uVar5;
    uVar4 = 0 << bVar2 | uVar4 >> 0x20 - bVar2;
    if ((uVar3 & 0x20) != 0) {
      uVar6 = 0;
      uVar4 = uVar5;
    }
    local_2c = uVar6 | local_2c;
    local_28 = uVar4 | local_28;
    if (-1 < (char)bVar1) goto LAB_001dc8cd;
  } while (iVar9 != 0xb);
  uVar7 = gettext("Unusually large LEB128 decoded, debug information may be corrupted");
  FUN_00073e50(uVar7);
LAB_001dc8cd:
  *param_2 = iVar9;
  return CONCAT44(local_28,local_2c);
}


PUSH EBP
MOV EBP,0x1
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00036f20
ADD EBX,0x1d27c2
SUB ESP,0x1c
MOV EAX,dword ptr [ESP + 0x38]
MOV EDX,dword ptr [ESP + 0x30]
MOV dword ptr [ESP + 0x4],0x0
AND EAX,0x7f
MOV EDI,EDX
MOV dword ptr [ESP],EAX
NOP
MOVZX ESI,byte ptr [EDI + EBP*0x1 + -0x1]
LEA ECX,[EBP*0x8 + 0x0]
XOR EDX,EDX
SUB ECX,EBP
ADD EBP,0x1
MOV EAX,ESI
AND EAX,0x7f
SHLD EDX,EAX,CL
SHL EAX,CL
TEST CL,0x20
JZ 0x001dc886
MOV EDX,EAX
XOR EAX,EAX
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,dword ptr [ESP]
MOV ECX,dword ptr [ESP + 0x8]
MOV dword ptr [ESP + 0xc],EDX
MOV EDX,dword ptr [ESP + 0x4]
OR ECX,EAX
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [ESP],ECX
OR EAX,EDX
MOV dword ptr [ESP + 0x4],EAX
MOV EAX,ESI
TEST AL,AL
JNS 0x001dc8cd
CMP EBP,0xb
JNZ 0x001dc860
SUB ESP,0xc
LEA EAX,[EBX + 0xfff0cc44]
PUSH EAX
CALL 0x0002a3c0
MOV dword ptr [ESP],EAX
CALL 0x00073e50
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x34]
MOV EDX,dword ptr [ESP + 0x4]
MOV dword ptr [EAX],EBP
MOV EAX,dword ptr [ESP]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined8 FUN_001dc830(int param_1,int *param_2,uint param_3)\n\n{\n  byte bVar1;\n  byte bVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  undefined4 uVar7;\n  byte bVar8;\n  int iVar9;\n  uint local_2c;\n  uint local_28;\n  \n  iVar9 = 1;\n  local_28 = 0;\n  local_2c = param_3 & 0x7f;\n  do {\n    bVar1 = *(byte *)(param_1 + -1 + iVar9);\n    uVar3 = iVar9 * 7;\n    iVar9 = iVar9 + 1;\n    uVar4 = bVar1 & 0x7f;\n    bVar8 = (byte)uVar3;\n    bVar2 = bVar8 & 0x1f;\n    uVar5 = uVar4 << (bVar8 & 0x1f);\n    uVar6 = uVar5;\n    uVar4 = 0 << bVar2 | uVar4 >> 0x20 - bVar2;\n    if ((uVar3 & 0x20) != 0) {\n      uVar6 = 0;\n      uVar4 = uVar5;\n    }\n    local_2c = uVar6 | local_2c;\n    local_28 = uVar4 | local_28;\n    if (-1 < (char)bVar1) goto LAB_001dc8cd;\n  } while (iVar9 != 0xb);\n  uVar7 = gettext("Unusually large LEB128 decoded, debug information may be corrupted");\n  FUN_00073e50(uVar7);\nLAB_001dc8cd:\n  *param_2 = iVar9;\n  return CONCAT44(local_28,local_2c);\n}\n\n" comment (function_definition "undefined8 FUN_001dc830(int param_1,int *param_2,uint param_3)\n\n{\n  byte bVar1;\n  byte bVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  undefined4 uVar7;\n  byte bVar8;\n  int iVar9;\n  uint local_2c;\n  uint local_28;\n  \n  iVar9 = 1;\n  local_28 = 0;\n  local_2c = param_3 & 0x7f;\n  do {\n    bVar1 = *(byte *)(param_1 + -1 + iVar9);\n    uVar3 = iVar9 * 7;\n    iVar9 = iVar9 + 1;\n    uVar4 = bVar1 & 0x7f;\n    bVar8 = (byte)uVar3;\n    bVar2 = bVar8 & 0x1f;\n    uVar5 = uVar4 << (bVar8 & 0x1f);\n    uVar6 = uVar5;\n    uVar4 = 0 << bVar2 | uVar4 >> 0x20 - bVar2;\n    if ((uVar3 & 0x20) != 0) {\n      uVar6 = 0;\n      uVar4 = uVar5;\n    }\n    local_2c = uVar6 | local_2c;\n    local_28 = uVar4 | local_28;\n    if (-1 < (char)bVar1) goto LAB_001dc8cd;\n  } while (iVar9 != 0xb);\n  uVar7 = gettext("Unusually large LEB128 decoded, debug information may be corrupted");\n  FUN_00073e50(uVar7);\nLAB_001dc8cd:\n  *param_2 = iVar9;\n  return CONCAT44(local_28,local_2c);\n}" type_identifier (function_declarator "FUN_001dc830(int param_1,int *param_2,uint param_3)" identifier (parameter_list "(int param_1,int *param_2,uint param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  undefined4 uVar7;\n  byte bVar8;\n  int iVar9;\n  uint local_2c;\n  uint local_28;\n  \n  iVar9 = 1;\n  local_28 = 0;\n  local_2c = param_3 & 0x7f;\n  do {\n    bVar1 = *(byte *)(param_1 + -1 + iVar9);\n    uVar3 = iVar9 * 7;\n    iVar9 = iVar9 + 1;\n    uVar4 = bVar1 & 0x7f;\n    bVar8 = (byte)uVar3;\n    bVar2 = bVar8 & 0x1f;\n    uVar5 = uVar4 << (bVar8 & 0x1f);\n    uVar6 = uVar5;\n    uVar4 = 0 << bVar2 | uVar4 >> 0x20 - bVar2;\n    if ((uVar3 & 0x20) != 0) {\n      uVar6 = 0;\n      uVar4 = uVar5;\n    }\n    local_2c = uVar6 | local_2c;\n    local_28 = uVar4 | local_28;\n    if (-1 < (char)bVar1) goto LAB_001dc8cd;\n  } while (iVar9 != 0xb);\n  uVar7 = gettext("Unusually large LEB128 decoded, debug information may be corrupted");\n  FUN_00073e50(uVar7);\nLAB_001dc8cd:\n  *param_2 = iVar9;\n  return CONCAT44(local_28,local_2c);\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "byte bVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "uint local_2c;" type_identifier identifier ;) (declaration "uint local_28;" type_identifier identifier ;) (expression_statement "iVar9 = 1;" (assignment_expression "iVar9 = 1" identifier = number_literal) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "local_2c = param_3 & 0x7f;" (assignment_expression "local_2c = param_3 & 0x7f" identifier = (binary_expression "param_3 & 0x7f" identifier & number_literal)) ;) (do_statement "do {\n    bVar1 = *(byte *)(param_1 + -1 + iVar9);\n    uVar3 = iVar9 * 7;\n    iVar9 = iVar9 + 1;\n    uVar4 = bVar1 & 0x7f;\n    bVar8 = (byte)uVar3;\n    bVar2 = bVar8 & 0x1f;\n    uVar5 = uVar4 << (bVar8 & 0x1f);\n    uVar6 = uVar5;\n    uVar4 = 0 << bVar2 | uVar4 >> 0x20 - bVar2;\n    if ((uVar3 & 0x20) != 0) {\n      uVar6 = 0;\n      uVar4 = uVar5;\n    }\n    local_2c = uVar6 | local_2c;\n    local_28 = uVar4 | local_28;\n    if (-1 < (char)bVar1) goto LAB_001dc8cd;\n  } while (iVar9 != 0xb);" do (compound_statement "{\n    bVar1 = *(byte *)(param_1 + -1 + iVar9);\n    uVar3 = iVar9 * 7;\n    iVar9 = iVar9 + 1;\n    uVar4 = bVar1 & 0x7f;\n    bVar8 = (byte)uVar3;\n    bVar2 = bVar8 & 0x1f;\n    uVar5 = uVar4 << (bVar8 & 0x1f);\n    uVar6 = uVar5;\n    uVar4 = 0 << bVar2 | uVar4 >> 0x20 - bVar2;\n    if ((uVar3 & 0x20) != 0) {\n      uVar6 = 0;\n      uVar4 = uVar5;\n    }\n    local_2c = uVar6 | local_2c;\n    local_28 = uVar4 | local_28;\n    if (-1 < (char)bVar1) goto LAB_001dc8cd;\n  }" { (expression_statement "bVar1 = *(byte *)(param_1 + -1 + iVar9);" (assignment_expression "bVar1 = *(byte *)(param_1 + -1 + iVar9)" identifier = (pointer_expression "*(byte *)(param_1 + -1 + iVar9)" * (cast_expression "(byte *)(param_1 + -1 + iVar9)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + -1 + iVar9)" ( (binary_expression "param_1 + -1 + iVar9" (binary_expression "param_1 + -1" identifier + number_literal) + identifier) ))))) ;) (expression_statement "uVar3 = iVar9 * 7;" (assignment_expression "uVar3 = iVar9 * 7" identifier = (binary_expression "iVar9 * 7" identifier * number_literal)) ;) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = bVar1 & 0x7f;" (assignment_expression "uVar4 = bVar1 & 0x7f" identifier = (binary_expression "bVar1 & 0x7f" identifier & number_literal)) ;) (expression_statement "bVar8 = (byte)uVar3;" (assignment_expression "bVar8 = (byte)uVar3" identifier = (cast_expression "(byte)uVar3" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "bVar2 = bVar8 & 0x1f;" (assignment_expression "bVar2 = bVar8 & 0x1f" identifier = (binary_expression "bVar8 & 0x1f" identifier & number_literal)) ;) (expression_statement "uVar5 = uVar4 << (bVar8 & 0x1f);" (assignment_expression "uVar5 = uVar4 << (bVar8 & 0x1f)" identifier = (binary_expression "uVar4 << (bVar8 & 0x1f)" identifier << (parenthesized_expression "(bVar8 & 0x1f)" ( (binary_expression "bVar8 & 0x1f" identifier & number_literal) )))) ;) (expression_statement "uVar6 = uVar5;" (assignment_expression "uVar6 = uVar5" identifier = identifier) ;) (expression_statement "uVar4 = 0 << bVar2 | uVar4 >> 0x20 - bVar2;" (assignment_expression "uVar4 = 0 << bVar2 | uVar4 >> 0x20 - bVar2" identifier = (binary_expression "0 << bVar2 | uVar4 >> 0x20 - bVar2" (binary_expression "0 << bVar2" number_literal << identifier) | (binary_expression "uVar4 >> 0x20 - bVar2" identifier >> (binary_expression "0x20 - bVar2" number_literal - identifier)))) ;) (if_statement "if ((uVar3 & 0x20) != 0) {\n      uVar6 = 0;\n      uVar4 = uVar5;\n    }" if (parenthesized_expression "((uVar3 & 0x20) != 0)" ( (binary_expression "(uVar3 & 0x20) != 0" (parenthesized_expression "(uVar3 & 0x20)" ( (binary_expression "uVar3 & 0x20" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      uVar6 = 0;\n      uVar4 = uVar5;\n    }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "uVar4 = uVar5;" (assignment_expression "uVar4 = uVar5" identifier = identifier) ;) })) (expression_statement "local_2c = uVar6 | local_2c;" (assignment_expression "local_2c = uVar6 | local_2c" identifier = (binary_expression "uVar6 | local_2c" identifier | identifier)) ;) (expression_statement "local_28 = uVar4 | local_28;" (assignment_expression "local_28 = uVar4 | local_28" identifier = (binary_expression "uVar4 | local_28" identifier | identifier)) ;) (if_statement "if (-1 < (char)bVar1) goto LAB_001dc8cd;" if (parenthesized_expression "(-1 < (char)bVar1)" ( (binary_expression "-1 < (char)bVar1" number_literal < (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier)) )) (goto_statement "goto LAB_001dc8cd;" goto statement_identifier ;)) }) while (parenthesized_expression "(iVar9 != 0xb)" ( (binary_expression "iVar9 != 0xb" identifier != number_literal) )) ;) (expression_statement "uVar7 = gettext("Unusually large LEB128 decoded, debug information may be corrupted");" (assignment_expression "uVar7 = 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_00073e50(uVar7);" (call_expression "FUN_00073e50(uVar7)" identifier (argument_list "(uVar7)" ( identifier ))) ;) (labeled_statement "LAB_001dc8cd:\n  *param_2 = iVar9;" statement_identifier : (expression_statement "*param_2 = iVar9;" (assignment_expression "*param_2 = iVar9" (pointer_expression "*param_2" * identifier) = identifier) ;)) (return_statement "return CONCAT44(local_28,local_2c);" return (call_expression "CONCAT44(local_28,local_2c)" identifier (argument_list "(local_28,local_2c)" ( identifier , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint64_t gold::read_unsigned_LEB_128_x(uchar *buffer,size_t *len,uchar byte)\n\n{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  char *format;\n  byte bVar7;\n  size_t sVar8;\n  uint local_2c;\n  uint local_28;\n  \n  sVar8 = 1;\n  local_28 = 0;\n  local_2c = byte & 0x7f;\n  do {\n    iVar3 = sVar8 - 1;\n    uVar2 = sVar8 * 7;\n    sVar8 = sVar8 + 1;\n    uVar4 = buffer[iVar3] & 0x7f;\n    bVar7 = (byte)uVar2;\n    bVar1 = bVar7 & 0x1f;\n    uVar5 = uVar4 << (bVar7 & 0x1f);\n    uVar6 = uVar5;\n    uVar4 = 0 << bVar1 | uVar4 >> 0x20 - bVar1;\n    if ((uVar2 & 0x20) != 0) {\n      uVar6 = 0;\n      uVar4 = uVar5;\n    }\n    local_2c = uVar6 | local_2c;\n    local_28 = uVar4 | local_28;\n    if (-1 < (char)buffer[iVar3]) goto LAB_001dc8cd;\n  } while (sVar8 != 0xb);\n  format = (char *)gettext("Unusually large LEB128 decoded, debug information may be corrupted");\n  gold_warning(format);\nLAB_001dc8cd:\n  *len = sVar8;\n  return CONCAT44(local_28,local_2c);\n}\n\n" comment (function_definition "uint64_t gold::read_unsigned_LEB_128_x(uchar *buffer,size_t *len,uchar byte)\n\n{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  char *format;\n  byte bVar7;\n  size_t sVar8;\n  uint local_2c;\n  uint local_28;\n  \n  sVar8 = 1;\n  local_28 = 0;\n  local_2c = byte & 0x7f;\n  do {\n    iVar3 = sVar8 - 1;\n    uVar2 = sVar8 * 7;\n    sVar8 = sVar8 + 1;\n    uVar4 = buffer[iVar3] & 0x7f;\n    bVar7 = (byte)uVar2;\n    bVar1 = bVar7 & 0x1f;\n    uVar5 = uVar4 << (bVar7 & 0x1f);\n    uVar6 = uVar5;\n    uVar4 = 0 << bVar1 | uVar4 >> 0x20 - bVar1;\n    if ((uVar2 & 0x20) != 0) {\n      uVar6 = 0;\n      uVar4 = uVar5;\n    }\n    local_2c = uVar6 | local_2c;\n    local_28 = uVar4 | local_28;\n    if (-1 < (char)buffer[iVar3]) goto LAB_001dc8cd;\n  } while (sVar8 != 0xb);\n  format = (char *)gettext("Unusually large LEB128 decoded, debug information may be corrupted");\n  gold_warning(format);\nLAB_001dc8cd:\n  *len = sVar8;\n  return CONCAT44(local_28,local_2c);\n}" primitive_type (ERROR "gold::" identifier : :) (function_declarator "read_unsigned_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  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  char *format;\n  byte bVar7;\n  size_t sVar8;\n  uint local_2c;\n  uint local_28;\n  \n  sVar8 = 1;\n  local_28 = 0;\n  local_2c = byte & 0x7f;\n  do {\n    iVar3 = sVar8 - 1;\n    uVar2 = sVar8 * 7;\n    sVar8 = sVar8 + 1;\n    uVar4 = buffer[iVar3] & 0x7f;\n    bVar7 = (byte)uVar2;\n    bVar1 = bVar7 & 0x1f;\n    uVar5 = uVar4 << (bVar7 & 0x1f);\n    uVar6 = uVar5;\n    uVar4 = 0 << bVar1 | uVar4 >> 0x20 - bVar1;\n    if ((uVar2 & 0x20) != 0) {\n      uVar6 = 0;\n      uVar4 = uVar5;\n    }\n    local_2c = uVar6 | local_2c;\n    local_28 = uVar4 | local_28;\n    if (-1 < (char)buffer[iVar3]) goto LAB_001dc8cd;\n  } while (sVar8 != 0xb);\n  format = (char *)gettext("Unusually large LEB128 decoded, debug information may be corrupted");\n  gold_warning(format);\nLAB_001dc8cd:\n  *len = sVar8;\n  return CONCAT44(local_28,local_2c);\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "byte bVar7;" type_identifier identifier ;) (declaration "size_t sVar8;" primitive_type identifier ;) (declaration "uint local_2c;" type_identifier identifier ;) (declaration "uint local_28;" type_identifier identifier ;) (expression_statement "sVar8 = 1;" (assignment_expression "sVar8 = 1" identifier = number_literal) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "local_2c = byte & 0x7f;" (assignment_expression "local_2c = byte & 0x7f" identifier = (binary_expression "byte & 0x7f" identifier & number_literal)) ;) (do_statement "do {\n    iVar3 = sVar8 - 1;\n    uVar2 = sVar8 * 7;\n    sVar8 = sVar8 + 1;\n    uVar4 = buffer[iVar3] & 0x7f;\n    bVar7 = (byte)uVar2;\n    bVar1 = bVar7 & 0x1f;\n    uVar5 = uVar4 << (bVar7 & 0x1f);\n    uVar6 = uVar5;\n    uVar4 = 0 << bVar1 | uVar4 >> 0x20 - bVar1;\n    if ((uVar2 & 0x20) != 0) {\n      uVar6 = 0;\n      uVar4 = uVar5;\n    }\n    local_2c = uVar6 | local_2c;\n    local_28 = uVar4 | local_28;\n    if (-1 < (char)buffer[iVar3]) goto LAB_001dc8cd;\n  } while (sVar8 != 0xb);" do (compound_statement "{\n    iVar3 = sVar8 - 1;\n    uVar2 = sVar8 * 7;\n    sVar8 = sVar8 + 1;\n    uVar4 = buffer[iVar3] & 0x7f;\n    bVar7 = (byte)uVar2;\n    bVar1 = bVar7 & 0x1f;\n    uVar5 = uVar4 << (bVar7 & 0x1f);\n    uVar6 = uVar5;\n    uVar4 = 0 << bVar1 | uVar4 >> 0x20 - bVar1;\n    if ((uVar2 & 0x20) != 0) {\n      uVar6 = 0;\n      uVar4 = uVar5;\n    }\n    local_2c = uVar6 | local_2c;\n    local_28 = uVar4 | local_28;\n    if (-1 < (char)buffer[iVar3]) goto LAB_001dc8cd;\n  }" { (expression_statement "iVar3 = sVar8 - 1;" (assignment_expression "iVar3 = sVar8 - 1" identifier = (binary_expression "sVar8 - 1" identifier - number_literal)) ;) (expression_statement "uVar2 = sVar8 * 7;" (assignment_expression "uVar2 = sVar8 * 7" identifier = (binary_expression "sVar8 * 7" identifier * number_literal)) ;) (expression_statement "sVar8 = sVar8 + 1;" (assignment_expression "sVar8 = sVar8 + 1" identifier = (binary_expression "sVar8 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = buffer[iVar3] & 0x7f;" (assignment_expression "uVar4 = buffer[iVar3] & 0x7f" identifier = (binary_expression "buffer[iVar3] & 0x7f" (subscript_expression "buffer[iVar3]" identifier [ identifier ]) & number_literal)) ;) (expression_statement "bVar7 = (byte)uVar2;" (assignment_expression "bVar7 = (byte)uVar2" identifier = (cast_expression "(byte)uVar2" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "bVar1 = bVar7 & 0x1f;" (assignment_expression "bVar1 = bVar7 & 0x1f" identifier = (binary_expression "bVar7 & 0x1f" identifier & number_literal)) ;) (expression_statement "uVar5 = uVar4 << (bVar7 & 0x1f);" (assignment_expression "uVar5 = uVar4 << (bVar7 & 0x1f)" identifier = (binary_expression "uVar4 << (bVar7 & 0x1f)" identifier << (parenthesized_expression "(bVar7 & 0x1f)" ( (binary_expression "bVar7 & 0x1f" identifier & number_literal) )))) ;) (expression_statement "uVar6 = uVar5;" (assignment_expression "uVar6 = uVar5" identifier = identifier) ;) (expression_statement "uVar4 = 0 << bVar1 | uVar4 >> 0x20 - bVar1;" (assignment_expression "uVar4 = 0 << bVar1 | uVar4 >> 0x20 - bVar1" identifier = (binary_expression "0 << bVar1 | uVar4 >> 0x20 - bVar1" (binary_expression "0 << bVar1" number_literal << identifier) | (binary_expression "uVar4 >> 0x20 - bVar1" identifier >> (binary_expression "0x20 - bVar1" number_literal - identifier)))) ;) (if_statement "if ((uVar2 & 0x20) != 0) {\n      uVar6 = 0;\n      uVar4 = uVar5;\n    }" if (parenthesized_expression "((uVar2 & 0x20) != 0)" ( (binary_expression "(uVar2 & 0x20) != 0" (parenthesized_expression "(uVar2 & 0x20)" ( (binary_expression "uVar2 & 0x20" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      uVar6 = 0;\n      uVar4 = uVar5;\n    }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "uVar4 = uVar5;" (assignment_expression "uVar4 = uVar5" identifier = identifier) ;) })) (expression_statement "local_2c = uVar6 | local_2c;" (assignment_expression "local_2c = uVar6 | local_2c" identifier = (binary_expression "uVar6 | local_2c" identifier | identifier)) ;) (expression_statement "local_28 = uVar4 | local_28;" (assignment_expression "local_28 = uVar4 | local_28" identifier = (binary_expression "uVar4 | local_28" identifier | identifier)) ;) (if_statement "if (-1 < (char)buffer[iVar3]) goto LAB_001dc8cd;" if (parenthesized_expression "(-1 < (char)buffer[iVar3])" ( (binary_expression "-1 < (char)buffer[iVar3]" number_literal < (cast_expression "(char)buffer[iVar3]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "buffer[iVar3]" identifier [ identifier ]))) )) (goto_statement "goto LAB_001dc8cd;" goto statement_identifier ;)) }) while (parenthesized_expression "(sVar8 != 0xb)" ( (binary_expression "sVar8 != 0xb" 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 ))) ;) (labeled_statement "LAB_001dc8cd:\n  *len = sVar8;" statement_identifier : (expression_statement "*len = sVar8;" (assignment_expression "*len = sVar8" (pointer_expression "*len" * identifier) = identifier) ;)) (return_statement "return CONCAT44(local_28,local_2c);" return (call_expression "CONCAT44(local_28,local_2c)" identifier (argument_list "(local_28,local_2c)" ( identifier , identifier ))) ;) })))
(translation_unit "undefined8 FUN_001dc830(int param_1,int *param_2,uint param_3)\n\n{\n  byte bVar1;\n  byte bVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  undefined4 uVar7;\n  byte bVar8;\n  int iVar9;\n  uint local_2c;\n  uint local_28;\n  \n  iVar9 = 1;\n  local_28 = 0;\n  local_2c = param_3 & 0x7f;\n  do {\n    bVar1 = *(byte *)(param_1 + -1 + iVar9);\n    uVar3 = iVar9 * 7;\n    iVar9 = iVar9 + 1;\n    uVar4 = bVar1 & 0x7f;\n    bVar8 = (byte)uVar3;\n    bVar2 = bVar8 & 0x1f;\n    uVar5 = uVar4 << (bVar8 & 0x1f);\n    uVar6 = uVar5;\n    uVar4 = 0 << bVar2 | uVar4 >> 0x20 - bVar2;\n    if ((uVar3 & 0x20) != 0) {\n      uVar6 = 0;\n      uVar4 = uVar5;\n    }\n    local_2c = uVar6 | local_2c;\n    local_28 = uVar4 | local_28;\n    if (-1 < (char)bVar1) goto LAB_001dc8cd;\n  } while (iVar9 != 0xb);\n  uVar7 = gettext("Unusually large LEB128 decoded, debug information may be corrupted");\n  FUN_00073e50(uVar7);\nLAB_001dc8cd:\n  *param_2 = iVar9;\n  return CONCAT44(local_28,local_2c);\n}\n\n" (function_definition "undefined8 FUN_001dc830(int param_1,int *param_2,uint param_3)\n\n{\n  byte bVar1;\n  byte bVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  undefined4 uVar7;\n  byte bVar8;\n  int iVar9;\n  uint local_2c;\n  uint local_28;\n  \n  iVar9 = 1;\n  local_28 = 0;\n  local_2c = param_3 & 0x7f;\n  do {\n    bVar1 = *(byte *)(param_1 + -1 + iVar9);\n    uVar3 = iVar9 * 7;\n    iVar9 = iVar9 + 1;\n    uVar4 = bVar1 & 0x7f;\n    bVar8 = (byte)uVar3;\n    bVar2 = bVar8 & 0x1f;\n    uVar5 = uVar4 << (bVar8 & 0x1f);\n    uVar6 = uVar5;\n    uVar4 = 0 << bVar2 | uVar4 >> 0x20 - bVar2;\n    if ((uVar3 & 0x20) != 0) {\n      uVar6 = 0;\n      uVar4 = uVar5;\n    }\n    local_2c = uVar6 | local_2c;\n    local_28 = uVar4 | local_28;\n    if (-1 < (char)bVar1) goto LAB_001dc8cd;\n  } while (iVar9 != 0xb);\n  uVar7 = gettext("Unusually large LEB128 decoded, debug information may be corrupted");\n  FUN_00073e50(uVar7);\nLAB_001dc8cd:\n  *param_2 = iVar9;\n  return CONCAT44(local_28,local_2c);\n}" type_identifier (function_declarator "FUN_001dc830(int param_1,int *param_2,uint param_3)" identifier (parameter_list "(int param_1,int *param_2,uint param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  undefined4 uVar7;\n  byte bVar8;\n  int iVar9;\n  uint local_2c;\n  uint local_28;\n  \n  iVar9 = 1;\n  local_28 = 0;\n  local_2c = param_3 & 0x7f;\n  do {\n    bVar1 = *(byte *)(param_1 + -1 + iVar9);\n    uVar3 = iVar9 * 7;\n    iVar9 = iVar9 + 1;\n    uVar4 = bVar1 & 0x7f;\n    bVar8 = (byte)uVar3;\n    bVar2 = bVar8 & 0x1f;\n    uVar5 = uVar4 << (bVar8 & 0x1f);\n    uVar6 = uVar5;\n    uVar4 = 0 << bVar2 | uVar4 >> 0x20 - bVar2;\n    if ((uVar3 & 0x20) != 0) {\n      uVar6 = 0;\n      uVar4 = uVar5;\n    }\n    local_2c = uVar6 | local_2c;\n    local_28 = uVar4 | local_28;\n    if (-1 < (char)bVar1) goto LAB_001dc8cd;\n  } while (iVar9 != 0xb);\n  uVar7 = gettext("Unusually large LEB128 decoded, debug information may be corrupted");\n  FUN_00073e50(uVar7);\nLAB_001dc8cd:\n  *param_2 = iVar9;\n  return CONCAT44(local_28,local_2c);\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "byte bVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "uint local_2c;" type_identifier identifier ;) (declaration "uint local_28;" type_identifier identifier ;) (expression_statement "iVar9 = 1;" (assignment_expression "iVar9 = 1" identifier = number_literal) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "local_2c = param_3 & 0x7f;" (assignment_expression "local_2c = param_3 & 0x7f" identifier = (binary_expression "param_3 & 0x7f" identifier & number_literal)) ;) (do_statement "do {\n    bVar1 = *(byte *)(param_1 + -1 + iVar9);\n    uVar3 = iVar9 * 7;\n    iVar9 = iVar9 + 1;\n    uVar4 = bVar1 & 0x7f;\n    bVar8 = (byte)uVar3;\n    bVar2 = bVar8 & 0x1f;\n    uVar5 = uVar4 << (bVar8 & 0x1f);\n    uVar6 = uVar5;\n    uVar4 = 0 << bVar2 | uVar4 >> 0x20 - bVar2;\n    if ((uVar3 & 0x20) != 0) {\n      uVar6 = 0;\n      uVar4 = uVar5;\n    }\n    local_2c = uVar6 | local_2c;\n    local_28 = uVar4 | local_28;\n    if (-1 < (char)bVar1) goto LAB_001dc8cd;\n  } while (iVar9 != 0xb);" do (compound_statement "{\n    bVar1 = *(byte *)(param_1 + -1 + iVar9);\n    uVar3 = iVar9 * 7;\n    iVar9 = iVar9 + 1;\n    uVar4 = bVar1 & 0x7f;\n    bVar8 = (byte)uVar3;\n    bVar2 = bVar8 & 0x1f;\n    uVar5 = uVar4 << (bVar8 & 0x1f);\n    uVar6 = uVar5;\n    uVar4 = 0 << bVar2 | uVar4 >> 0x20 - bVar2;\n    if ((uVar3 & 0x20) != 0) {\n      uVar6 = 0;\n      uVar4 = uVar5;\n    }\n    local_2c = uVar6 | local_2c;\n    local_28 = uVar4 | local_28;\n    if (-1 < (char)bVar1) goto LAB_001dc8cd;\n  }" { (expression_statement "bVar1 = *(byte *)(param_1 + -1 + iVar9);" (assignment_expression "bVar1 = *(byte *)(param_1 + -1 + iVar9)" identifier = (pointer_expression "*(byte *)(param_1 + -1 + iVar9)" * (cast_expression "(byte *)(param_1 + -1 + iVar9)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + -1 + iVar9)" ( (binary_expression "param_1 + -1 + iVar9" (binary_expression "param_1 + -1" identifier + number_literal) + identifier) ))))) ;) (expression_statement "uVar3 = iVar9 * 7;" (assignment_expression "uVar3 = iVar9 * 7" identifier = (binary_expression "iVar9 * 7" identifier * number_literal)) ;) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = bVar1 & 0x7f;" (assignment_expression "uVar4 = bVar1 & 0x7f" identifier = (binary_expression "bVar1 & 0x7f" identifier & number_literal)) ;) (expression_statement "bVar8 = (byte)uVar3;" (assignment_expression "bVar8 = (byte)uVar3" identifier = (cast_expression "(byte)uVar3" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "bVar2 = bVar8 & 0x1f;" (assignment_expression "bVar2 = bVar8 & 0x1f" identifier = (binary_expression "bVar8 & 0x1f" identifier & number_literal)) ;) (expression_statement "uVar5 = uVar4 << (bVar8 & 0x1f);" (assignment_expression "uVar5 = uVar4 << (bVar8 & 0x1f)" identifier = (binary_expression "uVar4 << (bVar8 & 0x1f)" identifier << (parenthesized_expression "(bVar8 & 0x1f)" ( (binary_expression "bVar8 & 0x1f" identifier & number_literal) )))) ;) (expression_statement "uVar6 = uVar5;" (assignment_expression "uVar6 = uVar5" identifier = identifier) ;) (expression_statement "uVar4 = 0 << bVar2 | uVar4 >> 0x20 - bVar2;" (assignment_expression "uVar4 = 0 << bVar2 | uVar4 >> 0x20 - bVar2" identifier = (binary_expression "0 << bVar2 | uVar4 >> 0x20 - bVar2" (binary_expression "0 << bVar2" number_literal << identifier) | (binary_expression "uVar4 >> 0x20 - bVar2" identifier >> (binary_expression "0x20 - bVar2" number_literal - identifier)))) ;) (if_statement "if ((uVar3 & 0x20) != 0) {\n      uVar6 = 0;\n      uVar4 = uVar5;\n    }" if (parenthesized_expression "((uVar3 & 0x20) != 0)" ( (binary_expression "(uVar3 & 0x20) != 0" (parenthesized_expression "(uVar3 & 0x20)" ( (binary_expression "uVar3 & 0x20" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      uVar6 = 0;\n      uVar4 = uVar5;\n    }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "uVar4 = uVar5;" (assignment_expression "uVar4 = uVar5" identifier = identifier) ;) })) (expression_statement "local_2c = uVar6 | local_2c;" (assignment_expression "local_2c = uVar6 | local_2c" identifier = (binary_expression "uVar6 | local_2c" identifier | identifier)) ;) (expression_statement "local_28 = uVar4 | local_28;" (assignment_expression "local_28 = uVar4 | local_28" identifier = (binary_expression "uVar4 | local_28" identifier | identifier)) ;) (if_statement "if (-1 < (char)bVar1) goto LAB_001dc8cd;" if (parenthesized_expression "(-1 < (char)bVar1)" ( (binary_expression "-1 < (char)bVar1" number_literal < (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier)) )) (goto_statement "goto LAB_001dc8cd;" goto statement_identifier ;)) }) while (parenthesized_expression "(iVar9 != 0xb)" ( (binary_expression "iVar9 != 0xb" identifier != number_literal) )) ;) (expression_statement "uVar7 = gettext("Unusually large LEB128 decoded, debug information may be corrupted");" (assignment_expression "uVar7 = 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_00073e50(uVar7);" (call_expression "FUN_00073e50(uVar7)" identifier (argument_list "(uVar7)" ( identifier ))) ;) (labeled_statement "LAB_001dc8cd:\n  *param_2 = iVar9;" statement_identifier : (expression_statement "*param_2 = iVar9;" (assignment_expression "*param_2 = iVar9" (pointer_expression "*param_2" * identifier) = identifier) ;)) (return_statement "return CONCAT44(local_28,local_2c);" return (call_expression "CONCAT44(local_28,local_2c)" identifier (argument_list "(local_28,local_2c)" ( identifier , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (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 TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (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 = (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 = (binary_expression IDENT << (parenthesized_expression ( (binary_expression IDENT & LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression LIT << IDENT) | (binary_expression IDENT >> (binary_expression LIT - IDENT)))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (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 ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;)) (return_statement return (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })))
(function_definition "undefined8 FUN_001dc830(int param_1,int *param_2,uint param_3)\n\n{\n  byte bVar1;\n  byte bVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  undefined4 uVar7;\n  byte bVar8;\n  int iVar9;\n  uint local_2c;\n  uint local_28;\n  \n  iVar9 = 1;\n  local_28 = 0;\n  local_2c = param_3 & 0x7f;\n  do {\n    bVar1 = *(byte *)(param_1 + -1 + iVar9);\n    uVar3 = iVar9 * 7;\n    iVar9 = iVar9 + 1;\n    uVar4 = bVar1 & 0x7f;\n    bVar8 = (byte)uVar3;\n    bVar2 = bVar8 & 0x1f;\n    uVar5 = uVar4 << (bVar8 & 0x1f);\n    uVar6 = uVar5;\n    uVar4 = 0 << bVar2 | uVar4 >> 0x20 - bVar2;\n    if ((uVar3 & 0x20) != 0) {\n      uVar6 = 0;\n      uVar4 = uVar5;\n    }\n    local_2c = uVar6 | local_2c;\n    local_28 = uVar4 | local_28;\n    if (-1 < (char)bVar1) goto LAB_001dc8cd;\n  } while (iVar9 != 0xb);\n  uVar7 = gettext("Unusually large LEB128 decoded, debug information may be corrupted");\n  FUN_00073e50(uVar7);\nLAB_001dc8cd:\n  *param_2 = iVar9;\n  return CONCAT44(local_28,local_2c);\n}" (type_identifier "undefined8") (function_declarator "FUN_001dc830(int param_1,int *param_2,uint param_3)" (identifier "FUN_001dc830") (parameter_list "(int param_1,int *param_2,uint param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  undefined4 uVar7;\n  byte bVar8;\n  int iVar9;\n  uint local_2c;\n  uint local_28;\n  \n  iVar9 = 1;\n  local_28 = 0;\n  local_2c = param_3 & 0x7f;\n  do {\n    bVar1 = *(byte *)(param_1 + -1 + iVar9);\n    uVar3 = iVar9 * 7;\n    iVar9 = iVar9 + 1;\n    uVar4 = bVar1 & 0x7f;\n    bVar8 = (byte)uVar3;\n    bVar2 = bVar8 & 0x1f;\n    uVar5 = uVar4 << (bVar8 & 0x1f);\n    uVar6 = uVar5;\n    uVar4 = 0 << bVar2 | uVar4 >> 0x20 - bVar2;\n    if ((uVar3 & 0x20) != 0) {\n      uVar6 = 0;\n      uVar4 = uVar5;\n    }\n    local_2c = uVar6 | local_2c;\n    local_28 = uVar4 | local_28;\n    if (-1 < (char)bVar1) goto LAB_001dc8cd;\n  } while (iVar9 != 0xb);\n  uVar7 = gettext("Unusually large LEB128 decoded, debug information may be corrupted");\n  FUN_00073e50(uVar7);\nLAB_001dc8cd:\n  *param_2 = iVar9;\n  return CONCAT44(local_28,local_2c);\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "byte bVar8;" (type_identifier "byte") (identifier "bVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "uint local_2c;" (type_identifier "uint") (identifier "local_2c") (; ";")) (declaration "uint local_28;" (type_identifier "uint") (identifier "local_28") (; ";")) (expression_statement "iVar9 = 1;" (assignment_expression "iVar9 = 1" (identifier "iVar9") (= "=") (number_literal "1")) (; ";")) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_2c = param_3 & 0x7f;" (assignment_expression "local_2c = param_3 & 0x7f" (identifier "local_2c") (= "=") (binary_expression "param_3 & 0x7f" (identifier "param_3") (& "&") (number_literal "0x7f"))) (; ";")) (do_statement "do {\n    bVar1 = *(byte *)(param_1 + -1 + iVar9);\n    uVar3 = iVar9 * 7;\n    iVar9 = iVar9 + 1;\n    uVar4 = bVar1 & 0x7f;\n    bVar8 = (byte)uVar3;\n    bVar2 = bVar8 & 0x1f;\n    uVar5 = uVar4 << (bVar8 & 0x1f);\n    uVar6 = uVar5;\n    uVar4 = 0 << bVar2 | uVar4 >> 0x20 - bVar2;\n    if ((uVar3 & 0x20) != 0) {\n      uVar6 = 0;\n      uVar4 = uVar5;\n    }\n    local_2c = uVar6 | local_2c;\n    local_28 = uVar4 | local_28;\n    if (-1 < (char)bVar1) goto LAB_001dc8cd;\n  } while (iVar9 != 0xb);" (do "do") (compound_statement "{\n    bVar1 = *(byte *)(param_1 + -1 + iVar9);\n    uVar3 = iVar9 * 7;\n    iVar9 = iVar9 + 1;\n    uVar4 = bVar1 & 0x7f;\n    bVar8 = (byte)uVar3;\n    bVar2 = bVar8 & 0x1f;\n    uVar5 = uVar4 << (bVar8 & 0x1f);\n    uVar6 = uVar5;\n    uVar4 = 0 << bVar2 | uVar4 >> 0x20 - bVar2;\n    if ((uVar3 & 0x20) != 0) {\n      uVar6 = 0;\n      uVar4 = uVar5;\n    }\n    local_2c = uVar6 | local_2c;\n    local_28 = uVar4 | local_28;\n    if (-1 < (char)bVar1) goto LAB_001dc8cd;\n  }" ({ "{") (expression_statement "bVar1 = *(byte *)(param_1 + -1 + iVar9);" (assignment_expression "bVar1 = *(byte *)(param_1 + -1 + iVar9)" (identifier "bVar1") (= "=") (pointer_expression "*(byte *)(param_1 + -1 + iVar9)" (* "*") (cast_expression "(byte *)(param_1 + -1 + iVar9)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + -1 + iVar9)" (( "(") (binary_expression "param_1 + -1 + iVar9" (binary_expression "param_1 + -1" (identifier "param_1") (+ "+") (number_literal "-1")) (+ "+") (identifier "iVar9")) () ")"))))) (; ";")) (expression_statement "uVar3 = iVar9 * 7;" (assignment_expression "uVar3 = iVar9 * 7" (identifier "uVar3") (= "=") (binary_expression "iVar9 * 7" (identifier "iVar9") (* "*") (number_literal "7"))) (; ";")) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" (identifier "iVar9") (= "=") (binary_expression "iVar9 + 1" (identifier "iVar9") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar4 = bVar1 & 0x7f;" (assignment_expression "uVar4 = bVar1 & 0x7f" (identifier "uVar4") (= "=") (binary_expression "bVar1 & 0x7f" (identifier "bVar1") (& "&") (number_literal "0x7f"))) (; ";")) (expression_statement "bVar8 = (byte)uVar3;" (assignment_expression "bVar8 = (byte)uVar3" (identifier "bVar8") (= "=") (cast_expression "(byte)uVar3" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar3"))) (; ";")) (expression_statement "bVar2 = bVar8 & 0x1f;" (assignment_expression "bVar2 = bVar8 & 0x1f" (identifier "bVar2") (= "=") (binary_expression "bVar8 & 0x1f" (identifier "bVar8") (& "&") (number_literal "0x1f"))) (; ";")) (expression_statement "uVar5 = uVar4 << (bVar8 & 0x1f);" (assignment_expression "uVar5 = uVar4 << (bVar8 & 0x1f)" (identifier "uVar5") (= "=") (binary_expression "uVar4 << (bVar8 & 0x1f)" (identifier "uVar4") (<< "<<") (parenthesized_expression "(bVar8 & 0x1f)" (( "(") (binary_expression "bVar8 & 0x1f" (identifier "bVar8") (& "&") (number_literal "0x1f")) () ")")))) (; ";")) (expression_statement "uVar6 = uVar5;" (assignment_expression "uVar6 = uVar5" (identifier "uVar6") (= "=") (identifier "uVar5")) (; ";")) (expression_statement "uVar4 = 0 << bVar2 | uVar4 >> 0x20 - bVar2;" (assignment_expression "uVar4 = 0 << bVar2 | uVar4 >> 0x20 - bVar2" (identifier "uVar4") (= "=") (binary_expression "0 << bVar2 | uVar4 >> 0x20 - bVar2" (binary_expression "0 << bVar2" (number_literal "0") (<< "<<") (identifier "bVar2")) (| "|") (binary_expression "uVar4 >> 0x20 - bVar2" (identifier "uVar4") (>> ">>") (binary_expression "0x20 - bVar2" (number_literal "0x20") (- "-") (identifier "bVar2"))))) (; ";")) (if_statement "if ((uVar3 & 0x20) != 0) {\n      uVar6 = 0;\n      uVar4 = uVar5;\n    }" (if "if") (parenthesized_expression "((uVar3 & 0x20) != 0)" (( "(") (binary_expression "(uVar3 & 0x20) != 0" (parenthesized_expression "(uVar3 & 0x20)" (( "(") (binary_expression "uVar3 & 0x20" (identifier "uVar3") (& "&") (number_literal "0x20")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar6 = 0;\n      uVar4 = uVar5;\n    }" ({ "{") (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar4 = uVar5;" (assignment_expression "uVar4 = uVar5" (identifier "uVar4") (= "=") (identifier "uVar5")) (; ";")) (} "}"))) (expression_statement "local_2c = uVar6 | local_2c;" (assignment_expression "local_2c = uVar6 | local_2c" (identifier "local_2c") (= "=") (binary_expression "uVar6 | local_2c" (identifier "uVar6") (| "|") (identifier "local_2c"))) (; ";")) (expression_statement "local_28 = uVar4 | local_28;" (assignment_expression "local_28 = uVar4 | local_28" (identifier "local_28") (= "=") (binary_expression "uVar4 | local_28" (identifier "uVar4") (| "|") (identifier "local_28"))) (; ";")) (if_statement "if (-1 < (char)bVar1) goto LAB_001dc8cd;" (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"))) () ")")) (goto_statement "goto LAB_001dc8cd;" (goto "goto") (statement_identifier "LAB_001dc8cd") (; ";"))) (} "}")) (while "while") (parenthesized_expression "(iVar9 != 0xb)" (( "(") (binary_expression "iVar9 != 0xb" (identifier "iVar9") (!= "!=") (number_literal "0xb")) () ")")) (; ";")) (expression_statement "uVar7 = gettext("Unusually large LEB128 decoded, debug information may be corrupted");" (assignment_expression "uVar7 = gettext("Unusually large LEB128 decoded, debug information may be corrupted")" (identifier "uVar7") (= "=") (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_00073e50(uVar7);" (call_expression "FUN_00073e50(uVar7)" (identifier "FUN_00073e50") (argument_list "(uVar7)" (( "(") (identifier "uVar7") () ")"))) (; ";")) (labeled_statement "LAB_001dc8cd:\n  *param_2 = iVar9;" (statement_identifier "LAB_001dc8cd") (: ":") (expression_statement "*param_2 = iVar9;" (assignment_expression "*param_2 = iVar9" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "iVar9")) (; ";"))) (return_statement "return CONCAT44(local_28,local_2c);" (return "return") (call_expression "CONCAT44(local_28,local_2c)" (identifier "CONCAT44") (argument_list "(local_28,local_2c)" (( "(") (identifier "local_28") (, ",") (identifier "local_2c") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

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

{
  type_2 var_4;
  type_3 var_5;
  int iVar3;
  type_3 var_3;
  type_3 uVar5;
  type_3 var_6;
  char *format;
  type_2 var_2;
  size_t var_1;
  type_3 var_7;
  type_3 var_8;
  
  var_1 = 1;
  var_8 = 0;
  var_7 = type_2 & 0x7f;
  do {
    iVar3 = var_1 - 1;
    var_5 = var_1 * 7;
    var_1 = var_1 + 1;
    var_3 = buffer[iVar3] & 0x7f;
    var_2 = (type_2)var_5;
    var_4 = var_2 & 0x1f;
    uVar5 = var_3 << (var_2 & 0x1f);
    var_6 = uVar5;
    var_3 = 0 << var_4 | var_3 >> 0x20 - var_4;
    if ((var_5 & 0x20) != 0) {
      var_6 = 0;
      var_3 = uVar5;
    }
    var_7 = var_6 | var_7;
    var_8 = var_3 | var_8;
    if (-1 < (char)buffer[iVar3]) goto LAB_001dc8cd;
  } while (var_1 != 0xb);
  format = (char *)var_9("Unusually large LEB128 decoded, debug information may be corrupted");
  var_10(format);
LAB_001dc8cd:
  *len = var_1;
  return var_11(var_8,var_7);
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined8 MASKED(int param_1,int *param_2,uint param_3)

{
  byte bVar1;
  byte bVar2;
  uint uVar3;
  uint uVar4;
  uint uVar5;
  uint uVar6;
  undefined4 uVar7;
  byte bVar8;
  int iVar9;
  uint local_2c;
  uint local_28;
  
  iVar9 = 1;
  local_28 = 0;
  local_2c = param_3 & 0x7f;
  do {
    bVar1 = *(byte *)(param_1 + -1 + iVar9);
    uVar3 = iVar9 * 7;
    iVar9 = iVar9 + 1;
    uVar4 = bVar1 & 0x7f;
    bVar8 = (byte)uVar3;
    bVar2 = bVar8 & 0x1f;
    uVar5 = uVar4 << (bVar8 & 0x1f);
    uVar6 = uVar5;
    uVar4 = 0 << bVar2 | uVar4 >> 0x20 - bVar2;
    if ((uVar3 & 0x20) != 0) {
      uVar6 = 0;
      uVar4 = uVar5;
    }
    local_2c = uVar6 | local_2c;
    local_28 = uVar4 | local_28;
    if (-1 < (char)bVar1) goto LAB_001dc8cd;
  } while (iVar9 != 0xb);
  uVar7 = gettext("Unusually large LEB128 decoded, debug information may be corrupted");
  FUN_00073e50(uVar7);
LAB_001dc8cd:
  *param_2 = iVar9;
  return CONCAT44(local_28,local_2c);
}

