#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 lu_phy_attr {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ add_mode_ait_device_configuration(struct lu_phy_attr *);
int /*<<< orphan*/ add_mode_control(struct lu_phy_attr *);
int /*<<< orphan*/ add_mode_data_compression(struct lu_phy_attr *);
int /*<<< orphan*/ add_mode_device_configuration(struct lu_phy_attr *);
int /*<<< orphan*/ add_mode_disconnect_reconnect(struct lu_phy_attr *);
int /*<<< orphan*/ add_mode_information_exception(struct lu_phy_attr *);
int /*<<< orphan*/ add_mode_medium_partition(struct lu_phy_attr *);
void init_ait_mode_pages(struct lu_phy_attr *lu) {
  add_mode_disconnect_reconnect(lu);
  add_mode_control(lu);
  add_mode_data_compression(lu);
  add_mode_device_configuration(lu);
  add_mode_medium_partition(lu);
  add_mode_information_exception(lu);
  add_mode_ait_device_configuration(lu);
}


x86 assembly (clang, -O0):
<init_ait_mode_pages>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1090 <add_mode_disconnect_reconnect@plt>
mov    -0x8(%rbp),%rdi
call   1060 <add_mode_control@plt>
mov    -0x8(%rbp),%rdi
call   1040 <add_mode_data_compression@plt>
mov    -0x8(%rbp),%rdi
call   1070 <add_mode_device_configuration@plt>
mov    -0x8(%rbp),%rdi
call   1030 <add_mode_medium_partition@plt>
mov    -0x8(%rbp),%rdi
call   1080 <add_mode_information_exception@plt>
mov    -0x8(%rbp),%rdi
call   1050 <add_mode_ait_device_configuration@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_ait_mode_pages>:
push   %rbx
mov    %rdi,%rbx
call   1090 <add_mode_disconnect_reconnect@plt>
mov    %rbx,%rdi
call   1060 <add_mode_control@plt>
mov    %rbx,%rdi
call   1040 <add_mode_data_compression@plt>
mov    %rbx,%rdi
call   1070 <add_mode_device_configuration@plt>
mov    %rbx,%rdi
call   1030 <add_mode_medium_partition@plt>
mov    %rbx,%rdi
call   1080 <add_mode_information_exception@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1050 <add_mode_ait_device_configuration@plt>

LLVM IR (-O0):
%struct.lu_phy_attr = type { i32 }
define void @init_ait_mode_pages(%struct.lu_phy_attr* %0) {
%2 = alloca %struct.lu_phy_attr*
store %struct.lu_phy_attr* %0, %struct.lu_phy_attr** %2
%3 = load %struct.lu_phy_attr*, %struct.lu_phy_attr** %2
%4 = call i32 @add_mode_disconnect_reconnect(%struct.lu_phy_attr* %3)
%5 = load %struct.lu_phy_attr*, %struct.lu_phy_attr** %2
%6 = call i32 @add_mode_control(%struct.lu_phy_attr* %5)
%7 = load %struct.lu_phy_attr*, %struct.lu_phy_attr** %2
%8 = call i32 @add_mode_data_compression(%struct.lu_phy_attr* %7)
%9 = load %struct.lu_phy_attr*, %struct.lu_phy_attr** %2
%10 = call i32 @add_mode_device_configuration(%struct.lu_phy_attr* %9)
%11 = load %struct.lu_phy_attr*, %struct.lu_phy_attr** %2
%12 = call i32 @add_mode_medium_partition(%struct.lu_phy_attr* %11)
%13 = load %struct.lu_phy_attr*, %struct.lu_phy_attr** %2
%14 = call i32 @add_mode_information_exception(%struct.lu_phy_attr* %13)
%15 = load %struct.lu_phy_attr*, %struct.lu_phy_attr** %2
%16 = call i32 @add_mode_ait_device_configuration(%struct.lu_phy_attr* %15)
ret void
}

LLVM IR (-O2):
%struct.lu_phy_attr = type { i32 }
define void @init_ait_mode_pages(%struct.lu_phy_attr* %0) {
%2 = tail call i32 @add_mode_disconnect_reconnect(%struct.lu_phy_attr* %0)
%3 = tail call i32 @add_mode_control(%struct.lu_phy_attr* %0)
%4 = tail call i32 @add_mode_data_compression(%struct.lu_phy_attr* %0)
%5 = tail call i32 @add_mode_device_configuration(%struct.lu_phy_attr* %0)
%6 = tail call i32 @add_mode_medium_partition(%struct.lu_phy_attr* %0)
%7 = tail call i32 @add_mode_information_exception(%struct.lu_phy_attr* %0)
%8 = tail call i32 @add_mode_ait_device_configuration(%struct.lu_phy_attr* %0)
ret void
}