	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_bpf_translate
_nfp_bpf_translate:                     ## @nfp_bpf_translate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movl	32(%rax), %edi
	callq	_netdev_priv
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, 16(%rcx)
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	24(%rcx), %r14
	movq	_NFP_NET_CFG_BPF_MAX_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_nn_readw
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,4), %edi
	movl	%edi, (%r14)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kvmalloc
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	callq	_nfp_bpf_jit
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:
	movl	4(%r14), %eax
	shll	$2, %eax
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movq	16(%r14), %rax
	movq	%rax, 8(%rcx)
	movl	8(%r14), %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_nfp_map_ptrs_record            ## TAILCALL
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NFP_NET_CFG_BPF_MAX_LEN,4,2    ## @NFP_NET_CFG_BPF_MAX_LEN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_nfp_bpf_translate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_bpf_translate
_nfp_bpf_translate:                     ; @nfp_bpf_translate
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w0, [x8, #32]
	bl	_netdev_priv
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x20, [x8, #24]
Lloh2:
	adrp	x8, _NFP_NET_CFG_BPF_MAX_LEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NFP_NET_CFG_BPF_MAX_LEN@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_nn_readw
	lsl	w0, w0, #2
	str	w0, [x20]
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_kvmalloc
	str	x0, [x20, #16]
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x20
	bl	_nfp_bpf_jit
	cbnz	w0, LBB0_3
; %bb.6:
	ldp	w8, w0, [x20, #4]
	lsl	w8, w8, #2
	ldr	x9, [x19]
	ldr	x9, [x9]
	str	w8, [x9]
	ldr	x8, [x20, #16]
	str	x8, [x9, #8]
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_nfp_map_ptrs_record
LBB0_7:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NFP_NET_CFG_BPF_MAX_LEN,4,2    ; @NFP_NET_CFG_BPF_MAX_LEN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_nfp_bpf_translate
.subsections_via_symbols
