	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl1_tx_csum
_atl1_tx_csum:                          ## @atl1_tx_csum
	.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	(%rsi), %rax
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_skb_checksum_start_offset
	movl	%eax, %r12d
	movq	8(%rbx), %rbx
	movl	%eax, %edi
	andl	$1, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	callq	_netif_msg_tx_err
	movl	$-1, %ebx
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rsi
	leaq	L_.str(%rip), %rdx
	callq	_dev_printk
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_5:
	movq	_TPD_PLOADOFFSET_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	_TPD_PLOADOFFSET_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	shll	%cl, %eax
	addl	%r12d, %ebx
	orl	(%r14), %eax
	movl	%eax, (%r14)
	movq	_TPD_CCSUMOFFSET_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	movq	_TPD_CCSUMOFFSET_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	orl	%eax, %ebx
	movl	%ebx, (%r14)
	movq	_TPD_CUST_CSUM_EN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %ebx
	movl	%ebx, (%r14)
	movl	$1, %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"payload offset not an even number\n"

	.comm	_TPD_PLOADOFFSET_MASK,4,2       ## @TPD_PLOADOFFSET_MASK
	.comm	_TPD_PLOADOFFSET_SHIFT,4,2      ## @TPD_PLOADOFFSET_SHIFT
	.comm	_TPD_CCSUMOFFSET_MASK,4,2       ## @TPD_CCSUMOFFSET_MASK
	.comm	_TPD_CCSUMOFFSET_SHIFT,4,2      ## @TPD_CCSUMOFFSET_SHIFT
	.comm	_TPD_CUST_CSUM_EN_SHIFT,4,2     ## @TPD_CUST_CSUM_EN_SHIFT
	.no_dead_strip	_atl1_tx_csum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atl1_tx_csum
_atl1_tx_csum:                          ; @atl1_tx_csum
	.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, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_6
; %bb.1:
	mov	x0, x22
	bl	_skb_checksum_start_offset
	mov	x21, x0
	ldr	x22, [x22, #8]
	and	w0, w0, #0x1
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_netif_msg_tx_err
	cbz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x1, [x20]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	bl	_dev_printk
LBB0_4:
	mov	w0, #-1
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _TPD_PLOADOFFSET_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TPD_PLOADOFFSET_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _TPD_PLOADOFFSET_SHIFT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TPD_PLOADOFFSET_SHIFT@GOTPAGEOFF]
	and	w8, w8, w21
Lloh13:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh14:
	adrp	x9, _TPD_CCSUMOFFSET_MASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _TPD_CCSUMOFFSET_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _TPD_CCSUMOFFSET_SHIFT@GOTPAGE
Lloh18:
	ldr	x10, [x10, _TPD_CCSUMOFFSET_SHIFT@GOTPAGEOFF]
	add	w11, w21, w22
	and	w9, w9, w11
Lloh19:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _TPD_CUST_CSUM_EN_SHIFT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _TPD_CUST_CSUM_EN_SHIFT@GOTPAGEOFF]
	str	w8, [x19]
Lloh22:
	ldr	w9, [x9]
	mov	w0, #1
	lsl	w9, w0, w9
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_6:
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"payload offset not an even number\n"

	.comm	_TPD_PLOADOFFSET_MASK,4,2       ; @TPD_PLOADOFFSET_MASK
	.comm	_TPD_PLOADOFFSET_SHIFT,4,2      ; @TPD_PLOADOFFSET_SHIFT
	.comm	_TPD_CCSUMOFFSET_MASK,4,2       ; @TPD_CCSUMOFFSET_MASK
	.comm	_TPD_CCSUMOFFSET_SHIFT,4,2      ; @TPD_CCSUMOFFSET_SHIFT
	.comm	_TPD_CUST_CSUM_EN_SHIFT,4,2     ; @TPD_CUST_CSUM_EN_SHIFT
	.no_dead_strip	_atl1_tx_csum
.subsections_via_symbols
