	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_htc_reset                ## -- Begin function ath9k_htc_reset
	.p2align	4, 0x90
_ath9k_htc_reset:                       ## @ath9k_htc_reset
	.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
	movq	%rdi, %rbx
	movq	32(%rdi), %r15
	movq	%r15, %rdi
	callq	_ath9k_hw_common
	movq	%rax, %r12
	movq	8(%rbx), %rax
	movq	(%rax), %r13
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_ath9k_htc_ps_wakeup
	movq	%rbx, %rdi
	callq	_ath9k_htc_stop_ani
	movq	8(%rbx), %rdi
	callq	_ieee80211_stop_queues
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_del_timer_sync
	movq	%rbx, %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	%rbx, %rdi
	callq	_ath9k_wmi_event_drain
	leaq	28(%rbx), %rdx
	movl	(%r15), %esi
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_ath9k_hw_reset
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %ecx
	callq	_ath_err
LBB0_2:
	leaq	20(%rbx), %rcx
	movl	20(%rbx), %esi
	movl	24(%rbx), %edx
	movq	%r15, %rdi
	callq	_ath9k_cmn_update_txpow
	movq	_WMI_START_RECV_CMDID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_WMI_CMD
	movq	%rbx, %rdi
	callq	_ath9k_host_rx_init
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_ath9k_htc_get_curmode
	movl	%eax, %edi
	callq	_cpu_to_be16
	movl	%eax, -44(%rbp)
	movq	_WMI_SET_MODE_CMDID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-44(%rbp), %rsi
	callq	_WMI_CMD_BUF
	movq	_WMI_ENABLE_INTR_CMDID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_WMI_CMD
	movl	16(%rbx), %edi
	callq	_htc_start
	movq	%rbx, %rdi
	callq	_ath9k_htc_vif_reconfig
	movq	8(%rbx), %rdi
	callq	_ieee80211_wake_queues
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_ATH9K_HTC_TX_CLEANUP_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	addq	%rax, %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mod_timer
	movq	%rbx, %rdi
	callq	_ath9k_htc_ps_restore
	movq	%rbx, %rdi
	callq	_mutex_unlock
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to reset device (%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	_jiffies,8,3                    ## @jiffies
	.comm	_ATH9K_HTC_TX_CLEANUP_INTERVAL,4,2 ## @ATH9K_HTC_TX_CLEANUP_INTERVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_htc_reset                ; -- Begin function ath9k_htc_reset
	.p2align	2
_ath9k_htc_reset:                       ; @ath9k_htc_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	ldr	x21, [x0, #32]
	mov	x0, x21
	bl	_ath9k_hw_common
	mov	x22, x0
	ldr	x8, [x19, #8]
	ldr	x23, [x8]
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	bl	_ath9k_htc_ps_wakeup
	mov	x0, x19
	bl	_ath9k_htc_stop_ani
	ldr	x0, [x19, #8]
	bl	_ieee80211_stop_queues
	add	x20, x19, #4
	mov	x0, x20
	bl	_del_timer_sync
	mov	x0, x19
	bl	_ath9k_htc_tx_drain
Lloh0:
	adrp	x8, _WMI_DISABLE_INTR_CMDID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMI_DISABLE_INTR_CMDID@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_WMI_CMD
Lloh3:
	adrp	x8, _WMI_DRAIN_TXQ_ALL_CMDID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WMI_DRAIN_TXQ_ALL_CMDID@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_WMI_CMD
Lloh6:
	adrp	x8, _WMI_STOP_RECV_CMDID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WMI_STOP_RECV_CMDID@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_WMI_CMD
	mov	x0, x19
	bl	_ath9k_wmi_event_drain
	add	x2, x19, #28
	ldr	w1, [x21]
	mov	x0, x21
	mov	w3, #0
	bl	_ath9k_hw_reset
	cbz	w0, LBB0_2
; %bb.1:
	mov	x3, x0
	ldr	w2, [x23]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_ath_err
LBB0_2:
	mov	x3, x19
	ldr	w1, [x3, #20]!
	ldr	w2, [x19, #24]
	mov	x0, x21
	bl	_ath9k_cmn_update_txpow
Lloh11:
	adrp	x8, _WMI_START_RECV_CMDID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WMI_START_RECV_CMDID@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_WMI_CMD
	mov	x0, x19
	bl	_ath9k_host_rx_init
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ath9k_htc_get_curmode
	bl	_cpu_to_be16
	str	w0, [sp, #12]
Lloh14:
	adrp	x8, _WMI_SET_MODE_CMDID@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WMI_SET_MODE_CMDID@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	add	x1, sp, #12
	bl	_WMI_CMD_BUF
Lloh17:
	adrp	x8, _WMI_ENABLE_INTR_CMDID@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WMI_ENABLE_INTR_CMDID@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_WMI_CMD
	ldr	w0, [x19, #16]
	bl	_htc_start
	mov	x0, x19
	bl	_ath9k_htc_vif_reconfig
	ldr	x0, [x19, #8]
	bl	_ieee80211_wake_queues
Lloh20:
	adrp	x8, _jiffies@GOTPAGE
Lloh21:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh22:
	ldr	x21, [x8]
Lloh23:
	adrp	x8, _ATH9K_HTC_TX_CLEANUP_INTERVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ATH9K_HTC_TX_CLEANUP_INTERVAL@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x1, x0, x21
	mov	x0, x20
	bl	_mod_timer
	mov	x0, x19
	bl	_ath9k_htc_ps_restore
	mov	x0, x19
	bl	_mutex_unlock
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to reset device (%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	_jiffies,8,3                    ; @jiffies
	.comm	_ATH9K_HTC_TX_CLEANUP_INTERVAL,4,2 ; @ATH9K_HTC_TX_CLEANUP_INTERVAL
.subsections_via_symbols
