#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*/ sprintf(char *, char *, char *);
int /*<<< orphan*/ strncat(char *, char const *, int);
void htoi(const char *ptr, char *binAddr, char value[32]) {
  sprintf(value, "%s", "");
  char ch = *ptr;
  int i;
  const char *quads[] = {"0000", "0001", "0010", "0011", "0100", "0101",
                         "0110", "0111", "1000", "1001", "1010", "1011",
                         "1100", "1101", "1110", "1111"};
  while (ch == ' ' || ch == '\t')
    ch = *(++ptr);
  for (i = 0; i < 5; i++) {
    if (ch >= '0' && ch <= '9')
      strncat(value, quads[ch - '0'], 4);
    if (ch >= 'A' && ch <= 'F')
      strncat(value, quads[10 + ch - 'A'], 4);
    if (ch >= 'a' && ch <= 'f')
      strncat(value, quads[10 + ch - 'a'], 4);
    ch = *(++ptr);
  }
  *binAddr = *value;
}


x86 assembly (clang, -O0):
<htoi>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xeae(%rip),%rsi
lea    0xeae(%rip),%rdx
call   1050 <sprintf@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x19(%rbp)
lea    -0xa0(%rbp),%rdi
lea    0x2c2b(%rip),%rsi
mov    $0x80,%edx
call   1040 <memcpy@plt>
movsbl -0x19(%rbp),%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0xa1(%rbp)
je     11a4 <htoi+0x74>
movsbl -0x19(%rbp),%eax
cmp    $0x9,%eax
sete   %al
mov    %al,-0xa1(%rbp)
mov    -0xa1(%rbp),%al
test   $0x1,%al
jne    11b7 <htoi+0x87>
jmp    11d1 <htoi+0xa1>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
mov    0x1(%rax),%al
mov    %al,-0x19(%rbp)
jmp    117f <htoi+0x4f>
movl   $0x0,-0x20(%rbp)
cmpl   $0x5,-0x20(%rbp)
jge    12b6 <htoi+0x186>
movsbl -0x19(%rbp),%eax
cmp    $0x30,%eax
jl     121b <htoi+0xeb>
movsbl -0x19(%rbp),%eax
cmp    $0x39,%eax
jg     121b <htoi+0xeb>
mov    -0x18(%rbp),%rdi
movsbl -0x19(%rbp),%eax
sub    $0x30,%eax
cltq
mov    -0xa0(%rbp,%rax,8),%rsi
ff
mov    $0x4,%edx
call   1030 <strncat@plt>
movsbl -0x19(%rbp),%eax
cmp    $0x41,%eax
jl     1257 <htoi+0x127>
movsbl -0x19(%rbp),%eax
cmp    $0x46,%eax
jg     1257 <htoi+0x127>
mov    -0x18(%rbp),%rdi
movsbl -0x19(%rbp),%eax
add    $0xa,%eax
sub    $0x41,%eax
cltq
mov    -0xa0(%rbp,%rax,8),%rsi
ff
mov    $0x4,%edx
call   1030 <strncat@plt>
movsbl -0x19(%rbp),%eax
cmp    $0x61,%eax
jl     1293 <htoi+0x163>
movsbl -0x19(%rbp),%eax
cmp    $0x66,%eax
jg     1293 <htoi+0x163>
mov    -0x18(%rbp),%rdi
movsbl -0x19(%rbp),%eax
add    $0xa,%eax
sub    $0x61,%eax
cltq
mov    -0xa0(%rbp,%rax,8),%rsi
ff
mov    $0x4,%edx
call   1030 <strncat@plt>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
mov    0x1(%rax),%al
mov    %al,-0x19(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11d8 <htoi+0xa8>
mov    -0x18(%rbp),%rax
mov    (%rax),%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<htoi>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rdx,%r15
mov    %rsi,%r14
mov    %rdi,%rbx
movb   $0x0,(%rdx)
add    $0x4,%rbx
jmp    1134 <htoi+0x24>
nopw   0x0(%rax,%rax,1)
add    $0x1,%rbx
movsbq -0x4(%rbx),%rax
cmp    $0x20,%rax
je     1130 <htoi+0x20>
cmp    $0x9,%al
je     1130 <htoi+0x20>
mov    $0xffffffa9,%r12d
lea    -0x30(%rax),%ecx
cmp    $0xa,%cl
jae    1158 <htoi+0x48>
lea    0x27(%r12),%rcx
jmp    1174 <htoi+0x64>
lea    -0x41(%rax),%ecx
cmp    $0x6,%cl
jae    1167 <htoi+0x57>
lea    0x20(%r12),%rcx
jmp    1174 <htoi+0x64>
lea    -0x61(%rax),%edx
mov    $0xffffffa9,%ecx
cmp    $0x5,%dl
ja     118e <htoi+0x7e>
add    %eax,%ecx
lea    0x2c23(%rip),%rax
mov    (%rax,%rcx,8),%rsi
mov    %r15,%rdi
mov    $0x4,%edx
call   1030 <strncat@plt>
movsbq -0x3(%rbx),%rax
lea    -0x30(%rax),%ecx
cmp    $0xa,%cl
jae    11a2 <htoi+0x92>
lea    0x27(%r12),%rcx
jmp    11be <htoi+0xae>
lea    -0x41(%rax),%ecx
cmp    $0x6,%cl
jae    11b1 <htoi+0xa1>
lea    0x20(%r12),%rcx
jmp    11be <htoi+0xae>
lea    -0x61(%rax),%edx
mov    $0xffffffa9,%ecx
cmp    $0x5,%dl
ja     11d8 <htoi+0xc8>
add    %eax,%ecx
lea    0x2bd9(%rip),%rax
mov    (%rax,%rcx,8),%rsi
mov    %r15,%rdi
mov    $0x4,%edx
call   1030 <strncat@plt>
movsbq -0x2(%rbx),%rax
lea    -0x30(%rax),%ecx
cmp    $0xa,%cl
jae    11ec <htoi+0xdc>
lea    0x27(%r12),%rcx
jmp    1208 <htoi+0xf8>
lea    -0x41(%rax),%ecx
cmp    $0x6,%cl
jae    11fb <htoi+0xeb>
lea    0x20(%r12),%rcx
jmp    1208 <htoi+0xf8>
lea    -0x61(%rax),%edx
mov    $0xffffffa9,%ecx
cmp    $0x5,%dl
ja     1222 <htoi+0x112>
add    %eax,%ecx
lea    0x2b8f(%rip),%rax
mov    (%rax,%rcx,8),%rsi
mov    %r15,%rdi
mov    $0x4,%edx
call   1030 <strncat@plt>
movsbq -0x1(%rbx),%rax
lea    -0x30(%rax),%ecx
cmp    $0xa,%cl
jae    1236 <htoi+0x126>
lea    0x27(%r12),%rcx
jmp    1252 <htoi+0x142>
lea    -0x41(%rax),%ecx
cmp    $0x6,%cl
jae    1245 <htoi+0x135>
lea    0x20(%r12),%rcx
jmp    1252 <htoi+0x142>
lea    -0x61(%rax),%edx
mov    $0xffffffa9,%ecx
cmp    $0x5,%dl
ja     126c <htoi+0x15c>
add    %eax,%ecx
lea    0x2b45(%rip),%rax
mov    (%rax,%rcx,8),%rsi
mov    %r15,%rdi
mov    $0x4,%edx
call   1030 <strncat@plt>
movsbq (%rbx),%rax
lea    -0x30(%rax),%ecx
cmp    $0xa,%cl
jae    127e <htoi+0x16e>
add    $0x27,%r12
jmp    1294 <htoi+0x184>
lea    -0x41(%rax),%ecx
cmp    $0x6,%cl
jae    128c <htoi+0x17c>
add    $0x20,%r12
jmp    1294 <htoi+0x184>
lea    -0x61(%rax),%ecx
cmp    $0x5,%cl
ja     12af <htoi+0x19f>
add    %eax,%r12d
lea    0x2b02(%rip),%rax
mov    (%rax,%r12,8),%rsi
mov    %r15,%rdi
mov    $0x4,%edx
call   1030 <strncat@plt>
mov    (%r15),%al
mov    %al,(%r14)
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [5 x i8] c"0000\00"
@.str.3 = [5 x i8] c"0001\00"
@.str.4 = [5 x i8] c"0010\00"
@.str.5 = [5 x i8] c"0011\00"
@.str.6 = [5 x i8] c"0100\00"
@.str.7 = [5 x i8] c"0101\00"
@.str.8 = [5 x i8] c"0110\00"
@.str.9 = [5 x i8] c"0111\00"
@.str.10 = [5 x i8] c"1000\00"
@.str.11 = [5 x i8] c"1001\00"
@.str.12 = [5 x i8] c"1010\00"
@.str.13 = [5 x i8] c"1011\00"
@.str.14 = [5 x i8] c"1100\00"
@.str.15 = [5 x i8] c"1101\00"
@.str.16 = [5 x i8] c"1110\00"
@.str.17 = [5 x i8] c"1111\00"
@__const.htoi.quads = [16 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i32 0, i32 0)]
define void @htoi(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8
%8 = alloca i32
%9 = alloca [16 x i8*]
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%10 = load i8*, i8** %6
%11 = call i32 @sprintf(i8* %10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%12 = load i8*, i8** %4
%13 = load i8, i8* %12
store i8 %13, i8* %7
%14 = bitcast [16 x i8*]* %9 to i8*
br label %15
15: ; preds = %25, %3
%16 = load i8, i8* %7
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 32
br i1 %18, label %23, label %19
19: ; preds = %15
%20 = load i8, i8* %7
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 9
br label %23
23: ; preds = %19, %15
%24 = phi i1 [ true, %15 ], [ %22, %19 ]
br i1 %24, label %25, label %29
25: ; preds = %23
%26 = load i8*, i8** %4
%27 = getelementptr inbounds i8, i8* %26, i32 1
store i8* %27, i8** %4
%28 = load i8, i8* %27
store i8 %28, i8* %7
br label %15
29: ; preds = %23
store i32 0, i32* %8
br label %30
30: ; preds = %90, %29
%31 = load i32, i32* %8
%32 = icmp slt i32 %31, 5
br i1 %32, label %33, label %93
33: ; preds = %30
%34 = load i8, i8* %7
%35 = sext i8 %34 to i32
%36 = icmp sge i32 %35, 48
br i1 %36, label %37, label %50
37: ; preds = %33
%38 = load i8, i8* %7
%39 = sext i8 %38 to i32
%40 = icmp sle i32 %39, 57
br i1 %40, label %41, label %50
41: ; preds = %37
%42 = load i8*, i8** %6
%43 = load i8, i8* %7
%44 = sext i8 %43 to i32
%45 = sub nsw i32 %44, 48
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [16 x i8*], [16 x i8*]* %9, i64 0, i64 %46
%48 = load i8*, i8** %47
%49 = call i32 @strncat(i8* %42, i8* %48, i32 4)
br label %50
50: ; preds = %41, %37, %33
%51 = load i8, i8* %7
%52 = sext i8 %51 to i32
%53 = icmp sge i32 %52, 65
br i1 %53, label %54, label %68
54: ; preds = %50
%55 = load i8, i8* %7
%56 = sext i8 %55 to i32
%57 = icmp sle i32 %56, 70
br i1 %57, label %58, label %68
58: ; preds = %54
%59 = load i8*, i8** %6
%60 = load i8, i8* %7
%61 = sext i8 %60 to i32
%62 = add nsw i32 10, %61
%63 = sub nsw i32 %62, 65
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [16 x i8*], [16 x i8*]* %9, i64 0, i64 %64
%66 = load i8*, i8** %65
%67 = call i32 @strncat(i8* %59, i8* %66, i32 4)
br label %68
68: ; preds = %58, %54, %50
%69 = load i8, i8* %7
%70 = sext i8 %69 to i32
%71 = icmp sge i32 %70, 97
br i1 %71, label %72, label %86
72: ; preds = %68
%73 = load i8, i8* %7
%74 = sext i8 %73 to i32
%75 = icmp sle i32 %74, 102
br i1 %75, label %76, label %86
76: ; preds = %72
%77 = load i8*, i8** %6
%78 = load i8, i8* %7
%79 = sext i8 %78 to i32
%80 = add nsw i32 10, %79
%81 = sub nsw i32 %80, 97
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [16 x i8*], [16 x i8*]* %9, i64 0, i64 %82
%84 = load i8*, i8** %83
%85 = call i32 @strncat(i8* %77, i8* %84, i32 4)
br label %86
86: ; preds = %76, %72, %68
%87 = load i8*, i8** %4
%88 = getelementptr inbounds i8, i8* %87, i32 1
store i8* %88, i8** %4
%89 = load i8, i8* %88
store i8 %89, i8* %7
br label %90
90: ; preds = %86
%91 = load i32, i32* %8
%92 = add nsw i32 %91, 1
store i32 %92, i32* %8
br label %30
93: ; preds = %30
%94 = load i8*, i8** %6
%95 = load i8, i8* %94
%96 = load i8*, i8** %5
store i8 %95, i8* %96
ret void
}

LLVM IR (-O2):
@.str.2 = [5 x i8] c"0000\00"
@.str.3 = [5 x i8] c"0001\00"
@.str.4 = [5 x i8] c"0010\00"
@.str.5 = [5 x i8] c"0011\00"
@.str.6 = [5 x i8] c"0100\00"
@.str.7 = [5 x i8] c"0101\00"
@.str.8 = [5 x i8] c"0110\00"
@.str.9 = [5 x i8] c"0111\00"
@.str.10 = [5 x i8] c"1000\00"
@.str.11 = [5 x i8] c"1001\00"
@.str.12 = [5 x i8] c"1010\00"
@.str.13 = [5 x i8] c"1011\00"
@.str.14 = [5 x i8] c"1100\00"
@.str.15 = [5 x i8] c"1101\00"
@.str.16 = [5 x i8] c"1110\00"
@.str.17 = [5 x i8] c"1111\00"
@__const.htoi.quads = [16 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i32 0, i32 0)]
define void @htoi(i8* nocapture %0, i8* nocapture writeonly %1, i8* %2) {
store i8 0, i8* %2
br label %4
4: ; preds = %7, %3
%5 = phi i8* [ %0, %3 ], [ %8, %7 ]
%6 = load i8, i8* %5
switch i8 %6, label %9 [
i8 32, label %7
i8 9, label %7
]
7: ; preds = %4, %4
%8 = getelementptr inbounds i8, i8* %5, i64 1
br label %4
9: ; preds = %4
%10 = sext i8 %6 to i64
%11 = add i8 %6, -48
%12 = icmp ult i8 %11, 10
br i1 %12, label %19, label %13
13: ; preds = %9
%14 = add i8 %6, -65
%15 = icmp ult i8 %14, 6
br i1 %15, label %19, label %16
16: ; preds = %13
%17 = add i8 %6, -97
%18 = icmp ult i8 %17, 6
br i1 %18, label %19, label %26
19: ; preds = %16, %13, %9
%20 = phi i64 [ 4294967248, %9 ], [ 4294967241, %13 ], [ 4294967209, %16 ]
%21 = add nsw i64 %20, %10
%22 = and i64 %21, 4294967295
%23 = getelementptr inbounds [16 x i8*], [16 x i8*]* @__const.htoi.quads, i64 0, i64 %22
%24 = load i8*, i8** %23
%25 = tail call i32 @strncat(i8* %2, i8* %24, i32 4)
br label %26
26: ; preds = %19, %16
%27 = getelementptr inbounds i8, i8* %5, i64 1
%28 = load i8, i8* %27
%29 = sext i8 %28 to i64
%30 = add i8 %28, -48
%31 = icmp ult i8 %30, 10
br i1 %31, label %38, label %32
32: ; preds = %26
%33 = add i8 %28, -65
%34 = icmp ult i8 %33, 6
br i1 %34, label %38, label %35
35: ; preds = %32
%36 = add i8 %28, -97
%37 = icmp ult i8 %36, 6
br i1 %37, label %38, label %45
38: ; preds = %35, %32, %26
%39 = phi i64 [ 4294967248, %26 ], [ 4294967241, %32 ], [ 4294967209, %35 ]
%40 = add nsw i64 %39, %29
%41 = and i64 %40, 4294967295
%42 = getelementptr inbounds [16 x i8*], [16 x i8*]* @__const.htoi.quads, i64 0, i64 %41
%43 = load i8*, i8** %42
%44 = tail call i32 @strncat(i8* %2, i8* %43, i32 4)
br label %45
45: ; preds = %38, %35
%46 = getelementptr inbounds i8, i8* %5, i64 2
%47 = load i8, i8* %46
%48 = sext i8 %47 to i64
%49 = add i8 %47, -48
%50 = icmp ult i8 %49, 10
br i1 %50, label %57, label %51
51: ; preds = %45
%52 = add i8 %47, -65
%53 = icmp ult i8 %52, 6
br i1 %53, label %57, label %54
54: ; preds = %51
%55 = add i8 %47, -97
%56 = icmp ult i8 %55, 6
br i1 %56, label %57, label %64
57: ; preds = %54, %51, %45
%58 = phi i64 [ 4294967248, %45 ], [ 4294967241, %51 ], [ 4294967209, %54 ]
%59 = add nsw i64 %58, %48
%60 = and i64 %59, 4294967295
%61 = getelementptr inbounds [16 x i8*], [16 x i8*]* @__const.htoi.quads, i64 0, i64 %60
%62 = load i8*, i8** %61
%63 = tail call i32 @strncat(i8* %2, i8* %62, i32 4)
br label %64
64: ; preds = %57, %54
%65 = getelementptr inbounds i8, i8* %5, i64 3
%66 = load i8, i8* %65
%67 = sext i8 %66 to i64
%68 = add i8 %66, -48
%69 = icmp ult i8 %68, 10
br i1 %69, label %76, label %70
70: ; preds = %64
%71 = add i8 %66, -65
%72 = icmp ult i8 %71, 6
br i1 %72, label %76, label %73
73: ; preds = %70
%74 = add i8 %66, -97
%75 = icmp ult i8 %74, 6
br i1 %75, label %76, label %83
76: ; preds = %73, %70, %64
%77 = phi i64 [ 4294967248, %64 ], [ 4294967241, %70 ], [ 4294967209, %73 ]
%78 = add nsw i64 %77, %67
%79 = and i64 %78, 4294967295
%80 = getelementptr inbounds [16 x i8*], [16 x i8*]* @__const.htoi.quads, i64 0, i64 %79
%81 = load i8*, i8** %80
%82 = tail call i32 @strncat(i8* %2, i8* %81, i32 4)
br label %83
83: ; preds = %76, %73
%84 = getelementptr inbounds i8, i8* %5, i64 4
%85 = load i8, i8* %84
%86 = sext i8 %85 to i64
%87 = add i8 %85, -48
%88 = icmp ult i8 %87, 10
br i1 %88, label %95, label %89
89: ; preds = %83
%90 = add i8 %85, -65
%91 = icmp ult i8 %90, 6
br i1 %91, label %95, label %92
92: ; preds = %89
%93 = add i8 %85, -97
%94 = icmp ult i8 %93, 6
br i1 %94, label %95, label %102
95: ; preds = %92, %89, %83
%96 = phi i64 [ 4294967248, %83 ], [ 4294967241, %89 ], [ 4294967209, %92 ]
%97 = add nsw i64 %96, %86
%98 = and i64 %97, 4294967295
%99 = getelementptr inbounds [16 x i8*], [16 x i8*]* @__const.htoi.quads, i64 0, i64 %98
%100 = load i8*, i8** %99
%101 = tail call i32 @strncat(i8* %2, i8* %100, i32 4)
br label %102
102: ; preds = %95, %92
%103 = load i8, i8* %2
store i8 %103, i8* %1
ret void
}