	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvneta_txq_desc_csum
_mvneta_txq_desc_csum:                  ## @mvneta_txq_desc_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	%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, %r15d
	movl	%edx, %ebx
	movl	%esi, %r13d
	movl	%edi, %r14d
	movq	_MVNETA_TX_L3_OFF_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_MVNETA_TX_IP_HLEN_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	_MVNETA_TXD_IP_CSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_MVNETA_TX_L3_IP6@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rsi
	cmpl	%r15d, (%rsi)
	jne	LBB0_2
## %bb.1:
	movq	_MVNETA_TX_L4_CSUM_FULL@GOTPCREL(%rip), %rsi
	jmp	LBB0_5
LBB0_2:
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rsi
	cmpl	%r15d, (%rsi)
	jne	LBB0_4
## %bb.3:
	movq	_MVNETA_TX_L4_UDP@GOTPCREL(%rip), %rdi
	movq	_MVNETA_TX_L4_CSUM_FULL@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdi), %esi
	jmp	LBB0_6
LBB0_4:
	movq	_MVNETA_TX_L4_CSUM_NOT@GOTPCREL(%rip), %rsi
LBB0_5:
	movl	(%rsi), %esi
LBB0_6:
	cmpl	%r13d, %eax
	cmovel	%ecx, %edx
	movl	%r12d, %ecx
	shll	%cl, %r14d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	orl	%r14d, %ebx
	orl	%edx, %ebx
	orl	%esi, %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MVNETA_TX_L3_OFF_SHIFT,4,2     ## @MVNETA_TX_L3_OFF_SHIFT
	.comm	_MVNETA_TX_IP_HLEN_SHIFT,4,2    ## @MVNETA_TX_IP_HLEN_SHIFT
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_MVNETA_TXD_IP_CSUM,4,2         ## @MVNETA_TXD_IP_CSUM
	.comm	_MVNETA_TX_L3_IP6,4,2           ## @MVNETA_TX_L3_IP6
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.comm	_MVNETA_TX_L4_CSUM_FULL,4,2     ## @MVNETA_TX_L4_CSUM_FULL
	.comm	_IPPROTO_UDP,4,2                ## @IPPROTO_UDP
	.comm	_MVNETA_TX_L4_UDP,4,2           ## @MVNETA_TX_L4_UDP
	.comm	_MVNETA_TX_L4_CSUM_NOT,4,2      ## @MVNETA_TX_L4_CSUM_NOT
	.no_dead_strip	_mvneta_txq_desc_csum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvneta_txq_desc_csum
_mvneta_txq_desc_csum:                  ; @mvneta_txq_desc_csum
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MVNETA_TX_L3_OFF_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MVNETA_TX_L3_OFF_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _MVNETA_TX_IP_HLEN_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MVNETA_TX_IP_HLEN_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
Lloh6:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_htons
Lloh9:
	adrp	x8, _MVNETA_TXD_IP_CSUM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MVNETA_TXD_IP_CSUM@GOTPAGEOFF]
Lloh11:
	adrp	x9, _MVNETA_TX_L3_IP6@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MVNETA_TX_L3_IP6@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _IPPROTO_TCP@GOTPAGE
Lloh16:
	ldr	x10, [x10, _IPPROTO_TCP@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	cmp	w10, w22
	b.ne	LBB0_2
; %bb.1:
Lloh18:
	adrp	x10, _MVNETA_TX_L4_CSUM_FULL@GOTPAGE
Lloh19:
	ldr	x10, [x10, _MVNETA_TX_L4_CSUM_FULL@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
Lloh20:
	adrp	x10, _IPPROTO_UDP@GOTPAGE
Lloh21:
	ldr	x10, [x10, _IPPROTO_UDP@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	cmp	w10, w22
	b.ne	LBB0_4
; %bb.3:
Lloh23:
	adrp	x10, _MVNETA_TX_L4_UDP@GOTPAGE
Lloh24:
	ldr	x10, [x10, _MVNETA_TX_L4_UDP@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
Lloh26:
	adrp	x11, _MVNETA_TX_L4_CSUM_FULL@GOTPAGE
Lloh27:
	ldr	x11, [x11, _MVNETA_TX_L4_CSUM_FULL@GOTPAGEOFF]
Lloh28:
	ldr	w11, [x11]
	orr	w10, w11, w10
	b	LBB0_6
LBB0_4:
Lloh29:
	adrp	x10, _MVNETA_TX_L4_CSUM_NOT@GOTPAGE
Lloh30:
	ldr	x10, [x10, _MVNETA_TX_L4_CSUM_NOT@GOTPAGEOFF]
LBB0_5:
	ldr	w10, [x10]
LBB0_6:
	cmp	w0, w21
	csel	w8, w8, w9, eq
	lsl	w9, w20, w23
	lsl	w11, w19, w24
	orr	w9, w11, w9
	orr	w8, w9, w8
	orr	w0, w8, w10
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_MVNETA_TX_L3_OFF_SHIFT,4,2     ; @MVNETA_TX_L3_OFF_SHIFT
	.comm	_MVNETA_TX_IP_HLEN_SHIFT,4,2    ; @MVNETA_TX_IP_HLEN_SHIFT
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_MVNETA_TXD_IP_CSUM,4,2         ; @MVNETA_TXD_IP_CSUM
	.comm	_MVNETA_TX_L3_IP6,4,2           ; @MVNETA_TX_L3_IP6
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.comm	_MVNETA_TX_L4_CSUM_FULL,4,2     ; @MVNETA_TX_L4_CSUM_FULL
	.comm	_IPPROTO_UDP,4,2                ; @IPPROTO_UDP
	.comm	_MVNETA_TX_L4_UDP,4,2           ; @MVNETA_TX_L4_UDP
	.comm	_MVNETA_TX_L4_CSUM_NOT,4,2      ; @MVNETA_TX_L4_CSUM_NOT
	.no_dead_strip	_mvneta_txq_desc_csum
.subsections_via_symbols
