	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __lpc_handle_recv
___lpc_handle_recv:                     ## @__lpc_handle_recv
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r12
	movl	(%rax), %edi
	callq	_LPC_ENET_RXCONSUMEINDEX
	movl	%eax, %edi
	callq	_readl
	testl	%r14d, %r14d
	jle	LBB0_1
## %bb.2:
	movq	%rax, %r13
	xorl	%ebx, %ebx
	movq	_RXSTATUS_SIZE@GOTPCREL(%rip), %r15
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %edi
	callq	_LPC_ENET_RXCONSUMEINDEX
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_writel
	incl	%ebx
	cmpl	%ebx, %r14d
	je	LBB0_18
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_LPC_ENET_RXPRODUCEINDEX
	movl	%eax, %edi
	callq	_readl
	cmpq	%rax, %r13
	je	LBB0_19
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r12), %rax
	movslq	(%rax,%r13,4), %rax
	movl	(%r15), %ecx
	andl	%eax, %ecx
	movq	_RXSTATUS_ERROR@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_RXSTATUS_STATUS_ERROR@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	orq	%rdx, %rsi
	andq	%rax, %rsi
	movq	_RXSTATUS_RANGE@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	orq	%rdx, %rdi
	cmpq	%rdi, %rsi
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	andq	%rax, %rdx
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_RXSTATUS_OVERRUN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	28(%rax)
	incl	16(%rax)
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movslq	%ecx, %r14
	incq	%r14
	movq	%r14, %rdi
	callq	_dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r15
	movq	_ENET_MAXF_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	imulq	%r13, %rsi
	addq	8(%r12), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_skb_put_data
	movq	%r15, %rdi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_eth_type_trans
	movl	%eax, (%r15)
	movq	%r15, %rdi
	callq	_netif_receive_skb
	incl	8(%r12)
	addq	%r14, (%r12)
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	12(%rax)
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movq	_RXSTATUS_SIZE@GOTPCREL(%rip), %r15
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movq	_ENET_RX_DESC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jb	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_17
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_RXSTATUS_CRC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	24(%rax)
	incl	16(%rax)
	jmp	LBB0_15
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	20(%rax)
	incl	16(%rax)
	jmp	LBB0_15
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_18:
	movl	%r14d, %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RXSTATUS_SIZE,4,2              ## @RXSTATUS_SIZE
	.comm	_RXSTATUS_ERROR,8,3             ## @RXSTATUS_ERROR
	.comm	_RXSTATUS_STATUS_ERROR,8,3      ## @RXSTATUS_STATUS_ERROR
	.comm	_RXSTATUS_RANGE,8,3             ## @RXSTATUS_RANGE
	.comm	_RXSTATUS_OVERRUN,4,2           ## @RXSTATUS_OVERRUN
	.comm	_RXSTATUS_CRC,4,2               ## @RXSTATUS_CRC
	.comm	_RXSTATUS_LENGTH,4,2            ## @RXSTATUS_LENGTH
	.comm	_ENET_MAXF_SIZE,8,3             ## @ENET_MAXF_SIZE
	.comm	_ENET_RX_DESC,8,3               ## @ENET_RX_DESC
	.no_dead_strip	___lpc_handle_recv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __lpc_handle_recv
___lpc_handle_recv:                     ; @__lpc_handle_recv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	w0, [x0]
	bl	_LPC_ENET_RXCONSUMEINDEX
	bl	_readl
	cmp	w19, #1
	b.lt	LBB0_15
; %bb.1:
	mov	x23, x0
	mov	w22, #0
Lloh0:
	adrp	x28, _RXSTATUS_ERROR@GOTPAGE
Lloh1:
	ldr	x28, [x28, _RXSTATUS_ERROR@GOTPAGEOFF]
Lloh2:
	adrp	x25, _RXSTATUS_STATUS_ERROR@GOTPAGE
Lloh3:
	ldr	x25, [x25, _RXSTATUS_STATUS_ERROR@GOTPAGEOFF]
Lloh4:
	adrp	x26, _RXSTATUS_RANGE@GOTPAGE
Lloh5:
	ldr	x26, [x26, _RXSTATUS_RANGE@GOTPAGEOFF]
Lloh6:
	adrp	x27, _ENET_RX_DESC@GOTPAGE
Lloh7:
	ldr	x27, [x27, _ENET_RX_DESC@GOTPAGEOFF]
	str	w19, [sp, #12]                  ; 4-byte Folded Spill
	b	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x19, x27
	mov	x27, x26
	mov	x26, x25
Lloh8:
	adrp	x9, _RXSTATUS_SIZE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RXSTATUS_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w8, w9, w8
	sxtw	x8, w8
	add	x24, x8, #1
	mov	x0, x24
	bl	_dev_alloc_skb
	cbz	x0, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x25, x0
	ldr	x8, [x21, #8]
Lloh11:
	adrp	x9, _ENET_MAXF_SIZE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ENET_MAXF_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	madd	x1, x9, x23, x8
	mov	x2, x24
	bl	_skb_put_data
	mov	x0, x25
	mov	x1, x20
	bl	_eth_type_trans
	str	w0, [x25]
	mov	x0, x25
	bl	_netif_receive_skb
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	ldr	x8, [x20]
	add	x8, x8, x24
	str	x8, [x20]
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x25, x26
	mov	x26, x27
	mov	x27, x19
	ldr	w19, [sp, #12]                  ; 4-byte Folded Reload
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x23, #1
	ldr	x9, [x27]
	cmp	x8, x9
	csinc	x23, xzr, x23, hs
	ldr	w0, [x21]
	bl	_LPC_ENET_RXCONSUMEINDEX
	mov	x1, x0
	mov	x0, x23
	bl	_writel
	add	w22, w22, #1
	cmp	w19, w22
	b.eq	LBB0_16
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_LPC_ENET_RXPRODUCEINDEX
	bl	_readl
	cmp	x23, x0
	b.eq	LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21, #16]
	ldrsw	x8, [x8, x23, lsl #2]
	ldr	x9, [x28]
	ldr	x10, [x25]
	orr	x10, x10, x9
	and	x10, x10, x8
	ldr	x11, [x26]
	orr	x11, x11, x9
	and	x9, x9, x8
	cmp	x10, x11
	ccmp	x9, #0, #4, ne
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh14:
	adrp	x9, _RXSTATUS_OVERRUN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RXSTATUS_OVERRUN@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x20, #28]
	add	w8, w8, #1
	str	w8, [x20, #28]
	b	LBB0_14
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x20, #12]
	add	w8, w8, #1
	str	w8, [x20, #12]
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh17:
	adrp	x9, _RXSTATUS_CRC@GOTPAGE
Lloh18:
	ldr	x9, [x9, _RXSTATUS_CRC@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x20, #24]
	add	w8, w8, #1
	str	w8, [x20, #24]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x20, #20]
	add	w8, w8, #1
	str	w8, [x20, #20]
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
	b	LBB0_5
LBB0_15:
	mov	w22, #0
	b	LBB0_17
LBB0_16:
	mov	x22, x19
LBB0_17:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_RXSTATUS_SIZE,4,2              ; @RXSTATUS_SIZE
	.comm	_RXSTATUS_ERROR,8,3             ; @RXSTATUS_ERROR
	.comm	_RXSTATUS_STATUS_ERROR,8,3      ; @RXSTATUS_STATUS_ERROR
	.comm	_RXSTATUS_RANGE,8,3             ; @RXSTATUS_RANGE
	.comm	_RXSTATUS_OVERRUN,4,2           ; @RXSTATUS_OVERRUN
	.comm	_RXSTATUS_CRC,4,2               ; @RXSTATUS_CRC
	.comm	_RXSTATUS_LENGTH,4,2            ; @RXSTATUS_LENGTH
	.comm	_ENET_MAXF_SIZE,8,3             ; @ENET_MAXF_SIZE
	.comm	_ENET_RX_DESC,8,3               ; @ENET_RX_DESC
	.no_dead_strip	___lpc_handle_recv
.subsections_via_symbols
