	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wil_rx_refill
_wil_rx_refill:                         ## @wil_rx_refill
	.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
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movq	_ARPHRD_IEEE80211_RADIOTAP@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	movl	$0, %r12d
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_WIL6210_RTAP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_2:
	movq	%r13, %rdi
	callq	_wil_ring_next_tail
	cmpl	(%r13), %eax
	je	LBB0_9
## %bb.3:
	testl	%r15d, %r15d
	jle	LBB0_9
## %bb.4:
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r13), %edx
	movq	%r13, %rdi
	movq	%r13, %rsi
	movl	%r12d, %ecx
	callq	_wil_vring_alloc_skb
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, 4(%r13)
	movq	%r13, %rdi
	callq	_wil_ring_next_tail
	cmpl	(%r13), %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %ebx
	leal	-1(%r15), %eax
	cmpl	$1, %r15d
	movl	%eax, %r15d
	jg	LBB0_5
	jmp	LBB0_9
LBB0_6:
	movl	4(%r13), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_wil_err_ratelimited
LBB0_9:
	xorl	%eax, %eax
	callq	_wmb
	movl	4(%r13), %edx
	movl	8(%r13), %esi
	movq	%r13, %rdi
	callq	_wil_w
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARPHRD_IEEE80211_RADIOTAP,8,3  ## @ARPHRD_IEEE80211_RADIOTAP
	.comm	_WIL6210_RTAP_SIZE,4,2          ## @WIL6210_RTAP_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error %d in rx refill[%d]\n"

	.no_dead_strip	_wil_rx_refill
.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
_wil_rx_refill:                         ; @wil_rx_refill
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _ARPHRD_IEEE80211_RADIOTAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ARPHRD_IEEE80211_RADIOTAP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _WIL6210_RTAP_SIZE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _WIL6210_RTAP_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w22, w10, wzr, eq
	bl	_wil_ring_next_tail
	mov	w21, #0
	ldr	w8, [x19]
	cmp	w0, w8
	b.eq	LBB0_7
; %bb.1:
	cmp	w20, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x23, x0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x19, #4]
	mov	x0, x19
	mov	x1, x19
	mov	x3, x22
	bl	_wil_vring_alloc_skb
	mov	x21, x0
	bl	_unlikely
	cbnz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w23, [x19, #4]
	mov	x0, x19
	bl	_wil_ring_next_tail
	mov	x23, x0
	ldr	w8, [x19]
	cmp	w0, w8
	ccmp	w20, #1, #4, ne
	sub	w20, w20, #1
	b.gt	LBB0_3
	b	LBB0_7
LBB0_5:
	mov	w21, #0
	b	LBB0_7
LBB0_6:
	ldr	w3, [x19, #4]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_wil_err_ratelimited
LBB0_7:
	bl	_wmb
	ldp	w2, w1, [x19, #4]
	mov	x0, x19
	bl	_wil_w
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ARPHRD_IEEE80211_RADIOTAP,8,3  ; @ARPHRD_IEEE80211_RADIOTAP
	.comm	_WIL6210_RTAP_SIZE,4,2          ; @WIL6210_RTAP_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error %d in rx refill[%d]\n"

	.no_dead_strip	_wil_rx_refill
.subsections_via_symbols
