	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpaa_enable_tx_csum
_dpaa_enable_tx_csum:                   ## @dpaa_enable_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	%rcx, %r13
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	8(%rsi), %edi
	callq	_ntohs
	movq	(%rbx), %rcx
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rdx
	xorl	%r12d, %r12d
	cmpq	(%rdx), %rcx
	jne	LBB0_16
## %bb.1:
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_skb_reset_mac_header
	movq	%rbx, %rdi
	callq	_vlan_eth_hdr
	movl	(%rax), %edi
	callq	_ntohs
LBB0_3:
	cmpl	$130, %eax
	je	LBB0_8
## %bb.4:
	cmpl	$131, %eax
	jne	LBB0_9
## %bb.5:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	_FM_L3_PARSE_RESULT_IPV4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be16
	movq	%rax, 16(%r13)
	movq	%rbx, %rdi
	callq	_ip_hdr
	jmp	LBB0_6
LBB0_8:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	_FM_L3_PARSE_RESULT_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be16
	movq	%rax, 16(%r13)
	movq	%rbx, %rdi
	callq	_ipv6_hdr
LBB0_6:
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON
	movl	(%r15), %r15d
	cmpl	$128, %r15d
	je	LBB0_7
## %bb.13:
	cmpl	$129, %r15d
	jne	LBB0_17
## %bb.14:
	movq	_FM_L4_PARSE_RESULT_TCP@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_9:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_net_ratelimit
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movq	_tx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%r14), %r13d
	movl	8(%rbx), %edi
	callq	_ntohs
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	movl	%eax, %r8d
	jmp	LBB0_11
LBB0_7:
	movq	_FM_L4_PARSE_RESULT_UDP@GOTPCREL(%rip), %rax
LBB0_15:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 12(%r13)
	movq	%rbx, %rdi
	callq	_skb_network_offset
	movq	(%r13), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_skb_transport_offset
	movl	%eax, 8(%r13)
	movq	_FM_FD_CMD_RPD@GOTPCREL(%rip), %rax
	movq	_FM_FD_CMD_DTC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_cpu_to_be32
	orl	%eax, (%r14)
	jmp	LBB0_16
LBB0_17:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_net_ratelimit
	testl	%eax, %eax
	je	LBB0_12
## %bb.18:
	movq	_tx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	movl	%r15d, %r8d
LBB0_11:
	callq	_netif_alert
LBB0_12:
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_16:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_ETH_P_8021Q,4,2                ## @ETH_P_8021Q
	.comm	_FM_L3_PARSE_RESULT_IPV4,4,2    ## @FM_L3_PARSE_RESULT_IPV4
	.comm	_FM_L3_PARSE_RESULT_IPV6,4,2    ## @FM_L3_PARSE_RESULT_IPV6
	.comm	_tx_err,4,2                     ## @tx_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't compute HW csum for L3 proto 0x%x\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_FM_L4_PARSE_RESULT_UDP,4,2     ## @FM_L4_PARSE_RESULT_UDP
	.comm	_FM_L4_PARSE_RESULT_TCP,4,2     ## @FM_L4_PARSE_RESULT_TCP
L_.str.1:                               ## @.str.1
	.asciz	"Can't compute HW csum for L4 proto 0x%x\n"

	.comm	_FM_FD_CMD_RPD,4,2              ## @FM_FD_CMD_RPD
	.comm	_FM_FD_CMD_DTC,4,2              ## @FM_FD_CMD_DTC
	.no_dead_strip	_dpaa_enable_tx_csum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpaa_enable_tx_csum
_dpaa_enable_tx_csum:                   ; @dpaa_enable_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
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x1, #8]
	bl	_ntohs
	ldr	x8, [x20]
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:
Lloh3:
	adrp	x8, _ETH_P_8021Q@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_P_8021Q@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_skb_reset_mac_header
	mov	x0, x20
	bl	_vlan_eth_hdr
	ldr	w0, [x0]
	bl	_ntohs
LBB0_3:
	cmp	w0, #130
	b.eq	LBB0_7
; %bb.4:
	cmp	w0, #131
	b.ne	LBB0_11
; %bb.5:
Lloh6:
	adrp	x8, _FM_L3_PARSE_RESULT_IPV4@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FM_L3_PARSE_RESULT_IPV4@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_cpu_to_be16
	str	x0, [x22, #16]
	mov	x0, x20
	bl	_ip_hdr
	b	LBB0_8
LBB0_6:
	mov	w0, #0
	b	LBB0_19
LBB0_7:
Lloh9:
	adrp	x8, _FM_L3_PARSE_RESULT_IPV6@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FM_L3_PARSE_RESULT_IPV6@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_cpu_to_be16
	str	x0, [x22, #16]
	mov	x0, x20
	bl	_ipv6_hdr
LBB0_8:
	mov	x23, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	w23, [x23]
	cmp	w23, #128
	b.eq	LBB0_13
; %bb.9:
	cmp	w23, #129
	b.ne	LBB0_15
; %bb.10:
Lloh12:
	adrp	x8, _FM_L4_PARSE_RESULT_TCP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FM_L4_PARSE_RESULT_TCP@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
	bl	_net_ratelimit
	cbz	w0, LBB0_18
; %bb.12:
Lloh14:
	adrp	x8, _tx_err@GOTPAGE
Lloh15:
	ldr	x8, [x8, _tx_err@GOTPAGEOFF]
Lloh16:
	ldr	w19, [x8]
	ldr	w22, [x21]
	ldr	w0, [x20, #8]
	bl	_ntohs
	mov	x4, x0
Lloh17:
	adrp	x3, l_.str@PAGE
Lloh18:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	b	LBB0_17
LBB0_13:
Lloh19:
	adrp	x8, _FM_L4_PARSE_RESULT_UDP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FM_L4_PARSE_RESULT_UDP@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	str	w8, [x22, #12]
	mov	x0, x20
	bl	_skb_network_offset
	ldr	x8, [x22]
	str	w0, [x8]
	mov	x0, x20
	bl	_skb_transport_offset
Lloh21:
	adrp	x8, _FM_FD_CMD_RPD@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FM_FD_CMD_RPD@GOTPAGEOFF]
	str	w0, [x22, #8]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _FM_FD_CMD_DTC@GOTPAGE
Lloh25:
	ldr	x9, [x9, _FM_FD_CMD_DTC@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_cpu_to_be32
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_19
LBB0_15:
	bl	_net_ratelimit
	cbz	w0, LBB0_18
; %bb.16:
Lloh27:
	adrp	x8, _tx_err@GOTPAGE
Lloh28:
	ldr	x8, [x8, _tx_err@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldr	w2, [x21]
Lloh30:
	adrp	x3, l_.str.1@PAGE
Lloh31:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x4, x23
LBB0_17:
	bl	_netif_alert
LBB0_18:
Lloh32:
	adrp	x8, _EIO@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_19:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_ETH_P_8021Q,4,2                ; @ETH_P_8021Q
	.comm	_FM_L3_PARSE_RESULT_IPV4,4,2    ; @FM_L3_PARSE_RESULT_IPV4
	.comm	_FM_L3_PARSE_RESULT_IPV6,4,2    ; @FM_L3_PARSE_RESULT_IPV6
	.comm	_tx_err,4,2                     ; @tx_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't compute HW csum for L3 proto 0x%x\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_FM_L4_PARSE_RESULT_UDP,4,2     ; @FM_L4_PARSE_RESULT_UDP
	.comm	_FM_L4_PARSE_RESULT_TCP,4,2     ; @FM_L4_PARSE_RESULT_TCP
l_.str.1:                               ; @.str.1
	.asciz	"Can't compute HW csum for L4 proto 0x%x\n"

	.comm	_FM_FD_CMD_RPD,4,2              ; @FM_FD_CMD_RPD
	.comm	_FM_FD_CMD_DTC,4,2              ; @FM_FD_CMD_DTC
	.no_dead_strip	_dpaa_enable_tx_csum
.subsections_via_symbols
