	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function rxq_refill
LCPI0_0:
	.space	16,255
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_rxq_refill:                            ## @rxq_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %rax
	movslq	%esi, %rcx
	shlq	$5, %rcx
	movq	(%rax,%rcx), %rdx
	movq	_MWL8K_RX_DESCS@GOTPCREL(%rip), %rsi
	xorl	%r12d, %r12d
	cmpq	(%rsi), %rdx
	jge	LBB0_6
## %bb.1:
	leaq	(%rax,%rcx), %rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	addq	%rcx, %rax
	addq	$8, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	_MWL8K_RX_MAXSZ@GOTPCREL(%rip), %r15
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r12d, -44(%rbp)                ## 4-byte Folded Reload
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edi
	callq	_dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	movl	(%rbx), %esi
	movl	(%r15), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_map_single
	movl	%eax, %edx
	movslq	8(%r14), %r13
	movdqu	(%r14), %xmm0
	psubq	LCPI0_0(%rip), %xmm0
	movdqu	%xmm0, (%r14)
	pextrq	$1, %xmm0, %rax
	movq	_MWL8K_RX_DESCS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$0, %ecx
	cmovneq	%rax, %rcx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%rcx, (%r15)
	movq	16(%r15), %rax
	leaq	(%rax,%r13,8), %rdi
	movq	%rbx, (%rax,%r13,8)
	movq	_dma@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%edx, %ebx
	callq	_dma_unmap_addr_set
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movslq	(%rax), %rdi
	imulq	%r13, %rdi
	addq	8(%r15), %rdi
	movq	_MWL8K_RX_MAXSZ@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	%ebx, %esi
	callq	*8(%rax)
	incl	%r12d
	movq	(%r14), %rax
	movq	_MWL8K_RX_DESCS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_2
	jmp	LBB0_6
LBB0_3:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MWL8K_RX_DESCS,8,3             ## @MWL8K_RX_DESCS
	.comm	_MWL8K_RX_MAXSZ,4,2             ## @MWL8K_RX_MAXSZ
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_dma,4,2                        ## @dma
	.no_dead_strip	_rxq_refill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rxq_refill
_rxq_refill:                            ; @rxq_refill
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w2, [sp, #12]                   ; 4-byte Folded Spill
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x23, [x0]
	ldr	x8, [x23, #16]
	sxtw	x9, w1
	add	x24, x8, x9, lsl #5
	ldr	x8, [x24]
Lloh0:
	adrp	x9, _MWL8K_RX_DESCS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MWL8K_RX_DESCS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.1:
	mov	w20, #0
	add	x26, x24, #8
	add	x8, x24, #24
	str	x8, [sp]                        ; 8-byte Folded Spill
	add	x28, x24, #16
Lloh3:
	adrp	x27, _MWL8K_RX_MAXSZ@GOTPAGE
Lloh4:
	ldr	x27, [x27, _MWL8K_RX_MAXSZ@GOTPAGEOFF]
Lloh5:
	adrp	x19, _MWL8K_RX_DESCS@GOTPAGE
Lloh6:
	ldr	x19, [x19, _MWL8K_RX_DESCS@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, w20
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x27]
	bl	_dev_alloc_skb
	cbz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, x0
	ldr	w0, [x23, #8]
	ldr	w1, [x21]
	ldr	w2, [x27]
Lloh7:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	bl	_pci_map_single
	mov	x22, x0
	ldr	x8, [x24]
	add	x8, x8, #1
	str	x8, [x24]
	ldr	x25, [x26]
	add	x8, x25, #1
	str	x8, [x26]
	ldr	x9, [x19]
	cmp	x8, x9
	csinc	x8, xzr, x25, eq
	str	x8, [x26]
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	x8, [x8]
	lsl	x9, x25, #32
	add	x0, x8, x9, asr #29
	str	x21, [x0]
Lloh10:
	adrp	x8, _dma@GOTPAGE
Lloh11:
	ldr	x8, [x8, _dma@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x2, x22
	bl	_dma_unmap_addr_set
	ldr	x8, [x28]
	ldr	x9, [x23]
	ldrsw	x10, [x9]
	sxtw	x11, w25
	madd	x0, x10, x11, x8
	ldr	x8, [x9, #8]
	ldr	w2, [x27]
	mov	x1, x22
	blr	x8
	add	w20, w20, #1
	ldr	x8, [x24]
	ldr	x9, [x19]
	cmp	x8, x9
	b.lt	LBB0_2
	b	LBB0_7
LBB0_5:
	mov	w20, #0
	b	LBB0_7
LBB0_6:
	ldr	w20, [sp, #12]                  ; 4-byte Folded Reload
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MWL8K_RX_DESCS,8,3             ; @MWL8K_RX_DESCS
	.comm	_MWL8K_RX_MAXSZ,4,2             ; @MWL8K_RX_MAXSZ
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_dma,4,2                        ; @dma
	.no_dead_strip	_rxq_refill
.subsections_via_symbols
