	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath_complete_reset
_ath_complete_reset:                    ## @ath_complete_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	32(%rdi), %r14
	movq	%r14, %rdi
	callq	_ath9k_hw_common
	movq	%rax, %r15
	movq	24(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_ath9k_calculate_summary_state
	movq	%rbx, %rdi
	callq	_ath_startrecv
	movq	24(%rbx), %rax
	leaq	16(%rax), %rcx
	movl	16(%rax), %esi
	movl	20(%rax), %edx
	movq	%r14, %rdi
	callq	_ath9k_cmn_update_txpow
	movq	_ATH_OP_HW_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.1:
	movq	24(%rbx), %rdi
	cmpl	$0, 12(%rdi)
	jne	LBB0_10
## %bb.2:
	cmpq	$0, (%rdi)
	je	LBB0_4
## %bb.3:
	addq	$8, %rdi
	xorl	%esi, %esi
	callq	_ath9k_hw_get_tsf_offset
	movq	24(%rbx), %rcx
	addq	(%rcx), %rax
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_ath9k_hw_settsf64
LBB0_4:
	movq	_ATH_OP_BEACONS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	(%r14), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.6:
	movq	_ATH_OP_PRIM_STA_VIF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_PS_BEACON_SYNC@GOTPCREL(%rip), %rax
	movq	_PS_WAIT_FOR_BEACON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%rbx)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_9
LBB0_8:
	movq	%rbx, %rdi
	callq	_ath9k_set_beacon
LBB0_9:
	movq	%rbx, %rdi
	callq	_ath_restart_work
	movq	%rbx, %rdi
	callq	_ath_txq_schedule_all
LBB0_10:
	movq	$0, 8(%rbx)
	movq	%r14, %rdi
	callq	_ath9k_hw_set_interrupts
	movq	%r14, %rdi
	callq	_ath9k_hw_enable_interrupts
	movl	4(%rbx), %edi
	callq	_ieee80211_wake_queues
	movq	%rbx, %rdi
	callq	_ath9k_p2p_ps_timer
	movl	$1, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH_OP_HW_RESET,4,2            ## @ATH_OP_HW_RESET
	.comm	_ATH_OP_BEACONS,4,2             ## @ATH_OP_BEACONS
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_ATH_OP_PRIM_STA_VIF,4,2        ## @ATH_OP_PRIM_STA_VIF
	.comm	_PS_BEACON_SYNC,4,2             ## @PS_BEACON_SYNC
	.comm	_PS_WAIT_FOR_BEACON,4,2         ## @PS_WAIT_FOR_BEACON
	.no_dead_strip	_ath_complete_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath_complete_reset
_ath_complete_reset:                    ; @ath_complete_reset
	.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	x22, x1
	mov	x19, x0
	ldr	x20, [x0, #32]
	mov	x0, x20
	bl	_ath9k_hw_common
	mov	x21, x0
	ldr	x1, [x19, #24]
	mov	x0, x19
	bl	_ath9k_calculate_summary_state
	mov	x0, x19
	bl	_ath_startrecv
	ldr	x3, [x19, #24]
	ldp	w1, w2, [x3, #16]!
	mov	x0, x20
	bl	_ath9k_cmn_update_txpow
Lloh0:
	adrp	x8, _ATH_OP_HW_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH_OP_HW_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_clear_bit
	cbz	w22, LBB0_10
; %bb.1:
	ldr	x8, [x19, #24]
	ldr	w9, [x8, #12]
	cbnz	w9, LBB0_10
; %bb.2:
	ldr	x9, [x8]
	cbz	x9, LBB0_4
; %bb.3:
	add	x0, x8, #8
	mov	x1, #0
	bl	_ath9k_hw_get_tsf_offset
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	add	x1, x8, x0
	mov	x0, x20
	bl	_ath9k_hw_settsf64
LBB0_4:
Lloh3:
	adrp	x8, _ATH_OP_BEACONS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH_OP_BEACONS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_9
; %bb.5:
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
Lloh9:
	adrp	x8, _ATH_OP_PRIM_STA_VIF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATH_OP_PRIM_STA_VIF@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_8
; %bb.7:
	add	x21, x19, #16
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh12:
	adrp	x8, _PS_BEACON_SYNC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PS_BEACON_SYNC@GOTPAGEOFF]
Lloh14:
	adrp	x9, _PS_WAIT_FOR_BEACON@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PS_WAIT_FOR_BEACON@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19]
	orr	w8, w8, w9
	str	w8, [x19]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_ath9k_set_beacon
LBB0_9:
	mov	x0, x19
	bl	_ath_restart_work
	mov	x0, x19
	bl	_ath_txq_schedule_all
LBB0_10:
	str	xzr, [x19, #8]
	mov	x0, x20
	bl	_ath9k_hw_set_interrupts
	mov	x0, x20
	bl	_ath9k_hw_enable_interrupts
	ldr	w0, [x19, #4]
	bl	_ieee80211_wake_queues
	mov	x0, x19
	bl	_ath9k_p2p_ps_timer
	mov	w0, #1
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH_OP_HW_RESET,4,2            ; @ATH_OP_HW_RESET
	.comm	_ATH_OP_BEACONS,4,2             ; @ATH_OP_BEACONS
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_ATH_OP_PRIM_STA_VIF,4,2        ; @ATH_OP_PRIM_STA_VIF
	.comm	_PS_BEACON_SYNC,4,2             ; @PS_BEACON_SYNC
	.comm	_PS_WAIT_FOR_BEACON,4,2         ; @PS_WAIT_FOR_BEACON
	.no_dead_strip	_ath_complete_reset
.subsections_via_symbols
