#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*/ GB_CameraUpdateClocksCounterReference(int);
int /*<<< orphan*/ GB_DMAUpdateClocksCounterReference(int);
int /*<<< orphan*/ GB_PPUUpdateClocksCounterReference(int);
int /*<<< orphan*/ GB_SerialUpdateClocksCounterReference(int);
int /*<<< orphan*/ GB_SoundUpdateClocksCounterReference(int);
int /*<<< orphan*/ GB_TimersUpdateClocksCounterReference(int);
void GB_UpdateCounterToClocks(int reference_clocks) {
  GB_TimersUpdateClocksCounterReference(reference_clocks);
  GB_PPUUpdateClocksCounterReference(reference_clocks);
  GB_SerialUpdateClocksCounterReference(reference_clocks);
  GB_SoundUpdateClocksCounterReference(reference_clocks);
  GB_DMAUpdateClocksCounterReference(reference_clocks);
  GB_CameraUpdateClocksCounterReference(reference_clocks);
}


x86 assembly (clang, -O0):
<GB_UpdateCounterToClocks>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <GB_TimersUpdateClocksCounterReference@plt>
mov    -0x4(%rbp),%edi
call   1080 <GB_PPUUpdateClocksCounterReference@plt>
mov    -0x4(%rbp),%edi
call   1060 <GB_SerialUpdateClocksCounterReference@plt>
mov    -0x4(%rbp),%edi
call   1040 <GB_SoundUpdateClocksCounterReference@plt>
mov    -0x4(%rbp),%edi
call   1070 <GB_DMAUpdateClocksCounterReference@plt>
mov    -0x4(%rbp),%edi
call   1050 <GB_CameraUpdateClocksCounterReference@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GB_UpdateCounterToClocks>:
push   %rbx
mov    %edi,%ebx
call   1030 <GB_TimersUpdateClocksCounterReference@plt>
mov    %ebx,%edi
call   1080 <GB_PPUUpdateClocksCounterReference@plt>
mov    %ebx,%edi
call   1060 <GB_SerialUpdateClocksCounterReference@plt>
mov    %ebx,%edi
call   1040 <GB_SoundUpdateClocksCounterReference@plt>
mov    %ebx,%edi
call   1070 <GB_DMAUpdateClocksCounterReference@plt>
mov    %ebx,%edi
pop    %rbx
jmp    1050 <GB_CameraUpdateClocksCounterReference@plt>

LLVM IR (-O0):
define void @GB_UpdateCounterToClocks(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @GB_TimersUpdateClocksCounterReference(i32 %3)
%5 = load i32, i32* %2
%6 = call i32 @GB_PPUUpdateClocksCounterReference(i32 %5)
%7 = load i32, i32* %2
%8 = call i32 @GB_SerialUpdateClocksCounterReference(i32 %7)
%9 = load i32, i32* %2
%10 = call i32 @GB_SoundUpdateClocksCounterReference(i32 %9)
%11 = load i32, i32* %2
%12 = call i32 @GB_DMAUpdateClocksCounterReference(i32 %11)
%13 = load i32, i32* %2
%14 = call i32 @GB_CameraUpdateClocksCounterReference(i32 %13)
ret void
}

LLVM IR (-O2):
define void @GB_UpdateCounterToClocks(i32 %0) {
%2 = tail call i32 @GB_TimersUpdateClocksCounterReference(i32 %0)
%3 = tail call i32 @GB_PPUUpdateClocksCounterReference(i32 %0)
%4 = tail call i32 @GB_SerialUpdateClocksCounterReference(i32 %0)
%5 = tail call i32 @GB_SoundUpdateClocksCounterReference(i32 %0)
%6 = tail call i32 @GB_DMAUpdateClocksCounterReference(i32 %0)
%7 = tail call i32 @GB_CameraUpdateClocksCounterReference(i32 %0)
ret void
}