	.file	"extr_mvpp2_main.c_mvpp2_skb_tx_csum.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mvpp2_skb_tx_csum, @function
mvpp2_skb_tx_csum:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR CHECKSUM_PARTIAL[rip]
	cmp	QWORD PTR [rsi], rax
	je	.L14
	mov	eax, DWORD PTR MVPP2_TXD_L4_CSUM_NOT[rip]
	or	eax, DWORD PTR MVPP2_TXD_IP_CSUM_DISABLE[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	rdi, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	vlan_get_protocol@PLT
	mov	edi, DWORD PTR ETH_P_IP[rip]
	mov	r12, rax
	call	htons@PLT
	cmp	rax, r12
	je	.L15
	mov	edi, DWORD PTR ETH_P_IPV6[rip]
	call	htons@PLT
	mov	r8, rax
	mov	eax, DWORD PTR MVPP2_TXD_L4_CSUM_NOT[rip]
	cmp	r8, r12
	je	.L16
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rdi, rbp
	call	ip_hdr@PLT
	mov	r13d, DWORD PTR [rax]
	mov	r14d, DWORD PTR 4[rax]
.L4:
	mov	rdi, rbp
	call	skb_network_offset@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	ecx, r14d
	mov	edx, r13d
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 32
	mov	rsi, r12
	mov	edi, eax
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_restore 14
	.cfi_def_cfa_offset 8
	jmp	mvpp2_txq_desc_csum@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rdi, rbp
	xor	r13d, r13d
	call	ipv6_hdr@PLT
	mov	rdi, rbp
	mov	r14, rax
	call	skb_network_header_len@PLT
	test	eax, eax
	jle	.L6
	mov	rdi, rbp
	call	skb_network_header_len@PLT
	sar	eax, 2
	mov	r13d, eax
.L6:
	mov	r14d, DWORD PTR [r14]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	mvpp2_skb_tx_csum, .-mvpp2_skb_tx_csum
	.comm	MVPP2_TXD_L4_CSUM_NOT,4,4
	.comm	MVPP2_TXD_IP_CSUM_DISABLE,4,4
	.comm	ETH_P_IPV6,4,4
	.comm	ETH_P_IP,4,4
	.comm	CHECKSUM_PARTIAL,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_mvpp2_main.c_mvpp2_skb_tx_csum.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mvpp2_skb_tx_csum, %function
mvpp2_skb_tx_csum:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L17
	ldr	r2, [r1]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L14
	ldr	r2, .L17+4
	ldr	r3, .L17+8
	ldr	r0, [r2]
	ldr	r3, [r3]
	orr	r0, r0, r3
	bx	lr
.L14:
	push	{r4, r5, r6, r7, r8, lr}
	mov	r0, r1
	mov	r4, r1
	bl	vlan_get_protocol
	ldr	r3, .L17+12
	mov	r5, r0
	ldr	r0, [r3]
	bl	htons
	cmp	r0, r5
	beq	.L15
	ldr	r3, .L17+16
	ldr	r0, [r3]
	bl	htons
	cmp	r0, r5
	beq	.L16
	ldr	r3, .L17+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	mov	r0, r4
	bl	ip_hdr
	ldm	r0, {r6, r7}
.L4:
	mov	r0, r4
	bl	skb_network_offset
	mov	r3, r7
	mov	r2, r6
	mov	r1, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	mvpp2_txq_desc_csum
.L16:
	mov	r0, r4
	bl	ipv6_hdr
	mov	r7, r0
	mov	r0, r4
	bl	skb_network_header_len
	cmp	r0, #0
	movle	r6, #0
	ble	.L6
	mov	r0, r4
	bl	skb_network_header_len
	asr	r6, r0, #2
.L6:
	ldr	r7, [r7]
	b	.L4
.L18:
	.align	2
.L17:
	.word	CHECKSUM_PARTIAL
	.word	MVPP2_TXD_L4_CSUM_NOT
	.word	MVPP2_TXD_IP_CSUM_DISABLE
	.word	ETH_P_IP
	.word	ETH_P_IPV6
	.size	mvpp2_skb_tx_csum, .-mvpp2_skb_tx_csum
	.comm	MVPP2_TXD_L4_CSUM_NOT,4,4
	.comm	MVPP2_TXD_IP_CSUM_DISABLE,4,4
	.comm	ETH_P_IPV6,4,4
	.comm	ETH_P_IP,4,4
	.comm	CHECKSUM_PARTIAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
