	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmmac_init_rx_buffers
_stmmac_init_rx_buffers:                ## @stmmac_init_rx_buffers
	.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	%r8, %rbx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	16(%rdi), %r14
	shlq	$4, %rbx
	movq	8(%r14,%rbx), %r12
	movslq	%edx, %r13
	movl	(%r14,%rbx), %edi
	callq	_page_pool_dev_alloc_pages
	shlq	$5, %r13
	movq	%rax, 8(%r12,%r13)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpq	$0, 8(%r15)
	je	LBB0_5
## %bb.3:
	addq	%rbx, %r14
	movl	(%r14), %edi
	callq	_page_pool_dev_alloc_pages
	movq	%rax, 16(%r12,%r13)
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	leaq	(%r12,%r13), %rbx
	addq	$8, %rbx
	movq	%rax, %rdi
	callq	_page_pool_get_dma_addr
	movq	%rax, 24(%r12,%r13)
	movq	%r15, %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_stmmac_set_desc_sec_addr
	movq	(%rbx), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_5:
	movq	$0, 16(%r12,%r13)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_6:
	movq	%rax, %rdi
	callq	_page_pool_get_dma_addr
	movq	%rax, (%r12,%r13)
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_stmmac_set_desc_addr
	movq	(%r15), %rax
	movq	_BUF_SIZE_16KiB@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_stmmac_init_desc3
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BUF_SIZE_16KiB,8,3             ## @BUF_SIZE_16KiB
	.no_dead_strip	_stmmac_init_rx_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmmac_init_rx_buffers
_stmmac_init_rx_buffers:                ; @stmmac_init_rx_buffers
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #16]
	add	x24, x8, x4, lsl #4
	ldr	x21, [x24, #8]
	sxtw	x22, w2
	ldr	w0, [x24]
	bl	_page_pool_dev_alloc_pages
	add	x23, x21, x22, lsl #5
	str	x0, [x23, #8]!
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	w0, [x24]
	bl	_page_pool_dev_alloc_pages
	add	x24, x21, x22, lsl #5
	str	x0, [x24, #16]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_page_pool_get_dma_addr
	mov	x2, x0
	str	x0, [x24, #24]
	mov	x0, x20
	mov	x1, x19
	bl	_stmmac_set_desc_sec_addr
	ldr	x0, [x23]
	b	LBB0_6
LBB0_4:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_5:
	add	x8, x21, x22, lsl #5
	str	xzr, [x8, #16]
LBB0_6:
	bl	_page_pool_get_dma_addr
	mov	x2, x0
	lsl	x8, x22, #5
	str	x0, [x21, x8]
	mov	x0, x20
	mov	x1, x19
	bl	_stmmac_set_desc_addr
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _BUF_SIZE_16KiB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BUF_SIZE_16KiB@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	bl	_stmmac_init_desc3
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BUF_SIZE_16KiB,8,3             ; @BUF_SIZE_16KiB
	.no_dead_strip	_stmmac_init_rx_buffers
.subsections_via_symbols
