	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_bpf_ctrl_alloc_map         ## -- Begin function nfp_bpf_ctrl_alloc_map
	.p2align	4, 0x90
_nfp_bpf_ctrl_alloc_map:                ## @nfp_bpf_ctrl_alloc_map
	.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	%rsi, %r12
	movq	%rdi, %r14
	movl	$40, %esi
	callq	_nfp_bpf_cmsg_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	(%rax), %rbx
	movl	12(%r12), %edi
	callq	_cpu_to_be32
	movq	%rax, 32(%rbx)
	movl	8(%r12), %edi
	callq	_cpu_to_be32
	movq	%rax, 24(%rbx)
	movl	4(%r12), %edi
	callq	_cpu_to_be32
	movq	%rax, 16(%rbx)
	movl	(%r12), %edi
	callq	_cpu_to_be32
	movq	%rax, 8(%rbx)
	movq	$0, (%rbx)
	movq	_NFP_CCM_TYPE_BPF_MAP_ALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$8, %ecx
	callq	_nfp_ccm_communicate
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
	jmp	LBB0_6
LBB0_3:
	movq	(%rbx), %r15
	leaq	4(%r15), %rsi
	movq	%r14, %rdi
	callq	_nfp_bpf_ctrl_rc_to_errno
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_dev_kfree_skb_any
	movslq	%r14d, %rax
	jmp	LBB0_6
LBB0_4:
	movl	(%r15), %edi
	callq	_be32_to_cpu
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_dev_consume_skb_any
	movq	%r14, %rax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_NFP_CCM_TYPE_BPF_MAP_ALLOC,4,2 ## @NFP_CCM_TYPE_BPF_MAP_ALLOC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_bpf_ctrl_alloc_map         ; -- Begin function nfp_bpf_ctrl_alloc_map
	.p2align	2
_nfp_bpf_ctrl_alloc_map:                ; @nfp_bpf_ctrl_alloc_map
	.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	x21, x1
	mov	x19, x0
	mov	w1, #40
	bl	_nfp_bpf_cmsg_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x22, [x0]
	ldr	w0, [x21, #12]
	bl	_cpu_to_be32
	str	x0, [x22, #32]
	ldr	w0, [x21, #8]
	bl	_cpu_to_be32
	str	x0, [x22, #24]
	ldr	w0, [x21, #4]
	bl	_cpu_to_be32
	str	x0, [x22, #16]
	ldr	w0, [x21]
	bl	_cpu_to_be32
	stp	xzr, x0, [x22]
Lloh0:
	adrp	x8, _NFP_CCM_TYPE_BPF_MAP_ALLOC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFP_CCM_TYPE_BPF_MAP_ALLOC@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #8
	bl	_nfp_ccm_communicate
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	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	_PTR_ERR
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	neg	x0, x8
	b	LBB0_7
LBB0_4:
	ldr	x21, [x20]
	add	x1, x21, #4
	mov	x0, x19
	bl	_nfp_bpf_ctrl_rc_to_errno
	cbz	w0, LBB0_6
; %bb.5:
	mov	x19, x0
	mov	x0, x20
	bl	_dev_kfree_skb_any
	sxtw	x0, w19
	b	LBB0_7
LBB0_6:
	ldr	w0, [x21]
	bl	_be32_to_cpu
	mov	x19, x0
	mov	x0, x20
	bl	_dev_consume_skb_any
	mov	x0, x19
LBB0_7:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_NFP_CCM_TYPE_BPF_MAP_ALLOC,4,2 ; @NFP_CCM_TYPE_BPF_MAP_ALLOC
.subsections_via_symbols
