#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_wintv_hd_i2c(struct tl880_dev *tl880dev) {
  tl880_write_regbits(tl880dev, 0x10190, 0x1b, 0x1b, 1);
  tl880_write_regbits(tl880dev, 0x10190, 0x1a, 0x1a, 1);
  tl880_write_regbits(tl880dev, 0x10190, 7, 0, 0x1f);
  tl880_write_regbits(tl880dev, 0x10190, 0, 0, 1);
  tl880_write_regbits(tl880dev, 0x10190, 2, 2, 1);
  tl880_write_regbits(tl880dev, 0x10190, 1, 1, 1);
  tl880_write_regbits(tl880dev, 0x10190, 3, 3, 1);
  tl880_write_regbits(tl880dev, 0x10194, 3, 3, 1);
  tl880_write_regbits(tl880dev, 0x10194, 2, 2, 0);
  tl880_write_regbits(tl880dev, 0x10194, 1, 1, 1);
  tl880_write_regbits(tl880dev, 0x10194, 0, 0, 0);
  tl880_write_regbits(tl880dev, 0x10194, 4, 4, 1);
  tl880_write_regbits(tl880dev, 0x10198, 4, 4, 1);
}


x86 assembly (clang, -O0):
<tl880_init_wintv_hd_i2c>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x10190,%esi
mov    $0x1b,%ecx
mov    $0x1,%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    $0x7,%edx
xor    %ecx,%ecx
mov    $0x1f,%r8d
call   1030 <tl880_write_regbits@plt>
mov    -0x8(%rbp),%rdi
mov    $0x10190,%esi
xor    %ecx,%ecx
mov    $0x1,%r8d
mov    %ecx,%edx
call   1030 <tl880_write_regbits@plt>
mov    -0x8(%rbp),%rdi
mov    $0x10190,%esi
mov    $0x2,%ecx
mov    $0x1,%r8d
mov    %ecx,%edx
call   1030 <tl880_write_regbits@plt>
mov    -0x8(%rbp),%rdi
mov    $0x10190,%esi
mov    $0x1,%r8d
mov    %r8d,%edx
mov    %r8d,%ecx
call   1030 <tl880_write_regbits@plt>
mov    -0x8(%rbp),%rdi
mov    $0x10190,%esi
mov    $0x3,%ecx
mov    $0x1,%r8d
mov    %ecx,%edx
call   1030 <tl880_write_regbits@plt>
mov    -0x8(%rbp),%rdi
mov    $0x10194,%esi
mov    $0x3,%ecx
mov    $0x1,%r8d
mov    %ecx,%edx
call   1030 <tl880_write_regbits@plt>
mov    -0x8(%rbp),%rdi
mov    $0x10194,%esi
mov    $0x2,%ecx
xor    %r8d,%r8d
mov    %ecx,%edx
call   1030 <tl880_write_regbits@plt>
mov    -0x8(%rbp),%rdi
mov    $0x10194,%esi
mov    $0x1,%r8d
mov    %r8d,%edx
mov    %r8d,%ecx
call   1030 <tl880_write_regbits@plt>
mov    -0x8(%rbp),%rdi
mov    $0x10194,%esi
xor    %r8d,%r8d
mov    %r8d,%edx
mov    %r8d,%ecx
call   1030 <tl880_write_regbits@plt>
mov    -0x8(%rbp),%rdi
mov    $0x10194,%esi
mov    $0x4,%ecx
mov    $0x1,%r8d
mov    %ecx,%edx
call   1030 <tl880_write_regbits@plt>
mov    -0x8(%rbp),%rdi
mov    $0x10198,%esi
mov    $0x4,%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_wintv_hd_i2c>:
push   %rbx
mov    %rdi,%rbx
mov    $0x10190,%esi
mov    $0x1b,%edx
mov    $0x1b,%ecx
mov    $0x1,%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    $0x7,%edx
xor    %ecx,%ecx
mov    $0x1f,%r8d
call   1030 <tl880_write_regbits@plt>
mov    %rbx,%rdi
mov    $0x10190,%esi
xor    %edx,%edx
xor    %ecx,%ecx
mov    $0x1,%r8d
call   1030 <tl880_write_regbits@plt>
mov    %rbx,%rdi
mov    $0x10190,%esi
mov    $0x2,%edx
mov    $0x2,%ecx
mov    $0x1,%r8d
call   1030 <tl880_write_regbits@plt>
mov    %rbx,%rdi
mov    $0x10190,%esi
mov    $0x1,%edx
mov    $0x1,%ecx
mov    $0x1,%r8d
call   1030 <tl880_write_regbits@plt>
mov    %rbx,%rdi
mov    $0x10190,%esi
mov    $0x3,%edx
mov    $0x3,%ecx
mov    $0x1,%r8d
call   1030 <tl880_write_regbits@plt>
mov    %rbx,%rdi
mov    $0x10194,%esi
mov    $0x3,%edx
mov    $0x3,%ecx
mov    $0x1,%r8d
call   1030 <tl880_write_regbits@plt>
mov    %rbx,%rdi
mov    $0x10194,%esi
mov    $0x2,%edx
mov    $0x2,%ecx
xor    %r8d,%r8d
call   1030 <tl880_write_regbits@plt>
mov    %rbx,%rdi
mov    $0x10194,%esi
mov    $0x1,%edx
mov    $0x1,%ecx
mov    $0x1,%r8d
call   1030 <tl880_write_regbits@plt>
mov    %rbx,%rdi
mov    $0x10194,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
call   1030 <tl880_write_regbits@plt>
mov    %rbx,%rdi
mov    $0x10194,%esi
mov    $0x4,%edx
mov    $0x4,%ecx
mov    $0x1,%r8d
call   1030 <tl880_write_regbits@plt>
mov    %rbx,%rdi
mov    $0x10198,%esi
mov    $0x4,%edx
mov    $0x4,%ecx
mov    $0x1,%r8d
pop    %rbx
jmp    1030 <tl880_write_regbits@plt>

LLVM IR (-O0):
%struct.tl880_dev = type { i32 }
define void @tl880_init_wintv_hd_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 65936, i32 27, i32 27, i32 1)
%5 = load %struct.tl880_dev*, %struct.tl880_dev** %2
%6 = call i32 @tl880_write_regbits(%struct.tl880_dev* %5, i32 65936, i32 26, i32 26, i32 1)
%7 = load %struct.tl880_dev*, %struct.tl880_dev** %2
%8 = call i32 @tl880_write_regbits(%struct.tl880_dev* %7, i32 65936, i32 7, i32 0, i32 31)
%9 = load %struct.tl880_dev*, %struct.tl880_dev** %2
%10 = call i32 @tl880_write_regbits(%struct.tl880_dev* %9, i32 65936, i32 0, i32 0, i32 1)
%11 = load %struct.tl880_dev*, %struct.tl880_dev** %2
%12 = call i32 @tl880_write_regbits(%struct.tl880_dev* %11, i32 65936, i32 2, i32 2, i32 1)
%13 = load %struct.tl880_dev*, %struct.tl880_dev** %2
%14 = call i32 @tl880_write_regbits(%struct.tl880_dev* %13, i32 65936, i32 1, i32 1, i32 1)
%15 = load %struct.tl880_dev*, %struct.tl880_dev** %2
%16 = call i32 @tl880_write_regbits(%struct.tl880_dev* %15, i32 65936, i32 3, i32 3, i32 1)
%17 = load %struct.tl880_dev*, %struct.tl880_dev** %2
%18 = call i32 @tl880_write_regbits(%struct.tl880_dev* %17, i32 65940, i32 3, i32 3, i32 1)
%19 = load %struct.tl880_dev*, %struct.tl880_dev** %2
%20 = call i32 @tl880_write_regbits(%struct.tl880_dev* %19, i32 65940, i32 2, i32 2, i32 0)
%21 = load %struct.tl880_dev*, %struct.tl880_dev** %2
%22 = call i32 @tl880_write_regbits(%struct.tl880_dev* %21, i32 65940, i32 1, i32 1, i32 1)
%23 = load %struct.tl880_dev*, %struct.tl880_dev** %2
%24 = call i32 @tl880_write_regbits(%struct.tl880_dev* %23, i32 65940, i32 0, i32 0, i32 0)
%25 = load %struct.tl880_dev*, %struct.tl880_dev** %2
%26 = call i32 @tl880_write_regbits(%struct.tl880_dev* %25, i32 65940, i32 4, i32 4, i32 1)
%27 = load %struct.tl880_dev*, %struct.tl880_dev** %2
%28 = call i32 @tl880_write_regbits(%struct.tl880_dev* %27, i32 65944, i32 4, i32 4, i32 1)
ret void
}

LLVM IR (-O2):
%struct.tl880_dev = type { i32 }
define void @tl880_init_wintv_hd_i2c(%struct.tl880_dev* %0) {
%2 = tail call i32 @tl880_write_regbits(%struct.tl880_dev* %0, i32 65936, i32 27, i32 27, i32 1)
%3 = tail call i32 @tl880_write_regbits(%struct.tl880_dev* %0, i32 65936, i32 26, i32 26, i32 1)
%4 = tail call i32 @tl880_write_regbits(%struct.tl880_dev* %0, i32 65936, i32 7, i32 0, i32 31)
%5 = tail call i32 @tl880_write_regbits(%struct.tl880_dev* %0, i32 65936, i32 0, i32 0, i32 1)
%6 = tail call i32 @tl880_write_regbits(%struct.tl880_dev* %0, i32 65936, i32 2, i32 2, i32 1)
%7 = tail call i32 @tl880_write_regbits(%struct.tl880_dev* %0, i32 65936, i32 1, i32 1, i32 1)
%8 = tail call i32 @tl880_write_regbits(%struct.tl880_dev* %0, i32 65936, i32 3, i32 3, i32 1)
%9 = tail call i32 @tl880_write_regbits(%struct.tl880_dev* %0, i32 65940, i32 3, i32 3, i32 1)
%10 = tail call i32 @tl880_write_regbits(%struct.tl880_dev* %0, i32 65940, i32 2, i32 2, i32 0)
%11 = tail call i32 @tl880_write_regbits(%struct.tl880_dev* %0, i32 65940, i32 1, i32 1, i32 1)
%12 = tail call i32 @tl880_write_regbits(%struct.tl880_dev* %0, i32 65940, i32 0, i32 0, i32 0)
%13 = tail call i32 @tl880_write_regbits(%struct.tl880_dev* %0, i32 65940, i32 4, i32 4, i32 1)
%14 = tail call i32 @tl880_write_regbits(%struct.tl880_dev* %0, i32 65944, i32 4, i32 4, i32 1)
ret void
}