	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fec_enet_alloc_rxq_buffers
_fec_enet_alloc_rxq_buffers:            ## @fec_enet_alloc_rxq_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
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rax
	movl	%ebx, %ecx
	movq	(%rax,%rcx,8), %r12
	movq	8(%r12), %r13
	cmpl	$0, (%r12)
	je	LBB0_9
## %bb.1:
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_fec_enet_get_nextdesc
	movq	%rax, %r13
	incq	%r15
	movl	(%r12), %eax
	cmpq	%rax, %r15
	jae	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_FEC_ENET_RX_FRSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_netdev_alloc_skb
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rax, %rdx
	callq	_fec_enet_new_rxbdp
	testq	%rax, %rax
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %rax
	movq	%rbx, (%rax,%r15,8)
	movq	_BD_ENET_RX_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_fec16
	movl	%eax, (%r13)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_BD_ENET_RX_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_fec32
	movl	%eax, (%r13)
	jmp	LBB0_8
LBB0_9:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_fec_enet_get_prevdesc
	movq	%rax, %rbx
	movq	_BD_SC_WRAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_fec16
	orl	%eax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_4:
	movq	%rbx, %rdi
	callq	_dev_kfree_skb
LBB0_5:
	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	_FEC_ENET_RX_FRSIZE,4,2         ## @FEC_ENET_RX_FRSIZE
	.comm	_BD_ENET_RX_EMPTY,4,2           ## @BD_ENET_RX_EMPTY
	.comm	_BD_ENET_RX_INT,4,2             ## @BD_ENET_RX_INT
	.comm	_BD_SC_WRAP,4,2                 ## @BD_SC_WRAP
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_fec_enet_alloc_rxq_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_rxq_buffers
_fec_enet_alloc_rxq_buffers:            ; @fec_enet_alloc_rxq_buffers
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_netdev_priv
	ldr	x8, [x0, #8]
	ldr	x20, [x8, w20, uxtw #3]
	ldr	x22, [x20, #8]
	ldr	w8, [x20]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x21, x0
	mov	x24, #0
Lloh0:
	adrp	x25, _FEC_ENET_RX_FRSIZE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _FEC_ENET_RX_FRSIZE@GOTPAGEOFF]
Lloh2:
	adrp	x26, _BD_ENET_RX_EMPTY@GOTPAGE
Lloh3:
	ldr	x26, [x26, _BD_ENET_RX_EMPTY@GOTPAGEOFF]
Lloh4:
	adrp	x27, _BD_ENET_RX_INT@GOTPAGE
Lloh5:
	ldr	x27, [x27, _BD_ENET_RX_INT@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	mov	x1, x20
	bl	_fec_enet_get_nextdesc
	mov	x22, x0
	add	x24, x24, #1
	ldr	w8, [x20]
	cmp	x24, x8
	b.hs	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	mov	x0, x19
	bl	_netdev_alloc_skb
	cbz	x0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_fec_enet_new_rxbdp
	cbnz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #16]
	str	x23, [x8, x24, lsl #3]
	ldr	w0, [x26]
	bl	_cpu_to_fec16
	str	w0, [x22]
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x27]
	bl	_cpu_to_fec32
	str	w0, [x22]
	b	LBB0_2
LBB0_7:
	mov	x0, x22
	mov	x1, x20
	bl	_fec_enet_get_prevdesc
	mov	x19, x0
Lloh6:
	adrp	x8, _BD_SC_WRAP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BD_SC_WRAP@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_cpu_to_fec16
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_10
LBB0_8:
	mov	x0, x23
	bl	_dev_kfree_skb
LBB0_9:
	mov	x0, x19
	bl	_fec_enet_free_buffers
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_FEC_ENET_RX_FRSIZE,4,2         ; @FEC_ENET_RX_FRSIZE
	.comm	_BD_ENET_RX_EMPTY,4,2           ; @BD_ENET_RX_EMPTY
	.comm	_BD_ENET_RX_INT,4,2             ; @BD_ENET_RX_INT
	.comm	_BD_SC_WRAP,4,2                 ; @BD_SC_WRAP
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_fec_enet_alloc_rxq_buffers
.subsections_via_symbols
