#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*/ VIM_SIF_I2cWriteByte(int, int);
void SensorSetContrast_HV7131GP(unsigned char val) {
  switch (val) {
  case 1:
    VIM_SIF_I2cWriteByte(0x40, 0x00);
    VIM_SIF_I2cWriteByte(0x41, 0x04);
    VIM_SIF_I2cWriteByte(0x42, 0x1c);
    VIM_SIF_I2cWriteByte(0x43, 0x34);
    VIM_SIF_I2cWriteByte(0x44, 0x54);
    VIM_SIF_I2cWriteByte(0x45, 0x78);
    VIM_SIF_I2cWriteByte(0x46, 0x90);
    VIM_SIF_I2cWriteByte(0x47, 0xa4);
    VIM_SIF_I2cWriteByte(0x48, 0xe0);
    VIM_SIF_I2cWriteByte(0x49, 0xf4);
    VIM_SIF_I2cWriteByte(0x50, 0x40);
    VIM_SIF_I2cWriteByte(0x51, 0x80);
    VIM_SIF_I2cWriteByte(0x52, 0x60);
    VIM_SIF_I2cWriteByte(0x53, 0x40);
    VIM_SIF_I2cWriteByte(0x54, 0x24);
    VIM_SIF_I2cWriteByte(0x55, 0x18);
    VIM_SIF_I2cWriteByte(0x56, 0x14);
    VIM_SIF_I2cWriteByte(0x57, 0x0f);
    VIM_SIF_I2cWriteByte(0x58, 0x05);
    VIM_SIF_I2cWriteByte(0x59, 0x02);
    break;
  case 2:
    VIM_SIF_I2cWriteByte(0x40, 0x00);
    VIM_SIF_I2cWriteByte(0x41, 0x04);
    VIM_SIF_I2cWriteByte(0x42, 0x0a);
    VIM_SIF_I2cWriteByte(0x43, 0x12);
    VIM_SIF_I2cWriteByte(0x44, 0x20);
    VIM_SIF_I2cWriteByte(0x45, 0x39);
    VIM_SIF_I2cWriteByte(0x46, 0x52);
    VIM_SIF_I2cWriteByte(0x47, 0x66);
    VIM_SIF_I2cWriteByte(0x48, 0xae);
    VIM_SIF_I2cWriteByte(0x49, 0xdd);
    VIM_SIF_I2cWriteByte(0x50, 0x40);
    VIM_SIF_I2cWriteByte(0x51, 0x20);
    VIM_SIF_I2cWriteByte(0x52, 0x20);
    VIM_SIF_I2cWriteByte(0x53, 0x1c);
    VIM_SIF_I2cWriteByte(0x54, 0x19);
    VIM_SIF_I2cWriteByte(0x55, 0x19);
    VIM_SIF_I2cWriteByte(0x56, 0x14);
    VIM_SIF_I2cWriteByte(0x57, 0x12);
    VIM_SIF_I2cWriteByte(0x58, 0x0b);
    VIM_SIF_I2cWriteByte(0x59, 0x08);
    break;
  case 3:
    VIM_SIF_I2cWriteByte(0x40, 0x00);
    VIM_SIF_I2cWriteByte(0x41, 0x00);
    VIM_SIF_I2cWriteByte(0x42, 0x02);
    VIM_SIF_I2cWriteByte(0x43, 0x08);
    VIM_SIF_I2cWriteByte(0x44, 0x14);
    VIM_SIF_I2cWriteByte(0x45, 0x2e);
    VIM_SIF_I2cWriteByte(0x46, 0x44);
    VIM_SIF_I2cWriteByte(0x47, 0x5a);
    VIM_SIF_I2cWriteByte(0x48, 0xa6);
    VIM_SIF_I2cWriteByte(0x49, 0xdd);
    VIM_SIF_I2cWriteByte(0x50, 0x00);
    VIM_SIF_I2cWriteByte(0x51, 0x0a);
    VIM_SIF_I2cWriteByte(0x52, 0x18);
    VIM_SIF_I2cWriteByte(0x53, 0x18);
    VIM_SIF_I2cWriteByte(0x54, 0x1a);
    VIM_SIF_I2cWriteByte(0x55, 0x16);
    VIM_SIF_I2cWriteByte(0x56, 0x16);
    VIM_SIF_I2cWriteByte(0x57, 0x13);
    VIM_SIF_I2cWriteByte(0x58, 0x0d);
    VIM_SIF_I2cWriteByte(0x59, 0x08);
    break;
  case 4:
    VIM_SIF_I2cWriteByte(0x40, 0x00);
    VIM_SIF_I2cWriteByte(0x41, 0x00);
    VIM_SIF_I2cWriteByte(0x42, 0x01);
    VIM_SIF_I2cWriteByte(0x43, 0x06);
    VIM_SIF_I2cWriteByte(0x44, 0x10);
    VIM_SIF_I2cWriteByte(0x45, 0x26);
    VIM_SIF_I2cWriteByte(0x46, 0x3a);
    VIM_SIF_I2cWriteByte(0x47, 0x4e);
    VIM_SIF_I2cWriteByte(0x48, 0x94);
    VIM_SIF_I2cWriteByte(0x49, 0xdd);
    VIM_SIF_I2cWriteByte(0x50, 0x00);
    VIM_SIF_I2cWriteByte(0x51, 0x05);
    VIM_SIF_I2cWriteByte(0x52, 0x14);
    VIM_SIF_I2cWriteByte(0x53, 0x14);
    VIM_SIF_I2cWriteByte(0x54, 0x16);
    VIM_SIF_I2cWriteByte(0x55, 0x14);
    VIM_SIF_I2cWriteByte(0x56, 0x14);
    VIM_SIF_I2cWriteByte(0x57, 0x11);
    VIM_SIF_I2cWriteByte(0x58, 0x12);
    VIM_SIF_I2cWriteByte(0x59, 0x08);
    break;
  case 5:
    VIM_SIF_I2cWriteByte(0x40, 0x00);
    VIM_SIF_I2cWriteByte(0x41, 0x00);
    VIM_SIF_I2cWriteByte(0x42, 0x00);
    VIM_SIF_I2cWriteByte(0x43, 0x02);
    VIM_SIF_I2cWriteByte(0x44, 0x0a);
    VIM_SIF_I2cWriteByte(0x45, 0x1c);
    VIM_SIF_I2cWriteByte(0x46, 0x2e);
    VIM_SIF_I2cWriteByte(0x47, 0x3e);
    VIM_SIF_I2cWriteByte(0x48, 0x86);
    VIM_SIF_I2cWriteByte(0x49, 0xdd);
    VIM_SIF_I2cWriteByte(0x50, 0x00);
    VIM_SIF_I2cWriteByte(0x51, 0x00);
    VIM_SIF_I2cWriteByte(0x52, 0x08);
    VIM_SIF_I2cWriteByte(0x53, 0x10);
    VIM_SIF_I2cWriteByte(0x54, 0x12);
    VIM_SIF_I2cWriteByte(0x55, 0x12);
    VIM_SIF_I2cWriteByte(0x56, 0x10);
    VIM_SIF_I2cWriteByte(0x57, 0x12);
    VIM_SIF_I2cWriteByte(0x58, 0x15);
    VIM_SIF_I2cWriteByte(0x59, 0x08);
    break;
  default:
    break;
  }
}


x86 assembly (clang, -O0):
<SensorSetContrast_HV7131GP>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x4,%eax
ja     1716 <SensorSetContrast_HV7131GP+0x606>
mov    -0x10(%rbp),%rax
lea    0xec1(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x40,%edi
xor    %esi,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x41,%edi
mov    $0x4,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x42,%edi
mov    $0x1c,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x43,%edi
mov    $0x34,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x44,%edi
mov    $0x54,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x45,%edi
mov    $0x78,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x46,%edi
mov    $0x90,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x47,%edi
mov    $0xa4,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x48,%edi
mov    $0xe0,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x49,%edi
mov    $0xf4,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x50,%edi
mov    $0x40,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x51,%edi
mov    $0x80,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x52,%edi
mov    $0x60,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x53,%edi
mov    $0x40,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x54,%edi
mov    $0x24,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x55,%edi
mov    $0x18,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x56,%edi
mov    $0x14,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x57,%edi
mov    $0xf,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x58,%edi
mov    $0x5,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x59,%edi
mov    $0x2,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
jmp    171b <SensorSetContrast_HV7131GP+0x60b>
mov    $0x40,%edi
xor    %esi,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x41,%edi
mov    $0x4,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x42,%edi
mov    $0xa,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x43,%edi
mov    $0x12,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x44,%edi
mov    $0x20,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x45,%edi
mov    $0x39,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x46,%edi
mov    $0x52,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x47,%edi
mov    $0x66,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x48,%edi
mov    $0xae,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x49,%edi
mov    $0xdd,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x50,%edi
mov    $0x40,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x51,%edi
mov    $0x20,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x52,%edi
mov    $0x20,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x53,%edi
mov    $0x1c,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x54,%edi
mov    $0x19,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x55,%edi
mov    $0x19,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x56,%edi
mov    $0x14,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x57,%edi
mov    $0x12,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x58,%edi
mov    $0xb,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x59,%edi
mov    $0x8,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
jmp    171b <SensorSetContrast_HV7131GP+0x60b>
mov    $0x40,%edi
xor    %esi,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x41,%edi
xor    %esi,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x42,%edi
mov    $0x2,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x43,%edi
mov    $0x8,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x44,%edi
mov    $0x14,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x45,%edi
mov    $0x2e,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x46,%edi
mov    $0x44,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x47,%edi
mov    $0x5a,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x48,%edi
mov    $0xa6,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x49,%edi
mov    $0xdd,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x50,%edi
xor    %esi,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x51,%edi
mov    $0xa,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x52,%edi
mov    $0x18,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x53,%edi
mov    $0x18,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x54,%edi
mov    $0x1a,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x55,%edi
mov    $0x16,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x56,%edi
mov    $0x16,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x57,%edi
mov    $0x13,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x58,%edi
mov    $0xd,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x59,%edi
mov    $0x8,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
jmp    171b <SensorSetContrast_HV7131GP+0x60b>
mov    $0x40,%edi
xor    %esi,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x41,%edi
xor    %esi,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x42,%edi
mov    $0x1,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x43,%edi
mov    $0x6,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x44,%edi
mov    $0x10,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x45,%edi
mov    $0x26,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x46,%edi
mov    $0x3a,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x47,%edi
mov    $0x4e,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x48,%edi
mov    $0x94,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x49,%edi
mov    $0xdd,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x50,%edi
xor    %esi,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x51,%edi
mov    $0x5,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x52,%edi
mov    $0x14,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x53,%edi
mov    $0x14,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x54,%edi
mov    $0x16,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x55,%edi
mov    $0x14,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x56,%edi
mov    $0x14,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x57,%edi
mov    $0x11,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x58,%edi
mov    $0x12,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x59,%edi
mov    $0x8,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
jmp    171b <SensorSetContrast_HV7131GP+0x60b>
mov    $0x40,%edi
xor    %esi,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x41,%edi
xor    %esi,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x42,%edi
xor    %esi,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x43,%edi
mov    $0x2,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x44,%edi
mov    $0xa,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x45,%edi
mov    $0x1c,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x46,%edi
mov    $0x2e,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x47,%edi
mov    $0x3e,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x48,%edi
mov    $0x86,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x49,%edi
mov    $0xdd,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x50,%edi
xor    %esi,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x51,%edi
xor    %esi,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x52,%edi
mov    $0x8,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x53,%edi
mov    $0x10,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x54,%edi
mov    $0x12,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x55,%edi
mov    $0x12,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x56,%edi
mov    $0x10,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x57,%edi
mov    $0x12,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x58,%edi
mov    $0x15,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x59,%edi
mov    $0x8,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
jmp    171b <SensorSetContrast_HV7131GP+0x60b>
jmp    171b <SensorSetContrast_HV7131GP+0x60b>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SensorSetContrast_HV7131GP>:
add    $0xff,%dil
cmp    $0x4,%dil
ja     1342 <SensorSetContrast_HV7131GP+0x232>
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
movsbq %dil,%rax
lea    0xec9(%rip),%rcx
mov    (%rcx,%rax,4),%r14d
lea    0x1012(%rip),%rcx
mov    (%rcx,%rax,4),%ebp
lea    0xec8(%rip),%rcx
mov    (%rcx,%rax,4),%ebx
lea    0xed2(%rip),%rcx
mov    (%rcx,%rax,4),%r13d
lea    0xedb(%rip),%rcx
mov    (%rcx,%rax,4),%r12d
lea    0xee4(%rip),%rcx
mov    (%rcx,%rax,4),%r15d
lea    0xeed(%rip),%rcx
mov    (%rcx,%rax,4),%ecx
mov    %ecx,0x4(%rsp)
lea    0xef3(%rip),%rcx
mov    (%rcx,%rax,4),%ecx
mov    %ecx,0x8(%rsp)
lea    0xef9(%rip),%rcx
mov    (%rcx,%rax,4),%ecx
mov    %ecx,0xc(%rsp)
lea    0xeff(%rip),%rcx
mov    (%rcx,%rax,4),%ecx
mov    %ecx,0x10(%rsp)
lea    0xfb9(%rip),%rcx
mov    (%rcx,%rax,4),%ecx
mov    %ecx,0x14(%rsp)
lea    0xef7(%rip),%rcx
mov    (%rcx,%rax,4),%ecx
mov    %ecx,0x18(%rsp)
lea    0xefd(%rip),%rcx
mov    (%rcx,%rax,4),%ecx
mov    %ecx,0x1c(%rsp)
lea    0xf03(%rip),%rcx
mov    (%rcx,%rax,4),%ecx
mov    %ecx,0x20(%rsp)
lea    0xf09(%rip),%rcx
mov    (%rcx,%rax,4),%ecx
mov    %ecx,0x24(%rsp)
lea    0xf0f(%rip),%rcx
mov    (%rcx,%rax,4),%ecx
mov    %ecx,0x28(%rsp)
lea    0xf15(%rip),%rcx
mov    (%rcx,%rax,4),%ecx
mov    %ecx,0x2c(%rsp)
lea    0xf1b(%rip),%rcx
mov    (%rcx,%rax,4),%ecx
mov    %ecx,0x30(%rsp)
lea    0xf21(%rip),%rcx
mov    (%rcx,%rax,4),%eax
mov    %eax,0x34(%rsp)
mov    $0x40,%edi
xor    %esi,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x41,%edi
mov    %r14d,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x42,%edi
mov    %ebp,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x43,%edi
mov    %ebx,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x44,%edi
mov    %r13d,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x45,%edi
mov    %r12d,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x46,%edi
mov    %r15d,%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x47,%edi
mov    0x4(%rsp),%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x48,%edi
mov    0x8(%rsp),%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x49,%edi
mov    0xc(%rsp),%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x50,%edi
mov    0x10(%rsp),%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x51,%edi
mov    0x14(%rsp),%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x52,%edi
mov    0x18(%rsp),%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x53,%edi
mov    0x1c(%rsp),%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x54,%edi
mov    0x20(%rsp),%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x55,%edi
mov    0x24(%rsp),%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x56,%edi
mov    0x28(%rsp),%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x57,%edi
mov    0x2c(%rsp),%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x58,%edi
mov    0x30(%rsp),%esi
call   1030 <VIM_SIF_I2cWriteByte@plt>
mov    $0x59,%edi
mov    0x34(%rsp),%esi
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <VIM_SIF_I2cWriteByte@plt>
ret

LLVM IR (-O0):
define void @SensorSetContrast_HV7131GP(i8 zeroext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = zext i8 %3 to i32
switch i32 %4, label %110 [
i32 1, label %5
i32 2, label %26
i32 3, label %47
i32 4, label %68
i32 5, label %89
]
5: ; preds = %1
%6 = call i32 @VIM_SIF_I2cWriteByte(i32 64, i32 0)
%7 = call i32 @VIM_SIF_I2cWriteByte(i32 65, i32 4)
%8 = call i32 @VIM_SIF_I2cWriteByte(i32 66, i32 28)
%9 = call i32 @VIM_SIF_I2cWriteByte(i32 67, i32 52)
%10 = call i32 @VIM_SIF_I2cWriteByte(i32 68, i32 84)
%11 = call i32 @VIM_SIF_I2cWriteByte(i32 69, i32 120)
%12 = call i32 @VIM_SIF_I2cWriteByte(i32 70, i32 144)
%13 = call i32 @VIM_SIF_I2cWriteByte(i32 71, i32 164)
%14 = call i32 @VIM_SIF_I2cWriteByte(i32 72, i32 224)
%15 = call i32 @VIM_SIF_I2cWriteByte(i32 73, i32 244)
%16 = call i32 @VIM_SIF_I2cWriteByte(i32 80, i32 64)
%17 = call i32 @VIM_SIF_I2cWriteByte(i32 81, i32 128)
%18 = call i32 @VIM_SIF_I2cWriteByte(i32 82, i32 96)
%19 = call i32 @VIM_SIF_I2cWriteByte(i32 83, i32 64)
%20 = call i32 @VIM_SIF_I2cWriteByte(i32 84, i32 36)
%21 = call i32 @VIM_SIF_I2cWriteByte(i32 85, i32 24)
%22 = call i32 @VIM_SIF_I2cWriteByte(i32 86, i32 20)
%23 = call i32 @VIM_SIF_I2cWriteByte(i32 87, i32 15)
%24 = call i32 @VIM_SIF_I2cWriteByte(i32 88, i32 5)
%25 = call i32 @VIM_SIF_I2cWriteByte(i32 89, i32 2)
br label %111
26: ; preds = %1
%27 = call i32 @VIM_SIF_I2cWriteByte(i32 64, i32 0)
%28 = call i32 @VIM_SIF_I2cWriteByte(i32 65, i32 4)
%29 = call i32 @VIM_SIF_I2cWriteByte(i32 66, i32 10)
%30 = call i32 @VIM_SIF_I2cWriteByte(i32 67, i32 18)
%31 = call i32 @VIM_SIF_I2cWriteByte(i32 68, i32 32)
%32 = call i32 @VIM_SIF_I2cWriteByte(i32 69, i32 57)
%33 = call i32 @VIM_SIF_I2cWriteByte(i32 70, i32 82)
%34 = call i32 @VIM_SIF_I2cWriteByte(i32 71, i32 102)
%35 = call i32 @VIM_SIF_I2cWriteByte(i32 72, i32 174)
%36 = call i32 @VIM_SIF_I2cWriteByte(i32 73, i32 221)
%37 = call i32 @VIM_SIF_I2cWriteByte(i32 80, i32 64)
%38 = call i32 @VIM_SIF_I2cWriteByte(i32 81, i32 32)
%39 = call i32 @VIM_SIF_I2cWriteByte(i32 82, i32 32)
%40 = call i32 @VIM_SIF_I2cWriteByte(i32 83, i32 28)
%41 = call i32 @VIM_SIF_I2cWriteByte(i32 84, i32 25)
%42 = call i32 @VIM_SIF_I2cWriteByte(i32 85, i32 25)
%43 = call i32 @VIM_SIF_I2cWriteByte(i32 86, i32 20)
%44 = call i32 @VIM_SIF_I2cWriteByte(i32 87, i32 18)
%45 = call i32 @VIM_SIF_I2cWriteByte(i32 88, i32 11)
%46 = call i32 @VIM_SIF_I2cWriteByte(i32 89, i32 8)
br label %111
47: ; preds = %1
%48 = call i32 @VIM_SIF_I2cWriteByte(i32 64, i32 0)
%49 = call i32 @VIM_SIF_I2cWriteByte(i32 65, i32 0)
%50 = call i32 @VIM_SIF_I2cWriteByte(i32 66, i32 2)
%51 = call i32 @VIM_SIF_I2cWriteByte(i32 67, i32 8)
%52 = call i32 @VIM_SIF_I2cWriteByte(i32 68, i32 20)
%53 = call i32 @VIM_SIF_I2cWriteByte(i32 69, i32 46)
%54 = call i32 @VIM_SIF_I2cWriteByte(i32 70, i32 68)
%55 = call i32 @VIM_SIF_I2cWriteByte(i32 71, i32 90)
%56 = call i32 @VIM_SIF_I2cWriteByte(i32 72, i32 166)
%57 = call i32 @VIM_SIF_I2cWriteByte(i32 73, i32 221)
%58 = call i32 @VIM_SIF_I2cWriteByte(i32 80, i32 0)
%59 = call i32 @VIM_SIF_I2cWriteByte(i32 81, i32 10)
%60 = call i32 @VIM_SIF_I2cWriteByte(i32 82, i32 24)
%61 = call i32 @VIM_SIF_I2cWriteByte(i32 83, i32 24)
%62 = call i32 @VIM_SIF_I2cWriteByte(i32 84, i32 26)
%63 = call i32 @VIM_SIF_I2cWriteByte(i32 85, i32 22)
%64 = call i32 @VIM_SIF_I2cWriteByte(i32 86, i32 22)
%65 = call i32 @VIM_SIF_I2cWriteByte(i32 87, i32 19)
%66 = call i32 @VIM_SIF_I2cWriteByte(i32 88, i32 13)
%67 = call i32 @VIM_SIF_I2cWriteByte(i32 89, i32 8)
br label %111
68: ; preds = %1
%69 = call i32 @VIM_SIF_I2cWriteByte(i32 64, i32 0)
%70 = call i32 @VIM_SIF_I2cWriteByte(i32 65, i32 0)
%71 = call i32 @VIM_SIF_I2cWriteByte(i32 66, i32 1)
%72 = call i32 @VIM_SIF_I2cWriteByte(i32 67, i32 6)
%73 = call i32 @VIM_SIF_I2cWriteByte(i32 68, i32 16)
%74 = call i32 @VIM_SIF_I2cWriteByte(i32 69, i32 38)
%75 = call i32 @VIM_SIF_I2cWriteByte(i32 70, i32 58)
%76 = call i32 @VIM_SIF_I2cWriteByte(i32 71, i32 78)
%77 = call i32 @VIM_SIF_I2cWriteByte(i32 72, i32 148)
%78 = call i32 @VIM_SIF_I2cWriteByte(i32 73, i32 221)
%79 = call i32 @VIM_SIF_I2cWriteByte(i32 80, i32 0)
%80 = call i32 @VIM_SIF_I2cWriteByte(i32 81, i32 5)
%81 = call i32 @VIM_SIF_I2cWriteByte(i32 82, i32 20)
%82 = call i32 @VIM_SIF_I2cWriteByte(i32 83, i32 20)
%83 = call i32 @VIM_SIF_I2cWriteByte(i32 84, i32 22)
%84 = call i32 @VIM_SIF_I2cWriteByte(i32 85, i32 20)
%85 = call i32 @VIM_SIF_I2cWriteByte(i32 86, i32 20)
%86 = call i32 @VIM_SIF_I2cWriteByte(i32 87, i32 17)
%87 = call i32 @VIM_SIF_I2cWriteByte(i32 88, i32 18)
%88 = call i32 @VIM_SIF_I2cWriteByte(i32 89, i32 8)
br label %111
89: ; preds = %1
%90 = call i32 @VIM_SIF_I2cWriteByte(i32 64, i32 0)
%91 = call i32 @VIM_SIF_I2cWriteByte(i32 65, i32 0)
%92 = call i32 @VIM_SIF_I2cWriteByte(i32 66, i32 0)
%93 = call i32 @VIM_SIF_I2cWriteByte(i32 67, i32 2)
%94 = call i32 @VIM_SIF_I2cWriteByte(i32 68, i32 10)
%95 = call i32 @VIM_SIF_I2cWriteByte(i32 69, i32 28)
%96 = call i32 @VIM_SIF_I2cWriteByte(i32 70, i32 46)
%97 = call i32 @VIM_SIF_I2cWriteByte(i32 71, i32 62)
%98 = call i32 @VIM_SIF_I2cWriteByte(i32 72, i32 134)
%99 = call i32 @VIM_SIF_I2cWriteByte(i32 73, i32 221)
%100 = call i32 @VIM_SIF_I2cWriteByte(i32 80, i32 0)
%101 = call i32 @VIM_SIF_I2cWriteByte(i32 81, i32 0)
%102 = call i32 @VIM_SIF_I2cWriteByte(i32 82, i32 8)
%103 = call i32 @VIM_SIF_I2cWriteByte(i32 83, i32 16)
%104 = call i32 @VIM_SIF_I2cWriteByte(i32 84, i32 18)
%105 = call i32 @VIM_SIF_I2cWriteByte(i32 85, i32 18)
%106 = call i32 @VIM_SIF_I2cWriteByte(i32 86, i32 16)
%107 = call i32 @VIM_SIF_I2cWriteByte(i32 87, i32 18)
%108 = call i32 @VIM_SIF_I2cWriteByte(i32 88, i32 21)
%109 = call i32 @VIM_SIF_I2cWriteByte(i32 89, i32 8)
br label %111
110: ; preds = %1
br label %111
111: ; preds = %110, %89, %68, %47, %26, %5
ret void
}

LLVM IR (-O2):
@switch.table.SensorSetContrast_HV7131GP = [5 x i32] [i32 4, i32 4, i32 0, i32 0, i32 0]
@switch.table.SensorSetContrast_HV7131GP.1 = [5 x i32] [i32 28, i32 10, i32 2, i32 1, i32 0]
@switch.table.SensorSetContrast_HV7131GP.2 = [5 x i32] [i32 52, i32 18, i32 8, i32 6, i32 2]
@switch.table.SensorSetContrast_HV7131GP.3 = [5 x i32] [i32 84, i32 32, i32 20, i32 16, i32 10]
@switch.table.SensorSetContrast_HV7131GP.4 = [5 x i32] [i32 120, i32 57, i32 46, i32 38, i32 28]
@switch.table.SensorSetContrast_HV7131GP.5 = [5 x i32] [i32 144, i32 82, i32 68, i32 58, i32 46]
@switch.table.SensorSetContrast_HV7131GP.6 = [5 x i32] [i32 164, i32 102, i32 90, i32 78, i32 62]
@switch.table.SensorSetContrast_HV7131GP.7 = [5 x i32] [i32 224, i32 174, i32 166, i32 148, i32 134]
@switch.table.SensorSetContrast_HV7131GP.8 = [5 x i32] [i32 244, i32 221, i32 221, i32 221, i32 221]
@switch.table.SensorSetContrast_HV7131GP.9 = [5 x i32] [i32 64, i32 64, i32 0, i32 0, i32 0]
@switch.table.SensorSetContrast_HV7131GP.10 = [5 x i32] [i32 128, i32 32, i32 10, i32 5, i32 0]
@switch.table.SensorSetContrast_HV7131GP.11 = [5 x i32] [i32 96, i32 32, i32 24, i32 20, i32 8]
@switch.table.SensorSetContrast_HV7131GP.12 = [5 x i32] [i32 64, i32 28, i32 24, i32 20, i32 16]
@switch.table.SensorSetContrast_HV7131GP.13 = [5 x i32] [i32 36, i32 25, i32 26, i32 22, i32 18]
@switch.table.SensorSetContrast_HV7131GP.14 = [5 x i32] [i32 24, i32 25, i32 22, i32 20, i32 18]
@switch.table.SensorSetContrast_HV7131GP.15 = [5 x i32] [i32 20, i32 20, i32 22, i32 20, i32 16]
@switch.table.SensorSetContrast_HV7131GP.16 = [5 x i32] [i32 15, i32 18, i32 19, i32 17, i32 18]
@switch.table.SensorSetContrast_HV7131GP.17 = [5 x i32] [i32 5, i32 11, i32 13, i32 18, i32 21]
@switch.table.SensorSetContrast_HV7131GP.18 = [5 x i32] [i32 2, i32 8, i32 8, i32 8, i32 8]
define void @SensorSetContrast_HV7131GP(i8 zeroext %0) {
%2 = add i8 %0, -1
%3 = icmp ult i8 %2, 5
br i1 %3, label %4, label %82
4: ; preds = %1
%5 = sext i8 %2 to i64
%6 = getelementptr inbounds [5 x i32], [5 x i32]* @switch.table.SensorSetContrast_HV7131GP, i64 0, i64 %5
%7 = load i32, i32* %6
%8 = sext i8 %2 to i64
%9 = getelementptr inbounds [5 x i32], [5 x i32]* @switch.table.SensorSetContrast_HV7131GP.1, i64 0, i64 %8
%10 = load i32, i32* %9
%11 = sext i8 %2 to i64
%12 = getelementptr inbounds [5 x i32], [5 x i32]* @switch.table.SensorSetContrast_HV7131GP.2, i64 0, i64 %11
%13 = load i32, i32* %12
%14 = sext i8 %2 to i64
%15 = getelementptr inbounds [5 x i32], [5 x i32]* @switch.table.SensorSetContrast_HV7131GP.3, i64 0, i64 %14
%16 = load i32, i32* %15
%17 = sext i8 %2 to i64
%18 = getelementptr inbounds [5 x i32], [5 x i32]* @switch.table.SensorSetContrast_HV7131GP.4, i64 0, i64 %17
%19 = load i32, i32* %18
%20 = sext i8 %2 to i64
%21 = getelementptr inbounds [5 x i32], [5 x i32]* @switch.table.SensorSetContrast_HV7131GP.5, i64 0, i64 %20
%22 = load i32, i32* %21
%23 = sext i8 %2 to i64
%24 = getelementptr inbounds [5 x i32], [5 x i32]* @switch.table.SensorSetContrast_HV7131GP.6, i64 0, i64 %23
%25 = load i32, i32* %24
%26 = sext i8 %2 to i64
%27 = getelementptr inbounds [5 x i32], [5 x i32]* @switch.table.SensorSetContrast_HV7131GP.7, i64 0, i64 %26
%28 = load i32, i32* %27
%29 = sext i8 %2 to i64
%30 = getelementptr inbounds [5 x i32], [5 x i32]* @switch.table.SensorSetContrast_HV7131GP.8, i64 0, i64 %29
%31 = load i32, i32* %30
%32 = sext i8 %2 to i64
%33 = getelementptr inbounds [5 x i32], [5 x i32]* @switch.table.SensorSetContrast_HV7131GP.9, i64 0, i64 %32
%34 = load i32, i32* %33
%35 = sext i8 %2 to i64
%36 = getelementptr inbounds [5 x i32], [5 x i32]* @switch.table.SensorSetContrast_HV7131GP.10, i64 0, i64 %35
%37 = load i32, i32* %36
%38 = sext i8 %2 to i64
%39 = getelementptr inbounds [5 x i32], [5 x i32]* @switch.table.SensorSetContrast_HV7131GP.11, i64 0, i64 %38
%40 = load i32, i32* %39
%41 = sext i8 %2 to i64
%42 = getelementptr inbounds [5 x i32], [5 x i32]* @switch.table.SensorSetContrast_HV7131GP.12, i64 0, i64 %41
%43 = load i32, i32* %42
%44 = sext i8 %2 to i64
%45 = getelementptr inbounds [5 x i32], [5 x i32]* @switch.table.SensorSetContrast_HV7131GP.13, i64 0, i64 %44
%46 = load i32, i32* %45
%47 = sext i8 %2 to i64
%48 = getelementptr inbounds [5 x i32], [5 x i32]* @switch.table.SensorSetContrast_HV7131GP.14, i64 0, i64 %47
%49 = load i32, i32* %48
%50 = sext i8 %2 to i64
%51 = getelementptr inbounds [5 x i32], [5 x i32]* @switch.table.SensorSetContrast_HV7131GP.15, i64 0, i64 %50
%52 = load i32, i32* %51
%53 = sext i8 %2 to i64
%54 = getelementptr inbounds [5 x i32], [5 x i32]* @switch.table.SensorSetContrast_HV7131GP.16, i64 0, i64 %53
%55 = load i32, i32* %54
%56 = sext i8 %2 to i64
%57 = getelementptr inbounds [5 x i32], [5 x i32]* @switch.table.SensorSetContrast_HV7131GP.17, i64 0, i64 %56
%58 = load i32, i32* %57
%59 = sext i8 %2 to i64
%60 = getelementptr inbounds [5 x i32], [5 x i32]* @switch.table.SensorSetContrast_HV7131GP.18, i64 0, i64 %59
%61 = load i32, i32* %60
%62 = tail call i32 @VIM_SIF_I2cWriteByte(i32 64, i32 0)
%63 = tail call i32 @VIM_SIF_I2cWriteByte(i32 65, i32 %7)
%64 = tail call i32 @VIM_SIF_I2cWriteByte(i32 66, i32 %10)
%65 = tail call i32 @VIM_SIF_I2cWriteByte(i32 67, i32 %13)
%66 = tail call i32 @VIM_SIF_I2cWriteByte(i32 68, i32 %16)
%67 = tail call i32 @VIM_SIF_I2cWriteByte(i32 69, i32 %19)
%68 = tail call i32 @VIM_SIF_I2cWriteByte(i32 70, i32 %22)
%69 = tail call i32 @VIM_SIF_I2cWriteByte(i32 71, i32 %25)
%70 = tail call i32 @VIM_SIF_I2cWriteByte(i32 72, i32 %28)
%71 = tail call i32 @VIM_SIF_I2cWriteByte(i32 73, i32 %31)
%72 = tail call i32 @VIM_SIF_I2cWriteByte(i32 80, i32 %34)
%73 = tail call i32 @VIM_SIF_I2cWriteByte(i32 81, i32 %37)
%74 = tail call i32 @VIM_SIF_I2cWriteByte(i32 82, i32 %40)
%75 = tail call i32 @VIM_SIF_I2cWriteByte(i32 83, i32 %43)
%76 = tail call i32 @VIM_SIF_I2cWriteByte(i32 84, i32 %46)
%77 = tail call i32 @VIM_SIF_I2cWriteByte(i32 85, i32 %49)
%78 = tail call i32 @VIM_SIF_I2cWriteByte(i32 86, i32 %52)
%79 = tail call i32 @VIM_SIF_I2cWriteByte(i32 87, i32 %55)
%80 = tail call i32 @VIM_SIF_I2cWriteByte(i32 88, i32 %58)
%81 = tail call i32 @VIM_SIF_I2cWriteByte(i32 89, i32 %61)
br label %82
82: ; preds = %1, %4
ret void
}