#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(int, int);
int /*<<< orphan*/ RegWriteA(int, unsigned char);
void AutoGainContIni(void) {
  RamWrite32A(0x10AE, 0x3B23D70A);
  RamWrite32A(0x11AE, 0x3B23D70A);
  RamWrite32A(0x1094, 0x00000000);
  RamWrite32A(0x1095, 0x3F800000);
  RamWrite32A(0x1096, 0xBF80000D);
  RamWrite32A(0x1097, 0x3F800000);
  RamWrite32A(0x1194, 0x00000000);
  RamWrite32A(0x1195, 0x3F800000);
  RamWrite32A(0x1196, 0xBF800000);
  RamWrite32A(0x1197, 0x3F800000);
  RegWriteA(0x0120, (unsigned char)0x140A);
  RegWriteA(0x0123, 0x5D);
  RegWriteA(0x0121, 0x40);
  RegWriteA(0x0122, 0x01);
  RegWriteA(0x0128, (unsigned char)0x100B);
}


x86 assembly (clang, -O0):
<AutoGainContIni>:
push   %rbp
mov    %rsp,%rbp
mov    $0x10ae,%edi
mov    $0x3b23d70a,%esi
call   1030 <RamWrite32A@plt>
mov    $0x11ae,%edi
mov    $0x3b23d70a,%esi
call   1030 <RamWrite32A@plt>
mov    $0x1094,%edi
xor    %esi,%esi
call   1030 <RamWrite32A@plt>
mov    $0x1095,%edi
mov    $0x3f800000,%esi
call   1030 <RamWrite32A@plt>
mov    $0x1096,%edi
mov    $0xbf80000d,%esi
call   1030 <RamWrite32A@plt>
mov    $0x1097,%edi
mov    $0x3f800000,%esi
call   1030 <RamWrite32A@plt>
mov    $0x1194,%edi
xor    %esi,%esi
call   1030 <RamWrite32A@plt>
mov    $0x1195,%edi
mov    $0x3f800000,%esi
call   1030 <RamWrite32A@plt>
mov    $0x1196,%edi
mov    $0xbf800000,%esi
call   1030 <RamWrite32A@plt>
mov    $0x1197,%edi
mov    $0x3f800000,%esi
call   1030 <RamWrite32A@plt>
mov    $0x120,%edi
mov    $0xa,%esi
call   1040 <RegWriteA@plt>
mov    $0x123,%edi
mov    $0x5d,%esi
call   1040 <RegWriteA@plt>
mov    $0x121,%edi
mov    $0x40,%esi
call   1040 <RegWriteA@plt>
mov    $0x122,%edi
mov    $0x1,%esi
call   1040 <RegWriteA@plt>
mov    $0x128,%edi
mov    $0xb,%esi
call   1040 <RegWriteA@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<AutoGainContIni>:
push   %rax
mov    $0x10ae,%edi
mov    $0x3b23d70a,%esi
call   1030 <RamWrite32A@plt>
mov    $0x11ae,%edi
mov    $0x3b23d70a,%esi
call   1030 <RamWrite32A@plt>
mov    $0x1094,%edi
xor    %esi,%esi
call   1030 <RamWrite32A@plt>
mov    $0x1095,%edi
mov    $0x3f800000,%esi
call   1030 <RamWrite32A@plt>
mov    $0x1096,%edi
mov    $0xbf80000d,%esi
call   1030 <RamWrite32A@plt>
mov    $0x1097,%edi
mov    $0x3f800000,%esi
call   1030 <RamWrite32A@plt>
mov    $0x1194,%edi
xor    %esi,%esi
call   1030 <RamWrite32A@plt>
mov    $0x1195,%edi
mov    $0x3f800000,%esi
call   1030 <RamWrite32A@plt>
mov    $0x1196,%edi
mov    $0xbf800000,%esi
call   1030 <RamWrite32A@plt>
mov    $0x1197,%edi
mov    $0x3f800000,%esi
call   1030 <RamWrite32A@plt>
mov    $0x120,%edi
mov    $0xa,%esi
call   1040 <RegWriteA@plt>
mov    $0x123,%edi
mov    $0x5d,%esi
call   1040 <RegWriteA@plt>
mov    $0x121,%edi
mov    $0x40,%esi
call   1040 <RegWriteA@plt>
mov    $0x122,%edi
mov    $0x1,%esi
call   1040 <RegWriteA@plt>
mov    $0x128,%edi
mov    $0xb,%esi
pop    %rax
jmp    1040 <RegWriteA@plt>

LLVM IR (-O0):
define void @AutoGainContIni() {
%1 = call i32 @RamWrite32A(i32 4270, i32 992204554)
%2 = call i32 @RamWrite32A(i32 4526, i32 992204554)
%3 = call i32 @RamWrite32A(i32 4244, i32 0)
%4 = call i32 @RamWrite32A(i32 4245, i32 1065353216)
%5 = call i32 @RamWrite32A(i32 4246, i32 -1082130419)
%6 = call i32 @RamWrite32A(i32 4247, i32 1065353216)
%7 = call i32 @RamWrite32A(i32 4500, i32 0)
%8 = call i32 @RamWrite32A(i32 4501, i32 1065353216)
%9 = call i32 @RamWrite32A(i32 4502, i32 -1082130432)
%10 = call i32 @RamWrite32A(i32 4503, i32 1065353216)
%11 = call i32 @RegWriteA(i32 288, i8 zeroext 10)
%12 = call i32 @RegWriteA(i32 291, i8 zeroext 93)
%13 = call i32 @RegWriteA(i32 289, i8 zeroext 64)
%14 = call i32 @RegWriteA(i32 290, i8 zeroext 1)
%15 = call i32 @RegWriteA(i32 296, i8 zeroext 11)
ret void
}

LLVM IR (-O2):
define void @AutoGainContIni() {
%1 = tail call i32 @RamWrite32A(i32 4270, i32 992204554)
%2 = tail call i32 @RamWrite32A(i32 4526, i32 992204554)
%3 = tail call i32 @RamWrite32A(i32 4244, i32 0)
%4 = tail call i32 @RamWrite32A(i32 4245, i32 1065353216)
%5 = tail call i32 @RamWrite32A(i32 4246, i32 -1082130419)
%6 = tail call i32 @RamWrite32A(i32 4247, i32 1065353216)
%7 = tail call i32 @RamWrite32A(i32 4500, i32 0)
%8 = tail call i32 @RamWrite32A(i32 4501, i32 1065353216)
%9 = tail call i32 @RamWrite32A(i32 4502, i32 -1082130432)
%10 = tail call i32 @RamWrite32A(i32 4503, i32 1065353216)
%11 = tail call i32 @RegWriteA(i32 288, i8 zeroext 10)
%12 = tail call i32 @RegWriteA(i32 291, i8 zeroext 93)
%13 = tail call i32 @RegWriteA(i32 289, i8 zeroext 64)
%14 = tail call i32 @RegWriteA(i32 290, i8 zeroext 1)
%15 = tail call i32 @RegWriteA(i32 296, i8 zeroext 11)
ret void
}