	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_eeprom_read_spur_chans
_ath5k_eeprom_read_spur_chans:          ## @ath5k_eeprom_read_spur_chans
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	callq	_AR5K_EEPROM_CTL
	movq	%rax, %r15
	movq	(%r14), %rdi
	callq	_AR5K_EEPROM_N_CTLS
	movq	%rax, %r12
	movq	(%r14), %rax
	movq	_AR5K_EEPROM_VERSION_5_3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_1
## %bb.5:
	movq	_AR5K_EEPROM_NO_SPUR@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	8(%r14), %rdx
	movq	(%rdx), %rdx
	movq	%rcx, (%rdx)
	movq	_AR5K_EEPROM_5413_SPUR_CHAN_1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%r14), %rdx
	movq	(%rdx), %rdx
	movq	%rcx, 8(%rdx)
	movq	_AR5K_EEPROM_5413_SPUR_CHAN_2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%r14), %rdx
	movq	8(%rdx), %rdx
	movq	%rcx, 8(%rdx)
	movq	(%rax), %rax
	movq	8(%r14), %rcx
	movq	16(%rcx), %rcx
	movq	%rax, 8(%rcx)
	jmp	LBB0_4
LBB0_1:
	movq	_AR5K_EEPROM_N_SPUR_CHANS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_4
## %bb.2:
	addq	%r15, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_AR5K_EEPROM_READ
	movslq	(%r14), %rdi
	addq	%r12, %rdi
	callq	_AR5K_EEPROM_READ
	incq	%r12
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_3
LBB0_4:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_EEPROM_VERSION_5_3,8,3    ## @AR5K_EEPROM_VERSION_5_3
	.comm	_AR5K_EEPROM_NO_SPUR,8,3        ## @AR5K_EEPROM_NO_SPUR
	.comm	_AR5K_EEPROM_5413_SPUR_CHAN_1,8,3 ## @AR5K_EEPROM_5413_SPUR_CHAN_1
	.comm	_AR5K_EEPROM_5413_SPUR_CHAN_2,8,3 ## @AR5K_EEPROM_5413_SPUR_CHAN_2
	.comm	_AR5K_EEPROM_N_SPUR_CHANS,4,2   ## @AR5K_EEPROM_N_SPUR_CHANS
	.no_dead_strip	_ath5k_eeprom_read_spur_chans
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_eeprom_read_spur_chans
_ath5k_eeprom_read_spur_chans:          ; @ath5k_eeprom_read_spur_chans
	.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	x19, x0
	ldr	x0, [x0]
	bl	_AR5K_EEPROM_CTL
	mov	x20, x0
	ldr	x0, [x19]
	bl	_AR5K_EEPROM_N_CTLS
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _AR5K_EEPROM_VERSION_5_3@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AR5K_EEPROM_VERSION_5_3@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _AR5K_EEPROM_NO_SPUR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR5K_EEPROM_NO_SPUR@GOTPAGEOFF]
	ldr	x9, [x8]
	ldr	x10, [x19, #8]
	ldr	x10, [x10]
	str	x9, [x10]
Lloh5:
	adrp	x9, _AR5K_EEPROM_5413_SPUR_CHAN_1@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AR5K_EEPROM_5413_SPUR_CHAN_1@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	x10, [x19, #8]
	ldr	x10, [x10]
	str	x9, [x10, #8]
Lloh8:
	adrp	x9, _AR5K_EEPROM_5413_SPUR_CHAN_2@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AR5K_EEPROM_5413_SPUR_CHAN_2@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	x10, [x19, #8]
	ldr	x10, [x10, #8]
	str	x9, [x10, #8]
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	ldr	x9, [x9, #16]
	str	x8, [x9, #8]
	b	LBB0_5
LBB0_2:
Lloh11:
	adrp	x21, _AR5K_EEPROM_N_SPUR_CHANS@GOTPAGE
Lloh12:
	ldr	x21, [x21, _AR5K_EEPROM_N_SPUR_CHANS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x22, #0
	add	x20, x0, x20
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x19, x20, x22
	mov	x0, x19
	bl	_AR5K_EEPROM_READ
	ldrsw	x8, [x21]
	add	x0, x19, x8
	bl	_AR5K_EEPROM_READ
	ldr	w8, [x21]
	add	x22, x22, #1
	cmp	w22, w8
	b.lt	LBB0_4
LBB0_5:
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_EEPROM_VERSION_5_3,8,3    ; @AR5K_EEPROM_VERSION_5_3
	.comm	_AR5K_EEPROM_NO_SPUR,8,3        ; @AR5K_EEPROM_NO_SPUR
	.comm	_AR5K_EEPROM_5413_SPUR_CHAN_1,8,3 ; @AR5K_EEPROM_5413_SPUR_CHAN_1
	.comm	_AR5K_EEPROM_5413_SPUR_CHAN_2,8,3 ; @AR5K_EEPROM_5413_SPUR_CHAN_2
	.comm	_AR5K_EEPROM_N_SPUR_CHANS,4,2   ; @AR5K_EEPROM_N_SPUR_CHANS
	.no_dead_strip	_ath5k_eeprom_read_spur_chans
.subsections_via_symbols
