#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*/ RamWrite32A_lc898122_sharp(int, int);
void MesFil_lc898122_sharp(unsigned char UcMesMod) {
  if (!UcMesMod) {
    RamWrite32A_lc898122_sharp(0x10F0, 0x3CA175C0);
    RamWrite32A_lc898122_sharp(0x10F1, 0x3CA175C0);
    RamWrite32A_lc898122_sharp(0x10F2, 0x3F75E8C0);
    RamWrite32A_lc898122_sharp(0x10F3, 0x00000000);
    RamWrite32A_lc898122_sharp(0x10F4, 0x00000000);
    RamWrite32A_lc898122_sharp(0x10F5, 0x3F800000);
    RamWrite32A_lc898122_sharp(0x10F6, 0x00000000);
    RamWrite32A_lc898122_sharp(0x10F7, 0x00000000);
    RamWrite32A_lc898122_sharp(0x10F8, 0x00000000);
    RamWrite32A_lc898122_sharp(0x10F9, 0x00000000);
    RamWrite32A_lc898122_sharp(0x11F0, 0x3CA175C0);
    RamWrite32A_lc898122_sharp(0x11F1, 0x3CA175C0);
    RamWrite32A_lc898122_sharp(0x11F2, 0x3F75E8C0);
    RamWrite32A_lc898122_sharp(0x11F3, 0x00000000);
    RamWrite32A_lc898122_sharp(0x11F4, 0x00000000);
    RamWrite32A_lc898122_sharp(0x11F5, 0x3F800000);
    RamWrite32A_lc898122_sharp(0x11F6, 0x00000000);
    RamWrite32A_lc898122_sharp(0x11F7, 0x00000000);
    RamWrite32A_lc898122_sharp(0x11F8, 0x00000000);
    RamWrite32A_lc898122_sharp(0x11F9, 0x00000000);
  } else if (UcMesMod == 1) {
    RamWrite32A_lc898122_sharp(0x10F0, 0x3DF21080);
    RamWrite32A_lc898122_sharp(0x10F1, 0x3DF21080);
    RamWrite32A_lc898122_sharp(0x10F2, 0x3F437BC0);
    RamWrite32A_lc898122_sharp(0x10F3, 0x00000000);
    RamWrite32A_lc898122_sharp(0x10F4, 0x00000000);
    RamWrite32A_lc898122_sharp(0x10F5, 0x3F7EF980);
    RamWrite32A_lc898122_sharp(0x10F6, 0xBF7EF980);
    RamWrite32A_lc898122_sharp(0x10F7, 0x3F7DF300);
    RamWrite32A_lc898122_sharp(0x10F8, 0x00000000);
    RamWrite32A_lc898122_sharp(0x10F9, 0x00000000);
    RamWrite32A_lc898122_sharp(0x11F0, 0x3DF21080);
    RamWrite32A_lc898122_sharp(0x11F1, 0x3DF21080);
    RamWrite32A_lc898122_sharp(0x11F2, 0x3F437BC0);
    RamWrite32A_lc898122_sharp(0x11F3, 0x00000000);
    RamWrite32A_lc898122_sharp(0x11F4, 0x00000000);
    RamWrite32A_lc898122_sharp(0x11F5, 0x3F7EF980);
    RamWrite32A_lc898122_sharp(0x11F6, 0xBF7EF980);
    RamWrite32A_lc898122_sharp(0x11F7, 0x3F7DF300);
    RamWrite32A_lc898122_sharp(0x11F8, 0x00000000);
    RamWrite32A_lc898122_sharp(0x11F9, 0x00000000);
  } else if (UcMesMod == 2) {
    RamWrite32A_lc898122_sharp(0x10F0, 0x3F800000);
    RamWrite32A_lc898122_sharp(0x10F1, 0x00000000);
    RamWrite32A_lc898122_sharp(0x10F2, 0x00000000);
    RamWrite32A_lc898122_sharp(0x10F3, 0x00000000);
    RamWrite32A_lc898122_sharp(0x10F4, 0x00000000);
    RamWrite32A_lc898122_sharp(0x10F5, 0x3F800000);
    RamWrite32A_lc898122_sharp(0x10F6, 0x00000000);
    RamWrite32A_lc898122_sharp(0x10F7, 0x00000000);
    RamWrite32A_lc898122_sharp(0x10F8, 0x00000000);
    RamWrite32A_lc898122_sharp(0x10F9, 0x00000000);
    RamWrite32A_lc898122_sharp(0x11F0, 0x3F800000);
    RamWrite32A_lc898122_sharp(0x11F1, 0x00000000);
    RamWrite32A_lc898122_sharp(0x11F2, 0x00000000);
    RamWrite32A_lc898122_sharp(0x11F3, 0x00000000);
    RamWrite32A_lc898122_sharp(0x11F4, 0x00000000);
    RamWrite32A_lc898122_sharp(0x11F5, 0x3F800000);
    RamWrite32A_lc898122_sharp(0x11F6, 0x00000000);
    RamWrite32A_lc898122_sharp(0x11F7, 0x00000000);
    RamWrite32A_lc898122_sharp(0x11F8, 0x00000000);
    RamWrite32A_lc898122_sharp(0x11F9, 0x00000000);
  } else if (UcMesMod == 3) {
    RamWrite32A_lc898122_sharp(0x10F0, 0x3CA175C0);
    RamWrite32A_lc898122_sharp(0x10F1, 0x3CA175C0);
    RamWrite32A_lc898122_sharp(0x10F2, 0x3F75E8C0);
    RamWrite32A_lc898122_sharp(0x10F3, 0x00000000);
    RamWrite32A_lc898122_sharp(0x10F4, 0x00000000);
    RamWrite32A_lc898122_sharp(0x10F5, 0x3CA175C0);
    RamWrite32A_lc898122_sharp(0x10F6, 0x3CA175C0);
    RamWrite32A_lc898122_sharp(0x10F7, 0x3F75E8C0);
    RamWrite32A_lc898122_sharp(0x10F8, 0x00000000);
    RamWrite32A_lc898122_sharp(0x10F9, 0x00000000);
    RamWrite32A_lc898122_sharp(0x11F0, 0x3CA175C0);
    RamWrite32A_lc898122_sharp(0x11F1, 0x3CA175C0);
    RamWrite32A_lc898122_sharp(0x11F2, 0x3F75E8C0);
    RamWrite32A_lc898122_sharp(0x11F3, 0x00000000);
    RamWrite32A_lc898122_sharp(0x11F4, 0x00000000);
    RamWrite32A_lc898122_sharp(0x11F5, 0x3CA175C0);
    RamWrite32A_lc898122_sharp(0x11F6, 0x3CA175C0);
    RamWrite32A_lc898122_sharp(0x11F7, 0x3F75E8C0);
    RamWrite32A_lc898122_sharp(0x11F8, 0x00000000);
    RamWrite32A_lc898122_sharp(0x11F9, 0x00000000);
  }
}


x86 assembly (clang, -O0):
<MesFil_lc898122_sharp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
cmpb   $0x0,-0x1(%rbp)
jne    1235 <MesFil_lc898122_sharp+0x125>
mov    $0x10f0,%edi
mov    $0x3ca175c0,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f1,%edi
mov    $0x3ca175c0,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f2,%edi
mov    $0x3f75e8c0,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f3,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f4,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f5,%edi
mov    $0x3f800000,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f6,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f7,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f8,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f9,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f0,%edi
mov    $0x3ca175c0,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f1,%edi
mov    $0x3ca175c0,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f2,%edi
mov    $0x3f75e8c0,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f3,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f4,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f5,%edi
mov    $0x3f800000,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f6,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f7,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f8,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f9,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
jmp    1599 <MesFil_lc898122_sharp+0x489>
movzbl -0x1(%rbp),%eax
cmp    $0x1,%eax
jne    135b <MesFil_lc898122_sharp+0x24b>
mov    $0x10f0,%edi
mov    $0x3df21080,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f1,%edi
mov    $0x3df21080,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f2,%edi
mov    $0x3f437bc0,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f3,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f4,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f5,%edi
mov    $0x3f7ef980,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f6,%edi
mov    $0xbf7ef980,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f7,%edi
mov    $0x3f7df300,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f8,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f9,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f0,%edi
mov    $0x3df21080,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f1,%edi
mov    $0x3df21080,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f2,%edi
mov    $0x3f437bc0,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f3,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f4,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f5,%edi
mov    $0x3f7ef980,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f6,%edi
mov    $0xbf7ef980,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f7,%edi
mov    $0x3f7df300,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f8,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f9,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
jmp    1594 <MesFil_lc898122_sharp+0x484>
movzbl -0x1(%rbp),%eax
cmp    $0x2,%eax
jne    1469 <MesFil_lc898122_sharp+0x359>
mov    $0x10f0,%edi
mov    $0x3f800000,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f1,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f2,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f3,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f4,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f5,%edi
mov    $0x3f800000,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f6,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f7,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f8,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f9,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f0,%edi
mov    $0x3f800000,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f1,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f2,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f3,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f4,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f5,%edi
mov    $0x3f800000,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f6,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f7,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f8,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f9,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
jmp    158f <MesFil_lc898122_sharp+0x47f>
movzbl -0x1(%rbp),%eax
cmp    $0x3,%eax
jne    158a <MesFil_lc898122_sharp+0x47a>
mov    $0x10f0,%edi
mov    $0x3ca175c0,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f1,%edi
mov    $0x3ca175c0,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f2,%edi
mov    $0x3f75e8c0,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f3,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f4,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f5,%edi
mov    $0x3ca175c0,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f6,%edi
mov    $0x3ca175c0,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f7,%edi
mov    $0x3f75e8c0,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f8,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f9,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f0,%edi
mov    $0x3ca175c0,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f1,%edi
mov    $0x3ca175c0,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f2,%edi
mov    $0x3f75e8c0,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f3,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f4,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f5,%edi
mov    $0x3ca175c0,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f6,%edi
mov    $0x3ca175c0,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f7,%edi
mov    $0x3f75e8c0,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f8,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f9,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
jmp    158f <MesFil_lc898122_sharp+0x47f>
jmp    1594 <MesFil_lc898122_sharp+0x484>
jmp    1599 <MesFil_lc898122_sharp+0x489>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<MesFil_lc898122_sharp>:
cmp    $0x3,%dil
ja     126f <MesFil_lc898122_sharp+0x15f>
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
movsbq %dil,%rax
lea    0xed0(%rip),%rcx
mov    (%rcx,%rax,4),%ebp
lea    0xed6(%rip),%rcx
mov    (%rcx,%rax,4),%ebx
lea    0xedc(%rip),%rcx
mov    (%rcx,%rax,4),%r13d
lea    0xee1(%rip),%rcx
mov    (%rcx,%rax,4),%r12d
lea    0xee6(%rip),%rcx
mov    (%rcx,%rax,4),%r15d
lea    0xeeb(%rip),%rcx
mov    (%rcx,%rax,4),%r14d
mov    $0x10f0,%edi
mov    %ebp,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f1,%edi
mov    %ebx,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f2,%edi
mov    %r13d,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f3,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f4,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f5,%edi
mov    %r12d,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f6,%edi
mov    %r15d,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f7,%edi
mov    %r14d,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f8,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10f9,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f0,%edi
mov    %ebp,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f1,%edi
mov    %ebx,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f2,%edi
mov    %r13d,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f3,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f4,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f5,%edi
mov    %r12d,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f6,%edi
mov    %r15d,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f7,%edi
mov    %r14d,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f8,%edi
xor    %esi,%esi
call   1030 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11f9,%edi
xor    %esi,%esi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <RamWrite32A_lc898122_sharp@plt>
ret

LLVM IR (-O0):
define void @MesFil_lc898122_sharp(i8 zeroext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = icmp ne i8 %3, 0
br i1 %4, label %26, label %5
5: ; preds = %1
%6 = call i32 @RamWrite32A_lc898122_sharp(i32 4336, i32 1017214400)
%7 = call i32 @RamWrite32A_lc898122_sharp(i32 4337, i32 1017214400)
%8 = call i32 @RamWrite32A_lc898122_sharp(i32 4338, i32 1064691904)
%9 = call i32 @RamWrite32A_lc898122_sharp(i32 4339, i32 0)
%10 = call i32 @RamWrite32A_lc898122_sharp(i32 4340, i32 0)
%11 = call i32 @RamWrite32A_lc898122_sharp(i32 4341, i32 1065353216)
%12 = call i32 @RamWrite32A_lc898122_sharp(i32 4342, i32 0)
%13 = call i32 @RamWrite32A_lc898122_sharp(i32 4343, i32 0)
%14 = call i32 @RamWrite32A_lc898122_sharp(i32 4344, i32 0)
%15 = call i32 @RamWrite32A_lc898122_sharp(i32 4345, i32 0)
%16 = call i32 @RamWrite32A_lc898122_sharp(i32 4592, i32 1017214400)
%17 = call i32 @RamWrite32A_lc898122_sharp(i32 4593, i32 1017214400)
%18 = call i32 @RamWrite32A_lc898122_sharp(i32 4594, i32 1064691904)
%19 = call i32 @RamWrite32A_lc898122_sharp(i32 4595, i32 0)
%20 = call i32 @RamWrite32A_lc898122_sharp(i32 4596, i32 0)
%21 = call i32 @RamWrite32A_lc898122_sharp(i32 4597, i32 1065353216)
%22 = call i32 @RamWrite32A_lc898122_sharp(i32 4598, i32 0)
%23 = call i32 @RamWrite32A_lc898122_sharp(i32 4599, i32 0)
%24 = call i32 @RamWrite32A_lc898122_sharp(i32 4600, i32 0)
%25 = call i32 @RamWrite32A_lc898122_sharp(i32 4601, i32 0)
br label %104
26: ; preds = %1
%27 = load i8, i8* %2
%28 = zext i8 %27 to i32
%29 = icmp eq i32 %28, 1
br i1 %29, label %30, label %51
30: ; preds = %26
%31 = call i32 @RamWrite32A_lc898122_sharp(i32 4336, i32 1039274112)
%32 = call i32 @RamWrite32A_lc898122_sharp(i32 4337, i32 1039274112)
%33 = call i32 @RamWrite32A_lc898122_sharp(i32 4338, i32 1061387200)
%34 = call i32 @RamWrite32A_lc898122_sharp(i32 4339, i32 0)
%35 = call i32 @RamWrite32A_lc898122_sharp(i32 4340, i32 0)
%36 = call i32 @RamWrite32A_lc898122_sharp(i32 4341, i32 1065286016)
%37 = call i32 @RamWrite32A_lc898122_sharp(i32 4342, i32 -1082197632)
%38 = call i32 @RamWrite32A_lc898122_sharp(i32 4343, i32 1065218816)
%39 = call i32 @RamWrite32A_lc898122_sharp(i32 4344, i32 0)
%40 = call i32 @RamWrite32A_lc898122_sharp(i32 4345, i32 0)
%41 = call i32 @RamWrite32A_lc898122_sharp(i32 4592, i32 1039274112)
%42 = call i32 @RamWrite32A_lc898122_sharp(i32 4593, i32 1039274112)
%43 = call i32 @RamWrite32A_lc898122_sharp(i32 4594, i32 1061387200)
%44 = call i32 @RamWrite32A_lc898122_sharp(i32 4595, i32 0)
%45 = call i32 @RamWrite32A_lc898122_sharp(i32 4596, i32 0)
%46 = call i32 @RamWrite32A_lc898122_sharp(i32 4597, i32 1065286016)
%47 = call i32 @RamWrite32A_lc898122_sharp(i32 4598, i32 -1082197632)
%48 = call i32 @RamWrite32A_lc898122_sharp(i32 4599, i32 1065218816)
%49 = call i32 @RamWrite32A_lc898122_sharp(i32 4600, i32 0)
%50 = call i32 @RamWrite32A_lc898122_sharp(i32 4601, i32 0)
br label %103
51: ; preds = %26
%52 = load i8, i8* %2
%53 = zext i8 %52 to i32
%54 = icmp eq i32 %53, 2
br i1 %54, label %55, label %76
55: ; preds = %51
%56 = call i32 @RamWrite32A_lc898122_sharp(i32 4336, i32 1065353216)
%57 = call i32 @RamWrite32A_lc898122_sharp(i32 4337, i32 0)
%58 = call i32 @RamWrite32A_lc898122_sharp(i32 4338, i32 0)
%59 = call i32 @RamWrite32A_lc898122_sharp(i32 4339, i32 0)
%60 = call i32 @RamWrite32A_lc898122_sharp(i32 4340, i32 0)
%61 = call i32 @RamWrite32A_lc898122_sharp(i32 4341, i32 1065353216)
%62 = call i32 @RamWrite32A_lc898122_sharp(i32 4342, i32 0)
%63 = call i32 @RamWrite32A_lc898122_sharp(i32 4343, i32 0)
%64 = call i32 @RamWrite32A_lc898122_sharp(i32 4344, i32 0)
%65 = call i32 @RamWrite32A_lc898122_sharp(i32 4345, i32 0)
%66 = call i32 @RamWrite32A_lc898122_sharp(i32 4592, i32 1065353216)
%67 = call i32 @RamWrite32A_lc898122_sharp(i32 4593, i32 0)
%68 = call i32 @RamWrite32A_lc898122_sharp(i32 4594, i32 0)
%69 = call i32 @RamWrite32A_lc898122_sharp(i32 4595, i32 0)
%70 = call i32 @RamWrite32A_lc898122_sharp(i32 4596, i32 0)
%71 = call i32 @RamWrite32A_lc898122_sharp(i32 4597, i32 1065353216)
%72 = call i32 @RamWrite32A_lc898122_sharp(i32 4598, i32 0)
%73 = call i32 @RamWrite32A_lc898122_sharp(i32 4599, i32 0)
%74 = call i32 @RamWrite32A_lc898122_sharp(i32 4600, i32 0)
%75 = call i32 @RamWrite32A_lc898122_sharp(i32 4601, i32 0)
br label %102
76: ; preds = %51
%77 = load i8, i8* %2
%78 = zext i8 %77 to i32
%79 = icmp eq i32 %78, 3
br i1 %79, label %80, label %101
80: ; preds = %76
%81 = call i32 @RamWrite32A_lc898122_sharp(i32 4336, i32 1017214400)
%82 = call i32 @RamWrite32A_lc898122_sharp(i32 4337, i32 1017214400)
%83 = call i32 @RamWrite32A_lc898122_sharp(i32 4338, i32 1064691904)
%84 = call i32 @RamWrite32A_lc898122_sharp(i32 4339, i32 0)
%85 = call i32 @RamWrite32A_lc898122_sharp(i32 4340, i32 0)
%86 = call i32 @RamWrite32A_lc898122_sharp(i32 4341, i32 1017214400)
%87 = call i32 @RamWrite32A_lc898122_sharp(i32 4342, i32 1017214400)
%88 = call i32 @RamWrite32A_lc898122_sharp(i32 4343, i32 1064691904)
%89 = call i32 @RamWrite32A_lc898122_sharp(i32 4344, i32 0)
%90 = call i32 @RamWrite32A_lc898122_sharp(i32 4345, i32 0)
%91 = call i32 @RamWrite32A_lc898122_sharp(i32 4592, i32 1017214400)
%92 = call i32 @RamWrite32A_lc898122_sharp(i32 4593, i32 1017214400)
%93 = call i32 @RamWrite32A_lc898122_sharp(i32 4594, i32 1064691904)
%94 = call i32 @RamWrite32A_lc898122_sharp(i32 4595, i32 0)
%95 = call i32 @RamWrite32A_lc898122_sharp(i32 4596, i32 0)
%96 = call i32 @RamWrite32A_lc898122_sharp(i32 4597, i32 1017214400)
%97 = call i32 @RamWrite32A_lc898122_sharp(i32 4598, i32 1017214400)
%98 = call i32 @RamWrite32A_lc898122_sharp(i32 4599, i32 1064691904)
%99 = call i32 @RamWrite32A_lc898122_sharp(i32 4600, i32 0)
%100 = call i32 @RamWrite32A_lc898122_sharp(i32 4601, i32 0)
br label %101
101: ; preds = %80, %76
br label %102
102: ; preds = %101, %55
br label %103
103: ; preds = %102, %30
br label %104
104: ; preds = %103, %5
ret void
}

LLVM IR (-O2):
@switch.table.MesFil_lc898122_sharp = [4 x i32] [i32 1017214400, i32 1039274112, i32 1065353216, i32 1017214400]
@switch.table.MesFil_lc898122_sharp.1 = [4 x i32] [i32 1017214400, i32 1039274112, i32 0, i32 1017214400]
@switch.table.MesFil_lc898122_sharp.2 = [4 x i32] [i32 1064691904, i32 1061387200, i32 0, i32 1064691904]
@switch.table.MesFil_lc898122_sharp.3 = [4 x i32] [i32 1065353216, i32 1065286016, i32 1065353216, i32 1017214400]
@switch.table.MesFil_lc898122_sharp.4 = [4 x i32] [i32 0, i32 -1082197632, i32 0, i32 1017214400]
@switch.table.MesFil_lc898122_sharp.5 = [4 x i32] [i32 0, i32 1065218816, i32 0, i32 1064691904]
define void @MesFil_lc898122_sharp(i8 zeroext %0) {
%2 = icmp ult i8 %0, 4
br i1 %2, label %3, label %42
3: ; preds = %1
%4 = sext i8 %0 to i64
%5 = getelementptr inbounds [4 x i32], [4 x i32]* @switch.table.MesFil_lc898122_sharp, i64 0, i64 %4
%6 = load i32, i32* %5
%7 = sext i8 %0 to i64
%8 = getelementptr inbounds [4 x i32], [4 x i32]* @switch.table.MesFil_lc898122_sharp.1, i64 0, i64 %7
%9 = load i32, i32* %8
%10 = sext i8 %0 to i64
%11 = getelementptr inbounds [4 x i32], [4 x i32]* @switch.table.MesFil_lc898122_sharp.2, i64 0, i64 %10
%12 = load i32, i32* %11
%13 = sext i8 %0 to i64
%14 = getelementptr inbounds [4 x i32], [4 x i32]* @switch.table.MesFil_lc898122_sharp.3, i64 0, i64 %13
%15 = load i32, i32* %14
%16 = sext i8 %0 to i64
%17 = getelementptr inbounds [4 x i32], [4 x i32]* @switch.table.MesFil_lc898122_sharp.4, i64 0, i64 %16
%18 = load i32, i32* %17
%19 = sext i8 %0 to i64
%20 = getelementptr inbounds [4 x i32], [4 x i32]* @switch.table.MesFil_lc898122_sharp.5, i64 0, i64 %19
%21 = load i32, i32* %20
%22 = tail call i32 @RamWrite32A_lc898122_sharp(i32 4336, i32 %6)
%23 = tail call i32 @RamWrite32A_lc898122_sharp(i32 4337, i32 %9)
%24 = tail call i32 @RamWrite32A_lc898122_sharp(i32 4338, i32 %12)
%25 = tail call i32 @RamWrite32A_lc898122_sharp(i32 4339, i32 0)
%26 = tail call i32 @RamWrite32A_lc898122_sharp(i32 4340, i32 0)
%27 = tail call i32 @RamWrite32A_lc898122_sharp(i32 4341, i32 %15)
%28 = tail call i32 @RamWrite32A_lc898122_sharp(i32 4342, i32 %18)
%29 = tail call i32 @RamWrite32A_lc898122_sharp(i32 4343, i32 %21)
%30 = tail call i32 @RamWrite32A_lc898122_sharp(i32 4344, i32 0)
%31 = tail call i32 @RamWrite32A_lc898122_sharp(i32 4345, i32 0)
%32 = tail call i32 @RamWrite32A_lc898122_sharp(i32 4592, i32 %6)
%33 = tail call i32 @RamWrite32A_lc898122_sharp(i32 4593, i32 %9)
%34 = tail call i32 @RamWrite32A_lc898122_sharp(i32 4594, i32 %12)
%35 = tail call i32 @RamWrite32A_lc898122_sharp(i32 4595, i32 0)
%36 = tail call i32 @RamWrite32A_lc898122_sharp(i32 4596, i32 0)
%37 = tail call i32 @RamWrite32A_lc898122_sharp(i32 4597, i32 %15)
%38 = tail call i32 @RamWrite32A_lc898122_sharp(i32 4598, i32 %18)
%39 = tail call i32 @RamWrite32A_lc898122_sharp(i32 4599, i32 %21)
%40 = tail call i32 @RamWrite32A_lc898122_sharp(i32 4600, i32 0)
%41 = tail call i32 @RamWrite32A_lc898122_sharp(i32 4601, i32 0)
br label %42
42: ; preds = %1, %3
ret void
}