	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_net_bpf_offload            ## -- Begin function nfp_net_bpf_offload
	.p2align	4, 0x90
_nfp_net_bpf_offload:                   ## @nfp_net_bpf_offload
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r15
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.6:
	movl	4(%r15), %esi
	movq	%r12, %rdi
	callq	_bpf_offload_dev_match
	testl	%eax, %eax
	je	LBB0_7
## %bb.9:
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.10:
	movq	_NFP_NET_CFG_BPF_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_nn_readb
	movq	_NFP_NET_BPF_CAP_RELO@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.14:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nfp_net_bpf_load               ## TAILCALL
LBB0_1:
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.13:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nfp_net_bpf_stop               ## TAILCALL
LBB0_2:
	movq	_NFP_NET_CFG_CTRL_BPF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	jne	LBB0_12
## %bb.3:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_nfp_net_bpf_load
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_nfp_net_bpf_start
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_NL_SET_ERR_MSG_MOD
LBB0_12:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_8:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NFP_NET_CFG_BPF_CAP,4,2        ## @NFP_NET_CFG_BPF_CAP
	.comm	_NFP_NET_BPF_CAP_RELO,4,2       ## @NFP_NET_BPF_CAP_RELO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FW does not support live reload"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_NFP_NET_CFG_CTRL_BPF,4,2       ## @NFP_NET_CFG_CTRL_BPF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_net_bpf_offload            ; -- Begin function nfp_net_bpf_offload
	.p2align	2
_nfp_net_bpf_offload:                   ; @nfp_net_bpf_offload
	.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	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	cbz	x1, LBB0_5
; %bb.1:
	ldr	w1, [x20, #4]
	mov	x0, x21
	bl	_bpf_offload_dev_match
	cbz	w0, LBB0_10
; %bb.2:
	cbz	w22, LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _NFP_NET_CFG_BPF_CAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFP_NET_CFG_BPF_CAP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_nn_readb
Lloh3:
	adrp	x8, _NFP_NET_BPF_CAP_RELO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NFP_NET_BPF_CAP_RELO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.4:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	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
	b	_nfp_net_bpf_load
LBB0_5:
	cbz	w22, LBB0_7
; %bb.6:
	mov	x0, x20
	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
	b	_nfp_net_bpf_stop
LBB0_7:
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _NFP_NET_CFG_CTRL_BPF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NFP_NET_CFG_CTRL_BPF@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_12
; %bb.8:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_nfp_net_bpf_load
	cbnz	w0, LBB0_14
; %bb.9:
	mov	x0, x20
	mov	x1, x19
	bl	_nfp_net_bpf_start
	mov	w0, #0
	b	LBB0_14
LBB0_10:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_NL_SET_ERR_MSG_MOD
LBB0_12:
Lloh13:
	adrp	x8, _EBUSY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NFP_NET_CFG_BPF_CAP,4,2        ; @NFP_NET_CFG_BPF_CAP
	.comm	_NFP_NET_BPF_CAP_RELO,4,2       ; @NFP_NET_BPF_CAP_RELO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FW does not support live reload"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_NFP_NET_CFG_CTRL_BPF,4,2       ; @NFP_NET_CFG_CTRL_BPF
.subsections_via_symbols
