	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nps_enet_rx_handler
_nps_enet_rx_handler:                   ## @nps_enet_rx_handler
	.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, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_NPS_ENET_REG_RX_CTL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_nps_enet_reg_get
	movq	_RX_CTL_CR_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	%eax, %esi
	movq	_RX_CTL_CR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %esi
	movq	_RX_CTL_CRC_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_RX_CTL_CRC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movq	_RX_CTL_NR_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	%eax, %ebx
	movq	_RX_CTL_NR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %ebx
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	_RX_CTL_ER_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_RX_CTL_ER_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	incl	12(%r15)
	movl	$1, %r12d
	testl	%edx, %edx
	je	LBB0_7
LBB0_6:
	incl	20(%r15)
	incl	8(%r15)
	movl	$1, %r12d
LBB0_7:
	movq	_ETH_ZLEN@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %ebx
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	16(%r15), %rax
LBB0_12:
	incl	(%rax)
	incl	8(%r15)
	jmp	LBB0_13
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_3:
	xorl	%r12d, %r12d
	testl	%edx, %edx
	jne	LBB0_6
	jmp	LBB0_7
LBB0_9:
	testl	%r12d, %r12d
	je	LBB0_10
LBB0_13:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_nps_enet_clean_rx_fifo
LBB0_14:
	movl	(%r13), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_nps_enet_reg_set
	movl	$1, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_netdev_alloc_skb_ip_align
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:
	leaq	12(%r15), %rax
	jmp	LBB0_12
LBB0_16:
	movl	8(%r12), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_nps_enet_read_rx_fifo
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_skb_put
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_eth_type_trans
	movl	%eax, 4(%r12)
	movq	_CHECKSUM_UNNECESSARY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	incl	4(%r15)
	addl	%ebx, (%r15)
	movq	%r12, %rdi
	callq	_netif_receive_skb
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_NPS_ENET_REG_RX_CTL,4,2        ## @NPS_ENET_REG_RX_CTL
	.comm	_RX_CTL_CR_MASK,4,2             ## @RX_CTL_CR_MASK
	.comm	_RX_CTL_CR_SHIFT,4,2            ## @RX_CTL_CR_SHIFT
	.comm	_RX_CTL_ER_MASK,4,2             ## @RX_CTL_ER_MASK
	.comm	_RX_CTL_ER_SHIFT,4,2            ## @RX_CTL_ER_SHIFT
	.comm	_RX_CTL_CRC_MASK,4,2            ## @RX_CTL_CRC_MASK
	.comm	_RX_CTL_CRC_SHIFT,4,2           ## @RX_CTL_CRC_SHIFT
	.comm	_RX_CTL_NR_MASK,4,2             ## @RX_CTL_NR_MASK
	.comm	_RX_CTL_NR_SHIFT,4,2            ## @RX_CTL_NR_SHIFT
	.comm	_ETH_ZLEN,4,2                   ## @ETH_ZLEN
	.comm	_CHECKSUM_UNNECESSARY,4,2       ## @CHECKSUM_UNNECESSARY
	.no_dead_strip	_nps_enet_rx_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nps_enet_rx_handler
_nps_enet_rx_handler:                   ; @nps_enet_rx_handler
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x23, _NPS_ENET_REG_RX_CTL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NPS_ENET_REG_RX_CTL@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_nps_enet_reg_get
Lloh2:
	adrp	x8, _RX_CTL_CR_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RX_CTL_CR_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh5:
	adrp	x9, _RX_CTL_CR_SHIFT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RX_CTL_CR_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	asr	w8, w8, w9
	cbz	w8, LBB0_7
; %bb.1:
Lloh8:
	adrp	x8, _RX_CTL_CRC_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RX_CTL_CRC_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _RX_CTL_CRC_SHIFT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RX_CTL_CRC_SHIFT@GOTPAGEOFF]
	and	w8, w8, w0
Lloh13:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh14:
	adrp	x9, _RX_CTL_NR_MASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RX_CTL_NR_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	and	w9, w9, w0
Lloh17:
	adrp	x10, _RX_CTL_NR_SHIFT@GOTPAGE
Lloh18:
	ldr	x10, [x10, _RX_CTL_NR_SHIFT@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
Lloh20:
	adrp	x11, _RX_CTL_ER_MASK@GOTPAGE
Lloh21:
	ldr	x11, [x11, _RX_CTL_ER_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x11]
	and	w11, w11, w0
Lloh23:
	adrp	x12, _RX_CTL_ER_SHIFT@GOTPAGE
Lloh24:
	ldr	x12, [x12, _RX_CTL_ER_SHIFT@GOTPAGEOFF]
Lloh25:
	ldr	w12, [x12]
	asr	w11, w11, w12
	cbz	w11, LBB0_8
; %bb.2:
	ldr	w11, [x20, #12]
	add	w11, w11, #1
	str	w11, [x20, #12]
	mov	w22, #1
	asr	w21, w9, w10
	cbz	w8, LBB0_4
LBB0_3:
	ldr	w8, [x20, #20]
	add	w8, w8, #1
	str	w8, [x20, #20]
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	mov	w22, #1
LBB0_4:
Lloh26:
	adrp	x8, _ETH_ZLEN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ETH_ZLEN@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cmp	w21, w8
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.5:
	add	x8, x20, #16
LBB0_6:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	b	LBB0_10
LBB0_7:
	mov	w0, #0
	b	LBB0_12
LBB0_8:
	mov	w22, #0
	asr	w21, w9, w10
	cbnz	w8, LBB0_3
	b	LBB0_4
LBB0_9:
	cbz	w22, LBB0_13
LBB0_10:
	mov	x0, x20
	mov	x1, x21
	bl	_nps_enet_clean_rx_fifo
LBB0_11:
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_nps_enet_reg_set
	mov	w0, #1
LBB0_12:
	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_13:
	mov	x0, x20
	mov	x1, x21
	bl	_netdev_alloc_skb_ip_align
	mov	x22, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_15
; %bb.14:
	add	x8, x20, #12
	b	LBB0_6
LBB0_15:
	ldr	w1, [x22, #8]
	mov	x0, x20
	mov	x2, x21
	bl	_nps_enet_read_rx_fifo
	mov	x0, x22
	mov	x1, x21
	bl	_skb_put
	mov	x0, x22
	mov	x1, x20
	bl	_eth_type_trans
Lloh29:
	adrp	x8, _CHECKSUM_UNNECESSARY@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CHECKSUM_UNNECESSARY@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	stp	w8, w0, [x22]
	ldr	d0, [x20]
	movi.2s	v1, #1
	mov.s	v1[0], w21
	add.2s	v0, v0, v1
	str	d0, [x20]
	mov	x0, x22
	bl	_netif_receive_skb
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_NPS_ENET_REG_RX_CTL,4,2        ; @NPS_ENET_REG_RX_CTL
	.comm	_RX_CTL_CR_MASK,4,2             ; @RX_CTL_CR_MASK
	.comm	_RX_CTL_CR_SHIFT,4,2            ; @RX_CTL_CR_SHIFT
	.comm	_RX_CTL_ER_MASK,4,2             ; @RX_CTL_ER_MASK
	.comm	_RX_CTL_ER_SHIFT,4,2            ; @RX_CTL_ER_SHIFT
	.comm	_RX_CTL_CRC_MASK,4,2            ; @RX_CTL_CRC_MASK
	.comm	_RX_CTL_CRC_SHIFT,4,2           ; @RX_CTL_CRC_SHIFT
	.comm	_RX_CTL_NR_MASK,4,2             ; @RX_CTL_NR_MASK
	.comm	_RX_CTL_NR_SHIFT,4,2            ; @RX_CTL_NR_SHIFT
	.comm	_ETH_ZLEN,4,2                   ; @ETH_ZLEN
	.comm	_CHECKSUM_UNNECESSARY,4,2       ; @CHECKSUM_UNNECESSARY
	.no_dead_strip	_nps_enet_rx_handler
.subsections_via_symbols
