	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __nfp_cpp_area_acquire
___nfp_cpp_area_acquire:                ## @__nfp_cpp_area_acquire
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_atomic_inc_return
	xorl	%ebx, %ebx
	cmpl	$1, %eax
	jg	LBB0_7
## %bb.1:
	movq	8(%r14), %rax
	movq	8(%rax), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_7
## %bb.2:
	movl	(%rax), %ebx
	leaq	-20(%rbp), %rsi
	movq	%r14, %rdi
	callq	_nfp_cpp_area_acquire_try
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_wait_event_interruptible
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	-20(%rbp), %ebx
LBB0_4:
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.5:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_nfp_warn
	movq	%r14, %rdi
	callq	_atomic_dec
	jmp	LBB0_7
LBB0_6:
	movq	%r14, %rdi
	callq	_nfp_cpp_area_get
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Warning: area wait failed: %d\n"

	.no_dead_strip	___nfp_cpp_area_acquire
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __nfp_cpp_area_acquire
___nfp_cpp_area_acquire:                ; @__nfp_cpp_area_acquire
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_atomic_inc_return
	cmp	w0, #1
	b.gt	LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #8]
	ldr	w9, [x9]
	cbz	w9, LBB0_4
; %bb.2:
	ldr	w20, [x8]
	add	x1, sp, #12
	mov	x0, x19
	bl	_nfp_cpp_area_acquire_try
	mov	x1, x0
	mov	x0, x20
	bl	_wait_event_interruptible
	ldr	w8, [sp, #12]
	cmp	w0, #0
	csel	w20, w8, w0, eq
	cbz	w20, LBB0_6
; %bb.3:
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_nfp_warn
	mov	x0, x19
	bl	_atomic_dec
	b	LBB0_5
LBB0_4:
	mov	w20, #0
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	mov	x0, x19
	bl	_nfp_cpp_area_get
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Warning: area wait failed: %d\n"

	.no_dead_strip	___nfp_cpp_area_acquire
.subsections_via_symbols
