	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_txq_desc_csum
_mvpp2_txq_desc_csum:                   ## @mvpp2_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movq	_MVPP2_TXD_L3_OFF_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	movq	_MVPP2_TXD_IP_HLEN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movq	%rsi, %r15
	orl	%edi, %ebx
	movq	_MVPP2_TXD_IP_CSUM_DISABLE@GOTPCREL(%rip), %r12
	orl	(%r12), %ebx
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%r15, %rax
	jne	LBB0_2
## %bb.1:
	movq	_MVPP2_TXD_L3_IP6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%r12), %eax
	notl	%eax
	andl	%eax, %ebx
	jmp	LBB0_3
LBB0_2:
	movq	_MVPP2_TXD_L3_IP6@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_3:
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	_MVPP2_TXD_L4_UDP@GOTPCREL(%rip), %rax
	movq	_MVPP2_TXD_L4_CSUM_FRAG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %ebx
	jmp	LBB0_8
LBB0_5:
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_7
## %bb.6:
	movq	_MVPP2_TXD_L4_UDP@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_MVPP2_TXD_L4_CSUM_FRAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	jmp	LBB0_8
LBB0_7:
	movq	_MVPP2_TXD_L4_CSUM_NOT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MVPP2_TXD_L3_OFF_SHIFT,4,2     ## @MVPP2_TXD_L3_OFF_SHIFT
	.comm	_MVPP2_TXD_IP_HLEN_SHIFT,4,2    ## @MVPP2_TXD_IP_HLEN_SHIFT
	.comm	_MVPP2_TXD_IP_CSUM_DISABLE,4,2  ## @MVPP2_TXD_IP_CSUM_DISABLE
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_MVPP2_TXD_L3_IP6,4,2           ## @MVPP2_TXD_L3_IP6
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.comm	_MVPP2_TXD_L4_UDP,4,2           ## @MVPP2_TXD_L4_UDP
	.comm	_MVPP2_TXD_L4_CSUM_FRAG,4,2     ## @MVPP2_TXD_L4_CSUM_FRAG
	.comm	_IPPROTO_UDP,4,2                ## @IPPROTO_UDP
	.comm	_MVPP2_TXD_L4_CSUM_NOT,4,2      ## @MVPP2_TXD_L4_CSUM_NOT
	.no_dead_strip	_mvpp2_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 mvpp2_txq_desc_csum
_mvpp2_txq_desc_csum:                   ; @mvpp2_txq_desc_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, x3
	mov	x20, x1
Lloh0:
	adrp	x8, _MVPP2_TXD_L3_OFF_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MVPP2_TXD_L3_OFF_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w0, w8
Lloh3:
	adrp	x9, _MVPP2_TXD_IP_HLEN_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MVPP2_TXD_IP_HLEN_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w9, w2, w9
Lloh6:
	adrp	x22, _MVPP2_TXD_IP_CSUM_DISABLE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _MVPP2_TXD_IP_CSUM_DISABLE@GOTPAGEOFF]
	orr	w8, w9, w8
	ldr	w9, [x22]
	orr	w21, w8, w9
Lloh8:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_htons
	cmp	x0, x20
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x22]
Lloh11:
	adrp	x9, _MVPP2_TXD_L3_IP6@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MVPP2_TXD_L3_IP6@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w21, w8
	b	LBB0_3
LBB0_2:
Lloh14:
	adrp	x8, _MVPP2_TXD_L3_IP6@GOTPAGE
Llo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0, w9, w8
LBB0_8:
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_MVPP2_TXD_L3_OFF_SHIFT,4,2     ; @MVPP2_TXD_L3_OFF_SHIFT
	.comm	_MVPP2_TXD_IP_HLEN_SHIFT,4,2    ; @MVPP2_TXD_IP_HLEN_SHIFT
	.comm	_MVPP2_TXD_IP_CSUM_DISABLE,4,2  ; @MVPP2_TXD_IP_CSUM_DISABLE
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_MVPP2_TXD_L3_IP6,4,2           ; @MVPP2_TXD_L3_IP6
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.comm	_MVPP2_TXD_L4_UDP,4,2           ; @MVPP2_TXD_L4_UDP
	.comm	_MVPP2_TXD_L4_CSUM_FRAG,4,2     ; @MVPP2_TXD_L4_CSUM_FRAG
	.comm	_IPPROTO_UDP,4,2                ; @IPPROTO_UDP
	.comm	_MVPP2_TXD_L4_CSUM_NOT,4,2      ; @MVPP2_TXD_L4_CSUM_NOT
	.no_dead_strip	_mvpp2_txq_desc_csum
.subsections_via_symbols
