	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_txwqe_build_eseg_csum
_mlx5e_txwqe_build_eseg_csum:           ## @mlx5e_txwqe_build_eseg_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	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_MLX5_ETH_WQE_L3_CSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.2:
	movq	_MLX5_ETH_WQE_L3_INNER_CSUM@GOTPCREL(%rip), %rcx
	movq	_MLX5_ETH_WQE_L4_INNER_CSUM@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movl	%eax, (%r15)
	movq	(%r14), %rax
	addq	$8, %rax
	jmp	LBB0_5
LBB0_4:
	movq	(%r14), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_MLX5_ETH_WQE_L4_CSUM@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r15)
	movq	(%r14), %rax
	addq	$4, %rax
LBB0_5:
	incl	(%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_MLX5_ETH_WQE_L3_CSUM,4,2       ## @MLX5_ETH_WQE_L3_CSUM
	.comm	_MLX5_ETH_WQE_L3_INNER_CSUM,4,2 ## @MLX5_ETH_WQE_L3_INNER_CSUM
	.comm	_MLX5_ETH_WQE_L4_INNER_CSUM,4,2 ## @MLX5_ETH_WQE_L4_INNER_CSUM
	.comm	_MLX5_ETH_WQE_L4_CSUM,4,2       ## @MLX5_ETH_WQE_L4_CSUM
	.no_dead_strip	_mlx5e_txwqe_build_eseg_csum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_txwqe_build_eseg_csum
_mlx5e_txwqe_build_eseg_csum:           ; @mlx5e_txwqe_build_eseg_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	x20, x2
	mov	x21, x1
	mov	x19, 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_3
; %bb.1:
Lloh3:
	adrp	x8, _MLX5_ETH_WQE_L3_CSUM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX5_ETH_WQE_L3_CSUM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20]
	ldr	x9, [x21, #8]
	cbz	x9, LBB0_4
; %bb.2:
Lloh6:
	adrp	x9, _MLX5_ETH_WQE_L3_INNER_CSUM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MLX5_ETH_WQE_L3_INNER_CSUM@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _MLX5_ETH_WQE_L4_INNER_CSUM@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MLX5_ETH_WQE_L4_INNER_CSUM@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w8, w8, w10
	str	w8, [x20]
	ldr	x8, [x19]
	add	x8, x8, #8
	b	LBB0_5
LBB0_3:
	ldr	x8, [x19]
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x9, _MLX5_ETH_WQE_L4_CSUM@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MLX5_ETH_WQE_L4_CSUM@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20]
	ldr	x8, [x19]
	add	x8, x8, #4
LBB0_5:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_MLX5_ETH_WQE_L3_CSUM,4,2       ; @MLX5_ETH_WQE_L3_CSUM
	.comm	_MLX5_ETH_WQE_L3_INNER_CSUM,4,2 ; @MLX5_ETH_WQE_L3_INNER_CSUM
	.comm	_MLX5_ETH_WQE_L4_INNER_CSUM,4,2 ; @MLX5_ETH_WQE_L4_INNER_CSUM
	.comm	_MLX5_ETH_WQE_L4_CSUM,4,2       ; @MLX5_ETH_WQE_L4_CSUM
	.no_dead_strip	_mlx5e_txwqe_build_eseg_csum
.subsections_via_symbols
