	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nps_enet_read_rx_fifo
_nps_enet_read_rx_fifo:                 ## @nps_enet_read_rx_fifo
	.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	%edx, %r13d
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movl	%r13d, %eax
	andl	$3, %eax
	movl	%eax, %ebx
	movl	%r13d, %r12d
	sarl	$2, %r12d
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_IS_ALIGNED
	testl	%eax, %eax
	je	LBB0_1
## %bb.7:
	movq	_NPS_ENET_REG_RX_BUF@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_ioread32_rep
	movslq	%r12d, %rax
	leaq	(%r14,%rax,4), %r14
	movl	%ebx, %r13d
	jmp	LBB0_4
LBB0_1:
	cmpl	$4, %r13d
	movl	%ebx, %r13d
	jl	LBB0_4
## %bb.2:
	cmpl	$2, %r12d
	movl	$1, %ebx
	cmovgel	%r12d, %ebx
	movq	_NPS_ENET_REG_RX_BUF@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rsi
	movq	%r15, %rdi
	callq	_nps_enet_reg_get
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_put_unaligned_be32
	addq	$4, %r14
	decl	%ebx
	jne	LBB0_3
LBB0_4:
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.5:
	movq	_NPS_ENET_REG_RX_BUF@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	leaq	-44(%rbp), %r15
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_ioread32_rep
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_memcpy
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NPS_ENET_REG_RX_BUF,8,3        ## @NPS_ENET_REG_RX_BUF
	.no_dead_strip	_nps_enet_read_rx_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nps_enet_read_rx_fifo
_nps_enet_read_rx_fifo:                 ; @nps_enet_read_rx_fifo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x23, x2
	mov	x19, x1
	bl	_netdev_priv
	mov	x21, x0
	and	w20, w23, #0x3
	asr	w22, w23, #2
	mov	x0, x19
	mov	w1, #4
	bl	_IS_ALIGNED
Lloh0:
	adrp	x24, _NPS_ENET_REG_RX_BUF@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NPS_ENET_REG_RX_BUF@GOTPAGEOFF]
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x21]
	ldr	x9, [x24]
	add	x0, x9, x8
	mov	x1, x19
	mov	x2, x22
	bl	_ioread32_rep
	add	x19, x19, w22, sxtw #2
	b	LBB0_5
LBB0_2:
	cmp	w23, #4
	b.lt	LBB0_5
; %bb.3:
	cmp	w22, #1
	csinc	w22, w22, wzr, gt
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x24]
	mov	x0, x21
	bl	_nps_enet_reg_get
	mov	x1, x19
	bl	_put_unaligned_be32
	add	x19, x19, #4
	subs	w22, w22, #1
	b.ne	LBB0_4
LBB0_5:
	cbz	w20, LBB0_7
; %bb.6:
	ldr	x8, [x21]
	ldr	x9, [x24]
	add	x0, x9, x8
	add	x1, sp, #12
	mov	w2, #1
	bl	_ioread32_rep
	add	x1, sp, #12
	mov	x0, x19
	mov	x2, x20
	bl	_memcpy
LBB0_7:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NPS_ENET_REG_RX_BUF,8,3        ; @NPS_ENET_REG_RX_BUF
	.no_dead_strip	_nps_enet_read_rx_fifo
.subsections_via_symbols
