#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ delete (char *, int);
int /*<<< orphan*/ error(char *, char *);
char *insert(char *, char *);
char *skipParens(char *);
int /*<<< orphan*/ strncmp(char *, char *, int);
char *rewrite_i386_reg(char *arg) {
  if (*arg == '(')
    return skipParens(arg);
  if (!strncmp(arg, "eax", 3)) {
    delete (arg, 3);
    arg = insert(arg, "_EAX");
  } else if (!strncmp(arg, "ecx", 3)) {
    delete (arg, 3);
    arg = insert(arg, "_ECX");
  } else if (!strncmp(arg, "edx", 3)) {
    delete (arg, 3);
    arg = insert(arg, "_EDX");
  } else if (!strncmp(arg, "ebx", 3)) {
    delete (arg, 3);
    arg = insert(arg, "_EBX");
  } else if (!strncmp(arg, "esp", 3)) {
    delete (arg, 3);
    arg = insert(arg, "_ESP");
  } else if (!strncmp(arg, "ebp", 3)) {
    delete (arg, 3);
    arg = insert(arg, "_EBP");
  } else if (!strncmp(arg, "esi", 3)) {
    delete (arg, 3);
    arg = insert(arg, "_ESI");
  } else if (!strncmp(arg, "edi", 3)) {
    delete (arg, 3);
    arg = insert(arg, "_EDI");
  } else if (!strncmp(arg, "al", 2)) {
    delete (arg, 2);
    arg = insert(arg, "_AL");
  } else if (!strncmp(arg, "cl", 2)) {
    delete (arg, 2);
    arg = insert(arg, "_CL");
  } else if (!strncmp(arg, "dl", 2)) {
    delete (arg, 2);
    arg = insert(arg, "_DL");
  } else if (!strncmp(arg, "bl", 2)) {
    delete (arg, 2);
    arg = insert(arg, "_BL");
  } else if (!strncmp(arg, "ah", 2)) {
    delete (arg, 2);
    arg = insert(arg, "_AH");
  } else if (!strncmp(arg, "ch", 2)) {
    delete (arg, 2);
    arg = insert(arg, "_CH");
  } else if (!strncmp(arg, "dh", 2)) {
    delete (arg, 2);
    arg = insert(arg, "_DH");
  } else if (!strncmp(arg, "bh", 2)) {
    delete (arg, 2);
    arg = insert(arg, "_BH");
  } else if (!strncmp(arg, "ax", 2)) {
    delete (arg, 2);
    arg = insert(arg, "_AX");
  } else if (!strncmp(arg, "cx", 2)) {
    delete (arg, 2);
    arg = insert(arg, "_CX");
  } else if (!strncmp(arg, "dx", 2)) {
    delete (arg, 2);
    arg = insert(arg, "_DX");
  } else if (!strncmp(arg, "bx", 2)) {
    delete (arg, 2);
    arg = insert(arg, "_BX");
  } else if (!strncmp(arg, "sp", 2)) {
    delete (arg, 2);
    arg = insert(arg, "_SP");
  } else if (!strncmp(arg, "bp", 2)) {
    delete (arg, 2);
    arg = insert(arg, "_BP");
  } else if (!strncmp(arg, "si", 2)) {
    delete (arg, 2);
    arg = insert(arg, "_SI");
  } else if (!strncmp(arg, "di", 2)) {
    delete (arg, 2);
    arg = insert(arg, "_DI");
  } else
    error("unknown register name: %s", arg);
  return arg;
}


x86 assembly (clang, -O0):
<rewrite_i386_reg>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x28,%eax
jne    117e <rewrite_i386_reg+0x2e>
mov    -0x10(%rbp),%rdi
call   1070 <skipParens@plt>
mov    %rax,-0x8(%rbp)
jmp    1881 <rewrite_i386_reg+0x731>
mov    -0x10(%rbp),%rdi
lea    0xe77(%rip),%rsi
mov    $0x3,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    11c3 <rewrite_i386_reg+0x73>
mov    -0x10(%rbp),%rdi
mov    $0x3,%esi
call   1060 <delete@plt>
mov    -0x10(%rbp),%rdi
lea    0xe4f(%rip),%rsi
call   1050 <insert@plt>
mov    %rax,-0x10(%rbp)
jmp    1879 <rewrite_i386_reg+0x729>
mov    -0x10(%rbp),%rdi
lea    0xe3b(%rip),%rsi
mov    $0x3,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1208 <rewrite_i386_reg+0xb8>
mov    -0x10(%rbp),%rdi
mov    $0x3,%esi
call   1060 <delete@plt>
mov    -0x10(%rbp),%rdi
lea    0xe13(%rip),%rsi
call   1050 <insert@plt>
mov    %rax,-0x10(%rbp)
jmp    1874 <rewrite_i386_reg+0x724>
mov    -0x10(%rbp),%rdi
lea    0xdff(%rip),%rsi
mov    $0x3,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    124d <rewrite_i386_reg+0xfd>
mov    -0x10(%rbp),%rdi
mov    $0x3,%esi
call   1060 <delete@plt>
mov    -0x10(%rbp),%rdi
lea    0xdd7(%rip),%rsi
call   1050 <insert@plt>
mov    %rax,-0x10(%rbp)
jmp    186f <rewrite_i386_reg+0x71f>
mov    -0x10(%rbp),%rdi
lea    0xdc3(%rip),%rsi
mov    $0x3,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1292 <rewrite_i386_reg+0x142>
mov    -0x10(%rbp),%rdi
mov    $0x3,%esi
call   1060 <delete@plt>
mov    -0x10(%rbp),%rdi
lea    0xd9b(%rip),%rsi
call   1050 <insert@plt>
mov    %rax,-0x10(%rbp)
jmp    186a <rewrite_i386_reg+0x71a>
mov    -0x10(%rbp),%rdi
lea    0xd87(%rip),%rsi
mov    $0x3,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    12d7 <rewrite_i386_reg+0x187>
mov    -0x10(%rbp),%rdi
mov    $0x3,%esi
call   1060 <delete@plt>
mov    -0x10(%rbp),%rdi
lea    0xd5f(%rip),%rsi
call   1050 <insert@plt>
mov    %rax,-0x10(%rbp)
jmp    1865 <rewrite_i386_reg+0x715>
mov    -0x10(%rbp),%rdi
lea    0xd4b(%rip),%rsi
mov    $0x3,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    131c <rewrite_i386_reg+0x1cc>
mov    -0x10(%rbp),%rdi
mov    $0x3,%esi
call   1060 <delete@plt>
mov    -0x10(%rbp),%rdi
lea    0xd23(%rip),%rsi
call   1050 <insert@plt>
mov    %rax,-0x10(%rbp)
jmp    1860 <rewrite_i386_reg+0x710>
mov    -0x10(%rbp),%rdi
lea    0xd0f(%rip),%rsi
mov    $0x3,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1361 <rewrite_i386_reg+0x211>
mov    -0x10(%rbp),%rdi
mov    $0x3,%esi
call   1060 <delete@plt>
mov    -0x10(%rbp),%rdi
lea    0xce7(%rip),%rsi
call   1050 <insert@plt>
mov    %rax,-0x10(%rbp)
jmp    185b <rewrite_i386_reg+0x70b>
mov    -0x10(%rbp),%rdi
lea    0xcd3(%rip),%rsi
mov    $0x3,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    13a6 <rewrite_i386_reg+0x256>
mov    -0x10(%rbp),%rdi
mov    $0x3,%esi
call   1060 <delete@plt>
mov    -0x10(%rbp),%rdi
lea    0xcab(%rip),%rsi
call   1050 <insert@plt>
mov    %rax,-0x10(%rbp)
jmp    1856 <rewrite_i386_reg+0x706>
mov    -0x10(%rbp),%rdi
lea    0xc97(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    13eb <rewrite_i386_reg+0x29b>
mov    -0x10(%rbp),%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
mov    -0x10(%rbp),%rdi
lea    0xc6e(%rip),%rsi
call   1050 <insert@plt>
mov    %rax,-0x10(%rbp)
jmp    1851 <rewrite_i386_reg+0x701>
mov    -0x10(%rbp),%rdi
lea    0xc59(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1430 <rewrite_i386_reg+0x2e0>
mov    -0x10(%rbp),%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
mov    -0x10(%rbp),%rdi
lea    0xc30(%rip),%rsi
call   1050 <insert@plt>
mov    %rax,-0x10(%rbp)
jmp    184c <rewrite_i386_reg+0x6fc>
mov    -0x10(%rbp),%rdi
lea    0xc1b(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1475 <rewrite_i386_reg+0x325>
mov    -0x10(%rbp),%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
mov    -0x10(%rbp),%rdi
lea    0xbf2(%rip),%rsi
call   1050 <insert@plt>
mov    %rax,-0x10(%rbp)
jmp    1847 <rewrite_i386_reg+0x6f7>
mov    -0x10(%rbp),%rdi
lea    0xbdd(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    14ba <rewrite_i386_reg+0x36a>
mov    -0x10(%rbp),%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
mov    -0x10(%rbp),%rdi
lea    0xbb4(%rip),%rsi
call   1050 <insert@plt>
mov    %rax,-0x10(%rbp)
jmp    1842 <rewrite_i386_reg+0x6f2>
mov    -0x10(%rbp),%rdi
lea    0xb9f(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    14ff <rewrite_i386_reg+0x3af>
mov    -0x10(%rbp),%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
mov    -0x10(%rbp),%rdi
lea    0xb76(%rip),%rsi
call   1050 <insert@plt>
mov    %rax,-0x10(%rbp)
jmp    183d <rewrite_i386_reg+0x6ed>
mov    -0x10(%rbp),%rdi
lea    0xb61(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1544 <rewrite_i386_reg+0x3f4>
mov    -0x10(%rbp),%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
mov    -0x10(%rbp),%rdi
lea    0xb38(%rip),%rsi
call   1050 <insert@plt>
mov    %rax,-0x10(%rbp)
jmp    1838 <rewrite_i386_reg+0x6e8>
mov    -0x10(%rbp),%rdi
lea    0xb23(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1589 <rewrite_i386_reg+0x439>
mov    -0x10(%rbp),%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
mov    -0x10(%rbp),%rdi
lea    0xafa(%rip),%rsi
call   1050 <insert@plt>
mov    %rax,-0x10(%rbp)
jmp    1833 <rewrite_i386_reg+0x6e3>
mov    -0x10(%rbp),%rdi
lea    0xae5(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    15ce <rewrite_i386_reg+0x47e>
mov    -0x10(%rbp),%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
mov    -0x10(%rbp),%rdi
lea    0xabc(%rip),%rsi
call   1050 <insert@plt>
mov    %rax,-0x10(%rbp)
jmp    182e <rewrite_i386_reg+0x6de>
mov    -0x10(%rbp),%rdi
lea    0xa28(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1613 <rewrite_i386_reg+0x4c3>
mov    -0x10(%rbp),%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
mov    -0x10(%rbp),%rdi
lea    0xa7b(%rip),%rsi
call   1050 <insert@plt>
mov    %rax,-0x10(%rbp)
jmp    1829 <rewrite_i386_reg+0x6d9>
mov    -0x10(%rbp),%rdi
lea    0x9ec(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1658 <rewrite_i386_reg+0x508>
mov    -0x10(%rbp),%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
mov    -0x10(%rbp),%rdi
lea    0xa3a(%rip),%rsi
call   1050 <insert@plt>
mov    %rax,-0x10(%rbp)
jmp    1824 <rewrite_i386_reg+0x6d4>
mov    -0x10(%rbp),%rdi
lea    0x9b0(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    169d <rewrite_i386_reg+0x54d>
mov    -0x10(%rbp),%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
mov    -0x10(%rbp),%rdi
lea    0x9f9(%rip),%rsi
call   1050 <insert@plt>
mov    %rax,-0x10(%rbp)
jmp    181f <rewrite_i386_reg+0x6cf>
mov    -0x10(%rbp),%rdi
lea    0x974(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    16e2 <rewrite_i386_reg+0x592>
mov    -0x10(%rbp),%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
mov    -0x10(%rbp),%rdi
lea    0x9b8(%rip),%rsi
call   1050 <insert@plt>
mov    %rax,-0x10(%rbp)
jmp    181a <rewrite_i386_reg+0x6ca>
mov    -0x10(%rbp),%rdi
lea    0x938(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1727 <rewrite_i386_reg+0x5d7>
mov    -0x10(%rbp),%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
mov    -0x10(%rbp),%rdi
lea    0x977(%rip),%rsi
call   1050 <insert@plt>
mov    %rax,-0x10(%rbp)
jmp    1815 <rewrite_i386_reg+0x6c5>
mov    -0x10(%rbp),%rdi
lea    0x8fc(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    176c <rewrite_i386_reg+0x61c>
mov    -0x10(%rbp),%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
mov    -0x10(%rbp),%rdi
lea    0x936(%rip),%rsi
call   1050 <insert@plt>
mov    %rax,-0x10(%rbp)
jmp    1810 <rewrite_i386_reg+0x6c0>
mov    -0x10(%rbp),%rdi
lea    0x8c0(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    17b1 <rewrite_i386_reg+0x661>
mov    -0x10(%rbp),%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
mov    -0x10(%rbp),%rdi
lea    0x8f5(%rip),%rsi
call   1050 <insert@plt>
mov    %rax,-0x10(%rbp)
jmp    180b <rewrite_i386_reg+0x6bb>
mov    -0x10(%rbp),%rdi
lea    0x884(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    17f6 <rewrite_i386_reg+0x6a6>
mov    -0x10(%rbp),%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
mov    -0x10(%rbp),%rdi
lea    0x8b4(%rip),%rsi
call   1050 <insert@plt>
mov    %rax,-0x10(%rbp)
jmp    1806 <rewrite_i386_reg+0x6b6>
mov    -0x10(%rbp),%rsi
lea    0x89f(%rip),%rdi
call   1040 <error@plt>
jmp    180b <rewrite_i386_reg+0x6bb>
jmp    1810 <rewrite_i386_reg+0x6c0>
jmp    1815 <rewrite_i386_reg+0x6c5>
jmp    181a <rewrite_i386_reg+0x6ca>
jmp    181f <rewrite_i386_reg+0x6cf>
jmp    1824 <rewrite_i386_reg+0x6d4>
jmp    1829 <rewrite_i386_reg+0x6d9>
jmp    182e <rewrite_i386_reg+0x6de>
jmp    1833 <rewrite_i386_reg+0x6e3>
jmp    1838 <rewrite_i386_reg+0x6e8>
jmp    183d <rewrite_i386_reg+0x6ed>
jmp    1842 <rewrite_i386_reg+0x6f2>
jmp    1847 <rewrite_i386_reg+0x6f7>
jmp    184c <rewrite_i386_reg+0x6fc>
jmp    1851 <rewrite_i386_reg+0x701>
jmp    1856 <rewrite_i386_reg+0x706>
jmp    185b <rewrite_i386_reg+0x70b>
jmp    1860 <rewrite_i386_reg+0x710>
jmp    1865 <rewrite_i386_reg+0x715>
jmp    186a <rewrite_i386_reg+0x71a>
jmp    186f <rewrite_i386_reg+0x71f>
jmp    1874 <rewrite_i386_reg+0x724>
jmp    1879 <rewrite_i386_reg+0x729>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rewrite_i386_reg>:
push   %rbx
mov    %rdi,%rbx
cmpb   $0x28,(%rdi)
jne    1162 <rewrite_i386_reg+0x12>
mov    %rbx,%rdi
pop    %rbx
jmp    1070 <skipParens@plt>
lea    0xe97(%rip),%rsi
mov    %rbx,%rdi
mov    $0x3,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     1416 <rewrite_i386_reg+0x2c6>
lea    0xe84(%rip),%rsi
mov    %rbx,%rdi
mov    $0x3,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     142f <rewrite_i386_reg+0x2df>
lea    0xe71(%rip),%rsi
mov    %rbx,%rdi
mov    $0x3,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     1448 <rewrite_i386_reg+0x2f8>
lea    0xe5e(%rip),%rsi
mov    %rbx,%rdi
mov    $0x3,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     1461 <rewrite_i386_reg+0x311>
lea    0xe4b(%rip),%rsi
mov    %rbx,%rdi
mov    $0x3,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     147a <rewrite_i386_reg+0x32a>
lea    0xe38(%rip),%rsi
mov    %rbx,%rdi
mov    $0x3,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     1493 <rewrite_i386_reg+0x343>
lea    0xe25(%rip),%rsi
mov    %rbx,%rdi
mov    $0x3,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     14ac <rewrite_i386_reg+0x35c>
lea    0xe12(%rip),%rsi
mov    %rbx,%rdi
mov    $0x3,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     14c5 <rewrite_i386_reg+0x375>
lea    0xdff(%rip),%rsi
mov    %rbx,%rdi
mov    $0x2,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     14de <rewrite_i386_reg+0x38e>
lea    0xdea(%rip),%rsi
mov    %rbx,%rdi
mov    $0x2,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     14f7 <rewrite_i386_reg+0x3a7>
lea    0xdd5(%rip),%rsi
mov    %rbx,%rdi
mov    $0x2,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     1510 <rewrite_i386_reg+0x3c0>
lea    0xdc0(%rip),%rsi
mov    %rbx,%rdi
mov    $0x2,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     1529 <rewrite_i386_reg+0x3d9>
lea    0xdab(%rip),%rsi
mov    %rbx,%rdi
mov    $0x2,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     1542 <rewrite_i386_reg+0x3f2>
lea    0xd96(%rip),%rsi
mov    %rbx,%rdi
mov    $0x2,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     155b <rewrite_i386_reg+0x40b>
lea    0xd81(%rip),%rsi
mov    %rbx,%rdi
mov    $0x2,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     1574 <rewrite_i386_reg+0x424>
lea    0xd6c(%rip),%rsi
mov    %rbx,%rdi
mov    $0x2,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     158d <rewrite_i386_reg+0x43d>
lea    0xcd8(%rip),%rsi
mov    %rbx,%rdi
mov    $0x2,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     15a6 <rewrite_i386_reg+0x456>
lea    0xcc5(%rip),%rsi
mov    %rbx,%rdi
mov    $0x2,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     15bf <rewrite_i386_reg+0x46f>
lea    0xcb2(%rip),%rsi
mov    %rbx,%rdi
mov    $0x2,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     15d8 <rewrite_i386_reg+0x488>
lea    0xc9f(%rip),%rsi
mov    %rbx,%rdi
mov    $0x2,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     15ee <rewrite_i386_reg+0x49e>
lea    0xc8c(%rip),%rsi
mov    %rbx,%rdi
mov    $0x2,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     1604 <rewrite_i386_reg+0x4b4>
lea    0xc79(%rip),%rsi
mov    %rbx,%rdi
mov    $0x2,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     161a <rewrite_i386_reg+0x4ca>
lea    0xc66(%rip),%rsi
mov    %rbx,%rdi
mov    $0x2,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     1630 <rewrite_i386_reg+0x4e0>
lea    0xc53(%rip),%rsi
mov    %rbx,%rdi
mov    $0x2,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     1646 <rewrite_i386_reg+0x4f6>
lea    0xc97(%rip),%rdi
mov    %rbx,%rsi
call   1040 <error@plt>
mov    %rbx,%rax
pop    %rbx
ret
mov    %rbx,%rdi
mov    $0x3,%esi
call   1060 <delete@plt>
lea    0xbda(%rip),%rsi
jmp    165a <rewrite_i386_reg+0x50a>
mov    %rbx,%rdi
mov    $0x3,%esi
call   1060 <delete@plt>
lea    0xbca(%rip),%rsi
jmp    165a <rewrite_i386_reg+0x50a>
mov    %rbx,%rdi
mov    $0x3,%esi
call   1060 <delete@plt>
lea    0xbba(%rip),%rsi
jmp    165a <rewrite_i386_reg+0x50a>
mov    %rbx,%rdi
mov    $0x3,%esi
call   1060 <delete@plt>
lea    0xbaa(%rip),%rsi
jmp    165a <rewrite_i386_reg+0x50a>
mov    %rbx,%rdi
mov    $0x3,%esi
call   1060 <delete@plt>
lea    0xb9a(%rip),%rsi
jmp    165a <rewrite_i386_reg+0x50a>
mov    %rbx,%rdi
mov    $0x3,%esi
call   1060 <delete@plt>
lea    0xb8a(%rip),%rsi
jmp    165a <rewrite_i386_reg+0x50a>
mov    %rbx,%rdi
mov    $0x3,%esi
call   1060 <delete@plt>
lea    0xb7a(%rip),%rsi
jmp    165a <rewrite_i386_reg+0x50a>
mov    %rbx,%rdi
mov    $0x3,%esi
call   1060 <delete@plt>
lea    0xb6a(%rip),%rsi
jmp    165a <rewrite_i386_reg+0x50a>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
lea    0xb59(%rip),%rsi
jmp    165a <rewrite_i386_reg+0x50a>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
lea    0xb47(%rip),%rsi
jmp    165a <rewrite_i386_reg+0x50a>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
lea    0xb35(%rip),%rsi
jmp    165a <rewrite_i386_reg+0x50a>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
lea    0xb23(%rip),%rsi
jmp    165a <rewrite_i386_reg+0x50a>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
lea    0xb11(%rip),%rsi
jmp    165a <rewrite_i386_reg+0x50a>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
lea    0xaff(%rip),%rsi
jmp    165a <rewrite_i386_reg+0x50a>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
lea    0xaed(%rip),%rsi
jmp    165a <rewrite_i386_reg+0x50a>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
lea    0xadb(%rip),%rsi
jmp    165a <rewrite_i386_reg+0x50a>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
lea    0xac6(%rip),%rsi
jmp    165a <rewrite_i386_reg+0x50a>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
lea    0xab1(%rip),%rsi
jmp    165a <rewrite_i386_reg+0x50a>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
lea    0xa9c(%rip),%rsi
jmp    165a <rewrite_i386_reg+0x50a>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
lea    0xa8a(%rip),%rsi
jmp    165a <rewrite_i386_reg+0x50a>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
lea    0xa78(%rip),%rsi
jmp    165a <rewrite_i386_reg+0x50a>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
lea    0xa66(%rip),%rsi
jmp    165a <rewrite_i386_reg+0x50a>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
lea    0xa54(%rip),%rsi
jmp    165a <rewrite_i386_reg+0x50a>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1060 <delete@plt>
lea    0xa42(%rip),%rsi
mov    %rbx,%rdi
pop    %rbx
jmp    1050 <insert@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"eax\00"
@.str.1 = [5 x i8] c"_EAX\00"
@.str.2 = [4 x i8] c"ecx\00"
@.str.3 = [5 x i8] c"_ECX\00"
@.str.4 = [4 x i8] c"edx\00"
@.str.5 = [5 x i8] c"_EDX\00"
@.str.6 = [4 x i8] c"ebx\00"
@.str.7 = [5 x i8] c"_EBX\00"
@.str.8 = [4 x i8] c"esp\00"
@.str.9 = [5 x i8] c"_ESP\00"
@.str.10 = [4 x i8] c"ebp\00"
@.str.11 = [5 x i8] c"_EBP\00"
@.str.12 = [4 x i8] c"esi\00"
@.str.13 = [5 x i8] c"_ESI\00"
@.str.14 = [4 x i8] c"edi\00"
@.str.15 = [5 x i8] c"_EDI\00"
@.str.16 = [3 x i8] c"al\00"
@.str.17 = [4 x i8] c"_AL\00"
@.str.18 = [3 x i8] c"cl\00"
@.str.19 = [4 x i8] c"_CL\00"
@.str.20 = [3 x i8] c"dl\00"
@.str.21 = [4 x i8] c"_DL\00"
@.str.22 = [3 x i8] c"bl\00"
@.str.23 = [4 x i8] c"_BL\00"
@.str.24 = [3 x i8] c"ah\00"
@.str.25 = [4 x i8] c"_AH\00"
@.str.26 = [3 x i8] c"ch\00"
@.str.27 = [4 x i8] c"_CH\00"
@.str.28 = [3 x i8] c"dh\00"
@.str.29 = [4 x i8] c"_DH\00"
@.str.30 = [3 x i8] c"bh\00"
@.str.31 = [4 x i8] c"_BH\00"
@.str.32 = [3 x i8] c"ax\00"
@.str.33 = [4 x i8] c"_AX\00"
@.str.34 = [3 x i8] c"cx\00"
@.str.35 = [4 x i8] c"_CX\00"
@.str.36 = [3 x i8] c"dx\00"
@.str.37 = [4 x i8] c"_DX\00"
@.str.38 = [3 x i8] c"bx\00"
@.str.39 = [4 x i8] c"_BX\00"
@.str.40 = [3 x i8] c"sp\00"
@.str.41 = [4 x i8] c"_SP\00"
@.str.42 = [3 x i8] c"bp\00"
@.str.43 = [4 x i8] c"_BP\00"
@.str.44 = [3 x i8] c"si\00"
@.str.45 = [4 x i8] c"_SI\00"
@.str.46 = [3 x i8] c"di\00"
@.str.47 = [4 x i8] c"_DI\00"
@.str.48 = [26 x i8] c"unknown register name: %s\00"
define i8* @rewrite_i386_reg(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = load i8, i8* %4
%6 = sext i8 %5 to i32
%7 = icmp eq i32 %6, 40
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = load i8*, i8** %3
%10 = call i8* @skipParens(i8* %9)
store i8* %10, i8** %2
br label %255
11: ; preds = %1
%12 = load i8*, i8** %3
%13 = call i32 @strncmp(i8* %12, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 3)
%14 = icmp ne i32 %13, 0
br i1 %14, label %20, label %15
15: ; preds = %11
%16 = load i8*, i8** %3
%17 = call i32 @delete(i8* %16, i32 3)
%18 = load i8*, i8** %3
%19 = call i8* @insert(i8* %18, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
store i8* %19, i8** %3
br label %253
20: ; preds = %11
%21 = load i8*, i8** %3
%22 = call i32 @strncmp(i8* %21, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 3)
%23 = icmp ne i32 %22, 0
br i1 %23, label %29, label %24
24: ; preds = %20
%25 = load i8*, i8** %3
%26 = call i32 @delete(i8* %25, i32 3)
%27 = load i8*, i8** %3
%28 = call i8* @insert(i8* %27, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
store i8* %28, i8** %3
br label %252
29: ; preds = %20
%30 = load i8*, i8** %3
%31 = call i32 @strncmp(i8* %30, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 3)
%32 = icmp ne i32 %31, 0
br i1 %32, label %38, label %33
33: ; preds = %29
%34 = load i8*, i8** %3
%35 = call i32 @delete(i8* %34, i32 3)
%36 = load i8*, i8** %3
%37 = call i8* @insert(i8* %36, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
store i8* %37, i8** %3
br label %251
38: ; preds = %29
%39 = load i8*, i8** %3
%40 = call i32 @strncmp(i8* %39, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 3)
%41 = icmp ne i32 %40, 0
br i1 %41, label %47, label %42
42: ; preds = %38
%43 = load i8*, i8** %3
%44 = call i32 @delete(i8* %43, i32 3)
%45 = load i8*, i8** %3
%46 = call i8* @insert(i8* %45, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
store i8* %46, i8** %3
br label %250
47: ; preds = %38
%48 = load i8*, i8** %3
%49 = call i32 @strncmp(i8* %48, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 3)
%50 = icmp ne i32 %49, 0
br i1 %50, label %56, label %51
51: ; preds = %47
%52 = load i8*, i8** %3
%53 = call i32 @delete(i8* %52, i32 3)
%54 = load i8*, i8** %3
%55 = call i8* @insert(i8* %54, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
store i8* %55, i8** %3
br label %249
56: ; preds = %47
%57 = load i8*, i8** %3
%58 = call i32 @strncmp(i8* %57, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i32 3)
%59 = icmp ne i32 %58, 0
br i1 %59, label %65, label %60
60: ; preds = %56
%61 = load i8*, i8** %3
%62 = call i32 @delete(i8* %61, i32 3)
%63 = load i8*, i8** %3
%64 = call i8* @insert(i8* %63, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
store i8* %64, i8** %3
br label %248
65: ; preds = %56
%66 = load i8*, i8** %3
%67 = call i32 @strncmp(i8* %66, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i32 3)
%68 = icmp ne i32 %67, 0
br i1 %68, label %74, label %69
69: ; preds = %65
%70 = load i8*, i8** %3
%71 = call i32 @delete(i8* %70, i32 3)
%72 = load i8*, i8** %3
%73 = call i8* @insert(i8* %72, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
store i8* %73, i8** %3
br label %247
74: ; preds = %65
%75 = load i8*, i8** %3
%76 = call i32 @strncmp(i8* %75, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0), i32 3)
%77 = icmp ne i32 %76, 0
br i1 %77, label %83, label %78
78: ; preds = %74
%79 = load i8*, i8** %3
%80 = call i32 @delete(i8* %79, i32 3)
%81 = load i8*, i8** %3
%82 = call i8* @insert(i8* %81, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
store i8* %82, i8** %3
br label %246
83: ; preds = %74
%84 = load i8*, i8** %3
%85 = call i32 @strncmp(i8* %84, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), i32 2)
%86 = icmp ne i32 %85, 0
br i1 %86, label %92, label %87
87: ; preds = %83
%88 = load i8*, i8** %3
%89 = call i32 @delete(i8* %88, i32 2)
%90 = load i8*, i8** %3
%91 = call i8* @insert(i8* %90, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0))
store i8* %91, i8** %3
br label %245
92: ; preds = %83
%93 = load i8*, i8** %3
%94 = call i32 @strncmp(i8* %93, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i32 2)
%95 = icmp ne i32 %94, 0
br i1 %95, label %101, label %96
96: ; preds = %92
%97 = load i8*, i8** %3
%98 = call i32 @delete(i8* %97, i32 2)
%99 = load i8*, i8** %3
%100 = call i8* @insert(i8* %99, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0))
store i8* %100, i8** %3
br label %244
101: ; preds = %92
%102 = load i8*, i8** %3
%103 = call i32 @strncmp(i8* %102, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.20, i64 0, i64 0), i32 2)
%104 = icmp ne i32 %103, 0
br i1 %104, label %110, label %105
105: ; preds = %101
%106 = load i8*, i8** %3
%107 = call i32 @delete(i8* %106, i32 2)
%108 = load i8*, i8** %3
%109 = call i8* @insert(i8* %108, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i64 0, i64 0))
store i8* %109, i8** %3
br label %243
110: ; preds = %101
%111 = load i8*, i8** %3
%112 = call i32 @strncmp(i8* %111, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.22, i64 0, i64 0), i32 2)
%113 = icmp ne i32 %112, 0
br i1 %113, label %119, label %114
114: ; preds = %110
%115 = load i8*, i8** %3
%116 = call i32 @delete(i8* %115, i32 2)
%117 = load i8*, i8** %3
%118 = call i8* @insert(i8* %117, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.23, i64 0, i64 0))
store i8* %118, i8** %3
br label %242
119: ; preds = %110
%120 = load i8*, i8** %3
%121 = call i32 @strncmp(i8* %120, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.24, i64 0, i64 0), i32 2)
%122 = icmp ne i32 %121, 0
br i1 %122, label %128, label %123
123: ; preds = %119
%124 = load i8*, i8** %3
%125 = call i32 @delete(i8* %124, i32 2)
%126 = load i8*, i8** %3
%127 = call i8* @insert(i8* %126, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.25, i64 0, i64 0))
store i8* %127, i8** %3
br label %241
128: ; preds = %119
%129 = load i8*, i8** %3
%130 = call i32 @strncmp(i8* %129, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.26, i64 0, i64 0), i32 2)
%131 = icmp ne i32 %130, 0
br i1 %131, label %137, label %132
132: ; preds = %128
%133 = load i8*, i8** %3
%134 = call i32 @delete(i8* %133, i32 2)
%135 = load i8*, i8** %3
%136 = call i8* @insert(i8* %135, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.27, i64 0, i64 0))
store i8* %136, i8** %3
br label %240
137: ; preds = %128
%138 = load i8*, i8** %3
%139 = call i32 @strncmp(i8* %138, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.28, i64 0, i64 0), i32 2)
%140 = icmp ne i32 %139, 0
br i1 %140, label %146, label %141
141: ; preds = %137
%142 = load i8*, i8** %3
%143 = call i32 @delete(i8* %142, i32 2)
%144 = load i8*, i8** %3
%145 = call i8* @insert(i8* %144, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.29, i64 0, i64 0))
store i8* %145, i8** %3
br label %239
146: ; preds = %137
%147 = load i8*, i8** %3
%148 = call i32 @strncmp(i8* %147, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.30, i64 0, i64 0), i32 2)
%149 = icmp ne i32 %148, 0
br i1 %149, label %155, label %150
150: ; preds = %146
%151 = load i8*, i8** %3
%152 = call i32 @delete(i8* %151, i32 2)
%153 = load i8*, i8** %3
%154 = call i8* @insert(i8* %153, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.31, i64 0, i64 0))
store i8* %154, i8** %3
br label %238
155: ; preds = %146
%156 = load i8*, i8** %3
%157 = call i32 @strncmp(i8* %156, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.32, i64 0, i64 0), i32 2)
%158 = icmp ne i32 %157, 0
br i1 %158, label %164, label %159
159: ; preds = %155
%160 = load i8*, i8** %3
%161 = call i32 @delete(i8* %160, i32 2)
%162 = load i8*, i8** %3
%163 = call i8* @insert(i8* %162, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.33, i64 0, i64 0))
store i8* %163, i8** %3
br label %237
164: ; preds = %155
%165 = load i8*, i8** %3
%166 = call i32 @strncmp(i8* %165, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.34, i64 0, i64 0), i32 2)
%167 = icmp ne i32 %166, 0
br i1 %167, label %173, label %168
168: ; preds = %164
%169 = load i8*, i8** %3
%170 = call i32 @delete(i8* %169, i32 2)
%171 = load i8*, i8** %3
%172 = call i8* @insert(i8* %171, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.35, i64 0, i64 0))
store i8* %172, i8** %3
br label %236
173: ; preds = %164
%174 = load i8*, i8** %3
%175 = call i32 @strncmp(i8* %174, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.36, i64 0, i64 0), i32 2)
%176 = icmp ne i32 %175, 0
br i1 %176, label %182, label %177
177: ; preds = %173
%178 = load i8*, i8** %3
%179 = call i32 @delete(i8* %178, i32 2)
%180 = load i8*, i8** %3
%181 = call i8* @insert(i8* %180, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.37, i64 0, i64 0))
store i8* %181, i8** %3
br label %235
182: ; preds = %173
%183 = load i8*, i8** %3
%184 = call i32 @strncmp(i8* %183, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.38, i64 0, i64 0), i32 2)
%185 = icmp ne i32 %184, 0
br i1 %185, label %191, label %186
186: ; preds = %182
%187 = load i8*, i8** %3
%188 = call i32 @delete(i8* %187, i32 2)
%189 = load i8*, i8** %3
%190 = call i8* @insert(i8* %189, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.39, i64 0, i64 0))
store i8* %190, i8** %3
br label %234
191: ; preds = %182
%192 = load i8*, i8** %3
%193 = call i32 @strncmp(i8* %192, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.40, i64 0, i64 0), i32 2)
%194 = icmp ne i32 %193, 0
br i1 %194, label %200, label %195
195: ; preds = %191
%196 = load i8*, i8** %3
%197 = call i32 @delete(i8* %196, i32 2)
%198 = load i8*, i8** %3
%199 = call i8* @insert(i8* %198, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.41, i64 0, i64 0))
store i8* %199, i8** %3
br label %233
200: ; preds = %191
%201 = load i8*, i8** %3
%202 = call i32 @strncmp(i8* %201, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.42, i64 0, i64 0), i32 2)
%203 = icmp ne i32 %202, 0
br i1 %203, label %209, label %204
204: ; preds = %200
%205 = load i8*, i8** %3
%206 = call i32 @delete(i8* %205, i32 2)
%207 = load i8*, i8** %3
%208 = call i8* @insert(i8* %207, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.43, i64 0, i64 0))
store i8* %208, i8** %3
br label %232
209: ; preds = %200
%210 = load i8*, i8** %3
%211 = call i32 @strncmp(i8* %210, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.44, i64 0, i64 0), i32 2)
%212 = icmp ne i32 %211, 0
br i1 %212, label %218, label %213
213: ; preds = %209
%214 = load i8*, i8** %3
%215 = call i32 @delete(i8* %214, i32 2)
%216 = load i8*, i8** %3
%217 = call i8* @insert(i8* %216, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.45, i64 0, i64 0))
store i8* %217, i8** %3
br label %231
218: ; preds = %209
%219 = load i8*, i8** %3
%220 = call i32 @strncmp(i8* %219, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.46, i64 0, i64 0), i32 2)
%221 = icmp ne i32 %220, 0
br i1 %221, label %227, label %222
222: ; preds = %218
%223 = load i8*, i8** %3
%224 = call i32 @delete(i8* %223, i32 2)
%225 = load i8*, i8** %3
%226 = call i8* @insert(i8* %225, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.47, i64 0, i64 0))
store i8* %226, i8** %3
br label %230
227: ; preds = %218
%228 = load i8*, i8** %3
%229 = call i32 @error(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.48, i64 0, i64 0), i8* %228)
br label %230
230: ; preds = %227, %222
br label %231
231: ; preds = %230, %213
br label %232
232: ; preds = %231, %204
br label %233
233: ; preds = %232, %195
br label %234
234: ; preds = %233, %186
br label %235
235: ; preds = %234, %177
br label %236
236: ; preds = %235, %168
br label %237
237: ; preds = %236, %159
br label %238
238: ; preds = %237, %150
br label %239
239: ; preds = %238, %141
br label %240
240: ; preds = %239, %132
br label %241
241: ; preds = %240, %123
br label %242
242: ; preds = %241, %114
br label %243
243: ; preds = %242, %105
br label %244
244: ; preds = %243, %96
br label %245
245: ; preds = %244, %87
br label %246
246: ; preds = %245, %78
br label %247
247: ; preds = %246, %69
br label %248
248: ; preds = %247, %60
br label %249
249: ; preds = %248, %51
br label %250
250: ; preds = %249, %42
br label %251
251: ; preds = %250, %33
br label %252
252: ; preds = %251, %24
br label %253
253: ; preds = %252, %15
%254 = load i8*, i8** %3
store i8* %254, i8** %2
br label %255
255: ; preds = %253, %8
%256 = load i8*, i8** %2
ret i8* %256
}

LLVM IR (-O2):
@.str = [4 x i8] c"eax\00"
@.str.1 = [5 x i8] c"_EAX\00"
@.str.2 = [4 x i8] c"ecx\00"
@.str.3 = [5 x i8] c"_ECX\00"
@.str.4 = [4 x i8] c"edx\00"
@.str.5 = [5 x i8] c"_EDX\00"
@.str.6 = [4 x i8] c"ebx\00"
@.str.7 = [5 x i8] c"_EBX\00"
@.str.8 = [4 x i8] c"esp\00"
@.str.9 = [5 x i8] c"_ESP\00"
@.str.10 = [4 x i8] c"ebp\00"
@.str.11 = [5 x i8] c"_EBP\00"
@.str.12 = [4 x i8] c"esi\00"
@.str.13 = [5 x i8] c"_ESI\00"
@.str.14 = [4 x i8] c"edi\00"
@.str.15 = [5 x i8] c"_EDI\00"
@.str.16 = [3 x i8] c"al\00"
@.str.17 = [4 x i8] c"_AL\00"
@.str.18 = [3 x i8] c"cl\00"
@.str.19 = [4 x i8] c"_CL\00"
@.str.20 = [3 x i8] c"dl\00"
@.str.21 = [4 x i8] c"_DL\00"
@.str.22 = [3 x i8] c"bl\00"
@.str.23 = [4 x i8] c"_BL\00"
@.str.24 = [3 x i8] c"ah\00"
@.str.25 = [4 x i8] c"_AH\00"
@.str.26 = [3 x i8] c"ch\00"
@.str.27 = [4 x i8] c"_CH\00"
@.str.28 = [3 x i8] c"dh\00"
@.str.29 = [4 x i8] c"_DH\00"
@.str.30 = [3 x i8] c"bh\00"
@.str.31 = [4 x i8] c"_BH\00"
@.str.32 = [3 x i8] c"ax\00"
@.str.33 = [4 x i8] c"_AX\00"
@.str.34 = [3 x i8] c"cx\00"
@.str.35 = [4 x i8] c"_CX\00"
@.str.36 = [3 x i8] c"dx\00"
@.str.37 = [4 x i8] c"_DX\00"
@.str.38 = [3 x i8] c"bx\00"
@.str.39 = [4 x i8] c"_BX\00"
@.str.40 = [3 x i8] c"sp\00"
@.str.41 = [4 x i8] c"_SP\00"
@.str.42 = [3 x i8] c"bp\00"
@.str.43 = [4 x i8] c"_BP\00"
@.str.44 = [3 x i8] c"si\00"
@.str.45 = [4 x i8] c"_SI\00"
@.str.46 = [3 x i8] c"di\00"
@.str.47 = [4 x i8] c"_DI\00"
@.str.48 = [26 x i8] c"unknown register name: %s\00"
define i8* @rewrite_i386_reg(i8* %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 40
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = tail call i8* @skipParens(i8* %0)
br label %152
6: ; preds = %1
%7 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 3)
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %6
%10 = tail call i32 @delete(i8* %0, i32 3)
%11 = tail call i8* @insert(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %152
12: ; preds = %6
%13 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 3)
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %12
%16 = tail call i32 @delete(i8* %0, i32 3)
%17 = tail call i8* @insert(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %152
18: ; preds = %12
%19 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 3)
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %18
%22 = tail call i32 @delete(i8* %0, i32 3)
%23 = tail call i8* @insert(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %152
24: ; preds = %18
%25 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 3)
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %24
%28 = tail call i32 @delete(i8* %0, i32 3)
%29 = tail call i8* @insert(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
br label %152
30: ; preds = %24
%31 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 3)
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %36
33: ; preds = %30
%34 = tail call i32 @delete(i8* %0, i32 3)
%35 = tail call i8* @insert(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
br label %152
36: ; preds = %30
%37 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i32 3)
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %36
%40 = tail call i32 @delete(i8* %0, i32 3)
%41 = tail call i8* @insert(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
br label %152
42: ; preds = %36
%43 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i32 3)
%44 = icmp eq i32 %43, 0
br i1 %44, label %45, label %48
45: ; preds = %42
%46 = tail call i32 @delete(i8* %0, i32 3)
%47 = tail call i8* @insert(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
br label %152
48: ; preds = %42
%49 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0), i32 3)
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %54
51: ; preds = %48
%52 = tail call i32 @delete(i8* %0, i32 3)
%53 = tail call i8* @insert(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
br label %152
54: ; preds = %48
%55 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), i32 2)
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %60
57: ; preds = %54
%58 = tail call i32 @delete(i8* %0, i32 2)
%59 = tail call i8* @insert(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0))
br label %152
60: ; preds = %54
%61 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i32 2)
%62 = icmp eq i32 %61, 0
br i1 %62, label %63, label %66
63: ; preds = %60
%64 = tail call i32 @delete(i8* %0, i32 2)
%65 = tail call i8* @insert(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0))
br label %152
66: ; preds = %60
%67 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.20, i64 0, i64 0), i32 2)
%68 = icmp eq i32 %67, 0
br i1 %68, label %69, label %72
69: ; preds = %66
%70 = tail call i32 @delete(i8* %0, i32 2)
%71 = tail call i8* @insert(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i64 0, i64 0))
br label %152
72: ; preds = %66
%73 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.22, i64 0, i64 0), i32 2)
%74 = icmp eq i32 %73, 0
br i1 %74, label %75, label %78
75: ; preds = %72
%76 = tail call i32 @delete(i8* %0, i32 2)
%77 = tail call i8* @insert(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.23, i64 0, i64 0))
br label %152
78: ; preds = %72
%79 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.24, i64 0, i64 0), i32 2)
%80 = icmp eq i32 %79, 0
br i1 %80, label %81, label %84
81: ; preds = %78
%82 = tail call i32 @delete(i8* %0, i32 2)
%83 = tail call i8* @insert(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.25, i64 0, i64 0))
br label %152
84: ; preds = %78
%85 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.26, i64 0, i64 0), i32 2)
%86 = icmp eq i32 %85, 0
br i1 %86, label %87, label %90
87: ; preds = %84
%88 = tail call i32 @delete(i8* %0, i32 2)
%89 = tail call i8* @insert(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.27, i64 0, i64 0))
br label %152
90: ; preds = %84
%91 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.28, i64 0, i64 0), i32 2)
%92 = icmp eq i32 %91, 0
br i1 %92, label %93, label %96
93: ; preds = %90
%94 = tail call i32 @delete(i8* %0, i32 2)
%95 = tail call i8* @insert(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.29, i64 0, i64 0))
br label %152
96: ; preds = %90
%97 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.30, i64 0, i64 0), i32 2)
%98 = icmp eq i32 %97, 0
br i1 %98, label %99, label %102
99: ; preds = %96
%100 = tail call i32 @delete(i8* %0, i32 2)
%101 = tail call i8* @insert(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.31, i64 0, i64 0))
br label %152
102: ; preds = %96
%103 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.32, i64 0, i64 0), i32 2)
%104 = icmp eq i32 %103, 0
br i1 %104, label %105, label %108
105: ; preds = %102
%106 = tail call i32 @delete(i8* %0, i32 2)
%107 = tail call i8* @insert(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.33, i64 0, i64 0))
br label %152
108: ; preds = %102
%109 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.34, i64 0, i64 0), i32 2)
%110 = icmp eq i32 %109, 0
br i1 %110, label %111, label %114
111: ; preds = %108
%112 = tail call i32 @delete(i8* %0, i32 2)
%113 = tail call i8* @insert(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.35, i64 0, i64 0))
br label %152
114: ; preds = %108
%115 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.36, i64 0, i64 0), i32 2)
%116 = icmp eq i32 %115, 0
br i1 %116, label %117, label %120
117: ; preds = %114
%118 = tail call i32 @delete(i8* %0, i32 2)
%119 = tail call i8* @insert(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.37, i64 0, i64 0))
br label %152
120: ; preds = %114
%121 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.38, i64 0, i64 0), i32 2)
%122 = icmp eq i32 %121, 0
br i1 %122, label %123, label %126
123: ; preds = %120
%124 = tail call i32 @delete(i8* %0, i32 2)
%125 = tail call i8* @insert(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.39, i64 0, i64 0))
br label %152
126: ; preds = %120
%127 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.40, i64 0, i64 0), i32 2)
%128 = icmp eq i32 %127, 0
br i1 %128, label %129, label %132
129: ; preds = %126
%130 = tail call i32 @delete(i8* %0, i32 2)
%131 = tail call i8* @insert(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.41, i64 0, i64 0))
br label %152
132: ; preds = %126
%133 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.42, i64 0, i64 0), i32 2)
%134 = icmp eq i32 %133, 0
br i1 %134, label %135, label %138
135: ; preds = %132
%136 = tail call i32 @delete(i8* %0, i32 2)
%137 = tail call i8* @insert(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.43, i64 0, i64 0))
br label %152
138: ; preds = %132
%139 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.44, i64 0, i64 0), i32 2)
%140 = icmp eq i32 %139, 0
br i1 %140, label %141, label %144
141: ; preds = %138
%142 = tail call i32 @delete(i8* %0, i32 2)
%143 = tail call i8* @insert(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.45, i64 0, i64 0))
br label %152
144: ; preds = %138
%145 = tail call i32 @strncmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.46, i64 0, i64 0), i32 2)
%146 = icmp eq i32 %145, 0
br i1 %146, label %147, label %150
147: ; preds = %144
%148 = tail call i32 @delete(i8* %0, i32 2)
%149 = tail call i8* @insert(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.47, i64 0, i64 0))
br label %152
150: ; preds = %144
%151 = tail call i32 @error(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.48, i64 0, i64 0), i8* %0)
br label %152
152: ; preds = %9, %21, %33, %45, %57, %69, %81, %93, %105, %117, %129, %141, %150, %147, %135, %123, %111, %99, %87, %75, %63, %51, %39, %27, %15, %4
%153 = phi i8* [ %5, %4 ], [ %0, %150 ], [ %149, %147 ], [ %143, %141 ], [ %137, %135 ], [ %131, %129 ], [ %125, %123 ], [ %119, %117 ], [ %113, %111 ], [ %107, %105 ], [ %101, %99 ], [ %95, %93 ], [ %89, %87 ], [ %83, %81 ], [ %77, %75 ], [ %71, %69 ], [ %65, %63 ], [ %59, %57 ], [ %53, %51 ], [ %47, %45 ], [ %41, %39 ], [ %35, %33 ], [ %29, %27 ], [ %23, %21 ], [ %17, %15 ], [ %11, %9 ]
ret i8* %153
}