	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alx_tx_csum
_alx_tx_csum:                           ## @alx_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_skb_checksum_start_offset
	testb	$1, %al
	jne	LBB0_2
## %bb.3:
	movl	8(%rbx), %ebx
	addl	%eax, %ebx
	sarl	%eax
	movq	_TPD_CXSUMSTART_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	%eax, %edi
	callq	_cpu_to_le32
	orl	%eax, (%r14)
	sarl	%ebx
	movq	_TPD_CXSUMOFFSET_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_le32
	orl	%eax, (%r14)
	movq	_TPD_CXSUM_EN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %edi
	shll	%cl, %edi
	callq	_cpu_to_le32
	orl	%eax, (%r14)
	jmp	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TPD_CXSUMSTART_SHIFT,4,2       ## @TPD_CXSUMSTART_SHIFT
	.comm	_TPD_CXSUMOFFSET_SHIFT,4,2      ## @TPD_CXSUMOFFSET_SHIFT
	.comm	_TPD_CXSUM_EN_SHIFT,4,2         ## @TPD_CXSUM_EN_SHIFT
	.no_dead_strip	_alx_tx_csum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alx_tx_csum
_alx_tx_csum:                           ; @alx_tx_csum
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	bl	_skb_checksum_start_offset
	tbnz	w0, #0, LBB0_4
; %bb.2:
	ldr	w8, [x20, #8]
	add	w20, w8, w0
	asr	w8, w0, #1
Lloh3:
	adrp	x9, _TPD_CXSUMSTART_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TPD_CXSUMSTART_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w0, w8, w9
	bl	_cpu_to_le32
	ldr	w8, [x19]
	orr	w8, w8, w0
	str	w8, [x19]
	asr	w8, w20, #1
Lloh6:
	adrp	x9, _TPD_CXSUMOFFSET_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TPD_CXSUMOFFSET_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w0, w8, w9
	bl	_cpu_to_le32
	ldr	w8, [x19]
	orr	w8, w8, w0
	str	w8, [x19]
Lloh9:
	adrp	x8, _TPD_CXSUM_EN_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TPD_CXSUM_EN_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w0, w9, w8
	bl	_cpu_to_le32
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TPD_CXSUMSTART_SHIFT,4,2       ; @TPD_CXSUMSTART_SHIFT
	.comm	_TPD_CXSUMOFFSET_SHIFT,4,2      ; @TPD_CXSUMOFFSET_SHIFT
	.comm	_TPD_CXSUM_EN_SHIFT,4,2         ; @TPD_CXSUM_EN_SHIFT
	.no_dead_strip	_alx_tx_csum
.subsections_via_symbols
