#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 /*<<< orphan*/ bbm_word_write(void *, unsigned short, int, int);
int fc8300_set_cal_front_1seg(void *handle, unsigned short devid,
                              unsigned int clk) {
  switch (clk) {
  case 97650:
    bbm_word_write(handle, devid, 0x1032, 0x2fd1);
    bbm_long_write(handle, devid, 0x2008, 0x3fead);
    bbm_long_write(handle, devid, 0x103c, 0x200a999a);
    break;
  case 97875:
    bbm_word_write(handle, devid, 0x1032, 0x2fb5);
    bbm_long_write(handle, devid, 0x2008, 0x3fc53);
    bbm_long_write(handle, devid, 0x103c, 0x201d8000);
    break;
  case 98175:
    bbm_word_write(handle, devid, 0x1032, 0x2f90);
    bbm_long_write(handle, devid, 0x2008, 0x3f935);
    bbm_long_write(handle, devid, 0x103c, 0x2036b333);
    break;
  case 98304:
    bbm_word_write(handle, devid, 0x1032, 0x2f80);
    bbm_long_write(handle, devid, 0x2008, 0x3f7df);
    bbm_long_write(handle, devid, 0x103c, 0x20418937);
    break;
  case 98310:
    bbm_word_write(handle, devid, 0x1032, 0x2f7f);
    bbm_long_write(handle, devid, 0x2008, 0x3f7d0);
    bbm_long_write(handle, devid, 0x103c, 0x20420a3d);
    break;
  case 99000:
    bbm_word_write(handle, devid, 0x1032, 0x2f2b);
    bbm_long_write(handle, devid, 0x2008, 0x3f0bb);
    bbm_long_write(handle, devid, 0x103c, 0x207c0000);
    break;
  case 100000:
    bbm_word_write(handle, devid, 0x1032, 0x2eb2);
    bbm_long_write(handle, devid, 0x2008, 0x3e6a5);
    bbm_long_write(handle, devid, 0x103c, 0x20d00000);
    break;
  case 100750:
    bbm_word_write(handle, devid, 0x1032, 0x2e59);
    bbm_long_write(handle, devid, 0x2008, 0x3df36);
    bbm_long_write(handle, devid, 0x103c, 0x210f0000);
    break;
  case 100800:
    bbm_word_write(handle, devid, 0x1032, 0x2e53);
    bbm_long_write(handle, devid, 0x2008, 0x3deb8);
    bbm_long_write(handle, devid, 0x103c, 0x21133333);
    break;
  case 101250:
    bbm_word_write(handle, devid, 0x1032, 0x2e1e);
    bbm_long_write(handle, devid, 0x2008, 0x3da51);
    bbm_long_write(handle, devid, 0x103c, 0x21390000);
    break;
  case 101376:
    bbm_word_write(handle, devid, 0x1032, 0x2e10);
    bbm_long_write(handle, devid, 0x2008, 0x3d917);
    bbm_long_write(handle, devid, 0x103c, 0x21439581);
    break;
  case 101700:
    bbm_word_write(handle, devid, 0x1032, 0x2dea);
    bbm_long_write(handle, devid, 0x2008, 0x3d5f3);
    bbm_long_write(handle, devid, 0x103c, 0x215ecccd);
    break;
  case 102400:
    bbm_word_write(handle, devid, 0x1032, 0x2d9a);
    bbm_long_write(handle, devid, 0x2008, 0x3cf3d);
    bbm_long_write(handle, devid, 0x103c, 0x2199999a);
    break;
  case 102850:
    bbm_word_write(handle, devid, 0x1032, 0x2d67);
    bbm_long_write(handle, devid, 0x2008, 0x3caf9);
    bbm_long_write(handle, devid, 0x103c, 0x21bf6666);
    break;
  case 103125:
    bbm_word_write(handle, devid, 0x1032, 0x2d48);
    bbm_long_write(handle, devid, 0x2008, 0x3c862);
    bbm_long_write(handle, devid, 0x103c, 0x21d68000);
    break;
  case 104000:
    bbm_word_write(handle, devid, 0x1032, 0x2ce6);
    bbm_long_write(handle, devid, 0x2008, 0x3c03c);
    bbm_long_write(handle, devid, 0x103c, 0x22200000);
    break;
  case 105600:
    bbm_word_write(handle, devid, 0x1032, 0x2c38);
    bbm_long_write(handle, devid, 0x2008, 0x3b1af);
    bbm_long_write(handle, devid, 0x103c, 0x22a66666);
    break;
  case 107250:
    bbm_word_write(handle, devid, 0x1032, 0x2b8a);
    bbm_long_write(handle, devid, 0x2008, 0x3a323);
    bbm_long_write(handle, devid, 0x103c, 0x23310000);
    break;
  case 107525:
    bbm_word_write(handle, devid, 0x1032, 0x2b6d);
    bbm_long_write(handle, devid, 0x2008, 0x3a0c1);
    bbm_long_write(handle, devid, 0x103c, 0x2348199a);
    break;
  case 108000:
    bbm_word_write(handle, devid, 0x1032, 0x2b3c);
    bbm_long_write(handle, devid, 0x2008, 0x39cac);
    bbm_long_write(handle, devid, 0x103c, 0x23700000);
    break;
  case 110400:
    bbm_word_write(handle, devid, 0x1032, 0x2a4c);
    bbm_long_write(handle, devid, 0x2008, 0x38892);
    bbm_long_write(handle, devid, 0x103c, 0x2439999a);
    break;
  case 111600:
    bbm_word_write(handle, devid, 0x1032, 0x29d7);
    bbm_long_write(handle, devid, 0x2008, 0x37ed8);
    bbm_long_write(handle, devid, 0x103c, 0x249e6666);
    break;
  case 112000:
    bbm_word_write(handle, devid, 0x1032, 0x29b1);
    bbm_long_write(handle, devid, 0x2008, 0x37ba5);
    bbm_long_write(handle, devid, 0x103c, 0x24c00000);
    break;
  case 112200:
    bbm_word_write(handle, devid, 0x1032, 0x299e);
    bbm_long_write(handle, devid, 0x2008, 0x37a0f);
    bbm_long_write(handle, devid, 0x103c, 0x24d0cccd);
    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     1301 <fc8300_set_cal_front_1seg+0x1e1>
jmp    114c <fc8300_set_cal_front_1seg+0x2c>
mov    -0x1c(%rbp),%eax
sub    $0x17e53,%eax
je     134b <fc8300_set_cal_front_1seg+0x22b>
jmp    115f <fc8300_set_cal_front_1seg+0x3f>
mov    -0x1c(%rbp),%eax
sub    $0x17f7f,%eax
je     1395 <fc8300_set_cal_front_1seg+0x275>
jmp    1172 <fc8300_set_cal_front_1seg+0x52>
mov    -0x1c(%rbp),%eax
sub    $0x18000,%eax
je     13df <fc8300_set_cal_front_1seg+0x2bf>
jmp    1185 <fc8300_set_cal_front_1seg+0x65>
mov    -0x1c(%rbp),%eax
sub    $0x18006,%eax
je     1429 <fc8300_set_cal_front_1seg+0x309>
jmp    1198 <fc8300_set_cal_front_1seg+0x78>
mov    -0x1c(%rbp),%eax
sub    $0x182b8,%eax
je     1473 <fc8300_set_cal_front_1seg+0x353>
jmp    11ab <fc8300_set_cal_front_1seg+0x8b>
mov    -0x1c(%rbp),%eax
sub    $0x186a0,%eax
je     14bd <fc8300_set_cal_front_1seg+0x39d>
jmp    11be <fc8300_set_cal_front_1seg+0x9e>
mov    -0x1c(%rbp),%eax
sub    $0x1898e,%eax
je     1507 <fc8300_set_cal_front_1seg+0x3e7>
jmp    11d1 <fc8300_set_cal_front_1seg+0xb1>
mov    -0x1c(%rbp),%eax
sub    $0x189c0,%eax
je     1551 <fc8300_set_cal_front_1seg+0x431>
jmp    11e4 <fc8300_set_cal_front_1seg+0xc4>
mov    -0x1c(%rbp),%eax
sub    $0x18b82,%eax
je     159b <fc8300_set_cal_front_1seg+0x47b>
jmp    11f7 <fc8300_set_cal_front_1seg+0xd7>
mov    -0x1c(%rbp),%eax
sub    $0x18c00,%eax
je     15e5 <fc8300_set_cal_front_1seg+0x4c5>
jmp    120a <fc8300_set_cal_front_1seg+0xea>
mov    -0x1c(%rbp),%eax
sub    $0x18d44,%eax
je     162f <fc8300_set_cal_front_1seg+0x50f>
jmp    121d <fc8300_set_cal_front_1seg+0xfd>
mov    -0x1c(%rbp),%eax
sub    $0x19000,%eax
je     1679 <fc8300_set_cal_front_1seg+0x559>
jmp    1230 <fc8300_set_cal_front_1seg+0x110>
mov    -0x1c(%rbp),%eax
sub    $0x191c2,%eax
je     16c3 <fc8300_set_cal_front_1seg+0x5a3>
jmp    1243 <fc8300_set_cal_front_1seg+0x123>
mov    -0x1c(%rbp),%eax
sub    $0x192d5,%eax
je     170d <fc8300_set_cal_front_1seg+0x5ed>
jmp    1256 <fc8300_set_cal_front_1seg+0x136>
mov    -0x1c(%rbp),%eax
sub    $0x19640,%eax
je     1757 <fc8300_set_cal_front_1seg+0x637>
jmp    1269 <fc8300_set_cal_front_1seg+0x149>
mov    -0x1c(%rbp),%eax
sub    $0x19c80,%eax
je     17a1 <fc8300_set_cal_front_1seg+0x681>
jmp    127c <fc8300_set_cal_front_1seg+0x15c>
mov    -0x1c(%rbp),%eax
sub    $0x1a2f2,%eax
je     17eb <fc8300_set_cal_front_1seg+0x6cb>
jmp    128f <fc8300_set_cal_front_1seg+0x16f>
mov    -0x1c(%rbp),%eax
sub    $0x1a405,%eax
je     1835 <fc8300_set_cal_front_1seg+0x715>
jmp    12a2 <fc8300_set_cal_front_1seg+0x182>
mov    -0x1c(%rbp),%eax
sub    $0x1a5e0,%eax
je     187f <fc8300_set_cal_front_1seg+0x75f>
jmp    12b5 <fc8300_set_cal_front_1seg+0x195>
mov    -0x1c(%rbp),%eax
sub    $0x1af40,%eax
je     18c9 <fc8300_set_cal_front_1seg+0x7a9>
jmp    12c8 <fc8300_set_cal_front_1seg+0x1a8>
mov    -0x1c(%rbp),%eax
sub    $0x1b3f0,%eax
je     1913 <fc8300_set_cal_front_1seg+0x7f3>
jmp    12db <fc8300_set_cal_front_1seg+0x1bb>
mov    -0x1c(%rbp),%eax
sub    $0x1b580,%eax
je     195d <fc8300_set_cal_front_1seg+0x83d>
jmp    12ee <fc8300_set_cal_front_1seg+0x1ce>
mov    -0x1c(%rbp),%eax
sub    $0x1b648,%eax
je     19a7 <fc8300_set_cal_front_1seg+0x887>
jmp    19f1 <fc8300_set_cal_front_1seg+0x8d1>
mov    -0x10(%rbp),%rdi
mov    $0x1032,%edx
mov    $0x2fd1,%ecx
movzwl -0x12(%rbp),%esi
call   1040 <bbm_word_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x2008,%edx
mov    $0x3fead,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x103c,%edx
mov    $0x200a999a,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    19fd <fc8300_set_cal_front_1seg+0x8dd>
mov    -0x10(%rbp),%rdi
mov    $0x1032,%edx
mov    $0x2fb5,%ecx
movzwl -0x12(%rbp),%esi
call   1040 <bbm_word_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x2008,%edx
mov    $0x3fc53,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x103c,%edx
mov    $0x201d8000,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    19fd <fc8300_set_cal_front_1seg+0x8dd>
mov    -0x10(%rbp),%rdi
mov    $0x1032,%edx
mov    $0x2f90,%ecx
movzwl -0x12(%rbp),%esi
call   1040 <bbm_word_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x2008,%edx
mov    $0x3f935,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x103c,%edx
mov    $0x2036b333,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    19fd <fc8300_set_cal_front_1seg+0x8dd>
mov    -0x10(%rbp),%rdi
mov    $0x1032,%edx
mov    $0x2f80,%ecx
movzwl -0x12(%rbp),%esi
call   1040 <bbm_word_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x2008,%edx
mov    $0x3f7df,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x103c,%edx
mov    $0x20418937,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    19fd <fc8300_set_cal_front_1seg+0x8dd>
mov    -0x10(%rbp),%rdi
mov    $0x1032,%edx
mov    $0x2f7f,%ecx
movzwl -0x12(%rbp),%esi
call   1040 <bbm_word_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x2008,%edx
mov    $0x3f7d0,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x103c,%edx
mov    $0x20420a3d,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    19fd <fc8300_set_cal_front_1seg+0x8dd>
mov    -0x10(%rbp),%rdi
mov    $0x1032,%edx
mov    $0x2f2b,%ecx
movzwl -0x12(%rbp),%esi
call   1040 <bbm_word_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x2008,%edx
mov    $0x3f0bb,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x103c,%edx
mov    $0x207c0000,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    19fd <fc8300_set_cal_front_1seg+0x8dd>
mov    -0x10(%rbp),%rdi
mov    $0x1032,%edx
mov    $0x2eb2,%ecx
movzwl -0x12(%rbp),%esi
call   1040 <bbm_word_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x2008,%edx
mov    $0x3e6a5,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x103c,%edx
mov    $0x20d00000,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    19fd <fc8300_set_cal_front_1seg+0x8dd>
mov    -0x10(%rbp),%rdi
mov    $0x1032,%edx
mov    $0x2e59,%ecx
movzwl -0x12(%rbp),%esi
call   1040 <bbm_word_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x2008,%edx
mov    $0x3df36,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x103c,%edx
mov    $0x210f0000,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    19fd <fc8300_set_cal_front_1seg+0x8dd>
mov    -0x10(%rbp),%rdi
mov    $0x1032,%edx
mov    $0x2e53,%ecx
movzwl -0x12(%rbp),%esi
call   1040 <bbm_word_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x2008,%edx
mov    $0x3deb8,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x103c,%edx
mov    $0x21133333,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    19fd <fc8300_set_cal_front_1seg+0x8dd>
mov    -0x10(%rbp),%rdi
mov    $0x1032,%edx
mov    $0x2e1e,%ecx
movzwl -0x12(%rbp),%esi
call   1040 <bbm_word_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x2008,%edx
mov    $0x3da51,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x103c,%edx
mov    $0x21390000,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    19fd <fc8300_set_cal_front_1seg+0x8dd>
mov    -0x10(%rbp),%rdi
mov    $0x1032,%edx
mov    $0x2e10,%ecx
movzwl -0x12(%rbp),%esi
call   1040 <bbm_word_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x2008,%edx
mov    $0x3d917,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x103c,%edx
mov    $0x21439581,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    19fd <fc8300_set_cal_front_1seg+0x8dd>
mov    -0x10(%rbp),%rdi
mov    $0x1032,%edx
mov    $0x2dea,%ecx
movzwl -0x12(%rbp),%esi
call   1040 <bbm_word_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x2008,%edx
mov    $0x3d5f3,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x103c,%edx
mov    $0x215ecccd,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    19fd <fc8300_set_cal_front_1seg+0x8dd>
mov    -0x10(%rbp),%rdi
mov    $0x1032,%edx
mov    $0x2d9a,%ecx
movzwl -0x12(%rbp),%esi
call   1040 <bbm_word_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x2008,%edx
mov    $0x3cf3d,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x103c,%edx
mov    $0x2199999a,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    19fd <fc8300_set_cal_front_1seg+0x8dd>
mov    -0x10(%rbp),%rdi
mov    $0x1032,%edx
mov    $0x2d67,%ecx
movzwl -0x12(%rbp),%esi
call   1040 <bbm_word_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x2008,%edx
mov    $0x3caf9,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x103c,%edx
mov    $0x21bf6666,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    19fd <fc8300_set_cal_front_1seg+0x8dd>
mov    -0x10(%rbp),%rdi
mov    $0x1032,%edx
mov    $0x2d48,%ecx
movzwl -0x12(%rbp),%esi
call   1040 <bbm_word_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x2008,%edx
mov    $0x3c862,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x103c,%edx
mov    $0x21d68000,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    19fd <fc8300_set_cal_front_1seg+0x8dd>
mov    -0x10(%rbp),%rdi
mov    $0x1032,%edx
mov    $0x2ce6,%ecx
movzwl -0x12(%rbp),%esi
call   1040 <bbm_word_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x2008,%edx
mov    $0x3c03c,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x103c,%edx
mov    $0x22200000,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    19fd <fc8300_set_cal_front_1seg+0x8dd>
mov    -0x10(%rbp),%rdi
mov    $0x1032,%edx
mov    $0x2c38,%ecx
movzwl -0x12(%rbp),%esi
call   1040 <bbm_word_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x2008,%edx
mov    $0x3b1af,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x103c,%edx
mov    $0x22a66666,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    19fd <fc8300_set_cal_front_1seg+0x8dd>
mov    -0x10(%rbp),%rdi
mov    $0x1032,%edx
mov    $0x2b8a,%ecx
movzwl -0x12(%rbp),%esi
call   1040 <bbm_word_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x2008,%edx
mov    $0x3a323,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x103c,%edx
mov    $0x23310000,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    19fd <fc8300_set_cal_front_1seg+0x8dd>
mov    -0x10(%rbp),%rdi
mov    $0x1032,%edx
mov    $0x2b6d,%ecx
movzwl -0x12(%rbp),%esi
call   1040 <bbm_word_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x2008,%edx
mov    $0x3a0c1,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x103c,%edx
mov    $0x2348199a,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    19fd <fc8300_set_cal_front_1seg+0x8dd>
mov    -0x10(%rbp),%rdi
mov    $0x1032,%edx
mov    $0x2b3c,%ecx
movzwl -0x12(%rbp),%esi
call   1040 <bbm_word_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x2008,%edx
mov    $0x39cac,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x103c,%edx
mov    $0x23700000,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    19fd <fc8300_set_cal_front_1seg+0x8dd>
mov    -0x10(%rbp),%rdi
mov    $0x1032,%edx
mov    $0x2a4c,%ecx
movzwl -0x12(%rbp),%esi
call   1040 <bbm_word_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x2008,%edx
mov    $0x38892,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x103c,%edx
mov    $0x2439999a,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    19fd <fc8300_set_cal_front_1seg+0x8dd>
mov    -0x10(%rbp),%rdi
mov    $0x1032,%edx
mov    $0x29d7,%ecx
movzwl -0x12(%rbp),%esi
call   1040 <bbm_word_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x2008,%edx
mov    $0x37ed8,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x103c,%edx
mov    $0x249e6666,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    19fd <fc8300_set_cal_front_1seg+0x8dd>
mov    -0x10(%rbp),%rdi
mov    $0x1032,%edx
mov    $0x29b1,%ecx
movzwl -0x12(%rbp),%esi
call   1040 <bbm_word_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x2008,%edx
mov    $0x37ba5,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x103c,%edx
mov    $0x24c00000,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    19fd <fc8300_set_cal_front_1seg+0x8dd>
mov    -0x10(%rbp),%rdi
mov    $0x1032,%edx
mov    $0x299e,%ecx
movzwl -0x12(%rbp),%esi
call   1040 <bbm_word_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x2008,%edx
mov    $0x37a0f,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
mov    -0x10(%rbp),%rdi
mov    $0x103c,%edx
mov    $0x24d0cccd,%ecx
movzwl -0x12(%rbp),%esi
call   1030 <bbm_long_write@plt>
jmp    19fd <fc8300_set_cal_front_1seg+0x8dd>
movl   $0x1,-0x4(%rbp)
jmp    1a04 <fc8300_set_cal_front_1seg+0x8e4>
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   %rbx
push   %rax
mov    %rdi,%rbx
mov    $0x1,%eax
cmp    $0x18fff,%edx
jg     1189 <fc8300_set_cal_front_1seg+0x69>
cmp    $0x1869f,%edx
jg     11db <fc8300_set_cal_front_1seg+0xbb>
cmp    $0x17fff,%edx
jg     1267 <fc8300_set_cal_front_1seg+0x147>
cmp    $0x17d72,%edx
je     134f <fc8300_set_cal_front_1seg+0x22f>
cmp    $0x17e53,%edx
je     1365 <fc8300_set_cal_front_1seg+0x245>
cmp    $0x17f7f,%edx
jne    14d0 <fc8300_set_cal_front_1seg+0x3b0>
mov    $0x2036b333,%r14d
mov    $0x3f935,%r15d
mov    $0x2f90,%ecx
jmp    1498 <fc8300_set_cal_front_1seg+0x378>
cmp    $0x1a404,%edx
jg     1221 <fc8300_set_cal_front_1seg+0x101>
cmp    $0x1963f,%edx
jg     12a1 <fc8300_set_cal_front_1seg+0x181>
cmp    $0x19000,%edx
je     137b <fc8300_set_cal_front_1seg+0x25b>
cmp    $0x191c2,%edx
je     1391 <fc8300_set_cal_front_1seg+0x271>
cmp    $0x192d5,%edx
jne    14d0 <fc8300_set_cal_front_1seg+0x3b0>
mov    $0x21d68000,%r14d
mov    $0x3c862,%r15d
mov    $0x2d48,%ecx
jmp    1498 <fc8300_set_cal_front_1seg+0x378>
cmp    $0x18b81,%edx
jg     12db <fc8300_set_cal_front_1seg+0x1bb>
cmp    $0x186a0,%edx
je     13a7 <fc8300_set_cal_front_1seg+0x287>
cmp    $0x1898e,%edx
je     13bd <fc8300_set_cal_front_1seg+0x29d>
cmp    $0x189c0,%edx
jne    14d0 <fc8300_set_cal_front_1seg+0x3b0>
mov    $0x21133333,%r14d
mov    $0x3deb8,%r15d
mov    $0x2e53,%ecx
jmp    1498 <fc8300_set_cal_front_1seg+0x378>
cmp    $0x1b3ef,%edx
jg     1315 <fc8300_set_cal_front_1seg+0x1f5>
cmp    $0x1a405,%edx
je     13d3 <fc8300_set_cal_front_1seg+0x2b3>
cmp    $0x1a5e0,%edx
je     13e9 <fc8300_set_cal_front_1seg+0x2c9>
cmp    $0x1af40,%edx
jne    14d0 <fc8300_set_cal_front_1seg+0x3b0>
mov    $0x2439999a,%r14d
mov    $0x38892,%r15d
mov    $0x2a4c,%ecx
jmp    1498 <fc8300_set_cal_front_1seg+0x378>
cmp    $0x18000,%edx
je     13ff <fc8300_set_cal_front_1seg+0x2df>
cmp    $0x18006,%edx
je     1415 <fc8300_set_cal_front_1seg+0x2f5>
cmp    $0x182b8,%edx
jne    14d0 <fc8300_set_cal_front_1seg+0x3b0>
mov    $0x207c0000,%r14d
mov    $0x3f0bb,%r15d
mov    $0x2f2b,%ecx
jmp    1498 <fc8300_set_cal_front_1seg+0x378>
cmp    $0x19640,%edx
je     1428 <fc8300_set_cal_front_1seg+0x308>
cmp    $0x19c80,%edx
je     143b <fc8300_set_cal_front_1seg+0x31b>
cmp    $0x1a2f2,%edx
jne    14d0 <fc8300_set_cal_front_1seg+0x3b0>
mov    $0x23310000,%r14d
mov    $0x3a323,%r15d
mov    $0x2b8a,%ecx
jmp    1498 <fc8300_set_cal_front_1seg+0x378>
cmp    $0x18b82,%edx
je     144e <fc8300_set_cal_front_1seg+0x32e>
cmp    $0x18c00,%edx
je     1461 <fc8300_set_cal_front_1seg+0x341>
cmp    $0x18d44,%edx
jne    14d0 <fc8300_set_cal_front_1seg+0x3b0>
mov    $0x215ecccd,%r14d
mov    $0x3d5f3,%r15d
mov    $0x2dea,%ecx
jmp    1498 <fc8300_set_cal_front_1seg+0x378>
cmp    $0x1b3f0,%edx
je     1474 <fc8300_set_cal_front_1seg+0x354>
cmp    $0x1b580,%edx
je     1487 <fc8300_set_cal_front_1seg+0x367>
cmp    $0x1b648,%edx
jne    14d0 <fc8300_set_cal_front_1seg+0x3b0>
mov    $0x24d0cccd,%r14d
mov    $0x37a0f,%r15d
mov    $0x299e,%ecx
jmp    1498 <fc8300_set_cal_front_1seg+0x378>
mov    $0x200a999a,%r14d
mov    $0x3fead,%r15d
mov    $0x2fd1,%ecx
jmp    1498 <fc8300_set_cal_front_1seg+0x378>
mov    $0x201d8000,%r14d
mov    $0x3fc53,%r15d
mov    $0x2fb5,%ecx
jmp    1498 <fc8300_set_cal_front_1seg+0x378>
mov    $0x2199999a,%r14d
mov    $0x3cf3d,%r15d
mov    $0x2d9a,%ecx
jmp    1498 <fc8300_set_cal_front_1seg+0x378>
mov    $0x21bf6666,%r14d
mov    $0x3caf9,%r15d
mov    $0x2d67,%ecx
jmp    1498 <fc8300_set_cal_front_1seg+0x378>
mov    $0x20d00000,%r14d
mov    $0x3e6a5,%r15d
mov    $0x2eb2,%ecx
jmp    1498 <fc8300_set_cal_front_1seg+0x378>
mov    $0x210f0000,%r14d
mov    $0x3df36,%r15d
mov    $0x2e59,%ecx
jmp    1498 <fc8300_set_cal_front_1seg+0x378>
mov    $0x2348199a,%r14d
mov    $0x3a0c1,%r15d
mov    $0x2b6d,%ecx
jmp    1498 <fc8300_set_cal_front_1seg+0x378>
mov    $0x23700000,%r14d
mov    $0x39cac,%r15d
mov    $0x2b3c,%ecx
jmp    1498 <fc8300_set_cal_front_1seg+0x378>
mov    $0x20418937,%r14d
mov    $0x3f7df,%r15d
mov    $0x2f80,%ecx
jmp    1498 <fc8300_set_cal_front_1seg+0x378>
mov    $0x20420a3d,%r14d
mov    $0x3f7d0,%r15d
mov    $0x2f7f,%ecx
jmp    1498 <fc8300_set_cal_front_1seg+0x378>
mov    $0x22200000,%r14d
mov    $0x3c03c,%r15d
mov    $0x2ce6,%ecx
jmp    1498 <fc8300_set_cal_front_1seg+0x378>
mov    $0x22a66666,%r14d
mov    $0x3b1af,%r15d
mov    $0x2c38,%ecx
jmp    1498 <fc8300_set_cal_front_1seg+0x378>
mov    $0x21390000,%r14d
mov    $0x3da51,%r15d
mov    $0x2e1e,%ecx
jmp    1498 <fc8300_set_cal_front_1seg+0x378>
mov    $0x21439581,%r14d
mov    $0x3d917,%r15d
mov    $0x2e10,%ecx
jmp    1498 <fc8300_set_cal_front_1seg+0x378>
mov    $0x249e6666,%r14d
mov    $0x37ed8,%r15d
mov    $0x29d7,%ecx
jmp    1498 <fc8300_set_cal_front_1seg+0x378>
mov    $0x24c00000,%r14d
mov    $0x37ba5,%r15d
mov    $0x29b1,%ecx
movzwl %si,%ebp
mov    %rbx,%rdi
mov    %ebp,%esi
mov    $0x1032,%edx
call   1040 <bbm_word_write@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    $0x2008,%edx
mov    %r15d,%ecx
call   1030 <bbm_long_write@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    $0x103c,%edx
mov    %r14d,%ecx
call   1030 <bbm_long_write@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @fc8300_set_cal_front_1seg(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 %249 [
i32 97650, label %9
i32 97875, label %19
i32 98175, label %29
i32 98304, label %39
i32 98310, label %49
i32 99000, label %59
i32 100000, label %69
i32 100750, label %79
i32 100800, label %89
i32 101250, label %99
i32 101376, label %109
i32 101700, label %119
i32 102400, label %129
i32 102850, label %139
i32 103125, label %149
i32 104000, label %159
i32 105600, label %169
i32 107250, label %179
i32 107525, label %189
i32 108000, label %199
i32 110400, label %209
i32 111600, label %219
i32 112000, label %229
i32 112200, label %239
]
9: ; preds = %3
%10 = load i8*, i8** %5
%11 = load i16, i16* %6
%12 = call i32 @bbm_word_write(i8* %10, i16 zeroext %11, i32 4146, i32 12241)
%13 = load i8*, i8** %5
%14 = load i16, i16* %6
%15 = call i32 @bbm_long_write(i8* %13, i16 zeroext %14, i32 8200, i32 261805)
%16 = load i8*, i8** %5
%17 = load i16, i16* %6
%18 = call i32 @bbm_long_write(i8* %16, i16 zeroext %17, i32 4156, i32 537565594)
br label %250
19: ; preds = %3
%20 = load i8*, i8** %5
%21 = load i16, i16* %6
%22 = call i32 @bbm_word_write(i8* %20, i16 zeroext %21, i32 4146, i32 12213)
%23 = load i8*, i8** %5
%24 = load i16, i16* %6
%25 = call i32 @bbm_long_write(i8* %23, i16 zeroext %24, i32 8200, i32 261203)
%26 = load i8*, i8** %5
%27 = load i16, i16* %6
%28 = call i32 @bbm_long_write(i8* %26, i16 zeroext %27, i32 4156, i32 538804224)
br label %250
29: ; preds = %3
%30 = load i8*, i8** %5
%31 = load i16, i16* %6
%32 = call i32 @bbm_word_write(i8* %30, i16 zeroext %31, i32 4146, i32 12176)
%33 = load i8*, i8** %5
%34 = load i16, i16* %6
%35 = call i32 @bbm_long_write(i8* %33, i16 zeroext %34, i32 8200, i32 260405)
%36 = load i8*, i8** %5
%37 = load i16, i16* %6
%38 = call i32 @bbm_long_write(i8* %36, i16 zeroext %37, i32 4156, i32 540455731)
br label %250
39: ; preds = %3
%40 = load i8*, i8** %5
%41 = load i16, i16* %6
%42 = call i32 @bbm_word_write(i8* %40, i16 zeroext %41, i32 4146, i32 12160)
%43 = load i8*, i8** %5
%44 = load i16, i16* %6
%45 = call i32 @bbm_long_write(i8* %43, i16 zeroext %44, i32 8200, i32 260063)
%46 = load i8*, i8** %5
%47 = load i16, i16* %6
%48 = call i32 @bbm_long_write(i8* %46, i16 zeroext %47, i32 4156, i32 541165879)
br label %250
49: ; preds = %3
%50 = load i8*, i8** %5
%51 = load i16, i16* %6
%52 = call i32 @bbm_word_write(i8* %50, i16 zeroext %51, i32 4146, i32 12159)
%53 = load i8*, i8** %5
%54 = load i16, i16* %6
%55 = call i32 @bbm_long_write(i8* %53, i16 zeroext %54, i32 8200, i32 260048)
%56 = load i8*, i8** %5
%57 = load i16, i16* %6
%58 = call i32 @bbm_long_write(i8* %56, i16 zeroext %57, i32 4156, i32 541198909)
br label %250
59: ; preds = %3
%60 = load i8*, i8** %5
%61 = load i16, i16* %6
%62 = call i32 @bbm_word_write(i8* %60, i16 zeroext %61, i32 4146, i32 12075)
%63 = load i8*, i8** %5
%64 = load i16, i16* %6
%65 = call i32 @bbm_long_write(i8* %63, i16 zeroext %64, i32 8200, i32 258235)
%66 = load i8*, i8** %5
%67 = load i16, i16* %6
%68 = call i32 @bbm_long_write(i8* %66, i16 zeroext %67, i32 4156, i32 544997376)
br label %250
69: ; preds = %3
%70 = load i8*, i8** %5
%71 = load i16, i16* %6
%72 = call i32 @bbm_word_write(i8* %70, i16 zeroext %71, i32 4146, i32 11954)
%73 = load i8*, i8** %5
%74 = load i16, i16* %6
%75 = call i32 @bbm_long_write(i8* %73, i16 zeroext %74, i32 8200, i32 255653)
%76 = load i8*, i8** %5
%77 = load i16, i16* %6
%78 = call i32 @bbm_long_write(i8* %76, i16 zeroext %77, i32 4156, i32 550502400)
br label %250
79: ; preds = %3
%80 = load i8*, i8** %5
%81 = load i16, i16* %6
%82 = call i32 @bbm_word_write(i8* %80, i16 zeroext %81, i32 4146, i32 11865)
%83 = load i8*, i8** %5
%84 = load i16, i16* %6
%85 = call i32 @bbm_long_write(i8* %83, i16 zeroext %84, i32 8200, i32 253750)
%86 = load i8*, i8** %5
%87 = load i16, i16* %6
%88 = call i32 @bbm_long_write(i8* %86, i16 zeroext %87, i32 4156, i32 554631168)
br label %250
89: ; preds = %3
%90 = load i8*, i8** %5
%91 = load i16, i16* %6
%92 = call i32 @bbm_word_write(i8* %90, i16 zeroext %91, i32 4146, i32 11859)
%93 = load i8*, i8** %5
%94 = load i16, i16* %6
%95 = call i32 @bbm_long_write(i8* %93, i16 zeroext %94, i32 8200, i32 253624)
%96 = load i8*, i8** %5
%97 = load i16, i16* %6
%98 = call i32 @bbm_long_write(i8* %96, i16 zeroext %97, i32 4156, i32 554906419)
br label %250
99: ; preds = %3
%100 = load i8*, i8** %5
%101 = load i16, i16* %6
%102 = call i32 @bbm_word_write(i8* %100, i16 zeroext %101, i32 4146, i32 11806)
%103 = load i8*, i8** %5
%104 = load i16, i16* %6
%105 = call i32 @bbm_long_write(i8* %103, i16 zeroext %104, i32 8200, i32 252497)
%106 = load i8*, i8** %5
%107 = load i16, i16* %6
%108 = call i32 @bbm_long_write(i8* %106, i16 zeroext %107, i32 4156, i32 557383680)
br label %250
109: ; preds = %3
%110 = load i8*, i8** %5
%111 = load i16, i16* %6
%112 = call i32 @bbm_word_write(i8* %110, i16 zeroext %111, i32 4146, i32 11792)
%113 = load i8*, i8** %5
%114 = load i16, i16* %6
%115 = call i32 @bbm_long_write(i8* %113, i16 zeroext %114, i32 8200, i32 252183)
%116 = load i8*, i8** %5
%117 = load i16, i16* %6
%118 = call i32 @bbm_long_write(i8* %116, i16 zeroext %117, i32 4156, i32 558077313)
br label %250
119: ; preds = %3
%120 = load i8*, i8** %5
%121 = load i16, i16* %6
%122 = call i32 @bbm_word_write(i8* %120, i16 zeroext %121, i32 4146, i32 11754)
%123 = load i8*, i8** %5
%124 = load i16, i16* %6
%125 = call i32 @bbm_long_write(i8* %123, i16 zeroext %124, i32 8200, i32 251379)
%126 = load i8*, i8** %5
%127 = load i16, i16* %6
%128 = call i32 @bbm_long_write(i8* %126, i16 zeroext %127, i32 4156, i32 559860941)
br label %250
129: ; preds = %3
%130 = load i8*, i8** %5
%131 = load i16, i16* %6
%132 = call i32 @bbm_word_write(i8* %130, i16 zeroext %131, i32 4146, i32 11674)
%133 = load i8*, i8** %5
%134 = load i16, i16* %6
%135 = call i32 @bbm_long_write(i8* %133, i16 zeroext %134, i32 8200, i32 249661)
%136 = load i8*, i8** %5
%137 = load i16, i16* %6
%138 = call i32 @bbm_long_write(i8* %136, i16 zeroext %137, i32 4156, i32 563714458)
br label %250
139: ; preds = %3
%140 = load i8*, i8** %5
%141 = load i16, i16* %6
%142 = call i32 @bbm_word_write(i8* %140, i16 zeroext %141, i32 4146, i32 11623)
%143 = load i8*, i8** %5
%144 = load i16, i16* %6
%145 = call i32 @bbm_long_write(i8* %143, i16 zeroext %144, i32 8200, i32 248569)
%146 = load i8*, i8** %5
%147 = load i16, i16* %6
%148 = call i32 @bbm_long_write(i8* %146, i16 zeroext %147, i32 4156, i32 566191718)
br label %250
149: ; preds = %3
%150 = load i8*, i8** %5
%151 = load i16, i16* %6
%152 = call i32 @bbm_word_write(i8* %150, i16 zeroext %151, i32 4146, i32 11592)
%153 = load i8*, i8** %5
%154 = load i16, i16* %6
%155 = call i32 @bbm_long_write(i8* %153, i16 zeroext %154, i32 8200, i32 247906)
%156 = load i8*, i8** %5
%157 = load i16, i16* %6
%158 = call i32 @bbm_long_write(i8* %156, i16 zeroext %157, i32 4156, i32 567705600)
br label %250
159: ; preds = %3
%160 = load i8*, i8** %5
%161 = load i16, i16* %6
%162 = call i32 @bbm_word_write(i8* %160, i16 zeroext %161, i32 4146, i32 11494)
%163 = load i8*, i8** %5
%164 = load i16, i16* %6
%165 = call i32 @bbm_long_write(i8* %163, i16 zeroext %164, i32 8200, i32 245820)
%166 = load i8*, i8** %5
%167 = load i16, i16* %6
%168 = call i32 @bbm_long_write(i8* %166, i16 zeroext %167, i32 4156, i32 572522496)
br label %250
169: ; preds = %3
%170 = load i8*, i8** %5
%171 = load i16, i16* %6
%172 = call i32 @bbm_word_write(i8* %170, i16 zeroext %171, i32 4146, i32 11320)
%173 = load i8*, i8** %5
%174 = load i16, i16* %6
%175 = call i32 @bbm_long_write(i8* %173, i16 zeroext %174, i32 8200, i32 242095)
%176 = load i8*, i8** %5
%177 = load i16, i16* %6
%178 = call i32 @bbm_long_write(i8* %176, i16 zeroext %177, i32 4156, i32 581330534)
br label %250
179: ; preds = %3
%180 = load i8*, i8** %5
%181 = load i16, i16* %6
%182 = call i32 @bbm_word_write(i8* %180, i16 zeroext %181, i32 4146, i32 11146)
%183 = load i8*, i8** %5
%184 = load i16, i16* %6
%185 = call i32 @bbm_long_write(i8* %183, i16 zeroext %184, i32 8200, i32 238371)
%186 = load i8*, i8** %5
%187 = load i16, i16* %6
%188 = call i32 @bbm_long_write(i8* %186, i16 zeroext %187, i32 4156, i32 590413824)
br label %250
189: ; preds = %3
%190 = load i8*, i8** %5
%191 = load i16, i16* %6
%192 = call i32 @bbm_word_write(i8* %190, i16 zeroext %191, i32 4146, i32 11117)
%193 = load i8*, i8** %5
%194 = load i16, i16* %6
%195 = call i32 @bbm_long_write(i8* %193, i16 zeroext %194, i32 8200, i32 237761)
%196 = load i8*, i8** %5
%197 = load i16, i16* %6
%198 = call i32 @bbm_long_write(i8* %196, i16 zeroext %197, i32 4156, i32 591927706)
br label %250
199: ; preds = %3
%200 = load i8*, i8** %5
%201 = load i16, i16* %6
%202 = call i32 @bbm_word_write(i8* %200, i16 zeroext %201, i32 4146, i32 11068)
%203 = load i8*, i8** %5
%204 = load i16, i16* %6
%205 = call i32 @bbm_long_write(i8* %203, i16 zeroext %204, i32 8200, i32 236716)
%206 = load i8*, i8** %5
%207 = load i16, i16* %6
%208 = call i32 @bbm_long_write(i8* %206, i16 zeroext %207, i32 4156, i32 594542592)
br label %250
209: ; preds = %3
%210 = load i8*, i8** %5
%211 = load i16, i16* %6
%212 = call i32 @bbm_word_write(i8* %210, i16 zeroext %211, i32 4146, i32 10828)
%213 = load i8*, i8** %5
%214 = load i16, i16* %6
%215 = call i32 @bbm_long_write(i8* %213, i16 zeroext %214, i32 8200, i32 231570)
%216 = load i8*, i8** %5
%217 = load i16, i16* %6
%218 = call i32 @bbm_long_write(i8* %216, i16 zeroext %217, i32 4156, i32 607754650)
br label %250
219: ; preds = %3
%220 = load i8*, i8** %5
%221 = load i16, i16* %6
%222 = call i32 @bbm_word_write(i8* %220, i16 zeroext %221, i32 4146, i32 10711)
%223 = load i8*, i8** %5
%224 = load i16, i16* %6
%225 = call i32 @bbm_long_write(i8* %223, i16 zeroext %224, i32 8200, i32 229080)
%226 = load i8*, i8** %5
%227 = load i16, i16* %6
%228 = call i32 @bbm_long_write(i8* %226, i16 zeroext %227, i32 4156, i32 614360678)
br label %250
229: ; preds = %3
%230 = load i8*, i8** %5
%231 = load i16, i16* %6
%232 = call i32 @bbm_word_write(i8* %230, i16 zeroext %231, i32 4146, i32 10673)
%233 = load i8*, i8** %5
%234 = load i16, i16* %6
%235 = call i32 @bbm_long_write(i8* %233, i16 zeroext %234, i32 8200, i32 228261)
%236 = load i8*, i8** %5
%237 = load i16, i16* %6
%238 = call i32 @bbm_long_write(i8* %236, i16 zeroext %237, i32 4156, i32 616562688)
br label %250
239: ; preds = %3
%240 = load i8*, i8** %5
%241 = load i16, i16* %6
%242 = call i32 @bbm_word_write(i8* %240, i16 zeroext %241, i32 4146, i32 10654)
%243 = load i8*, i8** %5
%244 = load i16, i16* %6
%245 = call i32 @bbm_long_write(i8* %243, i16 zeroext %244, i32 8200, i32 227855)
%246 = load i8*, i8** %5
%247 = load i16, i16* %6
%248 = call i32 @bbm_long_write(i8* %246, i16 zeroext %247, i32 4156, i32 617663693)
br label %250
249: ; preds = %3
store i32 1, i32* %4
br label %251
250: ; preds = %239, %229, %219, %209, %199, %189, %179, %169, %159, %149, %139, %129, %119, %109, %99, %89, %79, %69, %59, %49, %39, %29, %19, %9
store i32 0, i32* %4
br label %251
251: ; preds = %250, %249
%252 = load i32, i32* %4
ret i32 %252
}

LLVM IR (-O2):
define i32 @fc8300_set_cal_front_1seg(i8* %0, i16 zeroext %1, i32 %2) {
switch i32 %2, label %34 [
i32 97650, label %27
i32 97875, label %4
i32 98175, label %5
i32 98304, label %6
i32 98310, label %7
i32 99000, label %8
i32 100000, label %9
i32 100750, label %10
i32 100800, label %11
i32 101250, label %12
i32 101376, label %13
i32 101700, label %14
i32 102400, label %15
i32 102850, label %16
i32 103125, label %17
i32 104000, label %18
i32 105600, label %19
i32 107250, label %20
i32 107525, label %21
i32 108000, label %22
i32 110400, label %23
i32 111600, label %24
i32 112000, label %25
i32 112200, label %26
]
4: ; preds = %3
br label %27
5: ; preds = %3
br label %27
6: ; preds = %3
br label %27
7: ; preds = %3
br label %27
8: ; preds = %3
br label %27
9: ; preds = %3
br label %27
10: ; preds = %3
br label %27
11: ; preds = %3
br label %27
12: ; preds = %3
br label %27
13: ; preds = %3
br label %27
14: ; preds = %3
br label %27
15: ; preds = %3
br label %27
16: ; preds = %3
br label %27
17: ; preds = %3
br label %27
18: ; preds = %3
br label %27
19: ; preds = %3
br label %27
20: ; preds = %3
br label %27
21: ; preds = %3
br label %27
22: ; preds = %3
br label %27
23: ; preds = %3
br label %27
24: ; preds = %3
br label %27
25: ; preds = %3
br label %27
26: ; preds = %3
br label %27
27: ; preds = %3, %26, %25, %24, %23, %22, %21, %20, %19, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %5, %4
%28 = phi i32 [ 12213, %4 ], [ 12176, %5 ], [ 12160, %6 ], [ 12159, %7 ], [ 12075, %8 ], [ 11954, %9 ], [ 11865, %10 ], [ 11859, %11 ], [ 11806, %12 ], [ 11792, %13 ], [ 11754, %14 ], [ 11674, %15 ], [ 11623, %16 ], [ 11592, %17 ], [ 11494, %18 ], [ 11320, %19 ], [ 11146, %20 ], [ 11117, %21 ], [ 11068, %22 ], [ 10828, %23 ], [ 10711, %24 ], [ 10673, %25 ], [ 10654, %26 ], [ 12241, %3 ]
%29 = phi i32 [ 261203, %4 ], [ 260405, %5 ], [ 260063, %6 ], [ 260048, %7 ], [ 258235, %8 ], [ 255653, %9 ], [ 253750, %10 ], [ 253624, %11 ], [ 252497, %12 ], [ 252183, %13 ], [ 251379, %14 ], [ 249661, %15 ], [ 248569, %16 ], [ 247906, %17 ], [ 245820, %18 ], [ 242095, %19 ], [ 238371, %20 ], [ 237761, %21 ], [ 236716, %22 ], [ 231570, %23 ], [ 229080, %24 ], [ 228261, %25 ], [ 227855, %26 ], [ 261805, %3 ]
%30 = phi i32 [ 538804224, %4 ], [ 540455731, %5 ], [ 541165879, %6 ], [ 541198909, %7 ], [ 544997376, %8 ], [ 550502400, %9 ], [ 554631168, %10 ], [ 554906419, %11 ], [ 557383680, %12 ], [ 558077313, %13 ], [ 559860941, %14 ], [ 563714458, %15 ], [ 566191718, %16 ], [ 567705600, %17 ], [ 572522496, %18 ], [ 581330534, %19 ], [ 590413824, %20 ], [ 591927706, %21 ], [ 594542592, %22 ], [ 607754650, %23 ], [ 614360678, %24 ], [ 616562688, %25 ], [ 617663693, %26 ], [ 537565594, %3 ]
%31 = tail call i32 @bbm_word_write(i8* %0, i16 zeroext %1, i32 4146, i32 %28)
%32 = tail call i32 @bbm_long_write(i8* %0, i16 zeroext %1, i32 8200, i32 %29)
%33 = tail call i32 @bbm_long_write(i8* %0, i16 zeroext %1, i32 4156, i32 %30)
br label %34
34: ; preds = %27, %3
%35 = phi i32 [ 1, %3 ], [ 0, %27 ]
ret i32 %35
}