#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 */
typedef int /*<<< orphan*/ wint_t;
struct printf_info {
  int prec;
  int /*<<< orphan*/ width;
  scalar_t__ left;
  scalar_t__ group;
  scalar_t__ alt;
  scalar_t__ pad;
  scalar_t__ is_short;
  scalar_t__ is_char;
  scalar_t__ is_long;
  scalar_t__ is_long_double;
};
struct lconv {
  char *grouping;
  int /*<<< orphan*/ thousands_sep;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int CHAR_BIT;
char const CHAR_MAX;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, int /*<<< orphan*/);
int /*<<< orphan*/ fputc(char, int /*<<< orphan*/ *);
int /*<<< orphan*/ fputs(int /*<<< orphan*/, int /*<<< orphan*/ *);
struct lconv *localeconv();
int printf_binary_handler(FILE *s, const struct printf_info *info,
                          const void *const *args) {
  const char *g = 0;
  struct lconv *loc = 0;
  int group = 0, arr = 0, total = 0, len, digits;
  unsigned long long value = info->is_long_double
                                 ? *(const unsigned long long *)args[0]
                             : info->is_long  ? *(const unsigned long *)args[0]
                             : info->is_char  ? *(const unsigned char *)args[0]
                             : info->is_short ? *(const unsigned short *)args[0]
                                              : *(const unsigned int *)args[0];
  char buf[sizeof value * CHAR_BIT], *p = buf;
  while (value)
    *p++ = '0' + (value & 1), value >>= 1;
  len = p - buf;
  digits = info->prec < 0 ? 1 : info->prec;
  if (len > digits)
    digits = len;
  if (info->alt) {
    if (digits += -digits & 3)
      total = digits + (digits - 1) / 4 * !!info->group;
  } else {
    total = digits;
    group = info->group && (loc = localeconv(), *(g = loc->grouping));
    if (group) {
      while (*g > 0 && *g < CHAR_MAX) {
        if (digits - arr <= *g)
          break;
        ++total;
        arr += *g++;
      }
      if (!*g)
        total += (digits - arr - 1) / g[-1];
    }
  }
  while (!info->left && info->width > total++)
    fprintf(s, "%lc", (wint_t)info->pad);
  if (info->alt)
    while (digits) {
      fputc(digits-- > len ? '0' : *--p, s);
      if (digits && !(digits % 4) && info->group)
        fputc('.', s);
    }
  else if (group) {
    if (*g) {
      while (digits > arr)
        fputc(digits-- > len ? '0' : *--p, s);
    } else {
      int j = (digits - arr) % g[-1];
      if (!j)
        j = g[-1];
      while (j--)
        fputc(digits-- > len ? '0' : *--p, s);
      while (digits > arr) {
        fputs(loc->thousands_sep, s);
        for (j = 0; j < g[-1]; ++j)
          fputc(digits-- > len ? '0' : *--p, s);
      }
    }
    while (digits) {
      int i = *--g;
      fputs(loc->thousands_sep, s);
      while (i--)
        fputc(digits-- > len ? '0' : *--p, s);
    }
  } else
    while (digits)
      fputc(digits-- > len ? '0' : *--p, s);
  while (info->left && info->width > total++)
    fputc(' ', s);
  return total - 1;
}


x86 assembly (clang, -O0):
<printf_binary_handler>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x10(%rbp),%rax
cmpq   $0x0,0x40(%rax)
je     119e <printf_binary_handler+0x5e>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%rax
mov    %rax,-0x70(%rbp)
jmp    1225 <printf_binary_handler+0xe5>
mov    -0x10(%rbp),%rax
cmpq   $0x0,0x38(%rax)
je     11c0 <printf_binary_handler+0x80>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%rax
mov    %rax,-0x78(%rbp)
jmp    121d <printf_binary_handler+0xdd>
mov    -0x10(%rbp),%rax
cmpq   $0x0,0x30(%rax)
je     11e1 <printf_binary_handler+0xa1>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
movzbl (%rax),%eax
mov    %eax,-0x7c(%rbp)
jmp    1214 <printf_binary_handler+0xd4>
mov    -0x10(%rbp),%rax
cmpq   $0x0,0x28(%rax)
je     1202 <printf_binary_handler+0xc2>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
movzwl (%rax),%eax
mov    %eax,-0x80(%rbp)
jmp    120e <printf_binary_handler+0xce>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%eax
mov    %eax,-0x80(%rbp)
mov    -0x80(%rbp),%eax
mov    %eax,-0x7c(%rbp)
mov    -0x7c(%rbp),%eax
mov    %eax,%eax
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x70(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    0x2da4(%rip),%rax
movslq (%rax),%rax
mov    %rax,%rcx
shl    $0x3,%rcx
mov    %rsp,%rdx
mov    %rdx,-0x50(%rbp)
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rax
sub    %rdx,%rax
mov    %rax,-0x88(%rbp)
mov    %rax,%rsp
mov    %rcx,-0x58(%rbp)
mov    %rax,-0x60(%rbp)
cmpq   $0x0,-0x48(%rbp)
je     12a4 <printf_binary_handler+0x164>
mov    -0x48(%rbp),%rax
and    $0x1,%rax
add    $0x30,%rax
mov    %al,%cl
mov    -0x60(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x60(%rbp)
mov    %cl,(%rax)
mov    -0x48(%rbp),%rax
shr    $0x1,%rax
mov    %rax,-0x48(%rbp)
jmp    1269 <printf_binary_handler+0x129>
mov    -0x88(%rbp),%rcx
mov    -0x60(%rbp),%rax
sub    %rcx,%rax
mov    %eax,-0x38(%rbp)
mov    -0x10(%rbp),%rax
cmpl   $0x0,(%rax)
jge    12d2 <printf_binary_handler+0x192>
mov    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    12de <printf_binary_handler+0x19e>
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x8c(%rbp)
mov    -0x8c(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jle    12f9 <printf_binary_handler+0x1b9>
mov    -0x38(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x10(%rbp),%rax
cmpq   $0x0,0x18(%rax)
je     1363 <printf_binary_handler+0x223>
xor    %eax,%eax
sub    -0x3c(%rbp),%eax
and    $0x3,%eax
add    -0x3c(%rbp),%eax
mov    %eax,-0x3c(%rbp)
cmp    $0x0,%eax
je     135e <printf_binary_handler+0x21e>
mov    -0x3c(%rbp),%eax
mov    %eax,-0x90(%rbp)
mov    -0x3c(%rbp),%eax
sub    $0x1,%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x90(%rbp),%eax
mov    -0x10(%rbp),%rdx
cmpq   $0x0,0x10(%rdx)
setne  %dl
xor    $0xff,%dl
xor    $0xff,%dl
and    $0x1,%dl
movzbl %dl,%edx
imul   %edx,%ecx
add    %ecx,%eax
mov    %eax,-0x34(%rbp)
jmp    147a <printf_binary_handler+0x33a>
mov    -0x3c(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x10(%rbp),%rcx
xor    %eax,%eax
cmpq   $0x0,0x10(%rcx)
mov    %al,-0x91(%rbp)
je     13a5 <printf_binary_handler+0x265>
mov    $0x0,%al
call   1030 <localeconv@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
movsbl (%rax),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x91(%rbp)
mov    -0x91(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     1475 <printf_binary_handler+0x335>
jmp    13c2 <printf_binary_handler+0x282>
mov    -0x20(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x92(%rbp)
jle    13f6 <printf_binary_handler+0x2b6>
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
mov    0x2c00(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
setl   %al
mov    %al,-0x92(%rbp)
mov    -0x92(%rbp),%al
test   $0x1,%al
jne    1409 <printf_binary_handler+0x2c9>
jmp    1449 <printf_binary_handler+0x309>
mov    -0x3c(%rbp),%eax
sub    -0x30(%rbp),%eax
mov    -0x20(%rbp),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
jg     1423 <printf_binary_handler+0x2e3>
jmp    1449 <printf_binary_handler+0x309>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x20(%rbp)
movsbl (%rax),%eax
add    -0x30(%rbp),%eax
mov    %eax,-0x30(%rbp)
jmp    13c2 <printf_binary_handler+0x282>
mov    -0x20(%rbp),%rax
cmpb   $0x0,(%rax)
jne    1470 <printf_binary_handler+0x330>
mov    -0x3c(%rbp),%eax
sub    -0x30(%rbp),%eax
sub    $0x1,%eax
mov    -0x20(%rbp),%rcx
movsbl -0x1(%rcx),%ecx
cltd
idiv   %ecx
add    -0x34(%rbp),%eax
mov    %eax,-0x34(%rbp)
jmp    1475 <printf_binary_handler+0x335>
jmp    147a <printf_binary_handler+0x33a>
jmp    147f <printf_binary_handler+0x33f>
mov    -0x10(%rbp),%rcx
xor    %eax,%eax
cmpq   $0x0,0x8(%rcx)
mov    %al,-0x93(%rbp)
jne    14b3 <printf_binary_handler+0x373>
mov    -0x10(%rbp),%rax
mov    0x4(%rax),%eax
mov    -0x34(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x34(%rbp)
cmp    %ecx,%eax
setg   %al
mov    %al,-0x93(%rbp)
mov    -0x93(%rbp),%al
test   $0x1,%al
jne    14c6 <printf_binary_handler+0x386>
jmp    14e5 <printf_binary_handler+0x3a5>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rax
mov    %eax,%edx
lea    0xb26(%rip),%rsi
call   1060 <fprintf@plt>
jmp    147f <printf_binary_handler+0x33f>
mov    -0x10(%rbp),%rax
cmpq   $0x0,0x18(%rax)
je     1597 <printf_binary_handler+0x457>
jmp    14f9 <printf_binary_handler+0x3b9>
cmpl   $0x0,-0x3c(%rbp)
je     1592 <printf_binary_handler+0x452>
mov    -0x3c(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x3c(%rbp)
cmp    -0x38(%rbp),%eax
jle    1527 <printf_binary_handler+0x3e7>
mov    $0x30,%eax
mov    %eax,-0x98(%rbp)
jmp    1540 <printf_binary_handler+0x400>
mov    -0x60(%rbp),%rax
mov    %rax,%rcx
add    $0xffffffffffffffff,%rcx
mov    %rcx,-0x60(%rbp)
movsbl -0x1(%rax),%eax
mov    %eax,-0x98(%rbp)
mov    -0x98(%rbp),%eax
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1050 <fputc@plt>
cmpl   $0x0,-0x3c(%rbp)
je     158d <printf_binary_handler+0x44d>
mov    -0x3c(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    158d <printf_binary_handler+0x44d>
mov    -0x10(%rbp),%rax
cmpq   $0x0,0x10(%rax)
je     158d <printf_binary_handler+0x44d>
mov    -0x8(%rbp),%rsi
mov    $0x2e,%edi
call   1050 <fputc@plt>
jmp    14f9 <printf_binary_handler+0x3b9>
jmp    1864 <printf_binary_handler+0x724>
cmpl   $0x0,-0x2c(%rbp)
je     17f7 <printf_binary_handler+0x6b7>
mov    -0x20(%rbp),%rax
cmpb   $0x0,(%rax)
je     1618 <printf_binary_handler+0x4d8>
jmp    15b3 <printf_binary_handler+0x473>
mov    -0x3c(%rbp),%eax
cmp    -0x30(%rbp),%eax
jle    1613 <printf_binary_handler+0x4d3>
mov    -0x3c(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x3c(%rbp)
cmp    -0x38(%rbp),%eax
jle    15e3 <printf_binary_handler+0x4a3>
mov    $0x30,%eax
mov    %eax,-0x9c(%rbp)
jmp    15fc <printf_binary_handler+0x4bc>
mov    -0x60(%rbp),%rax
mov    %rax,%rcx
add    $0xffffffffffffffff,%rcx
mov    %rcx,-0x60(%rbp)
movsbl -0x1(%rax),%eax
mov    %eax,-0x9c(%rbp)
mov    -0x9c(%rbp),%eax
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1050 <fputc@plt>
jmp    15b3 <printf_binary_handler+0x473>
jmp    1750 <printf_binary_handler+0x610>
mov    -0x3c(%rbp),%eax
sub    -0x30(%rbp),%eax
mov    -0x20(%rbp),%rcx
movsbl -0x1(%rcx),%ecx
cltd
idiv   %ecx
mov    %edx,-0x64(%rbp)
cmpl   $0x0,-0x64(%rbp)
jne    1641 <printf_binary_handler+0x501>
mov    -0x20(%rbp),%rax
movsbl -0x1(%rax),%eax
mov    %eax,-0x64(%rbp)
jmp    1646 <printf_binary_handler+0x506>
mov    -0x64(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x64(%rbp)
cmp    $0x0,%eax
je     16ae <printf_binary_handler+0x56e>
mov    -0x3c(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x3c(%rbp)
cmp    -0x38(%rbp),%eax
jle    167e <printf_binary_handler+0x53e>
mov    $0x30,%eax
mov    %eax,-0xa0(%rbp)
jmp    1697 <printf_binary_handler+0x557>
mov    -0x60(%rbp),%rax
mov    %rax,%rcx
add    $0xffffffffffffffff,%rcx
mov    %rcx,-0x60(%rbp)
movsbl -0x1(%rax),%eax
mov    %eax,-0xa0(%rbp)
mov    -0xa0(%rbp),%eax
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1050 <fputc@plt>
jmp    1646 <printf_binary_handler+0x506>
jmp    16b3 <printf_binary_handler+0x573>
mov    -0x3c(%rbp),%eax
cmp    -0x30(%rbp),%eax
jle    174b <printf_binary_handler+0x60b>
mov    -0x28(%rbp),%rax
mov    0x8(%rax),%edi
mov    -0x8(%rbp),%rsi
call   1040 <fputs@plt>
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
mov    -0x20(%rbp),%rcx
movsbl -0x1(%rcx),%ecx
cmp    %ecx,%eax
jge    1746 <printf_binary_handler+0x606>
mov    -0x3c(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x3c(%rbp)
cmp    -0x38(%rbp),%eax
jle    170d <printf_binary_handler+0x5cd>
mov    $0x30,%eax
mov    %eax,-0xa4(%rbp)
jmp    1726 <printf_binary_handler+0x5e6>
mov    -0x60(%rbp),%rax
mov    %rax,%rcx
add    $0xffffffffffffffff,%rcx
mov    %rcx,-0x60(%rbp)
movsbl -0x1(%rax),%eax
mov    %eax,-0xa4(%rbp)
mov    -0xa4(%rbp),%eax
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1050 <fputc@plt>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    16d6 <printf_binary_handler+0x596>
jmp    16b3 <printf_binary_handler+0x573>
jmp    1750 <printf_binary_handler+0x610>
jmp    1755 <printf_binary_handler+0x615>
cmpl   $0x0,-0x3c(%rbp)
je     17f2 <printf_binary_handler+0x6b2>
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0xffffffffffffffff,%rcx
mov    %rcx,-0x20(%rbp)
movsbl -0x1(%rax),%eax
mov    %eax,-0x68(%rbp)
mov    -0x28(%rbp),%rax
mov    0x8(%rax),%edi
mov    -0x8(%rbp),%rsi
call   1040 <fputs@plt>
mov    -0x68(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x68(%rbp)
cmp    $0x0,%eax
je     17ed <printf_binary_handler+0x6ad>
mov    -0x3c(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x3c(%rbp)
cmp    -0x38(%rbp),%eax
jle    17bd <printf_binary_handler+0x67d>
mov    $0x30,%eax
mov    %eax,-0xa8(%rbp)
jmp    17d6 <printf_binary_handler+0x696>
mov    -0x60(%rbp),%rax
mov    %rax,%rcx
add    $0xffffffffffffffff,%rcx
mov    %rcx,-0x60(%rbp)
movsbl -0x1(%rax),%eax
mov    %eax,-0xa8(%rbp)
mov    -0xa8(%rbp),%eax
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1050 <fputc@plt>
jmp    1785 <printf_binary_handler+0x645>
jmp    1755 <printf_binary_handler+0x615>
jmp    185f <printf_binary_handler+0x71f>
jmp    17fc <printf_binary_handler+0x6bc>
cmpl   $0x0,-0x3c(%rbp)
je     185a <printf_binary_handler+0x71a>
mov    -0x3c(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x3c(%rbp)
cmp    -0x38(%rbp),%eax
jle    182a <printf_binary_handler+0x6ea>
mov    $0x30,%eax
mov    %eax,-0xac(%rbp)
jmp    1843 <printf_binary_handler+0x703>
mov    -0x60(%rbp),%rax
mov    %rax,%rcx
add    $0xffffffffffffffff,%rcx
mov    %rcx,-0x60(%rbp)
movsbl -0x1(%rax),%eax
mov    %eax,-0xac(%rbp)
mov    -0xac(%rbp),%eax
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1050 <fputc@plt>
jmp    17fc <printf_binary_handler+0x6bc>
jmp    185f <printf_binary_handler+0x71f>
jmp    1864 <printf_binary_handler+0x724>
jmp    1869 <printf_binary_handler+0x729>
mov    -0x10(%rbp),%rcx
xor    %eax,%eax
cmpq   $0x0,0x8(%rcx)
mov    %al,-0xad(%rbp)
je     189d <printf_binary_handler+0x75d>
mov    -0x10(%rbp),%rax
mov    0x4(%rax),%eax
mov    -0x34(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x34(%rbp)
cmp    %ecx,%eax
setg   %al
mov    %al,-0xad(%rbp)
mov    -0xad(%rbp),%al
test   $0x1,%al
jne    18b0 <printf_binary_handler+0x770>
jmp    18c3 <printf_binary_handler+0x783>
mov    -0x8(%rbp),%rsi
mov    $0x20,%edi
call   1050 <fputc@plt>
jmp    1869 <printf_binary_handler+0x729>
mov    -0x34(%rbp),%eax
sub    $0x1,%eax
mov    -0x50(%rbp),%rcx
mov    %rcx,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printf_binary_handler>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rsi,%r15
mov    %rdi,-0x30(%rbp)
cmpq   $0x0,0x40(%rsi)
jne    116a <printf_binary_handler+0x2a>
cmpq   $0x0,0x38(%r15)
je     123c <printf_binary_handler+0xfc>
mov    (%rdx),%rax
mov    (%rax),%rax
mov    0x2e69(%rip),%rcx
movslq (%rcx),%rdx
mov    %rsp,%rcx
lea    0xf(,%rdx,8),%rdx
and    $0xfffffffffffffff0,%rdx
sub    %rdx,%rcx
mov    %rcx,%rsp
mov    %rcx,%r13
test   %rax,%rax
je     11bc <printf_binary_handler+0x7c>
mov    %rcx,%r13
mov    %rax,%rdx
nopl   (%rax)
mov    %eax,%ebx
and    $0x1,%bl
or     $0x30,%bl
mov    %bl,0x0(%r13)
add    $0x1,%r13
shr    %rdx
cmp    $0x1,%rax
mov    %rdx,%rax
ja     11a0 <printf_binary_handler+0x60>
mov    %r13d,%r14d
sub    %ecx,%r14d
mov    (%r15),%eax
test   %eax,%eax
mov    $0x1,%ecx
cmovns %eax,%ecx
cmp    %r14d,%ecx
cmovl  %r14d,%ecx
cmpq   $0x0,0x18(%r15)
je     1203 <printf_binary_handler+0xc3>
mov    %ecx,%r12d
neg    %r12d
and    $0x3,%r12d
add    %ecx,%r12d
je     1233 <printf_binary_handler+0xf3>
lea    -0x1(%r12),%ecx
shr    $0x2,%ecx
xor    %edx,%edx
cmpq   $0x0,0x10(%r15)
cmove  %edx,%ecx
add    %r12d,%ecx
jmp    1257 <printf_binary_handler+0x117>
cmpq   $0x0,0x10(%r15)
je     1252 <printf_binary_handler+0x112>
xor    %eax,%eax
mov    %rcx,%rbx
call   1030 <localeconv@plt>
mov    %rbx,%rcx
mov    %rax,%rdx
mov    %rax,-0x48(%rbp)
mov    (%rax),%rbx
cmpb   $0x0,(%rbx)
setne  %dl
mov    %ecx,%r12d
cmpq   $0x0,0x8(%r15)
jne    12a3 <printf_binary_handler+0x163>
jmp    1266 <printf_binary_handler+0x126>
xor    %ecx,%ecx
xor    %edx,%edx
xor    %r12d,%r12d
jmp    1257 <printf_binary_handler+0x117>
cmpq   $0x0,0x30(%r15)
je     14ba <printf_binary_handler+0x37a>
mov    (%rdx),%rax
movzbl (%rax),%eax
jmp    1544 <printf_binary_handler+0x404>
xor    %edx,%edx
mov    %ecx,%r12d
xor    %eax,%eax
mov    %rax,-0x48(%rbp)
xor    %ebx,%ebx
cmpq   $0x0,0x8(%r15)
jne    12a3 <printf_binary_handler+0x163>
mov    %rdx,-0x38(%rbp)
mov    %rbx,-0x40(%rbp)
xchg   %ax,%ax
mov    %ecx,%ebx
cmp    %ecx,0x4(%r15)
jle    1296 <printf_binary_handler+0x156>
mov    0x20(%r15),%edx
mov    -0x30(%rbp),%rdi
lea    0xd7a(%rip),%rsi
call   1060 <fprintf@plt>
lea    0x1(%rbx),%ecx
cmpq   $0x0,0x8(%r15)
je     1270 <printf_binary_handler+0x130>
add    $0x1,%ebx
mov    %ebx,%ecx
mov    -0x40(%rbp),%rbx
mov    -0x38(%rbp),%rdx
cmpq   $0x0,0x18(%r15)
mov    %rcx,-0x58(%rbp)
je     12fc <printf_binary_handler+0x1bc>
xchg   %ax,%ax
test   %r12d,%r12d
je     1323 <printf_binary_handler+0x1e3>
mov    %r12d,%ebx
mov    $0x30,%al
cmp    %r14d,%r12d
jg     12c8 <printf_binary_handler+0x188>
movzbl -0x1(%r13),%eax
add    $0xffffffffffffffff,%r13
lea    -0x1(%rbx),%r12d
movsbl %al,%edi
mov    -0x30(%rbp),%rsi
call   1050 <fputc@plt>
cmp    $0x1,%ebx
je     12b0 <printf_binary_handler+0x170>
mov    %r12d,%eax
and    $0x3,%eax
jne    12b0 <printf_binary_handler+0x170>
cmpq   $0x0,0x10(%r15)
je     12b0 <printf_binary_handler+0x170>
mov    $0x2e,%edi
mov    -0x30(%rbp),%rsi
call   1050 <fputc@plt>
jmp    12b0 <printf_binary_handler+0x170>
test   %dl,%dl
je     137c <printf_binary_handler+0x23c>
cmpb   $0x0,(%rbx)
mov    %r15,-0x50(%rbp)
je     146c <printf_binary_handler+0x32c>
test   %r12d,%r12d
jg     13ba <printf_binary_handler+0x27a>
test   %r12d,%r12d
mov    -0x50(%rbp),%r15
jne    13f9 <printf_binary_handler+0x2b9>
cmpq   $0x0,0x8(%r15)
je     1456 <printf_binary_handler+0x316>
mov    -0x58(%rbp),%rax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %eax,%ebx
cmp    %eax,0x4(%r15)
jle    1360 <printf_binary_handler+0x220>
mov    $0x20,%edi
mov    -0x30(%rbp),%rsi
call   1050 <fputc@plt>
lea    0x1(%rbx),%eax
cmpq   $0x0,0x8(%r15)
jne    1340 <printf_binary_handler+0x200>
add    $0x1,%ebx
mov    %ebx,%eax
jmp    145a <printf_binary_handler+0x31a>
nopw   0x0(%rax,%rax,1)
movsbl %al,%edi
mov    -0x30(%rbp),%rsi
call   1050 <fputc@plt>
test   %r12d,%r12d
je     1323 <printf_binary_handler+0x1e3>
mov    %r12d,%ecx
lea    -0x1(%rcx),%r12d
mov    $0x30,%al
cmp    %r14d,%ecx
jg     1370 <printf_binary_handler+0x230>
movzbl -0x1(%r13),%eax
add    $0xffffffffffffffff,%r13
jmp    1370 <printf_binary_handler+0x230>
nopw   0x0(%rax,%rax,1)
movsbl %al,%edi
mov    -0x30(%rbp),%rsi
call   1050 <fputc@plt>
lea    0x1(%r12),%eax
cmp    $0x1,%eax
jbe    1323 <printf_binary_handler+0x1e3>
mov    %r12d,%ecx
lea    -0x1(%rcx),%r12d
mov    $0x30,%al
cmp    %r14d,%ecx
jg     13a0 <printf_binary_handler+0x260>
movzbl -0x1(%r13),%eax
add    $0xffffffffffffffff,%r13
jmp    13a0 <printf_binary_handler+0x260>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
sub    -0x38(%rbp),%r12d
mov    -0x50(%rbp),%r15
mov    -0x40(%rbp),%rbx
add    $0xffffffffffffffff,%rbx
test   %r12d,%r12d
je     1323 <printf_binary_handler+0x1e3>
movsbl -0x1(%rbx),%r15d
mov    -0x48(%rbp),%rax
mov    0x8(%rax),%edi
mov    -0x30(%rbp),%rsi
call   1040 <fputs@plt>
test   %r15d,%r15d
je     1450 <printf_binary_handler+0x310>
mov    %rbx,-0x40(%rbp)
mov    %r15d,-0x38(%rbp)
mov    %r12d,%ebx
jmp    1434 <printf_binary_handler+0x2f4>
movsbl %al,%edi
mov    -0x30(%rbp),%rsi
call   1050 <fputc@plt>
add    $0xffffffff,%ebx
test   %r15d,%r15d
je     13e0 <printf_binary_handler+0x2a0>
add    $0xffffffff,%r15d
mov    $0x30,%al
cmp    %r14d,%ebx
jg     1420 <printf_binary_handler+0x2e0>
movzbl -0x1(%r13),%eax
add    $0xffffffffffffffff,%r13
jmp    1420 <printf_binary_handler+0x2e0>
nopw   0x0(%rax,%rax,1)
mov    -0x50(%rbp),%r15
jmp    13ec <printf_binary_handler+0x2ac>
mov    -0x58(%rbp),%rax
add    $0xffffffff,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
movsbl -0x1(%rbx),%ecx
mov    %r12d,%eax
cltd
idiv   %ecx
test   %edx,%edx
cmove  %ecx,%edx
test   %edx,%edx
je     14e0 <printf_binary_handler+0x3a0>
mov    %rbx,-0x40(%rbp)
mov    %edx,-0x38(%rbp)
mov    %edx,%r15d
mov    %r12d,%ebx
jmp    14a4 <printf_binary_handler+0x364>
xchg   %ax,%ax
movsbl %al,%edi
mov    -0x30(%rbp),%rsi
call   1050 <fputc@plt>
add    $0xffffffff,%ebx
test   %r15d,%r15d
je     14c9 <printf_binary_handler+0x389>
add    $0xffffffff,%r15d
mov    $0x30,%al
cmp    %r14d,%ebx
jg     1490 <printf_binary_handler+0x350>
movzbl -0x1(%r13),%eax
add    $0xffffffffffffffff,%r13
jmp    1490 <printf_binary_handler+0x350>
cmpq   $0x0,0x28(%r15)
je     153f <printf_binary_handler+0x3ff>
mov    (%rdx),%rax
movzwl (%rax),%eax
jmp    1544 <printf_binary_handler+0x404>
sub    -0x38(%rbp),%r12d
mov    -0x40(%rbp),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
test   %r12d,%r12d
jle    1316 <printf_binary_handler+0x1d6>
mov    -0x48(%rbp),%rax
mov    0x8(%rax),%edi
mov    -0x30(%rbp),%rsi
call   1040 <fputs@plt>
cmpb   $0x0,-0x1(%rbx)
jle    14e0 <printf_binary_handler+0x3a0>
xor    %r15d,%r15d
jmp    152d <printf_binary_handler+0x3ed>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsbl %al,%edi
mov    -0x30(%rbp),%rsi
call   1050 <fputc@plt>
add    $0x1,%r15d
movsbl -0x1(%rbx),%eax
add    $0xffffffff,%r12d
cmp    %eax,%r15d
jge    14e0 <printf_binary_handler+0x3a0>
mov    $0x30,%al
cmp    %r14d,%r12d
jg     1510 <printf_binary_handler+0x3d0>
movzbl -0x1(%r13),%eax
add    $0xffffffffffffffff,%r13
jmp    1510 <printf_binary_handler+0x3d0>
mov    (%rdx),%rax
mov    (%rax),%eax
mov    %eax,%eax
jmp    1170 <printf_binary_handler+0x30>

LLVM IR (-O0):
%struct.printf_info = type { i32, i32, i64, i64, i64, i64, i64, i64, i64, i64 }
%struct.lconv = type { i8*, i32 }
@CHAR_BIT = global i32 0
@CHAR_MAX = constant i8 0
@.str = [4 x i8] c"%lc\00"
define i32 @printf_binary_handler(i32* %0, %struct.printf_info* %1, i8** %2) {
%4 = alloca i32*
%5 = alloca %struct.printf_info*
%6 = alloca i8**
%7 = alloca i8*
%8 = alloca %struct.lconv*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i64
%15 = alloca i8*
%16 = alloca i64
%17 = alloca i8*
%18 = alloca i32
%19 = alloca i32
store i32* %0, i32** %4
store %struct.printf_info* %1, %struct.printf_info** %5
store i8** %2, i8*** %6
store i8* null, i8** %7
store %struct.lconv* null, %struct.lconv** %8
store i32 0, i32* %9
store i32 0, i32* %10
store i32 0, i32* %11
%20 = load %struct.printf_info*, %struct.printf_info** %5
%21 = getelementptr inbounds %struct.printf_info, %struct.printf_info* %20, i32 0, i32 9
%22 = load i64, i64* %21
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %30
24: ; preds = %3
%25 = load i8**, i8*** %6
%26 = getelementptr inbounds i8*, i8** %25, i64 0
%27 = load i8*, i8** %26
%28 = bitcast i8* %27 to i64*
%29 = load i64, i64* %28
br label %77
30: ; preds = %3
%31 = load %struct.printf_info*, %struct.printf_info** %5
%32 = getelementptr inbounds %struct.printf_info, %struct.printf_info* %31, i32 0, i32 8
%33 = load i64, i64* %32
%34 = icmp ne i64 %33, 0
br i1 %34, label %35, label %41
35: ; preds = %30
%36 = load i8**, i8*** %6
%37 = getelementptr inbounds i8*, i8** %36, i64 0
%38 = load i8*, i8** %37
%39 = bitcast i8* %38 to i64*
%40 = load i64, i64* %39
br label %75
41: ; preds = %30
%42 = load %struct.printf_info*, %struct.printf_info** %5
%43 = getelementptr inbounds %struct.printf_info, %struct.printf_info* %42, i32 0, i32 7
%44 = load i64, i64* %43
%45 = icmp ne i64 %44, 0
br i1 %45, label %46, label %52
46: ; preds = %41
%47 = load i8**, i8*** %6
%48 = getelementptr inbounds i8*, i8** %47, i64 0
%49 = load i8*, i8** %48
%50 = load i8, i8* %49
%51 = zext i8 %50 to i32
br label %72
52: ; preds = %41
%53 = load %struct.printf_info*, %struct.printf_info** %5
%54 = getelementptr inbounds %struct.printf_info, %struct.printf_info* %53, i32 0, i32 6
%55 = load i64, i64* %54
%56 = icmp ne i64 %55, 0
br i1 %56, label %57, label %64
57: ; preds = %52
%58 = load i8**, i8*** %6
%59 = getelementptr inbounds i8*, i8** %58, i64 0
%60 = load i8*, i8** %59
%61 = bitcast i8* %60 to i16*
%62 = load i16, i16* %61
%63 = zext i16 %62 to i32
br label %70
64: ; preds = %52
%65 = load i8**, i8*** %6
%66 = getelementptr inbounds i8*, i8** %65, i64 0
%67 = load i8*, i8** %66
%68 = bitcast i8* %67 to i32*
%69 = load i32, i32* %68
br label %70
70: ; preds = %64, %57
%71 = phi i32 [ %63, %57 ], [ %69, %64 ]
br label %72
72: ; preds = %70, %46
%73 = phi i32 [ %51, %46 ], [ %71, %70 ]
%74 = zext i32 %73 to i64
br label %75
75: ; preds = %72, %35
%76 = phi i64 [ %40, %35 ], [ %74, %72 ]
br label %77
77: ; preds = %75, %24
%78 = phi i64 [ %29, %24 ], [ %76, %75 ]
store i64 %78, i64* %14
%79 = load i32, i32* @CHAR_BIT
%80 = sext i32 %79 to i64
%81 = mul i64 8, %80
%82 = call i8* @llvm.stacksave()
store i8* %82, i8** %15
%83 = alloca i8, i64 %81
store i64 %81, i64* %16
store i8* %83, i8** %17
br label %84
84: ; preds = %87, %77
%85 = load i64, i64* %14
%86 = icmp ne i64 %85, 0
br i1 %86, label %87, label %96
87: ; preds = %84
%88 = load i64, i64* %14
%89 = and i64 %88, 1
%90 = add i64 48, %89
%91 = trunc i64 %90 to i8
%92 = load i8*, i8** %17
%93 = getelementptr inbounds i8, i8* %92, i32 1
store i8* %93, i8** %17
store i8 %91, i8* %92
%94 = load i64, i64* %14
%95 = lshr i64 %94, 1
store i64 %95, i64* %14
br label %84
96: ; preds = %84
%97 = load i8*, i8** %17
%98 = ptrtoint i8* %97 to i64
%99 = ptrtoint i8* %83 to i64
%100 = sub i64 %98, %99
%101 = trunc i64 %100 to i32
store i32 %101, i32* %12
%102 = load %struct.printf_info*, %struct.printf_info** %5
%103 = getelementptr inbounds %struct.printf_info, %struct.printf_info* %102, i32 0, i32 0
%104 = load i32, i32* %103
%105 = icmp slt i32 %104, 0
br i1 %105, label %106, label %107
106: ; preds = %96
br label %111
107: ; preds = %96
%108 = load %struct.printf_info*, %struct.printf_info** %5
%109 = getelementptr inbounds %struct.printf_info, %struct.printf_info* %108, i32 0, i32 0
%110 = load i32, i32* %109
br label %111
111: ; preds = %107, %106
%112 = phi i32 [ 1, %106 ], [ %110, %107 ]
store i32 %112, i32* %13
%113 = load i32, i32* %12
%114 = load i32, i32* %13
%115 = icmp sgt i32 %113, %114
br i1 %115, label %116, label %118
116: ; preds = %111
%117 = load i32, i32* %12
store i32 %117, i32* %13
br label %118
118: ; preds = %116, %111
%119 = load %struct.printf_info*, %struct.printf_info** %5
%120 = getelementptr inbounds %struct.printf_info, %struct.printf_info* %119, i32 0, i32 4
%121 = load i64, i64* %120
%122 = icmp ne i64 %121, 0
br i1 %122, label %123, label %145
123: ; preds = %118
%124 = load i32, i32* %13
%125 = sub nsw i32 0, %124
%126 = and i32 %125, 3
%127 = load i32, i32* %13
%128 = add nsw i32 %127, %126
store i32 %128, i32* %13
%129 = icmp ne i32 %128, 0
br i1 %129, label %130, label %144
130: ; preds = %123
%131 = load i32, i32* %13
%132 = load i32, i32* %13
%133 = sub nsw i32 %132, 1
%134 = sdiv i32 %133, 4
%135 = load %struct.printf_info*, %struct.printf_info** %5
%136 = getelementptr inbounds %struct.printf_info, %struct.printf_info* %135, i32 0, i32 3
%137 = load i64, i64* %136
%138 = icmp ne i64 %137, 0
%139 = xor i1 %138, true
%140 = xor i1 %139, true
%141 = zext i1 %140 to i32
%142 = mul nsw i32 %134, %141
%143 = add nsw i32 %131, %142
store i32 %143, i32* %11
br label %144
144: ; preds = %130, %123
br label %215
145: ; preds = %118
%146 = load i32, i32* %13
store i32 %146, i32* %11
%147 = load %struct.printf_info*, %struct.printf_info** %5
%148 = getelementptr inbounds %struct.printf_info, %struct.printf_info* %147, i32 0, i32 3
%149 = load i64, i64* %148
%150 = icmp ne i64 %149, 0
br i1 %150, label %151, label %159
151: ; preds = %145
%152 = call %struct.lconv* (...) @localeconv()
store %struct.lconv* %152, %struct.lconv** %8
%153 = load %struct.lconv*, %struct.lconv** %8
%154 = getelementptr inbounds %struct.lconv, %struct.lconv* %153, i32 0, i32 0
%155 = load i8*, i8** %154
store i8* %155, i8** %7
%156 = load i8, i8* %155
%157 = sext i8 %156 to i32
%158 = icmp ne i32 %157, 0
br label %159
159: ; preds = %151, %145
%160 = phi i1 [ false, %145 ], [ %158, %151 ]
%161 = zext i1 %160 to i32
store i32 %161, i32* %9
%162 = load i32, i32* %9
%163 = icmp ne i32 %162, 0
br i1 %163, label %164, label %214
164: ; preds = %159
br label %165
165: ; preds = %188, %164
%166 = load i8*, i8** %7
%167 = load i8, i8* %166
%168 = sext i8 %167 to i32
%169 = icmp sgt i32 %168, 0
br i1 %169, label %170, label %177
170: ; preds = %165
%171 = load i8*, i8** %7
%172 = load i8, i8* %171
%173 = sext i8 %172 to i32
%174 = load i8, i8* @CHAR_MAX
%175 = sext i8 %174 to i32
%176 = icmp slt i32 %173, %175
br label %177
177: ; preds = %170, %165
%178 = phi i1 [ false, %165 ], [ %176, %170 ]
br i1 %178, label %179, label %197
179: ; preds = %177
%180 = load i32, i32* %13
%181 = load i32, i32* %10
%182 = sub nsw i32 %180, %181
%183 = load i8*, i8** %7
%184 = load i8, i8* %183
%185 = sext i8 %184 to i32
%186 = icmp sle i32 %182, %185
br i1 %186, label %187, label %188
187: ; preds = %179
br label %197
188: ; preds = %179
%189 = load i32, i32* %11
%190 = add nsw i32 %189, 1
store i32 %190, i32* %11
%191 = load i8*, i8** %7
%192 = getelementptr inbounds i8, i8* %191, i32 1
store i8* %192, i8** %7
%193 = load i8, i8* %191
%194 = sext i8 %193 to i32
%195 = load i32, i32* %10
%196 = add nsw i32 %195, %194
store i32 %196, i32* %10
br label %165
197: ; preds = %187, %177
%198 = load i8*, i8** %7
%199 = load i8, i8* %198
%200 = icmp ne i8 %199, 0
br i1 %200, label %213, label %201
201: ; preds = %197
%202 = load i32, i32* %13
%203 = load i32, i32* %10
%204 = sub nsw i32 %202, %203
%205 = sub nsw i32 %204, 1
%206 = load i8*, i8** %7
%207 = getelementptr inbounds i8, i8* %206, i64 -1
%208 = load i8, i8* %207
%209 = sext i8 %208 to i32
%210 = sdiv i32 %205, %209
%211 = load i32, i32* %11
%212 = add nsw i32 %211, %210
store i32 %212, i32* %11
br label %213
213: ; preds = %201, %197
br label %214
214: ; preds = %213, %159
br label %215
215: ; preds = %214, %144
br label %216
216: ; preds = %230, %215
%217 = load %struct.printf_info*, %struct.printf_info** %5
%218 = getelementptr inbounds %struct.printf_info, %struct.printf_info* %217, i32 0, i32 2
%219 = load i64, i64* %218
%220 = icmp ne i64 %219, 0
br i1 %220, label %228, label %221
221: ; preds = %216
%222 = load %struct.printf_info*, %struct.printf_info** %5
%223 = getelementptr inbounds %struct.printf_info, %struct.printf_info* %222, i32 0, i32 1
%224 = load i32, i32* %223
%225 = load i32, i32* %11
%226 = add nsw i32 %225, 1
store i32 %226, i32* %11
%227 = icmp sgt i32 %224, %225
br label %228
228: ; preds = %221, %216
%229 = phi i1 [ false, %216 ], [ %227, %221 ]
br i1 %229, label %230, label %237
230: ; preds = %228
%231 = load i32*, i32** %4
%232 = load %struct.printf_info*, %struct.printf_info** %5
%233 = getelementptr inbounds %struct.printf_info, %struct.printf_info* %232, i32 0, i32 5
%234 = load i64, i64* %233
%235 = trunc i64 %234 to i32
%236 = call i32 @fprintf(i32* %231, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %235)
br label %216
237: ; preds = %228
%238 = load %struct.printf_info*, %struct.printf_info** %5
%239 = getelementptr inbounds %struct.printf_info, %struct.printf_info* %238, i32 0, i32 4
%240 = load i64, i64* %239
%241 = icmp ne i64 %240, 0
br i1 %241, label %242, label %278
242: ; preds = %237
br label %243
243: ; preds = %276, %242
%244 = load i32, i32* %13
%245 = icmp ne i32 %244, 0
br i1 %245, label %246, label %277
246: ; preds = %243
%247 = load i32, i32* %13
%248 = add nsw i32 %247, -1
store i32 %248, i32* %13
%249 = load i32, i32* %12
%250 = icmp sgt i32 %247, %249
br i1 %250, label %251, label %252
251: ; preds = %246
br label %257
252: ; preds = %246
%253 = load i8*, i8** %17
%254 = getelementptr inbounds i8, i8* %253, i32 -1
store i8* %254, i8** %17
%255 = load i8, i8* %254
%256 = sext i8 %255 to i32
br label %257
257: ; preds = %252, %251
%258 = phi i32 [ 48, %251 ], [ %256, %252 ]
%259 = trunc i32 %258 to i8
%260 = load i32*, i32** %4
%261 = call i32 @fputc(i8 signext %259, i32* %260)
%262 = load i32, i32* %13
%263 = icmp ne i32 %262, 0
br i1 %263, label %264, label %276
264: ; preds = %257
%265 = load i32, i32* %13
%266 = srem i32 %265, 4
%267 = icmp ne i32 %266, 0
br i1 %267, label %276, label %268
268: ; preds = %264
%269 = load %struct.printf_info*, %struct.printf_info** %5
%270 = getelementptr inbounds %struct.printf_info, %struct.printf_info* %269, i32 0, i32 3
%271 = load i64, i64* %270
%272 = icmp ne i64 %271, 0
br i1 %272, label %273, label %276
273: ; preds = %268
%274 = load i32*, i32** %4
%275 = call i32 @fputc(i8 signext 46, i32* %274)
br label %276
276: ; preds = %273, %268, %264, %257
br label %243
277: ; preds = %243
br label %441
278: ; preds = %237
%279 = load i32, i32* %9
%280 = icmp ne i32 %279, 0
br i1 %280, label %281, label %419
281: ; preds = %278
%282 = load i8*, i8** %7
%283 = load i8, i8* %282
%284 = icmp ne i8 %283, 0
br i1 %284, label %285, label %307
285: ; preds = %281
br label %286
286: ; preds = %301, %285
%287 = load i32, i32* %13
%288 = load i32, i32* %10
%289 = icmp sgt i32 %287, %288
br i1 %289, label %290, label %306
290: ; preds = %286
%291 = load i32, i32* %13
%292 = add nsw i32 %291, -1
store i32 %292, i32* %13
%293 = load i32, i32* %12
%294 = icmp sgt i32 %291, %293
br i1 %294, label %295, label %296
295: ; preds = %290
br label %301
296: ; preds = %290
%297 = load i8*, i8** %17
%298 = getelementptr inbounds i8, i8* %297, i32 -1
store i8* %298, i8** %17
%299 = load i8, i8* %298
%300 = sext i8 %299 to i32
br label %301
301: ; preds = %296, %295
%302 = phi i32 [ 48, %295 ], [ %300, %296 ]
%303 = trunc i32 %302 to i8
%304 = load i32*, i32** %4
%305 = call i32 @fputc(i8 signext %303, i32* %304)
br label %286
306: ; preds = %286
br label %383
307: ; preds = %281
%308 = load i32, i32* %13
%309 = load i32, i32* %10
%310 = sub nsw i32 %308, %309
%311 = load i8*, i8** %7
%312 = getelementptr inbounds i8, i8* %311, i64 -1
%313 = load i8, i8* %312
%314 = sext i8 %313 to i32
%315 = srem i32 %310, %314
store i32 %315, i32* %18
%316 = load i32, i32* %18
%317 = icmp ne i32 %316, 0
br i1 %317, label %323, label %318
318: ; preds = %307
%319 = load i8*, i8** %7
%320 = getelementptr inbounds i8, i8* %319, i64 -1
%321 = load i8, i8* %320
%322 = sext i8 %321 to i32
store i32 %322, i32* %18
br label %323
323: ; preds = %318, %307
br label %324
324: ; preds = %339, %323
%325 = load i32, i32* %18
%326 = add nsw i32 %325, -1
store i32 %326, i32* %18
%327 = icmp ne i32 %325, 0
br i1 %327, label %328, label %344
328: ; preds = %324
%329 = load i32, i32* %13
%330 = add nsw i32 %329, -1
store i32 %330, i32* %13
%331 = load i32, i32* %12
%332 = icmp sgt i32 %329, %331
br i1 %332, label %333, label %334
333: ; preds = %328
br label %339
334: ; preds = %328
%335 = load i8*, i8** %17
%336 = getelementptr inbounds i8, i8* %335, i32 -1
store i8* %336, i8** %17
%337 = load i8, i8* %336
%338 = sext i8 %337 to i32
br label %339
339: ; preds = %334, %333
%340 = phi i32 [ 48, %333 ], [ %338, %334 ]
%341 = trunc i32 %340 to i8
%342 = load i32*, i32** %4
%343 = call i32 @fputc(i8 signext %341, i32* %342)
br label %324
344: ; preds = %324
br label %345
345: ; preds = %381, %344
%346 = load i32, i32* %13
%347 = load i32, i32* %10
%348 = icmp sgt i32 %346, %347
br i1 %348, label %349, label %382
349: ; preds = %345
%350 = load %struct.lconv*, %struct.lconv** %8
%351 = getelementptr inbounds %struct.lconv, %struct.lconv* %350, i32 0, i32 1
%352 = load i32, i32* %351
%353 = load i32*, i32** %4
%354 = call i32 @fputs(i32 %352, i32* %353)
store i32 0, i32* %18
br label %355
355: ; preds = %378, %349
%356 = load i32, i32* %18
%357 = load i8*, i8** %7
%358 = getelementptr inbounds i8, i8* %357, i64 -1
%359 = load i8, i8* %358
%360 = sext i8 %359 to i32
%361 = icmp slt i32 %356, %360
br i1 %361, label %362, label %381
362: ; preds = %355
%363 = load i32, i32* %13
%364 = add nsw i32 %363, -1
store i32 %364, i32* %13
%365 = load i32, i32* %12
%366 = icmp sgt i32 %363, %365
br i1 %366, label %367, label %368
367: ; preds = %362
br label %373
368: ; preds = %362
%369 = load i8*, i8** %17
%370 = getelementptr inbounds i8, i8* %369, i32 -1
store i8* %370, i8** %17
%371 = load i8, i8* %370
%372 = sext i8 %371 to i32
br label %373
373: ; preds = %368, %367
%374 = phi i32 [ 48, %367 ], [ %372, %368 ]
%375 = trunc i32 %374 to i8
%376 = load i32*, i32** %4
%377 = call i32 @fputc(i8 signext %375, i32* %376)
br label %378
378: ; preds = %373
%379 = load i32, i32* %18
%380 = add nsw i32 %379, 1
store i32 %380, i32* %18
br label %355
381: ; preds = %355
br label %345
382: ; preds = %345
br label %383
383: ; preds = %382, %306
br label %384
384: ; preds = %417, %383
%385 = load i32, i32* %13
%386 = icmp ne i32 %385, 0
br i1 %386, label %387, label %418
387: ; preds = %384
%388 = load i8*, i8** %7
%389 = getelementptr inbounds i8, i8* %388, i32 -1
store i8* %389, i8** %7
%390 = load i8, i8* %389
%391 = sext i8 %390 to i32
store i32 %391, i32* %19
%392 = load %struct.lconv*, %struct.lconv** %8
%393 = getelementptr inbounds %struct.lconv, %struct.lconv* %392, i32 0, i32 1
%394 = load i32, i32* %393
%395 = load i32*, i32** %4
%396 = call i32 @fputs(i32 %394, i32* %395)
br label %397
397: ; preds = %412, %387
%398 = load i32, i32* %19
%399 = add nsw i32 %398, -1
store i32 %399, i32* %19
%400 = icmp ne i32 %398, 0
br i1 %400, label %401, label %417
401: ; preds = %397
%402 = load i32, i32* %13
%403 = add nsw i32 %402, -1
store i32 %403, i32* %13
%404 = load i32, i32* %12
%405 = icmp sgt i32 %402, %404
br i1 %405, label %406, label %407
406: ; preds = %401
br label %412
407: ; preds = %401
%408 = load i8*, i8** %17
%409 = getelementptr inbounds i8, i8* %408, i32 -1
store i8* %409, i8** %17
%410 = load i8, i8* %409
%411 = sext i8 %410 to i32
br label %412
412: ; preds = %407, %406
%413 = phi i32 [ 48, %406 ], [ %411, %407 ]
%414 = trunc i32 %413 to i8
%415 = load i32*, i32** %4
%416 = call i32 @fputc(i8 signext %414, i32* %415)
br label %397
417: ; preds = %397
br label %384
418: ; preds = %384
br label %440
419: ; preds = %278
br label %420
420: ; preds = %434, %419
%421 = load i32, i32* %13
%422 = icmp ne i32 %421, 0
br i1 %422, label %423, label %439
423: ; preds = %420
%424 = load i32, i32* %13
%425 = add nsw i32 %424, -1
store i32 %425, i32* %13
%426 = load i32, i32* %12
%427 = icmp sgt i32 %424, %426
br i1 %427, label %428, label %429
428: ; preds = %423
br label %434
429: ; preds = %423
%430 = load i8*, i8** %17
%431 = getelementptr inbounds i8, i8* %430, i32 -1
store i8* %431, i8** %17
%432 = load i8, i8* %431
%433 = sext i8 %432 to i32
br label %434
434: ; preds = %429, %428
%435 = phi i32 [ 48, %428 ], [ %433, %429 ]
%436 = trunc i32 %435 to i8
%437 = load i32*, i32** %4
%438 = call i32 @fputc(i8 signext %436, i32* %437)
br label %420
439: ; preds = %420
br label %440
440: ; preds = %439, %418
br label %441
441: ; preds = %440, %277
br label %442
442: ; preds = %456, %441
%443 = load %struct.printf_info*, %struct.printf_info** %5
%444 = getelementptr inbounds %struct.printf_info, %struct.printf_info* %443, i32 0, i32 2
%445 = load i64, i64* %444
%446 = icmp ne i64 %445, 0
br i1 %446, label %447, label %454
447: ; preds = %442
%448 = load %struct.printf_info*, %struct.printf_info** %5
%449 = getelementptr inbounds %struct.printf_info, %struct.printf_info* %448, i32 0, i32 1
%450 = load i32, i32* %449
%451 = load i32, i32* %11
%452 = add nsw i32 %451, 1
store i32 %452, i32* %11
%453 = icmp sgt i32 %450, %451
br label %454
454: ; preds = %447, %442
%455 = phi i1 [ false, %442 ], [ %453, %447 ]
br i1 %455, label %456, label %459
456: ; preds = %454
%457 = load i32*, i32** %4
%458 = call i32 @fputc(i8 signext 32, i32* %457)
br label %442
459: ; preds = %454
%460 = load i32, i32* %11
%461 = sub nsw i32 %460, 1
%462 = load i8*, i8** %15
ret i32 %461
}

LLVM IR (-O2):
%struct.printf_info = type { i32, i32, i64, i64, i64, i64, i64, i64, i64, i64 }
%struct.lconv = type { i8*, i32 }
@CHAR_BIT = global i32 0
@CHAR_MAX = constant i8 0
@.str = [4 x i8] c"%lc\00"
define i32 @printf_binary_handler(i32* %0, %struct.printf_info* nocapture %1, i8** nocapture %2) {
%4 = getelementptr inbounds %struct.printf_info, %struct.printf_info* %1, i64 0, i32 9
%5 = load i64, i64* %4
%6 = icmp eq i64 %5, 0
br i1 %6, label %11, label %7
7: ; preds = %3
%8 = bitcast i8** %2 to i64**
%9 = load i64*, i64** %8
%10 = load i64, i64* %9
br label %43
11: ; preds = %3
%12 = getelementptr inbounds %struct.printf_info, %struct.printf_info* %1, i64 0, i32 8
%13 = load i64, i64* %12
%14 = icmp eq i64 %13, 0
br i1 %14, label %19, label %15
15: ; preds = %11
%16 = bitcast i8** %2 to i64**
%17 = load i64*, i64** %16
%18 = load i64, i64* %17
br label %43
19: ; preds = %11
%20 = getelementptr inbounds %struct.printf_info, %struct.printf_info* %1, i64 0, i32 7
%21 = load i64, i64* %20
%22 = icmp eq i64 %21, 0
br i1 %22, label %27, label %23
23: ; preds = %19
%24 = load i8*, i8** %2
%25 = load i8, i8* %24
%26 = zext i8 %25 to i32
br label %40
27: ; preds = %19
%28 = getelementptr inbounds %struct.printf_info, %struct.printf_info* %1, i64 0, i32 6
%29 = load i64, i64* %28
%30 = icmp eq i64 %29, 0
br i1 %30, label %36, label %31
31: ; preds = %27
%32 = bitcast i8** %2 to i16**
%33 = load i16*, i16** %32
%34 = load i16, i16* %33
%35 = zext i16 %34 to i32
br label %40
36: ; preds = %27
%37 = bitcast i8** %2 to i32**
%38 = load i32*, i32** %37
%39 = load i32, i32* %38
br label %40
40: ; preds = %31, %36, %23
%41 = phi i32 [ %26, %23 ], [ %35, %31 ], [ %39, %36 ]
%42 = zext i32 %41 to i64
br label %43
43: ; preds = %15, %40, %7
%44 = phi i64 [ %10, %7 ], [ %18, %15 ], [ %42, %40 ]
%45 = load i32, i32* @CHAR_BIT
%46 = sext i32 %45 to i64
%47 = shl nsw i64 %46, 3
%48 = alloca i8, i64 %47
%49 = icmp eq i64 %44, 0
br i1 %49, label %59, label %50
50: ; preds = %43, %50
%51 = phi i8* [ %56, %50 ], [ %48, %43 ]
%52 = phi i64 [ %57, %50 ], [ %44, %43 ]
%53 = trunc i64 %52 to i8
%54 = and i8 %53, 1
%55 = or i8 %54, 48
%56 = getelementptr inbounds i8, i8* %51, i64 1
store i8 %55, i8* %51
%57 = lshr i64 %52, 1
%58 = icmp ult i64 %52, 2
br i1 %58, label %59, label %50
59: ; preds = %50, %43
%60 = phi i8* [ %48, %43 ], [ %56, %50 ]
%61 = ptrtoint i8* %60 to i64
%62 = ptrtoint i8* %48 to i64
%63 = sub i64 %61, %62
%64 = trunc i64 %63 to i32
%65 = getelementptr inbounds %struct.printf_info, %struct.printf_info* %1, i64 0, i32 0
%66 = load i32, i32* %65
%67 = icmp slt i32 %66, 0
%68 = select i1 %67, i32 1, i32 %66
%69 = icmp slt i32 %68, %64
%70 = select i1 %69, i32 %64, i32 %68
%71 = getelementptr inbounds %struct.printf_info, %struct.printf_info* %1, i64 0, i32 4
%72 = load i64, i64* %71
%73 = icmp eq i64 %72, 0
br i1 %73, label %87, label %74
74: ; preds = %59
%75 = sub nsw i32 0, %70
%76 = and i32 %75, 3
%77 = add nuw nsw i32 %76, %70
%78 = icmp eq i32 %77, 0
br i1 %78, label %97, label %79
79: ; preds = %74
%80 = add nsw i32 %77, -1
%81 = lshr i32 %80, 2
%82 = getelementptr inbounds %struct.printf_info, %struct.printf_info* %1, i64 0, i32 3
%83 = load i64, i64* %82
%84 = icmp eq i64 %83, 0
%85 = select i1 %84, i32 0, i32 %81
%86 = add nuw nsw i32 %85, %77
br label %97
87: ; preds = %59
%88 = getelementptr inbounds %struct.printf_info, %struct.printf_info* %1, i64 0, i32 3
%89 = load i64, i64* %88
%90 = icmp eq i64 %89, 0
br i1 %90, label %97, label %91
91: ; preds = %87
%92 = call %struct.lconv* (...) @localeconv()
%93 = getelementptr inbounds %struct.lconv, %struct.lconv* %92, i64 0, i32 0
%94 = load i8*, i8** %93
%95 = load i8, i8* %94
%96 = icmp ne i8 %95, 0
br label %97
97: ; preds = %91, %87, %74, %79
%98 = phi i32 [ %86, %79 ], [ 0, %74 ], [ %70, %87 ], [ %70, %91 ]
%99 = phi i1 [ false, %79 ], [ false, %74 ], [ false, %87 ], [ %96, %91 ]
%100 = phi i32 [ %77, %79 ], [ 0, %74 ], [ %70, %87 ], [ %70, %91 ]
%101 = phi %struct.lconv* [ null, %79 ], [ null, %74 ], [ null, %87 ], [ %92, %91 ]
%102 = phi i8* [ null, %79 ], [ null, %74 ], [ null, %87 ], [ %94, %91 ]
%103 = getelementptr inbounds %struct.printf_info, %struct.printf_info* %1, i64 0, i32 1
%104 = getelementptr inbounds %struct.printf_info, %struct.printf_info* %1, i64 0, i32 2
%105 = load i64, i64* %104
%106 = icmp eq i64 %105, 0
br i1 %106, label %107, label %120
107: ; preds = %97
%108 = getelementptr inbounds %struct.printf_info, %struct.printf_info* %1, i64 0, i32 5
br label %109
109: ; preds = %107, %114
%110 = phi i32 [ %98, %107 ], [ %112, %114 ]
%111 = load i32, i32* %103
%112 = add nsw i32 %110, 1
%113 = icmp sgt i32 %111, %110
br i1 %113, label %114, label %120
114: ; preds = %109
%115 = load i64, i64* %108
%116 = trunc i64 %115 to i32
%117 = call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %116)
%118 = load i64, i64* %104
%119 = icmp eq i64 %118, 0
br i1 %119, label %109, label %120
120: ; preds = %109, %114, %97
%121 = phi i32 [ %98, %97 ], [ %112, %114 ], [ %112, %109 ]
%122 = load i64, i64* %71
%123 = icmp eq i64 %122, 0
br i1 %123, label %151, label %124
124: ; preds = %120
%125 = icmp eq i32 %100, 0
br i1 %125, label %281, label %126
126: ; preds = %124
%127 = getelementptr inbounds %struct.printf_info, %struct.printf_info* %1, i64 0, i32 3
br label %128
128: ; preds = %126, %149
%129 = phi i8* [ %60, %126 ], [ %137, %149 ]
%130 = phi i32 [ %100, %126 ], [ %131, %149 ]
%131 = add nsw i32 %130, -1
%132 = icmp sgt i32 %130, %64
br i1 %132, label %136, label %133
133: ; preds = %128
%134 = getelementptr inbounds i8, i8* %129, i64 -1
%135 = load i8, i8* %134
br label %136
136: ; preds = %128, %133
%137 = phi i8* [ %129, %128 ], [ %134, %133 ]
%138 = phi i8 [ 48, %128 ], [ %135, %133 ]
%139 = call i32 @fputc(i8 signext %138, i32* %0)
%140 = icmp ne i32 %131, 0
%141 = and i32 %131, 3
%142 = icmp eq i32 %141, 0
%143 = and i1 %140, %142
br i1 %143, label %144, label %149
144: ; preds = %136
%145 = load i64, i64* %127
%146 = icmp eq i64 %145, 0
br i1 %146, label %149, label %147
147: ; preds = %144
%148 = call i32 @fputc(i8 signext 46, i32* %0)
br label %149
149: ; preds = %147, %144, %136
%150 = icmp eq i32 %131, 0
br i1 %150, label %281, label %128
151: ; preds = %120
br i1 %99, label %154, label %152
152: ; preds = %151
%153 = icmp eq i32 %100, 0
br i1 %153, label %281, label %268
154: ; preds = %151
%155 = load i8, i8* %102
%156 = icmp eq i8 %155, 0
br i1 %156, label %172, label %157
157: ; preds = %154
%158 = icmp sgt i32 %100, 0
br i1 %158, label %159, label %231
159: ; preds = %157, %167
%160 = phi i8* [ %168, %167 ], [ %60, %157 ]
%161 = phi i32 [ %162, %167 ], [ %100, %157 ]
%162 = add nsw i32 %161, -1
%163 = icmp sgt i32 %161, %64
br i1 %163, label %167, label %164
164: ; preds = %159
%165 = getelementptr inbounds i8, i8* %160, i64 -1
%166 = load i8, i8* %165
br label %167
167: ; preds = %159, %164
%168 = phi i8* [ %160, %159 ], [ %165, %164 ]
%169 = phi i8 [ 48, %159 ], [ %166, %164 ]
%170 = call i32 @fputc(i8 signext %169, i32* %0)
%171 = icmp ugt i32 %161, 1
br i1 %171, label %159, label %281
172: ; preds = %154
%173 = getelementptr inbounds i8, i8* %102, i64 -1
%174 = load i8, i8* %173
%175 = sext i8 %174 to i32
%176 = srem i32 %100, %175
%177 = icmp eq i32 %176, 0
%178 = select i1 %177, i32 %175, i32 %176
%179 = icmp eq i32 %178, 0
br i1 %179, label %182, label %188
180: ; preds = %198
%181 = sub i32 %100, %178
br label %182
182: ; preds = %180, %172
%183 = phi i32 [ %100, %172 ], [ %181, %180 ]
%184 = phi i8* [ %60, %172 ], [ %199, %180 ]
%185 = icmp sgt i32 %183, 0
br i1 %185, label %186, label %231
186: ; preds = %182
%187 = getelementptr inbounds %struct.lconv, %struct.lconv* %101, i64 0, i32 1
br label %207
188: ; preds = %172, %198
%189 = phi i32 [ %192, %198 ], [ %178, %172 ]
%190 = phi i8* [ %199, %198 ], [ %60, %172 ]
%191 = phi i32 [ %193, %198 ], [ %100, %172 ]
%192 = add nsw i32 %189, -1
%193 = add nsw i32 %191, -1
%194 = icmp sgt i32 %191, %64
br i1 %194, label %198, label %195
195: ; preds = %188
%196 = getelementptr inbounds i8, i8* %190, i64 -1
%197 = load i8, i8* %196
br label %198
198: ; preds = %188, %195
%199 = phi i8* [ %190, %188 ], [ %196, %195 ]
%200 = phi i8 [ 48, %188 ], [ %197, %195 ]
%201 = call i32 @fputc(i8 signext %200, i32* %0)
%202 = icmp eq i32 %192, 0
br i1 %202, label %180, label %188
203: ; preds = %223, %207
%204 = phi i32 [ %209, %207 ], [ %218, %223 ]
%205 = phi i8* [ %208, %207 ], [ %224, %223 ]
%206 = icmp sgt i32 %204, 0
br i1 %206, label %207, label %231
207: ; preds = %186, %203
%208 = phi i8* [ %184, %186 ], [ %205, %203 ]
%209 = phi i32 [ %183, %186 ], [ %204, %203 ]
%210 = load i32, i32* %187
%211 = call i32 @fputs(i32 %210, i32* %0)
%212 = load i8, i8* %173
%213 = icmp sgt i8 %212, 0
br i1 %213, label %214, label %203
214: ; preds = %207, %223
%215 = phi i32 [ %227, %223 ], [ 0, %207 ]
%216 = phi i8* [ %224, %223 ], [ %208, %207 ]
%217 = phi i32 [ %218, %223 ], [ %209, %207 ]
%218 = add nsw i32 %217, -1
%219 = icmp sgt i32 %217, %64
br i1 %219, label %223, label %220
220: ; preds = %214
%221 = getelementptr inbounds i8, i8* %216, i64 -1
%222 = load i8, i8* %221
br label %223
223: ; preds = %214, %220
%224 = phi i8* [ %216, %214 ], [ %221, %220 ]
%225 = phi i8 [ 48, %214 ], [ %222, %220 ]
%226 = call i32 @fputc(i8 signext %225, i32* %0)
%227 = add nuw nsw i32 %215, 1
%228 = load i8, i8* %173
%229 = sext i8 %228 to i32
%230 = icmp slt i32 %227, %229
br i1 %230, label %214, label %203
231: ; preds = %203, %157, %182
%232 = phi i32 [ %183, %182 ], [ %100, %157 ], [ %204, %203 ]
%233 = phi i8* [ %184, %182 ], [ %60, %157 ], [ %205, %203 ]
%234 = icmp eq i32 %232, 0
br i1 %234, label %281, label %235
235: ; preds = %231
%236 = getelementptr inbounds %struct.lconv, %struct.lconv* %101, i64 0, i32 1
br label %243
237: ; preds = %263
%238 = sub i32 %246, %249
br label %239
239: ; preds = %237, %243
%240 = phi i32 [ %246, %243 ], [ %238, %237 ]
%241 = phi i8* [ %244, %243 ], [ %264, %237 ]
%242 = icmp eq i32 %240, 0
br i1 %242, label %281, label %243
243: ; preds = %235, %239
%244 = phi i8* [ %233, %235 ], [ %241, %239 ]
%245 = phi i8* [ %102, %235 ], [ %247, %239 ]
%246 = phi i32 [ %232, %235 ], [ %240, %239 ]
%247 = getelementptr inbounds i8, i8* %245, i64 -1
%248 = load i8, i8* %247
%249 = sext i8 %248 to i32
%250 = load i32, i32* %236
%251 = call i32 @fputs(i32 %250, i32* %0)
%252 = icmp eq i8 %248, 0
br i1 %252, label %239, label %253
253: ; preds = %243, %263
%254 = phi i32 [ %257, %263 ], [ %249, %243 ]
%255 = phi i8* [ %264, %263 ], [ %244, %243 ]
%256 = phi i32 [ %258, %263 ], [ %246, %243 ]
%257 = add nsw i32 %254, -1
%258 = add nsw i32 %256, -1
%259 = icmp sgt i32 %256, %64
br i1 %259, label %263, label %260
260: ; preds = %253
%261 = getelementptr inbounds i8, i8* %255, i64 -1
%262 = load i8, i8* %261
br label %263
263: ; preds = %253, %260
%264 = phi i8* [ %255, %253 ], [ %261, %260 ]
%265 = phi i8 [ 48, %253 ], [ %262, %260 ]
%266 = call i32 @fputc(i8 signext %265, i32* %0)
%267 = icmp eq i32 %257, 0
br i1 %267, label %237, label %253
268: ; preds = %152, %276
%269 = phi i8* [ %277, %276 ], [ %60, %152 ]
%270 = phi i32 [ %271, %276 ], [ %100, %152 ]
%271 = add nsw i32 %270, -1
%272 = icmp sgt i32 %270, %64
br i1 %272, label %276, label %273
273: ; preds = %268
%274 = getelementptr inbounds i8, i8* %269, i64 -1
%275 = load i8, i8* %274
br label %276
276: ; preds = %268, %273
%277 = phi i8* [ %269, %268 ], [ %274, %273 ]
%278 = phi i8 [ 48, %268 ], [ %275, %273 ]
%279 = call i32 @fputc(i8 signext %278, i32* %0)
%280 = icmp eq i32 %271, 0
br i1 %280, label %281, label %268
281: ; preds = %149, %276, %167, %239, %124, %152, %231
%282 = load i64, i64* %104
%283 = icmp eq i64 %282, 0
br i1 %283, label %293, label %284
284: ; preds = %281, %289
%285 = phi i32 [ %287, %289 ], [ %121, %281 ]
%286 = load i32, i32* %103
%287 = add nsw i32 %285, 1
%288 = icmp sgt i32 %286, %285
br i1 %288, label %289, label %293
289: ; preds = %284
%290 = call i32 @fputc(i8 signext 32, i32* %0)
%291 = load i64, i64* %104
%292 = icmp eq i64 %291, 0
br i1 %292, label %293, label %284
293: ; preds = %284, %289, %281
%294 = phi i32 [ %121, %281 ], [ %287, %289 ], [ %287, %284 ]
%295 = add nsw i32 %294, -1
ret i32 %295
}