	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_bpf_setup_tc_block_cb
_nfp_bpf_setup_tc_block_cb:             ## @nfp_bpf_setup_tc_block_cb
	.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	%rsi, %r15
	movq	_TC_SETUP_CLSBPF@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_7
## %bb.1:
	movq	%rdx, %r14
	movl	16(%rdx), %edi
	leaq	16(%r15), %rbx
	movq	%rbx, %rsi
	callq	_tc_cls_can_offload_and_chain0
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	movq	%r14, %rdi
	callq	_nfp_net_ebpf_capable
	testl	%eax, %eax
	je	LBB0_11
## %bb.3:
	movq	(%rbx), %rbx
	movq	_ETH_P_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %rbx
	jne	LBB0_12
## %bb.4:
	cmpl	$0, 44(%r15)
	je	LBB0_6
## %bb.5:
	movl	40(%r15), %edi
	callq	_tcf_exts_has_actions
	testq	%rax, %rax
	je	LBB0_13
LBB0_6:
	movl	24(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_8
LBB0_7:
	movl	24(%r15), %edi
	leaq	L_.str(%rip), %rsi
LBB0_8:
	callq	_NL_SET_ERR_MSG_MOD
LBB0_9:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	24(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_8
LBB0_12:
	movl	24(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_8
LBB0_13:
	movq	(%r15), %rax
	movq	_TC_CLSBPF_OFFLOAD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.14:
	movq	8(%r14), %rbx
	movq	8(%r15), %rsi
	movq	32(%r15), %rax
	cmpq	%rax, (%rbx)
	je	LBB0_16
## %bb.15:
	xorl	%eax, %eax
	testq	%rsi, %rsi
	je	LBB0_10
LBB0_16:
	movl	24(%r15), %ecx
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_nfp_net_bpf_offload
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jne	LBB0_10
## %bb.17:
	movq	8(%r15), %rax
	movq	%rax, (%rbx)
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movq	(%r14), %rax
	movl	%ecx, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_TC_SETUP_CLSBPF,4,2            ## @TC_SETUP_CLSBPF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"only offload of BPF classifiers supported"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.1:                               ## @.str.1
	.asciz	"NFP firmware does not support eBPF offload"

	.comm	_ETH_P_ALL,4,2                  ## @ETH_P_ALL
L_.str.2:                               ## @.str.2
	.asciz	"only ETH_P_ALL supported as filter protocol"

L_.str.3:                               ## @.str.3
	.asciz	"only direct action with no legacy actions supported"

	.comm	_TC_CLSBPF_OFFLOAD,8,3          ## @TC_CLSBPF_OFFLOAD
	.no_dead_strip	_nfp_bpf_setup_tc_block_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_bpf_setup_tc_block_cb
_nfp_bpf_setup_tc_block_cb:             ; @nfp_bpf_setup_tc_block_cb
	.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
	mov	x20, x1
Lloh0:
	adrp	x8, _TC_SETUP_CLSBPF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TC_SETUP_CLSBPF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_7
; %bb.1:
	mov	x19, x2
	ldr	w0, [x2, #16]
	add	x21, x20, #16
	mov	x1, x21
	bl	_tc_cls_can_offload_and_chain0
	cbz	w0, LBB0_9
; %bb.2:
	mov	x0, x19
	bl	_nfp_net_ebpf_capable
	cbz	w0, LBB0_11
; %bb.3:
	ldr	x21, [x21]
Lloh3:
	adrp	x8, _ETH_P_ALL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_P_ALL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_htons
	cmp	x21, x0
	b.ne	LBB0_12
; %bb.4:
	ldr	w8, [x20, #44]
	cbz	w8, LBB0_6
; %bb.5:
	ldr	w0, [x20, #40]
	bl	_tcf_exts_has_actions
	cbz	x0, LBB0_13
LBB0_6:
	ldr	w0, [x20, #24]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_7:
	ldr	w0, [x20, #24]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
LBB0_8:
	bl	_NL_SET_ERR_MSG_MOD
LBB0_9:
Lloh10:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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_11:
	ldr	w0, [x20, #24]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_12:
	ldr	w0, [x20, #24]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_13:
	ldr	x8, [x20]
Lloh17:
	adrp	x9, _TC_CLSBPF_OFFLOAD@GOTPAGE
Lloh18:
	ldr	x9, [x9, _TC_CLSBPF_OFFLOAD@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.14:
	ldr	x21, [x19, #8]
	ldr	x2, [x20, #32]
	ldr	x8, [x21]
	ldr	x1, [x20, #8]
	cmp	x8, x2
	b.eq	LBB0_17
; %bb.15:
	cbz	x1, LBB0_19
; %bb.16:
	mov	x2, #0
LBB0_17:
	ldr	w3, [x20, #24]
	mov	x0, x19
	bl	_nfp_net_bpf_offload
	cbnz	w0, LBB0_10
; %bb.18:
	ldr	x8, [x20, #8]
	str	x8, [x21]
	cmp	x8, #0
	cset	w8, ne
	ldr	x9, [x19]
	str	w8, [x9]
	b	LBB0_10
LBB0_19:
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_TC_SETUP_CLSBPF,4,2            ; @TC_SETUP_CLSBPF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"only offload of BPF classifiers supported"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.1:                               ; @.str.1
	.asciz	"NFP firmware does not support eBPF offload"

	.comm	_ETH_P_ALL,4,2                  ; @ETH_P_ALL
l_.str.2:                               ; @.str.2
	.asciz	"only ETH_P_ALL supported as filter protocol"

l_.str.3:                               ; @.str.3
	.asciz	"only direct action with no legacy actions supported"

	.comm	_TC_CLSBPF_OFFLOAD,8,3          ; @TC_CLSBPF_OFFLOAD
	.no_dead_strip	_nfp_bpf_setup_tc_block_cb
.subsections_via_symbols
