#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 */
struct tl880_dev {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ tl880_write_regbits(struct tl880_dev *, int, int, int, int);
void tl880_init_hipix_i2c(struct tl880_dev *tl880dev) {
  tl880_write_regbits(tl880dev, 0x10000, 0xc, 0xc, 1);
  tl880_write_regbits(tl880dev, 0x10000, 0xb, 0xb, 0);
  tl880_write_regbits(tl880dev, 0x10190, 0x1a, 0x1a, 1);
  tl880_write_regbits(tl880dev, 0x10190, 0x1b, 0x1b, 1);
}


x86 assembly (clang, -O0):
<tl880_init_hipix_i2c>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x10000,%esi
mov    $0xc,%ecx
mov    $0x1,%r8d
mov    %ecx,%edx
call   1030 <tl880_write_regbits@plt>
mov    -0x8(%rbp),%rdi
mov    $0x10000,%esi
mov    $0xb,%ecx
xor    %r8d,%r8d
mov    %ecx,%edx
call   1030 <tl880_write_regbits@plt>
mov    -0x8(%rbp),%rdi
mov    $0x10190,%esi
mov    $0x1a,%ecx
mov    $0x1,%r8d
mov    %ecx,%edx
call   1030 <tl880_write_regbits@plt>
mov    -0x8(%rbp),%rdi
mov    $0x10190,%esi
mov    $0x1b,%ecx
mov    $0x1,%r8d
mov    %ecx,%edx
call   1030 <tl880_write_regbits@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tl880_init_hipix_i2c>:
push   %rbx
mov    %rdi,%rbx
mov    $0x10000,%esi
mov    $0xc,%edx
mov    $0xc,%ecx
mov    $0x1,%r8d
call   1030 <tl880_write_regbits@plt>
mov    %rbx,%rdi
mov    $0x10000,%esi
mov    $0xb,%edx
mov    $0xb,%ecx
xor    %r8d,%r8d
call   1030 <tl880_write_regbits@plt>
mov    %rbx,%rdi
mov    $0x10190,%esi
mov    $0x1a,%edx
mov    $0x1a,%ecx
mov    $0x1,%r8d
call   1030 <tl880_write_regbits@plt>
mov    %rbx,%rdi
mov    $0x10190,%esi
mov    $0x1b,%edx
mov    $0x1b,%ecx
mov    $0x1,%r8d
pop    %rbx
jmp    1030 <tl880_write_regbits@plt>

LLVM IR (-O0):
%struct.tl880_dev = type { i32 }
define void @tl880_init_hipix_i2c(%struct.tl880_dev* %0) {
%2 = alloca %struct.tl880_dev*
store %struct.tl880_dev* %0, %struct.tl880_dev** %2
%3 = load %struct.tl880_dev*, %struct.tl880_dev** %2
%4 = call i32 @tl880_write_regbits(%struct.tl880_dev* %3, i32 65536, i32 12, i32 12, i32 1)
%5 = load %struct.tl880_dev*, %struct.tl880_dev** %2
%6 = call i32 @tl880_write_regbits(%struct.tl880_dev* %5, i32 65536, i32 11, i32 11, i32 0)
%7 = load %struct.tl880_dev*, %struct.tl880_dev** %2
%8 = call i32 @tl880_write_regbits(%struct.tl880_dev* %7, i32 65936, i32 26, i32 26, i32 1)
%9 = load %struct.tl880_dev*, %struct.tl880_dev** %2
%10 = call i32 @tl880_write_regbits(%struct.tl880_dev* %9, i32 65936, i32 27, i32 27, i32 1)
ret void
}

LLVM IR (-O2):
%struct.tl880_dev = type { i32 }
define void @tl880_init_hipix_i2c(%struct.tl880_dev* %0) {
%2 = tail call i32 @tl880_write_regbits(%struct.tl880_dev* %0, i32 65536, i32 12, i32 12, i32 1)
%3 = tail call i32 @tl880_write_regbits(%struct.tl880_dev* %0, i32 65536, i32 11, i32 11, i32 0)
%4 = tail call i32 @tl880_write_regbits(%struct.tl880_dev* %0, i32 65936, i32 26, i32 26, i32 1)
%5 = tail call i32 @tl880_write_regbits(%struct.tl880_dev* %0, i32 65936, i32 27, i32 27, i32 1)
ret void
}