	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_cpp_mutex_reclaim          ## -- Begin function nfp_cpp_mutex_reclaim
	.p2align	4, 0x90
_nfp_cpp_mutex_reclaim:                 ## @nfp_cpp_mutex_reclaim
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	%esi, -56(%rbp)
	movl	%esi, %edi
	movl	$3, %esi
	xorl	%edx, %edx
	callq	_NFP_CPP_ID
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movl	$4, %esi
	xorl	%edx, %edx
	callq	_NFP_CPP_ID
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_nfp_cpp_interface
	movq	%rax, %r13
	leaq	-56(%rbp), %rsi
	movq	%rax, %rdi
	movq	%r12, %rdx
	callq	_nfp_cpp_mutex_validate
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	leaq	-44(%rbp), %rcx
	movq	%r15, %r14
	movq	%r15, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	%r12, %rdx
	callq	_nfp_cpp_readl
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movl	-44(%rbp), %edi
	callq	_nfp_mutex_is_unlocked
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movl	-44(%rbp), %edi
	callq	_nfp_mutex_owner
	cmpq	%r13, %rax
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	jne	LBB0_6
## %bb.5:
	movq	%r13, %rdi
	movq	%r12, %rbx
	callq	_nfp_mutex_unlocked
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r12, %rdx
	movl	%eax, %ecx
	callq	_nfp_cpp_writel
	testl	%eax, %eax
	movl	$1, %ebx
	cmovsl	%eax, %ebx
	jmp	LBB0_6
LBB0_2:
	movl	%eax, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_cpp_mutex_reclaim          ; -- Begin function nfp_cpp_mutex_reclaim
	.p2align	2
_nfp_cpp_mutex_reclaim:                 ; @nfp_cpp_mutex_reclaim
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	str	w1, [sp, #12]
	mov	x0, x1
	mov	w1, #3
	mov	w2, #0
	bl	_NFP_CPP_ID
	mov	x23, x0
	mov	x0, x21
	mov	w1, #4
	mov	w2, #0
	bl	_NFP_CPP_ID
	mov	x21, x0
	mov	x0, x20
	bl	_nfp_cpp_interface
	mov	x22, x0
	add	x1, sp, #12
	mov	x2, x19
	bl	_nfp_cpp_mutex_validate
	cbnz	w0, LBB0_6
; %bb.1:
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	bl	_nfp_cpp_readl
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldr	w0, [sp, #8]
	bl	_nfp_mutex_is_unlocked
	cbnz	x0, LBB0_5
; %bb.3:
	ldr	w0, [sp, #8]
	bl	_nfp_mutex_owner
	cmp	x0, x22
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x22
	bl	_nfp_mutex_unlocked
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_nfp_cpp_writel
	cmp	w0, #0
	csinc	w0, w0, wzr, lt
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
