	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl1_rx_checksum
_atl1_rx_checksum:                      ## @atl1_rx_checksum
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	movq	%rdx, %rdi
	callq	_skb_checksum_none_assert
	movq	_PACKET_FLAG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%rbx), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_ERR_FLAG_CRC@GOTPCREL(%rip), %rax
	movq	_ERR_FLAG_TRUNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_ERR_FLAG_CODE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_ERR_FLAG_OV@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	testl	%ecx, 4(%rbx)
	je	LBB0_4
## %bb.2:
	incl	4(%r15)
	movq	%r15, %rdi
	callq	_netif_msg_rx_err
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_printk                     ## TAILCALL
LBB0_4:
	movq	_PACKET_FLAG_IPV4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_7
## %bb.5:
	movq	_ERR_FLAG_IP_CHKSUM@GOTPCREL(%rip), %rax
	movq	_ERR_FLAG_L4_CHKSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%edi, %edi
	andl	4(%rbx), %ecx
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_CHECKSUM_UNNECESSARY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	incl	(%r15)
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PACKET_FLAG_ERR,4,2            ## @PACKET_FLAG_ERR
	.comm	_ERR_FLAG_CRC,4,2               ## @ERR_FLAG_CRC
	.comm	_ERR_FLAG_TRUNC,4,2             ## @ERR_FLAG_TRUNC
	.comm	_ERR_FLAG_CODE,4,2              ## @ERR_FLAG_CODE
	.comm	_ERR_FLAG_OV,4,2                ## @ERR_FLAG_OV
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rx checksum error\n"

	.comm	_PACKET_FLAG_IPV4,4,2           ## @PACKET_FLAG_IPV4
	.comm	_ERR_FLAG_IP_CHKSUM,4,2         ## @ERR_FLAG_IP_CHKSUM
	.comm	_ERR_FLAG_L4_CHKSUM,4,2         ## @ERR_FLAG_L4_CHKSUM
	.comm	_CHECKSUM_UNNECESSARY,4,2       ## @CHECKSUM_UNNECESSARY
	.no_dead_strip	_atl1_rx_checksum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atl1_rx_checksum
_atl1_rx_checksum:                      ; @atl1_rx_checksum
	.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	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
	mov	x0, x2
	bl	_skb_checksum_none_assert
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _PACKET_FLAG_ERR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PACKET_FLAG_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x22, #4]
Lloh3:
	adrp	x9, _ERR_FLAG_CRC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ERR_FLAG_CRC@GOTPAGEOFF]
Lloh5:
	adrp	x10, _ERR_FLAG_TRUNC@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ERR_FLAG_TRUNC@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh9:
	adrp	x10, _ERR_FLAG_CODE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ERR_FLAG_CODE@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh12:
	adrp	x10, _ERR_FLAG_OV@GOTPAGE
Lloh13:
	ldr	x10, [x10, _ERR_FLAG_OV@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w9, w9, w10
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_netif_msg_rx_err
	cbz	x0, LBB0_7
; %bb.3:
Lloh15:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x2, l_.str@PAGE
Lloh19:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x21
	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
	b	_dev_printk
LBB0_4:
	ldr	w8, [x22]
Lloh20:
	adrp	x9, _PACKET_FLAG_IPV4@GOTPAGE
Lloh21:
	ldr	x9, [x9, _PACKET_FLAG_IPV4@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
	ldr	w8, [x22, #4]
Lloh23:
	adrp	x9, _ERR_FLAG_IP_CHKSUM@GOTPAGE
Lloh24:
	ldr	x9, [x9, _ERR_FLAG_IP_CHKSUM@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
Lloh26:
	adrp	x10, _ERR_FLAG_L4_CHKSUM@GOTPAGE
Lloh27:
	ldr	x10, [x10, _ERR_FLAG_L4_CHKSUM@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_7
; %bb.6:
Lloh29:
	adrp	x8, _CHECKSUM_UNNECESSARY@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CHECKSUM_UNNECESSARY@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	w8, [x20]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_PACKET_FLAG_ERR,4,2            ; @PACKET_FLAG_ERR
	.comm	_ERR_FLAG_CRC,4,2               ; @ERR_FLAG_CRC
	.comm	_ERR_FLAG_TRUNC,4,2             ; @ERR_FLAG_TRUNC
	.comm	_ERR_FLAG_CODE,4,2              ; @ERR_FLAG_CODE
	.comm	_ERR_FLAG_OV,4,2                ; @ERR_FLAG_OV
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rx checksum error\n"

	.comm	_PACKET_FLAG_IPV4,4,2           ; @PACKET_FLAG_IPV4
	.comm	_ERR_FLAG_IP_CHKSUM,4,2         ; @ERR_FLAG_IP_CHKSUM
	.comm	_ERR_FLAG_L4_CHKSUM,4,2         ; @ERR_FLAG_L4_CHKSUM
	.comm	_CHECKSUM_UNNECESSARY,4,2       ; @CHECKSUM_UNNECESSARY
	.no_dead_strip	_atl1_rx_checksum
.subsections_via_symbols
