	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath_stoprecv                   ## -- Begin function ath_stoprecv
	.p2align	4, 0x90
_ath_stoprecv:                          ## @ath_stoprecv
	.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, %r15
	movq	(%rdi), %rbx
	movl	$0, -28(%rbp)
	movq	%rbx, %rdi
	callq	_ath9k_hw_abortpcurecv
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ath9k_hw_setrxfilter
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ath9k_hw_stopdmarecv
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_ath_flushrecv
	movq	(%r15), %rax
	movq	_ATH9K_HW_CAP_EDMA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rax)
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_ath_edma_stop_recv
	jmp	LBB0_3
LBB0_2:
	movq	$0, 8(%r15)
LBB0_3:
	movq	_AH_UNPLUGGED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_6
## %bb.4:
	xorl	%edi, %edi
	testl	%r14d, %r14d
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	(%r15), %rdi
	callq	_ath9k_hw_common
	movq	_RESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movl	%eax, %edi
	callq	_ath_dbg
	movq	_RESET_RX_DMA_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_RESET_STAT_INC
LBB0_6:
	testl	%r14d, %r14d
	setne	%al
	cmpl	$0, -28(%rbp)
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH9K_HW_CAP_EDMA,4,2          ## @ATH9K_HW_CAP_EDMA
	.comm	_AH_UNPLUGGED,4,2               ## @AH_UNPLUGGED
	.comm	_RESET,4,2                      ## @RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to stop Rx DMA\n"

	.comm	_RESET_RX_DMA_ERROR,4,2         ## @RESET_RX_DMA_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath_stoprecv                   ; -- Begin function ath_stoprecv
	.p2align	2
_ath_stoprecv:                          ; @ath_stoprecv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	ldr	x21, [x0]
	str	wzr, [sp, #12]
	mov	x0, x21
	bl	_ath9k_hw_abortpcurecv
	mov	x0, x21
	mov	w1, #0
	bl	_ath9k_hw_setrxfilter
	add	x1, sp, #12
	mov	x0, x21
	bl	_ath9k_hw_stopdmarecv
	mov	x20, x0
	mov	x0, x19
	bl	_ath_flushrecv
	ldr	x8, [x19]
	ldr	w8, [x8, #4]
Lloh0:
	adrp	x9, _ATH9K_HW_CAP_EDMA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATH9K_HW_CAP_EDMA@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_ath_edma_stop_recv
	b	LBB0_3
LBB0_2:
	str	xzr, [x19, #8]
LBB0_3:
	ldr	w8, [x21]
Lloh3:
	adrp	x9, _AH_UNPLUGGED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AH_UNPLUGGED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.4:
	cmp	w20, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x0, [x19]
	bl	_ath9k_hw_common
Lloh6:
	adrp	x8, _RESET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RESET@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	bl	_ath_dbg
Lloh11:
	adrp	x8, _RESET_RX_DMA_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RESET_RX_DMA_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_RESET_STAT_INC
LBB0_6:
	cmp	w20, #0
	ldr	w8, [sp, #12]
	ccmp	w8, #0, #0, ne
	cset	w0, eq
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH9K_HW_CAP_EDMA,4,2          ; @ATH9K_HW_CAP_EDMA
	.comm	_AH_UNPLUGGED,4,2               ; @AH_UNPLUGGED
	.comm	_RESET,4,2                      ; @RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to stop Rx DMA\n"

	.comm	_RESET_RX_DMA_ERROR,4,2         ; @RESET_RX_DMA_ERROR
.subsections_via_symbols
