	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_cmn_spectral_scan_config ## -- Begin function ath9k_cmn_spectral_scan_config
	.p2align	4, 0x90
_ath9k_cmn_spectral_scan_config:        ## @ath9k_cmn_spectral_scan_config
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	16(%rsi), %r12
	movq	%r12, %rdi
	callq	_ath9k_hw_ops
	cmpl	$0, 8(%rax)
	je	LBB0_6
## %bb.1:
	leal	-128(%r14), %edx
	cmpl	$3, %edx
	ja	LBB0_7
## %bb.2:
	movl	$1, %eax
	xorl	%ecx, %ecx
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_3:
	xorl	%eax, %eax
LBB0_4:
	movl	%eax, 8(%rbx)
	movl	$1, %ecx
LBB0_5:
	leaq	4(%rbx), %r13
	movl	%ecx, 4(%rbx)
	movq	%r15, %rdi
	callq	_ath_ps_ops
	movq	%r15, %rdi
	callq	*8(%rax)
	movq	%r12, %rdi
	callq	_ath9k_hw_ops
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	*(%rax)
	movq	%r15, %rdi
	callq	_ath_ps_ops
	movq	%r15, %rdi
	callq	*(%rax)
	movl	%r14d, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_ath_err
LBB0_7:
	movl	$-1, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"spectrum analyzer not implemented on this hardware\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_cmn_spectral_scan_config ; -- Begin function ath9k_cmn_spectral_scan_config
	.p2align	2
_ath9k_cmn_spectral_scan_config:        ; @ath9k_cmn_spectral_scan_config
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x1, #16]
	mov	x0, x22
	bl	_ath9k_hw_ops
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_6
; %bb.1:
	sub	w10, w19, #128
	cmp	w10, #3
	b.hi	LBB0_7
; %bb.2:
	mov	w8, #0
	mov	w9, #1
Lloh0:
	adrp	x11, lJTI0_0@PAGE
Lloh1:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_3
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_3:
	mov	w9, #0
LBB0_4:
	str	w9, [x20, #8]
	mov	w8, #1
LBB0_5:
	mov	x23, x20
	str	w8, [x23, #4]!
	mov	x0, x21
	bl	_ath_ps_ops
	ldr	x8, [x0, #8]
	mov	x0, x21
	blr	x8
	mov	x0, x22
	bl	_ath9k_hw_ops
	ldr	x8, [x0]
	mov	x0, x22
	mov	x1, x23
	blr	x8
	mov	x0, x21
	bl	_ath_ps_ops
	ldr	x8, [x0]
	mov	x0, x21
	blr	x8
	mov	w0, #0
	str	w19, [x20]
	b	LBB0_8
LBB0_6:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_ath_err
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"spectrum analyzer not implemented on this hardware\n"

.subsections_via_symbols
