int t2ev_store_single(unsigned opcode, unsigned address,
                      struct arm_instruction *instruction, char *cp) {
  unsigned op = (opcode >> 20) & 0xf;
  char *size = "";
  char *suffix = "";
  char *p1 = "";
  char *p2 = "]";
  unsigned immed;
  unsigned rn = (opcode >> 16) & 0x0f;
  unsigned rt = (opcode >> 12) & 0x0f;
  if (rn == 0xf)
    return -1;
  if (opcode & 0x0800)
    op |= 1;
  switch (op) {
  case 0x8:
  case 0x9:
    size = "B";
    goto imm12;
  case 0x1:
    size = "B";
    goto imm8;
  case 0x0:
    size = "B";
    break;
  case 0xa:
  case 0xb:
    size = "H";
    goto imm12;
  case 0x3:
    size = "H";
    goto imm8;
  case 0x2:
    size = "H";
    break;
  case 0xc:
  case 0xd:
    goto imm12;
  case 0x5:
    goto imm8;
  case 0x4:
    break;
  default:
    return -1;
  }
  sprintf(cp, "STR%s.W\tr%d, [r%d, r%d, LSL #%d]", size, rt, rn,
          (int)opcode & 0x0f, (int)(opcode >> 4) & 0x03);
  return 0;
imm12:
  immed = opcode & 0x0fff;
  sprintf(cp, "STR%s.W\tr%d, [r%d, #%u]\t; %#3.3x", size, rt, rn, immed, immed);
  return 0;
imm8:
  immed = opcode & 0x00ff;
  switch (opcode & 0x700) {
  case 0x600:
    suffix = "T";
    break;
  case 0x000:
  case 0x200:
    return -1;
  }
  if (opcode & 0x100) {
    if (opcode & 0x400)
      p2 = "]!";
    else {
      p1 = "]";
      p2 = "";
    }
  }
  sprintf(cp, "STR%s%s\tr%d, [r%d%s, #%s%u%s\t; %#2.2x", size, suffix, rt, rn,
          p1, (opcode & 0x200) ? "" : "-", immed, p2, immed);
  return 0;
}


x86 assembly (clang, -O0):
<t2ev_store_single>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0x90,%rsp
mov    %edi,-0x18(%rbp)
mov    %esi,-0x1c(%rbp)
mov    %rdx,-0x28(%rbp)
mov    %rcx,-0x30(%rbp)
mov    -0x18(%rbp),%eax
shr    $0x14,%eax
and    $0xf,%eax
mov    %eax,-0x34(%rbp)
lea    0xf43(%rip),%rax
mov    %rax,-0x40(%rbp)
lea    0xf38(%rip),%rax
mov    %rax,-0x48(%rbp)
lea    0xf2d(%rip),%rax
mov    %rax,-0x50(%rbp)
lea    0xefb(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    -0x18(%rbp),%eax
shr    $0x10,%eax
and    $0xf,%eax
mov    %eax,-0x60(%rbp)
mov    -0x18(%rbp),%eax
shr    $0xc,%eax
and    $0xf,%eax
mov    %eax,-0x64(%rbp)
cmpl   $0xf,-0x60(%rbp)
jne    1192 <t2ev_store_single+0x82>
movl   $0xffffffff,-0x14(%rbp)
jmp    13e0 <t2ev_store_single+0x2d0>
mov    -0x18(%rbp),%eax
and    $0x800,%eax
cmp    $0x0,%eax
je     11ac <t2ev_store_single+0x9c>
mov    -0x34(%rbp),%eax
or     $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    %rax,-0x70(%rbp)
sub    $0xd,%rax
ja     1240 <t2ev_store_single+0x130>
mov    -0x70(%rbp),%rax
lea    0xe38(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xe60(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    1289 <t2ev_store_single+0x179>
lea    0xe50(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    12c7 <t2ev_store_single+0x1b7>
lea    0xe40(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    124c <t2ev_store_single+0x13c>
lea    0xe32(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    1289 <t2ev_store_single+0x179>
lea    0xe22(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    12c7 <t2ev_store_single+0x1b7>
lea    0xe12(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    124c <t2ev_store_single+0x13c>
jmp    1289 <t2ev_store_single+0x179>
jmp    12c7 <t2ev_store_single+0x1b7>
jmp    124c <t2ev_store_single+0x13c>
movl   $0xffffffff,-0x14(%rbp)
jmp    13e0 <t2ev_store_single+0x2d0>
mov    -0x30(%rbp),%rdi
mov    -0x40(%rbp),%rdx
mov    -0x64(%rbp),%ecx
mov    -0x60(%rbp),%r8d
mov    -0x18(%rbp),%r9d
and    $0xf,%r9d
mov    -0x18(%rbp),%eax
shr    $0x4,%eax
and    $0x3,%eax
lea    0xdc9(%rip),%rsi
mov    %eax,(%rsp)
mov    $0x0,%al
call   1030 <sprintf@plt>
movl   $0x0,-0x14(%rbp)
jmp    13e0 <t2ev_store_single+0x2d0>
mov    -0x18(%rbp),%eax
and    $0xfff,%eax
mov    %eax,-0x5c(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x40(%rbp),%rdx
mov    -0x64(%rbp),%ecx
mov    -0x60(%rbp),%r8d
mov    -0x5c(%rbp),%r9d
mov    -0x5c(%rbp),%eax
lea    0xdac(%rip),%rsi
mov    %eax,(%rsp)
mov    $0x0,%al
call   1030 <sprintf@plt>
movl   $0x0,-0x14(%rbp)
jmp    13e0 <t2ev_store_single+0x2d0>
movzbl -0x18(%rbp),%eax
mov    %eax,-0x5c(%rbp)
mov    -0x18(%rbp),%eax
and    $0x700,%eax
mov    %eax,-0x74(%rbp)
je     131a <t2ev_store_single+0x20a>
jmp    12e4 <t2ev_store_single+0x1d4>
mov    -0x74(%rbp),%eax
sub    $0x200,%eax
je     131a <t2ev_store_single+0x20a>
jmp    12f7 <t2ev_store_single+0x1e7>
mov    -0x74(%rbp),%eax
sub    $0x600,%eax
jne    1326 <t2ev_store_single+0x216>
jmp    130a <t2ev_store_single+0x1fa>
lea    0xd6d(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    1326 <t2ev_store_single+0x216>
movl   $0xffffffff,-0x14(%rbp)
jmp    13e0 <t2ev_store_single+0x2d0>
mov    -0x18(%rbp),%eax
and    $0x100,%eax
cmp    $0x0,%eax
je     1373 <t2ev_store_single+0x263>
mov    -0x18(%rbp),%eax
and    $0x400,%eax
cmp    $0x0,%eax
je     1358 <t2ev_store_single+0x248>
lea    0xd31(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    136e <t2ev_store_single+0x25e>
lea    0xcfc(%rip),%rax
mov    %rax,-0x50(%rbp)
lea    0xd18(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    1373 <t2ev_store_single+0x263>
mov    -0x30(%rbp),%rdi
mov    -0x40(%rbp),%rdx
mov    -0x48(%rbp),%rcx
mov    -0x64(%rbp),%r8d
mov    -0x60(%rbp),%r9d
mov    -0x50(%rbp),%r14
mov    -0x18(%rbp),%esi
and    $0x200,%esi
lea    0xd0e(%rip),%rbx
lea    0xce0(%rip),%rax
cmp    $0x0,%esi
cmovne %rax,%rbx
mov    -0x5c(%rbp),%r11d
mov    -0x58(%rbp),%r10
mov    -0x5c(%rbp),%eax
lea    0xcc8(%rip),%rsi
mov    %r14,(%rsp)
mov    %rbx,0x8(%rsp)
mov    %r11d,0x10(%rsp)
mov    %r10,0x18(%rsp)
mov    %eax,0x20(%rsp)
mov    $0x0,%al
call   1030 <sprintf@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x90,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<t2ev_store_single>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %edi,%ebp
shr    $0x10,%ebp
and    $0xf,%ebp
mov    $0xffffffff,%ebx
cmp    $0xf,%ebp
je     11ee <t2ev_store_single+0xde>
mov    %edi,%r10d
mov    %edi,%edx
shr    $0x14,%edx
and    $0xf,%edx
mov    %edi,%eax
shr    $0xb,%eax
and    $0x1,%eax
or     %edx,%eax
cmp    $0xd,%eax
ja     11ee <t2ev_store_single+0xde>
mov    %r10d,%r8d
shr    $0xc,%r8d
and    $0xf,%r8d
lea    0xf24(%rip),%rdx
lea    0xe9b(%rip),%rsi
movslq (%rsi,%rax,4),%rdi
add    %rsi,%rdi
mov    %rdx,%rax
jmp    *%rdi
lea    0xec0(%rip),%rdx
jmp    1181 <t2ev_store_single+0x71>
lea    0xeb9(%rip),%rdx
and    $0xfff,%r10d
sub    $0x8,%rsp
lea    0xeca(%rip),%rsi
xor    %ebx,%ebx
mov    %rcx,%rdi
mov    %r8d,%ecx
mov    %ebp,%r8d
mov    %r10d,%r9d
jmp    11e1 <t2ev_store_single+0xd1>
lea    0xe8e(%rip),%rdx
jmp    11bc <t2ev_store_single+0xac>
lea    0xe85(%rip),%rax
jmp    1200 <t2ev_store_single+0xf0>
lea    0xe7e(%rip),%rdx
mov    %r10d,%r9d
and    $0xf,%r9d
shr    $0x4,%r10d
and    $0x3,%r10d
sub    $0x8,%rsp
lea    0xe66(%rip),%rsi
xor    %ebx,%ebx
mov    %rcx,%rdi
mov    %r8d,%ecx
mov    %ebp,%r8d
xor    %eax,%eax
push   %r10
call   1030 <sprintf@plt>
add    $0x10,%rsp
mov    %ebx,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xe3a(%rip),%rax
mov    %r10d,%esi
and    $0x700,%esi
je     11ee <t2ev_store_single+0xde>
cmp    $0x200,%esi
je     11ee <t2ev_store_single+0xde>
movzbl %r10b,%r14d
mov    %rdx,%r11
cmp    $0x600,%esi
jne    1229 <t2ev_store_single+0x119>
lea    0xe55(%rip),%r11
test   $0x400,%r10d
lea    0xe24(%rip),%rsi
mov    %rdx,%r15
cmove  %rsi,%r15
lea    0xe3b(%rip),%r12
cmove  %rdx,%r12
test   $0x100,%r10d
cmove  %rdx,%r15
cmove  %rsi,%r12
test   $0x200,%r10d
lea    0xe43(%rip),%r10
cmovne %rdx,%r10
sub    $0x8,%rsp
lea    0xe0e(%rip),%rsi
xor    %ebx,%ebx
mov    %rcx,%rdi
mov    %rax,%rdx
mov    %r11,%rcx
mov    %ebp,%r9d
xor    %eax,%eax
push   %r14
push   %r12
push   %r14
push   %r10
push   %r15
call   1030 <sprintf@plt>
add    $0x30,%rsp
jmp    11ee <t2ev_store_single+0xde>

LLVM IR (-O0):
%struct.arm_instruction = type opaque
@.str = [1 x i8] zeroinitializer
@.str.1 = [2 x i8] c"]\00"
@.str.2 = [2 x i8] c"B\00"
@.str.3 = [2 x i8] c"H\00"
@.str.4 = [33 x i8] c"STR%s.W\09r%d, [r%d, r%d, LSL #%d]\00"
@.str.5 = [33 x i8] c"STR%s.W\09r%d, [r%d, #%u]\09; %.3x\00"
@.str.6 = [2 x i8] c"T\00"
@.str.7 = [3 x i8] c"]!\00"
@.str.8 = [38 x i8] c"STR%s%s\09r%d, [r%d%s, #%s%u%s\09; %.2x\00"
@.str.9 = [2 x i8] c"-\00"
define i32 @t2ev_store_single(i32 %0, i32 %1, %struct.arm_instruction* %2, i8* %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca %struct.arm_instruction*
%9 = alloca i8*
%10 = alloca i32
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
store i32 %0, i32* %6
store i32 %1, i32* %7
store %struct.arm_instruction* %2, %struct.arm_instruction** %8
store i8* %3, i8** %9
%18 = load i32, i32* %6
%19 = lshr i32 %18, 20
%20 = and i32 %19, 15
store i32 %20, i32* %10
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %11
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %12
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %13
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8** %14
%21 = load i32, i32* %6
%22 = lshr i32 %21, 16
%23 = and i32 %22, 15
store i32 %23, i32* %16
%24 = load i32, i32* %6
%25 = lshr i32 %24, 12
%26 = and i32 %25, 15
store i32 %26, i32* %17
%27 = load i32, i32* %16
%28 = icmp eq i32 %27, 15
br i1 %28, label %29, label %30
29: ; preds = %4
store i32 -1, i32* %5
br label %104
30: ; preds = %4
%31 = load i32, i32* %6
%32 = and i32 %31, 2048
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %37
34: ; preds = %30
%35 = load i32, i32* %10
%36 = or i32 %35, 1
store i32 %36, i32* %10
br label %37
37: ; preds = %34, %30
%38 = load i32, i32* %10
switch i32 %38, label %48 [
i32 8, label %39
i32 9, label %39
i32 1, label %40
i32 0, label %41
i32 10, label %42
i32 11, label %42
i32 3, label %43
i32 2, label %44
i32 12, label %45
i32 13, label %45
i32 5, label %46
i32 4, label %47
]
39: ; preds = %37, %37
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8** %11
br label %60
40: ; preds = %37
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8** %11
br label %70
41: ; preds = %37
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8** %11
br label %49
42: ; preds = %37, %37
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i8** %11
br label %60
43: ; preds = %37
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i8** %11
br label %70
44: ; preds = %37
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i8** %11
br label %49
45: ; preds = %37, %37
br label %60
46: ; preds = %37
br label %70
47: ; preds = %37
br label %49
48: ; preds = %37
store i32 -1, i32* %5
br label %104
49: ; preds = %47, %44, %41
%50 = load i8*, i8** %9
%51 = load i8*, i8** %11
%52 = load i32, i32* %17
%53 = load i32, i32* %16
%54 = load i32, i32* %6
%55 = and i32 %54, 15
%56 = load i32, i32* %6
%57 = lshr i32 %56, 4
%58 = and i32 %57, 3
%59 = call i32 (i8*, i8*, ...) @sprintf(i8* %50, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i8* %51, i32 %52, i32 %53, i32 %55, i32 %58)
store i32 0, i32* %5
br label %104
60: ; preds = %45, %42, %39
%61 = load i32, i32* %6
%62 = and i32 %61, 4095
store i32 %62, i32* %15
%63 = load i8*, i8** %9
%64 = load i8*, i8** %11
%65 = load i32, i32* %17
%66 = load i32, i32* %16
%67 = load i32, i32* %15
%68 = load i32, i32* %15
%69 = call i32 (i8*, i8*, ...) @sprintf(i8* %63, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i8* %64, i32 %65, i32 %66, i32 %67, i32 %68)
store i32 0, i32* %5
br label %104
70: ; preds = %46, %43, %40
%71 = load i32, i32* %6
%72 = and i32 %71, 255
store i32 %72, i32* %15
%73 = load i32, i32* %6
%74 = and i32 %73, 1792
switch i32 %74, label %77 [
i32 1536, label %75
i32 0, label %76
i32 512, label %76
]
75: ; preds = %70
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), i8** %12
br label %77
76: ; preds = %70, %70
store i32 -1, i32* %5
br label %104
77: ; preds = %70, %75
%78 = load i32, i32* %6
%79 = and i32 %78, 256
%80 = icmp ne i32 %79, 0
br i1 %80, label %81, label %88
81: ; preds = %77
%82 = load i32, i32* %6
%83 = and i32 %82, 1024
%84 = icmp ne i32 %83, 0
br i1 %84, label %85, label %86
85: ; preds = %81
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8** %14
br label %87
86: ; preds = %81
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8** %13
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %14
br label %87
87: ; preds = %86, %85
br label %88
88: ; preds = %87, %77
%89 = load i8*, i8** %9
%90 = load i8*, i8** %11
%91 = load i8*, i8** %12
%92 = load i32, i32* %17
%93 = load i32, i32* %16
%94 = load i8*, i8** %13
%95 = load i32, i32* %6
%96 = and i32 %95, 512
%97 = icmp ne i32 %96, 0
%98 = zext i1 %97 to i64
%99 = select i1 %97, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0)
%100 = load i32, i32* %15
%101 = load i8*, i8** %14
%102 = load i32, i32* %15
%103 = call i32 (i8*, i8*, ...) @sprintf(i8* %89, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0), i8* %90, i8* %91, i32 %92, i32 %93, i8* %94, i8* %99, i32 %100, i8* %101, i32 %102)
store i32 0, i32* %5
br label %104
104: ; preds = %88, %76, %60, %49, %48, %29
%105 = load i32, i32* %5
ret i32 %105
}

LLVM IR (-O2):
%struct.arm_instruction = type opaque
@.str = [1 x i8] zeroinitializer
@.str.1 = [2 x i8] c"]\00"
@.str.2 = [2 x i8] c"B\00"
@.str.3 = [2 x i8] c"H\00"
@.str.4 = [33 x i8] c"STR%s.W\09r%d, [r%d, r%d, LSL #%d]\00"
@.str.5 = [33 x i8] c"STR%s.W\09r%d, [r%d, #%u]\09; %.3x\00"
@.str.6 = [2 x i8] c"T\00"
@.str.7 = [3 x i8] c"]!\00"
@.str.8 = [38 x i8] c"STR%s%s\09r%d, [r%d%s, #%s%u%s\09; %.2x\00"
@.str.9 = [2 x i8] c"-\00"
define i32 @t2ev_store_single(i32 %0, i32 %1, %struct.arm_instruction* nocapture readnone %2, i8* nocapture writeonly %3) {
%5 = lshr i32 %0, 16
%6 = and i32 %5, 15
%7 = lshr i32 %0, 12
%8 = and i32 %7, 15
%9 = icmp eq i32 %6, 15
br i1 %9, label %51, label %10
10: ; preds = %4
%11 = lshr i32 %0, 20
%12 = and i32 %11, 15
%13 = lshr i32 %0, 11
%14 = and i32 %13, 1
%15 = or i32 %14, %12
switch i32 %15, label %51 [
i32 8, label %16
i32 9, label %16
i32 1, label %17
i32 0, label %18
i32 10, label %19
i32 11, label %19
i32 3, label %20
i32 2, label %21
i32 12, label %28
i32 13, label %28
i32 5, label %32
i32 4, label %22
]
16: ; preds = %10, %10
br label %28
17: ; preds = %10
br label %32
18: ; preds = %10
br label %22
19: ; preds = %10, %10
br label %28
20: ; preds = %10
br label %32
21: ; preds = %10
br label %22
22: ; preds = %10, %21, %18
%23 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %10 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), %21 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), %18 ]
%24 = and i32 %0, 15
%25 = lshr i32 %0, 4
%26 = and i32 %25, 3
%27 = tail call i32 (i8*, i8*, ...) @sprintf(i8* dereferenceable(1) %3, i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i8* %23, i32 %8, i32 %6, i32 %24, i32 %26)
br label %51
28: ; preds = %10, %10, %19, %16
%29 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %10 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %10 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), %19 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), %16 ]
%30 = and i32 %0, 4095
%31 = tail call i32 (i8*, i8*, ...) @sprintf(i8* dereferenceable(1) %3, i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i8* %29, i32 %8, i32 %6, i32 %30, i32 %30)
br label %51
32: ; preds = %10, %20, %17
%33 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %10 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), %20 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), %17 ]
%34 = and i32 %0, 255
%35 = and i32 %0, 1792
switch i32 %35, label %37 [
i32 1536, label %36
i32 0, label %51
i32 512, label %51
]
36: ; preds = %32
br label %37
37: ; preds = %32, %36
%38 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %32 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), %36 ]
%39 = and i32 %0, 256
%40 = icmp eq i32 %39, 0
%41 = and i32 %0, 1024
%42 = icmp eq i32 %41, 0
%43 = select i1 %42, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0)
%44 = select i1 %42, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0)
%45 = select i1 %40, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* %43
%46 = select i1 %40, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8* %44
%47 = and i32 %0, 512
%48 = icmp eq i32 %47, 0
%49 = select i1 %48, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0)
%50 = tail call i32 (i8*, i8*, ...) @sprintf(i8* dereferenceable(1) %3, i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0), i8* %33, i8* %38, i32 %8, i32 %6, i8* %45, i8* %49, i32 %34, i8* %46, i32 %34)
br label %51
51: ; preds = %32, %32, %10, %4, %37, %28, %22
%52 = phi i32 [ 0, %22 ], [ 0, %37 ], [ 0, %28 ], [ -1, %4 ], [ -1, %10 ], [ -1, %32 ], [ -1, %32 ]
ret i32 %52
}