	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_net_tx_csum
_nfp_net_tx_csum:                       ## @nfp_net_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	%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
	movq	_NFP_NET_CFG_CTRL_TXCSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_19
## %bb.1:
	movq	%r8, %rbx
	movq	%rcx, %r12
	movq	(%r8), %rax
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	_PCIE_DESC_TX_CSUM@GOTPCREL(%rip), %rcx
	movl	(%r12), %eax
	orl	(%rcx), %eax
	movl	%eax, (%r12)
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_PCIE_DESC_TX_ENCAP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r12)
	movq	%rbx, %rdi
	callq	_inner_ip_hdr
	jmp	LBB0_5
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, %rdi
	callq	_ip_hdr
LBB0_5:
	movq	%rax, %r14
	cmpq	$0, 8(%rbx)
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_inner_ipv6_hdr
	jmp	LBB0_8
LBB0_7:
	movq	%rbx, %rdi
	callq	_ipv6_hdr
LBB0_8:
	movl	(%r14), %edx
	cmpl	$4, %edx
	jne	LBB0_10
## %bb.9:
	movq	_PCIE_DESC_TX_IP4_CSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	addq	$4, %r14
	jmp	LBB0_12
LBB0_10:
	cmpl	$6, (%rax)
	jne	LBB0_14
## %bb.11:
	addq	$4, %rax
	movq	%rax, %r14
LBB0_12:
	movl	(%r14), %edx
	cmpl	$129, %edx
	je	LBB0_13
## %bb.16:
	cmpl	$128, %edx
	jne	LBB0_20
## %bb.17:
	movq	_PCIE_DESC_TX_UDP_CSUM@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_14:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_15
LBB0_13:
	movq	_PCIE_DESC_TX_TCP_CSUM@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
	orl	%eax, (%r12)
	movq	%r15, %rdi
	callq	_u64_stats_update_begin
	xorl	%eax, %eax
	cmpq	$0, 8(%rbx)
	setne	%al
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	addl	%ecx, 4(%r15,%rax,4)
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_u64_stats_update_end           ## TAILCALL
LBB0_20:
	leaq	L_.str.1(%rip), %rsi
LBB0_15:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nn_dp_warn                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_NET_CFG_CTRL_TXCSUM,4,2    ## @NFP_NET_CFG_CTRL_TXCSUM
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_PCIE_DESC_TX_CSUM,4,2          ## @PCIE_DESC_TX_CSUM
	.comm	_PCIE_DESC_TX_ENCAP,4,2         ## @PCIE_DESC_TX_ENCAP
	.comm	_PCIE_DESC_TX_IP4_CSUM,4,2      ## @PCIE_DESC_TX_IP4_CSUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"partial checksum but ipv=%x!\n"

	.comm	_PCIE_DESC_TX_TCP_CSUM,4,2      ## @PCIE_DESC_TX_TCP_CSUM
	.comm	_PCIE_DESC_TX_UDP_CSUM,4,2      ## @PCIE_DESC_TX_UDP_CSUM
L_.str.1:                               ## @.str.1
	.asciz	"partial checksum but l4 proto=%x!\n"

	.no_dead_strip	_nfp_net_tx_csum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_net_tx_csum
_nfp_net_tx_csum:                       ; @nfp_net_tx_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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _NFP_NET_CFG_CTRL_TXCSUM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NFP_NET_CFG_CTRL_TXCSUM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	mov	x20, x4
	ldr	x8, [x4]
Lloh3:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x23, x0
Lloh6:
	adrp	x8, _PCIE_DESC_TX_CSUM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCIE_DESC_TX_CSUM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x3]
	orr	w8, w9, w8
	str	w8, [x3]
	ldr	x9, [x20, #8]
	cbz	x9, LBB0_5
; %bb.3:
Lloh9:
	adrp	x9, _PCIE_DESC_TX_ENCAP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PCIE_DESC_TX_ENCAP@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x22]
	mov	x0, x20
	bl	_inner_ip_hdr
	b	LBB0_6
LBB0_4:
	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
LBB0_5:
	mov	x0, x20
	bl	_ip_hdr
LBB0_6:
	mov	x24, x0
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_inner_ipv6_hdr
	b	LBB0_9
LBB0_8:
	mov	x0, x20
	bl	_ipv6_hdr
LBB0_9:
	ldr	w2, [x24]
	cmp	w2, #4
	b.ne	LBB0_11
; %bb.10:
Lloh12:
	adrp	x8, _PCIE_DESC_TX_IP4_CSUM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCIE_DESC_TX_IP4_CSUM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
	add	x8, x24, #4
	b	LBB0_13
LBB0_11:
	ldr	w8, [x0]
	cmp	w8, #6
	b.ne	LBB0_16
; %bb.12:
	add	x8, x0, #4
LBB0_13:
	ldr	w2, [x8]
	cmp	w2, #129
	b.eq	LBB0_17
; %bb.14:
	cmp	w2, #128
	b.ne	LBB0_19
; %bb.15:
Lloh15:
	adrp	x8, _PCIE_DESC_TX_UDP_CSUM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PCIE_DESC_TX_UDP_CSUM@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_20
LBB0_17:
Lloh19:
	adrp	x8, _PCIE_DESC_TX_TCP_CSUM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PCIE_DESC_TX_TCP_CSUM@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
	mov	x0, x19
	bl	_u64_stats_update_begin
	ldr	x8, [x20, #8]
	ldr	w9, [x21]
	mov	w10, #8
	mov	w11, #4
	cmp	x8, #0
	csel	x8, x11, x10, eq
	ldr	w10, [x19, x8]
	add	w9, w10, w9
	str	w9, [x19, x8]
	mov	x0, x19
	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
	b	_u64_stats_update_end
LBB0_19:
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_20:
	mov	x0, x23
	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
	b	_nn_dp_warn
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_NET_CFG_CTRL_TXCSUM,4,2    ; @NFP_NET_CFG_CTRL_TXCSUM
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_PCIE_DESC_TX_CSUM,4,2          ; @PCIE_DESC_TX_CSUM
	.comm	_PCIE_DESC_TX_ENCAP,4,2         ; @PCIE_DESC_TX_ENCAP
	.comm	_PCIE_DESC_TX_IP4_CSUM,4,2      ; @PCIE_DESC_TX_IP4_CSUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"partial checksum but ipv=%x!\n"

	.comm	_PCIE_DESC_TX_TCP_CSUM,4,2      ; @PCIE_DESC_TX_TCP_CSUM
	.comm	_PCIE_DESC_TX_UDP_CSUM,4,2      ; @PCIE_DESC_TX_UDP_CSUM
l_.str.1:                               ; @.str.1
	.asciz	"partial checksum but l4 proto=%x!\n"

	.no_dead_strip	_nfp_net_tx_csum
.subsections_via_symbols
