	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_mac_rx_descs_refill
_emac_mac_rx_descs_refill:              ## @emac_mac_rx_descs_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	%rsi, %r14
	movslq	24(%rsi), %rsi
	leaq	1(%rsi), %rax
	xorl	%r13d, %r13d
	cmpq	%rax, 32(%r14)
	movq	%rdi, %r15
	movl	$0, %ebx
	cmovneq	%rax, %rbx
	movq	%r14, %rdi
	callq	_GET_RFD_BUFFER
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_GET_RFD_BUFFER
	cmpl	$0, (%rax)
	je	LBB0_1
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rbx
	movq	16(%r15), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movl	8(%r15), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_single
	movl	%eax, (%r12)
	movq	16(%r15), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, 8(%r12)
	movl	8(%r15), %eax
	movl	%eax, 4(%r12)
	movl	(%r12), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_emac_mac_rx_rfd_create
	movslq	24(%r14), %rsi
	leaq	1(%rsi), %rax
	cmpq	%rax, 32(%r14)
	movl	$0, %ebx
	cmovneq	%rax, %rbx
	movq	%r14, %rdi
	callq	_GET_RFD_BUFFER
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_GET_RFD_BUFFER
	incl	%r13d
	cmpl	$0, (%rax)
	jne	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rdi
	movl	8(%r15), %esi
	callq	_netdev_alloc_skb_ip_align
	testq	%rax, %rax
	jne	LBB0_2
LBB0_5:
	testl	%r13d, %r13d
	jne	LBB0_7
	jmp	LBB0_6
LBB0_3:
	movq	%rbx, %rdi
	callq	_dev_kfree_skb
	testl	%r13d, %r13d
	je	LBB0_6
LBB0_7:
	movl	24(%r14), %eax
	movb	(%r14), %cl
	shll	%cl, %eax
	movslq	%eax, %rdx
	movq	8(%r14), %rsi
	andq	%rsi, %rdx
	movq	16(%r14), %rdi
	addq	(%r15), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_emac_reg_update32              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_emac_mac_rx_descs_refill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_mac_rx_descs_refill
_emac_mac_rx_descs_refill:              ; @emac_mac_rx_descs_refill
	.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
	mov	x19, x1
	mov	x20, x0
	ldrsw	x1, [x1, #24]
	add	x8, x1, #1
	ldr	x9, [x19, #32]
	cmp	x9, x8
	csinc	x22, xzr, x1, eq
	mov	x0, x19
	bl	_GET_RFD_BUFFER
	mov	x21, x0
	mov	x0, x19
	mov	x1, x22
	bl	_GET_RFD_BUFFER
	ldr	w8, [x0]
	cbz	w8, LBB0_2
LBB0_1:
	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
LBB0_2:
	mov	w23, #0
Lloh0:
	adrp	x24, _DMA_FROM_DEVICE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DMA_FROM_DEVICE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20, #16]
	ldr	w1, [x20, #8]
	bl	_netdev_alloc_skb_ip_align
	cbz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	ldr	w1, [x22]
	ldr	w2, [x20, #8]
	ldr	w3, [x24]
	bl	_dma_map_single
	mov	x1, x0
	str	w0, [x21]
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	bl	_dma_mapping_error
	cbnz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x22, [x21, #8]
	ldr	w8, [x20, #8]
	str	w8, [x21, #4]
	ldr	w2, [x21]
	mov	x0, x20
	mov	x1, x19
	bl	_emac_mac_rx_rfd_create
	ldrsw	x1, [x19, #24]
	add	x8, x1, #1
	ldr	x9, [x19, #32]
	cmp	x9, x8
	csinc	x22, xzr, x1, eq
	mov	x0, x19
	bl	_GET_RFD_BUFFER
	mov	x21, x0
	mov	x0, x19
	mov	x1, x22
	bl	_GET_RFD_BUFFER
	add	w23, w23, #1
	ldr	w8, [x0]
	cbz	w8, LBB0_3
LBB0_6:
	cbnz	w23, LBB0_8
	b	LBB0_1
LBB0_7:
	mov	x0, x22
	bl	_dev_kfree_skb
	cbz	w23, LBB0_1
LBB0_8:
	ldr	w8, [x19, #24]
	ldr	w9, [x19]
	lsl	w8, w8, w9
	sxtw	x8, w8
	ldp	x1, x9, [x19, #8]
	and	x2, x1, x8
	ldr	x8, [x20]
	add	x0, x9, x8
	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
	b	_emac_reg_update32
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_emac_mac_rx_descs_refill
.subsections_via_symbols
