#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*/ printf(char *, char *);
int /*<<< orphan*/ sscanf(char *, char *, int *);
int /*<<< orphan*/ write(int, unsigned char *, int);
void inject_physical_address_tuple(int handle, char *data, long long target) {
  unsigned char request[12];
  int label_index;
  int field;
  int scale = 0;
  int superword = 0;
  int symbol;
  char *rewind = data;
  int sum;
  if ((*data == '[') && (*(data + 5) == ']')) {
    sscanf(data + 1, "%x", &label_index);
    sscanf(data + 6, "%x", &field);
    data += 8;
    if (*data == '*') {
      if (data[1] == '/') {
        sscanf(data + 2, "%x", &scale);
        data += 4;
      } else {
        printf("load fixup scale encoding error: %s\n", rewind);
        return;
      }
    }
    if (*data++ == ':') {
      while (symbol = *data++) {
        if (symbol == ' ')
          break;
        if (symbol == '\n')
          break;
        if (symbol == '\r')
          break;
        if (symbol == ':') {
          printf("multiple load fixups must be "
                 "in separate assembly output superwords: %s\n",
                 rewind);
          return;
        }
        superword += 4;
      }
    } else {
      printf("load fixup encoding dislocation: %s\n", rewind);
      return;
    }
    target += (superword - scale) / 24 - 1;
    label_index |= 0x00800000;
    sum = label_index + target + (target >> 24);
    sum ^= 0x00FFFFFF;
    request[0] = label_index >> 16;
    request[1] = label_index >> 8;
    request[2] = label_index;
    request[6] = target >> 40;
    request[7] = target >> 32;
    request[8] = target >> 24;
    request[9] = target >> 16;
    request[10] = target >> 8;
    request[11] = target;
    request[3] = sum >> 16;
    request[4] = sum >> 8;
    request[5] = sum;
    write(handle, request, 12);
  } else
    printf("%s only a load label index "
           "may be forwarded in binary strings\n",
           data);
}


x86 assembly (clang, -O0):
<inject_physical_address_tuple>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5b,%eax
jne    1397 <inject_physical_address_tuple+0x267>
mov    -0x10(%rbp),%rax
movsbl 0x5(%rax),%eax
cmp    $0x5d,%eax
jne    1397 <inject_physical_address_tuple+0x267>
mov    -0x10(%rbp),%rdi
add    $0x1,%rdi
lea    0xe77(%rip),%rsi
lea    -0x28(%rbp),%rdx
call   1050 <sscanf@plt>
mov    -0x10(%rbp),%rdi
add    $0x6,%rdi
lea    0xe5f(%rip),%rsi
lea    -0x2c(%rbp),%rdx
call   1050 <sscanf@plt>
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2a,%eax
jne    121a <inject_physical_address_tuple+0xea>
mov    -0x10(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x2f,%eax
jne    1200 <inject_physical_address_tuple+0xd0>
mov    -0x10(%rbp),%rdi
add    $0x2,%rdi
lea    0xe1a(%rip),%rsi
lea    -0x30(%rbp),%rdx
call   1050 <sscanf@plt>
mov    -0x10(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x10(%rbp)
jmp    1215 <inject_physical_address_tuple+0xe5>
mov    -0x40(%rbp),%rsi
lea    0xdf8(%rip),%rdi
call   1040 <printf@plt>
jmp    13a7 <inject_physical_address_tuple+0x277>
jmp    121a <inject_physical_address_tuple+0xea>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
movsbl (%rax),%eax
cmp    $0x3a,%eax
jne    12b7 <inject_physical_address_tuple+0x187>
jmp    123a <inject_physical_address_tuple+0x10a>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
movsbl (%rax),%eax
mov    %eax,-0x38(%rbp)
cmp    $0x0,%eax
je     12b2 <inject_physical_address_tuple+0x182>
cmpl   $0x20,-0x38(%rbp)
jne    1267 <inject_physical_address_tuple+0x137>
jmp    12b2 <inject_physical_address_tuple+0x182>
cmpl   $0xa,-0x38(%rbp)
jne    1276 <inject_physical_address_tuple+0x146>
jmp    12b2 <inject_physical_address_tuple+0x182>
cmpl   $0xd,-0x38(%rbp)
jne    1285 <inject_physical_address_tuple+0x155>
jmp    12b2 <inject_physical_address_tuple+0x182>
cmpl   $0x3a,-0x38(%rbp)
jne    12a4 <inject_physical_address_tuple+0x174>
mov    -0x40(%rbp),%rsi
lea    0xd8e(%rip),%rdi
call   1040 <printf@plt>
jmp    13a7 <inject_physical_address_tuple+0x277>
mov    -0x34(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x34(%rbp)
jmp    123a <inject_physical_address_tuple+0x10a>
jmp    12cc <inject_physical_address_tuple+0x19c>
mov    -0x40(%rbp),%rsi
lea    0xdaf(%rip),%rdi
call   1040 <printf@plt>
jmp    13a7 <inject_physical_address_tuple+0x277>
mov    -0x34(%rbp),%eax
sub    -0x30(%rbp),%eax
mov    $0x18,%ecx
cltd
idiv   %ecx
sub    $0x1,%eax
cltq
add    -0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x28(%rbp),%eax
or     $0x800000,%eax
mov    %eax,-0x28(%rbp)
movslq -0x28(%rbp),%rax
add    -0x18(%rbp),%rax
mov    -0x18(%rbp),%rcx
sar    $0x18,%rcx
add    %rcx,%rax
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%eax
xor    $0xffffff,%eax
mov    %eax,-0x44(%rbp)
mov    -0x28(%rbp),%eax
sar    $0x10,%eax
mov    %al,-0x24(%rbp)
mov    -0x28(%rbp),%eax
sar    $0x8,%eax
mov    %al,-0x23(%rbp)
mov    -0x28(%rbp),%eax
mov    %al,-0x22(%rbp)
mov    -0x18(%rbp),%rax
sar    $0x28,%rax
mov    %al,-0x1e(%rbp)
mov    -0x18(%rbp),%rax
sar    $0x20,%rax
mov    %al,-0x1d(%rbp)
mov    -0x18(%rbp),%rax
sar    $0x18,%rax
mov    %al,-0x1c(%rbp)
mov    -0x18(%rbp),%rax
sar    $0x10,%rax
mov    %al,-0x1b(%rbp)
mov    -0x18(%rbp),%rax
sar    $0x8,%rax
mov    %al,-0x1a(%rbp)
mov    -0x18(%rbp),%rax
mov    %al,-0x19(%rbp)
mov    -0x44(%rbp),%eax
sar    $0x10,%eax
mov    %al,-0x21(%rbp)
mov    -0x44(%rbp),%eax
sar    $0x8,%eax
mov    %al,-0x20(%rbp)
mov    -0x44(%rbp),%eax
mov    %al,-0x1f(%rbp)
mov    -0x4(%rbp),%edi
lea    -0x24(%rbp),%rsi
mov    $0xc,%edx
call   1030 <write@plt>
jmp    13a7 <inject_physical_address_tuple+0x277>
mov    -0x10(%rbp),%rsi
lea    0xcf4(%rip),%rdi
call   1040 <printf@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<inject_physical_address_tuple>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%rbx
movl   $0x0,0xc(%rsp)
cmpb   $0x5b,(%rsi)
jne    11be <inject_physical_address_tuple+0x8e>
cmpb   $0x5d,0x5(%rbx)
jne    11be <inject_physical_address_tuple+0x8e>
mov    %rdx,%r15
mov    %edi,%r14d
lea    0x1(%rbx),%rdi
lea    0xe9f(%rip),%rbp
lea    0x10(%rsp),%rdx
mov    %rbp,%rsi
call   1050 <sscanf@plt>
lea    0x6(%rbx),%rdi
lea    0x14(%rsp),%rdx
mov    %rbp,%rsi
call   1050 <sscanf@plt>
mov    0x8(%rbx),%cl
cmp    $0x2a,%cl
jne    11d7 <inject_physical_address_tuple+0xa7>
cmpb   $0x2f,0x9(%rbx)
jne    12ce <inject_physical_address_tuple+0x19e>
lea    0xa(%rbx),%rdi
lea    0xe64(%rip),%rsi
lea    0xc(%rsp),%rdx
call   1050 <sscanf@plt>
lea    0xc(%rbx),%rax
mov    0xc(%rbx),%cl
cmp    $0x3a,%cl
je     11e0 <inject_physical_address_tuple+0xb0>
lea    0xeb8(%rip),%rdi
jmp    12d5 <inject_physical_address_tuple+0x1a5>
lea    0xed1(%rip),%rdi
mov    %rbx,%rsi
add    $0x18,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <printf@plt>
lea    0x8(%rbx),%rax
cmp    $0x3a,%cl
jne    11b2 <inject_physical_address_tuple+0x82>
add    $0x1,%rax
xor    %ecx,%ecx
movabs $0x100002401,%rdx
jmp    1207 <inject_physical_address_tuple+0xd7>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x4,%ecx
add    $0x1,%rax
movzbl (%rax),%esi
cmp    $0x3a,%rsi
ja     1200 <inject_physical_address_tuple+0xd0>
bt     %rsi,%rdx
jb     1228 <inject_physical_address_tuple+0xf8>
cmp    $0x3a,%rsi
jne    1200 <inject_physical_address_tuple+0xd0>
lea    0xe05(%rip),%rdi
jmp    12d5 <inject_physical_address_tuple+0x1a5>
sub    0xc(%rsp),%ecx
movslq %ecx,%rax
imul   $0x2aaaaaab,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x22,%rax
add    %ecx,%eax
cltq
add    %r15,%rax
add    $0xffffffffffffffff,%rax
mov    0x10(%rsp),%edx
mov    %edx,%esi
or     $0x800000,%esi
mov    %esi,0x10(%rsp)
lea    (%rax,%rsi,1),%ecx
mov    %rax,%rdi
sar    $0x18,%rdi
add    %edi,%ecx
xor    $0xffffff,%ecx
shr    $0x10,%esi
mov    %sil,(%rsp)
mov    %dh,0x1(%rsp)
mov    %dl,0x2(%rsp)
mov    %rax,%rdx
shr    $0x28,%rdx
mov    %dl,0x6(%rsp)
mov    %rax,%rdx
shr    $0x20,%rdx
mov    %dl,0x7(%rsp)
mov    %dil,0x8(%rsp)
mov    %rax,%rdx
shr    $0x10,%rdx
mov    %dl,0x9(%rsp)
mov    %ah,0xa(%rsp)
mov    %al,0xb(%rsp)
mov    %ecx,%eax
shr    $0x10,%eax
mov    %al,0x3(%rsp)
mov    %ch,0x4(%rsp)
mov    %cl,0x5(%rsp)
mov    %rsp,%rsi
mov    %r14d,%edi
mov    $0xc,%edx
call   1030 <write@plt>
jmp    12dd <inject_physical_address_tuple+0x1ad>
lea    0xd2e(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%x\00"
@.str.1 = [37 x i8] c"load fixup scale encoding error: %s\0A\00"
@.str.2 = [73 x i8] c"multiple load fixups must be in separate assembly output superwords: %s\0A\00"
@.str.3 = [37 x i8] c"load fixup encoding dislocation: %s\0A\00"
@.str.4 = [63 x i8] c"%s only a load label index may be forwarded in binary strings\0A\00"
define void @inject_physical_address_tuple(i32 %0, i8* %1, i64 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i64
%7 = alloca [12 x i8]
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i8*
%14 = alloca i32
store i32 %0, i32* %4
store i8* %1, i8** %5
store i64 %2, i64* %6
store i32 0, i32* %10
store i32 0, i32* %11
%15 = load i8*, i8** %5
store i8* %15, i8** %13
%16 = load i8*, i8** %5
%17 = load i8, i8* %16
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 91
br i1 %19, label %20, label %162
20: ; preds = %3
%21 = load i8*, i8** %5
%22 = getelementptr inbounds i8, i8* %21, i64 5
%23 = load i8, i8* %22
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 93
br i1 %25, label %26, label %162
26: ; preds = %20
%27 = load i8*, i8** %5
%28 = getelementptr inbounds i8, i8* %27, i64 1
%29 = call i32 @sscanf(i8* %28, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %8)
%30 = load i8*, i8** %5
%31 = getelementptr inbounds i8, i8* %30, i64 6
%32 = call i32 @sscanf(i8* %31, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %9)
%33 = load i8*, i8** %5
%34 = getelementptr inbounds i8, i8* %33, i64 8
store i8* %34, i8** %5
%35 = load i8*, i8** %5
%36 = load i8, i8* %35
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 42
br i1 %38, label %39, label %55
39: ; preds = %26
%40 = load i8*, i8** %5
%41 = getelementptr inbounds i8, i8* %40, i64 1
%42 = load i8, i8* %41
%43 = sext i8 %42 to i32
%44 = icmp eq i32 %43, 47
br i1 %44, label %45, label %51
45: ; preds = %39
%46 = load i8*, i8** %5
%47 = getelementptr inbounds i8, i8* %46, i64 2
%48 = call i32 @sscanf(i8* %47, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %10)
%49 = load i8*, i8** %5
%50 = getelementptr inbounds i8, i8* %49, i64 4
store i8* %50, i8** %5
br label %54
51: ; preds = %39
%52 = load i8*, i8** %13
%53 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i8* %52)
br label %165
54: ; preds = %45
br label %55
55: ; preds = %54, %26
%56 = load i8*, i8** %5
%57 = getelementptr inbounds i8, i8* %56, i32 1
store i8* %57, i8** %5
%58 = load i8, i8* %56
%59 = sext i8 %58 to i32
%60 = icmp eq i32 %59, 58
br i1 %60, label %61, label %90
61: ; preds = %55
br label %62
62: ; preds = %86, %61
%63 = load i8*, i8** %5
%64 = getelementptr inbounds i8, i8* %63, i32 1
store i8* %64, i8** %5
%65 = load i8, i8* %63
%66 = sext i8 %65 to i32
store i32 %66, i32* %12
%67 = icmp ne i32 %66, 0
br i1 %67, label %68, label %89
68: ; preds = %62
%69 = load i32, i32* %12
%70 = icmp eq i32 %69, 32
br i1 %70, label %71, label %72
71: ; preds = %68
br label %89
72: ; preds = %68
%73 = load i32, i32* %12
%74 = icmp eq i32 %73, 10
br i1 %74, label %75, label %76
75: ; preds = %72
br label %89
76: ; preds = %72
%77 = load i32, i32* %12
%78 = icmp eq i32 %77, 13
br i1 %78, label %79, label %80
79: ; preds = %76
br label %89
80: ; preds = %76
%81 = load i32, i32* %12
%82 = icmp eq i32 %81, 58
br i1 %82, label %83, label %86
83: ; preds = %80
%84 = load i8*, i8** %13
%85 = call i32 @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.2, i64 0, i64 0), i8* %84)
br label %165
86: ; preds = %80
%87 = load i32, i32* %11
%88 = add nsw i32 %87, 4
store i32 %88, i32* %11
br label %62
89: ; preds = %79, %75, %71, %62
br label %93
90: ; preds = %55
%91 = load i8*, i8** %13
%92 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i8* %91)
br label %165
93: ; preds = %89
%94 = load i32, i32* %11
%95 = load i32, i32* %10
%96 = sub nsw i32 %94, %95
%97 = sdiv i32 %96, 24
%98 = sub nsw i32 %97, 1
%99 = sext i32 %98 to i64
%100 = load i64, i64* %6
%101 = add nsw i64 %100, %99
store i64 %101, i64* %6
%102 = load i32, i32* %8
%103 = or i32 %102, 8388608
store i32 %103, i32* %8
%104 = load i32, i32* %8
%105 = sext i32 %104 to i64
%106 = load i64, i64* %6
%107 = add nsw i64 %105, %106
%108 = load i64, i64* %6
%109 = ashr i64 %108, 24
%110 = add nsw i64 %107, %109
%111 = trunc i64 %110 to i32
store i32 %111, i32* %14
%112 = load i32, i32* %14
%113 = xor i32 %112, 16777215
store i32 %113, i32* %14
%114 = load i32, i32* %8
%115 = ashr i32 %114, 16
%116 = trunc i32 %115 to i8
%117 = getelementptr inbounds [12 x i8], [12 x i8]* %7, i64 0, i64 0
store i8 %116, i8* %117
%118 = load i32, i32* %8
%119 = ashr i32 %118, 8
%120 = trunc i32 %119 to i8
%121 = getelementptr inbounds [12 x i8], [12 x i8]* %7, i64 0, i64 1
store i8 %120, i8* %121
%122 = load i32, i32* %8
%123 = trunc i32 %122 to i8
%124 = getelementptr inbounds [12 x i8], [12 x i8]* %7, i64 0, i64 2
store i8 %123, i8* %124
%125 = load i64, i64* %6
%126 = ashr i64 %125, 40
%127 = trunc i64 %126 to i8
%128 = getelementptr inbounds [12 x i8], [12 x i8]* %7, i64 0, i64 6
store i8 %127, i8* %128
%129 = load i64, i64* %6
%130 = ashr i64 %129, 32
%131 = trunc i64 %130 to i8
%132 = getelementptr inbounds [12 x i8], [12 x i8]* %7, i64 0, i64 7
store i8 %131, i8* %132
%133 = load i64, i64* %6
%134 = ashr i64 %133, 24
%135 = trunc i64 %134 to i8
%136 = getelementptr inbounds [12 x i8], [12 x i8]* %7, i64 0, i64 8
store i8 %135, i8* %136
%137 = load i64, i64* %6
%138 = ashr i64 %137, 16
%139 = trunc i64 %138 to i8
%140 = getelementptr inbounds [12 x i8], [12 x i8]* %7, i64 0, i64 9
store i8 %139, i8* %140
%141 = load i64, i64* %6
%142 = ashr i64 %141, 8
%143 = trunc i64 %142 to i8
%144 = getelementptr inbounds [12 x i8], [12 x i8]* %7, i64 0, i64 10
store i8 %143, i8* %144
%145 = load i64, i64* %6
%146 = trunc i64 %145 to i8
%147 = getelementptr inbounds [12 x i8], [12 x i8]* %7, i64 0, i64 11
store i8 %146, i8* %147
%148 = load i32, i32* %14
%149 = ashr i32 %148, 16
%150 = trunc i32 %149 to i8
%151 = getelementptr inbounds [12 x i8], [12 x i8]* %7, i64 0, i64 3
store i8 %150, i8* %151
%152 = load i32, i32* %14
%153 = ashr i32 %152, 8
%154 = trunc i32 %153 to i8
%155 = getelementptr inbounds [12 x i8], [12 x i8]* %7, i64 0, i64 4
store i8 %154, i8* %155
%156 = load i32, i32* %14
%157 = trunc i32 %156 to i8
%158 = getelementptr inbounds [12 x i8], [12 x i8]* %7, i64 0, i64 5
store i8 %157, i8* %158
%159 = load i32, i32* %4
%160 = getelementptr inbounds [12 x i8], [12 x i8]* %7, i64 0, i64 0
%161 = call i32 @write(i32 %159, i8* %160, i32 12)
br label %165
162: ; preds = %20, %3
%163 = load i8*, i8** %5
%164 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.4, i64 0, i64 0), i8* %163)
br label %165
165: ; preds = %51, %83, %90, %162, %93
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"%x\00"
@.str.1 = [37 x i8] c"load fixup scale encoding error: %s\0A\00"
@.str.2 = [73 x i8] c"multiple load fixups must be in separate assembly output superwords: %s\0A\00"
@.str.3 = [37 x i8] c"load fixup encoding dislocation: %s\0A\00"
@.str.4 = [63 x i8] c"%s only a load label index may be forwarded in binary strings\0A\00"
define void @inject_physical_address_tuple(i32 %0, i8* %1, i64 %2) {
%4 = alloca [12 x i8]
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 0
%9 = bitcast i32* %5 to i8*
%10 = bitcast i32* %6 to i8*
%11 = bitcast i32* %7 to i8*
store i32 0, i32* %7
%12 = load i8, i8* %1
%13 = icmp eq i8 %12, 91
br i1 %13, label %14, label %99
14: ; preds = %3
%15 = getelementptr inbounds i8, i8* %1, i64 5
%16 = load i8, i8* %15
%17 = icmp eq i8 %16, 93
br i1 %17, label %18, label %99
18: ; preds = %14
%19 = getelementptr inbounds i8, i8* %1, i64 1
%20 = call i32 @sscanf(i8* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %5)
%21 = getelementptr inbounds i8, i8* %1, i64 6
%22 = call i32 @sscanf(i8* %21, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %6)
%23 = getelementptr inbounds i8, i8* %1, i64 8
%24 = load i8, i8* %23
%25 = icmp eq i8 %24, 42
br i1 %25, label %26, label %37
26: ; preds = %18
%27 = getelementptr inbounds i8, i8* %1, i64 9
%28 = load i8, i8* %27
%29 = icmp eq i8 %28, 47
br i1 %29, label %30, label %35
30: ; preds = %26
%31 = getelementptr inbounds i8, i8* %1, i64 10
%32 = call i32 @sscanf(i8* %31, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %7)
%33 = getelementptr inbounds i8, i8* %1, i64 12
%34 = load i8, i8* %33
br label %37
35: ; preds = %26
%36 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i8* %1)
br label %101
37: ; preds = %30, %18
%38 = phi i8 [ %34, %30 ], [ %24, %18 ]
%39 = phi i8* [ %33, %30 ], [ %23, %18 ]
%40 = icmp eq i8 %38, 58
br i1 %40, label %41, label %50
41: ; preds = %37, %48
%42 = phi i32 [ %49, %48 ], [ 0, %37 ]
%43 = phi i8* [ %44, %48 ], [ %39, %37 ]
%44 = getelementptr inbounds i8, i8* %43, i64 1
%45 = load i8, i8* %44
switch i8 %45, label %48 [
i8 32, label %52
i8 13, label %52
i8 10, label %52
i8 0, label %52
i8 58, label %46
]
46: ; preds = %41
%47 = call i32 @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.2, i64 0, i64 0), i8* %1)
br label %101
48: ; preds = %41
%49 = add nuw nsw i32 %42, 4
br label %41
50: ; preds = %37
%51 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i8* %1)
br label %101
52: ; preds = %41, %41, %41, %41
%53 = load i32, i32* %7
%54 = sub nsw i32 %42, %53
%55 = sdiv i32 %54, 24
%56 = add nsw i32 %55, -1
%57 = sext i32 %56 to i64
%58 = add nsw i64 %57, %2
%59 = load i32, i32* %5
%60 = or i32 %59, 8388608
store i32 %60, i32* %5
%61 = zext i32 %60 to i64
%62 = add i64 %58, %61
%63 = ashr i64 %58, 24
%64 = add i64 %62, %63
%65 = trunc i64 %64 to i32
%66 = xor i32 %65, 16777215
%67 = lshr i32 %60, 16
%68 = trunc i32 %67 to i8
store i8 %68, i8* %8
%69 = lshr i32 %59, 8
%70 = trunc i32 %69 to i8
%71 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 1
store i8 %70, i8* %71
%72 = trunc i32 %59 to i8
%73 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 2
store i8 %72, i8* %73
%74 = lshr i64 %58, 40
%75 = trunc i64 %74 to i8
%76 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 6
store i8 %75, i8* %76
%77 = lshr i64 %58, 32
%78 = trunc i64 %77 to i8
%79 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 7
store i8 %78, i8* %79
%80 = trunc i64 %63 to i8
%81 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 8
store i8 %80, i8* %81
%82 = lshr i64 %58, 16
%83 = trunc i64 %82 to i8
%84 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 9
store i8 %83, i8* %84
%85 = lshr i64 %58, 8
%86 = trunc i64 %85 to i8
%87 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 10
store i8 %86, i8* %87
%88 = trunc i64 %58 to i8
%89 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 11
store i8 %88, i8* %89
%90 = lshr i32 %66, 16
%91 = trunc i32 %90 to i8
%92 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 3
store i8 %91, i8* %92
%93 = lshr i32 %66, 8
%94 = trunc i32 %93 to i8
%95 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 4
store i8 %94, i8* %95
%96 = trunc i32 %66 to i8
%97 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 5
store i8 %96, i8* %97
%98 = call i32 @write(i32 %0, i8* %8, i32 12)
br label %101
99: ; preds = %14, %3
%100 = tail call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.4, i64 0, i64 0), i8* %1)
br label %101
101: ; preds = %52, %99, %50, %46, %35
ret void
}