#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 uint32_t;

/* Variables and functions */
int snprintf(char *, size_t, char *, char *, char *, char *, char *, char *,
             char *, char *, char *, char *, char *, char *, char *, char *,
             char *, char *, char *, char *, char *, char *, char *, char *,
             char *, char *, char *, char *, char *, char *, char *, char *,
             char *, char *, char *, char *, char *, char *);
int get_x86_cpu_extended_flags(int intel, uint32_t ecx, uint32_t edx,
                               char *flags, size_t len) {
  return snprintf(flags, len,
                  ""
                  ""
                  "%s"
                  ""
                  "%s"
                  "%s%s"
                  "%s%s%s"
                  "%s%s%s"
                  "%s%s%s%s"
                  "%s%s%s%s"
                  "%s%s%s%s"
                  "%s%s%s"
                  "%s%s%s"
                  "%s%s%s"
                  "%s%s%s"
                  "%s",
                  edx & 0x00000800 ? "syscall " : "",
                  intel ? "" : (edx & 0x00080000 ? "mp " : ""),
                  edx & 0x00100000 ? "nx " : "",
                  intel ? "" : (edx & 0x00400000 ? "mmxext " : ""),
                  intel ? "" : (edx & 0x02000000 ? "fxsr_opt " : ""),
                  edx & 0x04000000 ? "pdpe1gb " : "",
                  edx & 0x08000000 ? "rdtscp " : "",
                  edx & 0x20000000 ? "lm " : "",
                  intel ? "" : (edx & 0x40000000 ? "3dnowext " : ""),
                  intel ? "" : (edx & 0x80000000 ? "3dnow " : ""),
                  ecx & 0x00000001 ? "lahf_lm " : "",
                  intel ? "" : (ecx & 0x00000002 ? "cmp_legacy " : ""),
                  intel ? "" : (ecx & 0x00000004 ? "svm " : ""),
                  intel ? "" : (ecx & 0x00000008 ? "extapic " : ""),
                  intel ? "" : (ecx & 0x00000010 ? "cr8_legacy " : ""),
                  ecx & 0x00000020 ? "lzcnt " : "",
                  intel ? "" : (ecx & 0x00000040 ? "sse4a " : ""),
                  intel ? "" : (ecx & 0x00000080 ? "misalignsse " : ""),
                  intel ? "" : (ecx & 0x00000100 ? "3dnowprefetch " : ""),
                  intel ? "" : (ecx & 0x00000200 ? "osvw " : ""),
                  intel ? "" : (ecx & 0x00000400 ? "ibs " : ""),
                  intel ? "" : (ecx & 0x00000800 ? "xop " : ""),
                  intel ? "" : (ecx & 0x00001000 ? "skinit " : ""),
                  intel ? "" : (ecx & 0x00002000 ? "wdt " : ""),
                  intel ? "" : (ecx & 0x00008000 ? "lwp " : ""),
                  intel ? "" : (ecx & 0x00010000 ? "fma4 " : ""),
                  intel ? "" : (ecx & 0x00020000 ? "tce " : ""),
                  intel ? "" : (ecx & 0x00080000 ? "nodeid_msr " : ""),
                  intel ? "" : (ecx & 0x00200000 ? "tbm " : ""),
                  intel ? "" : (ecx & 0x00400000 ? "topoext " : ""),
                  intel ? "" : (ecx & 0x00800000 ? "perfctr_core " : ""),
                  intel ? "" : (ecx & 0x01000000 ? "perfctr_nb " : ""),
                  intel ? "" : (ecx & 0x02000000 ? "dbx " : ""),
                  intel ? "" : (ecx & 0x08000000 ? "perftsc " : ""),
                  intel ? "" : (ecx & 0x10000000 ? "pcx_l2i " : ""));
}


x86 assembly (clang, -O0):
<get_x86_cpu_extended_flags>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x328,%rsp
mov    %edi,-0x2c(%rbp)
mov    %esi,-0x30(%rbp)
mov    %edx,-0x34(%rbp)
mov    %rcx,-0x40(%rbp)
mov    %r8,-0x48(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x34(%rbp),%edx
and    $0x800,%edx
lea    0xfb7(%rip),%rax
lea    0xeeb(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x50(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     1181 <get_x86_cpu_extended_flags+0x71>
lea    0xf94(%rip),%rax
mov    %rax,-0x68(%rbp)
jmp    11a3 <get_x86_cpu_extended_flags+0x93>
mov    -0x34(%rbp),%edx
and    $0x80000,%edx
lea    0xf7b(%rip),%rax
lea    0xeb8(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x34(%rbp),%edx
and    $0x100000,%edx
lea    0xf51(%rip),%rax
lea    0xe92(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x70(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     11e7 <get_x86_cpu_extended_flags+0xd7>
lea    0xf2e(%rip),%rax
mov    %rax,-0x80(%rbp)
jmp    1209 <get_x86_cpu_extended_flags+0xf9>
mov    -0x34(%rbp),%edx
and    $0x400000,%edx
lea    0xf15(%rip),%rax
lea    0xe5a(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x80(%rbp)
mov    -0x80(%rbp),%rax
mov    %rax,-0x88(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     1231 <get_x86_cpu_extended_flags+0x121>
lea    0xee7(%rip),%rax
mov    %rax,-0x90(%rbp)
jmp    1256 <get_x86_cpu_extended_flags+0x146>
mov    -0x34(%rbp),%edx
and    $0x2000000,%edx
lea    0xecb(%rip),%rax
lea    0xe18(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x90(%rbp)
mov    -0x90(%rbp),%rax
mov    %rax,-0xb0(%rbp)
mov    -0x34(%rbp),%edx
and    $0x4000000,%edx
lea    0xe98(%rip),%rax
lea    0xdef(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0xa8(%rbp)
mov    -0x34(%rbp),%edx
and    $0x8000000,%edx
lea    0xe73(%rip),%rax
lea    0xdd3(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0xa0(%rbp)
mov    -0x34(%rbp),%edx
and    $0x20000000,%edx
lea    0xe4e(%rip),%rax
lea    0xdcc(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x98(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     12f0 <get_x86_cpu_extended_flags+0x1e0>
lea    0xe28(%rip),%rax
mov    %rax,-0xb8(%rbp)
jmp    1315 <get_x86_cpu_extended_flags+0x205>
mov    -0x34(%rbp),%edx
and    $0x40000000,%edx
lea    0xe0c(%rip),%rax
lea    0xd74(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0xb8(%rbp)
mov    -0xb8(%rbp),%rax
mov    %rax,-0xc0(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     1340 <get_x86_cpu_extended_flags+0x230>
lea    0xdd8(%rip),%rax
mov    %rax,-0xc8(%rbp)
jmp    1365 <get_x86_cpu_extended_flags+0x255>
mov    -0x34(%rbp),%edx
and    $0x80000000,%edx
lea    0xdbc(%rip),%rax
lea    0xd2e(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0xc8(%rbp)
mov    -0xc8(%rbp),%rax
mov    %rax,-0xd8(%rbp)
mov    -0x30(%rbp),%edx
and    $0x1,%edx
lea    0xd8c(%rip),%rax
lea    0xd05(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0xd0(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     13b2 <get_x86_cpu_extended_flags+0x2a2>
lea    0xd66(%rip),%rax
mov    %rax,-0xe0(%rbp)
jmp    13d4 <get_x86_cpu_extended_flags+0x2c4>
mov    -0x30(%rbp),%edx
and    $0x2,%edx
lea    0xd4d(%rip),%rax
lea    0xccf(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0xe0(%rbp)
mov    -0xe0(%rbp),%rax
mov    %rax,-0xe8(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     13ff <get_x86_cpu_extended_flags+0x2ef>
lea    0xd19(%rip),%rax
mov    %rax,-0xf0(%rbp)
jmp    1421 <get_x86_cpu_extended_flags+0x311>
mov    -0x30(%rbp),%edx
and    $0x4,%edx
lea    0xd00(%rip),%rax
lea    0xc8e(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0xf0(%rbp)
mov    -0xf0(%rbp),%rax
mov    %rax,-0xf8(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     144c <get_x86_cpu_extended_flags+0x33c>
lea    0xccc(%rip),%rax
mov    %rax,-0x100(%rbp)
jmp    146e <get_x86_cpu_extended_flags+0x35e>
mov    -0x30(%rbp),%edx
and    $0x8,%edx
lea    0xcb3(%rip),%rax
lea    0xc46(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x100(%rbp)
mov    -0x100(%rbp),%rax
mov    %rax,-0x108(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     1499 <get_x86_cpu_extended_flags+0x389>
lea    0xc7f(%rip),%rax
mov    %rax,-0x110(%rbp)
jmp    14bb <get_x86_cpu_extended_flags+0x3ab>
mov    -0x30(%rbp),%edx
and    $0x10,%edx
lea    0xc66(%rip),%rax
lea    0xc02(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x110(%rbp)
mov    -0x110(%rbp),%rax
mov    %rax,-0x120(%rbp)
mov    -0x30(%rbp),%edx
and    $0x20,%edx
lea    0xc36(%rip),%rax
lea    0xbde(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x118(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     1508 <get_x86_cpu_extended_flags+0x3f8>
lea    0xc10(%rip),%rax
mov    %rax,-0x128(%rbp)
jmp    152a <get_x86_cpu_extended_flags+0x41a>
mov    -0x30(%rbp),%edx
and    $0x40,%edx
lea    0xbf7(%rip),%rax
lea    0xba6(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x128(%rbp)
mov    -0x128(%rbp),%rax
mov    %rax,-0x130(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     1555 <get_x86_cpu_extended_flags+0x445>
lea    0xbc3(%rip),%rax
mov    %rax,-0x138(%rbp)
jmp    157a <get_x86_cpu_extended_flags+0x46a>
mov    -0x30(%rbp),%edx
and    $0x80,%edx
lea    0xba7(%rip),%rax
lea    0xb5d(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x138(%rbp)
mov    -0x138(%rbp),%rax
mov    %rax,-0x140(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     15a5 <get_x86_cpu_extended_flags+0x495>
lea    0xb73(%rip),%rax
mov    %rax,-0x148(%rbp)
jmp    15ca <get_x86_cpu_extended_flags+0x4ba>
mov    -0x30(%rbp),%edx
and    $0x100,%edx
lea    0xb57(%rip),%rax
lea    0xb1a(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x148(%rbp)
mov    -0x148(%rbp),%rax
mov    %rax,-0x150(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     15f5 <get_x86_cpu_extended_flags+0x4e5>
lea    0xb23(%rip),%rax
mov    %rax,-0x158(%rbp)
jmp    161a <get_x86_cpu_extended_flags+0x50a>
mov    -0x30(%rbp),%edx
and    $0x200,%edx
lea    0xb07(%rip),%rax
lea    0xad9(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x158(%rbp)
mov    -0x158(%rbp),%rax
mov    %rax,-0x160(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     1645 <get_x86_cpu_extended_flags+0x535>
lea    0xad3(%rip),%rax
mov    %rax,-0x168(%rbp)
jmp    166a <get_x86_cpu_extended_flags+0x55a>
mov    -0x30(%rbp),%edx
and    $0x400,%edx
lea    0xab7(%rip),%rax
lea    0xa8f(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x168(%rbp)
mov    -0x168(%rbp),%rax
mov    %rax,-0x170(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     1695 <get_x86_cpu_extended_flags+0x585>
lea    0xa83(%rip),%rax
mov    %rax,-0x178(%rbp)
jmp    16ba <get_x86_cpu_extended_flags+0x5aa>
mov    -0x30(%rbp),%edx
and    $0x800,%edx
lea    0xa67(%rip),%rax
lea    0xa44(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x178(%rbp)
mov    -0x178(%rbp),%rax
mov    %rax,-0x180(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     16e5 <get_x86_cpu_extended_flags+0x5d5>
lea    0xa33(%rip),%rax
mov    %rax,-0x188(%rbp)
jmp    170a <get_x86_cpu_extended_flags+0x5fa>
mov    -0x30(%rbp),%edx
and    $0x1000,%edx
lea    0xa17(%rip),%rax
lea    0x9f9(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x188(%rbp)
mov    -0x188(%rbp),%rax
mov    %rax,-0x190(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     1735 <get_x86_cpu_extended_flags+0x625>
lea    0x9e3(%rip),%rax
mov    %rax,-0x198(%rbp)
jmp    175a <get_x86_cpu_extended_flags+0x64a>
mov    -0x30(%rbp),%edx
and    $0x2000,%edx
lea    0x9c7(%rip),%rax
lea    0x9b1(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x198(%rbp)
mov    -0x198(%rbp),%rax
mov    %rax,-0x1a0(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     1785 <get_x86_cpu_extended_flags+0x675>
lea    0x993(%rip),%rax
mov    %rax,-0x1a8(%rbp)
jmp    17aa <get_x86_cpu_extended_flags+0x69a>
mov    -0x30(%rbp),%edx
and    $0x8000,%edx
lea    0x977(%rip),%rax
lea    0x966(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x1a8(%rbp)
mov    -0x1a8(%rbp),%rax
mov    %rax,-0x1b0(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     17d5 <get_x86_cpu_extended_flags+0x6c5>
lea    0x943(%rip),%rax
mov    %rax,-0x1b8(%rbp)
jmp    17fa <get_x86_cpu_extended_flags+0x6ea>
mov    -0x30(%rbp),%edx
and    $0x10000,%edx
lea    0x927(%rip),%rax
lea    0x91b(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x1b8(%rbp)
mov    -0x1b8(%rbp),%rax
mov    %rax,-0x1c0(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     1825 <get_x86_cpu_extended_flags+0x715>
lea    0x8f3(%rip),%rax
mov    %rax,-0x1c8(%rbp)
jmp    184a <get_x86_cpu_extended_flags+0x73a>
mov    -0x30(%rbp),%edx
and    $0x20000,%edx
lea    0x8d7(%rip),%rax
lea    0x8d1(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x1c8(%rbp)
mov    -0x1c8(%rbp),%rax
mov    %rax,-0x1d0(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     1875 <get_x86_cpu_extended_flags+0x765>
lea    0x8a3(%rip),%rax
mov    %rax,-0x1d8(%rbp)
jmp    189a <get_x86_cpu_extended_flags+0x78a>
mov    -0x30(%rbp),%edx
and    $0x80000,%edx
lea    0x887(%rip),%rax
lea    0x886(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x1d8(%rbp)
mov    -0x1d8(%rbp),%rax
mov    %rax,-0x1e0(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     18c5 <get_x86_cpu_extended_flags+0x7b5>
lea    0x853(%rip),%rax
mov    %rax,-0x1e8(%rbp)
jmp    18ea <get_x86_cpu_extended_flags+0x7da>
mov    -0x30(%rbp),%edx
and    $0x200000,%edx
lea    0x837(%rip),%rax
lea    0x842(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x1e8(%rbp)
mov    -0x1e8(%rbp),%rax
mov    %rax,-0x1f0(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     1915 <get_x86_cpu_extended_flags+0x805>
lea    0x803(%rip),%rax
mov    %rax,-0x1f8(%rbp)
jmp    193a <get_x86_cpu_extended_flags+0x82a>
mov    -0x30(%rbp),%edx
and    $0x400000,%edx
lea    0x7e7(%rip),%rax
lea    0x7f7(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x1f8(%rbp)
mov    -0x1f8(%rbp),%rax
mov    %rax,-0x200(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     1965 <get_x86_cpu_extended_flags+0x855>
lea    0x7b3(%rip),%rax
mov    %rax,-0x208(%rbp)
jmp    198a <get_x86_cpu_extended_flags+0x87a>
mov    -0x30(%rbp),%edx
and    $0x800000,%edx
lea    0x797(%rip),%rax
lea    0x7b0(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x208(%rbp)
mov    -0x208(%rbp),%rax
mov    %rax,-0x210(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     19b5 <get_x86_cpu_extended_flags+0x8a5>
lea    0x763(%rip),%rax
mov    %rax,-0x218(%rbp)
jmp    19da <get_x86_cpu_extended_flags+0x8ca>
mov    -0x30(%rbp),%edx
and    $0x1000000,%edx
lea    0x747(%rip),%rax
lea    0x76e(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x218(%rbp)
mov    -0x218(%rbp),%rax
mov    %rax,-0x220(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     1a05 <get_x86_cpu_extended_flags+0x8f5>
lea    0x713(%rip),%rax
mov    %rax,-0x228(%rbp)
jmp    1a2a <get_x86_cpu_extended_flags+0x91a>
mov    -0x30(%rbp),%edx
and    $0x2000000,%edx
lea    0x6f7(%rip),%rax
lea    0x72a(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x228(%rbp)
mov    -0x228(%rbp),%rax
mov    %rax,-0x230(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     1a55 <get_x86_cpu_extended_flags+0x945>
lea    0x6c3(%rip),%rax
mov    %rax,-0x238(%rbp)
jmp    1a7a <get_x86_cpu_extended_flags+0x96a>
mov    -0x30(%rbp),%edx
and    $0x8000000,%edx
lea    0x6a7(%rip),%rax
lea    0x6df(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x238(%rbp)
mov    -0x238(%rbp),%rax
mov    %rax,-0x240(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     1aa5 <get_x86_cpu_extended_flags+0x995>
lea    0x673(%rip),%rax
mov    %rax,-0x248(%rbp)
jmp    1aca <get_x86_cpu_extended_flags+0x9ba>
mov    -0x30(%rbp),%edx
and    $0x10000000,%edx
lea    0x657(%rip),%rax
lea    0x698(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x248(%rbp)
mov    -0x230(%rbp),%r11
mov    -0x220(%rbp),%rbx
mov    -0x210(%rbp),%r14
mov    -0x200(%rbp),%r15
mov    -0x1f0(%rbp),%r12
mov    -0x1e0(%rbp),%r13
mov    -0x88(%rbp),%r10
mov    -0x70(%rbp),%r9
mov    -0x78(%rbp),%r8
mov    -0x50(%rbp),%rcx
mov    -0x58(%rbp),%rsi
mov    -0x60(%rbp),%rdi
mov    -0x248(%rbp),%rax
lea    0x4e3(%rip),%rdx
mov    %r10,(%rsp)
mov    -0xb0(%rbp),%r10
mov    %r10,0x8(%rsp)
mov    -0xa8(%rbp),%r10
mov    %r10,0x10(%rsp)
mov    -0xa0(%rbp),%r10
mov    %r10,0x18(%rsp)
mov    -0x98(%rbp),%r10
mov    %r10,0x20(%rsp)
mov    -0xc0(%rbp),%r10
mov    %r10,0x28(%rsp)
mov    -0xd8(%rbp),%r10
mov    %r10,0x30(%rsp)
mov    -0xd0(%rbp),%r10
mov    %r10,0x38(%rsp)
mov    -0xe8(%rbp),%r10
mov    %r10,0x40(%rsp)
mov    -0xf8(%rbp),%r10
mov    %r10,0x48(%rsp)
mov    -0x108(%rbp),%r10
mov    %r10,0x50(%rsp)
mov    -0x120(%rbp),%r10
mov    %r10,0x58(%rsp)
mov    -0x118(%rbp),%r10
mov    %r10,0x60(%rsp)
mov    -0x130(%rbp),%r10
mov    %r10,0x68(%rsp)
mov    -0x140(%rbp),%r10
mov    %r10,0x70(%rsp)
mov    -0x150(%rbp),%r10
mov    %r10,0x78(%rsp)
mov    -0x160(%rbp),%r10
mov    %r10,0x80(%rsp)
mov    -0x170(%rbp),%r10
mov    %r10,0x88(%rsp)
mov    -0x180(%rbp),%r10
mov    %r10,0x90(%rsp)
mov    -0x190(%rbp),%r10
mov    %r10,0x98(%rsp)
mov    -0x1a0(%rbp),%r10
mov    %r10,0xa0(%rsp)
mov    -0x1b0(%rbp),%r10
mov    %r10,0xa8(%rsp)
mov    -0x1c0(%rbp),%r10
mov    %r10,0xb0(%rsp)
mov    -0x1d0(%rbp),%r10
mov    %r10,0xb8(%rsp)
mov    -0x240(%rbp),%r10
mov    %r13,0xc0(%rsp)
mov    %r12,0xc8(%rsp)
mov    %r15,0xd0(%rsp)
mov    %r14,0xd8(%rsp)
mov    %rbx,0xe0(%rsp)
mov    %r11,0xe8(%rsp)
mov    %r10,0xf0(%rsp)
mov    %rax,0xf8(%rsp)
call   1030 <snprintf@plt>
add    $0x328,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_x86_cpu_extended_flags>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xd8,%rsp
mov    %r8,0xd0(%rsp)
mov    %rcx,0xc8(%rsp)
mov    %edi,%r8d
test   $0x80000,%edx
lea    0xfcb(%rip),%rax
lea    0xf08(%rip),%rcx
cmove  %rax,%rcx
mov    %rcx,0x50(%rsp)
test   $0x400000,%edx
lea    0xefa(%rip),%rcx
cmove  %rax,%rcx
mov    %rcx,0x48(%rsp)
test   $0x2000000,%edx
lea    0xeec(%rip),%rcx
cmove  %rax,%rcx
mov    %rcx,0x40(%rsp)
test   $0x40000000,%edx
lea    0xef1(%rip),%rcx
cmove  %rax,%rcx
mov    %rcx,0x8(%rsp)
test   %edx,%edx
lea    0xee9(%rip),%rbx
cmovns %rax,%rbx
mov    %rbx,%r13
test   $0x2,%sil
lea    0xee7(%rip),%rbp
cmove  %rax,%rbp
test   $0x4,%sil
lea    0xee4(%rip),%rbx
cmove  %rax,%rbx
mov    %rbx,0x88(%rsp)
test   $0x8,%sil
lea    0xed2(%rip),%rbx
cmove  %rax,%rbx
mov    %rbx,0x80(%rsp)
test   $0x10,%sil
lea    0xec4(%rip),%rbx
cmove  %rax,%rbx
mov    %rbx,0x78(%rsp)
test   $0x40,%sil
lea    0xec3(%rip),%rbx
cmove  %rax,%rbx
mov    %rbx,0x70(%rsp)
test   $0x80,%sil
lea    0xeb6(%rip),%rbx
cmove  %rax,%rbx
mov    %rbx,0x68(%rsp)
test   $0x100,%esi
lea    0xead(%rip),%rbx
cmove  %rax,%rbx
mov    %rbx,0x60(%rsp)
test   $0x200,%esi
lea    0xea6(%rip),%rbx
cmove  %rax,%rbx
mov    %rbx,0x58(%rsp)
test   $0x400,%esi
lea    0xe96(%rip),%r9
cmove  %rax,%r9
test   $0x800,%esi
lea    0xe8a(%rip),%rcx
cmove  %rax,%rcx
mov    %rcx,0x38(%rsp)
test   $0x1000,%esi
lea    0xe79(%rip),%rcx
cmove  %rax,%rcx
mov    %rcx,0x30(%rsp)
test   $0x2000,%esi
lea    0xe6b(%rip),%rcx
cmove  %rax,%rcx
mov    %rcx,0x28(%rsp)
test   $0x8000,%esi
lea    0xe5a(%rip),%rcx
cmove  %rax,%rcx
mov    %rcx,0x20(%rsp)
test   $0x10000,%esi
lea    0xe49(%rip),%rcx
cmove  %rax,%rcx
mov    %rcx,0x18(%rsp)
test   $0x20000,%esi
lea    0xe39(%rip),%rcx
cmove  %rax,%rcx
mov    %rcx,0x10(%rsp)
test   $0x80000,%esi
lea    0xe28(%rip),%rcx
cmove  %rax,%rcx
mov    %rcx,(%rsp)
test   $0x200000,%esi
lea    0xe1f(%rip),%rdi
cmove  %rax,%rdi
test   $0x400000,%esi
lea    0xe13(%rip),%r12
cmove  %rax,%r12
test   $0x800000,%esi
lea    0xe0b(%rip),%r15
cmove  %rax,%r15
test   $0x1000000,%esi
lea    0xe08(%rip),%r14
cmove  %rax,%r14
test   $0x2000000,%esi
lea    0xe03(%rip),%rbx
cmove  %rax,%rbx
test   $0x8000000,%esi
lea    0xdf7(%rip),%r11
cmove  %rax,%r11
test   $0x10000000,%esi
lea    0xdef(%rip),%r10
cmove  %rax,%r10
test   %r8d,%r8d
mov    0x50(%rsp),%r8
cmovne %rax,%r8
mov    %r8,0x50(%rsp)
mov    0x48(%rsp),%rcx
cmovne %rax,%rcx
mov    %rcx,0x48(%rsp)
mov    0x40(%rsp),%rcx
cmovne %rax,%rcx
mov    %rcx,0x40(%rsp)
mov    0x8(%rsp),%rcx
cmovne %rax,%rcx
mov    %rcx,0x8(%rsp)
cmovne %rax,%r13
mov    %r13,0xc0(%rsp)
cmovne %rax,%rbp
mov    %rbp,0xb8(%rsp)
mov    0x88(%rsp),%rcx
cmovne %rax,%rcx
mov    %rcx,0x88(%rsp)
mov    0x80(%rsp),%rcx
cmovne %rax,%rcx
mov    %rcx,0x80(%rsp)
mov    0x78(%rsp),%rcx
cmovne %rax,%rcx
mov    %rcx,0x78(%rsp)
mov    0x70(%rsp),%rcx
cmovne %rax,%rcx
mov    %rcx,0x70(%rsp)
mov    0x68(%rsp),%rcx
cmovne %rax,%rcx
mov    %rcx,0x68(%rsp)
mov    0x60(%rsp),%rcx
cmovne %rax,%rcx
mov    %rcx,0x60(%rsp)
mov    0x58(%rsp),%rcx
cmovne %rax,%rcx
mov    %rcx,0x58(%rsp)
cmovne %rax,%r9
mov    %r9,0xb0(%rsp)
mov    0x38(%rsp),%rcx
cmovne %rax,%rcx
mov    %rcx,0x38(%rsp)
mov    0x30(%rsp),%rcx
cmovne %rax,%rcx
mov    %rcx,0x30(%rsp)
mov    0x28(%rsp),%rcx
cmovne %rax,%rcx
mov    %rcx,0x28(%rsp)
mov    0x20(%rsp),%rcx
cmovne %rax,%rcx
mov    %rcx,0x20(%rsp)
mov    0x18(%rsp),%rcx
cmovne %rax,%rcx
mov    %rcx,0x18(%rsp)
mov    0x10(%rsp),%rcx
cmovne %rax,%rcx
mov    %rcx,0x10(%rsp)
mov    (%rsp),%rcx
cmovne %rax,%rcx
mov    %rcx,(%rsp)
cmovne %rax,%rdi
mov    %rdi,0x90(%rsp)
cmovne %rax,%r12
cmovne %rax,%r15
cmovne %rax,%r14
cmovne %rax,%rbx
cmovne %rax,%r11
cmovne %rax,%r10
test   $0x20,%sil
lea    0xbf6(%rip),%rbp
cmove  %rax,%rbp
test   $0x1,%sil
lea    0xbb8(%rip),%rcx
cmove  %rax,%rcx
mov    %rcx,0xa0(%rsp)
test   $0x20000000,%edx
lea    0xba4(%rip),%rcx
cmove  %rax,%rcx
mov    %rcx,0xa8(%rsp)
test   $0x8000000,%edx
lea    0xb6d(%rip),%rcx
cmove  %rax,%rcx
mov    %rcx,0x98(%rsp)
test   $0x4000000,%edx
lea    0xb4b(%rip),%r13
cmove  %rax,%r13
test   $0x100000,%edx
lea    0xb24(%rip),%r9
cmove  %rax,%r9
test   $0x800,%edx
lea    0xb06(%rip),%rcx
cmove  %rax,%rcx
lea    0xab4(%rip),%rdx
mov    0xc8(%rsp),%rdi
mov    0xd0(%rsp),%rsi
mov    0x50(%rsp),%r8
push   %r10
push   %r11
push   %rbx
push   %r14
push   %r15
push   %r12
push   0xc0(%rsp)
push   0x38(%rsp)
push   0x50(%rsp)
push   0x60(%rsp)
push   0x70(%rsp)
push   0x80(%rsp)
push   0x90(%rsp)
push   0xa0(%rsp)
push   0x120(%rsp)
push   0xd0(%rsp)
push   0xe0(%rsp)
push   0xf0(%rsp)
push   0x100(%rsp)
push   %rbp
push   0x118(%rsp)
push   0x128(%rsp)
push   0x138(%rsp)
push   0x170(%rsp)
push   0x160(%rsp)
push   0x188(%rsp)
push   0xd8(%rsp)
push   0x180(%rsp)
push   0x178(%rsp)
push   %r13
push   0x130(%rsp)
push   0x140(%rsp)
call   1030 <snprintf@plt>
add    $0x1d8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [71 x i8] c"%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s\00"
@.str.1 = [9 x i8] c"syscall \00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [4 x i8] c"mp \00"
@.str.4 = [4 x i8] c"nx \00"
@.str.5 = [8 x i8] c"mmxext \00"
@.str.6 = [10 x i8] c"fxsr_opt \00"
@.str.7 = [9 x i8] c"pdpe1gb \00"
@.str.8 = [8 x i8] c"rdtscp \00"
@.str.9 = [4 x i8] c"lm \00"
@.str.10 = [10 x i8] c"3dnowext \00"
@.str.11 = [7 x i8] c"3dnow \00"
@.str.12 = [9 x i8] c"lahf_lm \00"
@.str.13 = [12 x i8] c"cmp_legacy \00"
@.str.14 = [5 x i8] c"svm \00"
@.str.15 = [9 x i8] c"extapic \00"
@.str.16 = [12 x i8] c"cr8_legacy \00"
@.str.17 = [7 x i8] c"lzcnt \00"
@.str.18 = [7 x i8] c"sse4a \00"
@.str.19 = [13 x i8] c"misalignsse \00"
@.str.20 = [15 x i8] c"3dnowprefetch \00"
@.str.21 = [6 x i8] c"osvw \00"
@.str.22 = [5 x i8] c"ibs \00"
@.str.23 = [5 x i8] c"xop \00"
@.str.24 = [8 x i8] c"skinit \00"
@.str.25 = [5 x i8] c"wdt \00"
@.str.26 = [5 x i8] c"lwp \00"
@.str.27 = [6 x i8] c"fma4 \00"
@.str.28 = [5 x i8] c"tce \00"
@.str.29 = [12 x i8] c"nodeid_msr \00"
@.str.30 = [5 x i8] c"tbm \00"
@.str.31 = [9 x i8] c"topoext \00"
@.str.32 = [14 x i8] c"perfctr_core \00"
@.str.33 = [12 x i8] c"perfctr_nb \00"
@.str.34 = [5 x i8] c"dbx \00"
@.str.35 = [9 x i8] c"perftsc \00"
@.str.36 = [9 x i8] c"pcx_l2i \00"
define i32 @get_x86_cpu_extended_flags(i32 %0, i32 %1, i32 %2, i8* %3, i64 %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i64
store i32 %0, i32* %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i8* %3, i8** %9
store i64 %4, i64* %10
%11 = load i8*, i8** %9
%12 = load i64, i64* %10
%13 = load i32, i32* %8
%14 = and i32 %13, 2048
%15 = icmp ne i32 %14, 0
%16 = zext i1 %15 to i64
%17 = select i1 %15, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%18 = load i32, i32* %6
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %21
20: ; preds = %5
br label %27
21: ; preds = %5
%22 = load i32, i32* %8
%23 = and i32 %22, 524288
%24 = icmp ne i32 %23, 0
%25 = zext i1 %24 to i64
%26 = select i1 %24, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
br label %27
27: ; preds = %21, %20
%28 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %20 ], [ %26, %21 ]
%29 = load i32, i32* %8
%30 = and i32 %29, 1048576
%31 = icmp ne i32 %30, 0
%32 = zext i1 %31 to i64
%33 = select i1 %31, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%34 = load i32, i32* %6
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %27
br label %43
37: ; preds = %27
%38 = load i32, i32* %8
%39 = and i32 %38, 4194304
%40 = icmp ne i32 %39, 0
%41 = zext i1 %40 to i64
%42 = select i1 %40, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
br label %43
43: ; preds = %37, %36
%44 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %36 ], [ %42, %37 ]
%45 = load i32, i32* %6
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %43
br label %54
48: ; preds = %43
%49 = load i32, i32* %8
%50 = and i32 %49, 33554432
%51 = icmp ne i32 %50, 0
%52 = zext i1 %51 to i64
%53 = select i1 %51, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
br label %54
54: ; preds = %48, %47
%55 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %47 ], [ %53, %48 ]
%56 = load i32, i32* %8
%57 = and i32 %56, 67108864
%58 = icmp ne i32 %57, 0
%59 = zext i1 %58 to i64
%60 = select i1 %58, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%61 = load i32, i32* %8
%62 = and i32 %61, 134217728
%63 = icmp ne i32 %62, 0
%64 = zext i1 %63 to i64
%65 = select i1 %63, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%66 = load i32, i32* %8
%67 = and i32 %66, 536870912
%68 = icmp ne i32 %67, 0
%69 = zext i1 %68 to i64
%70 = select i1 %68, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%71 = load i32, i32* %6
%72 = icmp ne i32 %71, 0
br i1 %72, label %73, label %74
73: ; preds = %54
br label %80
74: ; preds = %54
%75 = load i32, i32* %8
%76 = and i32 %75, 1073741824
%77 = icmp ne i32 %76, 0
%78 = zext i1 %77 to i64
%79 = select i1 %77, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
br label %80
80: ; preds = %74, %73
%81 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %73 ], [ %79, %74 ]
%82 = load i32, i32* %6
%83 = icmp ne i32 %82, 0
br i1 %83, label %84, label %85
84: ; preds = %80
br label %91
85: ; preds = %80
%86 = load i32, i32* %8
%87 = and i32 %86, -2147483648
%88 = icmp ne i32 %87, 0
%89 = zext i1 %88 to i64
%90 = select i1 %88, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
br label %91
91: ; preds = %85, %84
%92 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %84 ], [ %90, %85 ]
%93 = load i32, i32* %7
%94 = and i32 %93, 1
%95 = icmp ne i32 %94, 0
%96 = zext i1 %95 to i64
%97 = select i1 %95, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%98 = load i32, i32* %6
%99 = icmp ne i32 %98, 0
br i1 %99, label %100, label %101
100: ; preds = %91
br label %107
101: ; preds = %91
%102 = load i32, i32* %7
%103 = and i32 %102, 2
%104 = icmp ne i32 %103, 0
%105 = zext i1 %104 to i64
%106 = select i1 %104, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
br label %107
107: ; preds = %101, %100
%108 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %100 ], [ %106, %101 ]
%109 = load i32, i32* %6
%110 = icmp ne i32 %109, 0
br i1 %110, label %111, label %112
111: ; preds = %107
br label %118
112: ; preds = %107
%113 = load i32, i32* %7
%114 = and i32 %113, 4
%115 = icmp ne i32 %114, 0
%116 = zext i1 %115 to i64
%117 = select i1 %115, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
br label %118
118: ; preds = %112, %111
%119 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %111 ], [ %117, %112 ]
%120 = load i32, i32* %6
%121 = icmp ne i32 %120, 0
br i1 %121, label %122, label %123
122: ; preds = %118
br label %129
123: ; preds = %118
%124 = load i32, i32* %7
%125 = and i32 %124, 8
%126 = icmp ne i32 %125, 0
%127 = zext i1 %126 to i64
%128 = select i1 %126, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
br label %129
129: ; preds = %123, %122
%130 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %122 ], [ %128, %123 ]
%131 = load i32, i32* %6
%132 = icmp ne i32 %131, 0
br i1 %132, label %133, label %134
133: ; preds = %129
br label %140
134: ; preds = %129
%135 = load i32, i32* %7
%136 = and i32 %135, 16
%137 = icmp ne i32 %136, 0
%138 = zext i1 %137 to i64
%139 = select i1 %137, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
br label %140
140: ; preds = %134, %133
%141 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %133 ], [ %139, %134 ]
%142 = load i32, i32* %7
%143 = and i32 %142, 32
%144 = icmp ne i32 %143, 0
%145 = zext i1 %144 to i64
%146 = select i1 %144, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%147 = load i32, i32* %6
%148 = icmp ne i32 %147, 0
br i1 %148, label %149, label %150
149: ; preds = %140
br label %156
150: ; preds = %140
%151 = load i32, i32* %7
%152 = and i32 %151, 64
%153 = icmp ne i32 %152, 0
%154 = zext i1 %153 to i64
%155 = select i1 %153, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
br label %156
156: ; preds = %150, %149
%157 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %149 ], [ %155, %150 ]
%158 = load i32, i32* %6
%159 = icmp ne i32 %158, 0
br i1 %159, label %160, label %161
160: ; preds = %156
br label %167
161: ; preds = %156
%162 = load i32, i32* %7
%163 = and i32 %162, 128
%164 = icmp ne i32 %163, 0
%165 = zext i1 %164 to i64
%166 = select i1 %164, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
br label %167
167: ; preds = %161, %160
%168 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %160 ], [ %166, %161 ]
%169 = load i32, i32* %6
%170 = icmp ne i32 %169, 0
br i1 %170, label %171, label %172
171: ; preds = %167
br label %178
172: ; preds = %167
%173 = load i32, i32* %7
%174 = and i32 %173, 256
%175 = icmp ne i32 %174, 0
%176 = zext i1 %175 to i64
%177 = select i1 %175, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
br label %178
178: ; preds = %172, %171
%179 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %171 ], [ %177, %172 ]
%180 = load i32, i32* %6
%181 = icmp ne i32 %180, 0
br i1 %181, label %182, label %183
182: ; preds = %178
br label %189
183: ; preds = %178
%184 = load i32, i32* %7
%185 = and i32 %184, 512
%186 = icmp ne i32 %185, 0
%187 = zext i1 %186 to i64
%188 = select i1 %186, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
br label %189
189: ; preds = %183, %182
%190 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %182 ], [ %188, %183 ]
%191 = load i32, i32* %6
%192 = icmp ne i32 %191, 0
br i1 %192, label %193, label %194
193: ; preds = %189
br label %200
194: ; preds = %189
%195 = load i32, i32* %7
%196 = and i32 %195, 1024
%197 = icmp ne i32 %196, 0
%198 = zext i1 %197 to i64
%199 = select i1 %197, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
br label %200
200: ; preds = %194, %193
%201 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %193 ], [ %199, %194 ]
%202 = load i32, i32* %6
%203 = icmp ne i32 %202, 0
br i1 %203, label %204, label %205
204: ; preds = %200
br label %211
205: ; preds = %200
%206 = load i32, i32* %7
%207 = and i32 %206, 2048
%208 = icmp ne i32 %207, 0
%209 = zext i1 %208 to i64
%210 = select i1 %208, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
br label %211
211: ; preds = %205, %204
%212 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %204 ], [ %210, %205 ]
%213 = load i32, i32* %6
%214 = icmp ne i32 %213, 0
br i1 %214, label %215, label %216
215: ; preds = %211
br label %222
216: ; preds = %211
%217 = load i32, i32* %7
%218 = and i32 %217, 4096
%219 = icmp ne i32 %218, 0
%220 = zext i1 %219 to i64
%221 = select i1 %219, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
br label %222
222: ; preds = %216, %215
%223 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %215 ], [ %221, %216 ]
%224 = load i32, i32* %6
%225 = icmp ne i32 %224, 0
br i1 %225, label %226, label %227
226: ; preds = %222
br label %233
227: ; preds = %222
%228 = load i32, i32* %7
%229 = and i32 %228, 8192
%230 = icmp ne i32 %229, 0
%231 = zext i1 %230 to i64
%232 = select i1 %230, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.25, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
br label %233
233: ; preds = %227, %226
%234 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %226 ], [ %232, %227 ]
%235 = load i32, i32* %6
%236 = icmp ne i32 %235, 0
br i1 %236, label %237, label %238
237: ; preds = %233
br label %244
238: ; preds = %233
%239 = load i32, i32* %7
%240 = and i32 %239, 32768
%241 = icmp ne i32 %240, 0
%242 = zext i1 %241 to i64
%243 = select i1 %241, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.26, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
br label %244
244: ; preds = %238, %237
%245 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %237 ], [ %243, %238 ]
%246 = load i32, i32* %6
%247 = icmp ne i32 %246, 0
br i1 %247, label %248, label %249
248: ; preds = %244
br label %255
249: ; preds = %244
%250 = load i32, i32* %7
%251 = and i32 %250, 65536
%252 = icmp ne i32 %251, 0
%253 = zext i1 %252 to i64
%254 = select i1 %252, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.27, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
br label %255
255: ; preds = %249, %248
%256 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %248 ], [ %254, %249 ]
%257 = load i32, i32* %6
%258 = icmp ne i32 %257, 0
br i1 %258, label %259, label %260
259: ; preds = %255
br label %266
260: ; preds = %255
%261 = load i32, i32* %7
%262 = and i32 %261, 131072
%263 = icmp ne i32 %262, 0
%264 = zext i1 %263 to i64
%265 = select i1 %263, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.28, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
br label %266
266: ; preds = %260, %259
%267 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %259 ], [ %265, %260 ]
%268 = load i32, i32* %6
%269 = icmp ne i32 %268, 0
br i1 %269, label %270, label %271
270: ; preds = %266
br label %277
271: ; preds = %266
%272 = load i32, i32* %7
%273 = and i32 %272, 524288
%274 = icmp ne i32 %273, 0
%275 = zext i1 %274 to i64
%276 = select i1 %274, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.29, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
br label %277
277: ; preds = %271, %270
%278 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %270 ], [ %276, %271 ]
%279 = load i32, i32* %6
%280 = icmp ne i32 %279, 0
br i1 %280, label %281, label %282
281: ; preds = %277
br label %288
282: ; preds = %277
%283 = load i32, i32* %7
%284 = and i32 %283, 2097152
%285 = icmp ne i32 %284, 0
%286 = zext i1 %285 to i64
%287 = select i1 %285, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.30, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
br label %288
288: ; preds = %282, %281
%289 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %281 ], [ %287, %282 ]
%290 = load i32, i32* %6
%291 = icmp ne i32 %290, 0
br i1 %291, label %292, label %293
292: ; preds = %288
br label %299
293: ; preds = %288
%294 = load i32, i32* %7
%295 = and i32 %294, 4194304
%296 = icmp ne i32 %295, 0
%297 = zext i1 %296 to i64
%298 = select i1 %296, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.31, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
br label %299
299: ; preds = %293, %292
%300 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %292 ], [ %298, %293 ]
%301 = load i32, i32* %6
%302 = icmp ne i32 %301, 0
br i1 %302, label %303, label %304
303: ; preds = %299
br label %310
304: ; preds = %299
%305 = load i32, i32* %7
%306 = and i32 %305, 8388608
%307 = icmp ne i32 %306, 0
%308 = zext i1 %307 to i64
%309 = select i1 %307, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.32, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
br label %310
310: ; preds = %304, %303
%311 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %303 ], [ %309, %304 ]
%312 = load i32, i32* %6
%313 = icmp ne i32 %312, 0
br i1 %313, label %314, label %315
314: ; preds = %310
br label %321
315: ; preds = %310
%316 = load i32, i32* %7
%317 = and i32 %316, 16777216
%318 = icmp ne i32 %317, 0
%319 = zext i1 %318 to i64
%320 = select i1 %318, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.33, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
br label %321
321: ; preds = %315, %314
%322 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %314 ], [ %320, %315 ]
%323 = load i32, i32* %6
%324 = icmp ne i32 %323, 0
br i1 %324, label %325, label %326
325: ; preds = %321
br label %332
326: ; preds = %321
%327 = load i32, i32* %7
%328 = and i32 %327, 33554432
%329 = icmp ne i32 %328, 0
%330 = zext i1 %329 to i64
%331 = select i1 %329, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.34, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
br label %332
332: ; preds = %326, %325
%333 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %325 ], [ %331, %326 ]
%334 = load i32, i32* %6
%335 = icmp ne i32 %334, 0
br i1 %335, label %336, label %337
336: ; preds = %332
br label %343
337: ; preds = %332
%338 = load i32, i32* %7
%339 = and i32 %338, 134217728
%340 = icmp ne i32 %339, 0
%341 = zext i1 %340 to i64
%342 = select i1 %340, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.35, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
br label %343
343: ; preds = %337, %336
%344 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %336 ], [ %342, %337 ]
%345 = load i32, i32* %6
%346 = icmp ne i32 %345, 0
br i1 %346, label %347, label %348
347: ; preds = %343
br label %354
348: ; preds = %343
%349 = load i32, i32* %7
%350 = and i32 %349, 268435456
%351 = icmp ne i32 %350, 0
%352 = zext i1 %351 to i64
%353 = select i1 %351, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.36, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
br label %354
354: ; preds = %348, %347
%355 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %347 ], [ %353, %348 ]
%356 = call i32 @snprintf(i8* %11, i64 %12, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0), i8* %17, i8* %28, i8* %33, i8* %44, i8* %55, i8* %60, i8* %65, i8* %70, i8* %81, i8* %92, i8* %97, i8* %108, i8* %119, i8* %130, i8* %141, i8* %146, i8* %157, i8* %168, i8* %179, i8* %190, i8* %201, i8* %212, i8* %223, i8* %234, i8* %245, i8* %256, i8* %267, i8* %278, i8* %289, i8* %300, i8* %311, i8* %322, i8* %333, i8* %344, i8* %355)
ret i32 %356
}

LLVM IR (-O2):
@.str = [71 x i8] c"%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s\00"
@.str.1 = [9 x i8] c"syscall \00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [4 x i8] c"mp \00"
@.str.4 = [4 x i8] c"nx \00"
@.str.5 = [8 x i8] c"mmxext \00"
@.str.6 = [10 x i8] c"fxsr_opt \00"
@.str.7 = [9 x i8] c"pdpe1gb \00"
@.str.8 = [8 x i8] c"rdtscp \00"
@.str.9 = [4 x i8] c"lm \00"
@.str.10 = [10 x i8] c"3dnowext \00"
@.str.11 = [7 x i8] c"3dnow \00"
@.str.12 = [9 x i8] c"lahf_lm \00"
@.str.13 = [12 x i8] c"cmp_legacy \00"
@.str.14 = [5 x i8] c"svm \00"
@.str.15 = [9 x i8] c"extapic \00"
@.str.16 = [12 x i8] c"cr8_legacy \00"
@.str.17 = [7 x i8] c"lzcnt \00"
@.str.18 = [7 x i8] c"sse4a \00"
@.str.19 = [13 x i8] c"misalignsse \00"
@.str.20 = [15 x i8] c"3dnowprefetch \00"
@.str.21 = [6 x i8] c"osvw \00"
@.str.22 = [5 x i8] c"ibs \00"
@.str.23 = [5 x i8] c"xop \00"
@.str.24 = [8 x i8] c"skinit \00"
@.str.25 = [5 x i8] c"wdt \00"
@.str.26 = [5 x i8] c"lwp \00"
@.str.27 = [6 x i8] c"fma4 \00"
@.str.28 = [5 x i8] c"tce \00"
@.str.29 = [12 x i8] c"nodeid_msr \00"
@.str.30 = [5 x i8] c"tbm \00"
@.str.31 = [9 x i8] c"topoext \00"
@.str.32 = [14 x i8] c"perfctr_core \00"
@.str.33 = [12 x i8] c"perfctr_nb \00"
@.str.34 = [5 x i8] c"dbx \00"
@.str.35 = [9 x i8] c"perftsc \00"
@.str.36 = [9 x i8] c"pcx_l2i \00"
define i32 @get_x86_cpu_extended_flags(i32 %0, i32 %1, i32 %2, i8* %3, i64 %4) {
%6 = icmp eq i32 %0, 0
%7 = and i32 %2, 524288
%8 = icmp eq i32 %7, 0
%9 = select i1 %8, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0)
%10 = select i1 %6, i8* %9, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%11 = and i32 %2, 4194304
%12 = icmp eq i32 %11, 0
%13 = select i1 %12, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0)
%14 = select i1 %6, i8* %13, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%15 = and i32 %2, 33554432
%16 = icmp eq i32 %15, 0
%17 = select i1 %16, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0)
%18 = select i1 %6, i8* %17, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%19 = and i32 %2, 1073741824
%20 = icmp eq i32 %19, 0
%21 = select i1 %20, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0)
%22 = select i1 %6, i8* %21, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%23 = icmp sgt i32 %2, -1
%24 = select i1 %23, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0)
%25 = select i1 %6, i8* %24, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%26 = and i32 %1, 2
%27 = icmp eq i32 %26, 0
%28 = select i1 %27, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0)
%29 = select i1 %6, i8* %28, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%30 = and i32 %1, 4
%31 = icmp eq i32 %30, 0
%32 = select i1 %31, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0)
%33 = select i1 %6, i8* %32, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%34 = and i32 %1, 8
%35 = icmp eq i32 %34, 0
%36 = select i1 %35, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i64 0, i64 0)
%37 = select i1 %6, i8* %36, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%38 = and i32 %1, 16
%39 = icmp eq i32 %38, 0
%40 = select i1 %39, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.16, i64 0, i64 0)
%41 = select i1 %6, i8* %40, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%42 = and i32 %1, 64
%43 = icmp eq i32 %42, 0
%44 = select i1 %43, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0)
%45 = select i1 %6, i8* %44, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%46 = and i32 %1, 128
%47 = icmp eq i32 %46, 0
%48 = select i1 %47, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.19, i64 0, i64 0)
%49 = select i1 %6, i8* %48, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%50 = and i32 %1, 256
%51 = icmp eq i32 %50, 0
%52 = select i1 %51, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.20, i64 0, i64 0)
%53 = select i1 %6, i8* %52, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%54 = and i32 %1, 512
%55 = icmp eq i32 %54, 0
%56 = select i1 %55, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.21, i64 0, i64 0)
%57 = select i1 %6, i8* %56, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%58 = and i32 %1, 1024
%59 = icmp eq i32 %58, 0
%60 = select i1 %59, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.22, i64 0, i64 0)
%61 = select i1 %6, i8* %60, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%62 = and i32 %1, 2048
%63 = icmp eq i32 %62, 0
%64 = select i1 %63, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.23, i64 0, i64 0)
%65 = select i1 %6, i8* %64, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%66 = and i32 %1, 4096
%67 = icmp eq i32 %66, 0
%68 = select i1 %67, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.24, i64 0, i64 0)
%69 = select i1 %6, i8* %68, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%70 = and i32 %1, 8192
%71 = icmp eq i32 %70, 0
%72 = select i1 %71, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.25, i64 0, i64 0)
%73 = select i1 %6, i8* %72, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%74 = and i32 %1, 32768
%75 = icmp eq i32 %74, 0
%76 = select i1 %75, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.26, i64 0, i64 0)
%77 = select i1 %6, i8* %76, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%78 = and i32 %1, 65536
%79 = icmp eq i32 %78, 0
%80 = select i1 %79, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.27, i64 0, i64 0)
%81 = select i1 %6, i8* %80, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%82 = and i32 %1, 131072
%83 = icmp eq i32 %82, 0
%84 = select i1 %83, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.28, i64 0, i64 0)
%85 = select i1 %6, i8* %84, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%86 = and i32 %1, 524288
%87 = icmp eq i32 %86, 0
%88 = select i1 %87, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.29, i64 0, i64 0)
%89 = select i1 %6, i8* %88, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%90 = and i32 %1, 2097152
%91 = icmp eq i32 %90, 0
%92 = select i1 %91, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.30, i64 0, i64 0)
%93 = select i1 %6, i8* %92, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%94 = and i32 %1, 4194304
%95 = icmp eq i32 %94, 0
%96 = select i1 %95, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.31, i64 0, i64 0)
%97 = select i1 %6, i8* %96, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%98 = and i32 %1, 8388608
%99 = icmp eq i32 %98, 0
%100 = select i1 %99, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.32, i64 0, i64 0)
%101 = select i1 %6, i8* %100, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%102 = and i32 %1, 16777216
%103 = icmp eq i32 %102, 0
%104 = select i1 %103, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.33, i64 0, i64 0)
%105 = select i1 %6, i8* %104, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%106 = and i32 %1, 33554432
%107 = icmp eq i32 %106, 0
%108 = select i1 %107, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.34, i64 0, i64 0)
%109 = select i1 %6, i8* %108, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%110 = and i32 %1, 134217728
%111 = icmp eq i32 %110, 0
%112 = select i1 %111, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.35, i64 0, i64 0)
%113 = select i1 %6, i8* %112, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%114 = and i32 %1, 268435456
%115 = icmp eq i32 %114, 0
%116 = select i1 %115, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.36, i64 0, i64 0)
%117 = select i1 %6, i8* %116, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%118 = and i32 %1, 32
%119 = icmp eq i32 %118, 0
%120 = select i1 %119, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0)
%121 = and i32 %1, 1
%122 = icmp eq i32 %121, 0
%123 = select i1 %122, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0)
%124 = and i32 %2, 536870912
%125 = icmp eq i32 %124, 0
%126 = select i1 %125, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0)
%127 = and i32 %2, 134217728
%128 = icmp eq i32 %127, 0
%129 = select i1 %128, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0)
%130 = and i32 %2, 67108864
%131 = icmp eq i32 %130, 0
%132 = select i1 %131, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0)
%133 = and i32 %2, 1048576
%134 = icmp eq i32 %133, 0
%135 = select i1 %134, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0)
%136 = and i32 %2, 2048
%137 = icmp eq i32 %136, 0
%138 = select i1 %137, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0)
%139 = tail call i32 @snprintf(i8* %3, i64 %4, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0), i8* %138, i8* %10, i8* %135, i8* %14, i8* %18, i8* %132, i8* %129, i8* %126, i8* %22, i8* %25, i8* %123, i8* %29, i8* %33, i8* %37, i8* %41, i8* %120, i8* %45, i8* %49, i8* %53, i8* %57, i8* %61, i8* %65, i8* %69, i8* %73, i8* %77, i8* %81, i8* %85, i8* %89, i8* %93, i8* %97, i8* %101, i8* %105, i8* %109, i8* %113, i8* %117)
ret i32 %139
}