	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fec_enet_alloc_buffers
_fec_enet_alloc_buffers:                ## @fec_enet_alloc_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	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	24(%rax), %r13
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_FEC_ENET_RX_FRSIZE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_dma_map_single
	movq	%rax, 8(%r13)
	movq	_BD_ENET_RX_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	addq	$16, %r13
	incq	%rbx
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_5:
	movq	_BD_SC_WRAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	orl	%eax, -16(%r13)
	movq	8(%r15), %r13
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_9
## %bb.6:
	xorl	%ebx, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_FEC_ENET_TX_FRSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_kmalloc
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	$0, (%r13)
	movq	$0, 8(%r13)
	addq	$16, %r13
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_7
## %bb.8:
	movq	_BD_SC_WRAP@GOTPCREL(%rip), %rcx
LBB0_9:
	movl	(%rcx), %eax
	orl	%eax, -16(%r13)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_3:
	movq	%r14, %rdi
	callq	_fec_enet_free_buffers
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_RING_SIZE,4,2               ## @RX_RING_SIZE
	.comm	_FEC_ENET_RX_FRSIZE,4,2         ## @FEC_ENET_RX_FRSIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_BD_ENET_RX_EMPTY,4,2           ## @BD_ENET_RX_EMPTY
	.comm	_BD_SC_WRAP,4,2                 ## @BD_SC_WRAP
	.comm	_TX_RING_SIZE,4,2               ## @TX_RING_SIZE
	.comm	_FEC_ENET_TX_FRSIZE,4,2         ## @FEC_ENET_TX_FRSIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_fec_enet_alloc_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fec_enet_alloc_buffers
_fec_enet_alloc_buffers:                ; @fec_enet_alloc_buffers
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x21, [x0, #24]
Lloh0:
	adrp	x22, _RX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _RX_RING_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x23, #0
Lloh2:
	adrp	x24, _FEC_ENET_RX_FRSIZE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _FEC_ENET_RX_FRSIZE@GOTPAGEOFF]
Lloh4:
	adrp	x25, _DMA_FROM_DEVICE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh6:
	adrp	x26, _BD_ENET_RX_EMPTY@GOTPAGE
Lloh7:
	ldr	x26, [x26, _BD_ENET_RX_EMPTY@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	bl	_dev_alloc_skb
	cbz	x0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #16]
	str	x0, [x8, x23, lsl #3]
	ldr	w1, [x0]
	ldr	w2, [x24]
	ldr	w3, [x25]
	mov	x0, x20
	bl	_dma_map_single
	str	x0, [x21, #8]
	ldr	w8, [x26]
	str	w8, [x21], #16
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_2
LBB0_4:
Lloh8:
	adrp	x20, _BD_SC_WRAP@GOTPAGE
Lloh9:
	ldr	x20, [x20, _BD_SC_WRAP@GOTPAGEOFF]
	ldr	w8, [x20]
	ldur	w9, [x21, #-16]
	orr	w8, w9, w8
	stur	w8, [x21, #-16]
	ldr	x21, [x19, #8]
Lloh10:
	adrp	x22, _TX_RING_SIZE@GOTPAGE
Lloh11:
	ldr	x22, [x22, _TX_RING_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x23, #0
Lloh12:
	adrp	x24, _FEC_ENET_TX_FRSIZE@GOTPAGE
Lloh13:
	ldr	x24, [x24, _FEC_ENET_TX_FRSIZE@GOTPAGEOFF]
Lloh14:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh15:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	ldr	w1, [x25]
	bl	_kmalloc
	ldr	x8, [x19]
	str	w0, [x8, x23, lsl #2]
	str	wzr, [x21]
	str	xzr, [x21, #8]
	add	x21, x21, #16
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_6
LBB0_7:
	mov	w0, #0
	ldr	w8, [x20]
	ldur	w9, [x21, #-16]
	orr	w8, w9, w8
	stur	w8, [x21, #-16]
	b	LBB0_9
LBB0_8:
	mov	x0, x20
	bl	_fec_enet_free_buffers
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_RING_SIZE,4,2               ; @RX_RING_SIZE
	.comm	_FEC_ENET_RX_FRSIZE,4,2         ; @FEC_ENET_RX_FRSIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_BD_ENET_RX_EMPTY,4,2           ; @BD_ENET_RX_EMPTY
	.comm	_BD_SC_WRAP,4,2                 ; @BD_SC_WRAP
	.comm	_TX_RING_SIZE,4,2               ; @TX_RING_SIZE
	.comm	_FEC_ENET_TX_FRSIZE,4,2         ; @FEC_ENET_TX_FRSIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_fec_enet_alloc_buffers
.subsections_via_symbols
