#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_I2cReadByte(int, unsigned char *);
int /*<<< orphan*/ VIM_SIF_I2cWriteByte(int, int);
void SensorSetMode_HV7131GP(unsigned char val) {
  unsigned char uTemp1, uTemp2, uTemp3;
  unsigned long uTemp;
  switch (val) {
  case 1:
    VIM_SIF_I2cWriteByte(0x60, 0xb8);
    VIM_SIF_I2cWriteByte(0x6a, 0x01);
    VIM_SIF_I2cWriteByte(0x6b, 0xd4);
    VIM_SIF_I2cWriteByte(0x6c, 0xc0);
    VIM_SIF_I2cWriteByte(0x6d, 0x09);
    VIM_SIF_I2cWriteByte(0x6e, 0x27);
    VIM_SIF_I2cWriteByte(0x6f, 0xc0);
    VIM_SIF_I2cWriteByte(0x60, 0xb9);
    break;
  case 2:
    VIM_SIF_I2cWriteByte(0x60, 0xb8);
    VIM_SIF_I2cWriteByte(0x6a, 0x01);
    VIM_SIF_I2cWriteByte(0x6b, 0x86);
    VIM_SIF_I2cWriteByte(0x6c, 0xa0);
    VIM_SIF_I2cWriteByte(0x6d, 0x07);
    VIM_SIF_I2cWriteByte(0x6e, 0xa1);
    VIM_SIF_I2cWriteByte(0x6f, 0x20);
    VIM_SIF_I2cWriteByte(0x60, 0xb9);
    break;
  case 4:
    VIM_SIF_I2cWriteByte(0x60, 0xb8);
    VIM_SIF_I2cReadByte(0x6a, &uTemp1);
    VIM_SIF_I2cReadByte(0x6b, &uTemp2);
    VIM_SIF_I2cReadByte(0x6c, &uTemp3);
    uTemp = (unsigned long)((uTemp1 << 16) | (uTemp2 << 8) | (uTemp3));
    if (uTemp == 0x01d4c0) {
      VIM_SIF_I2cWriteByte(0x6d, 0x12);
      VIM_SIF_I2cWriteByte(0x6e, 0x4f);
      VIM_SIF_I2cWriteByte(0x6f, 0x80);
    } else {
      VIM_SIF_I2cWriteByte(0x6d, 0x0f);
      VIM_SIF_I2cWriteByte(0x6e, 0x42);
      VIM_SIF_I2cWriteByte(0x6f, 0x40);
    }
    VIM_SIF_I2cWriteByte(0x60, 0xb9);
    break;
  case 3:
    VIM_SIF_I2cWriteByte(0x60, 0xb8);
    VIM_SIF_I2cReadByte(0x6a, &uTemp1);
    VIM_SIF_I2cReadByte(0x6b, &uTemp2);
    VIM_SIF_I2cReadByte(0x6c, &uTemp3);
    uTemp = (unsigned long)((uTemp1 << 16) | (uTemp2 << 8) | (uTemp3));
    if (uTemp == 0x01d4c0) {
      VIM_SIF_I2cWriteByte(0x6d, 0x09);
      VIM_SIF_I2cWriteByte(0x6e, 0x27);
      VIM_SIF_I2cWriteByte(0x6f, 0xc0);
    } else {
      VIM_SIF_I2cWriteByte(0x6d, 0x07);
      VIM_SIF_I2cWriteByte(0x6e, 0xa1);
      VIM_SIF_I2cWriteByte(0x6f, 0x20);
    }
    VIM_SIF_I2cWriteByte(0x60, 0xb9);
    break;
  default:
    break;
  }
}


x86 assembly (clang, -O0):
<SensorSetMode_HV7131GP>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0x3,%eax
ja     13fe <SensorSetMode_HV7131GP+0x2de>
mov    -0x18(%rbp),%rax
lea    0xeb1(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x60,%edi
mov    $0xb8,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6a,%edi
mov    $0x1,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6b,%edi
mov    $0xd4,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6c,%edi
mov    $0xc0,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6d,%edi
mov    $0x9,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6e,%edi
mov    $0x27,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6f,%edi
mov    $0xc0,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x60,%edi
mov    $0xb9,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
jmp    1403 <SensorSetMode_HV7131GP+0x2e3>
mov    $0x60,%edi
mov    $0xb8,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6a,%edi
mov    $0x1,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6b,%edi
mov    $0x86,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6c,%edi
mov    $0xa0,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6d,%edi
mov    $0x7,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6e,%edi
mov    $0xa1,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6f,%edi
mov    $0x20,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x60,%edi
mov    $0xb9,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
jmp    1403 <SensorSetMode_HV7131GP+0x2e3>
mov    $0x60,%edi
mov    $0xb8,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6a,%edi
lea    -0x2(%rbp),%rsi
call   1030 <VIM_SIF_I2cReadByte@plt>
mov    $0x6b,%edi
lea    -0x3(%rbp),%rsi
call   1030 <VIM_SIF_I2cReadByte@plt>
mov    $0x6c,%edi
lea    -0x4(%rbp),%rsi
call   1030 <VIM_SIF_I2cReadByte@plt>
movzbl -0x2(%rbp),%eax
shl    $0x10,%eax
movzbl -0x3(%rbp),%ecx
shl    $0x8,%ecx
or     %ecx,%eax
movzbl -0x4(%rbp),%ecx
or     %ecx,%eax
cltq
mov    %rax,-0x10(%rbp)
cmpq   $0x1d4c0,-0x10(%rbp)
jne    12e7 <SensorSetMode_HV7131GP+0x1c7>
mov    $0x6d,%edi
mov    $0x12,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6e,%edi
mov    $0x4f,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6f,%edi
mov    $0x80,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
jmp    1314 <SensorSetMode_HV7131GP+0x1f4>
mov    $0x6d,%edi
mov    $0xf,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6e,%edi
mov    $0x42,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6f,%edi
mov    $0x40,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x60,%edi
mov    $0xb9,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
jmp    1403 <SensorSetMode_HV7131GP+0x2e3>
mov    $0x60,%edi
mov    $0xb8,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6a,%edi
lea    -0x2(%rbp),%rsi
call   1030 <VIM_SIF_I2cReadByte@plt>
mov    $0x6b,%edi
lea    -0x3(%rbp),%rsi
call   1030 <VIM_SIF_I2cReadByte@plt>
mov    $0x6c,%edi
lea    -0x4(%rbp),%rsi
call   1030 <VIM_SIF_I2cReadByte@plt>
movzbl -0x2(%rbp),%eax
shl    $0x10,%eax
movzbl -0x3(%rbp),%ecx
shl    $0x8,%ecx
or     %ecx,%eax
movzbl -0x4(%rbp),%ecx
or     %ecx,%eax
cltq
mov    %rax,-0x10(%rbp)
cmpq   $0x1d4c0,-0x10(%rbp)
jne    13bd <SensorSetMode_HV7131GP+0x29d>
mov    $0x6d,%edi
mov    $0x9,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6e,%edi
mov    $0x27,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6f,%edi
mov    $0xc0,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
jmp    13ea <SensorSetMode_HV7131GP+0x2ca>
mov    $0x6d,%edi
mov    $0x7,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6e,%edi
mov    $0xa1,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6f,%edi
mov    $0x20,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x60,%edi
mov    $0xb9,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
jmp    1403 <SensorSetMode_HV7131GP+0x2e3>
jmp    1403 <SensorSetMode_HV7131GP+0x2e3>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SensorSetMode_HV7131GP>:
push   %rbp
push   %rbx
push   %rax
add    $0xff,%dil
cmp    $0x3,%dil
ja     1383 <SensorSetMode_HV7131GP+0x263>
movzbl %dil,%eax
lea    0xec4(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x60,%edi
mov    $0xb8,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6a,%edi
mov    $0x1,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6b,%edi
mov    $0xd4,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6c,%edi
mov    $0xc0,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6d,%edi
mov    $0x9,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6e,%edi
mov    $0x27,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6f,%edi
mov    $0xc0,%esi
jmp    120f <SensorSetMode_HV7131GP+0xef>
mov    $0x60,%edi
mov    $0xb8,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6a,%edi
mov    $0x1,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6b,%edi
mov    $0x86,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6c,%edi
mov    $0xa0,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6d,%edi
mov    $0x7,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6e,%edi
mov    $0xa1,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6f,%edi
mov    $0x20,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x60,%edi
mov    $0xb9,%esi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x60,%edi
mov    $0xb8,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
lea    0x7(%rsp),%rsi
mov    $0x6a,%edi
call   1030 <VIM_SIF_I2cReadByte@plt>
lea    0x6(%rsp),%rsi
mov    $0x6b,%edi
call   1030 <VIM_SIF_I2cReadByte@plt>
lea    0x5(%rsp),%rsi
mov    $0x6c,%edi
call   1030 <VIM_SIF_I2cReadByte@plt>
movzbl 0x7(%rsp),%eax
shl    $0x10,%rax
movzbl 0x6(%rsp),%ecx
shl    $0x8,%rcx
or     %rax,%rcx
movzbl 0x5(%rsp),%eax
or     %rcx,%rax
xor    %ecx,%ecx
cmp    $0x1d4c0,%rax
sete   %cl
mov    $0x27,%edx
mov    $0xa1,%ebx
cmove  %edx,%ebx
cmp    $0x1d4c0,%eax
lea    0x7(%rcx,%rcx,1),%esi
mov    $0xc0,%eax
mov    $0x20,%ebp
cmove  %eax,%ebp
mov    $0x6d,%edi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6e,%edi
mov    %ebx,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6f,%edi
mov    %ebp,%esi
jmp    136f <SensorSetMode_HV7131GP+0x24f>
mov    $0x60,%edi
mov    $0xb8,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
lea    0x7(%rsp),%rsi
mov    $0x6a,%edi
call   1030 <VIM_SIF_I2cReadByte@plt>
lea    0x6(%rsp),%rsi
mov    $0x6b,%edi
call   1030 <VIM_SIF_I2cReadByte@plt>
lea    0x5(%rsp),%rsi
mov    $0x6c,%edi
call   1030 <VIM_SIF_I2cReadByte@plt>
movzbl 0x7(%rsp),%eax
shl    $0x10,%rax
movzbl 0x6(%rsp),%ecx
shl    $0x8,%rcx
or     %rax,%rcx
movzbl 0x5(%rsp),%eax
or     %rcx,%rax
xor    %ebx,%ebx
cmp    $0x1d4c0,%rax
sete   %bl
cmp    $0x1d4c0,%eax
lea    0xf(%rbx,%rbx,2),%esi
mov    $0x4f,%eax
mov    $0x42,%ebp
cmove  %eax,%ebp
shl    $0x6,%ebx
add    $0x40,%ebx
mov    $0x6d,%edi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6e,%edi
mov    %ebp,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x6f,%edi
mov    %ebx,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
mov    $0x60,%edi
mov    $0xb9,%esi
call   1040 <VIM_SIF_I2cWriteByte@plt>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define void @SensorSetMode_HV7131GP(i8 zeroext %0) {
%2 = alloca i8
%3 = alloca i8
%4 = alloca i8
%5 = alloca i8
%6 = alloca i64
store i8 %0, i8* %2
%7 = load i8, i8* %2
%8 = zext i8 %7 to i32
switch i32 %8, label %83 [
i32 1, label %9
i32 2, label %18
i32 4, label %27
i32 3, label %55
]
9: ; preds = %1
%10 = call i32 @VIM_SIF_I2cWriteByte(i32 96, i32 184)
%11 = call i32 @VIM_SIF_I2cWriteByte(i32 106, i32 1)
%12 = call i32 @VIM_SIF_I2cWriteByte(i32 107, i32 212)
%13 = call i32 @VIM_SIF_I2cWriteByte(i32 108, i32 192)
%14 = call i32 @VIM_SIF_I2cWriteByte(i32 109, i32 9)
%15 = call i32 @VIM_SIF_I2cWriteByte(i32 110, i32 39)
%16 = call i32 @VIM_SIF_I2cWriteByte(i32 111, i32 192)
%17 = call i32 @VIM_SIF_I2cWriteByte(i32 96, i32 185)
br label %84
18: ; preds = %1
%19 = call i32 @VIM_SIF_I2cWriteByte(i32 96, i32 184)
%20 = call i32 @VIM_SIF_I2cWriteByte(i32 106, i32 1)
%21 = call i32 @VIM_SIF_I2cWriteByte(i32 107, i32 134)
%22 = call i32 @VIM_SIF_I2cWriteByte(i32 108, i32 160)
%23 = call i32 @VIM_SIF_I2cWriteByte(i32 109, i32 7)
%24 = call i32 @VIM_SIF_I2cWriteByte(i32 110, i32 161)
%25 = call i32 @VIM_SIF_I2cWriteByte(i32 111, i32 32)
%26 = call i32 @VIM_SIF_I2cWriteByte(i32 96, i32 185)
br label %84
27: ; preds = %1
%28 = call i32 @VIM_SIF_I2cWriteByte(i32 96, i32 184)
%29 = call i32 @VIM_SIF_I2cReadByte(i32 106, i8* %3)
%30 = call i32 @VIM_SIF_I2cReadByte(i32 107, i8* %4)
%31 = call i32 @VIM_SIF_I2cReadByte(i32 108, i8* %5)
%32 = load i8, i8* %3
%33 = zext i8 %32 to i32
%34 = shl i32 %33, 16
%35 = load i8, i8* %4
%36 = zext i8 %35 to i32
%37 = shl i32 %36, 8
%38 = or i32 %34, %37
%39 = load i8, i8* %5
%40 = zext i8 %39 to i32
%41 = or i32 %38, %40
%42 = sext i32 %41 to i64
store i64 %42, i64* %6
%43 = load i64, i64* %6
%44 = icmp eq i64 %43, 120000
br i1 %44, label %45, label %49
45: ; preds = %27
%46 = call i32 @VIM_SIF_I2cWriteByte(i32 109, i32 18)
%47 = call i32 @VIM_SIF_I2cWriteByte(i32 110, i32 79)
%48 = call i32 @VIM_SIF_I2cWriteByte(i32 111, i32 128)
br label %53
49: ; preds = %27
%50 = call i32 @VIM_SIF_I2cWriteByte(i32 109, i32 15)
%51 = call i32 @VIM_SIF_I2cWriteByte(i32 110, i32 66)
%52 = call i32 @VIM_SIF_I2cWriteByte(i32 111, i32 64)
br label %53
53: ; preds = %49, %45
%54 = call i32 @VIM_SIF_I2cWriteByte(i32 96, i32 185)
br label %84
55: ; preds = %1
%56 = call i32 @VIM_SIF_I2cWriteByte(i32 96, i32 184)
%57 = call i32 @VIM_SIF_I2cReadByte(i32 106, i8* %3)
%58 = call i32 @VIM_SIF_I2cReadByte(i32 107, i8* %4)
%59 = call i32 @VIM_SIF_I2cReadByte(i32 108, i8* %5)
%60 = load i8, i8* %3
%61 = zext i8 %60 to i32
%62 = shl i32 %61, 16
%63 = load i8, i8* %4
%64 = zext i8 %63 to i32
%65 = shl i32 %64, 8
%66 = or i32 %62, %65
%67 = load i8, i8* %5
%68 = zext i8 %67 to i32
%69 = or i32 %66, %68
%70 = sext i32 %69 to i64
store i64 %70, i64* %6
%71 = load i64, i64* %6
%72 = icmp eq i64 %71, 120000
br i1 %72, label %73, label %77
73: ; preds = %55
%74 = call i32 @VIM_SIF_I2cWriteByte(i32 109, i32 9)
%75 = call i32 @VIM_SIF_I2cWriteByte(i32 110, i32 39)
%76 = call i32 @VIM_SIF_I2cWriteByte(i32 111, i32 192)
br label %81
77: ; preds = %55
%78 = call i32 @VIM_SIF_I2cWriteByte(i32 109, i32 7)
%79 = call i32 @VIM_SIF_I2cWriteByte(i32 110, i32 161)
%80 = call i32 @VIM_SIF_I2cWriteByte(i32 111, i32 32)
br label %81
81: ; preds = %77, %73
%82 = call i32 @VIM_SIF_I2cWriteByte(i32 96, i32 185)
br label %84
83: ; preds = %1
br label %84
84: ; preds = %83, %81, %53, %18, %9
ret void
}

LLVM IR (-O2):
define void @SensorSetMode_HV7131GP(i8 zeroext %0) {
%2 = alloca i8
%3 = alloca i8
%4 = alloca i8
switch i8 %0, label %69 [
i8 1, label %5
i8 2, label %14
i8 4, label %23
i8 3, label %46
]
5: ; preds = %1
%6 = tail call i32 @VIM_SIF_I2cWriteByte(i32 96, i32 184)
%7 = tail call i32 @VIM_SIF_I2cWriteByte(i32 106, i32 1)
%8 = tail call i32 @VIM_SIF_I2cWriteByte(i32 107, i32 212)
%9 = tail call i32 @VIM_SIF_I2cWriteByte(i32 108, i32 192)
%10 = tail call i32 @VIM_SIF_I2cWriteByte(i32 109, i32 9)
%11 = tail call i32 @VIM_SIF_I2cWriteByte(i32 110, i32 39)
%12 = tail call i32 @VIM_SIF_I2cWriteByte(i32 111, i32 192)
%13 = tail call i32 @VIM_SIF_I2cWriteByte(i32 96, i32 185)
br label %69
14: ; preds = %1
%15 = tail call i32 @VIM_SIF_I2cWriteByte(i32 96, i32 184)
%16 = tail call i32 @VIM_SIF_I2cWriteByte(i32 106, i32 1)
%17 = tail call i32 @VIM_SIF_I2cWriteByte(i32 107, i32 134)
%18 = tail call i32 @VIM_SIF_I2cWriteByte(i32 108, i32 160)
%19 = tail call i32 @VIM_SIF_I2cWriteByte(i32 109, i32 7)
%20 = tail call i32 @VIM_SIF_I2cWriteByte(i32 110, i32 161)
%21 = tail call i32 @VIM_SIF_I2cWriteByte(i32 111, i32 32)
%22 = tail call i32 @VIM_SIF_I2cWriteByte(i32 96, i32 185)
br label %69
23: ; preds = %1
%24 = tail call i32 @VIM_SIF_I2cWriteByte(i32 96, i32 184)
%25 = call i32 @VIM_SIF_I2cReadByte(i32 106, i8* %2)
%26 = call i32 @VIM_SIF_I2cReadByte(i32 107, i8* %3)
%27 = call i32 @VIM_SIF_I2cReadByte(i32 108, i8* %4)
%28 = load i8, i8* %2
%29 = zext i8 %28 to i64
%30 = shl nuw nsw i64 %29, 16
%31 = load i8, i8* %3
%32 = zext i8 %31 to i64
%33 = shl nuw nsw i64 %32, 8
%34 = or i64 %33, %30
%35 = load i8, i8* %4
%36 = zext i8 %35 to i64
%37 = or i64 %34, %36
%38 = icmp eq i64 %37, 120000
%39 = select i1 %38, i32 18, i32 15
%40 = select i1 %38, i32 79, i32 66
%41 = select i1 %38, i32 128, i32 64
%42 = call i32 @VIM_SIF_I2cWriteByte(i32 109, i32 %39)
%43 = call i32 @VIM_SIF_I2cWriteByte(i32 110, i32 %40)
%44 = call i32 @VIM_SIF_I2cWriteByte(i32 111, i32 %41)
%45 = call i32 @VIM_SIF_I2cWriteByte(i32 96, i32 185)
br label %69
46: ; preds = %1
%47 = tail call i32 @VIM_SIF_I2cWriteByte(i32 96, i32 184)
%48 = call i32 @VIM_SIF_I2cReadByte(i32 106, i8* %2)
%49 = call i32 @VIM_SIF_I2cReadByte(i32 107, i8* %3)
%50 = call i32 @VIM_SIF_I2cReadByte(i32 108, i8* %4)
%51 = load i8, i8* %2
%52 = zext i8 %51 to i64
%53 = shl nuw nsw i64 %52, 16
%54 = load i8, i8* %3
%55 = zext i8 %54 to i64
%56 = shl nuw nsw i64 %55, 8
%57 = or i64 %56, %53
%58 = load i8, i8* %4
%59 = zext i8 %58 to i64
%60 = or i64 %57, %59
%61 = icmp eq i64 %60, 120000
%62 = select i1 %61, i32 9, i32 7
%63 = select i1 %61, i32 39, i32 161
%64 = select i1 %61, i32 192, i32 32
%65 = call i32 @VIM_SIF_I2cWriteByte(i32 109, i32 %62)
%66 = call i32 @VIM_SIF_I2cWriteByte(i32 110, i32 %63)
%67 = call i32 @VIM_SIF_I2cWriteByte(i32 111, i32 %64)
%68 = call i32 @VIM_SIF_I2cWriteByte(i32 96, i32 185)
br label %69
69: ; preds = %1, %46, %23, %14, %5
ret void
}