	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvneta_skb_tx_csum
_mvneta_skb_tx_csum:                    ## @mvneta_skb_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	(%rsi), %rax
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.1:
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_vlan_get_protocol
	movq	%rax, %r14
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %r14
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_ip_hdr
	movq	%rax, %r15
	movl	(%rax), %r12d
	addq	$4, %r15
	jmp	LBB0_7
LBB0_3:
	movq	_ETH_P_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %r14
	jne	LBB0_8
## %bb.4:
	movq	%rbx, %rdi
	callq	_ipv6_hdr
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_skb_network_header_len
	testl	%eax, %eax
	jle	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	callq	_skb_network_header_len
	movl	%eax, %r12d
	sarl	$2, %r12d
	jmp	LBB0_7
LBB0_8:
	movq	_MVNETA_TX_L4_CSUM_NOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%r12d, %r12d
LBB0_7:
	movl	(%r15), %r15d
	movq	%rbx, %rdi
	callq	_skb_network_offset
	movl	%eax, %edi
	movq	%r14, %rsi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mvneta_txq_desc_csum           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_ETH_P_IPV6,4,2                 ## @ETH_P_IPV6
	.comm	_MVNETA_TX_L4_CSUM_NOT,4,2      ## @MVNETA_TX_L4_CSUM_NOT
	.no_dead_strip	_mvneta_skb_tx_csum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvneta_skb_tx_csum
_mvneta_skb_tx_csum:                    ; @mvneta_skb_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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x0, x1
	bl	_vlan_get_protocol
	mov	x20, x0
Lloh3:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_htons
	cmp	x20, x0
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_ip_hdr
	mov	x21, x0
	ldr	w22, [x21], #4
	b	LBB0_8
LBB0_3:
Lloh6:
	adrp	x8, _ETH_P_IPV6@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETH_P_IPV6@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_htons
	cmp	x20, x0
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_ipv6_hdr
	mov	x21, x0
	mov	x0, x19
	bl	_skb_network_header_len
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_skb_network_header_len
	asr	w22, w0, #2
	b	LBB0_8
LBB0_6:
Lloh9:
	adrp	x8, _MVNETA_TX_L4_CSUM_NOT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MVNETA_TX_L4_CSUM_NOT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [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
LBB0_7:
	mov	w22, #0
LBB0_8:
	ldr	w21, [x21]
	mov	x0, x19
	bl	_skb_network_offset
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	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
	b	_mvneta_txq_desc_csum
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_ETH_P_IPV6,4,2                 ; @ETH_P_IPV6
	.comm	_MVNETA_TX_L4_CSUM_NOT,4,2      ; @MVNETA_TX_L4_CSUM_NOT
	.no_dead_strip	_mvneta_skb_tx_csum
.subsections_via_symbols
