	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nes_replenish_nic_rq
_nes_replenish_nic_rq:                  ## @nes_replenish_nic_rq
	.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
	movq	%rdi, %r15
	movq	72(%rdi), %r14
	leaq	44(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	cmpl	$0, 24(%r15)
	je	LBB0_4
## %bb.1:
	movq	%rbx, %r14
	movl	28(%r15), %ebx
	decl	%ebx
	leaq	20(%r15), %rdi
	callq	_atomic_read
	cmpl	%eax, %ebx
	jne	LBB0_3
## %bb.2:
	leaq	16(%r15), %rbx
	movq	%rbx, %rdi
	callq	_atomic_read
	testl	%eax, %eax
	je	LBB0_16
LBB0_3:
	movq	%r14, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_4:
	movl	$1, 24(%r15)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	leaq	20(%r15), %r13
	xorl	%r12d, %r12d
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	callq	_atomic_read
	testl	%eax, %eax
	je	LBB0_13
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	movl	64(%r15), %eax
	movl	%eax, 12(%rbx)
	movl	8(%r14), %edi
	movl	8(%rbx), %esi
	movl	(%r15), %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_map_single
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	%r14, 8(%rax)
	movl	(%r15), %edi
	movl	%edi, (%rax)
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movq	32(%r15), %r12
	movq	%r15, %r13
	movq	56(%r15), %r15
	callq	_cpu_to_le32
	movq	(%r15,%r12,8), %rcx
	movq	_NES_NIC_RQ_WQE_LENGTH_1_0_IDX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	(%r15,%r12,8), %rax
	movq	_NES_NIC_RQ_WQE_LENGTH_3_2_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	$0, (%rax,%rcx,8)
	movl	%r14d, %edi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	callq	_cpu_to_le32
	movq	(%r15,%r12,8), %rcx
	movq	_NES_NIC_RQ_WQE_FRAG0_LOW_IDX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	callq	_cpu_to_le32
	movq	(%r15,%r12,8), %rcx
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movq	%r13, %r15
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	_NES_NIC_RQ_WQE_FRAG0_HIGH_IDX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	32(%r15), %rax
	movq	48(%r15), %rcx
	movq	%rbx, (%rcx,%rax,8)
	incq	%rax
	movslq	28(%r15), %rcx
	decq	%rcx
	andq	%rax, %rcx
	movq	%rcx, 32(%r15)
	movq	%r13, %rdi
	callq	_atomic_dec
	xorl	%eax, %eax
	callq	_barrier
	incl	%r12d
	cmpl	$255, %r12d
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_NES_WQE_ALLOC@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	movl	40(%r15), %esi
	movl	$-16777216, %eax                ## imm = 0xFF000000
	orl	%eax, %esi
	callq	_nes_write32
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_lock_irqsave
	movl	28(%r15), %ebx
	decl	%ebx
	movq	%r13, %rdi
	callq	_atomic_read
	cmpl	%eax, %ebx
	jne	LBB0_12
## %bb.10:
	leaq	16(%r15), %rbx
	movq	%rbx, %rdi
	callq	_atomic_read
	testl	%eax, %eax
	je	LBB0_11
LBB0_12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	jmp	LBB0_13
LBB0_16:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_atomic_set
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movslq	%edx, %rcx
	addq	(%rax), %rcx
	movq	%rcx, 8(%r15)
	addq	$8, %r15
	movq	%r15, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_add_timer                      ## TAILCALL
LBB0_11:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_atomic_set
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movslq	%edx, %rcx
	addq	(%rax), %rcx
	leaq	8(%r15), %rdi
	movq	%rcx, 8(%r15)
	callq	_add_timer
LBB0_13:
	xorl	%eax, %eax
	callq	_barrier
	testl	%r12d, %r12d
	je	LBB0_15
## %bb.14:
	movq	_NES_WQE_ALLOC@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	shll	$24, %r12d
	orl	40(%r15), %r12d
	movl	%r12d, %esi
	callq	_nes_write32
LBB0_15:
	movl	$0, 24(%r15)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_NES_NIC_RQ_WQE_LENGTH_1_0_IDX,8,3 ## @NES_NIC_RQ_WQE_LENGTH_1_0_IDX
	.comm	_NES_NIC_RQ_WQE_LENGTH_3_2_IDX,8,3 ## @NES_NIC_RQ_WQE_LENGTH_3_2_IDX
	.comm	_NES_NIC_RQ_WQE_FRAG0_LOW_IDX,8,3 ## @NES_NIC_RQ_WQE_FRAG0_LOW_IDX
	.comm	_NES_NIC_RQ_WQE_FRAG0_HIGH_IDX,8,3 ## @NES_NIC_RQ_WQE_FRAG0_HIGH_IDX
	.comm	_NES_WQE_ALLOC,8,3              ## @NES_WQE_ALLOC
	.no_dead_strip	_nes_replenish_nic_rq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nes_replenish_nic_rq
_nes_replenish_nic_rq:                  ; @nes_replenish_nic_rq
	.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
	mov	x19, x0
	ldr	x24, [x0, #72]
	add	x22, x0, #44
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	w8, [x19, #28]
	sub	w20, w8, #1
	add	x0, x19, #20
	bl	_atomic_read
	cmp	w20, w0
	b.ne	LBB0_3
; %bb.2:
	add	x21, x19, #16
	mov	x0, x21
	bl	_atomic_read
	cbz	w0, LBB0_15
LBB0_3:
	mov	x0, x22
	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
	b	_spin_unlock_irqrestore
LBB0_4:
	mov	w8, #1
	str	w8, [x19, #24]
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	w26, #0
	add	x21, x19, #20
Lloh0:
	adrp	x20, _NES_NIC_RQ_WQE_FRAG0_LOW_IDX@GOTPAGE
Lloh1:
	ldr	x20, [x20, _NES_NIC_RQ_WQE_FRAG0_LOW_IDX@GOTPAGEOFF]
Lloh2:
	adrp	x27, _NES_NIC_RQ_WQE_FRAG0_HIGH_IDX@GOTPAGE
Lloh3:
	ldr	x27, [x27, _NES_NIC_RQ_WQE_FRAG0_HIGH_IDX@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_atomic_read
	cbz	w0, LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	bl	_dev_alloc_skb
	cbz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x0
	ldr	w8, [x19, #64]
	str	w8, [x0, #12]
	ldr	w0, [x24, #8]
	ldr	w1, [x22, #8]
	ldr	w2, [x19]
Lloh4:
	adrp	x8, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	bl	_pci_map_single
	mov	x23, x0
	ldr	x8, [x22]
	str	x0, [x8, #8]
	ldr	w0, [x19]
	str	w0, [x8]
	ldr	x28, [x19, #56]
	ldr	x25, [x19, #32]
	bl	_cpu_to_le32
	lsl	x25, x25, #3
	ldr	x8, [x28, x25]
Lloh7:
	adrp	x9, _NES_NIC_RQ_WQE_LENGTH_1_0_IDX@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NES_NIC_RQ_WQE_LENGTH_1_0_IDX@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	str	x0, [x8, x9, lsl #3]
	ldr	x8, [x28, x25]
Lloh10:
	adrp	x9, _NES_NIC_RQ_WQE_LENGTH_3_2_IDX@GOTPAGE
Lloh11:
	ldr	x9, [x9, _NES_NIC_RQ_WQE_LENGTH_3_2_IDX@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	str	xzr, [x8, x9, lsl #3]
	mov	x0, x23
	bl	_cpu_to_le32
	ldr	x8, [x28, x25]
	ldr	x9, [x20]
	str	x0, [x8, x9, lsl #3]
	bl	_cpu_to_le32
	ldr	x8, [x28, x25]
	ldr	x9, [x27]
	str	x0, [x8, x9, lsl #3]
	ldr	x8, [x19, #48]
	ldr	x9, [x19, #32]
	str	x22, [x8, x9, lsl #3]
	add	x8, x9, #1
	ldrsw	x9, [x19, #28]
	sub	x9, x9, #1
	and	x8, x8, x9
	str	x8, [x19, #32]
	mov	x0, x21
	bl	_atomic_dec
	bl	_barrier
	add	w26, w26, #1
	cmp	w26, #255
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x24]
Lloh13:
	adrp	x9, _NES_WQE_ALLOC@GOTPAGE
Lloh14:
	ldr	x9, [x9, _NES_WQE_ALLOC@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	add	x0, x9, x8
	ldr	w8, [x19, #40]
	orr	w1, w8, #0xff000000
	bl	_nes_write32
	mov	w26, #0
	b	LBB0_5
LBB0_9:
	ldr	x22, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w8, [x19, #28]
	sub	w20, w8, #1
	mov	x0, x21
	bl	_atomic_read
	cmp	w20, w0
	b.ne	LBB0_11
; %bb.10:
	add	x21, x19, #16
	mov	x0, x21
	bl	_atomic_read
	cbz	w0, LBB0_16
LBB0_11:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
LBB0_12:
	bl	_barrier
	cbz	w26, LBB0_14
LBB0_13:
	ldr	x8, [x24]
Lloh16:
	adrp	x9, _NES_WQE_ALLOC@GOTPAGE
Lloh17:
	ldr	x9, [x9, _NES_WQE_ALLOC@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	add	x0, x9, x8
	ldr	w8, [x19, #40]
	orr	w1, w8, w26, lsl #24
	bl	_nes_write32
LBB0_14:
	str	wzr, [x19, #24]
	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
LBB0_15:
	mov	x0, x21
	mov	w1, #1
	bl	_atomic_set
	mov	x0, x22
	bl	_spin_unlock_irqrestore
Lloh19:
	adrp	x8, _jiffies@GOTPAGE
Lloh20:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
Lloh22:
	adrp	x9, _HZ@GOTPAGE
Lloh23:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	add	x8, x8, w9, sxtw
	str	x8, [x19, #8]!
	mov	x0, x19
	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
	b	_add_timer
LBB0_16:
	mov	x0, x21
	mov	w1, #1
	bl	_atomic_set
	mov	x0, x22
	bl	_spin_unlock_irqrestore
Lloh25:
	adrp	x8, _jiffies@GOTPAGE
Lloh26:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
Lloh28:
	adrp	x9, _HZ@GOTPAGE
Lloh29:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	add	x8, x8, w9, sxtw
	mov	x0, x19
	str	x8, [x0, #8]!
	bl	_add_timer
	bl	_barrier
	cbnz	w26, LBB0_13
	b	LBB0_14
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_NES_NIC_RQ_WQE_LENGTH_1_0_IDX,8,3 ; @NES_NIC_RQ_WQE_LENGTH_1_0_IDX
	.comm	_NES_NIC_RQ_WQE_LENGTH_3_2_IDX,8,3 ; @NES_NIC_RQ_WQE_LENGTH_3_2_IDX
	.comm	_NES_NIC_RQ_WQE_FRAG0_LOW_IDX,8,3 ; @NES_NIC_RQ_WQE_FRAG0_LOW_IDX
	.comm	_NES_NIC_RQ_WQE_FRAG0_HIGH_IDX,8,3 ; @NES_NIC_RQ_WQE_FRAG0_HIGH_IDX
	.comm	_NES_WQE_ALLOC,8,3              ; @NES_WQE_ALLOC
	.no_dead_strip	_nes_replenish_nic_rq
.subsections_via_symbols
