	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_cmn_spectral_scan_trigger ## -- Begin function ath9k_cmn_spectral_scan_trigger
	.p2align	4, 0x90
_ath9k_cmn_spectral_scan_trigger:       ## @ath9k_cmn_spectral_scan_trigger
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rsi), %r15
	movq	_CONFIG_ATH9K_TX99@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_1
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r15, %rdi
	callq	_ath9k_hw_ops
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.2:
	cmpl	$0, 4(%rbx)
	je	LBB0_3
## %bb.5:
	movq	%r14, %rdi
	callq	_ath_ps_ops
	movq	%r14, %rdi
	callq	*8(%rax)
	movq	%r15, %rdi
	callq	_ath9k_hw_getrxfilter
	movq	_ATH9K_RX_FILTER_PHYRADAR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_ATH9K_RX_FILTER_PHYERR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ath9k_hw_setrxfilter
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ath9k_cmn_spectral_scan_config
	movq	%r15, %rdi
	callq	_ath9k_hw_ops
	movq	%r15, %rdi
	callq	*(%rax)
	movq	%r14, %rdi
	callq	_ath_ps_ops
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*(%rax)                         ## TAILCALL
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_ATH9K_TX99,4,2          ## @CONFIG_ATH9K_TX99
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"spectrum analyzer not implemented on this hardware\n"

	.comm	_ATH9K_RX_FILTER_PHYRADAR,4,2   ## @ATH9K_RX_FILTER_PHYRADAR
	.comm	_ATH9K_RX_FILTER_PHYERR,4,2     ## @ATH9K_RX_FILTER_PHYERR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_cmn_spectral_scan_trigger ; -- Begin function ath9k_cmn_spectral_scan_trigger
	.p2align	2
_ath9k_cmn_spectral_scan_trigger:       ; @ath9k_cmn_spectral_scan_trigger
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x19, x0
	ldr	x20, [x1, #8]
Lloh0:
	adrp	x8, _CONFIG_ATH9K_TX99@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONFIG_ATH9K_TX99@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	x0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x0, x20
	bl	_ath9k_hw_ops
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_1
; %bb.4:
	mov	x0, x19
	bl	_ath_ps_ops
	ldr	x8, [x0, #8]
	mov	x0, x19
	blr	x8
	mov	x0, x20
	bl	_ath9k_hw_getrxfilter
Lloh3:
	adrp	x8, _ATH9K_RX_FILTER_PHYRADAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH9K_RX_FILTER_PHYRADAR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh6:
	adrp	x9, _ATH9K_RX_FILTER_PHYERR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ATH9K_RX_FILTER_PHYERR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x20
	bl	_ath9k_hw_setrxfilter
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x21
	bl	_ath9k_cmn_spectral_scan_config
	mov	x0, x20
	bl	_ath9k_hw_ops
	ldr	x8, [x0]
	mov	x0, x20
	blr	x8
	mov	x0, x19
	bl	_ath_ps_ops
	ldr	x1, [x0]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	br	x1
LBB0_5:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ath_err
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_ATH9K_TX99,4,2          ; @CONFIG_ATH9K_TX99
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"spectrum analyzer not implemented on this hardware\n"

	.comm	_ATH9K_RX_FILTER_PHYRADAR,4,2   ; @ATH9K_RX_FILTER_PHYRADAR
	.comm	_ATH9K_RX_FILTER_PHYERR,4,2     ; @ATH9K_RX_FILTER_PHYERR
.subsections_via_symbols
