	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_htc_set_channel
_ath9k_htc_set_channel:                 ## @ath9k_htc_set_channel
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	32(%rdi), %r13
	movq	%r13, %rdi
	callq	_ath9k_hw_common
	movq	%rax, %rbx
	movq	8(%rax), %r12
	movq	8(%r14), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_ATH_OP_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_11
LBB0_2:
	movq	_IEEE80211_CONF_OFFCHANNEL@GOTPCREL(%rip), %rax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rcx
	movl	(%rax), %r14d
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	andl	(%rcx), %r14d
	movq	%r15, %rdi
	callq	_ath9k_htc_ps_wakeup
	movq	%r15, %rdi
	callq	_ath9k_htc_stop_ani
	leaq	8(%r15), %rdi
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	callq	_del_timer_sync
	movq	%r15, %rdi
	callq	_ath9k_htc_tx_drain
	movq	_WMI_DISABLE_INTR_CMDID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_WMI_CMD
	movq	_WMI_DRAIN_TXQ_ALL_CMDID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_WMI_CMD
	movq	_WMI_STOP_RECV_CMDID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_WMI_CMD
	movq	%r15, %rdi
	callq	_ath9k_wmi_event_drain
	movq	_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	32(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_conf_is_ht
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_conf_is_ht40
                                        ## kill: def $eax killed $eax def $rax
	leaq	24(%r15), %rcx
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	testl	%r14d, %r14d
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	setne	%bl
	leaq	L_.str(%rip), %rdx
	cmoveq	%rcx, %r12
	movq	%r14, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rbx
	pushq	%rax
	callq	_ath_dbg
	addq	$16, %rsp
	movq	%r13, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_ath9k_hw_reset
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %ecx
	callq	_ath_err
LBB0_10:
	movq	%r15, %rdi
	callq	_ath9k_htc_ps_restore
LBB0_11:
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	leaq	16(%r15), %rcx
	movl	16(%r15), %esi
	movl	20(%r15), %edx
	movq	%r13, %rdi
	callq	_ath9k_cmn_update_txpow
	movq	_WMI_START_RECV_CMDID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_WMI_CMD
	movq	%r15, %rdi
	callq	_ath9k_host_rx_init
	movq	%r15, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_ath9k_htc_get_curmode
	movl	%eax, %edi
	callq	_cpu_to_be16
	movl	%eax, -60(%rbp)
	movq	_WMI_SET_MODE_CMDID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-60(%rbp), %rsi
	callq	_WMI_CMD_BUF
	movq	_WMI_ENABLE_INTR_CMDID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_WMI_CMD
	movl	12(%r15), %edi
	callq	_htc_start
	movq	%r14, %rsi
	movq	_ATH_OP_SCANNING@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	_IEEE80211_CONF_OFFCHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_ath9k_htc_vif_reconfig
LBB0_7:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_ATH9K_HTC_TX_CLEANUP_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_mod_timer
	movl	(%r14), %edi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	(%r15), %rax
	movq	_SPECTRAL_CHANSCAN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ath9k_cmn_spectral_scan_trigger
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH_OP_INVALID,4,2             ## @ATH_OP_INVALID
	.comm	_EIO,4,2                        ## @EIO
	.comm	_IEEE80211_CONF_OFFCHANNEL,4,2  ## @IEEE80211_CONF_OFFCHANNEL
	.comm	_WMI_DISABLE_INTR_CMDID,4,2     ## @WMI_DISABLE_INTR_CMDID
	.comm	_WMI_DRAIN_TXQ_ALL_CMDID,4,2    ## @WMI_DRAIN_TXQ_ALL_CMDID
	.comm	_WMI_STOP_RECV_CMDID,4,2        ## @WMI_STOP_RECV_CMDID
	.comm	_CONFIG,4,2                     ## @CONFIG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%u MHz) -> (%u MHz), HT: %d, HT40: %d fastcc: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unable to reset channel (%u Mhz) reset status %d\n"

	.comm	_WMI_START_RECV_CMDID,4,2       ## @WMI_START_RECV_CMDID
	.comm	_WMI_SET_MODE_CMDID,4,2         ## @WMI_SET_MODE_CMDID
	.comm	_WMI_ENABLE_INTR_CMDID,4,2      ## @WMI_ENABLE_INTR_CMDID
	.comm	_ATH_OP_SCANNING,4,2            ## @ATH_OP_SCANNING
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_ATH9K_HTC_TX_CLEANUP_INTERVAL,4,2 ## @ATH9K_HTC_TX_CLEANUP_INTERVAL
	.comm	_SPECTRAL_CHANSCAN,8,3          ## @SPECTRAL_CHANSCAN
	.no_dead_strip	_ath9k_htc_set_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_htc_set_channel
_ath9k_htc_set_channel:                 ; @ath9k_htc_set_channel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x25, [x0, #32]
	mov	x0, x25
	bl	_ath9k_hw_common
	mov	x20, x0
	ldr	x23, [x0, #8]
	ldr	x28, [x22, #8]
Lloh0:
	adrp	x8, _ATH_OP_INVALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH_OP_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_5
LBB0_2:
	ldr	w8, [x22]
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
Lloh6:
	adrp	x8, _IEEE80211_CONF_OFFCHANNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_CONF_OFFCHANNEL@GOTPAGEOFF]
Lloh8:
	ldr	w24, [x8]
	mov	x0, x19
	bl	_ath9k_htc_ps_wakeup
	mov	x0, x19
	bl	_ath9k_htc_stop_ani
	add	x0, x19, #8
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	bl	_del_timer_sync
	mov	x0, x19
	bl	_ath9k_htc_tx_drain
Lloh9:
	adrp	x8, _WMI_DISABLE_INTR_CMDID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WMI_DISABLE_INTR_CMDID@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_WMI_CMD
Lloh12:
	adrp	x8, _WMI_DRAIN_TXQ_ALL_CMDID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WMI_DRAIN_TXQ_ALL_CMDID@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_WMI_CMD
Lloh15:
	adrp	x8, _WMI_STOP_RECV_CMDID@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WMI_STOP_RECV_CMDID@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_WMI_CMD
	mov	x0, x19
	bl	_ath9k_wmi_event_drain
Lloh18:
	adrp	x8, _CONFIG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CONFIG@GOTPAGEOFF]
Lloh20:
	ldr	w26, [x8]
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	w27, [x8]
	str	x28, [sp, #16]                  ; 8-byte Folded Spill
	ldr	w28, [x28]
	mov	x0, x23
	bl	_conf_is_ht
	str	x22, [sp]                       ; 8-byte Folded Spill
	mov	x22, x0
	mov	x0, x23
	bl	_conf_is_ht40
	mov	x6, x0
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	tst	w24, w8
	cset	w23, ne
Lloh21:
	adrp	x2, l_.str@PAGE
Lloh22:
	add	x2, x2, l_.str@PAGEOFF
	add	x8, x19, #24
	csel	x24, xzr, x8, ne
	mov	x0, x20
	mov	x1, x26
	mov	x3, x27
	mov	x4, x28
	mov	x5, x22
	mov	x7, x23
	bl	_ath_dbg
	mov	x0, x25
	mov	x1, x21
	mov	x2, x24
	mov	x3, x23
	bl	_ath9k_hw_reset
	mov	x23, x0
	cbz	w0, LBB0_6
; %bb.3:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w2, [x8]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x3, x23
	bl	_ath_err
LBB0_4:
	mov	x0, x19
	bl	_ath9k_htc_ps_restore
LBB0_5:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_6:
Lloh25:
	adrp	x26, _IEEE80211_CONF_OFFCHANNEL@GOTPAGE
Lloh26:
	ldr	x26, [x26, _IEEE80211_CONF_OFFCHANNEL@GOTPAGEOFF]
	ldp	x22, x24, [sp]                  ; 16-byte Folded Reload
	mov	x3, x19
	ldr	w1, [x3, #16]!
	ldr	w2, [x19, #20]
	mov	x0, x25
	bl	_ath9k_cmn_update_txpow
Lloh27:
	adrp	x8, _WMI_START_RECV_CMDID@GOTPAGE
Lloh28:
	ldr	x8, [x8, _WMI_START_RECV_CMDID@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_WMI_CMD
	mov	x0, x19
	bl	_ath9k_host_rx_init
	mov	x0, x19
	mov	x1, x21
	bl	_ath9k_htc_get_curmode
	bl	_cpu_to_be16
	str	w0, [sp, #28]
Lloh30:
	adrp	x8, _WMI_SET_MODE_CMDID@GOTPAGE
Lloh31:
	ldr	x8, [x8, _WMI_SET_MODE_CMDID@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	add	x1, sp, #28
	bl	_WMI_CMD_BUF
Lloh33:
	adrp	x8, _WMI_ENABLE_INTR_CMDID@GOTPAGE
Lloh34:
	ldr	x8, [x8, _WMI_ENABLE_INTR_CMDID@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	bl	_WMI_CMD
	ldr	w0, [x19, #12]
	bl	_htc_start
Lloh36:
	adrp	x21, _ATH_OP_SCANNING@GOTPAGE
Lloh37:
	ldr	x21, [x21, _ATH_OP_SCANNING@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x20
	bl	_test_bit
	cbnz	x0, LBB0_9
; %bb.7:
	ldr	w8, [x22]
	ldr	w9, [x26]
	tst	w9, w8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_ath9k_htc_vif_reconfig
LBB0_9:
Lloh38:
	adrp	x8, _jiffies@GOTPAGE
Lloh39:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh40:
	ldr	x22, [x8]
Lloh41:
	adrp	x8, _ATH9K_HTC_TX_CLEANUP_INTERVAL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ATH9K_HTC_TX_CLEANUP_INTERVAL@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x1, x0, x22
	mov	x0, x24
	bl	_mod_timer
	ldr	w0, [x21]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.10:
	ldr	x8, [x19]
Lloh44:
	adrp	x9, _SPECTRAL_CHANSCAN@GOTPAGE
Lloh45:
	ldr	x9, [x9, _SPECTRAL_CHANSCAN@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.11:
	mov	x0, x20
	mov	x1, x19
	bl	_ath9k_cmn_spectral_scan_trigger
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH_OP_INVALID,4,2             ; @ATH_OP_INVALID
	.comm	_EIO,4,2                        ; @EIO
	.comm	_IEEE80211_CONF_OFFCHANNEL,4,2  ; @IEEE80211_CONF_OFFCHANNEL
	.comm	_WMI_DISABLE_INTR_CMDID,4,2     ; @WMI_DISABLE_INTR_CMDID
	.comm	_WMI_DRAIN_TXQ_ALL_CMDID,4,2    ; @WMI_DRAIN_TXQ_ALL_CMDID
	.comm	_WMI_STOP_RECV_CMDID,4,2        ; @WMI_STOP_RECV_CMDID
	.comm	_CONFIG,4,2                     ; @CONFIG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%u MHz) -> (%u MHz), HT: %d, HT40: %d fastcc: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unable to reset channel (%u Mhz) reset status %d\n"

	.comm	_WMI_START_RECV_CMDID,4,2       ; @WMI_START_RECV_CMDID
	.comm	_WMI_SET_MODE_CMDID,4,2         ; @WMI_SET_MODE_CMDID
	.comm	_WMI_ENABLE_INTR_CMDID,4,2      ; @WMI_ENABLE_INTR_CMDID
	.comm	_ATH_OP_SCANNING,4,2            ; @ATH_OP_SCANNING
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_ATH9K_HTC_TX_CLEANUP_INTERVAL,4,2 ; @ATH9K_HTC_TX_CLEANUP_INTERVAL
	.comm	_SPECTRAL_CHANSCAN,8,3          ; @SPECTRAL_CHANSCAN
	.no_dead_strip	_ath9k_htc_set_channel
.subsections_via_symbols
