#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*/ bcopy(void *, void *, int);
char *calloc(int, int);
char *dectobin(void *v, int len) {
  int aloc = 0;
  if (len % 8)
    aloc = (len / 8) + 1;
  else
    aloc = len / 8;
  char *res = calloc(len + 1, sizeof(char));
  int i, j;
  unsigned char a = '\0';
  for (i = 0; i < aloc; i++) {
    bcopy(v + i, (void *)&a, 1);
    for (j = 0; j < 8; j++) {
      if ((a >> 7 - j) & 0x01)
        res[8 * (aloc - i - 1) + j] = '1';
      else
        res[8 * (aloc - i - 1) + j] = '0';
    }
  }
  res[len + 1] = '\0';
  return res;
}


x86 assembly (clang, -O0):
<dectobin>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1160 <dectobin+0x40>
mov    -0xc(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    116e <dectobin+0x4e>
mov    -0xc(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%edi
add    $0x1,%edi
mov    $0x1,%esi
call   1030 <calloc@plt>
mov    %rax,-0x18(%rbp)
movb   $0x0,-0x21(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    123c <dectobin+0x11c>
mov    -0x8(%rbp),%rdi
movslq -0x1c(%rbp),%rax
add    %rax,%rdi
lea    -0x21(%rbp),%rsi
mov    $0x1,%edx
call   1040 <bcopy@plt>
movl   $0x0,-0x20(%rbp)
cmpl   $0x8,-0x20(%rbp)
jge    1229 <dectobin+0x109>
movzbl -0x21(%rbp),%eax
mov    $0x7,%ecx
sub    -0x20(%rbp),%ecx
sar    %cl,%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     11fc <dectobin+0xdc>
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%ecx
sub    -0x1c(%rbp),%ecx
sub    $0x1,%ecx
shl    $0x3,%ecx
add    -0x20(%rbp),%ecx
movslq %ecx,%rcx
movb   $0x31,(%rax,%rcx,1)
jmp    1216 <dectobin+0xf6>
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%ecx
sub    -0x1c(%rbp),%ecx
sub    $0x1,%ecx
shl    $0x3,%ecx
add    -0x20(%rbp),%ecx
movslq %ecx,%rcx
movb   $0x30,(%rax,%rcx,1)
jmp    121b <dectobin+0xfb>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11b9 <dectobin+0x99>
jmp    122e <dectobin+0x10e>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    118d <dectobin+0x6d>
mov    -0x18(%rbp),%rax
mov    -0xc(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x18(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dectobin>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x30,%rsp
xor    %r15d,%r15d
test   $0x7,%sil
setne  %r15b
lea    0x7(%rsi),%ebx
test   %esi,%esi
cmovns %esi,%ebx
mov    %rdi,%r12
sar    $0x3,%ebx
movslq %esi,%r14
add    $0x1,%r14
mov    %r14d,%edi
mov    $0x1,%esi
call   1030 <calloc@plt>
mov    %rax,%rdi
add    %ebx,%r15d
jle    1bde <dectobin+0xace>
mov    %r15d,%r9d
cmp    $0x10,%r15d
jae    1166 <dectobin+0x56>
xor    %r10d,%r10d
jmp    1acf <dectobin+0x9bf>
lea    -0x1(%r9),%rsi
lea    -0x8(,%r15,8),%ebx
ff
mov    $0x8,%edx
mov    %esi,%eax
mul    %edx
seto   %r11b
mov    %ebx,%ecx
sub    %eax,%ecx
mov    $0x8,%edx
mov    %rsi,%rax
mul    %rdx
seto   %r8b
xor    %r10d,%r10d
cmp    %ebx,%ecx
jg     1acf <dectobin+0x9bf>
test   %r11b,%r11b
jne    1acf <dectobin+0x9bf>
shr    $0x20,%rsi
jne    1acf <dectobin+0x9bf>
movslq %ebx,%rsi
lea    (%rdi,%rsi,1),%rcx
add    $0x6,%rcx
mov    %rcx,%rdx
sub    %rax,%rdx
cmp    %rcx,%rdx
ja     1acf <dectobin+0x9bf>
test   %r8b,%r8b
jne    1acf <dectobin+0x9bf>
lea    (%rdi,%rsi,1),%rcx
add    $0x7,%rcx
mov    %rcx,%rdx
sub    %rax,%rdx
cmp    %rcx,%rdx
ja     1acf <dectobin+0x9bf>
test   %r8b,%r8b
jne    1acf <dectobin+0x9bf>
lea    (%rdi,%rsi,1),%rcx
add    $0x5,%rcx
mov    %rcx,%rdx
sub    %rax,%rdx
cmp    %rcx,%rdx
ja     1acf <dectobin+0x9bf>
test   %r8b,%r8b
jne    1acf <dectobin+0x9bf>
lea    (%rdi,%rsi,1),%rcx
add    $0x4,%rcx
mov    %rcx,%rdx
sub    %rax,%rdx
cmp    %rcx,%rdx
ja     1acf <dectobin+0x9bf>
test   %r8b,%r8b
jne    1acf <dectobin+0x9bf>
lea    (%rdi,%rsi,1),%rcx
add    $0x3,%rcx
mov    %rcx,%rdx
sub    %rax,%rdx
cmp    %rcx,%rdx
ja     1acf <dectobin+0x9bf>
test   %r8b,%r8b
jne    1acf <dectobin+0x9bf>
lea    (%rdi,%rsi,1),%rcx
add    $0x2,%rcx
mov    %rcx,%rdx
sub    %rax,%rdx
cmp    %rcx,%rdx
ja     1acf <dectobin+0x9bf>
test   %r8b,%r8b
jne    1acf <dectobin+0x9bf>
lea    (%rdi,%rsi,1),%rcx
add    $0x1,%rcx
mov    %rcx,%rdx
sub    %rax,%rdx
cmp    %rcx,%rdx
ja     1acf <dectobin+0x9bf>
test   %r8b,%r8b
jne    1acf <dectobin+0x9bf>
mov    %rdi,%rcx
add    %rsi,%rcx
mov    %rcx,%rdx
sub    %rax,%rdx
cmp    %rcx,%rdx
ja     1acf <dectobin+0x9bf>
test   %r8b,%r8b
jne    1acf <dectobin+0x9bf>
lea    0x0(,%r15,8),%eax
mov    %r9d,%r10d
and    $0xfffffff0,%r10d
add    $0xffffffff,%eax
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
nop
movdqu (%r12,%rsi,1),%xmm8
movdqa %xmm8,%xmm1
pxor   %xmm9,%xmm9
punpckhbw %xmm9,%xmm1
movdqa %xmm1,%xmm14
punpckhwd %xmm9,%xmm14
punpcklwd %xmm9,%xmm1
punpcklbw %xmm9,%xmm8
movdqa %xmm8,%xmm10
punpckhwd %xmm9,%xmm10
punpcklwd %xmm9,%xmm8
movdqa %xmm8,%xmm5
movdqa 0xceb(%rip),%xmm4
pand   %xmm4,%xmm5
movdqa %xmm10,%xmm0
pand   %xmm4,%xmm0
movdqa %xmm1,%xmm2
pand   %xmm4,%xmm2
movdqa %xmm14,%xmm3
pand   %xmm4,%xmm3
pcmpeqd %xmm9,%xmm3
pcmpeqd %xmm9,%xmm2
packssdw %xmm3,%xmm2
pcmpeqd %xmm9,%xmm0
pcmpeqd %xmm9,%xmm5
packssdw %xmm0,%xmm5
packsswb %xmm2,%xmm5
movdqa 0xcb4(%rip),%xmm12
paddb  %xmm12,%xmm5
movdqa %xmm12,%xmm6
movdqa %xmm5,%xmm12
movdqa %xmm8,%xmm11
movdqa 0xca8(%rip),%xmm4
pand   %xmm4,%xmm11
movdqa %xmm10,%xmm0
pand   %xmm4,%xmm0
movdqa %xmm1,%xmm2
pand   %xmm4,%xmm2
movdqa %xmm14,%xmm3
pand   %xmm4,%xmm3
pcmpeqd %xmm9,%xmm3
pcmpeqd %xmm9,%xmm2
packssdw %xmm3,%xmm2
pcmpeqd %xmm9,%xmm0
pcmpeqd %xmm9,%xmm11
packssdw %xmm0,%xmm11
packsswb %xmm2,%xmm11
paddb  %xmm6,%xmm11
movdqa %xmm8,%xmm15
movdqa 0xc65(%rip),%xmm4
pand   %xmm4,%xmm15
movdqa %xmm10,%xmm0
pand   %xmm4,%xmm0
movdqa %xmm1,%xmm2
pand   %xmm4,%xmm2
movdqa %xmm14,%xmm3
pand   %xmm4,%xmm3
pcmpeqd %xmm9,%xmm3
pcmpeqd %xmm9,%xmm2
packssdw %xmm3,%xmm2
pcmpeqd %xmm9,%xmm0
pcmpeqd %xmm9,%xmm15
packssdw %xmm0,%xmm15
packsswb %xmm2,%xmm15
paddb  %xmm6,%xmm15
movdqa %xmm6,%xmm5
movdqa %xmm8,%xmm0
movdqa 0xc1e(%rip),%xmm4
pand   %xmm4,%xmm0
movdqa %xmm10,%xmm2
pand   %xmm4,%xmm2
movdqa %xmm1,%xmm3
pand   %xmm4,%xmm3
movdqa %xmm14,%xmm6
pand   %xmm4,%xmm6
pcmpeqd %xmm9,%xmm6
pcmpeqd %xmm9,%xmm3
packssdw %xmm6,%xmm3
pcmpeqd %xmm9,%xmm2
pcmpeqd %xmm9,%xmm0
packssdw %xmm2,%xmm0
packsswb %xmm3,%xmm0
paddb  %xmm5,%xmm0
movdqa %xmm8,%xmm3
movdqa 0xbdf(%rip),%xmm4
pand   %xmm4,%xmm3
movdqa %xmm10,%xmm2
pand   %xmm4,%xmm2
movdqa %xmm1,%xmm6
pand   %xmm4,%xmm6
movdqa %xmm14,%xmm7
pand   %xmm4,%xmm7
pcmpeqd %xmm9,%xmm7
pcmpeqd %xmm9,%xmm6
packssdw %xmm7,%xmm6
pcmpeqd %xmm9,%xmm2
pcmpeqd %xmm9,%xmm3
packssdw %xmm2,%xmm3
packsswb %xmm6,%xmm3
paddb  %xmm5,%xmm3
movdqa %xmm5,%xmm13
movdqa %xmm8,%xmm2
movdqa 0xb9b(%rip),%xmm5
pand   %xmm5,%xmm2
movdqa %xmm10,%xmm6
pand   %xmm5,%xmm6
movdqa %xmm1,%xmm7
pand   %xmm5,%xmm7
movdqa %xmm14,%xmm4
pand   %xmm5,%xmm4
pcmpeqd %xmm9,%xmm4
pcmpeqd %xmm9,%xmm7
packssdw %xmm4,%xmm7
pcmpeqd %xmm9,%xmm6
pcmpeqd %xmm9,%xmm2
packssdw %xmm6,%xmm2
packsswb %xmm7,%xmm2
paddb  %xmm13,%xmm2
movdqa %xmm8,%xmm6
movdqa 0xb5a(%rip),%xmm13
pand   %xmm13,%xmm6
movdqa %xmm10,%xmm4
pand   %xmm13,%xmm4
movdqa %xmm1,%xmm7
pand   %xmm13,%xmm7
movdqa %xmm14,%xmm5
pand   %xmm13,%xmm5
pcmpeqd %xmm9,%xmm5
pcmpeqd %xmm9,%xmm7
packssdw %xmm5,%xmm7
pcmpeqd %xmm9,%xmm4
pcmpeqd %xmm9,%xmm6
packssdw %xmm4,%xmm6
packsswb %xmm7,%xmm6
movdqa 0xab0(%rip),%xmm5
paddb  %xmm5,%xmm6
movdqa 0xb14(%rip),%xmm4
pand   %xmm4,%xmm8
pand   %xmm4,%xmm10
pand   %xmm4,%xmm1
pand   %xmm4,%xmm14
pcmpeqd %xmm9,%xmm14
pcmpeqd %xmm9,%xmm1
packssdw %xmm14,%xmm1
pcmpeqd %xmm9,%xmm10
pcmpeqd %xmm9,%xmm8
packssdw %xmm10,%xmm8
packsswb %xmm1,%xmm8
paddb  %xmm5,%xmm8
movdqa %xmm12,%xmm1
punpcklbw %xmm9,%xmm1
pshufd $0x4e,%xmm1,%xmm1
pshuflw $0x1b,%xmm1,%xmm1
pshufhw $0x1b,%xmm1,%xmm1
punpckhbw %xmm9,%xmm12
pshufd $0x4e,%xmm12,%xmm4
pshuflw $0x1b,%xmm4,%xmm4
pshufhw $0x1b,%xmm4,%xmm12
packuswb %xmm1,%xmm12
movdqa %xmm11,%xmm1
punpcklbw %xmm9,%xmm1
pshufd $0x4e,%xmm1,%xmm1
pshuflw $0x1b,%xmm1,%xmm1
pshufhw $0x1b,%xmm1,%xmm1
punpckhbw %xmm9,%xmm11
pshufd $0x4e,%xmm11,%xmm4
pshuflw $0x1b,%xmm4,%xmm4
pshufhw $0x1b,%xmm4,%xmm4
packuswb %xmm1,%xmm4
movdqa %xmm4,(%rsp)
movdqa %xmm15,%xmm1
punpcklbw %xmm9,%xmm1
pshufd $0x4e,%xmm1,%xmm1
pshuflw $0x1b,%xmm1,%xmm1
pshufhw $0x1b,%xmm1,%xmm1
punpckhbw %xmm9,%xmm15
pshufd $0x4e,%xmm15,%xmm4
pshuflw $0x1b,%xmm4,%xmm4
pshufhw $0x1b,%xmm4,%xmm11
packuswb %xmm1,%xmm11
movdqa %xmm0,%xmm1
punpcklbw %xmm9,%xmm1
pshufd $0x4e,%xmm1,%xmm1
pshuflw $0x1b,%xmm1,%xmm1
pshufhw $0x1b,%xmm1,%xmm1
punpckhbw %xmm9,%xmm0
pshufd $0x4e,%xmm0,%xmm0
pshuflw $0x1b,%xmm0,%xmm0
pshufhw $0x1b,%xmm0,%xmm14
packuswb %xmm1,%xmm14
movdqa %xmm3,%xmm0
punpcklbw %xmm9,%xmm0
pshufd $0x4e,%xmm0,%xmm0
pshuflw $0x1b,%xmm0,%xmm0
pshufhw $0x1b,%xmm0,%xmm0
punpckhbw %xmm9,%xmm3
pshufd $0x4e,%xmm3,%xmm1
pshuflw $0x1b,%xmm1,%xmm1
pshufhw $0x1b,%xmm1,%xmm10
packuswb %xmm0,%xmm10
movdqa %xmm2,%xmm0
punpcklbw %xmm9,%xmm0
pshufd $0x4e,%xmm0,%xmm0
pshuflw $0x1b,%xmm0,%xmm0
pshufhw $0x1b,%xmm0,%xmm0
punpckhbw %xmm9,%xmm2
pshufd $0x4e,%xmm2,%xmm1
pshuflw $0x1b,%xmm1,%xmm1
pshufhw $0x1b,%xmm1,%xmm5
packuswb %xmm0,%xmm5
movdqa %xmm6,%xmm0
punpcklbw %xmm9,%xmm0
pshufd $0x4e,%xmm0,%xmm0
pshuflw $0x1b,%xmm0,%xmm0
pshufhw $0x1b,%xmm0,%xmm0
punpckhbw %xmm9,%xmm6
pshufd $0x4e,%xmm6,%xmm1
pshuflw $0x1b,%xmm1,%xmm1
pshufhw $0x1b,%xmm1,%xmm13
packuswb %xmm0,%xmm13
movdqa %xmm8,%xmm0
punpcklbw %xmm9,%xmm0
pshufd $0x4e,%xmm0,%xmm0
pshuflw $0x1b,%xmm0,%xmm0
pshufhw $0x1b,%xmm0,%xmm0
punpckhbw %xmm9,%xmm8
pshufd $0x4e,%xmm8,%xmm1
pshuflw $0x1b,%xmm1,%xmm1
pshufhw $0x1b,%xmm1,%xmm15
packuswb %xmm0,%xmm15
movdqa %xmm13,%xmm2
punpcklbw %xmm15,%xmm2
pshuflw $0x60,%xmm2,%xmm0
pshufd $0x60,%xmm0,%xmm0
movdqa 0x933(%rip),%xmm9
movdqa %xmm9,%xmm1
pandn  %xmm0,%xmm1
movdqa %xmm10,%xmm3
punpcklbw %xmm5,%xmm3
pshuflw $0xd4,%xmm3,%xmm0
pshufd $0x60,%xmm0,%xmm0
pand   %xmm9,%xmm0
por    %xmm1,%xmm0
pshufd $0xed,%xmm0,%xmm0
movdqa %xmm11,%xmm1
punpcklbw %xmm14,%xmm1
pshuflw $0x60,%xmm1,%xmm6
pshufd $0xd4,%xmm6,%xmm7
movdqa 0x8fc(%rip),%xmm8
movdqa %xmm8,%xmm6
pandn  %xmm7,%xmm6
movdqa %xmm12,%xmm7
punpcklbw (%rsp),%xmm7
pshufd $0x0,%xmm7,%xmm4
pshufhw $0x55,%xmm4,%xmm4
pand   %xmm8,%xmm4
por    %xmm6,%xmm4
pshufd $0xe8,%xmm4,%xmm4
punpckldq %xmm0,%xmm4
movdqa %xmm4,0x20(%rsp)
pshuflw $0xe8,%xmm2,%xmm0
pshufd $0x60,%xmm0,%xmm0
movdqa %xmm9,%xmm4
pandn  %xmm0,%xmm4
pshuflw $0xf6,%xmm3,%xmm0
pshufd $0x60,%xmm0,%xmm0
pand   %xmm9,%xmm0
por    %xmm4,%xmm0
pshufd $0xed,%xmm0,%xmm4
pshuflw $0xe8,%xmm1,%xmm0
pshufd $0xd4,%xmm0,%xmm0
movdqa %xmm8,%xmm6
pandn  %xmm0,%xmm6
pshufd $0x55,%xmm7,%xmm0
pshufhw $0x55,%xmm0,%xmm0
pand   %xmm8,%xmm0
por    %xmm6,%xmm0
pshufd $0xe8,%xmm0,%xmm0
punpckldq %xmm4,%xmm0
movdqa %xmm0,0x10(%rsp)
pshufhw $0x60,%xmm2,%xmm4
pshufd $0xe8,%xmm4,%xmm4
movdqa %xmm9,%xmm6
pandn  %xmm4,%xmm6
pshufhw $0xd4,%xmm3,%xmm4
pshufd $0xe8,%xmm4,%xmm4
pand   %xmm9,%xmm4
por    %xmm6,%xmm4
pshufhw $0x60,%xmm1,%xmm6
pshufd $0xf6,%xmm6,%xmm6
movdqa %xmm8,%xmm0
pandn  %xmm6,%xmm0
pshufd $0xaa,%xmm7,%xmm6
pshufhw $0x55,%xmm6,%xmm6
pand   %xmm8,%xmm6
por    %xmm0,%xmm6
pshufd $0xed,%xmm4,%xmm0
pshufd $0xe8,%xmm6,%xmm6
punpckldq %xmm0,%xmm6
pshufhw $0xe8,%xmm2,%xmm0
pshufd $0xe8,%xmm0,%xmm0
movdqa %xmm9,%xmm2
pandn  %xmm0,%xmm2
pshufhw $0xf6,%xmm3,%xmm0
pshufd $0xe8,%xmm0,%xmm0
pand   %xmm9,%xmm0
por    %xmm2,%xmm0
pshufhw $0xe8,%xmm1,%xmm1
pshufd $0xf6,%xmm1,%xmm1
movdqa %xmm8,%xmm2
pandn  %xmm1,%xmm2
pshufd $0xff,%xmm7,%xmm1
pshufhw $0x55,%xmm1,%xmm1
pand   %xmm8,%xmm1
por    %xmm2,%xmm1
pshufd $0xed,%xmm0,%xmm0
pshufd $0xe8,%xmm1,%xmm2
punpckldq %xmm0,%xmm2
punpckhbw %xmm15,%xmm13
pshuflw $0x60,%xmm13,%xmm0
pshufd $0x60,%xmm0,%xmm0
movdqa %xmm9,%xmm1
pandn  %xmm0,%xmm1
punpckhbw %xmm5,%xmm10
pshuflw $0xd4,%xmm10,%xmm0
pshufd $0x60,%xmm0,%xmm0
pand   %xmm9,%xmm0
por    %xmm1,%xmm0
pshufd $0xed,%xmm0,%xmm0
punpckhbw %xmm14,%xmm11
pshuflw $0x60,%xmm11,%xmm1
pshufd $0xd4,%xmm1,%xmm1
movdqa %xmm8,%xmm3
pandn  %xmm1,%xmm3
punpckhbw (%rsp),%xmm12
pshufd $0x0,%xmm12,%xmm1
pshufhw $0x55,%xmm1,%xmm1
pand   %xmm8,%xmm1
por    %xmm3,%xmm1
pshufd $0xe8,%xmm1,%xmm3
punpckldq %xmm0,%xmm3
pshuflw $0xe8,%xmm13,%xmm0
pshufd $0x60,%xmm0,%xmm0
movdqa %xmm9,%xmm1
pandn  %xmm0,%xmm1
pshuflw $0xf6,%xmm10,%xmm0
pshufd $0x60,%xmm0,%xmm0
pand   %xmm9,%xmm0
por    %xmm1,%xmm0
pshufd $0xed,%xmm0,%xmm0
pshuflw $0xe8,%xmm11,%xmm1
pshufd $0xd4,%xmm1,%xmm1
movdqa %xmm8,%xmm4
pandn  %xmm1,%xmm4
pshufd $0x55,%xmm12,%xmm1
pshufhw $0x55,%xmm1,%xmm1
pand   %xmm8,%xmm1
por    %xmm4,%xmm1
pshufd $0xe8,%xmm1,%xmm1
punpckldq %xmm0,%xmm1
pshufhw $0x60,%xmm13,%xmm0
pshufd $0xe8,%xmm0,%xmm0
movdqa %xmm9,%xmm4
pandn  %xmm0,%xmm4
pshufhw $0xd4,%xmm10,%xmm0
pshufd $0xe8,%xmm0,%xmm0
pand   %xmm9,%xmm0
por    %xmm4,%xmm0
pshufhw $0x60,%xmm11,%xmm4
pshufd $0xf6,%xmm4,%xmm4
movdqa %xmm8,%xmm5
pandn  %xmm4,%xmm5
pshufd $0xaa,%xmm12,%xmm4
pshufhw $0x55,%xmm4,%xmm4
pand   %xmm8,%xmm4
por    %xmm5,%xmm4
pshufd $0xed,%xmm0,%xmm0
pshufd $0xe8,%xmm4,%xmm4
punpckldq %xmm0,%xmm4
pshufhw $0xe8,%xmm13,%xmm0
pshufd $0xe8,%xmm0,%xmm0
movdqa %xmm9,%xmm5
pandn  %xmm0,%xmm5
pshufhw $0xf6,%xmm10,%xmm0
pshufd $0xe8,%xmm0,%xmm0
pand   %xmm9,%xmm0
por    %xmm5,%xmm0
pshufhw $0xe8,%xmm11,%xmm5
pshufd $0xf6,%xmm5,%xmm5
movdqa %xmm8,%xmm7
pandn  %xmm5,%xmm7
pshufd $0xff,%xmm12,%xmm5
pshufhw $0x55,%xmm5,%xmm5
pand   %xmm8,%xmm5
por    %xmm7,%xmm5
pshufd $0xed,%xmm0,%xmm0
pshufd $0xe8,%xmm5,%xmm5
punpckldq %xmm0,%xmm5
cltq
movdqu %xmm5,-0xf(%rdi,%rax,1)
movdqu %xmm4,-0x1f(%rdi,%rax,1)
movdqu %xmm1,-0x2f(%rdi,%rax,1)
movdqu %xmm3,-0x3f(%rdi,%rax,1)
movdqu %xmm2,-0x4f(%rdi,%rax,1)
movdqu %xmm6,-0x5f(%rdi,%rax,1)
movaps 0x10(%rsp),%xmm0
movups %xmm0,-0x6f(%rdi,%rax,1)
movdqa 0x20(%rsp),%xmm0
movdqu %xmm0,-0x7f(%rdi,%rax,1)
add    $0x10,%rsi
add    $0xffffff80,%eax
cmp    %rsi,%r10
jne    12d0 <dectobin+0x1c0>
cmp    %r9,%r10
je     1bde <dectobin+0xace>
sub    %r10d,%r15d
lea    -0x8(,%r15,8),%eax
ff
movdqa 0x5ce(%rip),%xmm0
movdqa 0x5d6(%rip),%xmm1
pxor   %xmm2,%xmm2
xchg   %ax,%ax
movzbl (%r12,%r10,1),%ecx
cltq
movd   %ecx,%xmm3
pshufd $0x0,%xmm3,%xmm3
movdqa %xmm3,%xmm4
pand   %xmm0,%xmm4
pand   %xmm1,%xmm3
pcmpeqd %xmm2,%xmm3
pcmpeqd %xmm2,%xmm4
packssdw %xmm3,%xmm4
packsswb %xmm4,%xmm4
pmovmskb %xmm4,%esi
mov    %esi,%r8d
and    $0x2,%r8b
shr    %r8b
mov    %esi,%r11d
and    $0x4,%r11b
shr    $0x2,%r11b
mov    %esi,%ebp
and    $0x8,%bpl
shr    $0x3,%bpl
mov    %esi,%r15d
and    $0x10,%r15b
shr    $0x4,%r15b
mov    %esi,%edx
and    $0x20,%dl
shr    $0x5,%dl
mov    %esi,%ecx
and    $0x40,%cl
shr    $0x6,%cl
mov    %esi,%ebx
sar    $0x7,%bl
add    $0x31,%bl
mov    %bl,(%rdi,%rax,1)
xor    $0x31,%cl
mov    %rax,%rbx
or     $0x1,%rbx
mov    %cl,(%rdi,%rbx,1)
xor    $0x31,%dl
mov    %rax,%rcx
or     $0x2,%rcx
mov    %dl,(%rdi,%rcx,1)
xor    $0x31,%r15b
mov    %rax,%rcx
or     $0x3,%rcx
mov    %r15b,(%rdi,%rcx,1)
xor    $0x31,%bpl
mov    %rax,%rcx
or     $0x4,%rcx
mov    %bpl,(%rdi,%rcx,1)
xor    $0x31,%r11b
mov    %rax,%rcx
or     $0x5,%rcx
mov    %r11b,(%rdi,%rcx,1)
xor    $0x31,%r8b
mov    %rax,%rcx
or     $0x6,%rcx
mov    %r8b,(%rdi,%rcx,1)
and    $0x1,%sil
xor    $0x31,%sil
mov    %rax,%rcx
or     $0x7,%rcx
mov    %sil,(%rdi,%rcx,1)
add    $0x1,%r10
add    $0xfffffff8,%eax
cmp    %r10,%r9
jne    1af0 <dectobin+0x9e0>
movb   $0x0,(%rdi,%r14,1)
mov    %rdi,%rax
add    $0x30,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i8* @dectobin(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8
store i8* %0, i8** %3
store i32 %1, i32* %4
store i32 0, i32* %5
%10 = load i32, i32* %4
%11 = srem i32 %10, 8
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %2
%14 = load i32, i32* %4
%15 = sdiv i32 %14, 8
%16 = add nsw i32 %15, 1
store i32 %16, i32* %5
br label %20
17: ; preds = %2
%18 = load i32, i32* %4
%19 = sdiv i32 %18, 8
store i32 %19, i32* %5
br label %20
20: ; preds = %17, %13
%21 = load i32, i32* %4
%22 = add nsw i32 %21, 1
%23 = call i8* @calloc(i32 %22, i32 1)
store i8* %23, i8** %6
store i8 0, i8* %9
store i32 0, i32* %7
br label %24
24: ; preds = %72, %20
%25 = load i32, i32* %7
%26 = load i32, i32* %5
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %75
28: ; preds = %24
%29 = load i8*, i8** %3
%30 = load i32, i32* %7
%31 = sext i32 %30 to i64
%32 = getelementptr i8, i8* %29, i64 %31
%33 = call i32 @bcopy(i8* %32, i8* %9, i32 1)
store i32 0, i32* %8
br label %34
34: ; preds = %68, %28
%35 = load i32, i32* %8
%36 = icmp slt i32 %35, 8
br i1 %36, label %37, label %71
37: ; preds = %34
%38 = load i8, i8* %9
%39 = zext i8 %38 to i32
%40 = load i32, i32* %8
%41 = sub nsw i32 7, %40
%42 = ashr i32 %39, %41
%43 = and i32 %42, 1
%44 = icmp ne i32 %43, 0
br i1 %44, label %45, label %56
45: ; preds = %37
%46 = load i8*, i8** %6
%47 = load i32, i32* %5
%48 = load i32, i32* %7
%49 = sub nsw i32 %47, %48
%50 = sub nsw i32 %49, 1
%51 = mul nsw i32 8, %50
%52 = load i32, i32* %8
%53 = add nsw i32 %51, %52
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, i8* %46, i64 %54
store i8 49, i8* %55
br label %67
56: ; preds = %37
%57 = load i8*, i8** %6
%58 = load i32, i32* %5
%59 = load i32, i32* %7
%60 = sub nsw i32 %58, %59
%61 = sub nsw i32 %60, 1
%62 = mul nsw i32 8, %61
%63 = load i32, i32* %8
%64 = add nsw i32 %62, %63
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i8, i8* %57, i64 %65
store i8 48, i8* %66
br label %67
67: ; preds = %56, %45
br label %68
68: ; preds = %67
%69 = load i32, i32* %8
%70 = add nsw i32 %69, 1
store i32 %70, i32* %8
br label %34
71: ; preds = %34
br label %72
72: ; preds = %71
%73 = load i32, i32* %7
%74 = add nsw i32 %73, 1
store i32 %74, i32* %7
br label %24
75: ; preds = %24
%76 = load i8*, i8** %6
%77 = load i32, i32* %4
%78 = add nsw i32 %77, 1
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i8, i8* %76, i64 %79
store i8 0, i8* %80
%81 = load i8*, i8** %6
ret i8* %81
}

LLVM IR (-O2):
define noalias i8* @dectobin(i8* nocapture %0, i32 %1) {
%3 = and i32 %1, 7
%4 = icmp ne i32 %3, 0
%5 = sdiv i32 %1, 8
%6 = zext i1 %4 to i32
%7 = add nsw i32 %5, %6
%8 = add nsw i32 %1, 1
%9 = tail call i8* @calloc(i32 %8, i32 1)
%10 = icmp sgt i32 %7, 0
br i1 %10, label %11, label %217
11: ; preds = %2
%12 = zext i32 %7 to i64
%13 = icmp ult i32 %7, 16
br i1 %13, label %168, label %14
14: ; preds = %11
%15 = add nsw i64 %12, -1
%16 = add nsw i32 %5, %6
%17 = shl i32 %16, 3
%18 = add i32 %17, -8
%19 = trunc i64 %15 to i32
%20 = call { i32, i1 } @llvm.umul.with.overflow.i32(i32 %19, i32 8)
%21 = extractvalue { i32, i1 } %20, 0
%22 = extractvalue { i32, i1 } %20, 1
%23 = sub i32 %18, %21
%24 = icmp sgt i32 %23, %18
%25 = or i1 %24, %22
%26 = icmp ugt i64 %15, 4294967295
%27 = or i1 %25, %26
%28 = sext i32 %18 to i64
%29 = or i64 %28, 6
%30 = getelementptr i8, i8* %9, i64 %29
%31 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %15, i64 8)
%32 = extractvalue { i64, i1 } %31, 0
%33 = extractvalue { i64, i1 } %31, 1
%34 = sub i64 0, %32
%35 = getelementptr i8, i8* %30, i64 %34
%36 = icmp ugt i8* %35, %30
%37 = or i1 %36, %33
%38 = or i64 %28, 7
%39 = getelementptr i8, i8* %9, i64 %38
%40 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %15, i64 8)
%41 = extractvalue { i64, i1 } %40, 0
%42 = extractvalue { i64, i1 } %40, 1
%43 = sub i64 0, %41
%44 = getelementptr i8, i8* %39, i64 %43
%45 = icmp ugt i8* %44, %39
%46 = or i1 %45, %42
%47 = or i64 %28, 5
%48 = getelementptr i8, i8* %9, i64 %47
%49 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %15, i64 8)
%50 = extractvalue { i64, i1 } %49, 0
%51 = extractvalue { i64, i1 } %49, 1
%52 = sub i64 0, %50
%53 = getelementptr i8, i8* %48, i64 %52
%54 = icmp ugt i8* %53, %48
%55 = or i1 %54, %51
%56 = or i64 %28, 4
%57 = getelementptr i8, i8* %9, i64 %56
%58 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %15, i64 8)
%59 = extractvalue { i64, i1 } %58, 0
%60 = extractvalue { i64, i1 } %58, 1
%61 = sub i64 0, %59
%62 = getelementptr i8, i8* %57, i64 %61
%63 = icmp ugt i8* %62, %57
%64 = or i1 %63, %60
%65 = or i64 %28, 3
%66 = getelementptr i8, i8* %9, i64 %65
%67 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %15, i64 8)
%68 = extractvalue { i64, i1 } %67, 0
%69 = extractvalue { i64, i1 } %67, 1
%70 = sub i64 0, %68
%71 = getelementptr i8, i8* %66, i64 %70
%72 = icmp ugt i8* %71, %66
%73 = or i1 %72, %69
%74 = or i64 %28, 2
%75 = getelementptr i8, i8* %9, i64 %74
%76 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %15, i64 8)
%77 = extractvalue { i64, i1 } %76, 0
%78 = extractvalue { i64, i1 } %76, 1
%79 = sub i64 0, %77
%80 = getelementptr i8, i8* %75, i64 %79
%81 = icmp ugt i8* %80, %75
%82 = or i1 %81, %78
%83 = or i64 %28, 1
%84 = getelementptr i8, i8* %9, i64 %83
%85 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %15, i64 8)
%86 = extractvalue { i64, i1 } %85, 0
%87 = extractvalue { i64, i1 } %85, 1
%88 = sub i64 0, %86
%89 = getelementptr i8, i8* %84, i64 %88
%90 = icmp ugt i8* %89, %84
%91 = or i1 %90, %87
%92 = getelementptr i8, i8* %9, i64 %28
%93 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %15, i64 8)
%94 = extractvalue { i64, i1 } %93, 0
%95 = extractvalue { i64, i1 } %93, 1
%96 = sub i64 0, %94
%97 = getelementptr i8, i8* %92, i64 %96
%98 = icmp ugt i8* %97, %92
%99 = or i1 %98, %95
%100 = or i1 %27, %37
%101 = or i1 %100, %46
%102 = or i1 %101, %55
%103 = or i1 %102, %64
%104 = or i1 %103, %73
%105 = or i1 %104, %82
%106 = or i1 %105, %91
%107 = or i1 %106, %99
br i1 %107, label %168, label %108
108: ; preds = %14
%109 = and i64 %12, 4294967280
%110 = getelementptr inbounds i8, i8* %9, i64 -127
br label %111
111: ; preds = %111, %108
%112 = phi i64 [ 0, %108 ], [ %164, %111 ]
%113 = trunc i64 %112 to i32
%114 = getelementptr i8, i8* %0, i64 %112
%115 = bitcast i8* %114 to <16 x i8>*
%116 = load <16 x i8>, <16 x i8>* %115
%117 = zext <16 x i8> %116 to <16 x i32>
%118 = xor i32 %113, -1
%119 = add i32 %7, %118
%120 = shl nsw i32 %119, 3
%121 = and <16 x i32> %117, <i32 128, i32 128, i32 128, i32 128, i32 128, i32 128, i32 128, i32 128, i32 128, i32 128, i32 128, i32 128, i32 128, i32 128, i32 128, i32 128>
%122 = icmp eq <16 x i32> %121, zeroinitializer
%123 = select <16 x i1> %122, <16 x i8> <i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48>, <16 x i8> <i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49>
%124 = and <16 x i32> %117, <i32 64, i32 64, i32 64, i32 64, i32 64, i32 64, i32 64, i32 64, i32 64, i32 64, i32 64, i32 64, i32 64, i32 64, i32 64, i32 64>
%125 = icmp eq <16 x i32> %124, zeroinitializer
%126 = select <16 x i1> %125, <16 x i8> <i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48>, <16 x i8> <i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49>
%127 = and <16 x i32> %117, <i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32>
%128 = icmp eq <16 x i32> %127, zeroinitializer
%129 = select <16 x i1> %128, <16 x i8> <i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48>, <16 x i8> <i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49>
%130 = and <16 x i32> %117, <i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16>
%131 = icmp eq <16 x i32> %130, zeroinitializer
%132 = select <16 x i1> %131, <16 x i8> <i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48>, <16 x i8> <i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49>
%133 = and <16 x i32> %117, <i32 8, i32 8, i32 8, i32 8, i32 8, i32 8, i32 8, i32 8, i32 8, i32 8, i32 8, i32 8, i32 8, i32 8, i32 8, i32 8>
%134 = icmp eq <16 x i32> %133, zeroinitializer
%135 = select <16 x i1> %134, <16 x i8> <i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48>, <16 x i8> <i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49>
%136 = and <16 x i32> %117, <i32 4, i32 4, i32 4, i32 4, i32 4, i32 4, i32 4, i32 4, i32 4, i32 4, i32 4, i32 4, i32 4, i32 4, i32 4, i32 4>
%137 = icmp eq <16 x i32> %136, zeroinitializer
%138 = select <16 x i1> %137, <16 x i8> <i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48>, <16 x i8> <i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49>
%139 = and <16 x i32> %117, <i32 2, i32 2, i32 2, i32 2, i32 2, i32 2, i32 2, i32 2, i32 2, i32 2, i32 2, i32 2, i32 2, i32 2, i32 2, i32 2>
%140 = icmp eq <16 x i32> %139, zeroinitializer
%141 = select <16 x i1> %140, <16 x i8> <i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48>, <16 x i8> <i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49>
%142 = and <16 x i32> %117, <i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1>
%143 = icmp eq <16 x i32> %142, zeroinitializer
%144 = select <16 x i1> %143, <16 x i8> <i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48, i8 48>, <16 x i8> <i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49, i8 49>
%145 = or i32 %120, 7
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds i8, i8* %110, i64 %146
%148 = bitcast i8* %147 to <128 x i8>*
%149 = shufflevector <16 x i8> %123, <16 x i8> poison, <16 x i32> <i32 15, i32 14, i32 13, i32 12, i32 11, i32 10, i32 9, i32 8, i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0>
%150 = shufflevector <16 x i8> %126, <16 x i8> poison, <16 x i32> <i32 15, i32 14, i32 13, i32 12, i32 11, i32 10, i32 9, i32 8, i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0>
%151 = shufflevector <16 x i8> %129, <16 x i8> poison, <16 x i32> <i32 15, i32 14, i32 13, i32 12, i32 11, i32 10, i32 9, i32 8, i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0>
%152 = shufflevector <16 x i8> %132, <16 x i8> poison, <16 x i32> <i32 15, i32 14, i32 13, i32 12, i32 11, i32 10, i32 9, i32 8, i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0>
%153 = shufflevector <16 x i8> %135, <16 x i8> poison, <16 x i32> <i32 15, i32 14, i32 13, i32 12, i32 11, i32 10, i32 9, i32 8, i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0>
%154 = shufflevector <16 x i8> %138, <16 x i8> poison, <16 x i32> <i32 15, i32 14, i32 13, i32 12, i32 11, i32 10, i32 9, i32 8, i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0>
%155 = shufflevector <16 x i8> %141, <16 x i8> poison, <16 x i32> <i32 15, i32 14, i32 13, i32 12, i32 11, i32 10, i32 9, i32 8, i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0>
%156 = shufflevector <16 x i8> %144, <16 x i8> poison, <16 x i32> <i32 15, i32 14, i32 13, i32 12, i32 11, i32 10, i32 9, i32 8, i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0>
%157 = shufflevector <16 x i8> %149, <16 x i8> %150, <32 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31>
%158 = shufflevector <16 x i8> %151, <16 x i8> %152, <32 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31>
%159 = shufflevector <16 x i8> %153, <16 x i8> %154, <32 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31>
%160 = shufflevector <16 x i8> %155, <16 x i8> %156, <32 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31>
%161 = shufflevector <32 x i8> %157, <32 x i8> %158, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31, i32 32, i32 33, i32 34, i32 35, i32 36, i32 37, i32 38, i32 39, i32 40, i32 41, i32 42, i32 43, i32 44, i32 45, i32 46, i32 47, i32 48, i32 49, i32 50, i32 51, i32 52, i32 53, i32 54, i32 55, i32 56, i32 57, i32 58, i32 59, i32 60, i32 61, i32 62, i32 63>
%162 = shufflevector <32 x i8> %159, <32 x i8> %160, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31, i32 32, i32 33, i32 34, i32 35, i32 36, i32 37, i32 38, i32 39, i32 40, i32 41, i32 42, i32 43, i32 44, i32 45, i32 46, i32 47, i32 48, i32 49, i32 50, i32 51, i32 52, i32 53, i32 54, i32 55, i32 56, i32 57, i32 58, i32 59, i32 60, i32 61, i32 62, i32 63>
%163 = shufflevector <64 x i8> %161, <64 x i8> %162, <128 x i32> <i32 0, i32 16, i32 32, i32 48, i32 64, i32 80, i32 96, i32 112, i32 1, i32 17, i32 33, i32 49, i32 65, i32 81, i32 97, i32 113, i32 2, i32 18, i32 34, i32 50, i32 66, i32 82, i32 98, i32 114, i32 3, i32 19, i32 35, i32 51, i32 67, i32 83, i32 99, i32 115, i32 4, i32 20, i32 36, i32 52, i32 68, i32 84, i32 100, i32 116, i32 5, i32 21, i32 37, i32 53, i32 69, i32 85, i32 101, i32 117, i32 6, i32 22, i32 38, i32 54, i32 70, i32 86, i32 102, i32 118, i32 7, i32 23, i32 39, i32 55, i32 71, i32 87, i32 103, i32 119, i32 8, i32 24, i32 40, i32 56, i32 72, i32 88, i32 104, i32 120, i32 9, i32 25, i32 41, i32 57, i32 73, i32 89, i32 105, i32 121, i32 10, i32 26, i32 42, i32 58, i32 74, i32 90, i32 106, i32 122, i32 11, i32 27, i32 43, i32 59, i32 75, i32 91, i32 107, i32 123, i32 12, i32 28, i32 44, i32 60, i32 76, i32 92, i32 108, i32 124, i32 13, i32 29, i32 45, i32 61, i32 77, i32 93, i32 109, i32 125, i32 14, i32 30, i32 46, i32 62, i32 78, i32 94, i32 110, i32 126, i32 15, i32 31, i32 47, i32 63, i32 79, i32 95, i32 111, i32 127>
store <128 x i8> %163, <128 x i8>* %148
%164 = add nuw i64 %112, 16
%165 = icmp eq i64 %164, %109
br i1 %165, label %166, label %111
166: ; preds = %111
%167 = icmp eq i64 %109, %12
br i1 %167, label %217, label %168
168: ; preds = %14, %11, %166
%169 = phi i64 [ 0, %14 ], [ 0, %11 ], [ %109, %166 ]
br label %170
170: ; preds = %168, %170
%171 = phi i64 [ %215, %170 ], [ %169, %168 ]
%172 = getelementptr i8, i8* %0, i64 %171
%173 = load i8, i8* %172
%174 = zext i8 %173 to i32
%175 = trunc i64 %171 to i32
%176 = xor i32 %175, -1
%177 = add i32 %7, %176
%178 = shl nsw i32 %177, 3
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds i8, i8* %9, i64 %179
%181 = insertelement <8 x i32> poison, i32 %174, i64 0
%182 = shufflevector <8 x i32> %181, <8 x i32> poison, <8 x i32> zeroinitializer
%183 = and <8 x i32> %182, <i32 1, i32 2, i32 4, i32 8, i32 16, i32 32, i32 64, i32 128>
%184 = icmp eq <8 x i32> %183, zeroinitializer
%185 = extractelement <8 x i1> %184, i64 7
%186 = select i1 %185, i8 48, i8 49
store i8 %186, i8* %180
%187 = extractelement <8 x i1> %184, i64 6
%188 = select i1 %187, i8 48, i8 49
%189 = or i64 %179, 1
%190 = getelementptr inbounds i8, i8* %9, i64 %189
store i8 %188, i8* %190
%191 = extractelement <8 x i1> %184, i64 5
%192 = select i1 %191, i8 48, i8 49
%193 = or i64 %179, 2
%194 = getelementptr inbounds i8, i8* %9, i64 %193
store i8 %192, i8* %194
%195 = extractelement <8 x i1> %184, i64 4
%196 = select i1 %195, i8 48, i8 49
%197 = or i64 %179, 3
%198 = getelementptr inbounds i8, i8* %9, i64 %197
store i8 %196, i8* %198
%199 = extractelement <8 x i1> %184, i64 3
%200 = select i1 %199, i8 48, i8 49
%201 = or i64 %179, 4
%202 = getelementptr inbounds i8, i8* %9, i64 %201
store i8 %200, i8* %202
%203 = extractelement <8 x i1> %184, i64 2
%204 = select i1 %203, i8 48, i8 49
%205 = or i64 %179, 5
%206 = getelementptr inbounds i8, i8* %9, i64 %205
store i8 %204, i8* %206
%207 = extractelement <8 x i1> %184, i64 1
%208 = select i1 %207, i8 48, i8 49
%209 = or i64 %179, 6
%210 = getelementptr inbounds i8, i8* %9, i64 %209
store i8 %208, i8* %210
%211 = extractelement <8 x i1> %184, i64 0
%212 = select i1 %211, i8 48, i8 49
%213 = or i64 %179, 7
%214 = getelementptr inbounds i8, i8* %9, i64 %213
store i8 %212, i8* %214
%215 = add nuw nsw i64 %171, 1
%216 = icmp eq i64 %215, %12
br i1 %216, label %217, label %170
217: ; preds = %170, %166, %2
%218 = sext i32 %8 to i64
%219 = getelementptr inbounds i8, i8* %9, i64 %218
store i8 0, i8* %219
ret i8* %9
}