	.file	"extr_main.c_nfp_bpf_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nfp_bpf_init, @function
nfp_bpf_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	edi, 48
	call	kzalloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	test	rax, rax
	je	.L1
	mov	QWORD PTR 40[rax], rbx
	mov	rbp, rax
	lea	rdi, 32[rax]
	mov	QWORD PTR 8[rbx], rax
	lea	r13, 12[rbp]
	call	INIT_LIST_HEAD@PLT
	mov	rsi, rbx
	mov	rdi, r13
	call	nfp_ccm_init@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L14
.L4:
	mov	rdi, rbp
	call	kfree@PLT
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	lea	r14, 16[rbp]
	lea	rsi, nfp_bpf_maps_neutral_params[rip]
	mov	rdi, r14
	call	rhashtable_init@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L15
.L5:
	mov	rdi, r13
	call	nfp_ccm_clean@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, rbp
	call	nfp_bpf_init_capabilities@PLT
	mov	rdi, rbx
	call	nfp_bpf_parse_capabilities@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L6
	cmp	DWORD PTR 0[rbp], 2
	jg	.L7
	mov	eax, DWORD PTR CMSG_MAP_KEY_LW[rip]
	sal	eax, 2
	mov	DWORD PTR 4[rbp], eax
	mov	eax, DWORD PTR CMSG_MAP_VALUE_LW[rip]
	sal	eax, 2
	mov	DWORD PTR 8[rbp], eax
.L8:
	mov	rsi, rbp
	lea	rdi, nfp_bpf_dev_ops[rip]
	call	bpf_offload_dev_create@PLT
	mov	DWORD PTR 20[rbp], eax
	mov	edi, eax
	call	PTR_ERR_OR_ZERO@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
.L6:
	mov	rdi, r14
	call	rhashtable_destroy@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR 24[rbp]
	mov	rdi, rbp
	mov	QWORD PTR 4[rbp], rax
	call	nfp_bpf_ctrl_cmsg_mtu@PLT
	mov	DWORD PTR [rbx], eax
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	nfp_bpf_init, .-nfp_bpf_init
	.comm	nfp_bpf_maps_neutral_params,4,4
	.comm	nfp_bpf_dev_ops,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	CMSG_MAP_VALUE_LW,4,4
	.comm	CMSG_MAP_KEY_LW,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_main.c_nfp_bpf_init.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nfp_bpf_init, %function
nfp_bpf_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L17
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r1, [r3]
	mov	r6, r0
	mov	r0, #40
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L14
	str	r6, [r4, #36]
	add	r0, r4, #32
	str	r4, [r6, #4]
	add	r7, r4, #12
	bl	INIT_LIST_HEAD
	mov	r0, r7
	mov	r1, r6
	bl	nfp_ccm_init
	subs	r5, r0, #0
	beq	.L15
.L4:
	mov	r0, r4
	bl	kfree
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	add	r8, r4, #16
	mov	r0, r8
	ldr	r1, .L17+4
	bl	rhashtable_init
	subs	r5, r0, #0
	beq	.L16
.L5:
	mov	r0, r7
	bl	nfp_ccm_clean
	b	.L4
.L14:
	ldr	r3, .L17+8
	ldr	r0, [r3]
	rsb	r5, r0, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	mov	r0, r4
	bl	nfp_bpf_init_capabilities
	mov	r0, r6
	bl	nfp_bpf_parse_capabilities
	subs	r5, r0, #0
	bne	.L6
	ldr	r3, [r4]
	cmp	r3, #2
	bgt	.L7
	ldr	r2, .L17+12
	ldr	r3, .L17+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	lsl	r2, r2, #2
	lsl	r3, r3, #2
	stmib	r4, {r2, r3}
.L8:
	mov	r1, r4
	ldr	r0, .L17+20
	bl	bpf_offload_dev_create
	str	r0, [r4, #20]
	bl	PTR_ERR_OR_ZERO
	subs	r5, r0, #0
	beq	.L1
.L6:
	mov	r0, r8
	bl	rhashtable_destroy
	b	.L5
.L7:
	ldr	r2, [r4, #24]
	ldr	r3, [r4, #28]
	mov	r0, r4
	stmib	r4, {r2, r3}
	bl	nfp_bpf_ctrl_cmsg_mtu
	str	r0, [r6]
	b	.L8
.L18:
	.align	2
.L17:
	.word	GFP_KERNEL
	.word	nfp_bpf_maps_neutral_params
	.word	ENOMEM
	.word	CMSG_MAP_KEY_LW
	.word	CMSG_MAP_VALUE_LW
	.word	nfp_bpf_dev_ops
	.size	nfp_bpf_init, .-nfp_bpf_init
	.comm	nfp_bpf_maps_neutral_params,4,4
	.comm	nfp_bpf_dev_ops,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	CMSG_MAP_VALUE_LW,4,4
	.comm	CMSG_MAP_KEY_LW,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
