	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wil_rx_refill_edma
_wil_rx_refill_edma:                    ## @wil_rx_refill_edma
	.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	16(%rdi), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	callq	_wil_ring_next_head
	xorl	%r14d, %r14d
	cmpl	(%r15), %eax
	je	LBB0_7
## %bb.1:
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r15), %edx
	movq	%r15, %rdi
	movq	%r15, %rsi
	callq	_wil_ring_alloc_skb_edma
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, 4(%r15)
	movq	%r15, %rdi
	callq	_wil_ring_next_head
	movl	%eax, %ebx
	cmpl	(%r15), %eax
	jne	LBB0_2
	jmp	LBB0_7
LBB0_3:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_wil_dbg_txrx
	jmp	LBB0_7
LBB0_5:
	movl	4(%r15), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_wil_err_ratelimited
LBB0_7:
	xorl	%eax, %eax
	callq	_wmb
	movl	4(%r15), %edx
	movl	8(%r15), %esi
	movq	%r15, %rdi
	callq	_wil_w
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No free buffer ID found\n"

L_.str.1:                               ## @.str.1
	.asciz	"Error %d in refill desc[%d]\n"

	.no_dead_strip	_wil_rx_refill_edma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wil_rx_refill_edma
_wil_rx_refill_edma:                    ; @wil_rx_refill_edma
	.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, x0
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
	str	w8, [x0]
	bl	_wil_ring_next_head
	ldr	w8, [x19]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_8
LBB0_2:
	mov	x21, x0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x19, #4]
	mov	x0, x19
	mov	x1, x19
	bl	_wil_ring_alloc_skb_edma
	mov	x20, x0
	bl	_unlikely
	cbnz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w21, [x19, #4]
	mov	x0, x19
	bl	_wil_ring_next_head
	mov	x21, x0
	ldr	w8, [x19]
	cmp	w0, w8
	b.ne	LBB0_3
	b	LBB0_8
LBB0_5:
Lloh0:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w20, w8
	b.ne	LBB0_7
; %bb.6:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_wil_dbg_txrx
	b	LBB0_8
LBB0_7:
	ldr	w3, [x19, #4]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_wil_err_ratelimited
LBB0_8:
	bl	_wmb
	ldp	w2, w1, [x19, #4]
	mov	x0, x19
	bl	_wil_w
	mov	x0, x20
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No free buffer ID found\n"

l_.str.1:                               ; @.str.1
	.asciz	"Error %d in refill desc[%d]\n"

	.no_dead_strip	_wil_rx_refill_edma
.subsections_via_symbols
