#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 x43_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, "frequency = 0x%x\n",
                     ((buff[2] & 0xFF) << 24) | ((buff[3] & 0xFF) << 16) |
                         ((buff[4] & 0xFF) << 8) | (buff[5] & 0xFF));
  Parser_TsPacketLog(type, "orbital_position = 0x%x\n",
                     ((buff[6] & 0xFF) << 8) | (buff[7] & 0xFF));
  Parser_TsPacketLog(type, "west_east_flag = 0x%x\n", buff[8] & 0x80);
  Parser_TsPacketLog(type, "polarization = 0x%x\n", buff[8] & 0x60);
  if (0x04 == (buff[8] & 0x04)) {
    Parser_TsPacketLog(type, "roll_off = 0x%x\n", (buff[8] & 0x18) >> 3);
  } else {
    Parser_TsPacketLog(type, "roll_off = 00\n");
  }
  Parser_TsPacketLog(type, "modulation_system = 0x%x\n", (buff[8] & 0x04) >> 2);
  Parser_TsPacketLog(type, "modulation_type = 0x%x\n", buff[8] & 0x03);
  Parser_TsPacketLog(type, "symbol_rate = 0x%x\n",
                     ((buff[9] & 0xFF) << 20) | ((buff[10] & 0xFF) << 12) |
                         ((buff[11] & 0xFF) << 4) | ((buff[12] & 0xF0) >> 4));
  Parser_TsPacketLog(type, "FEC_inner = 0x%x\n", buff[12] & 0x0F);
  Parser_TsPacketLog(type, "******END******\n");
  return buff[1];
}


x86 assembly (clang, -O0):
<x43_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 <x43_Tag_DescriptorParser+0x27>
movl   $0xffffffff,-0x4(%rbp)
jmp    1348 <x43_Tag_DescriptorParser+0x228>
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    $0xff,%edx
shl    $0x8,%edx
mov    -0x10(%rbp),%rax
movzbl 0x7(%rax),%eax
and    $0xff,%eax
or     %eax,%edx
lea    0xe3e(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rax
movzbl 0x8(%rax),%edx
and    $0x80,%edx
lea    0xe38(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rax
movzbl 0x8(%rax),%edx
and    $0x60,%edx
lea    0xe33(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x10(%rbp),%rax
movzbl 0x8(%rax),%ecx
and    $0x4,%ecx
mov    $0x4,%eax
cmp    %ecx,%eax
jne    126c <x43_Tag_DescriptorParser+0x14c>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rax
movzbl 0x8(%rax),%edx
and    $0x18,%edx
sar    $0x3,%edx
lea    0xe11(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
jmp    127d <x43_Tag_DescriptorParser+0x15d>
mov    -0x8(%rbp),%edi
lea    0xe0c(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rax
movzbl 0x8(%rax),%edx
and    $0x4,%edx
sar    $0x2,%edx
lea    0xdfc(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rax
movzbl 0x8(%rax),%edx
and    $0x3,%edx
lea    0xdfa(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rax
movzbl 0x9(%rax),%edx
and    $0xff,%edx
shl    $0x14,%edx
mov    -0x10(%rbp),%rax
movzbl 0xa(%rax),%eax
and    $0xff,%eax
shl    $0xc,%eax
or     %eax,%edx
mov    -0x10(%rbp),%rax
movzbl 0xb(%rax),%eax
and    $0xff,%eax
shl    $0x4,%eax
or     %eax,%edx
mov    -0x10(%rbp),%rax
movzbl 0xc(%rax),%eax
and    $0xf0,%eax
sar    $0x4,%eax
or     %eax,%edx
lea    0xdba(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rax
movzbl 0xc(%rax),%edx
and    $0xf,%edx
lea    0xdb2(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x8(%rbp),%edi
lea    0xdb3(%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):
<x43_Tag_DescriptorParser>:
test   %rsi,%rsi
je     11c4 <x43_Tag_DescriptorParser+0xa4>
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>
movzwl 0x6(%rbx),%edx
shl    $0x10,%edx
bswap  %edx
lea    0xeba(%rip),%rsi
mov    %ebp,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
movzbl 0x8(%rbx),%edx
and    $0xffffff80,%edx
lea    0xebc(%rip),%rsi
mov    %ebp,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
movzbl 0x8(%rbx),%edx
and    $0x60,%edx
lea    0xebc(%rip),%rsi
mov    %ebp,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
movzbl 0x8(%rbx),%edx
test   $0x4,%dl
jne    11ca <x43_Tag_DescriptorParser+0xaa>
lea    0xec9(%rip),%rsi
mov    %ebp,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
jmp    11e0 <x43_Tag_DescriptorParser+0xc0>
mov    $0xffffffff,%eax
ret
shr    $0x3,%edx
and    $0x3,%edx
lea    0xe9a(%rip),%rsi
mov    %ebp,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
movzbl 0x8(%rbx),%edx
shr    $0x2,%edx
and    $0x1,%edx
lea    0xea0(%rip),%rsi
mov    %ebp,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
movzbl 0x8(%rbx),%edx
and    $0x3,%edx
lea    0xea3(%rip),%rsi
mov    %ebp,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
movzbl 0x9(%rbx),%eax
shl    $0x14,%eax
movzbl 0xa(%rbx),%ecx
shl    $0xc,%ecx
or     %eax,%ecx
movzbl 0xb(%rbx),%eax
shl    $0x4,%eax
or     %ecx,%eax
movzbl 0xc(%rbx),%edx
shr    $0x4,%edx
or     %eax,%edx
lea    0xe89(%rip),%rsi
mov    %ebp,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
movzbl 0xc(%rbx),%edx
and    $0xf,%edx
lea    0xe86(%rip),%rsi
mov    %ebp,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
lea    0xe88(%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

LLVM IR (-O0):
@.str = [26 x i8] c"Descriptor_length = 0x%x\0A\00"
@.str.1 = [18 x i8] c"frequency = 0x%x\0A\00"
@.str.2 = [25 x i8] c"orbital_position = 0x%x\0A\00"
@.str.3 = [23 x i8] c"west_east_flag = 0x%x\0A\00"
@.str.4 = [21 x i8] c"polarization = 0x%x\0A\00"
@.str.5 = [17 x i8] c"roll_off = 0x%x\0A\00"
@.str.6 = [15 x i8] c"roll_off = 00\0A\00"
@.str.7 = [26 x i8] c"modulation_system = 0x%x\0A\00"
@.str.8 = [24 x i8] c"modulation_type = 0x%x\0A\00"
@.str.9 = [20 x i8] c"symbol_rate = 0x%x\0A\00"
@.str.10 = [18 x i8] c"FEC_inner = 0x%x\0A\00"
@.str.11 = [17 x i8] c"******END******\0A\00"
define i32 @x43_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 %153
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 ([18 x i8], [18 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, 255
%55 = shl i32 %54, 8
%56 = load i8*, i8** %5
%57 = getelementptr inbounds i8, i8* %56, i64 7
%58 = load i8, i8* %57
%59 = zext i8 %58 to i32
%60 = and i32 %59, 255
%61 = or i32 %55, %60
%62 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %49, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i32 %61)
%63 = load i32, i32* %4
%64 = load i8*, i8** %5
%65 = getelementptr inbounds i8, i8* %64, i64 8
%66 = load i8, i8* %65
%67 = zext i8 %66 to i32
%68 = and i32 %67, 128
%69 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %63, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i32 %68)
%70 = load i32, i32* %4
%71 = load i8*, i8** %5
%72 = getelementptr inbounds i8, i8* %71, i64 8
%73 = load i8, i8* %72
%74 = zext i8 %73 to i32
%75 = and i32 %74, 96
%76 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %70, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i32 %75)
%77 = load i8*, i8** %5
%78 = getelementptr inbounds i8, i8* %77, i64 8
%79 = load i8, i8* %78
%80 = zext i8 %79 to i32
%81 = and i32 %80, 4
%82 = icmp eq i32 4, %81
br i1 %82, label %83, label %92
83: ; preds = %9
%84 = load i32, i32* %4
%85 = load i8*, i8** %5
%86 = getelementptr inbounds i8, i8* %85, i64 8
%87 = load i8, i8* %86
%88 = zext i8 %87 to i32
%89 = and i32 %88, 24
%90 = ashr i32 %89, 3
%91 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %84, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32 %90)
br label %95
92: ; preds = %9
%93 = load i32, i32* %4
%94 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %93, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
br label %95
95: ; preds = %92, %83
%96 = load i32, i32* %4
%97 = load i8*, i8** %5
%98 = getelementptr inbounds i8, i8* %97, i64 8
%99 = load i8, i8* %98
%100 = zext i8 %99 to i32
%101 = and i32 %100, 4
%102 = ashr i32 %101, 2
%103 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %96, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, 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, 3
%110 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %104, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.8, i64 0, i64 0), i32 %109)
%111 = load i32, i32* %4
%112 = load i8*, i8** %5
%113 = getelementptr inbounds i8, i8* %112, i64 9
%114 = load i8, i8* %113
%115 = zext i8 %114 to i32
%116 = and i32 %115, 255
%117 = shl i32 %116, 20
%118 = load i8*, i8** %5
%119 = getelementptr inbounds i8, i8* %118, i64 10
%120 = load i8, i8* %119
%121 = zext i8 %120 to i32
%122 = and i32 %121, 255
%123 = shl i32 %122, 12
%124 = or i32 %117, %123
%125 = load i8*, i8** %5
%126 = getelementptr inbounds i8, i8* %125, i64 11
%127 = load i8, i8* %126
%128 = zext i8 %127 to i32
%129 = and i32 %128, 255
%130 = shl i32 %129, 4
%131 = or i32 %124, %130
%132 = load i8*, i8** %5
%133 = getelementptr inbounds i8, i8* %132, i64 12
%134 = load i8, i8* %133
%135 = zext i8 %134 to i32
%136 = and i32 %135, 240
%137 = ashr i32 %136, 4
%138 = or i32 %131, %137
%139 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %111, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0), i32 %138)
%140 = load i32, i32* %4
%141 = load i8*, i8** %5
%142 = getelementptr inbounds i8, i8* %141, i64 12
%143 = load i8, i8* %142
%144 = zext i8 %143 to i32
%145 = and i32 %144, 15
%146 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %140, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0), i32 %145)
%147 = load i32, i32* %4
%148 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %147, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0))
%149 = load i8*, i8** %5
%150 = getelementptr inbounds i8, i8* %149, i64 1
%151 = load i8, i8* %150
%152 = zext i8 %151 to i32
store i32 %152, i32* %3
br label %153
153: ; preds = %95, %8
%154 = load i32, i32* %3
ret i32 %154
}

LLVM IR (-O2):
@.str = [26 x i8] c"Descriptor_length = 0x%x\0A\00"
@.str.1 = [18 x i8] c"frequency = 0x%x\0A\00"
@.str.2 = [25 x i8] c"orbital_position = 0x%x\0A\00"
@.str.3 = [23 x i8] c"west_east_flag = 0x%x\0A\00"
@.str.4 = [21 x i8] c"polarization = 0x%x\0A\00"
@.str.5 = [17 x i8] c"roll_off = 0x%x\0A\00"
@.str.6 = [15 x i8] c"roll_off = 00\0A\00"
@.str.7 = [26 x i8] c"modulation_system = 0x%x\0A\00"
@.str.8 = [24 x i8] c"modulation_type = 0x%x\0A\00"
@.str.9 = [20 x i8] c"symbol_rate = 0x%x\0A\00"
@.str.10 = [18 x i8] c"FEC_inner = 0x%x\0A\00"
@.str.11 = [17 x i8] c"******END******\0A\00"
define i32 @x43_Tag_DescriptorParser(i32 %0, i8* %1) {
%3 = icmp eq i8* %1, null
br i1 %3, label %95, 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 ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %28)
%30 = getelementptr inbounds i8, i8* %1, i64 6
%31 = load i8, i8* %30
%32 = zext i8 %31 to i32
%33 = shl nuw nsw i32 %32, 8
%34 = getelementptr inbounds i8, i8* %1, i64 7
%35 = load i8, i8* %34
%36 = zext i8 %35 to i32
%37 = or i32 %33, %36
%38 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i32 %37)
%39 = getelementptr inbounds i8, i8* %1, i64 8
%40 = load i8, i8* %39
%41 = and i8 %40, -128
%42 = zext i8 %41 to i32
%43 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i32 %42)
%44 = load i8, i8* %39
%45 = and i8 %44, 96
%46 = zext i8 %45 to i32
%47 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i32 %46)
%48 = load i8, i8* %39
%49 = zext i8 %48 to i32
%50 = and i32 %49, 4
%51 = icmp eq i32 %50, 0
br i1 %51, label %56, label %52
52: ; preds = %4
%53 = lshr i32 %49, 3
%54 = and i32 %53, 3
%55 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32 %54)
br label %58
56: ; preds = %4
%57 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
br label %58
58: ; preds = %56, %52
%59 = load i8, i8* %39
%60 = lshr i8 %59, 2
%61 = and i8 %60, 1
%62 = zext i8 %61 to i32
%63 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), i32 %62)
%64 = load i8, i8* %39
%65 = and i8 %64, 3
%66 = zext i8 %65 to i32
%67 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.8, i64 0, i64 0), i32 %66)
%68 = getelementptr inbounds i8, i8* %1, i64 9
%69 = load i8, i8* %68
%70 = zext i8 %69 to i32
%71 = shl nuw nsw i32 %70, 20
%72 = getelementptr inbounds i8, i8* %1, i64 10
%73 = load i8, i8* %72
%74 = zext i8 %73 to i32
%75 = shl nuw nsw i32 %74, 12
%76 = or i32 %75, %71
%77 = getelementptr inbounds i8, i8* %1, i64 11
%78 = load i8, i8* %77
%79 = zext i8 %78 to i32
%80 = shl nuw nsw i32 %79, 4
%81 = or i32 %76, %80
%82 = getelementptr inbounds i8, i8* %1, i64 12
%83 = load i8, i8* %82
%84 = lshr i8 %83, 4
%85 = zext i8 %84 to i32
%86 = or i32 %81, %85
%87 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0), i32 %86)
%88 = load i8, i8* %82
%89 = and i8 %88, 15
%90 = zext i8 %89 to i32
%91 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0), i32 %90)
%92 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0))
%93 = load i8, i8* %7
%94 = zext i8 %93 to i32
br label %95
95: ; preds = %2, %58
%96 = phi i32 [ %94, %58 ], [ -1, %2 ]
ret i32 %96
}