#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 x57_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, "foreign_availability = 0x%x\n",
                     (buff[2] & 0x30) >> 5);
  Parser_TsPacketLog(type, "connection_type = 0x%x\n", buff[2] & 0x1F);
  Parser_TsPacketLog(type, "country_prefix_length = 0x%x\n",
                     (buff[3] & 0x60) >> 5);
  Parser_TsPacketLog(type, "international_area_code_length = 0x%x\n",
                     (buff[3] & 0x1C) >> 2);
  Parser_TsPacketLog(type, "operator_code_length = 0x%x\n", buff[3] & 0x03);
  Parser_TsPacketLog(type, "national_area_code_length = 0x%x\n",
                     (buff[4] & 0x70) >> 4);
  Parser_TsPacketLog(type, "core_number_length = 0x%x\n", buff[4] & 0x0F);
  data = buff;
  data += 5;
  tmplen = (buff[3] & 0x60) >> 5;
  if (tmplen != 0) {
    Parser_TsPacketLog(type, "country_prefix_char: ");
    for (i = 0; i < tmplen; i++) {
      Parser_TsPacketLog(type, "%c", data[i]);
    }
    Parser_TsPacketLog(type, "\n");
  }
  data += tmplen;
  tmplen = (buff[3] & 0x1C) >> 2;
  if (tmplen != 0) {
    Parser_TsPacketLog(type, "international_area_code_char: ");
    for (i = 0; i < tmplen; i++) {
      Parser_TsPacketLog(type, "%c", data[i]);
    }
    Parser_TsPacketLog(type, "\n");
  }
  data += tmplen;
  tmplen = buff[3] & 0x03;
  if (tmplen != 0) {
    Parser_TsPacketLog(type, "operator_code_char: ");
    for (i = 0; i < tmplen; i++) {
      Parser_TsPacketLog(type, "%c", data[i]);
    }
    Parser_TsPacketLog(type, "\n");
  }
  data += tmplen;
  tmplen = (buff[4] & 0x70) >> 4;
  if (tmplen != 0) {
    Parser_TsPacketLog(type, "national_area_code_char: ");
    for (i = 0; i < tmplen; i++) {
      Parser_TsPacketLog(type, "%c", data[i]);
    }
    Parser_TsPacketLog(type, "\n");
  }
  data += tmplen;
  tmplen = buff[4] & 0x0F;
  if (tmplen != 0) {
    Parser_TsPacketLog(type, "core_number_char: ");
    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):
<x57_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 <x57_Tag_DescriptorParser+0x3a>
movl   $0xffffffff,-0x4(%rbp)
jmp    1544 <x57_Tag_DescriptorParser+0x424>
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    $0x30,%edx
sar    $0x5,%edx
lea    0xe80(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rax
movzbl 0x2(%rax),%edx
and    $0x1f,%edx
lea    0xe81(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rax
movzbl 0x3(%rax),%edx
and    $0x60,%edx
sar    $0x5,%edx
lea    0xe7a(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rax
movzbl 0x3(%rax),%edx
and    $0x1c,%edx
sar    $0x2,%edx
lea    0xe79(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rax
movzbl 0x3(%rax),%edx
and    $0x3,%edx
lea    0xe84(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rax
movzbl 0x4(%rax),%edx
and    $0x70,%edx
sar    $0x4,%edx
lea    0xe43(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rax
movzbl 0x4(%rax),%edx
and    $0xf,%edx
lea    0xe66(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
add    $0x5,%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movzbl 0x3(%rax),%eax
and    $0x60,%eax
sar    $0x5,%eax
mov    %al,-0x15(%rbp)
movzbl -0x15(%rbp),%eax
cmp    $0x0,%eax
je     12e6 <x57_Tag_DescriptorParser+0x1c6>
mov    -0x8(%rbp),%edi
lea    0xe3e(%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    12d5 <x57_Tag_DescriptorParser+0x1b5>
mov    -0x8(%rbp),%edi
mov    -0x20(%rbp),%rax
mov    -0x14(%rbp),%ecx
movzbl (%rax,%rcx,1),%edx
lea    0xe22(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    129c <x57_Tag_DescriptorParser+0x17c>
mov    -0x8(%rbp),%edi
lea    0xe5c(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
movzbl -0x15(%rbp),%ecx
mov    -0x20(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movzbl 0x3(%rax),%eax
and    $0x1c,%eax
sar    $0x2,%eax
mov    %al,-0x15(%rbp)
movzbl -0x15(%rbp),%eax
cmp    $0x0,%eax
je     1378 <x57_Tag_DescriptorParser+0x258>
mov    -0x8(%rbp),%edi
lea    0xdc5(%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    1367 <x57_Tag_DescriptorParser+0x247>
mov    -0x8(%rbp),%edi
mov    -0x20(%rbp),%rax
mov    -0x14(%rbp),%ecx
movzbl (%rax,%rcx,1),%edx
lea    0xd90(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    132e <x57_Tag_DescriptorParser+0x20e>
mov    -0x8(%rbp),%edi
lea    0xdca(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
movzbl -0x15(%rbp),%ecx
mov    -0x20(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movzbl 0x3(%rax),%eax
and    $0x3,%eax
mov    %al,-0x15(%rbp)
movzbl -0x15(%rbp),%eax
cmp    $0x0,%eax
je     1407 <x57_Tag_DescriptorParser+0x2e7>
mov    -0x8(%rbp),%edi
lea    0xd55(%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    13f6 <x57_Tag_DescriptorParser+0x2d6>
mov    -0x8(%rbp),%edi
mov    -0x20(%rbp),%rax
mov    -0x14(%rbp),%ecx
movzbl (%rax,%rcx,1),%edx
lea    0xd01(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    13bd <x57_Tag_DescriptorParser+0x29d>
mov    -0x8(%rbp),%edi
lea    0xd3b(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
movzbl -0x15(%rbp),%ecx
mov    -0x20(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movzbl 0x4(%rax),%eax
and    $0x70,%eax
sar    $0x4,%eax
mov    %al,-0x15(%rbp)
movzbl -0x15(%rbp),%eax
cmp    $0x0,%eax
je     1499 <x57_Tag_DescriptorParser+0x379>
mov    -0x8(%rbp),%edi
lea    0xca9(%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    1488 <x57_Tag_DescriptorParser+0x368>
mov    -0x8(%rbp),%edi
mov    -0x20(%rbp),%rax
mov    -0x14(%rbp),%ecx
movzbl (%rax,%rcx,1),%edx
lea    0xc6f(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    144f <x57_Tag_DescriptorParser+0x32f>
mov    -0x8(%rbp),%edi
lea    0xca9(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
movzbl -0x15(%rbp),%ecx
mov    -0x20(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movzbl 0x4(%rax),%eax
and    $0xf,%eax
mov    %al,-0x15(%rbp)
movzbl -0x15(%rbp),%eax
cmp    $0x0,%eax
je     1528 <x57_Tag_DescriptorParser+0x408>
mov    -0x8(%rbp),%edi
lea    0xc49(%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    1517 <x57_Tag_DescriptorParser+0x3f7>
mov    -0x8(%rbp),%edi
mov    -0x20(%rbp),%rax
mov    -0x14(%rbp),%ecx
movzbl (%rax,%rcx,1),%edx
lea    0xbe0(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    14de <x57_Tag_DescriptorParser+0x3be>
mov    -0x8(%rbp),%edi
lea    0xc1a(%rip),%rsi
mov    $0x0,%al
call   1030 <Parser_TsPacketLog@plt>
mov    -0x8(%rbp),%edi
lea    0xbfa(%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):
<x57_Tag_DescriptorParser>:
test   %rsi,%rsi
je     1414 <x57_Tag_DescriptorParser+0x2f4>
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%r12d
movzbl (%rsi),%esi
call   1040 <Parser_DisplayTagInfo@plt>
movzbl 0x1(%rbx),%edx
lea    0xeb3(%rip),%rsi
mov    %r12d,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
movzbl 0x2(%rbx),%edx
shr    $0x5,%edx
and    $0x1,%edx
lea    0xeb2(%rip),%rsi
mov    %r12d,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
movzbl 0x2(%rbx),%edx
and    $0x1f,%edx
lea    0xeb7(%rip),%rsi
mov    %r12d,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
movzbl 0x3(%rbx),%edx
shr    $0x5,%edx
and    $0x3,%edx
lea    0xeb4(%rip),%rsi
mov    %r12d,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
movzbl 0x3(%rbx),%edx
shr    $0x2,%edx
and    $0x7,%edx
lea    0xeb7(%rip),%rsi
mov    %r12d,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
movzbl 0x3(%rbx),%edx
and    $0x3,%edx
lea    0xec6(%rip),%rsi
mov    %r12d,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
movzbl 0x4(%rbx),%edx
shr    $0x4,%edx
and    $0x7,%edx
lea    0xe89(%rip),%rsi
mov    %r12d,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
movzbl 0x4(%rbx),%edx
and    $0xf,%edx
lea    0xeb0(%rip),%rsi
mov    %r12d,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
lea    0x5(%rbx),%r14
movzbl 0x3(%rbx),%eax
mov    %eax,%r13d
shr    $0x5,%r13d
and    $0x3,%r13d
je     126f <x57_Tag_DescriptorParser+0x14f>
lea    0xea5(%rip),%rsi
mov    %r12d,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
lea    0xeaa(%rip),%r15
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
movzbl (%r14,%rbp,1),%edx
mov    %r12d,%edi
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
add    $0x1,%rbp
cmp    %rbp,%r13
jne    1240 <x57_Tag_DescriptorParser+0x120>
lea    0xed9(%rip),%rsi
mov    %r12d,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
mov    0x3(%rbx),%al
movzbl %r13b,%ecx
add    %rcx,%r14
mov    %eax,%ecx
shr    $0x2,%cl
and    $0x7,%cl
movzbl %cl,%r13d
je     12cf <x57_Tag_DescriptorParser+0x1af>
lea    0xe5a(%rip),%rsi
mov    %r12d,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
lea    0xe46(%rip),%r15
xor    %ebp,%ebp
xchg   %ax,%ax
movzbl (%r14,%rbp,1),%edx
mov    %r12d,%edi
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
add    $0x1,%rbp
cmp    %rbp,%r13
jne    12a0 <x57_Tag_DescriptorParser+0x180>
lea    0xe79(%rip),%rsi
mov    %r12d,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
mov    0x3(%rbx),%al
add    %r13,%r14
and    $0x3,%al
movzbl %al,%r13d
je     132c <x57_Tag_DescriptorParser+0x20c>
lea    0xe23(%rip),%rsi
mov    %r12d,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
lea    0xdf0(%rip),%r15
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movzbl (%r14,%rbp,1),%edx
mov    %r12d,%edi
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
add    $0x1,%rbp
cmp    %rbp,%r13
jne    1300 <x57_Tag_DescriptorParser+0x1e0>
lea    0xe19(%rip),%rsi
mov    %r12d,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
add    %r13,%r14
movzbl 0x4(%rbx),%r15d
mov    %r15d,%r13d
shr    $0x4,%r13d
and    $0x7,%r13d
je     1390 <x57_Tag_DescriptorParser+0x270>
lea    0xda2(%rip),%rsi
mov    %r12d,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
lea    0xd89(%rip),%r15
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
movzbl (%r14,%rbp,1),%edx
mov    %r12d,%edi
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
add    $0x1,%rbp
cmp    %rbp,%r13
jne    1360 <x57_Tag_DescriptorParser+0x240>
lea    0xdb9(%rip),%rsi
mov    %r12d,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
mov    0x4(%rbx),%r15b
and    $0xf,%r15b
je     13f0 <x57_Tag_DescriptorParser+0x2d0>
mov    %rbx,(%rsp)
add    %r13,%r14
lea    0xd75(%rip),%rsi
mov    %r12d,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
movzbl %r15b,%ebp
lea    0xd29(%rip),%r15
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
movzbl (%r14,%rbx,1),%edx
mov    %r12d,%edi
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    13c0 <x57_Tag_DescriptorParser+0x2a0>
lea    0xd59(%rip),%rsi
mov    %r12d,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
mov    (%rsp),%rbx
lea    0xd35(%rip),%rsi
mov    %r12d,%edi
xor    %eax,%eax
call   1030 <Parser_TsPacketLog@plt>
movzbl 0x1(%rbx),%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 = [29 x i8] c"foreign_availability = 0x%x\0A\00"
@.str.2 = [24 x i8] c"connection_type = 0x%x\0A\00"
@.str.3 = [30 x i8] c"country_prefix_length = 0x%x\0A\00"
@.str.4 = [39 x i8] c"international_area_code_length = 0x%x\0A\00"
@.str.5 = [29 x i8] c"operator_code_length = 0x%x\0A\00"
@.str.6 = [34 x i8] c"national_area_code_length = 0x%x\0A\00"
@.str.7 = [27 x i8] c"core_number_length = 0x%x\0A\00"
@.str.8 = [22 x i8] c"country_prefix_char: \00"
@.str.9 = [3 x i8] c"%c\00"
@.str.10 = [2 x i8] c"\0A\00"
@.str.11 = [31 x i8] c"international_area_code_char: \00"
@.str.12 = [21 x i8] c"operator_code_char: \00"
@.str.13 = [26 x i8] c"national_area_code_char: \00"
@.str.14 = [19 x i8] c"core_number_char: \00"
@.str.15 = [17 x i8] c"******END******\0A\00"
define i32 @x57_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 %274
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, 48
%30 = ashr i32 %29, 5
%31 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %24, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32 %30)
%32 = load i32, i32* %4
%33 = load i8*, i8** %5
%34 = getelementptr inbounds i8, i8* %33, i64 2
%35 = load i8, i8* %34
%36 = zext i8 %35 to i32
%37 = and i32 %36, 31
%38 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %32, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %37)
%39 = load i32, i32* %4
%40 = load i8*, i8** %5
%41 = getelementptr inbounds i8, i8* %40, i64 3
%42 = load i8, i8* %41
%43 = zext i8 %42 to i32
%44 = and i32 %43, 96
%45 = ashr i32 %44, 5
%46 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %39, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i32 %45)
%47 = load i32, i32* %4
%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 = and i32 %51, 28
%53 = ashr i32 %52, 2
%54 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %47, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0), i32 %53)
%55 = load i32, i32* %4
%56 = load i8*, i8** %5
%57 = getelementptr inbounds i8, i8* %56, i64 3
%58 = load i8, i8* %57
%59 = zext i8 %58 to i32
%60 = and i32 %59, 3
%61 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %55, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0), i32 %60)
%62 = load i32, i32* %4
%63 = load i8*, i8** %5
%64 = getelementptr inbounds i8, i8* %63, i64 4
%65 = load i8, i8* %64
%66 = zext i8 %65 to i32
%67 = and i32 %66, 112
%68 = ashr i32 %67, 4
%69 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %62, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i32 %68)
%70 = load i32, i32* %4
%71 = load i8*, i8** %5
%72 = getelementptr inbounds i8, i8* %71, i64 4
%73 = load i8, i8* %72
%74 = zext i8 %73 to i32
%75 = and i32 %74, 15
%76 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %70, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0), i32 %75)
%77 = load i8*, i8** %5
store i8* %77, i8** %8
%78 = load i8*, i8** %8
%79 = getelementptr inbounds i8, i8* %78, i64 5
store i8* %79, i8** %8
%80 = load i8*, i8** %5
%81 = getelementptr inbounds i8, i8* %80, i64 3
%82 = load i8, i8* %81
%83 = zext i8 %82 to i32
%84 = and i32 %83, 96
%85 = ashr i32 %84, 5
%86 = trunc i32 %85 to i8
store i8 %86, i8* %7
%87 = load i8, i8* %7
%88 = zext i8 %87 to i32
%89 = icmp ne i32 %88, 0
br i1 %89, label %90, label %113
90: ; preds = %12
%91 = load i32, i32* %4
%92 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %91, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0))
store i32 0, i32* %6
br label %93
93: ; preds = %107, %90
%94 = load i32, i32* %6
%95 = load i8, i8* %7
%96 = zext i8 %95 to i32
%97 = icmp ult i32 %94, %96
br i1 %97, label %98, label %110
98: ; preds = %93
%99 = load i32, i32* %4
%100 = load i8*, i8** %8
%101 = load i32, i32* %6
%102 = zext i32 %101 to i64
%103 = getelementptr inbounds i8, i8* %100, i64 %102
%104 = load i8, i8* %103
%105 = zext i8 %104 to i32
%106 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %99, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32 %105)
br label %107
107: ; preds = %98
%108 = load i32, i32* %6
%109 = add i32 %108, 1
store i32 %109, i32* %6
br label %93
110: ; preds = %93
%111 = load i32, i32* %4
%112 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %111, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %113
113: ; preds = %110, %12
%114 = load i8, i8* %7
%115 = zext i8 %114 to i32
%116 = load i8*, i8** %8
%117 = sext i32 %115 to i64
%118 = getelementptr inbounds i8, i8* %116, i64 %117
store i8* %118, i8** %8
%119 = load i8*, i8** %5
%120 = getelementptr inbounds i8, i8* %119, i64 3
%121 = load i8, i8* %120
%122 = zext i8 %121 to i32
%123 = and i32 %122, 28
%124 = ashr i32 %123, 2
%125 = trunc i32 %124 to i8
store i8 %125, i8* %7
%126 = load i8, i8* %7
%127 = zext i8 %126 to i32
%128 = icmp ne i32 %127, 0
br i1 %128, label %129, label %152
129: ; preds = %113
%130 = load i32, i32* %4
%131 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %130, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.11, i64 0, i64 0))
store i32 0, i32* %6
br label %132
132: ; preds = %146, %129
%133 = load i32, i32* %6
%134 = load i8, i8* %7
%135 = zext i8 %134 to i32
%136 = icmp ult i32 %133, %135
br i1 %136, label %137, label %149
137: ; preds = %132
%138 = load i32, i32* %4
%139 = load i8*, i8** %8
%140 = load i32, i32* %6
%141 = zext i32 %140 to i64
%142 = getelementptr inbounds i8, i8* %139, i64 %141
%143 = load i8, i8* %142
%144 = zext i8 %143 to i32
%145 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %138, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32 %144)
br label %146
146: ; preds = %137
%147 = load i32, i32* %6
%148 = add i32 %147, 1
store i32 %148, i32* %6
br label %132
149: ; preds = %132
%150 = load i32, i32* %4
%151 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %150, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %152
152: ; preds = %149, %113
%153 = load i8, i8* %7
%154 = zext i8 %153 to i32
%155 = load i8*, i8** %8
%156 = sext i32 %154 to i64
%157 = getelementptr inbounds i8, i8* %155, i64 %156
store i8* %157, i8** %8
%158 = load i8*, i8** %5
%159 = getelementptr inbounds i8, i8* %158, i64 3
%160 = load i8, i8* %159
%161 = zext i8 %160 to i32
%162 = and i32 %161, 3
%163 = trunc i32 %162 to i8
store i8 %163, i8* %7
%164 = load i8, i8* %7
%165 = zext i8 %164 to i32
%166 = icmp ne i32 %165, 0
br i1 %166, label %167, label %190
167: ; preds = %152
%168 = load i32, i32* %4
%169 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %168, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0))
store i32 0, i32* %6
br label %170
170: ; preds = %184, %167
%171 = load i32, i32* %6
%172 = load i8, i8* %7
%173 = zext i8 %172 to i32
%174 = icmp ult i32 %171, %173
br i1 %174, label %175, label %187
175: ; preds = %170
%176 = load i32, i32* %4
%177 = load i8*, i8** %8
%178 = load i32, i32* %6
%179 = zext i32 %178 to i64
%180 = getelementptr inbounds i8, i8* %177, i64 %179
%181 = load i8, i8* %180
%182 = zext i8 %181 to i32
%183 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %176, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32 %182)
br label %184
184: ; preds = %175
%185 = load i32, i32* %6
%186 = add i32 %185, 1
store i32 %186, i32* %6
br label %170
187: ; preds = %170
%188 = load i32, i32* %4
%189 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %188, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %190
190: ; preds = %187, %152
%191 = load i8, i8* %7
%192 = zext i8 %191 to i32
%193 = load i8*, i8** %8
%194 = sext i32 %192 to i64
%195 = getelementptr inbounds i8, i8* %193, i64 %194
store i8* %195, i8** %8
%196 = load i8*, i8** %5
%197 = getelementptr inbounds i8, i8* %196, i64 4
%198 = load i8, i8* %197
%199 = zext i8 %198 to i32
%200 = and i32 %199, 112
%201 = ashr i32 %200, 4
%202 = trunc i32 %201 to i8
store i8 %202, i8* %7
%203 = load i8, i8* %7
%204 = zext i8 %203 to i32
%205 = icmp ne i32 %204, 0
br i1 %205, label %206, label %229
206: ; preds = %190
%207 = load i32, i32* %4
%208 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %207, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.13, i64 0, i64 0))
store i32 0, i32* %6
br label %209
209: ; preds = %223, %206
%210 = load i32, i32* %6
%211 = load i8, i8* %7
%212 = zext i8 %211 to i32
%213 = icmp ult i32 %210, %212
br i1 %213, label %214, label %226
214: ; preds = %209
%215 = load i32, i32* %4
%216 = load i8*, i8** %8
%217 = load i32, i32* %6
%218 = zext i32 %217 to i64
%219 = getelementptr inbounds i8, i8* %216, i64 %218
%220 = load i8, i8* %219
%221 = zext i8 %220 to i32
%222 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %215, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32 %221)
br label %223
223: ; preds = %214
%224 = load i32, i32* %6
%225 = add i32 %224, 1
store i32 %225, i32* %6
br label %209
226: ; preds = %209
%227 = load i32, i32* %4
%228 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %227, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %229
229: ; preds = %226, %190
%230 = load i8, i8* %7
%231 = zext i8 %230 to i32
%232 = load i8*, i8** %8
%233 = sext i32 %231 to i64
%234 = getelementptr inbounds i8, i8* %232, i64 %233
store i8* %234, i8** %8
%235 = load i8*, i8** %5
%236 = getelementptr inbounds i8, i8* %235, i64 4
%237 = load i8, i8* %236
%238 = zext i8 %237 to i32
%239 = and i32 %238, 15
%240 = trunc i32 %239 to i8
store i8 %240, i8* %7
%241 = load i8, i8* %7
%242 = zext i8 %241 to i32
%243 = icmp ne i32 %242, 0
br i1 %243, label %244, label %267
244: ; preds = %229
%245 = load i32, i32* %4
%246 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %245, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.14, i64 0, i64 0))
store i32 0, i32* %6
br label %247
247: ; preds = %261, %244
%248 = load i32, i32* %6
%249 = load i8, i8* %7
%250 = zext i8 %249 to i32
%251 = icmp ult i32 %248, %250
br i1 %251, label %252, label %264
252: ; preds = %247
%253 = load i32, i32* %4
%254 = load i8*, i8** %8
%255 = load i32, i32* %6
%256 = zext i32 %255 to i64
%257 = getelementptr inbounds i8, i8* %254, i64 %256
%258 = load i8, i8* %257
%259 = zext i8 %258 to i32
%260 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %253, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32 %259)
br label %261
261: ; preds = %252
%262 = load i32, i32* %6
%263 = add i32 %262, 1
store i32 %263, i32* %6
br label %247
264: ; preds = %247
%265 = load i32, i32* %4
%266 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %265, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %267
267: ; preds = %264, %229
%268 = load i32, i32* %4
%269 = call i32 (i32, i8*, ...) @Parser_TsPacketLog(i32 %268, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.15, i64 0, i64 0))
%270 = load i8*, i8** %5
%271 = getelementptr inbounds i8, i8* %270, i64 1
%272 = load i8, i8* %271
%273 = zext i8 %272 to i32
store i32 %273, i32* %3
br label %274
274: ; preds = %267, %11
%275 = load i32, i32* %3
ret i32 %275
}

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