	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmmac_rx_refill
_stmmac_rx_refill:                      ## @stmmac_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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	56(%rdi), %rbx
	movq	%rsi, %r15
	shlq	$6, %r15
	leaq	(%rbx,%r15), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	callq	_stmmac_rx_dirty
	movl	%eax, %r13d
	movl	(%rbx,%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	48(%r12), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DIV_ROUND_UP
	testl	%r13d, %r13d
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	jle	LBB0_13
## %bb.1:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	leaq	(%rbx,%r15), %rax
	addq	$32, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	incl	%r13d
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rdi
	callq	_page_pool_get_dma_addr
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movl	24(%r12), %edi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rax, %rsi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_dma_sync_single_for_device
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rdi
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	movq	%rcx, %r13
	callq	_page_pool_get_dma_addr
	movq	%rax, 8(%r14,%rbx)
	movl	24(%r12), %edi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rax, %rsi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_dma_sync_single_for_device
	movq	8(%r14,%rbx), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_stmmac_set_desc_addr
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_stmmac_set_desc_sec_addr
	movq	%r12, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_stmmac_refill_desc3
	movq	-24(%r13), %rax
	movq	(%r12), %rcx
	addq	%rax, %rcx
	incq	%rcx
	sarq	$63, %rax
	andq	%rcx, %rax
	movq	%rax, -24(%r13)
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	setne	%al
	cmpq	$0, 16(%r12)
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %r14d
	xorl	%eax, %eax
	callq	_dma_wmb
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_stmmac_set_rx_owner
	movq	_DMA_RX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_STMMAC_GET_ENTRY
	movl	%eax, %ecx
	decl	%r13d
	cmpl	$1, %r13d
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jbe	LBB0_14
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %r15d
	movq	%r15, %rbx
	shlq	$5, %rbx
	cmpq	$0, 40(%r12)
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addq	16(%rcx), %r15
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	shlq	$2, %r15
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addq	8(%rcx), %r15
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%rcx), %r14
	leaq	(%r14,%rbx), %rsi
	addq	$16, %rsi
	movq	16(%r14,%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rcx), %edi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	callq	_page_pool_dev_alloc_pages
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rsi)
	testq	%rax, %rax
	je	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%r14,%rbx), %rdx
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	cmpq	$0, 32(%r12)
	je	LBB0_3
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 24(%r14,%rbx)
	jne	LBB0_3
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%rbx), %rax
	addq	$24, %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	(%rcx), %edi
	callq	_page_pool_dev_alloc_pages
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_2
LBB0_12:
	movq	-80(%rbp), %r15                 ## 8-byte Reload
LBB0_13:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
LBB0_14:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	movl	%ecx, %edx
	shlq	$2, %rdx
	movq	-104(%rbp), %rax                ## 8-byte Reload
	addq	24(%rax,%r15), %rdx
	movq	%rdx, 16(%rax,%r15)
	movl	8(%r12), %esi
	movq	%r12, %rdi
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_stmmac_set_rx_tail_ptr         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_DMA_RX_SIZE,4,2                ## @DMA_RX_SIZE
	.no_dead_strip	_stmmac_rx_refill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmmac_rx_refill
_stmmac_rx_refill:                      ; @stmmac_rx_refill
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x20, x0
	ldr	x8, [x0, #56]
	add	x27, x8, x1, lsl #6
	bl	_stmmac_rx_dirty
	mov	x24, x0
	mov	x8, x27
	ldr	w22, [x8], #32
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	ldr	w0, [x20, #48]
Lloh0:
	adrp	x19, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x19, [x19, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w1, [x19]
	bl	_DIV_ROUND_UP
	cmp	w24, #1
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	b.lt	LBB0_13
; %bb.1:
	ldr	w8, [x19]
	mul	w8, w8, w0
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
	add	x9, x27, #56
	add	x10, x27, #48
	add	x8, x27, #40
	stp	x8, x10, [sp, #16]              ; 16-byte Folded Spill
	add	x8, x27, #8
	stp	x8, x9, [sp, #40]               ; 16-byte Folded Spill
	add	w28, w24, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_page_pool_get_dma_addr
	mov	x1, x0
	add	x21, x26, x25, lsl #5
	str	x0, [x21, #8]
	ldr	w0, [x20, #24]
Lloh2:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	ldr	w2, [sp, #60]                   ; 4-byte Folded Reload
	bl	_dma_sync_single_for_device
	ldr	x2, [x21, #8]
	mov	x0, x20
	mov	x1, x24
	bl	_stmmac_set_desc_addr
	ldr	x2, [x27]
	mov	x0, x20
	mov	x1, x24
	bl	_stmmac_set_desc_sec_addr
	mov	x0, x20
	mov	x27, x19
	mov	x1, x19
	mov	x2, x24
	bl	_stmmac_refill_desc3
	ldr	x11, [sp, #40]                  ; 8-byte Folded Reload
	ldr	x8, [x11]
	ldr	x9, [x20]
	add	x9, x8, x9
	add	x9, x9, #1
	ldr	x10, [x20, #16]
	cmp	x10, #0
	cset	w10, ne
	ands	x8, x9, x8, asr #63
	str	x8, [x11]
	cset	w8, ne
	and	w25, w10, w8
	bl	_dma_wmb
	mov	x0, x20
	mov	x1, x24
	mov	x2, x25
	bl	_stmmac_set_rx_owner
Lloh5:
	adrp	x8, _DMA_RX_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_RX_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_STMMAC_GET_ENTRY
	mov	x22, x0
	sub	w28, w28, #1
	cmp	w28, #1
	b.ls	LBB0_13
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w25, w22
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	add	x24, x8, x25
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	add	x24, x8, x25, lsl #2
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	ldr	x26, [x8]
	add	x23, x26, x25, lsl #5
	ldr	x0, [x23, #16]!
	cbnz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	w0, [x8]
	bl	_page_pool_dev_alloc_pages
	str	x0, [x23]
	cbz	x0, LBB0_13
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x19, x27
	add	x27, x26, x25, lsl #5
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x26, x25, lsl #5
	ldr	x8, [x21, #24]!
	cbnz	x8, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	w0, [x8]
	bl	_page_pool_dev_alloc_pages
	str	x0, [x21]
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	bl	_page_pool_get_dma_addr
	mov	x1, x0
	str	x0, [x27]
	ldr	w0, [x20, #24]
Lloh8:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	ldr	w2, [sp, #60]                   ; 4-byte Folded Reload
	bl	_dma_sync_single_for_device
	ldr	x0, [x23]
	b	LBB0_2
LBB0_12:
	mov	x27, x19
LBB0_13:
	str	w22, [x27]
	ldr	x8, [x27, #24]
	add	x2, x8, w22, uxtw #2
	str	x2, [x27, #16]
	ldr	w1, [x20, #8]
	mov	x0, x20
	ldr	x3, [sp, #8]                    ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_stmmac_set_rx_tail_ptr
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_DMA_RX_SIZE,4,2                ; @DMA_RX_SIZE
	.no_dead_strip	_stmmac_rx_refill
.subsections_via_symbols
