#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_control_extension(struct lu_phy_attr *);
int /*<<< orphan*/ add_mode_device_capabilities(struct lu_phy_attr *);
int /*<<< orphan*/ add_mode_disconnect_reconnect(struct lu_phy_attr *);
int /*<<< orphan*/ add_mode_element_address_assignment(struct lu_phy_attr *);
int /*<<< orphan*/ add_mode_information_exception(struct lu_phy_attr *);
int /*<<< orphan*/ add_mode_power_condition(struct lu_phy_attr *);
int /*<<< orphan*/ add_mode_transport_geometry(struct lu_phy_attr *);
void init_smc_mode_pages(struct lu_phy_attr *lu) {
  add_mode_disconnect_reconnect(lu);
  add_mode_control_extension(lu);
  add_mode_power_condition(lu);
  add_mode_information_exception(lu);
  add_mode_element_address_assignment(lu);
  add_mode_transport_geometry(lu);
  add_mode_device_capabilities(lu);
}


x86 assembly (clang, -O0):
<init_smc_mode_pages>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1080 <add_mode_disconnect_reconnect@plt>
mov    -0x8(%rbp),%rdi
call   1050 <add_mode_control_extension@plt>
mov    -0x8(%rbp),%rdi
call   1060 <add_mode_power_condition@plt>
mov    -0x8(%rbp),%rdi
call   1070 <add_mode_information_exception@plt>
mov    -0x8(%rbp),%rdi
call   1040 <add_mode_element_address_assignment@plt>
mov    -0x8(%rbp),%rdi
call   1090 <add_mode_transport_geometry@plt>
mov    -0x8(%rbp),%rdi
call   1030 <add_mode_device_capabilities@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_smc_mode_pages>:
push   %rbx
mov    %rdi,%rbx
call   1080 <add_mode_disconnect_reconnect@plt>
mov    %rbx,%rdi
call   1050 <add_mode_control_extension@plt>
mov    %rbx,%rdi
call   1060 <add_mode_power_condition@plt>
mov    %rbx,%rdi
call   1070 <add_mode_information_exception@plt>
mov    %rbx,%rdi
call   1040 <add_mode_element_address_assignment@plt>
mov    %rbx,%rdi
call   1090 <add_mode_transport_geometry@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <add_mode_device_capabilities@plt>

LLVM IR (-O0):
%struct.lu_phy_attr = type { i32 }
define void @init_smc_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_extension(%struct.lu_phy_attr* %5)
%7 = load %struct.lu_phy_attr*, %struct.lu_phy_attr** %2
%8 = call i32 @add_mode_power_condition(%struct.lu_phy_attr* %7)
%9 = load %struct.lu_phy_attr*, %struct.lu_phy_attr** %2
%10 = call i32 @add_mode_information_exception(%struct.lu_phy_attr* %9)
%11 = load %struct.lu_phy_attr*, %struct.lu_phy_attr** %2
%12 = call i32 @add_mode_element_address_assignment(%struct.lu_phy_attr* %11)
%13 = load %struct.lu_phy_attr*, %struct.lu_phy_attr** %2
%14 = call i32 @add_mode_transport_geometry(%struct.lu_phy_attr* %13)
%15 = load %struct.lu_phy_attr*, %struct.lu_phy_attr** %2
%16 = call i32 @add_mode_device_capabilities(%struct.lu_phy_attr* %15)
ret void
}

LLVM IR (-O2):
%struct.lu_phy_attr = type { i32 }
define void @init_smc_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_extension(%struct.lu_phy_attr* %0)
%4 = tail call i32 @add_mode_power_condition(%struct.lu_phy_attr* %0)
%5 = tail call i32 @add_mode_information_exception(%struct.lu_phy_attr* %0)
%6 = tail call i32 @add_mode_element_address_assignment(%struct.lu_phy_attr* %0)
%7 = tail call i32 @add_mode_transport_geometry(%struct.lu_phy_attr* %0)
%8 = tail call i32 @add_mode_device_capabilities(%struct.lu_phy_attr* %0)
ret void
}