#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 */
scalar_t__ GetField(int, unsigned char *, int *, int *);
int /*<<< orphan*/ HtDebugString(char *, int, char *, int, unsigned char *,
                                 int);
int /*<<< orphan*/ HtLog(char *, int, char *, int, char *, ...);
int SetPacket(unsigned char *, int);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ sprintf(char *, char *, unsigned char);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
void Print8583Packet(unsigned char *msg, unsigned char *hexBuff, int BuffLen) {
  int Ret, i, j;
  int FieldLen, Fieldtype;
  unsigned char tmpBuff[2048];
  char str[2048];
  char sstr[10];
  Ret = SetPacket(&hexBuff[13], BuffLen - 13);
  if (Ret != 0) {
    HtLog("packet.log", 1,
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/longzl1991/online/refs/heads/master/src/"
          "Comm/SL8583.c",
          370, "%s packet err\n", msg);
    return;
  }
  HtDebugString("packet.log", 3,
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/longzl1991/online/refs/"
                "heads/master/src/Comm/SL8583.c",
                373, hexBuff, BuffLen);
  HtLog("packet.log", 1,
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/longzl1991/online/refs/heads/master/src/"
        "Comm/SL8583.c",
        374, "\n%s\nHead  ", msg);
  memset(str, 0, 2048);
  for (i = 0; i < 13; i++) {
    sprintf(sstr, "%0.2X ", hexBuff[i]);
    strcpy(str + strlen(str), sstr);
  }
  HtLog("packet.log", 1,
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/longzl1991/online/refs/heads/master/src/"
        "Comm/SL8583.c",
        381, "%s", str);
  memset(str, 0, 2048);
  for (i = 0; i <= 64; i++) {
    FieldLen = 2048;
    if (GetField(i, tmpBuff, &FieldLen, &Fieldtype) >= 0) {
      if (FieldLen == 0)
        sprintf(str, "F%0.2d  ", i);
      else {
        sprintf(str, "F%0.2d     ", i);
        for (j = 0; j < FieldLen; j++)
          sprintf(str + strlen(str), "%0.2X ", tmpBuff[j]);
      }
      HtLog("packet.log", 1,
            "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
            "2022-01-22/02-19-57/repos/longzl1991/online/refs/heads/master/src/"
            "Comm/SL8583.c",
            397, "%s", str);
    }
  }
}


x86 assembly (clang, -O0):
<Print8583Packet>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1050,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
add    $0xd,%rdi
mov    -0x14(%rbp),%esi
sub    $0xd,%esi
call   1080 <SetPacket@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
je     11e5 <Print8583Packet+0x65>
mov    -0x8(%rbp),%r9
lea    0xe3f(%rip),%rdi
mov    $0x1,%esi
lea    0xe3e(%rip),%rdx
mov    $0x172,%ecx
lea    0xec2(%rip),%r8
mov    $0x0,%al
call   1050 <HtLog@plt>
jmp    1415 <Print8583Packet+0x295>
mov    -0x10(%rbp),%r8
mov    -0x14(%rbp),%r9d
lea    0xe0c(%rip),%rdi
mov    $0x3,%esi
lea    0xe0b(%rip),%rdx
mov    $0x175,%ecx
call   1060 <HtDebugString@plt>
mov    -0x8(%rbp),%r9
lea    0xdeb(%rip),%rdi
mov    $0x1,%esi
lea    0xdea(%rip),%rdx
mov    $0x176,%ecx
lea    0xe7d(%rip),%r8
mov    $0x0,%al
call   1050 <HtLog@plt>
lea    -0x1030(%rbp),%rdi
xor    %esi,%esi
mov    $0x800,%edx
call   1070 <memset@plt>
movl   $0x0,-0x1c(%rbp)
cmpl   $0xd,-0x1c(%rbp)
jge    12b7 <Print8583Packet+0x137>
lea    -0x103a(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
lea    0xe47(%rip),%rsi
movzbl (%rax,%rcx,1),%edx
call   10a0 <sprintf@plt>
lea    -0x1030(%rbp),%rax
mov    %rax,-0x1048(%rbp)
lea    -0x1030(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x1048(%rbp),%rdi
cltq
add    %rax,%rdi
lea    -0x103a(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    124e <Print8583Packet+0xce>
lea    -0x1030(%rbp),%r9
lea    0xd3b(%rip),%rdi
mov    $0x1,%esi
lea    0xd3a(%rip),%rdx
mov    $0x17d,%ecx
lea    0xddf(%rip),%r8
mov    $0x0,%al
call   1050 <HtLog@plt>
lea    -0x1030(%rbp),%rdi
xor    %esi,%esi
mov    $0x800,%edx
call   1070 <memset@plt>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x40,-0x1c(%rbp)
jg     1415 <Print8583Packet+0x295>
movl   $0x800,-0x24(%rbp)
mov    -0x1c(%rbp),%edi
lea    -0x830(%rbp),%rsi
lea    -0x24(%rbp),%rdx
lea    -0x28(%rbp),%rcx
call   1090 <GetField@plt>
cmp    $0x0,%rax
jl     1402 <Print8583Packet+0x282>
cmpl   $0x0,-0x24(%rbp)
jne    1358 <Print8583Packet+0x1d8>
lea    -0x1030(%rbp),%rdi
mov    -0x1c(%rbp),%eax
lea    0xd74(%rip),%rsi
movzbl %al,%edx
call   10a0 <sprintf@plt>
jmp    13d5 <Print8583Packet+0x255>
lea    -0x1030(%rbp),%rdi
mov    -0x1c(%rbp),%eax
lea    0xd5f(%rip),%rsi
movzbl %al,%edx
call   10a0 <sprintf@plt>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    13d0 <Print8583Packet+0x250>
lea    -0x1030(%rbp),%rax
mov    %rax,-0x1050(%rbp)
lea    -0x1030(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x1050(%rbp),%rdi
cltq
add    %rax,%rdi
movslq -0x20(%rbp),%rax
lea    0xd00(%rip),%rsi
movzbl -0x830(%rbp,%rax,1),%edx
ff
call   10a0 <sprintf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1378 <Print8583Packet+0x1f8>
jmp    13d5 <Print8583Packet+0x255>
lea    -0x1030(%rbp),%r9
lea    0xc1d(%rip),%rdi
mov    $0x1,%esi
lea    0xc1c(%rip),%rdx
mov    $0x18d,%ecx
lea    0xcc1(%rip),%r8
mov    $0x0,%al
call   1050 <HtLog@plt>
jmp    1407 <Print8583Packet+0x287>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12fe <Print8583Packet+0x17e>
add    $0x1050,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Print8583Packet>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1028,%rsp
mov    %edx,%ebp
mov    %rsi,%r13
mov    %rdi,%r14
lea    0xd(%rsi),%rdi
lea    -0xd(%rbp),%esi
call   1080 <SetPacket@plt>
test   %eax,%eax
je     11e3 <Print8583Packet+0x63>
lea    0xe50(%rip),%rdi
lea    0xe54(%rip),%rdx
lea    0xedd(%rip),%r8
mov    $0x1,%esi
mov    $0x172,%ecx
mov    %r14,%r9
xor    %eax,%eax
add    $0x1028,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <HtLog@plt>
lea    0xe16(%rip),%r15
lea    0xe1a(%rip),%r12
mov    %r15,%rdi
mov    $0x3,%esi
mov    %r12,%rdx
mov    $0x175,%ecx
mov    %r13,%r8
mov    %ebp,%r9d
call   1060 <HtDebugString@plt>
lea    0xe97(%rip),%r8
xor    %ebx,%ebx
mov    %r15,%rdi
mov    $0x1,%esi
mov    %r12,%rdx
mov    $0x176,%ecx
mov    %r14,%r9
xor    %eax,%eax
call   1050 <HtLog@plt>
lea    0x20(%rsp),%r14
mov    %r14,%rdi
xor    %esi,%esi
mov    $0x800,%edx
call   1070 <memset@plt>
lea    0xe6b(%rip),%r15
lea    0x16(%rsp),%rbp
nop
movzbl 0x0(%r13,%rbx,1),%edx
mov    %rbp,%rdi
mov    %r15,%rsi
call   10a0 <sprintf@plt>
mov    %r14,%rdi
call   1040 <strlen@plt>
cltq
lea    (%rsp,%rax,1),%rdi
add    $0x20,%rdi
mov    %rbp,%rsi
call   1030 <strcpy@plt>
add    $0x1,%rbx
cmp    $0xd,%rbx
jne    1250 <Print8583Packet+0xd0>
lea    0xd74(%rip),%rdi
lea    0xd78(%rip),%rdx
lea    0xe22(%rip),%r8
lea    0x20(%rsp),%rbx
mov    $0x1,%esi
mov    $0x17d,%ecx
mov    %rbx,%r9
xor    %eax,%eax
call   1050 <HtLog@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x800,%edx
call   1070 <memset@plt>
lea    0xc(%rsp),%rbp
lea    0x10(%rsp),%r14
lea    0xde2(%rip),%r15
xor    %r12d,%r12d
jmp    132a <Print8583Packet+0x1aa>
nopl   0x0(%rax,%rax,1)
movzbl %r12b,%edx
mov    %rbx,%rdi
lea    0xdd1(%rip),%rsi
call   10a0 <sprintf@plt>
lea    0xd06(%rip),%rdi
mov    $0x1,%esi
lea    0xd05(%rip),%rdx
mov    $0x18d,%ecx
lea    0xdaa(%rip),%r8
mov    %rbx,%r9
xor    %eax,%eax
call   1050 <HtLog@plt>
add    $0x1,%r12d
cmp    $0x41,%r12d
je     13b6 <Print8583Packet+0x236>
movl   $0x800,0xc(%rsp)
mov    %r12d,%edi
lea    0x820(%rsp),%rsi
mov    %rbp,%rdx
mov    %r14,%rcx
call   1090 <GetField@plt>
test   %rax,%rax
js     131c <Print8583Packet+0x19c>
cmpl   $0x0,0xc(%rsp)
je     12e0 <Print8583Packet+0x160>
movzbl %r12b,%edx
mov    %rbx,%rdi
lea    0xd66(%rip),%rsi
call   10a0 <sprintf@plt>
cmpl   $0x0,0xc(%rsp)
jle    12f3 <Print8583Packet+0x173>
xor    %r13d,%r13d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1040 <strlen@plt>
cltq
lea    (%rsp,%rax,1),%rdi
add    $0x20,%rdi
movzbl 0x820(%rsp,%r13,1),%edx
mov    %r15,%rsi
call   10a0 <sprintf@plt>
add    $0x1,%r13
movslq 0xc(%rsp),%rax
cmp    %rax,%r13
jl     1380 <Print8583Packet+0x200>
jmp    12f3 <Print8583Packet+0x173>
add    $0x1028,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [11 x i8] c"packet.log\00"
@.str.1 = [144 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/longzl1991/online/refs/heads/master/src/Comm/SL8583.c\00"
@.str.2 = [15 x i8] c"%s packet err\0A\00"
@.str.3 = [11 x i8] c"\0A%s\0AHead \00"
@.str.4 = [7 x i8] c"%0.2X \00"
@.str.5 = [3 x i8] c"%s\00"
@.str.6 = [9 x i8] c"F%0.2d \00"
@.str.7 = [12 x i8] c"F%0.2d \00"
define void @Print8583Packet(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca [2048 x i8]
%13 = alloca [2048 x i8]
%14 = alloca [10 x i8]
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%15 = load i8*, i8** %5
%16 = getelementptr inbounds i8, i8* %15, i64 13
%17 = load i32, i32* %6
%18 = sub nsw i32 %17, 13
%19 = call i32 @SetPacket(i8* %16, i32 %18)
store i32 %19, i32* %7
%20 = load i32, i32* %7
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %3
%23 = load i8*, i8** %4
%24 = call i32 (i8*, i32, i8*, i32, i8*, ...) @HtLog(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([144 x i8], [144 x i8]* @.str.1, i64 0, i64 0), i32 370, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* %23)
br label %106
25: ; preds = %3
%26 = load i8*, i8** %5
%27 = load i32, i32* %6
%28 = call i32 @HtDebugString(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 3, i8* getelementptr inbounds ([144 x i8], [144 x i8]* @.str.1, i64 0, i64 0), i32 373, i8* %26, i32 %27)
%29 = load i8*, i8** %4
%30 = call i32 (i8*, i32, i8*, i32, i8*, ...) @HtLog(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([144 x i8], [144 x i8]* @.str.1, i64 0, i64 0), i32 374, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* %29)
%31 = getelementptr inbounds [2048 x i8], [2048 x i8]* %13, i64 0, i64 0
%32 = call i32 @memset(i8* %31, i32 0, i32 2048)
store i32 0, i32* %8
br label %33
33: ; preds = %51, %25
%34 = load i32, i32* %8
%35 = icmp slt i32 %34, 13
br i1 %35, label %36, label %54
36: ; preds = %33
%37 = getelementptr inbounds [10 x i8], [10 x i8]* %14, i64 0, i64 0
%38 = load i8*, i8** %5
%39 = load i32, i32* %8
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, i8* %38, i64 %40
%42 = load i8, i8* %41
%43 = call i32 @sprintf(i8* %37, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8 zeroext %42)
%44 = getelementptr inbounds [2048 x i8], [2048 x i8]* %13, i64 0, i64 0
%45 = getelementptr inbounds [2048 x i8], [2048 x i8]* %13, i64 0, i64 0
%46 = call i32 @strlen(i8* %45)
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, i8* %44, i64 %47
%49 = getelementptr inbounds [10 x i8], [10 x i8]* %14, i64 0, i64 0
%50 = call i32 @strcpy(i8* %48, i8* %49)
br label %51
51: ; preds = %36
%52 = load i32, i32* %8
%53 = add nsw i32 %52, 1
store i32 %53, i32* %8
br label %33
54: ; preds = %33
%55 = getelementptr inbounds [2048 x i8], [2048 x i8]* %13, i64 0, i64 0
%56 = call i32 (i8*, i32, i8*, i32, i8*, ...) @HtLog(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([144 x i8], [144 x i8]* @.str.1, i64 0, i64 0), i32 381, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %55)
%57 = getelementptr inbounds [2048 x i8], [2048 x i8]* %13, i64 0, i64 0
%58 = call i32 @memset(i8* %57, i32 0, i32 2048)
store i32 0, i32* %8
br label %59
59: ; preds = %103, %54
%60 = load i32, i32* %8
%61 = icmp sle i32 %60, 64
br i1 %61, label %62, label %106
62: ; preds = %59
store i32 2048, i32* %10
%63 = load i32, i32* %8
%64 = getelementptr inbounds [2048 x i8], [2048 x i8]* %12, i64 0, i64 0
%65 = call i64 @GetField(i32 %63, i8* %64, i32* %10, i32* %11)
%66 = icmp sge i64 %65, 0
br i1 %66, label %67, label %102
67: ; preds = %62
%68 = load i32, i32* %10
%69 = icmp eq i32 %68, 0
br i1 %69, label %70, label %75
70: ; preds = %67
%71 = getelementptr inbounds [2048 x i8], [2048 x i8]* %13, i64 0, i64 0
%72 = load i32, i32* %8
%73 = trunc i32 %72 to i8
%74 = call i32 @sprintf(i8* %71, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i8 zeroext %73)
br label %99
75: ; preds = %67
%76 = getelementptr inbounds [2048 x i8], [2048 x i8]* %13, i64 0, i64 0
%77 = load i32, i32* %8
%78 = trunc i32 %77 to i8
%79 = call i32 @sprintf(i8* %76, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i8 zeroext %78)
store i32 0, i32* %9
br label %80
80: ; preds = %95, %75
%81 = load i32, i32* %9
%82 = load i32, i32* %10
%83 = icmp slt i32 %81, %82
br i1 %83, label %84, label %98
84: ; preds = %80
%85 = getelementptr inbounds [2048 x i8], [2048 x i8]* %13, i64 0, i64 0
%86 = getelementptr inbounds [2048 x i8], [2048 x i8]* %13, i64 0, i64 0
%87 = call i32 @strlen(i8* %86)
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i8, i8* %85, i64 %88
%90 = load i32, i32* %9
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [2048 x i8], [2048 x i8]* %12, i64 0, i64 %91
%93 = load i8, i8* %92
%94 = call i32 @sprintf(i8* %89, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8 zeroext %93)
br label %95
95: ; preds = %84
%96 = load i32, i32* %9
%97 = add nsw i32 %96, 1
store i32 %97, i32* %9
br label %80
98: ; preds = %80
br label %99
99: ; preds = %98, %70
%100 = getelementptr inbounds [2048 x i8], [2048 x i8]* %13, i64 0, i64 0
%101 = call i32 (i8*, i32, i8*, i32, i8*, ...) @HtLog(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([144 x i8], [144 x i8]* @.str.1, i64 0, i64 0), i32 397, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %100)
br label %102
102: ; preds = %99, %62
br label %103
103: ; preds = %102
%104 = load i32, i32* %8
%105 = add nsw i32 %104, 1
store i32 %105, i32* %8
br label %59
106: ; preds = %22, %59
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"packet.log\00"
@.str.1 = [144 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/longzl1991/online/refs/heads/master/src/Comm/SL8583.c\00"
@.str.2 = [15 x i8] c"%s packet err\0A\00"
@.str.3 = [11 x i8] c"\0A%s\0AHead \00"
@.str.4 = [7 x i8] c"%0.2X \00"
@.str.5 = [3 x i8] c"%s\00"
@.str.6 = [9 x i8] c"F%0.2d \00"
@.str.7 = [12 x i8] c"F%0.2d \00"
define void @Print8583Packet(i8* %0, i8* %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca [2048 x i8]
%7 = alloca [2048 x i8]
%8 = alloca [10 x i8]
%9 = bitcast i32* %4 to i8*
%10 = bitcast i32* %5 to i8*
%11 = getelementptr inbounds [2048 x i8], [2048 x i8]* %6, i64 0, i64 0
%12 = getelementptr inbounds [2048 x i8], [2048 x i8]* %7, i64 0, i64 0
%13 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 0
%14 = getelementptr inbounds i8, i8* %1, i64 13
%15 = add nsw i32 %2, -13
%16 = tail call i32 @SetPacket(i8* %14, i32 %15)
%17 = icmp eq i32 %16, 0
br i1 %17, label %20, label %18
18: ; preds = %3
%19 = tail call i32 (i8*, i32, i8*, i32, i8*, ...) @HtLog(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([144 x i8], [144 x i8]* @.str.1, i64 0, i64 0), i32 370, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* %0)
br label %69
20: ; preds = %3
%21 = tail call i32 @HtDebugString(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 3, i8* getelementptr inbounds ([144 x i8], [144 x i8]* @.str.1, i64 0, i64 0), i32 373, i8* %1, i32 %2)
%22 = tail call i32 (i8*, i32, i8*, i32, i8*, ...) @HtLog(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([144 x i8], [144 x i8]* @.str.1, i64 0, i64 0), i32 374, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* %0)
%23 = call i32 @memset(i8* %12, i32 0, i32 2048)
br label %24
24: ; preds = %20, %24
%25 = phi i64 [ 0, %20 ], [ %33, %24 ]
%26 = getelementptr inbounds i8, i8* %1, i64 %25
%27 = load i8, i8* %26
%28 = call i32 @sprintf(i8* %13, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8 zeroext %27)
%29 = call i32 @strlen(i8* %12)
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [2048 x i8], [2048 x i8]* %7, i64 0, i64 %30
%32 = call i32 @strcpy(i8* %31, i8* %13)
%33 = add nuw nsw i64 %25, 1
%34 = icmp eq i64 %33, 13
br i1 %34, label %35, label %24
35: ; preds = %24
%36 = call i32 (i8*, i32, i8*, i32, i8*, ...) @HtLog(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([144 x i8], [144 x i8]* @.str.1, i64 0, i64 0), i32 381, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %12)
%37 = call i32 @memset(i8* %12, i32 0, i32 2048)
br label %38
38: ; preds = %35, %66
%39 = phi i32 [ 0, %35 ], [ %67, %66 ]
store i32 2048, i32* %4
%40 = call i64 @GetField(i32 %39, i8* %11, i32* %4, i32* %5)
%41 = icmp sgt i64 %40, -1
br i1 %41, label %42, label %66
42: ; preds = %38
%43 = load i32, i32* %4
%44 = icmp eq i32 %43, 0
%45 = trunc i32 %39 to i8
br i1 %44, label %46, label %48
46: ; preds = %42
%47 = call i32 @sprintf(i8* %12, i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i8 zeroext %45)
br label %64
48: ; preds = %42
%49 = call i32 @sprintf(i8* %12, i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i8 zeroext %45)
%50 = load i32, i32* %4
%51 = icmp sgt i32 %50, 0
br i1 %51, label %52, label %64
52: ; preds = %48, %52
%53 = phi i64 [ %60, %52 ], [ 0, %48 ]
%54 = call i32 @strlen(i8* %12)
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [2048 x i8], [2048 x i8]* %7, i64 0, i64 %55
%57 = getelementptr inbounds [2048 x i8], [2048 x i8]* %6, i64 0, i64 %53
%58 = load i8, i8* %57
%59 = call i32 @sprintf(i8* %56, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8 zeroext %58)
%60 = add nuw nsw i64 %53, 1
%61 = load i32, i32* %4
%62 = sext i32 %61 to i64
%63 = icmp slt i64 %60, %62
br i1 %63, label %52, label %64
64: ; preds = %52, %48, %46
%65 = call i32 (i8*, i32, i8*, i32, i8*, ...) @HtLog(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([144 x i8], [144 x i8]* @.str.1, i64 0, i64 0), i32 397, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %12)
br label %66
66: ; preds = %38, %64
%67 = add nuw nsw i32 %39, 1
%68 = icmp eq i32 %67, 65
br i1 %68, label %69, label %38
69: ; preds = %66, %18
ret void
}