#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ Parser_DisplayTagInfo(unsigned int, unsigned char);
int /*<<< orphan*/ Parser_TsPacketLog(unsigned int, char *, ...);
int x5A_Tag_DescriptorParser(unsigned int type, unsigned char *buff) {
  if (NULL == buff) {
    return -1;
  }
  Parser_DisplayTagInfo(type, buff[0]);
  Parser_TsPacketLog(type, "Descriptor_length = 0x%x\n", buff[1]);
  Parser_TsPacketLog(type, "centre_frequency = 0x%x\n",
                     ((buff[2] & 0xFF) << 24) | ((buff[3] & 0xFF) << 16) |
                         ((buff[4] & 0xFF) << 8) | (buff[5] & 0xFF));
  Parser_TsPacketLog(type, "bandwidth = 0x%x\n", (buff[6] & 0xE0) >> 5);
  Parser_TsPacketLog(type, "priority = 0x%x\n", (buff[6] & 0x10) >> 4);
  Parser_TsPacketLog(type, "Time_Slicing_indicator = 0x%x\n",
                     (buff[6] & 0x08) >> 3);
  Parser_TsPacketLog(type, "MPE-FEC_indicator = 0x%x\n", (buff[6] & 0x04) >> 2);
  Parser_TsPacketLog(type, "constellation = 0x%x\n", (buff[7] & 0xC0) >> 6);
  Parser_TsPacketLog(type, "hierarchy_information = 0x%x\n",
                     (buff[7] & 0x38) >> 3);
  Parser_TsPacketLog(type, "code_rate-HP_stream = 0x%x\n", buff[7] & 0x07);
  Parser_TsPacketLog(type, "code_rate-LP_stream = 0x%x\n",
                     (buff[8] & 0xE0) >> 5);
  Parser_TsPacketLog(type, "guard_interval = 0x%x\n", (buff[8] & 0x18) >> 3);
  Parser_TsPacketLog(type, "transmission_mode = 0x%x\n", (buff[8] & 0x06) >> 1);
  Parser_TsPacketLog(type, "other_frequency_flag = 0x%x\n", buff[8] & 0x01);
  Parser_TsPacketLog(type, "******END******\n");
  return buff[1];
}


x86 assembly (clang, -O0):
<x5A_Tag_DescriptorParser>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %eax,%eax
cmp    -0x10(%rbp),%rax
jne    1147 <x5A_Tag_DescriptorParser+0x27>
movl   $0xffffffff,-0x4(%rbp)
jmp    1338 <x5A_Tag_DescriptorParser+0x218>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rax
movzbl (%rax),%esi
call   1040 <Parser_DisplayTagInfo@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rax
movzbl 0x1(%rax),%edx
lea    0xe98(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rax
movzbl 0x2(%rax),%edx
and    $0xff,%edx
shl    $0x18,%edx
mov    -0x10(%rbp),%rax
movzbl 0x3(%rax),%eax
and    $0xff,%eax
shl    $0x10,%eax
or     %eax,%edx
mov    -0x10(%rbp),%rax
movzbl 0x4(%rax),%eax
and    $0xff,%eax
shl    $0x8,%eax
or     %eax,%edx
mov    -0x10(%rbp),%rax
movzbl 0x5(%rax),%eax
and    $0xff,%eax
or     %eax,%edx
lea    0xe5d(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rax
movzbl 0x6(%rax),%edx
and    $0xe0,%edx
sar    $0x5,%edx
lea    0xe54(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rax
movzbl 0x6(%rax),%edx
and    $0x10,%edx
sar    $0x4,%edx
lea    0xe47(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rax
movzbl 0x6(%rax),%edx
and    $0x8,%edx
sar    $0x3,%edx
lea    0xe39(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rax
movzbl 0x6(%rax),%edx
and    $0x4,%edx
sar    $0x2,%edx
lea    0xe39(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rax
movzbl 0x7(%rax),%edx
and    $0xc0,%edx
sar    $0x6,%edx
lea    0xe31(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rax
movzbl 0x7(%rax),%edx
and    $0x38,%edx
sar    $0x3,%edx
lea    0xe28(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rax
movzbl 0x7(%rax),%edx
and    $0x7,%edx
lea    0xe2a(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rax
movzbl 0x8(%rax),%edx
and    $0xe0,%edx
sar    $0x5,%edx
lea    0xe24(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rax
movzbl 0x8(%rax),%edx
and    $0x18,%edx
sar    $0x3,%edx
lea    0xe21(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rax
movzbl 0x8(%rax),%edx
and    $0x6,%edx
sar    $0x1,%edx
lea    0xe19(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rax
movzbl 0x8(%rax),%edx
and    $0x1,%edx
lea    0xe17(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x8(%rbp),%edi
lea    0xe23(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x10(%rbp),%rax
movzbl 0x1(%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<x5A_Tag_DescriptorParser>:
test   %rsi,%rsi
je     128b <x5A_Tag_DescriptorParser+0x16b>
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
movzbl (%rsi),%esi
call   1040 <Parser_DisplayTagInfo@plt>
movzbl 0x1(%rbx),%edx
lea    0xebc(%rip),%rsi
mov    %ebp,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
mov    0x2(%rbx),%edx
bswap  %edx
lea    0xec1(%rip),%rsi
mov    %ebp,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
movzbl 0x6(%rbx),%edx
shr    $0x5,%edx
lea    0xec3(%rip),%rsi
mov    %ebp,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
movzbl 0x6(%rbx),%edx
shr    $0x4,%edx
and    $0x1,%edx
lea    0xebb(%rip),%rsi
mov    %ebp,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
movzbl 0x6(%rbx),%edx
shr    $0x3,%edx
and    $0x1,%edx
lea    0xeb2(%rip),%rsi
mov    %ebp,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
movzbl 0x6(%rbx),%edx
shr    $0x2,%edx
and    $0x1,%edx
lea    0xeb7(%rip),%rsi
mov    %ebp,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
movzbl 0x7(%rbx),%edx
shr    $0x6,%edx
lea    0xeba(%rip),%rsi
mov    %ebp,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
movzbl 0x7(%rbx),%edx
shr    $0x3,%edx
and    $0x7,%edx
lea    0xeb6(%rip),%rsi
mov    %ebp,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
movzbl 0x7(%rbx),%edx
and    $0x7,%edx
lea    0xebd(%rip),%rsi
mov    %ebp,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
movzbl 0x8(%rbx),%edx
shr    $0x5,%edx
lea    0xec2(%rip),%rsi
mov    %ebp,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
movzbl 0x8(%rbx),%edx
shr    $0x3,%edx
and    $0x3,%edx
lea    0xec4(%rip),%rsi
mov    %ebp,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
movzbl 0x8(%rbx),%edx
shr    %edx
and    $0x3,%edx
lea    0xec2(%rip),%rsi
mov    %ebp,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
movzbl 0x8(%rbx),%edx
and    $0x1,%edx
lea    0xec5(%rip),%rsi
mov    %ebp,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
lea    0xed2(%rip),%rsi
mov    %ebp,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
movzbl 0x1(%rbx),%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret
mov    $0xffffffff,%eax
ret

LLVM IR (-O0):
@.str = [26 x i8] c"Descriptor_length = 0x%x\0A\00"
@.str.1 = [25 x i8] c"centre_frequency = 0x%x\0A\00"
@.str.2 = [18 x i8] c"bandwidth = 0x%x\0A\00"
@.str.3 = [17 x i8] c"priority = 0x%x\0A\00"
@.str.4 = [31 x i8] c"Time_Slicing_indicator = 0x%x\0A\00"
@.str.5 = [26 x i8] c"MPE-FEC_indicator = 0x%x\0A\00"
@.str.6 = [22 x i8] c"constellation = 0x%x\0A\00"
@.str.7 = [30 x i8] c"hierarchy_information = 0x%x\0A\00"
@.str.8 = [28 x i8] c"code_rate-HP_stream = 0x%x\0A\00"
@.str.9 = [28 x i8] c"code_rate-LP_stream = 0x%x\0A\00"
@.str.10 = [23 x i8] c"guard_interval = 0x%x\0A\00"
@.str.11 = [26 x i8] c"transmission_mode = 0x%x\0A\00"
@.str.12 = [29 x i8] c"other_frequency_flag = 0x%x\0A\00"
@.str.13 = [17 x i8] c"******END******\0A\00"
define i32 @x5A_Tag_DescriptorParser(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8*
store i32 %0, i32* %4
store i8* %1, i8** %5
%6 = load i8*, i8** %5
%7 = icmp eq i8* null, %6
br i1 %7, label %8, label %9
8: ; preds = %2
store i32 -1, i32* %3
br label %141
9: ; preds = %2
%10 = load i32, i32* %4
%11 = load i8*, i8** %5
%12 = getelementptr inbounds i8, i8* %11, i64 0
%13 = load i8, i8* %12
%14 = call i32 @Parser_DisplayTagInfo(i32 %10, i8 zeroext %13)
%15 = load i32, i32* %4
%16 = load i8*, i8** %5
%17 = getelementptr inbounds i8, i8* %16, i64 1
%18 = load i8, i8* %17
%19 = zext i8 %18 to i32
%20 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %15, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 %19)
%21 = load i32, i32* %4
%22 = load i8*, i8** %5
%23 = getelementptr inbounds i8, i8* %22, i64 2
%24 = load i8, i8* %23
%25 = zext i8 %24 to i32
%26 = and i32 %25, 255
%27 = shl i32 %26, 24
%28 = load i8*, i8** %5
%29 = getelementptr inbounds i8, i8* %28, i64 3
%30 = load i8, i8* %29
%31 = zext i8 %30 to i32
%32 = and i32 %31, 255
%33 = shl i32 %32, 16
%34 = or i32 %27, %33
%35 = load i8*, i8** %5
%36 = getelementptr inbounds i8, i8* %35, i64 4
%37 = load i8, i8* %36
%38 = zext i8 %37 to i32
%39 = and i32 %38, 255
%40 = shl i32 %39, 8
%41 = or i32 %34, %40
%42 = load i8*, i8** %5
%43 = getelementptr inbounds i8, i8* %42, i64 5
%44 = load i8, i8* %43
%45 = zext i8 %44 to i32
%46 = and i32 %45, 255
%47 = or i32 %41, %46
%48 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %21, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 %47)
%49 = load i32, i32* %4
%50 = load i8*, i8** %5
%51 = getelementptr inbounds i8, i8* %50, i64 6
%52 = load i8, i8* %51
%53 = zext i8 %52 to i32
%54 = and i32 %53, 224
%55 = ashr i32 %54, 5
%56 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %49, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 %55)
%57 = load i32, i32* %4
%58 = load i8*, i8** %5
%59 = getelementptr inbounds i8, i8* %58, i64 6
%60 = load i8, i8* %59
%61 = zext i8 %60 to i32
%62 = and i32 %61, 16
%63 = ashr i32 %62, 4
%64 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %57, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i32 %63)
%65 = load i32, i32* %4
%66 = load i8*, i8** %5
%67 = getelementptr inbounds i8, i8* %66, i64 6
%68 = load i8, i8* %67
%69 = zext i8 %68 to i32
%70 = and i32 %69, 8
%71 = ashr i32 %70, 3
%72 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %65, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0), i32 %71)
%73 = load i32, i32* %4
%74 = load i8*, i8** %5
%75 = getelementptr inbounds i8, i8* %74, i64 6
%76 = load i8, i8* %75
%77 = zext i8 %76 to i32
%78 = and i32 %77, 4
%79 = ashr i32 %78, 2
%80 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %73, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0), i32 %79)
%81 = load i32, i32* %4
%82 = load i8*, i8** %5
%83 = getelementptr inbounds i8, i8* %82, i64 7
%84 = load i8, i8* %83
%85 = zext i8 %84 to i32
%86 = and i32 %85, 192
%87 = ashr i32 %86, 6
%88 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %81, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i32 %87)
%89 = load i32, i32* %4
%90 = load i8*, i8** %5
%91 = getelementptr inbounds i8, i8* %90, i64 7
%92 = load i8, i8* %91
%93 = zext i8 %92 to i32
%94 = and i32 %93, 56
%95 = ashr i32 %94, 3
%96 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %89, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i32 %95)
%97 = load i32, i32* %4
%98 = load i8*, i8** %5
%99 = getelementptr inbounds i8, i8* %98, i64 7
%100 = load i8, i8* %99
%101 = zext i8 %100 to i32
%102 = and i32 %101, 7
%103 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %97, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0), i32 %102)
%104 = load i32, i32* %4
%105 = load i8*, i8** %5
%106 = getelementptr inbounds i8, i8* %105, i64 8
%107 = load i8, i8* %106
%108 = zext i8 %107 to i32
%109 = and i32 %108, 224
%110 = ashr i32 %109, 5
%111 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %104, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0), i32 %110)
%112 = load i32, i32* %4
%113 = load i8*, i8** %5
%114 = getelementptr inbounds i8, i8* %113, i64 8
%115 = load i8, i8* %114
%116 = zext i8 %115 to i32
%117 = and i32 %116, 24
%118 = ashr i32 %117, 3
%119 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %112, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0), i32 %118)
%120 = load i32, i32* %4
%121 = load i8*, i8** %5
%122 = getelementptr inbounds i8, i8* %121, i64 8
%123 = load i8, i8* %122
%124 = zext i8 %123 to i32
%125 = and i32 %124, 6
%126 = ashr i32 %125, 1
%127 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %120, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.11, i64 0, i64 0), i32 %126)
%128 = load i32, i32* %4
%129 = load i8*, i8** %5
%130 = getelementptr inbounds i8, i8* %129, i64 8
%131 = load i8, i8* %130
%132 = zext i8 %131 to i32
%133 = and i32 %132, 1
%134 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %128, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.12, i64 0, i64 0), i32 %133)
%135 = load i32, i32* %4
%136 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %135, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0))
%137 = load i8*, i8** %5
%138 = getelementptr inbounds i8, i8* %137, i64 1
%139 = load i8, i8* %138
%140 = zext i8 %139 to i32
store i32 %140, i32* %3
br label %141
141: ; preds = %9, %8
%142 = load i32, i32* %3
ret i32 %142
}

LLVM IR (-O2):
@.str = [26 x i8] c"Descriptor_length = 0x%x\0A\00"
@.str.1 = [25 x i8] c"centre_frequency = 0x%x\0A\00"
@.str.2 = [18 x i8] c"bandwidth = 0x%x\0A\00"
@.str.3 = [17 x i8] c"priority = 0x%x\0A\00"
@.str.4 = [31 x i8] c"Time_Slicing_indicator = 0x%x\0A\00"
@.str.5 = [26 x i8] c"MPE-FEC_indicator = 0x%x\0A\00"
@.str.6 = [22 x i8] c"constellation = 0x%x\0A\00"
@.str.7 = [30 x i8] c"hierarchy_information = 0x%x\0A\00"
@.str.8 = [28 x i8] c"code_rate-HP_stream = 0x%x\0A\00"
@.str.9 = [28 x i8] c"code_rate-LP_stream = 0x%x\0A\00"
@.str.10 = [23 x i8] c"guard_interval = 0x%x\0A\00"
@.str.11 = [26 x i8] c"transmission_mode = 0x%x\0A\00"
@.str.12 = [29 x i8] c"other_frequency_flag = 0x%x\0A\00"
@.str.13 = [17 x i8] c"******END******\0A\00"
define i32 @x5A_Tag_DescriptorParser(i32 %0, i8* %1) {
%3 = icmp eq i8* %1, null
br i1 %3, label %86, label %4
4: ; preds = %2
%5 = load i8, i8* %1
%6 = tail call i32 @Parser_DisplayTagInfo(i32 %0, i8 zeroext %5)
%7 = getelementptr inbounds i8, i8* %1, i64 1
%8 = load i8, i8* %7
%9 = zext i8 %8 to i32
%10 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 %9)
%11 = getelementptr inbounds i8, i8* %1, i64 2
%12 = load i8, i8* %11
%13 = zext i8 %12 to i32
%14 = shl nuw i32 %13, 24
%15 = getelementptr inbounds i8, i8* %1, i64 3
%16 = load i8, i8* %15
%17 = zext i8 %16 to i32
%18 = shl nuw nsw i32 %17, 16
%19 = or i32 %18, %14
%20 = getelementptr inbounds i8, i8* %1, i64 4
%21 = load i8, i8* %20
%22 = zext i8 %21 to i32
%23 = shl nuw nsw i32 %22, 8
%24 = or i32 %19, %23
%25 = getelementptr inbounds i8, i8* %1, i64 5
%26 = load i8, i8* %25
%27 = zext i8 %26 to i32
%28 = or i32 %24, %27
%29 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 %28)
%30 = getelementptr inbounds i8, i8* %1, i64 6
%31 = load i8, i8* %30
%32 = lshr i8 %31, 5
%33 = zext i8 %32 to i32
%34 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 %33)
%35 = load i8, i8* %30
%36 = lshr i8 %35, 4
%37 = and i8 %36, 1
%38 = zext i8 %37 to i32
%39 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i32 %38)
%40 = load i8, i8* %30
%41 = lshr i8 %40, 3
%42 = and i8 %41, 1
%43 = zext i8 %42 to i32
%44 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0), i32 %43)
%45 = load i8, i8* %30
%46 = lshr i8 %45, 2
%47 = and i8 %46, 1
%48 = zext i8 %47 to i32
%49 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0), i32 %48)
%50 = getelementptr inbounds i8, i8* %1, i64 7
%51 = load i8, i8* %50
%52 = lshr i8 %51, 6
%53 = zext i8 %52 to i32
%54 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i32 %53)
%55 = load i8, i8* %50
%56 = lshr i8 %55, 3
%57 = and i8 %56, 7
%58 = zext i8 %57 to i32
%59 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i32 %58)
%60 = load i8, i8* %50
%61 = and i8 %60, 7
%62 = zext i8 %61 to i32
%63 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0), i32 %62)
%64 = getelementptr inbounds i8, i8* %1, i64 8
%65 = load i8, i8* %64
%66 = lshr i8 %65, 5
%67 = zext i8 %66 to i32
%68 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0), i32 %67)
%69 = load i8, i8* %64
%70 = lshr i8 %69, 3
%71 = and i8 %70, 3
%72 = zext i8 %71 to i32
%73 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0), i32 %72)
%74 = load i8, i8* %64
%75 = lshr i8 %74, 1
%76 = and i8 %75, 3
%77 = zext i8 %76 to i32
%78 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.11, i64 0, i64 0), i32 %77)
%79 = load i8, i8* %64
%80 = and i8 %79, 1
%81 = zext i8 %80 to i32
%82 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.12, i64 0, i64 0), i32 %81)
%83 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0))
%84 = load i8, i8* %7
%85 = zext i8 %84 to i32
br label %86
86: ; preds = %2, %4
%87 = phi i32 [ %85, %4 ], [ -1, %2 ]
ret i32 %87
}