	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_hw_do_fastcc
_ath9k_hw_do_fastcc:                    ## @ath9k_hw_do_fastcc
	.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	%rsi, %r14
	movq	%rdi, %r12
	callq	_ath9k_hw_common
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_AR_SREV_9280
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_ATH_PCI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
LBB0_2:
	cmpq	$0, 16(%r12)
	je	LBB0_3
LBB0_19:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_20:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.4:
	movq	(%r14), %rcx
	cmpq	(%rax), %rcx
	je	LBB0_19
## %bb.5:
	movl	8(%rax), %ecx
	movl	8(%r14), %eax
	movl	%eax, %edx
	orl	%ecx, %edx
	movq	_CHANNEL_HALF@GOTPCREL(%rip), %rsi
	movq	_CHANNEL_QUARTER@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	(%rsi), %edi
	testl	%edx, %edi
	jne	LBB0_19
## %bb.6:
	movq	_ATH9K_HW_CAP_FCC_BAND_SWITCH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, 24(%r12)
	je	LBB0_7
LBB0_8:
	movq	%r12, %rdi
	callq	_ath9k_hw_check_alive
	testl	%eax, %eax
	je	LBB0_19
## %bb.9:
	movq	%r12, %rdi
	callq	_AR_SREV_9462
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	movq	8(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.11:
	movq	_TXIQCAL_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_19
## %bb.12:
	movq	_TXCLCAL_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r12), %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_19
## %bb.13:
	movq	_RTT_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r12), %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_19
LBB0_14:
	movq	_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r12), %rax
	movq	(%rax), %rcx
	movq	(%r14), %r8
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_ath_dbg
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_ath9k_hw_channel_change
	testl	%eax, %eax
	je	LBB0_19
## %bb.15:
	movq	%r12, %rdi
	callq	_ath9k_hw_mci_is_enabled
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_ar9003_mci_2g5g_switch
LBB0_17:
	movq	(%r12), %rsi
	movq	%r12, %rdi
	callq	_ath9k_hw_loadnf
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_ath9k_hw_start_nfcal
	movq	%r12, %rdi
	callq	_AR_SREV_9271
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_20
## %bb.18:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_ar9002_hw_load_ani_reg
	jmp	LBB0_20
LBB0_7:
	xorl	%ecx, %eax
	movq	_CHANNEL_HT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	testl	%ecx, %eax
	jne	LBB0_19
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH_PCI,8,3                    ## @ATH_PCI
	.comm	_CHANNEL_HALF,4,2               ## @CHANNEL_HALF
	.comm	_CHANNEL_QUARTER,4,2            ## @CHANNEL_QUARTER
	.comm	_ATH9K_HW_CAP_FCC_BAND_SWITCH,4,2 ## @ATH9K_HW_CAP_FCC_BAND_SWITCH
	.comm	_CHANNEL_HT,4,2                 ## @CHANNEL_HT
	.comm	_TXIQCAL_DONE,4,2               ## @TXIQCAL_DONE
	.comm	_TXCLCAL_DONE,4,2               ## @TXCLCAL_DONE
	.comm	_RTT_DONE,4,2                   ## @RTT_DONE
	.comm	_RESET,4,2                      ## @RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FastChannelChange for %d -> %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ath9k_hw_do_fastcc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_hw_do_fastcc
_ath9k_hw_do_fastcc:                    ; @ath9k_hw_do_fastcc
	.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, x1
	mov	x20, x0
	bl	_ath9k_hw_common
	mov	x21, x0
	mov	x0, x20
	bl	_AR_SREV_9280
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x21]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _ATH_PCI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATH_PCI@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
LBB0_2:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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_5:
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.6:
	ldr	x9, [x19]
	ldr	x10, [x8]
	cmp	x9, x10
	b.eq	LBB0_3
; %bb.7:
	ldr	w8, [x8, #8]
	ldr	w9, [x19, #8]
	orr	w10, w9, w8
Lloh6:
	adrp	x11, _CHANNEL_HALF@GOTPAGE
Lloh7:
	ldr	x11, [x11, _CHANNEL_HALF@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
Lloh9:
	adrp	x12, _CHANNEL_QUARTER@GOTPAGE
Lloh10:
	ldr	x12, [x12, _CHANNEL_QUARTER@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
	orr	w11, w12, w11
	tst	w11, w10
	b.ne	LBB0_3
; %bb.8:
	ldr	w10, [x20, #24]
Lloh12:
	adrp	x11, _ATH9K_HW_CAP_FCC_BAND_SWITCH@GOTPAGE
Lloh13:
	ldr	x11, [x11, _ATH9K_HW_CAP_FCC_BAND_SWITCH@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_20
LBB0_9:
	mov	x0, x20
	bl	_ath9k_hw_check_alive
	cbz	w0, LBB0_3
; %bb.10:
	mov	x0, x20
	bl	_AR_SREV_9462
	cbz	x0, LBB0_15
; %bb.11:
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_15
; %bb.12:
Lloh15:
	adrp	x8, _TXIQCAL_DONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TXIQCAL_DONE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_test_bit
	cbz	w0, LBB0_3
; %bb.13:
Lloh18:
	adrp	x8, _TXCLCAL_DONE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TXCLCAL_DONE@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	x1, [x20, #8]
	bl	_test_bit
	cbz	w0, LBB0_3
; %bb.14:
Lloh21:
	adrp	x8, _RTT_DONE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RTT_DONE@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	x1, [x20, #8]
	bl	_test_bit
	cbz	w0, LBB0_3
LBB0_15:
Lloh24:
	adrp	x8, _RESET@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RESET@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	x8, [x20]
	ldr	x3, [x8]
	ldr	x4, [x19]
Lloh27:
	adrp	x2, l_.str@PAGE
Lloh28:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_ath_dbg
	mov	x0, x20
	mov	x1, x19
	bl	_ath9k_hw_channel_change
	cbz	w0, LBB0_3
; %bb.16:
	mov	x0, x20
	bl	_ath9k_hw_mci_is_enabled
	cbz	x0, LBB0_18
; %bb.17:
	mov	x0, x20
	mov	w1, #0
	bl	_ar9003_mci_2g5g_switch
LBB0_18:
	ldr	x1, [x20]
	mov	x0, x20
	bl	_ath9k_hw_loadnf
	mov	x0, x20
	mov	w1, #1
	bl	_ath9k_hw_start_nfcal
	mov	x0, x20
	bl	_AR_SREV_9271
	cbz	x0, LBB0_4
; %bb.19:
	mov	x0, x20
	mov	x1, x19
	bl	_ar9002_hw_load_ani_reg
	mov	w0, #0
	b	LBB0_4
LBB0_20:
	eor	w8, w9, w8
Lloh29:
	adrp	x9, _CHANNEL_HT@GOTPAGE
Lloh30:
	ldr	x9, [x9, _CHANNEL_HT@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	bics	wzr, w8, w9
	b.ne	LBB0_3
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH_PCI,8,3                    ; @ATH_PCI
	.comm	_CHANNEL_HALF,4,2               ; @CHANNEL_HALF
	.comm	_CHANNEL_QUARTER,4,2            ; @CHANNEL_QUARTER
	.comm	_ATH9K_HW_CAP_FCC_BAND_SWITCH,4,2 ; @ATH9K_HW_CAP_FCC_BAND_SWITCH
	.comm	_CHANNEL_HT,4,2                 ; @CHANNEL_HT
	.comm	_TXIQCAL_DONE,4,2               ; @TXIQCAL_DONE
	.comm	_TXCLCAL_DONE,4,2               ; @TXCLCAL_DONE
	.comm	_RTT_DONE,4,2                   ; @RTT_DONE
	.comm	_RESET,4,2                      ; @RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FastChannelChange for %d -> %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ath9k_hw_do_fastcc
.subsections_via_symbols
