	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function csum_offload_supported
_csum_offload_supported:                ## @csum_offload_supported
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_MLX5_FLOW_CONTEXT_ACTION_MOD_HDR@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_1
## %bb.2:
	movl	%edx, %r15d
	movq	_TCA_CSUM_UPDATE_FLAG_IPV4HDR@GOTPCREL(%rip), %rax
	movq	_TCA_CSUM_UPDATE_FLAG_TCP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movq	_TCA_CSUM_UPDATE_FLAG_UDP@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	notl	%edx
	testl	%r15d, %edx
	je	LBB0_3
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%rcx, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_netdev_warn
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rcx, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_netdev_warn
	jmp	LBB0_5
LBB0_3:
	movl	$1, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TCA_CSUM_UPDATE_FLAG_IPV4HDR,4,2 ## @TCA_CSUM_UPDATE_FLAG_IPV4HDR
	.comm	_TCA_CSUM_UPDATE_FLAG_TCP,4,2   ## @TCA_CSUM_UPDATE_FLAG_TCP
	.comm	_TCA_CSUM_UPDATE_FLAG_UDP,4,2   ## @TCA_CSUM_UPDATE_FLAG_UDP
	.comm	_MLX5_FLOW_CONTEXT_ACTION_MOD_HDR,4,2 ## @MLX5_FLOW_CONTEXT_ACTION_MOD_HDR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TC csum action is only offloaded with pedit"

L_.str.1:                               ## @.str.1
	.asciz	"TC csum action is only offloaded with pedit\n"

L_.str.2:                               ## @.str.2
	.asciz	"can't offload TC csum action for some header/s"

L_.str.3:                               ## @.str.3
	.asciz	"can't offload TC csum action for some header/s - flags %#x\n"

	.no_dead_strip	_csum_offload_supported
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function csum_offload_supported
_csum_offload_supported:                ; @csum_offload_supported
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _MLX5_FLOW_CONTEXT_ACTION_MOD_HDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_FLOW_CONTEXT_ACTION_MOD_HDR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_3
; %bb.1:
	mov	x20, x2
Lloh3:
	adrp	x8, _TCA_CSUM_UPDATE_FLAG_IPV4HDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TCA_CSUM_UPDATE_FLAG_IPV4HDR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _TCA_CSUM_UPDATE_FLAG_TCP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TCA_CSUM_UPDATE_FLAG_TCP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _TCA_CSUM_UPDATE_FLAG_UDP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TCA_CSUM_UPDATE_FLAG_UDP@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bics	wzr, w2, w8
	b.eq	LBB0_5
; %bb.2:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x3
	bl	_NL_SET_ERR_MSG_MOD
	ldr	w0, [x19]
	str	x20, [sp]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x3
	bl	_NL_SET_ERR_MSG_MOD
	ldr	w0, [x19]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	bl	_netdev_warn
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TCA_CSUM_UPDATE_FLAG_IPV4HDR,4,2 ; @TCA_CSUM_UPDATE_FLAG_IPV4HDR
	.comm	_TCA_CSUM_UPDATE_FLAG_TCP,4,2   ; @TCA_CSUM_UPDATE_FLAG_TCP
	.comm	_TCA_CSUM_UPDATE_FLAG_UDP,4,2   ; @TCA_CSUM_UPDATE_FLAG_UDP
	.comm	_MLX5_FLOW_CONTEXT_ACTION_MOD_HDR,4,2 ; @MLX5_FLOW_CONTEXT_ACTION_MOD_HDR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TC csum action is only offloaded with pedit"

l_.str.1:                               ; @.str.1
	.asciz	"TC csum action is only offloaded with pedit\n"

l_.str.2:                               ; @.str.2
	.asciz	"can't offload TC csum action for some header/s"

l_.str.3:                               ; @.str.3
	.asciz	"can't offload TC csum action for some header/s - flags %#x\n"

	.no_dead_strip	_csum_offload_supported
.subsections_via_symbols
