#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*/ DrvSw_lc898122_sharp(int);
int /*<<< orphan*/ IniPtAve_lc898122_sharp();
int /*<<< orphan*/ RamAccFixMod_lc898122_sharp(int);
int /*<<< orphan*/ RamWrite32A_lc898122_sharp(int, int);
int /*<<< orphan*/ RamWriteA_lc898122_sharp(int, int);
int /*<<< orphan*/ RegWriteA_lc898122_sharp(int, int);
int /*<<< orphan*/ SetGcf_lc898122_sharp(int /*<<< orphan*/);
int /*<<< orphan*/ SetH1cMod_lc898122_sharp(int);
int /*<<< orphan*/ SetPanTiltMode_lc898122_sharp(int);
int /*<<< orphan*/ SetZsp_lc898122_sharp(int /*<<< orphan*/);
void IniAdj_lc898122_sharp(void) {
  RegWriteA_lc898122_sharp(0x018D, 0x00);
  IniPtAve_lc898122_sharp();
  RegWriteA_lc898122_sharp(0x0251, 0x33);
  RegWriteA_lc898122_sharp(0x0253, 0x05);
  RegWriteA_lc898122_sharp(0x0254, 0x05);
  RegWriteA_lc898122_sharp(0x0252, 0x01);
  RegWriteA_lc898122_sharp(0x0255, 0x00);
  RegWriteA_lc898122_sharp(0x0257, 0x30);
  RegWriteA_lc898122_sharp(0x02A0, 0xff);
  RegWriteA_lc898122_sharp(0x02A1, 0xe9);
  RegWriteA_lc898122_sharp(0x02A2, 0xff);
  RegWriteA_lc898122_sharp(0x02A3, 0xc7);
  RamAccFixMod_lc898122_sharp(0x01);
  RamWriteA_lc898122_sharp(0x1479, 0xbef3);
  RamWriteA_lc898122_sharp(0x147A, 0xdc00);
  RamWriteA_lc898122_sharp(0x14F9, 0x0e8b);
  RamWriteA_lc898122_sharp(0x14FA, 0xc600);
  RamWriteA_lc898122_sharp(0x1450, 0x169a);
  RamWriteA_lc898122_sharp(0x14D0, 0x0ede);
  RamWriteA_lc898122_sharp(0x10D3, 0x1842);
  RamWriteA_lc898122_sharp(0x11D3, 0x1eac);
  RamWriteA_lc898122_sharp(0x1529, 0x0000);
  RamWriteA_lc898122_sharp(0x152A, 0x9000);
  RamAccFixMod_lc898122_sharp(0x00);
  RamWrite32A_lc898122_sharp(0x1020, 0x3F440189);
  RamWrite32A_lc898122_sharp(0x1120, 0xBF1C0137);
  RamWrite32A_lc898122_sharp(0x10E5, 0x3F800000);
  RamWrite32A_lc898122_sharp(0x11E5, 0xBF800000);
  if (0) {
    RamWrite32A_lc898122_sharp(0x10B8, 0x00000000);
    RamWrite32A_lc898122_sharp(0x10B9, 0x3F800000);
    RamWrite32A_lc898122_sharp(0x11B8, 0x00000000);
    RamWrite32A_lc898122_sharp(0x11B9, 0x3F800000);
  }
  SetZsp_lc898122_sharp(0);
  RegWriteA_lc898122_sharp(0x0010, 0xC0);
  RegWriteA_lc898122_sharp(0x0250, 0xDF);
  RegWriteA_lc898122_sharp(0x01E0, 0x02);
  RegWriteA_lc898122_sharp(0x0193, 0x02);
  RegWriteA_lc898122_sharp(0x0192, 0x00);
  RegWriteA_lc898122_sharp(0x01A3, 0x02);
  RegWriteA_lc898122_sharp(0x01A2, 0x00);
  SetPanTiltMode_lc898122_sharp(0x00);
  SetGcf_lc898122_sharp(0);
  SetH1cMod_lc898122_sharp(0x80);
  DrvSw_lc898122_sharp(0x01);
  RegWriteA_lc898122_sharp(0x0101, 0x01);
}


x86 assembly (clang, -O0):
<IniAdj_lc898122_sharp>:
push   %rbp
mov    %rsp,%rbp
mov    $0x18d,%edi
xor    %esi,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x0,%al
call   1050 <IniPtAve_lc898122_sharp@plt>
mov    $0x251,%edi
mov    $0x33,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x253,%edi
mov    $0x5,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x254,%edi
mov    $0x5,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x252,%edi
mov    $0x1,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x255,%edi
xor    %esi,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x257,%edi
mov    $0x30,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x2a0,%edi
mov    $0xff,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x2a1,%edi
mov    $0xe9,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x2a2,%edi
mov    $0xff,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x2a3,%edi
mov    $0xc7,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x1,%edi
call   10a0 <RamAccFixMod_lc898122_sharp@plt>
mov    $0x1479,%edi
mov    $0xbef3,%esi
call   1040 <RamWriteA_lc898122_sharp@plt>
mov    $0x147a,%edi
mov    $0xdc00,%esi
call   1040 <RamWriteA_lc898122_sharp@plt>
mov    $0x14f9,%edi
mov    $0xe8b,%esi
call   1040 <RamWriteA_lc898122_sharp@plt>
mov    $0x14fa,%edi
mov    $0xc600,%esi
call   1040 <RamWriteA_lc898122_sharp@plt>
mov    $0x1450,%edi
mov    $0x169a,%esi
call   1040 <RamWriteA_lc898122_sharp@plt>
mov    $0x14d0,%edi
mov    $0xede,%esi
call   1040 <RamWriteA_lc898122_sharp@plt>
mov    $0x10d3,%edi
mov    $0x1842,%esi
call   1040 <RamWriteA_lc898122_sharp@plt>
mov    $0x11d3,%edi
mov    $0x1eac,%esi
call   1040 <RamWriteA_lc898122_sharp@plt>
mov    $0x1529,%edi
xor    %esi,%esi
call   1040 <RamWriteA_lc898122_sharp@plt>
mov    $0x152a,%edi
mov    $0x9000,%esi
call   1040 <RamWriteA_lc898122_sharp@plt>
xor    %edi,%edi
call   10a0 <RamAccFixMod_lc898122_sharp@plt>
mov    $0x1020,%edi
mov    $0x3f440189,%esi
call   10c0 <RamWrite32A_lc898122_sharp@plt>
mov    $0x1120,%edi
mov    $0xbf1c0137,%esi
call   10c0 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10e5,%edi
mov    $0x3f800000,%esi
call   10c0 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11e5,%edi
mov    $0xbf800000,%esi
call   10c0 <RamWrite32A_lc898122_sharp@plt>
xor    %edi,%edi
call   1090 <SetZsp_lc898122_sharp@plt>
mov    $0x10,%edi
mov    $0xc0,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x250,%edi
mov    $0xdf,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x1e0,%edi
mov    $0x2,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x193,%edi
mov    $0x2,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x192,%edi
xor    %esi,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x1a3,%edi
mov    $0x2,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x1a2,%edi
xor    %esi,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
xor    %edi,%edi
call   1080 <SetPanTiltMode_lc898122_sharp@plt>
xor    %edi,%edi
call   1060 <SetGcf_lc898122_sharp@plt>
mov    $0x80,%edi
call   10b0 <SetH1cMod_lc898122_sharp@plt>
mov    $0x1,%edi
call   1070 <DrvSw_lc898122_sharp@plt>
mov    $0x101,%edi
mov    $0x1,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<IniAdj_lc898122_sharp>:
push   %rax
mov    $0x18d,%edi
xor    %esi,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
xor    %eax,%eax
call   1050 <IniPtAve_lc898122_sharp@plt>
mov    $0x251,%edi
mov    $0x33,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x253,%edi
mov    $0x5,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x254,%edi
mov    $0x5,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x252,%edi
mov    $0x1,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x255,%edi
xor    %esi,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x257,%edi
mov    $0x30,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x2a0,%edi
mov    $0xff,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x2a1,%edi
mov    $0xe9,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x2a2,%edi
mov    $0xff,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x2a3,%edi
mov    $0xc7,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x1,%edi
call   10a0 <RamAccFixMod_lc898122_sharp@plt>
mov    $0x1479,%edi
mov    $0xbef3,%esi
call   1040 <RamWriteA_lc898122_sharp@plt>
mov    $0x147a,%edi
mov    $0xdc00,%esi
call   1040 <RamWriteA_lc898122_sharp@plt>
mov    $0x14f9,%edi
mov    $0xe8b,%esi
call   1040 <RamWriteA_lc898122_sharp@plt>
mov    $0x14fa,%edi
mov    $0xc600,%esi
call   1040 <RamWriteA_lc898122_sharp@plt>
mov    $0x1450,%edi
mov    $0x169a,%esi
call   1040 <RamWriteA_lc898122_sharp@plt>
mov    $0x14d0,%edi
mov    $0xede,%esi
call   1040 <RamWriteA_lc898122_sharp@plt>
mov    $0x10d3,%edi
mov    $0x1842,%esi
call   1040 <RamWriteA_lc898122_sharp@plt>
mov    $0x11d3,%edi
mov    $0x1eac,%esi
call   1040 <RamWriteA_lc898122_sharp@plt>
mov    $0x1529,%edi
xor    %esi,%esi
call   1040 <RamWriteA_lc898122_sharp@plt>
mov    $0x152a,%edi
mov    $0x9000,%esi
call   1040 <RamWriteA_lc898122_sharp@plt>
xor    %edi,%edi
call   10a0 <RamAccFixMod_lc898122_sharp@plt>
mov    $0x1020,%edi
mov    $0x3f440189,%esi
call   10c0 <RamWrite32A_lc898122_sharp@plt>
mov    $0x1120,%edi
mov    $0xbf1c0137,%esi
call   10c0 <RamWrite32A_lc898122_sharp@plt>
mov    $0x10e5,%edi
mov    $0x3f800000,%esi
call   10c0 <RamWrite32A_lc898122_sharp@plt>
mov    $0x11e5,%edi
mov    $0xbf800000,%esi
call   10c0 <RamWrite32A_lc898122_sharp@plt>
xor    %edi,%edi
call   1090 <SetZsp_lc898122_sharp@plt>
mov    $0x10,%edi
mov    $0xc0,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x250,%edi
mov    $0xdf,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x1e0,%edi
mov    $0x2,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x193,%edi
mov    $0x2,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x192,%edi
xor    %esi,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x1a3,%edi
mov    $0x2,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
mov    $0x1a2,%edi
xor    %esi,%esi
call   1030 <RegWriteA_lc898122_sharp@plt>
xor    %edi,%edi
call   1080 <SetPanTiltMode_lc898122_sharp@plt>
xor    %edi,%edi
call   1060 <SetGcf_lc898122_sharp@plt>
mov    $0x80,%edi
call   10b0 <SetH1cMod_lc898122_sharp@plt>
mov    $0x1,%edi
call   1070 <DrvSw_lc898122_sharp@plt>
mov    $0x101,%edi
mov    $0x1,%esi
pop    %rax
jmp    1030 <RegWriteA_lc898122_sharp@plt>

LLVM IR (-O0):
define void @IniAdj_lc898122_sharp() {
%1 = call i32 @RegWriteA_lc898122_sharp(i32 397, i32 0)
%2 = call i32 (...) @IniPtAve_lc898122_sharp()
%3 = call i32 @RegWriteA_lc898122_sharp(i32 593, i32 51)
%4 = call i32 @RegWriteA_lc898122_sharp(i32 595, i32 5)
%5 = call i32 @RegWriteA_lc898122_sharp(i32 596, i32 5)
%6 = call i32 @RegWriteA_lc898122_sharp(i32 594, i32 1)
%7 = call i32 @RegWriteA_lc898122_sharp(i32 597, i32 0)
%8 = call i32 @RegWriteA_lc898122_sharp(i32 599, i32 48)
%9 = call i32 @RegWriteA_lc898122_sharp(i32 672, i32 255)
%10 = call i32 @RegWriteA_lc898122_sharp(i32 673, i32 233)
%11 = call i32 @RegWriteA_lc898122_sharp(i32 674, i32 255)
%12 = call i32 @RegWriteA_lc898122_sharp(i32 675, i32 199)
%13 = call i32 @RamAccFixMod_lc898122_sharp(i32 1)
%14 = call i32 @RamWriteA_lc898122_sharp(i32 5241, i32 48883)
%15 = call i32 @RamWriteA_lc898122_sharp(i32 5242, i32 56320)
%16 = call i32 @RamWriteA_lc898122_sharp(i32 5369, i32 3723)
%17 = call i32 @RamWriteA_lc898122_sharp(i32 5370, i32 50688)
%18 = call i32 @RamWriteA_lc898122_sharp(i32 5200, i32 5786)
%19 = call i32 @RamWriteA_lc898122_sharp(i32 5328, i32 3806)
%20 = call i32 @RamWriteA_lc898122_sharp(i32 4307, i32 6210)
%21 = call i32 @RamWriteA_lc898122_sharp(i32 4563, i32 7852)
%22 = call i32 @RamWriteA_lc898122_sharp(i32 5417, i32 0)
%23 = call i32 @RamWriteA_lc898122_sharp(i32 5418, i32 36864)
%24 = call i32 @RamAccFixMod_lc898122_sharp(i32 0)
%25 = call i32 @RamWrite32A_lc898122_sharp(i32 4128, i32 1061421449)
%26 = call i32 @RamWrite32A_lc898122_sharp(i32 4384, i32 -1088683721)
%27 = call i32 @RamWrite32A_lc898122_sharp(i32 4325, i32 1065353216)
%28 = call i32 @RamWrite32A_lc898122_sharp(i32 4581, i32 -1082130432)
%29 = call i32 @SetZsp_lc898122_sharp(i32 0)
%30 = call i32 @RegWriteA_lc898122_sharp(i32 16, i32 192)
%31 = call i32 @RegWriteA_lc898122_sharp(i32 592, i32 223)
%32 = call i32 @RegWriteA_lc898122_sharp(i32 480, i32 2)
%33 = call i32 @RegWriteA_lc898122_sharp(i32 403, i32 2)
%34 = call i32 @RegWriteA_lc898122_sharp(i32 402, i32 0)
%35 = call i32 @RegWriteA_lc898122_sharp(i32 419, i32 2)
%36 = call i32 @RegWriteA_lc898122_sharp(i32 418, i32 0)
%37 = call i32 @SetPanTiltMode_lc898122_sharp(i32 0)
%38 = call i32 @SetGcf_lc898122_sharp(i32 0)
%39 = call i32 @SetH1cMod_lc898122_sharp(i32 128)
%40 = call i32 @DrvSw_lc898122_sharp(i32 1)
%41 = call i32 @RegWriteA_lc898122_sharp(i32 257, i32 1)
ret void
}

LLVM IR (-O2):
define void @IniAdj_lc898122_sharp() {
%1 = tail call i32 @RegWriteA_lc898122_sharp(i32 397, i32 0)
%2 = tail call i32 (...) @IniPtAve_lc898122_sharp()
%3 = tail call i32 @RegWriteA_lc898122_sharp(i32 593, i32 51)
%4 = tail call i32 @RegWriteA_lc898122_sharp(i32 595, i32 5)
%5 = tail call i32 @RegWriteA_lc898122_sharp(i32 596, i32 5)
%6 = tail call i32 @RegWriteA_lc898122_sharp(i32 594, i32 1)
%7 = tail call i32 @RegWriteA_lc898122_sharp(i32 597, i32 0)
%8 = tail call i32 @RegWriteA_lc898122_sharp(i32 599, i32 48)
%9 = tail call i32 @RegWriteA_lc898122_sharp(i32 672, i32 255)
%10 = tail call i32 @RegWriteA_lc898122_sharp(i32 673, i32 233)
%11 = tail call i32 @RegWriteA_lc898122_sharp(i32 674, i32 255)
%12 = tail call i32 @RegWriteA_lc898122_sharp(i32 675, i32 199)
%13 = tail call i32 @RamAccFixMod_lc898122_sharp(i32 1)
%14 = tail call i32 @RamWriteA_lc898122_sharp(i32 5241, i32 48883)
%15 = tail call i32 @RamWriteA_lc898122_sharp(i32 5242, i32 56320)
%16 = tail call i32 @RamWriteA_lc898122_sharp(i32 5369, i32 3723)
%17 = tail call i32 @RamWriteA_lc898122_sharp(i32 5370, i32 50688)
%18 = tail call i32 @RamWriteA_lc898122_sharp(i32 5200, i32 5786)
%19 = tail call i32 @RamWriteA_lc898122_sharp(i32 5328, i32 3806)
%20 = tail call i32 @RamWriteA_lc898122_sharp(i32 4307, i32 6210)
%21 = tail call i32 @RamWriteA_lc898122_sharp(i32 4563, i32 7852)
%22 = tail call i32 @RamWriteA_lc898122_sharp(i32 5417, i32 0)
%23 = tail call i32 @RamWriteA_lc898122_sharp(i32 5418, i32 36864)
%24 = tail call i32 @RamAccFixMod_lc898122_sharp(i32 0)
%25 = tail call i32 @RamWrite32A_lc898122_sharp(i32 4128, i32 1061421449)
%26 = tail call i32 @RamWrite32A_lc898122_sharp(i32 4384, i32 -1088683721)
%27 = tail call i32 @RamWrite32A_lc898122_sharp(i32 4325, i32 1065353216)
%28 = tail call i32 @RamWrite32A_lc898122_sharp(i32 4581, i32 -1082130432)
%29 = tail call i32 @SetZsp_lc898122_sharp(i32 0)
%30 = tail call i32 @RegWriteA_lc898122_sharp(i32 16, i32 192)
%31 = tail call i32 @RegWriteA_lc898122_sharp(i32 592, i32 223)
%32 = tail call i32 @RegWriteA_lc898122_sharp(i32 480, i32 2)
%33 = tail call i32 @RegWriteA_lc898122_sharp(i32 403, i32 2)
%34 = tail call i32 @RegWriteA_lc898122_sharp(i32 402, i32 0)
%35 = tail call i32 @RegWriteA_lc898122_sharp(i32 419, i32 2)
%36 = tail call i32 @RegWriteA_lc898122_sharp(i32 418, i32 0)
%37 = tail call i32 @SetPanTiltMode_lc898122_sharp(i32 0)
%38 = tail call i32 @SetGcf_lc898122_sharp(i32 0)
%39 = tail call i32 @SetH1cMod_lc898122_sharp(i32 128)
%40 = tail call i32 @DrvSw_lc898122_sharp(i32 1)
%41 = tail call i32 @RegWriteA_lc898122_sharp(i32 257, i32 1)
ret void
}