	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan78xx_rx_csum_offload
_lan78xx_rx_csum_offload:               ## @lan78xx_rx_csum_offload
	.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	%ecx, %r14d
	movq	%rsi, %r15
	movq	(%rdi), %rax
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_CHECKSUM_NONE@GOTPCREL(%rip), %r13
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.1:
	movl	%edx, %r12d
	movq	%rdi, %rbx
	movq	_RX_CMD_A_ICSM_@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%edx, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movq	_RX_CMD_A_FVTG_@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	(%rbx), %rax
	movq	_NETIF_F_HW_VLAN_CTAG_RX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
LBB0_4:
	movq	_RX_CMD_B_CSUM_SHIFT_@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r14d
	movl	%r14d, %edi
	callq	_ntohs
	movl	%eax, 4(%r15)
	movq	_CHECKSUM_COMPLETE@GOTPCREL(%rip), %r13
LBB0_5:
	movl	(%r13), %eax
	movl	%eax, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_RX_CMD_A_ICSM_,4,2             ## @RX_CMD_A_ICSM_
	.comm	_RX_CMD_A_FVTG_,4,2             ## @RX_CMD_A_FVTG_
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ## @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_CHECKSUM_NONE,4,2              ## @CHECKSUM_NONE
	.comm	_RX_CMD_B_CSUM_SHIFT_,4,2       ## @RX_CMD_B_CSUM_SHIFT_
	.comm	_CHECKSUM_COMPLETE,4,2          ## @CHECKSUM_COMPLETE
	.no_dead_strip	_lan78xx_rx_csum_offload
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan78xx_rx_csum_offload
_lan78xx_rx_csum_offload:               ; @lan78xx_rx_csum_offload
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	ldr	x8, [x0]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _NETIF_F_RXCSUM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x20, x3
	mov	x22, x2
	mov	x21, x0
Lloh3:
	adrp	x8, _RX_CMD_A_ICSM_@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RX_CMD_A_ICSM_@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w0, w8, w2
	bl	_unlikely
	cbz	x0, LBB0_4
LBB0_2:
Lloh6:
	adrp	x8, _CHECKSUM_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CHECKSUM_NONE@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh8:
	adrp	x8, _RX_CMD_A_FVTG_@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RX_CMD_A_FVTG_@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_6
; %bb.5:
	ldr	x8, [x21]
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_6:
Lloh14:
	adrp	x8, _RX_CMD_B_CSUM_SHIFT_@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RX_CMD_B_CSUM_SHIFT_@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	asr	w0, w20, w8
	bl	_ntohs
	str	w0, [x19, #4]
Lloh17:
	adrp	x8, _CHECKSUM_COMPLETE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CHECKSUM_COMPLETE@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_RX_CMD_A_ICSM_,4,2             ; @RX_CMD_A_ICSM_
	.comm	_RX_CMD_A_FVTG_,4,2             ; @RX_CMD_A_FVTG_
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ; @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_CHECKSUM_NONE,4,2              ; @CHECKSUM_NONE
	.comm	_RX_CMD_B_CSUM_SHIFT_,4,2       ; @RX_CMD_B_CSUM_SHIFT_
	.comm	_CHECKSUM_COMPLETE,4,2          ; @CHECKSUM_COMPLETE
	.no_dead_strip	_lan78xx_rx_csum_offload
.subsections_via_symbols
