	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rxq_refill
_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r13
	callq	_rxq_to_mp
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.2:
	movq	%rax, %r14
	xorl	%ebx, %ebx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	(%r13)
	incl	%ebx
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	16(%r13), %rax
	movq	40(%r13), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	1(%rax), %rcx
	cmpq	8(%r13), %rcx
	movl	$0, %edx
	cmovneq	%rcx, %rdx
	movq	%rdx, 16(%r13)
	movslq	%eax, %rbx
	movq	%r12, %rdi
	callq	_skb_end_pointer
	movl	%eax, %r15d
	movl	(%r12), %esi
	subl	%esi, %r15d
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %edx
	callq	_dma_map_single
	movq	%rbx, %rdx
	leaq	(%rbx,%rbx,2), %r14
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 8(%rcx,%r14,4)
	movl	%r15d, (%rcx,%r14,4)
	movq	%rcx, %rbx
	movq	32(%r13), %rax
	movq	%r12, (%rax,%rdx,8)
	xorl	%eax, %eax
	callq	_wmb
	movq	_RX_ENABLE_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_BUFFER_OWNED_BY_DMA@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 4(%rbx,%r14,4)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_wmb
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_skb_reserve
	cmpl	%ebx, -44(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	cmpq	8(%r13), %rax
	jge	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r14), %rdi
	movl	16(%r14), %esi
	callq	_netdev_alloc_skb
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r12
	movq	_SKB_DMA_REALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%esi, %esi
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_skb_reserve
	jmp	LBB0_8
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_10:
	movb	24(%r13), %cl
	movl	$-2, %eax
	roll	%cl, %eax
	andl	%eax, 4(%r14)
	jmp	LBB0_11
LBB0_5:
	movl	$1, (%r14)
	jmp	LBB0_11
LBB0_9:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SKB_DMA_REALIGN,4,2            ## @SKB_DMA_REALIGN
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_BUFFER_OWNED_BY_DMA,4,2        ## @BUFFER_OWNED_BY_DMA
	.comm	_RX_ENABLE_INTERRUPT,4,2        ## @RX_ENABLE_INTERRUPT
	.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:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x1
	mov	x22, x0
	bl	_rxq_to_mp
	cmp	w21, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x20, x0
	mov	w19, #0
Lloh0:
	adrp	x28, _BUFFER_OWNED_BY_DMA@GOTPAGE
Lloh1:
	ldr	x28, [x28, _BUFFER_OWNED_BY_DMA@GOTPAGEOFF]
Lloh2:
	adrp	x25, _RX_ENABLE_INTERRUPT@GOTPAGE
Lloh3:
	ldr	x25, [x25, _RX_ENABLE_INTERRUPT@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w19, w19, #1
	ldp	x8, x9, [x22]
	add	x8, x8, #1
	str	x8, [x22]
	ldr	x26, [x22, #16]
	add	x8, x26, #1
	cmp	x8, x9
	csinc	x8, xzr, x26, eq
	str	x8, [x22, #16]
	ldr	x27, [x22, #40]
	mov	x0, x23
	bl	_skb_end_pointer
	ldr	w1, [x23]
	sub	w24, w0, w1
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
Lloh4:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	mov	x2, x24
	bl	_dma_map_single
	mov	w8, #12
	smaddl	x27, w26, w8, x27
	str	w0, [x27, #8]
	str	w24, [x27]
	ldr	x8, [x22, #32]
	sbfiz	x9, x26, #3, #32
	str	x23, [x8, x9]
	bl	_wmb
	ldr	w8, [x28]
	ldr	w9, [x25]
	orr	w8, w9, w8
	str	w8, [x27, #4]
	bl	_wmb
	mov	x0, x23
	mov	w1, #2
	bl	_skb_reserve
	cmp	w21, w19
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x22]
	cmp	x8, x9
	b.ge	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x20, #8]
	ldr	w1, [x20, #16]
	bl	_netdev_alloc_skb
	cbz	x0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x0
Lloh7:
	adrp	x8, _SKB_DMA_REALIGN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SKB_DMA_REALIGN@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	cbz	w1, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_skb_reserve
	b	LBB0_2
LBB0_7:
	mov	w19, #0
	b	LBB0_11
LBB0_8:
	ldr	w8, [x22, #24]
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	w9, [x20, #4]
	bic	w8, w9, w8
	str	w8, [x20, #4]
	b	LBB0_11
LBB0_9:
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_11
LBB0_10:
	mov	x19, x21
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SKB_DMA_REALIGN,4,2            ; @SKB_DMA_REALIGN
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_BUFFER_OWNED_BY_DMA,4,2        ; @BUFFER_OWNED_BY_DMA
	.comm	_RX_ENABLE_INTERRUPT,4,2        ; @RX_ENABLE_INTERRUPT
	.no_dead_strip	_rxq_refill
.subsections_via_symbols
