	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lance_rx
_lance_rx:                              ## @lance_rx
	.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
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	8(%rax), %rsi
	movq	_LE_C0_RINT@GOTPCREL(%rip), %rcx
	movq	_LE_C0_INEA@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	16(%rax), %r14
	movl	%edx, (%rsi)
	movq	8(%r14), %rsi
	movslq	(%rax), %rdx
	movb	(%rsi,%rdx,8), %bl
	movq	_LE_R1_OWN@GOTPCREL(%rip), %r9
	movb	(%r9), %r8b
	testb	%bl, %r8b
	je	LBB0_1
LBB0_20:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	(%rsi,%rdx,8), %r13
	movq	_LE_R1_POK@GOTPCREL(%rip), %rdi
	movq	_LE_R1_ERR@GOTPCREL(%rip), %r10
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	20(%r15)
	incl	12(%r15)
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rcx
	movslq	%edx, %rsi
	leaq	(%rcx,%rsi,8), %r13
	movzbl	(%rcx,%rsi,8), %ebx
	testb	%bl, %r8b
	jne	LBB0_20
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %ecx
	notb	%cl
	testb	%cl, (%rdi)
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	%bl, (%r10)
	je	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_LE_R1_BUF@GOTPCREL(%rip), %rcx
	testb	%bl, (%rcx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	28(%r15)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_LE_R1_CRC@GOTPCREL(%rip), %rcx
	testb	%bl, (%rcx)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	24(%r15)
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_LE_R1_OFL@GOTPCREL(%rip), %rcx
	testb	%bl, (%rcx)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	20(%r15)
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_LE_R1_FRA@GOTPCREL(%rip), %rcx
	testb	%bl, (%rcx)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	16(%r15)
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_LE_R1_EOP@GOTPCREL(%rip), %rcx
	testb	%bl, (%rcx)
	je	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	12(%r15)
	jmp	LBB0_18
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r13), %ebx
	movl	$4095, %eax                     ## imm = 0xFFF
	andl	%eax, %ebx
	leal	-2(%rbx), %esi
	movq	%r15, %rdi
	callq	_netdev_alloc_skb
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	addl	$-4, %ebx
	movq	%rax, %rdi
	movl	$2, %esi
	callq	_skb_reserve
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_skb_put
	movq	(%r14), %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movslq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_skb_copy_to_linear_data
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_eth_type_trans
	movl	%eax, (%r12)
	movq	%r12, %rdi
	callq	_netif_rx
	movq	%r14, %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	incl	4(%r15)
	addl	%ebx, (%r15)
	movq	_LE_R1_OWN@GOTPCREL(%rip), %r9
	movzbl	(%r9), %r8d
	movq	_LE_R1_POK@GOTPCREL(%rip), %rdi
	movq	_LE_R1_ERR@GOTPCREL(%rip), %r10
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, 4(%r13)
	movb	%r8b, (%r13)
	movl	(%rax), %edx
	incl	%edx
	andl	4(%rax), %edx
	movl	%edx, (%rax)
	movzbl	(%r9), %r8d
	jmp	LBB0_19
LBB0_16:
	incl	8(%r15)
	movl	$0, 4(%r13)
	movq	_LE_R1_OWN@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, (%r13)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %eax
	incl	%eax
	andl	4(%rcx), %eax
	movl	%eax, (%rcx)
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_LE_C0_RINT,4,2                 ## @LE_C0_RINT
	.comm	_LE_C0_INEA,4,2                 ## @LE_C0_INEA
	.comm	_LE_R1_OWN,1,0                  ## @LE_R1_OWN
	.comm	_LE_R1_POK,1,0                  ## @LE_R1_POK
	.comm	_LE_R1_ERR,1,0                  ## @LE_R1_ERR
	.comm	_LE_R1_BUF,1,0                  ## @LE_R1_BUF
	.comm	_LE_R1_CRC,1,0                  ## @LE_R1_CRC
	.comm	_LE_R1_OFL,1,0                  ## @LE_R1_OFL
	.comm	_LE_R1_FRA,1,0                  ## @LE_R1_FRA
	.comm	_LE_R1_EOP,1,0                  ## @LE_R1_EOP
	.comm	_RX_RING_SIZE,4,2               ## @RX_RING_SIZE
	.no_dead_strip	_lance_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lance_rx
_lance_rx:                              ; @lance_rx
	.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, x0
	bl	_netdev_priv
	ldp	x8, x23, [x0, #8]
Lloh0:
	adrp	x9, _LE_C0_RINT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LE_C0_RINT@GOTPAGEOFF]
Lloh2:
	adrp	x10, _LE_C0_INEA@GOTPAGE
Lloh3:
	ldr	x10, [x10, _LE_C0_INEA@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x8]
	ldr	x8, [x23, #8]
	ldrsw	x10, [x0]
	add	x27, x8, x10, lsl #3
	ldrb	w9, [x27]
Lloh6:
	adrp	x24, _LE_R1_OWN@GOTPAGE
Lloh7:
	ldr	x24, [x24, _LE_R1_OWN@GOTPAGEOFF]
	ldrb	w8, [x24]
	tst	w8, w9
	b.eq	LBB0_2
LBB0_1:
	mov	w0, #0
	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
LBB0_2:
	mov	x19, x0
Lloh8:
	adrp	x25, _LE_R1_POK@GOTPAGE
Lloh9:
	ldr	x25, [x25, _LE_R1_POK@GOTPAGEOFF]
Lloh10:
	adrp	x26, _LE_R1_ERR@GOTPAGE
Lloh11:
	ldr	x26, [x26, _LE_R1_ERR@GOTPAGEOFF]
Lloh12:
	adrp	x28, _LE_R1_EOP@GOTPAGE
Lloh13:
	ldr	x28, [x28, _LE_R1_EOP@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x20, #20]
	add	w9, w9, #1
	str	w9, [x20, #20]
	ldr	w9, [x20, #12]
	add	w9, w9, #1
	str	w9, [x20, #12]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x23, #8]
	add	x27, x9, w10, sxtw #3
	ldrb	w9, [x27]
	tst	w8, w9
	b.ne	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x25]
	bics	wzr, w11, w9
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w10, [x26]
	tst	w10, w9
	b.eq	LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh14:
	adrp	x10, _LE_R1_BUF@GOTPAGE
Lloh15:
	ldr	x10, [x10, _LE_R1_BUF@GOTPAGEOFF]
	ldrb	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w10, [x20, #28]
	add	w10, w10, #1
	str	w10, [x20, #28]
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh16:
	adrp	x10, _LE_R1_CRC@GOTPAGE
Lloh17:
	ldr	x10, [x10, _LE_R1_CRC@GOTPAGEOFF]
	ldrb	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w10, [x20, #24]
	add	w10, w10, #1
	str	w10, [x20, #24]
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh18:
	adrp	x10, _LE_R1_OFL@GOTPAGE
Lloh19:
	ldr	x10, [x10, _LE_R1_OFL@GOTPAGEOFF]
	ldrb	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w10, [x20, #20]
	add	w10, w10, #1
	str	w10, [x20, #20]
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh20:
	adrp	x10, _LE_R1_FRA@GOTPAGE
Lloh21:
	ldr	x10, [x10, _LE_R1_FRA@GOTPAGEOFF]
	ldrb	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w10, [x20, #16]
	add	w10, w10, #1
	str	w10, [x20, #16]
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w10, [x28]
	tst	w10, w9
	b.eq	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x20, #12]
	add	w9, w9, #1
	str	w9, [x20, #12]
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x27, #4]
	and	w22, w8, #0xfff
	sub	w1, w22, #2
	mov	x0, x20
	bl	_netdev_alloc_skb
	cbz	x0, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x21, x0
	sub	w22, w22, #4
	mov	w1, #2
	bl	_skb_reserve
	mov	x0, x21
	mov	x1, x22
	bl	_skb_put
	ldr	x8, [x23]
	ldrsw	x9, [x19]
	ldr	x1, [x8, x9, lsl #3]
	mov	x0, x21
	mov	x2, x22
	bl	_skb_copy_to_linear_data
	mov	x0, x21
	mov	x1, x20
	bl	_eth_type_trans
	str	w0, [x21]
	mov	x0, x21
	bl	_netif_rx
	ldr	d0, [x20]
	movi.2s	v1, #1
	mov.s	v1[0], w22
	add.2s	v0, v0, v1
	str	d0, [x20]
	ldrb	w8, [x24]
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	str	wzr, [x27, #4]
	strb	w8, [x27]
	ldp	w8, w9, [x19]
	add	w8, w8, #1
	and	w10, w8, w9
	str	w10, [x19]
	ldrb	w8, [x24]
	b	LBB0_4
LBB0_20:
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	str	wzr, [x27, #4]
	ldrb	w8, [x24]
	strb	w8, [x27]
	ldp	w8, w9, [x19]
	add	w8, w8, #1
	and	w8, w8, w9
	str	w8, [x19]
	b	LBB0_1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_LE_C0_RINT,4,2                 ; @LE_C0_RINT
	.comm	_LE_C0_INEA,4,2                 ; @LE_C0_INEA
	.comm	_LE_R1_OWN,1,0                  ; @LE_R1_OWN
	.comm	_LE_R1_POK,1,0                  ; @LE_R1_POK
	.comm	_LE_R1_ERR,1,0                  ; @LE_R1_ERR
	.comm	_LE_R1_BUF,1,0                  ; @LE_R1_BUF
	.comm	_LE_R1_CRC,1,0                  ; @LE_R1_CRC
	.comm	_LE_R1_OFL,1,0                  ; @LE_R1_OFL
	.comm	_LE_R1_FRA,1,0                  ; @LE_R1_FRA
	.comm	_LE_R1_EOP,1,0                  ; @LE_R1_EOP
	.comm	_RX_RING_SIZE,4,2               ; @RX_RING_SIZE
	.no_dead_strip	_lance_rx
.subsections_via_symbols
