	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_cpp_mutex_init             ## -- Begin function nfp_cpp_mutex_init
	.p2align	4, 0x90
_nfp_cpp_mutex_init:                    ## @nfp_cpp_mutex_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rdi, %r13
	movl	%esi, -44(%rbp)
	movl	%esi, %edi
	movl	$4, %esi
	xorl	%edx, %edx
	callq	_NFP_CPP_ID
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_nfp_cpp_interface
	movl	%eax, %ebx
	leaq	-44(%rbp), %rsi
	movl	%eax, %edi
	movq	%r14, %rdx
	callq	_nfp_cpp_mutex_validate
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	leaq	4(%r14), %rdx
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r12d, %ecx
	callq	_nfp_cpp_writel
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movl	%ebx, %edi
	callq	_nfp_mutex_locked
	movq	%r13, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_nfp_cpp_writel
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_init             ; -- Begin function nfp_cpp_mutex_init
	.p2align	2
_nfp_cpp_mutex_init:                    ; @nfp_cpp_mutex_init
	.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	x22, x3
	mov	x19, x2
	mov	x20, x0
	str	w1, [sp, #12]
	mov	x0, x1
	mov	w1, #4
	mov	w2, #0
	bl	_NFP_CPP_ID
	mov	x21, x0
	mov	x0, x20
	bl	_nfp_cpp_interface
	mov	x23, x0
	add	x1, sp, #12
	mov	x2, x19
	bl	_nfp_cpp_mutex_validate
	cbnz	w0, LBB0_3
; %bb.1:
	add	x2, x19, #4
	mov	x0, x20
	mov	x1, x21
	mov	x3, x22
	bl	_nfp_cpp_writel
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x23
	bl	_nfp_mutex_locked
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_nfp_cpp_writel
LBB0_3:
	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
