	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_hw_set_clockrate
_ath9k_hw_set_clockrate:                ## @ath9k_hw_set_clockrate
	.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	%rdi, %rbx
	callq	_ath9k_hw_common
	movq	%rax, %r14
	movq	8(%rbx), %r15
	movq	%rbx, %rdi
	callq	_AR_SREV_9287
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_AR_SREV_9287_13_OR_LATER
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	$117, %ebx
	movl	$117, %ecx
	testq	%r15, %r15
	jne	LBB0_11
	jmp	LBB0_12
LBB0_3:
	testq	%r15, %r15
	je	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	callq	_IS_CHAN_2GHZ
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_ATH9K_CLOCK_RATE_2GHZ_OFDM@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	_ATH9K_CLOCK_RATE_CCK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jmp	LBB0_12
LBB0_7:
	movq	_ATH9K_HW_CAP_FASTCLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_9
## %bb.8:
	movq	_ATH9K_CLOCK_FAST_RATE_5GHZ_OFDM@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_ATH9K_CLOCK_RATE_5GHZ_OFDM@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %ebx
LBB0_11:
	movq	%r15, %rdi
	callq	_IS_CHAN_HT40
	testq	%rax, %rax
	setne	%cl
	shll	%cl, %ebx
	movq	%r15, %rdi
	callq	_IS_CHAN_HALF_RATE
	testq	%rax, %rax
	setne	%cl
	shrl	%cl, %ebx
	movq	%r15, %rdi
	callq	_IS_CHAN_QUARTER_RATE
	movl	%ebx, %ecx
	shrl	$2, %ecx
	testq	%rax, %rax
	cmovel	%ebx, %ecx
LBB0_12:
	movl	%ecx, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH9K_CLOCK_RATE_CCK,4,2       ## @ATH9K_CLOCK_RATE_CCK
	.comm	_ATH9K_CLOCK_RATE_2GHZ_OFDM,4,2 ## @ATH9K_CLOCK_RATE_2GHZ_OFDM
	.comm	_ATH9K_HW_CAP_FASTCLOCK,4,2     ## @ATH9K_HW_CAP_FASTCLOCK
	.comm	_ATH9K_CLOCK_FAST_RATE_5GHZ_OFDM,4,2 ## @ATH9K_CLOCK_FAST_RATE_5GHZ_OFDM
	.comm	_ATH9K_CLOCK_RATE_5GHZ_OFDM,4,2 ## @ATH9K_CLOCK_RATE_5GHZ_OFDM
	.no_dead_strip	_ath9k_hw_set_clockrate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_hw_set_clockrate
_ath9k_hw_set_clockrate:                ; @ath9k_hw_set_clockrate
	.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, x0
	bl	_ath9k_hw_common
	mov	x19, x0
	ldr	x20, [x21, #8]
	mov	x0, x21
	bl	_AR_SREV_9287
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_AR_SREV_9287_13_OR_LATER
	cbz	x0, LBB0_3
; %bb.2:
	mov	w21, #117
	cbnz	x20, LBB0_11
	b	LBB0_12
LBB0_3:
	cbz	x20, LBB0_6
; %bb.4:
	mov	x0, x20
	bl	_IS_CHAN_2GHZ
	cbz	x0, LBB0_7
; %bb.5:
Lloh0:
	adrp	x8, _ATH9K_CLOCK_RATE_2GHZ_OFDM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH9K_CLOCK_RATE_2GHZ_OFDM@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
Lloh2:
	adrp	x8, _ATH9K_CLOCK_RATE_CCK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ATH9K_CLOCK_RATE_CCK@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	b	LBB0_12
LBB0_7:
	ldr	w8, [x21]
Lloh5:
	adrp	x9, _ATH9K_HW_CAP_FASTCLOCK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ATH9K_HW_CAP_FASTCLOCK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
Lloh8:
	adrp	x8, _ATH9K_CLOCK_FAST_RATE_5GHZ_OFDM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATH9K_CLOCK_FAST_RATE_5GHZ_OFDM@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh10:
	adrp	x8, _ATH9K_CLOCK_RATE_5GHZ_OFDM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ATH9K_CLOCK_RATE_5GHZ_OFDM@GOTPAGEOFF]
LBB0_10:
	ldr	w21, [x8]
LBB0_11:
	mov	x0, x20
	bl	_IS_CHAN_HT40
	cmp	x0, #0
	cset	w8, ne
	lsl	w21, w21, w8
	mov	x0, x20
	bl	_IS_CHAN_HALF_RATE
	cmp	x0, #0
	cset	w8, ne
	lsr	w21, w21, w8
	mov	x0, x20
	bl	_IS_CHAN_QUARTER_RATE
	lsr	w8, w21, #2
	cmp	x0, #0
	csel	w21, w21, w8, eq
LBB0_12:
	str	w21, [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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH9K_CLOCK_RATE_CCK,4,2       ; @ATH9K_CLOCK_RATE_CCK
	.comm	_ATH9K_CLOCK_RATE_2GHZ_OFDM,4,2 ; @ATH9K_CLOCK_RATE_2GHZ_OFDM
	.comm	_ATH9K_HW_CAP_FASTCLOCK,4,2     ; @ATH9K_HW_CAP_FASTCLOCK
	.comm	_ATH9K_CLOCK_FAST_RATE_5GHZ_OFDM,4,2 ; @ATH9K_CLOCK_FAST_RATE_5GHZ_OFDM
	.comm	_ATH9K_CLOCK_RATE_5GHZ_OFDM,4,2 ; @ATH9K_CLOCK_RATE_5GHZ_OFDM
	.no_dead_strip	_ath9k_hw_set_clockrate
.subsections_via_symbols
