#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 x4D_Tag_DescriptorParser(unsigned int type, unsigned char *buff) {
  unsigned int i = 0;
  unsigned char tmplen = 0;
  unsigned char *data = NULL;
  if (NULL == buff) {
    return -1;
  }
  Parser_DisplayTagInfo(type, buff[0]);
  Parser_TsPacketLog(type, "Descriptor_length = 0x%x\n", buff[1]);
  Parser_TsPacketLog(type, "ISO_639_language_code = 0x%x : %c%c%c\n",
                     ((buff[2] & 0xFF) << 16) | ((buff[3] & 0xFF) << 8) |
                         (buff[4] & 0xFF),
                     buff[2], buff[3], buff[4]);
  Parser_TsPacketLog(type, "event_name_length = 0x%x\n", buff[5]);
  data = buff;
  data += 6;
  if (0 != buff[5]) {
    Parser_TsPacketLog(type, "event_name: ");
    for (i = 0; i < buff[5]; i++) {
      Parser_TsPacketLog(type, "%c", data[i]);
    }
    Parser_TsPacketLog(type, "\n");
  }
  tmplen = data[i];
  data += i;
  data += 1;
  Parser_TsPacketLog(type, "text_length = 0x%x\n", tmplen);
  if (0 != tmplen) {
    Parser_TsPacketLog(type, "text: ");
    for (i = 0; i < tmplen; i++) {
      Parser_TsPacketLog(type, "%c", data[i]);
    }
    Parser_TsPacketLog(type, "\n");
  }
  Parser_TsPacketLog(type, "******END******\n");
  return buff[1];
}


x86 assembly (clang, -O0):
<x4D_Tag_DescriptorParser>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movb   $0x0,-0x15(%rbp)
movq   $0x0,-0x20(%rbp)
xor    %eax,%eax
cmp    -0x10(%rbp),%rax
jne    115a <x4D_Tag_DescriptorParser+0x3a>
movl   $0xffffffff,-0x4(%rbp)
jmp    134e <x4D_Tag_DescriptorParser+0x22e>
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    0xe85(%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    $0x10,%edx
mov    -0x10(%rbp),%rax
movzbl 0x3(%rax),%eax
and    $0xff,%eax
shl    $0x8,%eax
or     %eax,%edx
mov    -0x10(%rbp),%rax
movzbl 0x4(%rax),%eax
and    $0xff,%eax
or     %eax,%edx
mov    -0x10(%rbp),%rax
movzbl 0x2(%rax),%ecx
mov    -0x10(%rbp),%rax
movzbl 0x3(%rax),%r8d
mov    -0x10(%rbp),%rax
movzbl 0x4(%rax),%r9d
lea    0xe42(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rax
movzbl 0x5(%rax),%edx
lea    0xe50(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
add    $0x6,%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movzbl 0x5(%rax),%ecx
xor    %eax,%eax
cmp    %ecx,%eax
je     1284 <x4D_Tag_DescriptorParser+0x164>
mov    -0x8(%rbp),%edi
lea    0xe33(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    -0x10(%rbp),%rcx
movzbl 0x5(%rcx),%ecx
cmp    %ecx,%eax
jae    1273 <x4D_Tag_DescriptorParser+0x153>
mov    -0x8(%rbp),%edi
mov    -0x20(%rbp),%rax
mov    -0x14(%rbp),%ecx
movzbl (%rax,%rcx,1),%edx
lea    0xe0a(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1236 <x4D_Tag_DescriptorParser+0x116>
mov    -0x8(%rbp),%edi
lea    0xe18(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x20(%rbp),%rax
mov    -0x14(%rbp),%ecx
mov    (%rax,%rcx,1),%al
mov    %al,-0x15(%rbp)
mov    -0x14(%rbp),%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,%ecx
add    %rcx,%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%edi
movzbl -0x15(%rbp),%edx
lea    0xdb0(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
movzbl -0x15(%rbp),%ecx
xor    %eax,%eax
cmp    %ecx,%eax
je     1332 <x4D_Tag_DescriptorParser+0x212>
mov    -0x8(%rbp),%edi
lea    0xda5(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
movzbl -0x15(%rbp),%ecx
cmp    %ecx,%eax
jae    1321 <x4D_Tag_DescriptorParser+0x201>
mov    -0x8(%rbp),%edi
mov    -0x20(%rbp),%rax
mov    -0x14(%rbp),%ecx
movzbl (%rax,%rcx,1),%edx
lea    0xd5c(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12e8 <x4D_Tag_DescriptorParser+0x1c8>
mov    -0x8(%rbp),%edi
lea    0xd6a(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x8(%rbp),%edi
lea    0xd4a(%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    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<x4D_Tag_DescriptorParser>:
test   %rsi,%rsi
je     1292 <x4D_Tag_DescriptorParser+0x172>
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %edi,%r15d
movzbl (%rsi),%esi
call   1040 <Parser_DisplayTagInfo@plt>
movzbl 0x1(%r14),%edx
lea    0xeb2(%rip),%rsi
xor    %ebp,%ebp
mov    %r15d,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
movzbl 0x2(%r14),%ecx
mov    %ecx,%eax
shl    $0x10,%eax
movzbl 0x3(%r14),%r8d
mov    %r8d,%edx
shl    $0x8,%edx
or     %eax,%edx
movzbl 0x4(%r14),%r9d
or     %r9d,%edx
lea    0xe9a(%rip),%rsi
mov    %r15d,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
movzbl 0x5(%r14),%edx
lea    0xeab(%rip),%rsi
mov    %r15d,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
lea    0x6(%r14),%r12
cmpb   $0x0,0x5(%r14)
je     1202 <x4D_Tag_DescriptorParser+0xe2>
lea    0xea9(%rip),%rsi
xor    %ebp,%ebp
mov    %r15d,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
cmpb   $0x0,0x5(%r14)
je     11f1 <x4D_Tag_DescriptorParser+0xd1>
lea    0xe9c(%rip),%rbx
xor    %ebp,%ebp
xchg   %ax,%ax
movzbl 0x6(%r14,%rbp,1),%edx
mov    %r15d,%edi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
add    $0x1,%rbp
movzbl 0x5(%r14),%eax
cmp    %rax,%rbp
jb     11d0 <x4D_Tag_DescriptorParser+0xb0>
lea    0xe9d(%rip),%rsi
mov    %r15d,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
mov    %ebp,%ebp
movzbl (%r12,%rbp,1),%ebx
lea    0xe5b(%rip),%rsi
mov    %r15d,%edi
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
test   %ebx,%ebx
je     126d <x4D_Tag_DescriptorParser+0x14d>
add    %rbp,%r12
lea    0xe55(%rip),%rsi
mov    %r15d,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
lea    0xe2d(%rip),%r13
xor    %ebp,%ebp
nopl   (%rax)
movzbl 0x1(%r12,%rbp,1),%edx
mov    %r15d,%edi
mov    %r13,%rsi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
add    $0x1,%rbp
cmp    %rbp,%rbx
jne    1240 <x4D_Tag_DescriptorParser+0x120>
lea    0xe32(%rip),%rsi
mov    %r15d,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
lea    0xe12(%rip),%rsi
mov    %r15d,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
movzbl 0x1(%r14),%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0xffffffff,%eax
ret

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

LLVM IR (-O2):
@.str = [26 x i8] c"Descriptor_length = 0x%x\0A\00"
@.str.1 = [39 x i8] c"ISO_639_language_code = 0x%x : %c%c%c\0A\00"
@.str.2 = [26 x i8] c"event_name_length = 0x%x\0A\00"
@.str.3 = [13 x i8] c"event_name: \00"
@.str.4 = [3 x i8] c"%c\00"
@.str.5 = [2 x i8] c"\0A\00"
@.str.6 = [20 x i8] c"text_length = 0x%x\0A\00"
@.str.7 = [7 x i8] c"text: \00"
@.str.8 = [17 x i8] c"******END******\0A\00"
define i32 @x4D_Tag_DescriptorParser(i32 %0, i8* %1) {
%3 = icmp eq i8* %1, null
br i1 %3, label %75, 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 nsw i32 %13, 16
%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, 8
%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 = or i32 %19, %22
%24 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i32 %23, i32 %13, i32 %17, i32 %22)
%25 = getelementptr inbounds i8, i8* %1, i64 5
%26 = load i8, i8* %25
%27 = zext i8 %26 to i32
%28 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i32 %27)
%29 = getelementptr inbounds i8, i8* %1, i64 6
%30 = load i8, i8* %25
%31 = icmp eq i8 %30, 0
br i1 %31, label %49, label %32
32: ; preds = %4
%33 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%34 = load i8, i8* %25
%35 = icmp eq i8 %34, 0
br i1 %35, label %46, label %36
36: ; preds = %32, %36
%37 = phi i64 [ %42, %36 ], [ 0, %32 ]
%38 = getelementptr inbounds i8, i8* %29, i64 %37
%39 = load i8, i8* %38
%40 = zext i8 %39 to i32
%41 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 %40)
%42 = add nuw nsw i64 %37, 1
%43 = load i8, i8* %25
%44 = zext i8 %43 to i64
%45 = icmp ult i64 %42, %44
br i1 %45, label %36, label %46
46: ; preds = %36, %32
%47 = phi i64 [ 0, %32 ], [ %42, %36 ]
%48 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
br label %49
49: ; preds = %46, %4
%50 = phi i64 [ %47, %46 ], [ 0, %4 ]
%51 = and i64 %50, 4294967295
%52 = getelementptr inbounds i8, i8* %29, i64 %51
%53 = load i8, i8* %52
%54 = getelementptr inbounds i8, i8* %52, i64 1
%55 = zext i8 %53 to i32
%56 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32 %55)
%57 = icmp eq i8 %53, 0
br i1 %57, label %71, label %58
58: ; preds = %49
%59 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%60 = zext i8 %53 to i64
br label %61
61: ; preds = %58, %61
%62 = phi i64 [ 0, %58 ], [ %67, %61 ]
%63 = getelementptr inbounds i8, i8* %54, i64 %62
%64 = load i8, i8* %63
%65 = zext i8 %64 to i32
%66 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 %65)
%67 = add nuw nsw i64 %62, 1
%68 = icmp eq i64 %67, %60
br i1 %68, label %69, label %61
69: ; preds = %61
%70 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
br label %71
71: ; preds = %69, %49
%72 = tail call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%73 = load i8, i8* %7
%74 = zext i8 %73 to i32
br label %75
75: ; preds = %2, %71
%76 = phi i32 [ %74, %71 ], [ -1, %2 ]
ret i32 %76
}