#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*/ bbm_long_write(void *, unsigned short, int, int);
int fc8300_set_acif_13seg(void *handle, unsigned short devid,
                          unsigned int clk) {
  switch (clk) {
  case 100750:
  case 100800:
    bbm_long_write(handle, devid, 0x1040, 0x040400fd);
    bbm_long_write(handle, devid, 0x1044, 0x04fbf9fe);
    bbm_long_write(handle, devid, 0x1048, 0xedf6050b);
    bbm_long_write(handle, devid, 0x104c, 0x5b4920fa);
    break;
  case 105600:
    bbm_long_write(handle, devid, 0x1040, 0x010503ff);
    bbm_long_write(handle, devid, 0x1044, 0x07fff9fb);
    bbm_long_write(handle, devid, 0x1048, 0xeef3010a);
    bbm_long_write(handle, devid, 0x104c, 0x574722fe);
    break;
  case 110400:
    bbm_long_write(handle, devid, 0x1040, 0xfe030402);
    bbm_long_write(handle, devid, 0x1044, 0x0902fbfa);
    bbm_long_write(handle, devid, 0x1048, 0xf0f1fe08);
    bbm_long_write(handle, devid, 0x104c, 0x53452402);
    break;
  case 115200:
    bbm_long_write(handle, devid, 0x1040, 0xfc010403);
    bbm_long_write(handle, devid, 0x1044, 0x0905fefa);
    bbm_long_write(handle, devid, 0x1048, 0xf2f0fb06);
    bbm_long_write(handle, devid, 0x104c, 0x50432606);
    break;
  case 99000:
    bbm_long_write(handle, devid, 0x1040, 0x0504fffc);
    bbm_long_write(handle, devid, 0x1044, 0x03fafa00);
    bbm_long_write(handle, devid, 0x1048, 0xecf7070b);
    bbm_long_write(handle, devid, 0x104c, 0x5d4a1ff9);
    break;
  case 102000:
    bbm_long_write(handle, devid, 0x1040, 0x030501fd);
    bbm_long_write(handle, devid, 0x1044, 0x05fcf9fe);
    bbm_long_write(handle, devid, 0x1048, 0xedf5040b);
    bbm_long_write(handle, devid, 0x104c, 0x5a4920fb);
    break;
  case 105000:
    bbm_long_write(handle, devid, 0x1040, 0x020503ff);
    bbm_long_write(handle, devid, 0x1044, 0x07fef9fc);
    bbm_long_write(handle, devid, 0x1048, 0xeef4020a);
    bbm_long_write(handle, devid, 0x104c, 0x574722fe);
    break;
  case 108000:
    bbm_long_write(handle, devid, 0x1040, 0x00040400);
    bbm_long_write(handle, devid, 0x1044, 0x0800fafa);
    bbm_long_write(handle, devid, 0x1048, 0xeff2ff09);
    bbm_long_write(handle, devid, 0x104c, 0x55462301);
    break;
  case 120000:
    bbm_long_write(handle, devid, 0x1040, 0xfbfe0304);
    bbm_long_write(handle, devid, 0x1044, 0x090700fb);
    bbm_long_write(handle, devid, 0x1048, 0xf4f0f803);
    bbm_long_write(handle, devid, 0x104c, 0x4d422709);
    break;
  case 98310:
    bbm_long_write(handle, devid, 0x1040, 0x0503fffc);
    bbm_long_write(handle, devid, 0x1044, 0x02fafa00);
    bbm_long_write(handle, devid, 0x1048, 0xecf8070b);
    bbm_long_write(handle, devid, 0x104c, 0x5d4a1ef8);
    break;
  case 101700:
    bbm_long_write(handle, devid, 0x1040, 0x040401fd);
    bbm_long_write(handle, devid, 0x1044, 0x05fcf9fe);
    bbm_long_write(handle, devid, 0x1048, 0xedf5050b);
    bbm_long_write(handle, devid, 0x104c, 0x5a4920fb);
    break;
  case 105090:
    bbm_long_write(handle, devid, 0x1040, 0x020503ff);
    bbm_long_write(handle, devid, 0x1044, 0x07fef9fc);
    bbm_long_write(handle, devid, 0x1048, 0xeef3020a);
    bbm_long_write(handle, devid, 0x104c, 0x574722fe);
    break;
  case 108480:
    bbm_long_write(handle, devid, 0x1040, 0xff040401);
    bbm_long_write(handle, devid, 0x1044, 0x0801fafa);
    bbm_long_write(handle, devid, 0x1048, 0xeff2ff09);
    bbm_long_write(handle, devid, 0x104c, 0x54462401);
    break;
  case 100000:
    bbm_long_write(handle, devid, 0x1040, 0x040400fd);
    bbm_long_write(handle, devid, 0x1044, 0x04fbf9ff);
    bbm_long_write(handle, devid, 0x1048, 0xedf7060b);
    bbm_long_write(handle, devid, 0x104c, 0x5c4a1ffa);
    break;
  case 104000:
    bbm_long_write(handle, devid, 0x1040, 0x020502fe);
    bbm_long_write(handle, devid, 0x1044, 0x06fdf9fc);
    bbm_long_write(handle, devid, 0x1048, 0xeef4030a);
    bbm_long_write(handle, devid, 0x104c, 0x584821fd);
    break;
  case 112000:
    bbm_long_write(handle, devid, 0x1040, 0xfd020402);
    bbm_long_write(handle, devid, 0x1044, 0x0903fcfa);
    bbm_long_write(handle, devid, 0x1048, 0xf1f1fd07);
    bbm_long_write(handle, devid, 0x104c, 0x52452504);
    break;
  case 97650:
    bbm_long_write(handle, devid, 0x1040, 0x0503fefc);
    bbm_long_write(handle, devid, 0x1044, 0x02fafa01);
    bbm_long_write(handle, devid, 0x1048, 0xecf8080a);
    bbm_long_write(handle, devid, 0x104c, 0x5e4a1ef8);
    break;
  case 102300:
    bbm_long_write(handle, devid, 0x1040, 0x030501fd);
    bbm_long_write(handle, devid, 0x1044, 0x05fcf9fd);
    bbm_long_write(handle, devid, 0x1048, 0xedf5040b);
    bbm_long_write(handle, devid, 0x104c, 0x5a4921fc);
    break;
  case 106950:
    bbm_long_write(handle, devid, 0x1040, 0x00040400);
    bbm_long_write(handle, devid, 0x1044, 0x0800fafb);
    bbm_long_write(handle, devid, 0x1048, 0xeff3000a);
    bbm_long_write(handle, devid, 0x104c, 0x56472300);
    break;
  case 111600:
    bbm_long_write(handle, devid, 0x1040, 0xfd020402);
    bbm_long_write(handle, devid, 0x1044, 0x0903fcfa);
    bbm_long_write(handle, devid, 0x1048, 0xf1f1fd07);
    bbm_long_write(handle, devid, 0x104c, 0x52452503);
    break;
  case 116000:
    bbm_long_write(handle, devid, 0x1040, 0xfc000404);
    bbm_long_write(handle, devid, 0x1044, 0x0905fefa);
    bbm_long_write(handle, devid, 0x1048, 0xf3f0fa05);
    bbm_long_write(handle, devid, 0x104c, 0x4f432606);
    break;
  case 98175:
    bbm_long_write(handle, devid, 0x1040, 0x0503fffc);
    bbm_long_write(handle, devid, 0x1044, 0x02fafa00);
    bbm_long_write(handle, devid, 0x1048, 0xecf8070b);
    bbm_long_write(handle, devid, 0x104c, 0x5e4a1ef8);
    break;
  case 102850:
    bbm_long_write(handle, devid, 0x1040, 0x030501fe);
    bbm_long_write(handle, devid, 0x1044, 0x06fdf9fd);
    bbm_long_write(handle, devid, 0x1048, 0xedf5040b);
    bbm_long_write(handle, devid, 0x104c, 0x594821fc);
    break;
  case 107250:
  case 107525:
    bbm_long_write(handle, devid, 0x1040, 0x00040400);
    bbm_long_write(handle, devid, 0x1044, 0x0800fafb);
    bbm_long_write(handle, devid, 0x1048, 0xeff20009);
    bbm_long_write(handle, devid, 0x104c, 0x55462300);
    break;
  case 112200:
    bbm_long_write(handle, devid, 0x1040, 0xfd020402);
    bbm_long_write(handle, devid, 0x1044, 0x0903fcfa);
    bbm_long_write(handle, devid, 0x1048, 0xf1f1fc07);
    bbm_long_write(handle, devid, 0x104c, 0x52452504);
    break;
  default:
    return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %si,%ax
mov    %rdi,-0x10(%rbp)
mov    %ax,-0x12(%rbp)
mov    %edx,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x1c(%rbp)
sub    $0x17d72,%eax
je     193a <fc8300_set_acif_13seg+0x82a>
jmp    113c <fc8300_set_acif_13seg+0x2c>
mov    -0x1c(%rbp),%eax
sub    $0x17f7f,%eax
je     1b1f <fc8300_set_acif_13seg+0xa0f>
jmp    114f <fc8300_set_acif_13seg+0x3f>
mov    -0x1c(%rbp),%eax
sub    $0x18006,%eax
je     1693 <fc8300_set_acif_13seg+0x583>
jmp    1162 <fc8300_set_acif_13seg+0x52>
mov    -0x1c(%rbp),%eax
sub    $0x182b8,%eax
je     14ae <fc8300_set_acif_13seg+0x39e>
jmp    1175 <fc8300_set_acif_13seg+0x65>
mov    -0x1c(%rbp),%eax
sub    $0x186a0,%eax
je     1817 <fc8300_set_acif_13seg+0x707>
jmp    1188 <fc8300_set_acif_13seg+0x78>
mov    -0x1c(%rbp),%eax
sub    $0x1898e,%eax
je     132a <fc8300_set_acif_13seg+0x21a>
jmp    119b <fc8300_set_acif_13seg+0x8b>
mov    -0x1c(%rbp),%eax
sub    $0x189c0,%eax
je     132a <fc8300_set_acif_13seg+0x21a>
jmp    11ae <fc8300_set_acif_13seg+0x9e>
mov    -0x1c(%rbp),%eax
sub    $0x18d44,%eax
je     16f4 <fc8300_set_acif_13seg+0x5e4>
jmp    11c1 <fc8300_set_acif_13seg+0xb1>
mov    -0x1c(%rbp),%eax
sub    $0x18e70,%eax
je     150f <fc8300_set_acif_13seg+0x3ff>
jmp    11d4 <fc8300_set_acif_13seg+0xc4>
mov    -0x1c(%rbp),%eax
sub    $0x18f9c,%eax
je     199b <fc8300_set_acif_13seg+0x88b>
jmp    11e7 <fc8300_set_acif_13seg+0xd7>
mov    -0x1c(%rbp),%eax
sub    $0x191c2,%eax
je     1b80 <fc8300_set_acif_13seg+0xa70>
jmp    11fa <fc8300_set_acif_13seg+0xea>
mov    -0x1c(%rbp),%eax
sub    $0x19640,%eax
je     1878 <fc8300_set_acif_13seg+0x768>
jmp    120d <fc8300_set_acif_13seg+0xfd>
mov    -0x1c(%rbp),%eax
sub    $0x19a28,%eax
je     1570 <fc8300_set_acif_13seg+0x460>
jmp    1220 <fc8300_set_acif_13seg+0x110>
mov    -0x1c(%rbp),%eax
sub    $0x19a82,%eax
je     1755 <fc8300_set_acif_13seg+0x645>
jmp    1233 <fc8300_set_acif_13seg+0x123>
mov    -0x1c(%rbp),%eax
sub    $0x19c80,%eax
je     138b <fc8300_set_acif_13seg+0x27b>
jmp    1246 <fc8300_set_acif_13seg+0x136>
mov    -0x1c(%rbp),%eax
sub    $0x1a1c6,%eax
je     19fc <fc8300_set_acif_13seg+0x8ec>
jmp    1259 <fc8300_set_acif_13seg+0x149>
mov    -0x1c(%rbp),%eax
sub    $0x1a2f2,%eax
je     1be1 <fc8300_set_acif_13seg+0xad1>
jmp    126c <fc8300_set_acif_13seg+0x15c>
mov    -0x1c(%rbp),%eax
sub    $0x1a405,%eax
je     1be1 <fc8300_set_acif_13seg+0xad1>
jmp    127f <fc8300_set_acif_13seg+0x16f>
mov    -0x1c(%rbp),%eax
sub    $0x1a5e0,%eax
je     15d1 <fc8300_set_acif_13seg+0x4c1>
jmp    1292 <fc8300_set_acif_13seg+0x182>
mov    -0x1c(%rbp),%eax
sub    $0x1a7c0,%eax
je     17b6 <fc8300_set_acif_13seg+0x6a6>
jmp    12a5 <fc8300_set_acif_13seg+0x195>
mov    -0x1c(%rbp),%eax
sub    $0x1af40,%eax
je     13ec <fc8300_set_acif_13seg+0x2dc>
jmp    12b8 <fc8300_set_acif_13seg+0x1a8>
mov    -0x1c(%rbp),%eax
sub    $0x1b3f0,%eax
je     1a5d <fc8300_set_acif_13seg+0x94d>
jmp    12cb <fc8300_set_acif_13seg+0x1bb>
mov    -0x1c(%rbp),%eax
sub    $0x1b580,%eax
je     18d9 <fc8300_set_acif_13seg+0x7c9>
jmp    12de <fc8300_set_acif_13seg+0x1ce>
mov    -0x1c(%rbp),%eax
sub    $0x1b648,%eax
je     1c42 <fc8300_set_acif_13seg+0xb32>
jmp    12f1 <fc8300_set_acif_13seg+0x1e1>
mov    -0x1c(%rbp),%eax
sub    $0x1c200,%eax
je     144d <fc8300_set_acif_13seg+0x33d>
jmp    1304 <fc8300_set_acif_13seg+0x1f4>
mov    -0x1c(%rbp),%eax
sub    $0x1c520,%eax
je     1abe <fc8300_set_acif_13seg+0x9ae>
jmp    1317 <fc8300_set_acif_13seg+0x207>
mov    -0x1c(%rbp),%eax
sub    $0x1d4c0,%eax
je     1632 <fc8300_set_acif_13seg+0x522>
jmp    1ca3 <fc8300_set_acif_13seg+0xb93>
mov    -0x10(%rbp),%rdi
mov    $0x1040,%edx
mov    $0x40400fd,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1044,%edx
mov    $0x4fbf9fe,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1048,%edx
mov    $0xedf6050b,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x104c,%edx
mov    $0x5b4920fa,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    1caf <fc8300_set_acif_13seg+0xb9f>
mov    -0x10(%rbp),%rdi
mov    $0x1040,%edx
mov    $0x10503ff,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1044,%edx
mov    $0x7fff9fb,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1048,%edx
mov    $0xeef3010a,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x104c,%edx
mov    $0x574722fe,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    1caf <fc8300_set_acif_13seg+0xb9f>
mov    -0x10(%rbp),%rdi
mov    $0x1040,%edx
mov    $0xfe030402,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1044,%edx
mov    $0x902fbfa,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1048,%edx
mov    $0xf0f1fe08,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x104c,%edx
mov    $0x53452402,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    1caf <fc8300_set_acif_13seg+0xb9f>
mov    -0x10(%rbp),%rdi
mov    $0x1040,%edx
mov    $0xfc010403,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1044,%edx
mov    $0x905fefa,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1048,%edx
mov    $0xf2f0fb06,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x104c,%edx
mov    $0x50432606,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    1caf <fc8300_set_acif_13seg+0xb9f>
mov    -0x10(%rbp),%rdi
mov    $0x1040,%edx
mov    $0x504fffc,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1044,%edx
mov    $0x3fafa00,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1048,%edx
mov    $0xecf7070b,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x104c,%edx
mov    $0x5d4a1ff9,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    1caf <fc8300_set_acif_13seg+0xb9f>
mov    -0x10(%rbp),%rdi
mov    $0x1040,%edx
mov    $0x30501fd,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1044,%edx
mov    $0x5fcf9fe,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1048,%edx
mov    $0xedf5040b,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x104c,%edx
mov    $0x5a4920fb,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    1caf <fc8300_set_acif_13seg+0xb9f>
mov    -0x10(%rbp),%rdi
mov    $0x1040,%edx
mov    $0x20503ff,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1044,%edx
mov    $0x7fef9fc,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1048,%edx
mov    $0xeef4020a,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x104c,%edx
mov    $0x574722fe,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    1caf <fc8300_set_acif_13seg+0xb9f>
mov    -0x10(%rbp),%rdi
mov    $0x1040,%edx
mov    $0x40400,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1044,%edx
mov    $0x800fafa,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1048,%edx
mov    $0xeff2ff09,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x104c,%edx
mov    $0x55462301,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    1caf <fc8300_set_acif_13seg+0xb9f>
mov    -0x10(%rbp),%rdi
mov    $0x1040,%edx
mov    $0xfbfe0304,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1044,%edx
mov    $0x90700fb,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1048,%edx
mov    $0xf4f0f803,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x104c,%edx
mov    $0x4d422709,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    1caf <fc8300_set_acif_13seg+0xb9f>
mov    -0x10(%rbp),%rdi
mov    $0x1040,%edx
mov    $0x503fffc,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1044,%edx
mov    $0x2fafa00,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1048,%edx
mov    $0xecf8070b,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x104c,%edx
mov    $0x5d4a1ef8,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    1caf <fc8300_set_acif_13seg+0xb9f>
mov    -0x10(%rbp),%rdi
mov    $0x1040,%edx
mov    $0x40401fd,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1044,%edx
mov    $0x5fcf9fe,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1048,%edx
mov    $0xedf5050b,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x104c,%edx
mov    $0x5a4920fb,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    1caf <fc8300_set_acif_13seg+0xb9f>
mov    -0x10(%rbp),%rdi
mov    $0x1040,%edx
mov    $0x20503ff,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1044,%edx
mov    $0x7fef9fc,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1048,%edx
mov    $0xeef3020a,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x104c,%edx
mov    $0x574722fe,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    1caf <fc8300_set_acif_13seg+0xb9f>
mov    -0x10(%rbp),%rdi
mov    $0x1040,%edx
mov    $0xff040401,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1044,%edx
mov    $0x801fafa,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1048,%edx
mov    $0xeff2ff09,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x104c,%edx
mov    $0x54462401,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    1caf <fc8300_set_acif_13seg+0xb9f>
mov    -0x10(%rbp),%rdi
mov    $0x1040,%edx
mov    $0x40400fd,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1044,%edx
mov    $0x4fbf9ff,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1048,%edx
mov    $0xedf7060b,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x104c,%edx
mov    $0x5c4a1ffa,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    1caf <fc8300_set_acif_13seg+0xb9f>
mov    -0x10(%rbp),%rdi
mov    $0x1040,%edx
mov    $0x20502fe,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1044,%edx
mov    $0x6fdf9fc,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1048,%edx
mov    $0xeef4030a,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x104c,%edx
mov    $0x584821fd,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    1caf <fc8300_set_acif_13seg+0xb9f>
mov    -0x10(%rbp),%rdi
mov    $0x1040,%edx
mov    $0xfd020402,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1044,%edx
mov    $0x903fcfa,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1048,%edx
mov    $0xf1f1fd07,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x104c,%edx
mov    $0x52452504,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    1caf <fc8300_set_acif_13seg+0xb9f>
mov    -0x10(%rbp),%rdi
mov    $0x1040,%edx
mov    $0x503fefc,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1044,%edx
mov    $0x2fafa01,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1048,%edx
mov    $0xecf8080a,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x104c,%edx
mov    $0x5e4a1ef8,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    1caf <fc8300_set_acif_13seg+0xb9f>
mov    -0x10(%rbp),%rdi
mov    $0x1040,%edx
mov    $0x30501fd,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1044,%edx
mov    $0x5fcf9fd,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1048,%edx
mov    $0xedf5040b,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x104c,%edx
mov    $0x5a4921fc,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    1caf <fc8300_set_acif_13seg+0xb9f>
mov    -0x10(%rbp),%rdi
mov    $0x1040,%edx
mov    $0x40400,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1044,%edx
mov    $0x800fafb,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1048,%edx
mov    $0xeff3000a,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x104c,%edx
mov    $0x56472300,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    1caf <fc8300_set_acif_13seg+0xb9f>
mov    -0x10(%rbp),%rdi
mov    $0x1040,%edx
mov    $0xfd020402,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1044,%edx
mov    $0x903fcfa,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1048,%edx
mov    $0xf1f1fd07,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x104c,%edx
mov    $0x52452503,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    1caf <fc8300_set_acif_13seg+0xb9f>
mov    -0x10(%rbp),%rdi
mov    $0x1040,%edx
mov    $0xfc000404,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1044,%edx
mov    $0x905fefa,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1048,%edx
mov    $0xf3f0fa05,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x104c,%edx
mov    $0x4f432606,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    1caf <fc8300_set_acif_13seg+0xb9f>
mov    -0x10(%rbp),%rdi
mov    $0x1040,%edx
mov    $0x503fffc,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1044,%edx
mov    $0x2fafa00,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1048,%edx
mov    $0xecf8070b,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x104c,%edx
mov    $0x5e4a1ef8,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    1caf <fc8300_set_acif_13seg+0xb9f>
mov    -0x10(%rbp),%rdi
mov    $0x1040,%edx
mov    $0x30501fe,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1044,%edx
mov    $0x6fdf9fd,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1048,%edx
mov    $0xedf5040b,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x104c,%edx
mov    $0x594821fc,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    1caf <fc8300_set_acif_13seg+0xb9f>
mov    -0x10(%rbp),%rdi
mov    $0x1040,%edx
mov    $0x40400,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1044,%edx
mov    $0x800fafb,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1048,%edx
mov    $0xeff20009,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x104c,%edx
mov    $0x55462300,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    1caf <fc8300_set_acif_13seg+0xb9f>
mov    -0x10(%rbp),%rdi
mov    $0x1040,%edx
mov    $0xfd020402,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1044,%edx
mov    $0x903fcfa,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1048,%edx
mov    $0xf1f1fc07,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x104c,%edx
mov    $0x52452504,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    1caf <fc8300_set_acif_13seg+0xb9f>
movl   $0x1,-0x4(%rbp)
jmp    1cb6 <fc8300_set_acif_13seg+0xba6>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %rdi,%rbx
mov    $0x1,%eax
cmp    $0x19a81,%edx
jle    1171 <fc8300_set_acif_13seg+0x61>
cmp    $0x1af3f,%edx
jg     11e0 <fc8300_set_acif_13seg+0xd0>
cmp    $0x1a2f1,%edx
jle    1267 <fc8300_set_acif_13seg+0x157>
cmp    $0x1a5df,%edx
jg     133f <fc8300_set_acif_13seg+0x22f>
cmp    $0x1a2f2,%edx
je     1160 <fc8300_set_acif_13seg+0x50>
cmp    $0x1a405,%edx
jne    157e <fc8300_set_acif_13seg+0x46e>
mov    $0x55462300,%r14d
mov    $0xeff20009,%r15d
jmp    1297 <fc8300_set_acif_13seg+0x187>
mov    $0x5b4920fa,%r14d
mov    $0xedf6050b,%r15d
mov    $0x4fbf9fe,%r12d
mov    $0x40400fd,%ecx
cmp    $0x189bf,%edx
jle    122c <fc8300_set_acif_13seg+0x11c>
cmp    $0x18f9b,%edx
jle    12a7 <fc8300_set_acif_13seg+0x197>
cmp    $0x1963f,%edx
jg     1373 <fc8300_set_acif_13seg+0x263>
cmp    $0x18f9c,%edx
je     13d0 <fc8300_set_acif_13seg+0x2c0>
cmp    $0x191c2,%edx
jne    157e <fc8300_set_acif_13seg+0x46e>
mov    $0x594821fc,%r14d
mov    $0xedf5040b,%r15d
mov    $0x6fdf9fd,%r12d
mov    $0x30501fe,%ecx
jmp    1534 <fc8300_set_acif_13seg+0x424>
cmp    $0x1b647,%edx
jle    12e7 <fc8300_set_acif_13seg+0x1d7>
cmp    $0x1c51f,%edx
jg     139c <fc8300_set_acif_13seg+0x28c>
cmp    $0x1b648,%edx
je     13ec <fc8300_set_acif_13seg+0x2dc>
cmp    $0x1c200,%edx
jne    157e <fc8300_set_acif_13seg+0x46e>
mov    $0x50432606,%r14d
mov    $0xf2f0fb06,%r15d
mov    $0x905fefa,%r12d
mov    $0xfc010403,%ecx
jmp    1534 <fc8300_set_acif_13seg+0x424>
cmp    $0x182b7,%edx
jg     1316 <fc8300_set_acif_13seg+0x206>
cmp    $0x17d72,%edx
je     13fd <fc8300_set_acif_13seg+0x2ed>
cmp    $0x17f7f,%edx
je     1419 <fc8300_set_acif_13seg+0x309>
cmp    $0x18006,%edx
jne    157e <fc8300_set_acif_13seg+0x46e>
mov    $0x5d4a1ef8,%r14d
jmp    141f <fc8300_set_acif_13seg+0x30f>
cmp    $0x19a82,%edx
je     1435 <fc8300_set_acif_13seg+0x325>
cmp    $0x19c80,%edx
je     1451 <fc8300_set_acif_13seg+0x341>
cmp    $0x1a1c6,%edx
jne    157e <fc8300_set_acif_13seg+0x46e>
mov    $0x56472300,%r14d
mov    $0xeff3000a,%r15d
mov    $0x800fafb,%r12d
mov    $0x40400,%ecx
jmp    1534 <fc8300_set_acif_13seg+0x424>
cmp    $0x189c0,%edx
je     1534 <fc8300_set_acif_13seg+0x424>
cmp    $0x18d44,%edx
je     146d <fc8300_set_acif_13seg+0x35d>
cmp    $0x18e70,%edx
jne    157e <fc8300_set_acif_13seg+0x46e>
mov    $0x5a4920fb,%r14d
mov    $0xedf5040b,%r15d
mov    $0x5fcf9fe,%r12d
mov    $0x30501fd,%ecx
jmp    1534 <fc8300_set_acif_13seg+0x424>
cmp    $0x1af40,%edx
je     1489 <fc8300_set_acif_13seg+0x379>
cmp    $0x1b3f0,%edx
je     14a5 <fc8300_set_acif_13seg+0x395>
cmp    $0x1b580,%edx
jne    157e <fc8300_set_acif_13seg+0x46e>
mov    $0x52452504,%r14d
jmp    14ab <fc8300_set_acif_13seg+0x39b>
cmp    $0x182b8,%edx
je     14be <fc8300_set_acif_13seg+0x3ae>
cmp    $0x186a0,%edx
je     14d7 <fc8300_set_acif_13seg+0x3c7>
cmp    $0x1898e,%edx
je     1534 <fc8300_set_acif_13seg+0x424>
jmp    157e <fc8300_set_acif_13seg+0x46e>
cmp    $0x1a5e0,%edx
je     14eb <fc8300_set_acif_13seg+0x3db>
cmp    $0x1a7c0,%edx
jne    157e <fc8300_set_acif_13seg+0x46e>
mov    $0x54462401,%r14d
mov    $0xeff2ff09,%r15d
mov    $0x801fafa,%r12d
mov    $0xff040401,%ecx
jmp    1534 <fc8300_set_acif_13seg+0x424>
cmp    $0x19640,%edx
je     1504 <fc8300_set_acif_13seg+0x3f4>
cmp    $0x19a28,%edx
jne    157e <fc8300_set_acif_13seg+0x46e>
mov    $0x574722fe,%r14d
mov    $0xeef4020a,%r15d
jmp    1441 <fc8300_set_acif_13seg+0x331>
cmp    $0x1c520,%edx
je     151d <fc8300_set_acif_13seg+0x40d>
cmp    $0x1d4c0,%edx
jne    157e <fc8300_set_acif_13seg+0x46e>
mov    $0x4d422709,%r14d
mov    $0xf4f0f803,%r15d
mov    $0x90700fb,%r12d
mov    $0xfbfe0304,%ecx
jmp    1534 <fc8300_set_acif_13seg+0x424>
mov    $0x5a4921fc,%r14d
mov    $0xedf5040b,%r15d
mov    $0x5fcf9fd,%r12d
mov    $0x30501fd,%ecx
jmp    1534 <fc8300_set_acif_13seg+0x424>
mov    $0x52452504,%r14d
mov    $0xf1f1fc07,%r15d
jmp    14b1 <fc8300_set_acif_13seg+0x3a1>
mov    $0x5e4a1ef8,%r14d
mov    $0xecf8080a,%r15d
mov    $0x2fafa01,%r12d
mov    $0x503fefc,%ecx
jmp    1534 <fc8300_set_acif_13seg+0x424>
mov    $0x5e4a1ef8,%r14d
mov    $0xecf8070b,%r15d
mov    $0x2fafa00,%r12d
mov    $0x503fffc,%ecx
jmp    1534 <fc8300_set_acif_13seg+0x424>
mov    $0x574722fe,%r14d
mov    $0xeef3020a,%r15d
mov    $0x7fef9fc,%r12d
mov    $0x20503ff,%ecx
jmp    1534 <fc8300_set_acif_13seg+0x424>
mov    $0x574722fe,%r14d
mov    $0xeef3010a,%r15d
mov    $0x7fff9fb,%r12d
mov    $0x10503ff,%ecx
jmp    1534 <fc8300_set_acif_13seg+0x424>
mov    $0x5a4920fb,%r14d
mov    $0xedf5050b,%r15d
mov    $0x5fcf9fe,%r12d
mov    $0x40401fd,%ecx
jmp    1534 <fc8300_set_acif_13seg+0x424>
mov    $0x53452402,%r14d
mov    $0xf0f1fe08,%r15d
mov    $0x902fbfa,%r12d
mov    $0xfe030402,%ecx
jmp    1534 <fc8300_set_acif_13seg+0x424>
mov    $0x52452503,%r14d
mov    $0xf1f1fd07,%r15d
mov    $0x903fcfa,%r12d
mov    $0xfd020402,%ecx
jmp    1534 <fc8300_set_acif_13seg+0x424>
mov    $0x5d4a1ff9,%r14d
mov    $0xecf7070b,%r15d
mov    $0x3fafa00,%r12d
mov    $0x504fffc,%ecx
jmp    1534 <fc8300_set_acif_13seg+0x424>
mov    $0x5c4a1ffa,%r14d
mov    $0xedf7060b,%r15d
mov    $0x4fbf9ff,%r12d
jmp    1534 <fc8300_set_acif_13seg+0x424>
mov    $0x55462301,%r14d
mov    $0xeff2ff09,%r15d
mov    $0x800fafa,%r12d
mov    $0x40400,%ecx
jmp    1534 <fc8300_set_acif_13seg+0x424>
mov    $0x584821fd,%r14d
mov    $0xeef4030a,%r15d
mov    $0x6fdf9fc,%r12d
mov    $0x20502fe,%ecx
jmp    1534 <fc8300_set_acif_13seg+0x424>
mov    $0x4f432606,%r14d
mov    $0xf3f0fa05,%r15d
mov    $0x905fefa,%r12d
mov    $0xfc000404,%ecx
movzwl %si,%ebp
mov    %rbx,%rdi
mov    %ebp,%esi
mov    $0x1040,%edx
call   1030 <bbm_long_write@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    $0x1044,%edx
mov    %r12d,%ecx
call   1030 <bbm_long_write@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    $0x1048,%edx
mov    %r15d,%ecx
call   1030 <bbm_long_write@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    $0x104c,%edx
mov    %r14d,%ecx
call   1030 <bbm_long_write@plt>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @fc8300_set_acif_13seg(i8* %0, i16 zeroext %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i16
%7 = alloca i32
store i8* %0, i8** %5
store i16 %1, i16* %6
store i32 %2, i32* %7
%8 = load i32, i32* %7
switch i32 %8, label %334 [
i32 100750, label %9
i32 100800, label %9
i32 105600, label %22
i32 110400, label %35
i32 115200, label %48
i32 99000, label %61
i32 102000, label %74
i32 105000, label %87
i32 108000, label %100
i32 120000, label %113
i32 98310, label %126
i32 101700, label %139
i32 105090, label %152
i32 108480, label %165
i32 100000, label %178
i32 104000, label %191
i32 112000, label %204
i32 97650, label %217
i32 102300, label %230
i32 106950, label %243
i32 111600, label %256
i32 116000, label %269
i32 98175, label %282
i32 102850, label %295
i32 107250, label %308
i32 107525, label %308
i32 112200, label %321
]
9: ; preds = %3, %3
%10 = load i8*, i8** %5
%11 = load i16, i16* %6
%12 = call i32 @bbm_long_write(i8* %10, i16 zeroext %11, i32 4160, i32 67371261)
%13 = load i8*, i8** %5
%14 = load i16, i16* %6
%15 = call i32 @bbm_long_write(i8* %13, i16 zeroext %14, i32 4164, i32 83622398)
%16 = load i8*, i8** %5
%17 = load i16, i16* %6
%18 = call i32 @bbm_long_write(i8* %16, i16 zeroext %17, i32 4168, i32 -302643957)
%19 = load i8*, i8** %5
%20 = load i16, i16* %6
%21 = call i32 @bbm_long_write(i8* %19, i16 zeroext %20, i32 4172, i32 1531519226)
br label %335
22: ; preds = %3
%23 = load i8*, i8** %5
%24 = load i16, i16* %6
%25 = call i32 @bbm_long_write(i8* %23, i16 zeroext %24, i32 4160, i32 17105919)
%26 = load i8*, i8** %5
%27 = load i16, i16* %6
%28 = call i32 @bbm_long_write(i8* %26, i16 zeroext %27, i32 4164, i32 134216187)
%29 = load i8*, i8** %5
%30 = load i16, i16* %6
%31 = call i32 @bbm_long_write(i8* %29, i16 zeroext %30, i32 4168, i32 -286064374)
%32 = load i8*, i8** %5
%33 = load i16, i16* %6
%34 = call i32 @bbm_long_write(i8* %32, i16 zeroext %33, i32 4172, i32 1464279806)
br label %335
35: ; preds = %3
%36 = load i8*, i8** %5
%37 = load i16, i16* %6
%38 = call i32 @bbm_long_write(i8* %36, i16 zeroext %37, i32 4160, i32 -33356798)
%39 = load i8*, i8** %5
%40 = load i16, i16* %6
%41 = call i32 @bbm_long_write(i8* %39, i16 zeroext %40, i32 4164, i32 151190522)
%42 = load i8*, i8** %5
%43 = load i16, i16* %6
%44 = call i32 @bbm_long_write(i8* %42, i16 zeroext %43, i32 4168, i32 -252576248)
%45 = load i8*, i8** %5
%46 = load i16, i16* %6
%47 = call i32 @bbm_long_write(i8* %45, i16 zeroext %46, i32 4172, i32 1397040130)
br label %335
48: ; preds = %3
%49 = load i8*, i8** %5
%50 = load i16, i16* %6
%51 = call i32 @bbm_long_write(i8* %49, i16 zeroext %50, i32 4160, i32 -67042301)
%52 = load i8*, i8** %5
%53 = load i16, i16* %6
%54 = call i32 @bbm_long_write(i8* %52, i16 zeroext %53, i32 4164, i32 151387898)
%55 = load i8*, i8** %5
%56 = load i16, i16* %6
%57 = call i32 @bbm_long_write(i8* %55, i16 zeroext %56, i32 4168, i32 -219088122)
%58 = load i8*, i8** %5
%59 = load i16, i16* %6
%60 = call i32 @bbm_long_write(i8* %58, i16 zeroext %59, i32 4172, i32 1346577926)
br label %335
61: ; preds = %3
%62 = load i8*, i8** %5
%63 = load i16, i16* %6
%64 = call i32 @bbm_long_write(i8* %62, i16 zeroext %63, i32 4160, i32 84213756)
%65 = load i8*, i8** %5
%66 = load i16, i16* %6
%67 = call i32 @bbm_long_write(i8* %65, i16 zeroext %66, i32 4164, i32 66779648)
%68 = load i8*, i8** %5
%69 = load i16, i16* %6
%70 = call i32 @bbm_long_write(i8* %68, i16 zeroext %69, i32 4168, i32 -319355125)
%71 = load i8*, i8** %5
%72 = load i16, i16* %6
%73 = call i32 @bbm_long_write(i8* %71, i16 zeroext %72, i32 4172, i32 1565138937)
br label %335
74: ; preds = %3
%75 = load i8*, i8** %5
%76 = load i16, i16* %6
%77 = call i32 @bbm_long_write(i8* %75, i16 zeroext %76, i32 4160, i32 50659837)
%78 = load i8*, i8** %5
%79 = load i16, i16* %6
%80 = call i32 @bbm_long_write(i8* %78, i16 zeroext %79, i32 4164, i32 100465150)
%81 = load i8*, i8** %5
%82 = load i16, i16* %6
%83 = call i32 @bbm_long_write(i8* %81, i16 zeroext %82, i32 4168, i32 -302709749)
%84 = load i8*, i8** %5
%85 = load i16, i16* %6
%86 = call i32 @bbm_long_write(i8* %84, i16 zeroext %85, i32 4172, i32 1514742011)
br label %335
87: ; preds = %3
%88 = load i8*, i8** %5
%89 = load i16, i16* %6
%90 = call i32 @bbm_long_write(i8* %88, i16 zeroext %89, i32 4160, i32 33883135)
%91 = load i8*, i8** %5
%92 = load i16, i16* %6
%93 = call i32 @bbm_long_write(i8* %91, i16 zeroext %92, i32 4164, i32 134150652)
%94 = load i8*, i8** %5
%95 = load i16, i16* %6
%96 = call i32 @bbm_long_write(i8* %94, i16 zeroext %95, i32 4168, i32 -285998582)
%97 = load i8*, i8** %5
%98 = load i16, i16* %6
%99 = call i32 @bbm_long_write(i8* %97, i16 zeroext %98, i32 4172, i32 1464279806)
br label %335
100: ; preds = %3
%101 = load i8*, i8** %5
%102 = load i16, i16* %6
%103 = call i32 @bbm_long_write(i8* %101, i16 zeroext %102, i32 4160, i32 263168)
%104 = load i8*, i8** %5
%105 = load i16, i16* %6
%106 = call i32 @bbm_long_write(i8* %104, i16 zeroext %105, i32 4164, i32 134281978)
%107 = load i8*, i8** %5
%108 = load i16, i16* %6
%109 = call i32 @bbm_long_write(i8* %107, i16 zeroext %108, i32 4168, i32 -269287671)
%110 = load i8*, i8** %5
%111 = load i16, i16* %6
%112 = call i32 @bbm_long_write(i8* %110, i16 zeroext %111, i32 4172, i32 1430659841)
br label %335
113: ; preds = %3
%114 = load i8*, i8** %5
%115 = load i16, i16* %6
%116 = call i32 @bbm_long_write(i8* %114, i16 zeroext %115, i32 4160, i32 -67239164)
%117 = load i8*, i8** %5
%118 = load i16, i16* %6
%119 = call i32 @bbm_long_write(i8* %117, i16 zeroext %118, i32 4164, i32 151453947)
%120 = load i8*, i8** %5
%121 = load i16, i16* %6
%122 = call i32 @bbm_long_write(i8* %120, i16 zeroext %121, i32 4168, i32 -185534461)
%123 = load i8*, i8** %5
%124 = load i16, i16* %6
%125 = call i32 @bbm_long_write(i8* %123, i16 zeroext %124, i32 4172, i32 1296181001)
br label %335
126: ; preds = %3
%127 = load i8*, i8** %5
%128 = load i16, i16* %6
%129 = call i32 @bbm_long_write(i8* %127, i16 zeroext %128, i32 4160, i32 84148220)
%130 = load i8*, i8** %5
%131 = load i16, i16* %6
%132 = call i32 @bbm_long_write(i8* %130, i16 zeroext %131, i32 4164, i32 50002432)
%133 = load i8*, i8** %5
%134 = load i16, i16* %6
%135 = call i32 @bbm_long_write(i8* %133, i16 zeroext %134, i32 4168, i32 -319289589)
%136 = load i8*, i8** %5
%137 = load i16, i16* %6
%138 = call i32 @bbm_long_write(i8* %136, i16 zeroext %137, i32 4172, i32 1565138680)
br label %335
139: ; preds = %3
%140 = load i8*, i8** %5
%141 = load i16, i16* %6
%142 = call i32 @bbm_long_write(i8* %140, i16 zeroext %141, i32 4160, i32 67371517)
%143 = load i8*, i8** %5
%144 = load i16, i16* %6
%145 = call i32 @bbm_long_write(i8* %143, i16 zeroext %144, i32 4164, i32 100465150)
%146 = load i8*, i8** %5
%147 = load i16, i16* %6
%148 = call i32 @bbm_long_write(i8* %146, i16 zeroext %147, i32 4168, i32 -302709493)
%149 = load i8*, i8** %5
%150 = load i16, i16* %6
%151 = call i32 @bbm_long_write(i8* %149, i16 zeroext %150, i32 4172, i32 1514742011)
br label %335
152: ; preds = %3
%153 = load i8*, i8** %5
%154 = load i16, i16* %6
%155 = call i32 @bbm_long_write(i8* %153, i16 zeroext %154, i32 4160, i32 33883135)
%156 = load i8*, i8** %5
%157 = load i16, i16* %6
%158 = call i32 @bbm_long_write(i8* %156, i16 zeroext %157, i32 4164, i32 134150652)
%159 = load i8*, i8** %5
%160 = load i16, i16* %6
%161 = call i32 @bbm_long_write(i8* %159, i16 zeroext %160, i32 4168, i32 -286064118)
%162 = load i8*, i8** %5
%163 = load i16, i16* %6
%164 = call i32 @bbm_long_write(i8* %162, i16 zeroext %163, i32 4172, i32 1464279806)
br label %335
165: ; preds = %3
%166 = load i8*, i8** %5
%167 = load i16, i16* %6
%168 = call i32 @bbm_long_write(i8* %166, i16 zeroext %167, i32 4160, i32 -16514047)
%169 = load i8*, i8** %5
%170 = load i16, i16* %6
%171 = call i32 @bbm_long_write(i8* %169, i16 zeroext %170, i32 4164, i32 134347514)
%172 = load i8*, i8** %5
%173 = load i16, i16* %6
%174 = call i32 @bbm_long_write(i8* %172, i16 zeroext %173, i32 4168, i32 -269287671)
%175 = load i8*, i8** %5
%176 = load i16, i16* %6
%177 = call i32 @bbm_long_write(i8* %175, i16 zeroext %176, i32 4172, i32 1413882881)
br label %335
178: ; preds = %3
%179 = load i8*, i8** %5
%180 = load i16, i16* %6
%181 = call i32 @bbm_long_write(i8* %179, i16 zeroext %180, i32 4160, i32 67371261)
%182 = load i8*, i8** %5
%183 = load i16, i16* %6
%184 = call i32 @bbm_long_write(i8* %182, i16 zeroext %183, i32 4164, i32 83622399)
%185 = load i8*, i8** %5
%186 = load i16, i16* %6
%187 = call i32 @bbm_long_write(i8* %185, i16 zeroext %186, i32 4168, i32 -302578165)
%188 = load i8*, i8** %5
%189 = load i16, i16* %6
%190 = call i32 @bbm_long_write(i8* %188, i16 zeroext %189, i32 4172, i32 1548361722)
br label %335
191: ; preds = %3
%192 = load i8*, i8** %5
%193 = load i16, i16* %6
%194 = call i32 @bbm_long_write(i8* %192, i16 zeroext %193, i32 4160, i32 33882878)
%195 = load i8*, i8** %5
%196 = load i16, i16* %6
%197 = call i32 @bbm_long_write(i8* %195, i16 zeroext %196, i32 4164, i32 117307900)
%198 = load i8*, i8** %5
%199 = load i16, i16* %6
%200 = call i32 @bbm_long_write(i8* %198, i16 zeroext %199, i32 4168, i32 -285998326)
%201 = load i8*, i8** %5
%202 = load i16, i16* %6
%203 = call i32 @bbm_long_write(i8* %201, i16 zeroext %202, i32 4172, i32 1481122301)
br label %335
204: ; preds = %3
%205 = load i8*, i8** %5
%206 = load i16, i16* %6
%207 = call i32 @bbm_long_write(i8* %205, i16 zeroext %206, i32 4160, i32 -50199550)
%208 = load i8*, i8** %5
%209 = load i16, i16* %6
%210 = call i32 @bbm_long_write(i8* %208, i16 zeroext %209, i32 4164, i32 151256314)
%211 = load i8*, i8** %5
%212 = load i16, i16* %6
%213 = call i32 @bbm_long_write(i8* %211, i16 zeroext %212, i32 4168, i32 -235799289)
%214 = load i8*, i8** %5
%215 = load i16, i16* %6
%216 = call i32 @bbm_long_write(i8* %214, i16 zeroext %215, i32 4172, i32 1380263172)
br label %335
217: ; preds = %3
%218 = load i8*, i8** %5
%219 = load i16, i16* %6
%220 = call i32 @bbm_long_write(i8* %218, i16 zeroext %219, i32 4160, i32 84147964)
%221 = load i8*, i8** %5
%222 = load i16, i16* %6
%223 = call i32 @bbm_long_write(i8* %221, i16 zeroext %222, i32 4164, i32 50002433)
%224 = load i8*, i8** %5
%225 = load i16, i16* %6
%226 = call i32 @bbm_long_write(i8* %224, i16 zeroext %225, i32 4168, i32 -319289334)
%227 = load i8*, i8** %5
%228 = load i16, i16* %6
%229 = call i32 @bbm_long_write(i8* %227, i16 zeroext %228, i32 4172, i32 1581915896)
br label %335
230: ; preds = %3
%231 = load i8*, i8** %5
%232 = load i16, i16* %6
%233 = call i32 @bbm_long_write(i8* %231, i16 zeroext %232, i32 4160, i32 50659837)
%234 = load i8*, i8** %5
%235 = load i16, i16* %6
%236 = call i32 @bbm_long_write(i8* %234, i16 zeroext %235, i32 4164, i32 100465149)
%237 = load i8*, i8** %5
%238 = load i16, i16* %6
%239 = call i32 @bbm_long_write(i8* %237, i16 zeroext %238, i32 4168, i32 -302709749)
%240 = load i8*, i8** %5
%241 = load i16, i16* %6
%242 = call i32 @bbm_long_write(i8* %240, i16 zeroext %241, i32 4172, i32 1514742268)
br label %335
243: ; preds = %3
%244 = load i8*, i8** %5
%245 = load i16, i16* %6
%246 = call i32 @bbm_long_write(i8* %244, i16 zeroext %245, i32 4160, i32 263168)
%247 = load i8*, i8** %5
%248 = load i16, i16* %6
%249 = call i32 @bbm_long_write(i8* %247, i16 zeroext %248, i32 4164, i32 134281979)
%250 = load i8*, i8** %5
%251 = load i16, i16* %6
%252 = call i32 @bbm_long_write(i8* %250, i16 zeroext %251, i32 4168, i32 -269287414)
%253 = load i8*, i8** %5
%254 = load i16, i16* %6
%255 = call i32 @bbm_long_write(i8* %253, i16 zeroext %254, i32 4172, i32 1447502592)
br label %335
256: ; preds = %3
%257 = load i8*, i8** %5
%258 = load i16, i16* %6
%259 = call i32 @bbm_long_write(i8* %257, i16 zeroext %258, i32 4160, i32 -50199550)
%260 = load i8*, i8** %5
%261 = load i16, i16* %6
%262 = call i32 @bbm_long_write(i8* %260, i16 zeroext %261, i32 4164, i32 151256314)
%263 = load i8*, i8** %5
%264 = load i16, i16* %6
%265 = call i32 @bbm_long_write(i8* %263, i16 zeroext %264, i32 4168, i32 -235799289)
%266 = load i8*, i8** %5
%267 = load i16, i16* %6
%268 = call i32 @bbm_long_write(i8* %266, i16 zeroext %267, i32 4172, i32 1380263171)
br label %335
269: ; preds = %3
%270 = load i8*, i8** %5
%271 = load i16, i16* %6
%272 = call i32 @bbm_long_write(i8* %270, i16 zeroext %271, i32 4160, i32 -67107836)
%273 = load i8*, i8** %5
%274 = load i16, i16* %6
%275 = call i32 @bbm_long_write(i8* %273, i16 zeroext %274, i32 4164, i32 151387898)
%276 = load i8*, i8** %5
%277 = load i16, i16* %6
%278 = call i32 @bbm_long_write(i8* %276, i16 zeroext %277, i32 4168, i32 -202311163)
%279 = load i8*, i8** %5
%280 = load i16, i16* %6
%281 = call i32 @bbm_long_write(i8* %279, i16 zeroext %280, i32 4172, i32 1329800710)
br label %335
282: ; preds = %3
%283 = load i8*, i8** %5
%284 = load i16, i16* %6
%285 = call i32 @bbm_long_write(i8* %283, i16 zeroext %284, i32 4160, i32 84148220)
%286 = load i8*, i8** %5
%287 = load i16, i16* %6
%288 = call i32 @bbm_long_write(i8* %286, i16 zeroext %287, i32 4164, i32 50002432)
%289 = load i8*, i8** %5
%290 = load i16, i16* %6
%291 = call i32 @bbm_long_write(i8* %289, i16 zeroext %290, i32 4168, i32 -319289589)
%292 = load i8*, i8** %5
%293 = load i16, i16* %6
%294 = call i32 @bbm_long_write(i8* %292, i16 zeroext %293, i32 4172, i32 1581915896)
br label %335
295: ; preds = %3
%296 = load i8*, i8** %5
%297 = load i16, i16* %6
%298 = call i32 @bbm_long_write(i8* %296, i16 zeroext %297, i32 4160, i32 50659838)
%299 = load i8*, i8** %5
%300 = load i16, i16* %6
%301 = call i32 @bbm_long_write(i8* %299, i16 zeroext %300, i32 4164, i32 117307901)
%302 = load i8*, i8** %5
%303 = load i16, i16* %6
%304 = call i32 @bbm_long_write(i8* %302, i16 zeroext %303, i32 4168, i32 -302709749)
%305 = load i8*, i8** %5
%306 = load i16, i16* %6
%307 = call i32 @bbm_long_write(i8* %305, i16 zeroext %306, i32 4172, i32 1497899516)
br label %335
308: ; preds = %3, %3
%309 = load i8*, i8** %5
%310 = load i16, i16* %6
%311 = call i32 @bbm_long_write(i8* %309, i16 zeroext %310, i32 4160, i32 263168)
%312 = load i8*, i8** %5
%313 = load i16, i16* %6
%314 = call i32 @bbm_long_write(i8* %312, i16 zeroext %313, i32 4164, i32 134281979)
%315 = load i8*, i8** %5
%316 = load i16, i16* %6
%317 = call i32 @bbm_long_write(i8* %315, i16 zeroext %316, i32 4168, i32 -269352951)
%318 = load i8*, i8** %5
%319 = load i16, i16* %6
%320 = call i32 @bbm_long_write(i8* %318, i16 zeroext %319, i32 4172, i32 1430659840)
br label %335
321: ; preds = %3
%322 = load i8*, i8** %5
%323 = load i16, i16* %6
%324 = call i32 @bbm_long_write(i8* %322, i16 zeroext %323, i32 4160, i32 -50199550)
%325 = load i8*, i8** %5
%326 = load i16, i16* %6
%327 = call i32 @bbm_long_write(i8* %325, i16 zeroext %326, i32 4164, i32 151256314)
%328 = load i8*, i8** %5
%329 = load i16, i16* %6
%330 = call i32 @bbm_long_write(i8* %328, i16 zeroext %329, i32 4168, i32 -235799545)
%331 = load i8*, i8** %5
%332 = load i16, i16* %6
%333 = call i32 @bbm_long_write(i8* %331, i16 zeroext %332, i32 4172, i32 1380263172)
br label %335
334: ; preds = %3
store i32 1, i32* %4
br label %336
335: ; preds = %321, %308, %295, %282, %269, %256, %243, %230, %217, %204, %191, %178, %165, %152, %139, %126, %113, %100, %87, %74, %61, %48, %35, %22, %9
store i32 0, i32* %4
br label %336
336: ; preds = %335, %334
%337 = load i32, i32* %4
ret i32 %337
}

LLVM IR (-O2):
define i32 @fc8300_set_acif_13seg(i8* %0, i16 zeroext %1, i32 %2) {
switch i32 %2, label %37 [
i32 100750, label %28
i32 100800, label %28
i32 105600, label %4
i32 110400, label %5
i32 115200, label %6
i32 99000, label %7
i32 102000, label %8
i32 105000, label %9
i32 108000, label %10
i32 120000, label %11
i32 98310, label %12
i32 101700, label %13
i32 105090, label %14
i32 108480, label %15
i32 100000, label %16
i32 104000, label %17
i32 112000, label %18
i32 97650, label %19
i32 102300, label %20
i32 106950, label %21
i32 111600, label %22
i32 116000, label %23
i32 98175, label %24
i32 102850, label %25
i32 107250, label %26
i32 107525, label %26
i32 112200, label %27
]
4: ; preds = %3
br label %28
5: ; preds = %3
br label %28
6: ; preds = %3
br label %28
7: ; preds = %3
br label %28
8: ; preds = %3
br label %28
9: ; preds = %3
br label %28
10: ; preds = %3
br label %28
11: ; preds = %3
br label %28
12: ; preds = %3
br label %28
13: ; preds = %3
br label %28
14: ; preds = %3
br label %28
15: ; preds = %3
br label %28
16: ; preds = %3
br label %28
17: ; preds = %3
br label %28
18: ; preds = %3
br label %28
19: ; preds = %3
br label %28
20: ; preds = %3
br label %28
21: ; preds = %3
br label %28
22: ; preds = %3
br label %28
23: ; preds = %3
br label %28
24: ; preds = %3
br label %28
25: ; preds = %3
br label %28
26: ; preds = %3, %3
br label %28
27: ; preds = %3
br label %28
28: ; preds = %3, %3, %27, %26, %25, %24, %23, %22, %21, %20, %19, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %5, %4
%29 = phi i32 [ 17105919, %4 ], [ -33356798, %5 ], [ -67042301, %6 ], [ 84213756, %7 ], [ 50659837, %8 ], [ 33883135, %9 ], [ 263168, %10 ], [ -67239164, %11 ], [ 84148220, %12 ], [ 67371517, %13 ], [ 33883135, %14 ], [ -16514047, %15 ], [ 67371261, %16 ], [ 33882878, %17 ], [ -50199550, %18 ], [ 84147964, %19 ], [ 50659837, %20 ], [ 263168, %21 ], [ -50199550, %22 ], [ -67107836, %23 ], [ 84148220, %24 ], [ 50659838, %25 ], [ 263168, %26 ], [ -50199550, %27 ], [ 67371261, %3 ], [ 67371261, %3 ]
%30 = phi i32 [ 134216187, %4 ], [ 151190522, %5 ], [ 151387898, %6 ], [ 66779648, %7 ], [ 100465150, %8 ], [ 134150652, %9 ], [ 134281978, %10 ], [ 151453947, %11 ], [ 50002432, %12 ], [ 100465150, %13 ], [ 134150652, %14 ], [ 134347514, %15 ], [ 83622399, %16 ], [ 117307900, %17 ], [ 151256314, %18 ], [ 50002433, %19 ], [ 100465149, %20 ], [ 134281979, %21 ], [ 151256314, %22 ], [ 151387898, %23 ], [ 50002432, %24 ], [ 117307901, %25 ], [ 134281979, %26 ], [ 151256314, %27 ], [ 83622398, %3 ], [ 83622398, %3 ]
%31 = phi i32 [ -286064374, %4 ], [ -252576248, %5 ], [ -219088122, %6 ], [ -319355125, %7 ], [ -302709749, %8 ], [ -285998582, %9 ], [ -269287671, %10 ], [ -185534461, %11 ], [ -319289589, %12 ], [ -302709493, %13 ], [ -286064118, %14 ], [ -269287671, %15 ], [ -302578165, %16 ], [ -285998326, %17 ], [ -235799289, %18 ], [ -319289334, %19 ], [ -302709749, %20 ], [ -269287414, %21 ], [ -235799289, %22 ], [ -202311163, %23 ], [ -319289589, %24 ], [ -302709749, %25 ], [ -269352951, %26 ], [ -235799545, %27 ], [ -302643957, %3 ], [ -302643957, %3 ]
%32 = phi i32 [ 1464279806, %4 ], [ 1397040130, %5 ], [ 1346577926, %6 ], [ 1565138937, %7 ], [ 1514742011, %8 ], [ 1464279806, %9 ], [ 1430659841, %10 ], [ 1296181001, %11 ], [ 1565138680, %12 ], [ 1514742011, %13 ], [ 1464279806, %14 ], [ 1413882881, %15 ], [ 1548361722, %16 ], [ 1481122301, %17 ], [ 1380263172, %18 ], [ 1581915896, %19 ], [ 1514742268, %20 ], [ 1447502592, %21 ], [ 1380263171, %22 ], [ 1329800710, %23 ], [ 1581915896, %24 ], [ 1497899516, %25 ], [ 1430659840, %26 ], [ 1380263172, %27 ], [ 1531519226, %3 ], [ 1531519226, %3 ]
%33 = tail call i32 @bbm_long_write(i8* %0, i16 zeroext %1, i32 4160, i32 %29)
%34 = tail call i32 @bbm_long_write(i8* %0, i16 zeroext %1, i32 4164, i32 %30)
%35 = tail call i32 @bbm_long_write(i8* %0, i16 zeroext %1, i32 4168, i32 %31)
%36 = tail call i32 @bbm_long_write(i8* %0, i16 zeroext %1, i32 4172, i32 %32)
br label %37
37: ; preds = %28, %3
%38 = phi i32 [ 1, %3 ], [ 0, %28 ]
ret i32 %38
}