	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sxgbe_rx_refill
_sxgbe_rx_refill:                       ## @sxgbe_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
	movq	8(%rdi), %r14
	movq	24(%rdi), %rax
	movq	(%rax,%r14,8), %rcx
	movl	8(%rcx), %eax
	cmpq	%rax, (%rcx)
	jle	LBB0_6
## %bb.1:
	movq	%rdi, %r15
	movl	(%rdi), %edx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	4(%rdi), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r15), %rax
	movq	(%rax,%r14,8), %rax
	movq	24(%rax), %rax
	movq	%rbx, (%rax,%r12,8)
	movl	32(%r15), %edi
	movl	(%rbx), %esi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_dma_map_single
	movq	24(%r15), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	16(%rcx), %rcx
	movl	%eax, (%rcx,%r12,4)
	movl	%eax, (%r13)
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_wmb
	movq	16(%r15), %rax
	movq	(%rax), %rax
	movq	%r13, %rdi
	callq	*8(%rax)
	movq	16(%r15), %rax
	movq	(%rax), %rax
	movq	%r13, %rdi
	callq	*(%rax)
	xorl	%eax, %eax
	callq	_wmb
	movq	24(%r15), %rax
	movq	(%rax,%r14,8), %rcx
	movl	8(%rcx), %eax
	incl	%eax
	movl	%eax, 8(%rcx)
	cmpq	%rax, (%rcx)
	jle	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	-48(%rbp)                       ## 4-byte Folded Reload
	movl	%edx, %r12d
	leaq	(,%r12,4), %r13
	addq	32(%rcx), %r13
	movq	24(%rcx), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax,%r12,8)
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	36(%r15), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_netdev_alloc_skb_ip_align
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_sxgbe_rx_refill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sxgbe_rx_refill
_sxgbe_rx_refill:                       ; @sxgbe_rx_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
	ldr	x23, [x0, #8]
	ldr	x8, [x0, #24]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x10, [x8]
	ldr	w9, [x8, #8]
	cmp	x10, x9
	b.le	LBB0_6
; %bb.1:
	mov	x19, x0
	ldp	w24, w20, [x0]
	lsl	x25, x23, #3
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
Lloh0:
	adrp	x26, _DMA_FROM_DEVICE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _DMA_FROM_DEVICE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x25]
	ldr	x8, [x8, #24]
	str	x22, [x8, x27, lsl #3]
	ldr	w0, [x19, #32]
	ldr	w1, [x22]
	ldr	w3, [x26]
	mov	x2, x20
	bl	_dma_map_single
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x25]
	ldr	x8, [x8, #16]
	str	w0, [x8, x27, lsl #2]
	str	w0, [x21]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_wmb
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	mov	x0, x21
	blr	x8
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x21
	blr	x8
	bl	_wmb
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x23, lsl #3]
	ldr	w9, [x8, #8]
	add	w9, w9, #1
	str	w9, [x8, #8]
	ldr	x10, [x8]
	cmp	x10, x9
	b.le	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	udiv	w10, w9, w24
	msub	w27, w10, w24, w9
	ldp	x8, x9, [x8, #24]
	add	x21, x9, w27, uxtw #2
	ldr	x8, [x8, w27, uxtw #3]
	cmp	x8, #0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #36]
	mov	x1, x20
	bl	_netdev_alloc_skb_ip_align
	mov	x22, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
LBB0_6:
	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	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_sxgbe_rx_refill
.subsections_via_symbols
