	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_bpf_init
_nfp_bpf_init:                          ## @nfp_bpf_init
	.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	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%r15, 40(%rax)
	movq	%rax, 8(%r15)
	leaq	32(%rax), %rdi
	callq	_INIT_LIST_HEAD
	leaq	12(%r13), %r14
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_nfp_ccm_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.3:
	movq	%r13, %r12
	addq	$16, %r12
	movq	_nfp_bpf_maps_neutral_params@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_rhashtable_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	movq	%r13, %rdi
	callq	_nfp_bpf_init_capabilities
	movq	%r15, %rdi
	callq	_nfp_bpf_parse_capabilities
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	cmpl	$2, (%r13)
	jg	LBB0_7
## %bb.6:
	movq	_CMSG_MAP_KEY_LW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$2, %eax
	movl	%eax, 4(%r13)
	movq	_CMSG_MAP_VALUE_LW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$2, %eax
	movl	%eax, 8(%r13)
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_7:
	movq	24(%r13), %rax
	movq	%rax, 4(%r13)
	movq	%r13, %rdi
	callq	_nfp_bpf_ctrl_cmsg_mtu
	movl	%eax, (%r15)
LBB0_8:
	movq	_nfp_bpf_dev_ops@GOTPCREL(%rip), %rdi
	movq	%r13, %rsi
	callq	_bpf_offload_dev_create
	movl	%eax, 20(%r13)
	movl	%eax, %edi
	callq	_PTR_ERR_OR_ZERO
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_9
LBB0_10:
	movq	%r12, %rdi
	callq	_rhashtable_destroy
LBB0_11:
	movq	%r14, %rdi
	callq	_nfp_ccm_clean
LBB0_12:
	movq	%r13, %rdi
	callq	_kfree
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_nfp_bpf_maps_neutral_params,4,2 ## @nfp_bpf_maps_neutral_params
	.comm	_CMSG_MAP_KEY_LW,4,2            ## @CMSG_MAP_KEY_LW
	.comm	_CMSG_MAP_VALUE_LW,4,2          ## @CMSG_MAP_VALUE_LW
	.comm	_nfp_bpf_dev_ops,4,2            ## @nfp_bpf_dev_ops
	.no_dead_strip	_nfp_bpf_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_bpf_init
_nfp_bpf_init:                          ; @nfp_bpf_init
	.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	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	str	x21, [x0, #40]
	str	x0, [x21, #8]
	add	x0, x0, #32
	bl	_INIT_LIST_HEAD
	add	x20, x19, #12
	mov	x0, x20
	mov	x1, x21
	bl	_nfp_ccm_init
	mov	x23, x0
	cbnz	w0, LBB0_11
; %bb.2:
	add	x22, x19, #16
Lloh3:
	adrp	x1, _nfp_bpf_maps_neutral_params@GOTPAGE
Lloh4:
	ldr	x1, [x1, _nfp_bpf_maps_neutral_params@GOTPAGEOFF]
	mov	x0, x22
	bl	_rhashtable_init
	mov	x23, x0
	cbnz	w0, LBB0_10
; %bb.3:
	mov	x0, x19
	bl	_nfp_bpf_init_capabilities
	mov	x0, x21
	bl	_nfp_bpf_parse_capabilities
	mov	x23, x0
	cbnz	w0, LBB0_9
; %bb.4:
	ldr	w8, [x19]
	cmp	w8, #2
	b.gt	LBB0_7
; %bb.5:
Lloh5:
	adrp	x8, _CMSG_MAP_KEY_LW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CMSG_MAP_KEY_LW@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	lsl	w8, w8, #2
Lloh8:
	adrp	x9, _CMSG_MAP_VALUE_LW@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CMSG_MAP_VALUE_LW@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	lsl	w9, w9, #2
	stp	w8, w9, [x19, #4]
	b	LBB0_8
LBB0_6:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_12
LBB0_7:
	ldr	d0, [x19, #24]
	stur	d0, [x19, #4]
	mov	x0, x19
	bl	_nfp_bpf_ctrl_cmsg_mtu
	str	w0, [x21]
LBB0_8:
Lloh14:
	adrp	x0, _nfp_bpf_dev_ops@GOTPAGE
Lloh15:
	ldr	x0, [x0, _nfp_bpf_dev_ops@GOTPAGEOFF]
	mov	x1, x19
	bl	_bpf_offload_dev_create
	str	w0, [x19, #20]
	bl	_PTR_ERR_OR_ZERO
	mov	x23, x0
	cbz	w0, LBB0_12
LBB0_9:
	mov	x0, x22
	bl	_rhashtable_destroy
LBB0_10:
	mov	x0, x20
	bl	_nfp_ccm_clean
LBB0_11:
	mov	x0, x19
	bl	_kfree
LBB0_12:
	mov	x0, x23
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_nfp_bpf_maps_neutral_params,4,2 ; @nfp_bpf_maps_neutral_params
	.comm	_CMSG_MAP_KEY_LW,4,2            ; @CMSG_MAP_KEY_LW
	.comm	_CMSG_MAP_VALUE_LW,4,2          ; @CMSG_MAP_VALUE_LW
	.comm	_nfp_bpf_dev_ops,4,2            ; @nfp_bpf_dev_ops
	.no_dead_strip	_nfp_bpf_init
.subsections_via_symbols
