	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan78xx_rx
_lan78xx_rx:                            ## @lan78xx_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	(%rsi), %rdx
	movq	(%rdi), %rcx
	xorl	%eax, %eax
	cmpq	(%rcx), %rdx
	jl	LBB0_13
## %bb.1:
	movl	$1, %eax
	testq	%rdx, %rdx
	jle	LBB0_13
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdi
	callq	_get_unaligned_le32
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_skb_pull
	movq	8(%rbx), %rdi
	callq	_get_unaligned_le32
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_skb_pull
	movq	8(%rbx), %rdi
	callq	_get_unaligned_le16
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_skb_pull
	movq	8(%rbx), %r12
	movq	_RX_CMD_A_LEN_MASK_@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	andl	%r15d, %r13d
	movq	_RXW_PADDING@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	addl	%r13d, %r14d
	movl	%r15d, %edi
	movq	_RX_CMD_A_RED_@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_rx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rdx
	leaq	L_.str(%rip), %rcx
	movl	%r15d, %r8d
	callq	_netif_dbg
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movslq	%r13d, %r12
	cmpq	%r12, (%rbx)
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_skb_clone
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, (%r15)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r15)
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_skb_set_tail_pointer
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_lan78xx_rx_csum_offload
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_lan78xx_rx_vlan_offload
	movl	(%r15), %esi
	addl	$-4, %esi
	movq	%r15, %rdi
	callq	_skb_trim
	leal	24(%r13), %eax
	movl	%eax, 16(%r15)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_lan78xx_skb_return
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_skb_pull
	cmpq	$0, (%rbx)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	negl	%r14d
	andl	$3, %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_skb_pull
	cmpq	$0, (%rbx)
	jg	LBB0_3
	jmp	LBB0_12
LBB0_6:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %ecx
	callq	_lan78xx_rx_csum_offload
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	callq	_lan78xx_rx_vlan_offload
	movl	(%rbx), %esi
	addl	$-4, %esi
	movq	%rbx, %rdi
	callq	_skb_trim
	addl	$24, %r13d
	movl	%r13d, 16(%rbx)
LBB0_12:
	movl	$1, %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_warn
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_CMD_A_LEN_MASK_,4,2         ## @RX_CMD_A_LEN_MASK_
	.comm	_RXW_PADDING,4,2                ## @RXW_PADDING
	.comm	_RX_CMD_A_RED_,4,2              ## @RX_CMD_A_RED_
	.comm	_rx_err,4,2                     ## @rx_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error rx_cmd_a=0x%08x"

	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.1:                               ## @.str.1
	.asciz	"Error allocating skb"

	.no_dead_strip	_lan78xx_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan78xx_rx
_lan78xx_rx:                            ; @lan78xx_rx
	.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
	ldr	x8, [x1]
	ldr	x9, [x0]
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_13
LBB0_2:
	cmp	x8, #1
	b.lt	LBB0_12
; %bb.3:
	mov	x19, x1
	mov	x27, x0
Lloh0:
	adrp	x28, _RXW_PADDING@GOTPAGE
Lloh1:
	ldr	x28, [x28, _RXW_PADDING@GOTPAGEOFF]
Lloh2:
	adrp	x25, _RX_CMD_A_RED_@GOTPAGE
Lloh3:
	ldr	x25, [x25, _RX_CMD_A_RED_@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #8]
	bl	_get_unaligned_le32
	mov	x23, x0
	mov	x0, x19
	mov	w1, #4
	bl	_skb_pull
	ldr	x0, [x19, #8]
	bl	_get_unaligned_le32
	mov	x24, x0
	mov	x0, x19
	mov	w1, #4
	bl	_skb_pull
	ldr	x0, [x19, #8]
	bl	_get_unaligned_le16
	mov	x0, x19
	mov	w1, #4
	bl	_skb_pull
	ldr	x26, [x19, #8]
Lloh4:
	adrp	x8, _RX_CMD_A_LEN_MASK_@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RX_CMD_A_LEN_MASK_@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	and	w22, w8, w23
	ldr	w21, [x28]
	ldr	w8, [x25]
	and	w0, w8, w23
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh7:
	adrp	x8, _rx_err@GOTPAGE
Lloh8:
	ldr	x8, [x8, _rx_err@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	x2, [x27]
	mov	x0, x27
Lloh10:
	adrp	x3, l_.str@PAGE
Lloh11:
	add	x3, x3, l_.str@PAGEOFF
	mov	x4, x23
	bl	_netif_dbg
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x27
	sxtw	x27, w22
	ldr	x8, [x19]
	cmp	x8, x27
	b.eq	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w21, [sp, #12]                  ; 4-byte Folded Spill
	mov	x21, x25
Lloh12:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_skb_clone
	mov	x25, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	stp	x27, x26, [x25]
	mov	x0, x25
	mov	x1, x22
	bl	_skb_set_tail_pointer
	mov	x27, x20
	mov	x0, x20
	mov	x1, x25
	mov	x2, x23
	mov	x3, x24
	bl	_lan78xx_rx_csum_offload
	mov	x0, x20
	mov	x1, x25
	mov	x2, x23
	mov	x3, x24
	bl	_lan78xx_rx_vlan_offload
	ldr	w8, [x25]
	sub	w1, w8, #4
	mov	x0, x25
	bl	_skb_trim
	add	w8, w22, #24
	str	w8, [x25, #16]
	mov	x0, x20
	mov	x1, x25
	bl	_lan78xx_skb_return
	mov	x25, x21
	ldr	w21, [sp, #12]                  ; 4-byte Folded Reload
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_skb_pull
	ldr	x8, [x19]
	cbz	x8, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w22, w21
	neg	w8, w8
	and	w1, w8, #0x3
	mov	x0, x19
	bl	_skb_pull
	ldr	x8, [x19]
	cmp	x8, #0
	b.gt	LBB0_4
	b	LBB0_12
LBB0_11:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	mov	x3, x24
	bl	_lan78xx_rx_csum_offload
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	mov	x3, x24
	bl	_lan78xx_rx_vlan_offload
	ldr	w8, [x19]
	sub	w1, w8, #4
	mov	x0, x19
	bl	_skb_trim
	add	w8, w22, #24
	str	w8, [x19, #16]
LBB0_12:
	mov	w0, #1
LBB0_13:
	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
LBB0_14:
	ldr	x0, [x20]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_warn
	mov	w0, #0
	b	LBB0_13
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_CMD_A_LEN_MASK_,4,2         ; @RX_CMD_A_LEN_MASK_
	.comm	_RXW_PADDING,4,2                ; @RXW_PADDING
	.comm	_RX_CMD_A_RED_,4,2              ; @RX_CMD_A_RED_
	.comm	_rx_err,4,2                     ; @rx_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error rx_cmd_a=0x%08x"

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.1:                               ; @.str.1
	.asciz	"Error allocating skb"

	.no_dead_strip	_lan78xx_rx
.subsections_via_symbols
