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

/* Variables and functions */
int /*<<< orphan*/ ath_hal_restore_default_cck_weak_det(struct ath_hal *);
int /*<<< orphan*/ ath_hal_restore_default_noise_immunity(struct ath_hal *);
int /*<<< orphan*/ ath_hal_restore_default_ofdm_weak_det(struct ath_hal *);
int /*<<< orphan*/ ath_hal_restore_default_sig_firstep(struct ath_hal *);
int /*<<< orphan*/ ath_hal_restore_default_spur_immunity(struct ath_hal *);
void ath_hal_restore_default_intmit(struct ath_hal *ah) {
  ath_hal_restore_default_noise_immunity(ah);
  ath_hal_restore_default_ofdm_weak_det(ah);
  ath_hal_restore_default_cck_weak_det(ah);
  ath_hal_restore_default_sig_firstep(ah);
  ath_hal_restore_default_spur_immunity(ah);
}


x86 assembly (clang, -O0):
<ath_hal_restore_default_intmit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <ath_hal_restore_default_noise_immunity@plt>
mov    -0x8(%rbp),%rdi
call   1060 <ath_hal_restore_default_ofdm_weak_det@plt>
mov    -0x8(%rbp),%rdi
call   1040 <ath_hal_restore_default_cck_weak_det@plt>
mov    -0x8(%rbp),%rdi
call   1050 <ath_hal_restore_default_sig_firstep@plt>
mov    -0x8(%rbp),%rdi
call   1070 <ath_hal_restore_default_spur_immunity@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ath_hal_restore_default_intmit>:
push   %rbx
mov    %rdi,%rbx
call   1030 <ath_hal_restore_default_noise_immunity@plt>
mov    %rbx,%rdi
call   1060 <ath_hal_restore_default_ofdm_weak_det@plt>
mov    %rbx,%rdi
call   1040 <ath_hal_restore_default_cck_weak_det@plt>
mov    %rbx,%rdi
call   1050 <ath_hal_restore_default_sig_firstep@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1070 <ath_hal_restore_default_spur_immunity@plt>

LLVM IR (-O0):
%struct.ath_hal = type { i32 }
define void @ath_hal_restore_default_intmit(%struct.ath_hal* %0) {
%2 = alloca %struct.ath_hal*
store %struct.ath_hal* %0, %struct.ath_hal** %2
%3 = load %struct.ath_hal*, %struct.ath_hal** %2
%4 = call i32 @ath_hal_restore_default_noise_immunity(%struct.ath_hal* %3)
%5 = load %struct.ath_hal*, %struct.ath_hal** %2
%6 = call i32 @ath_hal_restore_default_ofdm_weak_det(%struct.ath_hal* %5)
%7 = load %struct.ath_hal*, %struct.ath_hal** %2
%8 = call i32 @ath_hal_restore_default_cck_weak_det(%struct.ath_hal* %7)
%9 = load %struct.ath_hal*, %struct.ath_hal** %2
%10 = call i32 @ath_hal_restore_default_sig_firstep(%struct.ath_hal* %9)
%11 = load %struct.ath_hal*, %struct.ath_hal** %2
%12 = call i32 @ath_hal_restore_default_spur_immunity(%struct.ath_hal* %11)
ret void
}

LLVM IR (-O2):
%struct.ath_hal = type { i32 }
define void @ath_hal_restore_default_intmit(%struct.ath_hal* %0) {
%2 = tail call i32 @ath_hal_restore_default_noise_immunity(%struct.ath_hal* %0)
%3 = tail call i32 @ath_hal_restore_default_ofdm_weak_det(%struct.ath_hal* %0)
%4 = tail call i32 @ath_hal_restore_default_cck_weak_det(%struct.ath_hal* %0)
%5 = tail call i32 @ath_hal_restore_default_sig_firstep(%struct.ath_hal* %0)
%6 = tail call i32 @ath_hal_restore_default_spur_immunity(%struct.ath_hal* %0)
ret void
}