	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_shared_buf_pool_get        ## -- Begin function nfp_shared_buf_pool_get
	.p2align	4, 0x90
_nfp_shared_buf_pool_get:               ## @nfp_shared_buf_pool_get
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r12
	movl	%edx, %edi
	callq	_cpu_to_le32
	movl	%eax, -40(%rbp)
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movl	%eax, -36(%rbp)
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_nfp_shared_buf_pool_unit
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	%eax, %r15d
	movq	_NFP_MBOX_POOL_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	leaq	-56(%rbp), %r8
	movq	%r12, %rdi
	movl	$8, %ecx
	movl	$12, %r9d
	callq	_nfp_mbox_cmd
	testl	%eax, %eax
	js	LBB0_7
## %bb.4:
	cmpl	$11, %eax
	ja	LBB0_6
## %bb.5:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_6:
	movl	-48(%rbp), %edi
	callq	_le32_to_cpu
	movl	%eax, (%r14)
	movl	-52(%rbp), %edi
	callq	_le32_to_cpu
	movl	%eax, 4(%r14)
	movl	-56(%rbp), %edi
	callq	_le32_to_cpu
	imull	%r15d, %eax
	movl	%eax, 8(%r14)
	movl	%r15d, 12(%r14)
	xorl	%eax, %eax
LBB0_7:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NFP_MBOX_POOL_GET,4,2          ## @NFP_MBOX_POOL_GET
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_shared_buf_pool_get        ; -- Begin function nfp_shared_buf_pool_get
	.p2align	2
_nfp_shared_buf_pool_get:               ; @nfp_shared_buf_pool_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x21, x0
	mov	x0, x2
	bl	_cpu_to_le32
	str	w0, [sp, #8]
	mov	x0, x20
	bl	_cpu_to_le32
	str	w0, [sp, #12]
	mov	x0, x21
	mov	x1, x20
	bl	_nfp_shared_buf_pool_unit
	cbz	w0, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _NFP_MBOX_POOL_GET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFP_MBOX_POOL_GET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	add	x4, sp, #16
	mov	x0, x21
	mov	w3, #8
	mov	w5, #12
	bl	_nfp_mbox_cmd
	tbnz	w0, #31, LBB0_7
; %bb.2:
	cmp	w0, #11
	b.hi	LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	ldr	w0, [sp, #24]
	bl	_le32_to_cpu
	str	w0, [x19]
	ldr	w0, [sp, #20]
	bl	_le32_to_cpu
	str	w0, [x19, #4]
	ldr	w0, [sp, #16]
	bl	_le32_to_cpu
	mov	x8, x0
	mov	w0, #0
	mul	w8, w8, w20
	stp	w8, w20, [x19, #8]
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NFP_MBOX_POOL_GET,4,2          ; @NFP_MBOX_POOL_GET
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
