	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_cpp_mutex_lock             ## -- Begin function nfp_cpp_mutex_lock
	.p2align	4, 0x90
_nfp_cpp_mutex_lock:                    ## @nfp_cpp_mutex_lock
	.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
	movq	%rdi, %r15
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_NFP_MUTEX_WAIT_FIRST_WARN@GOTPCREL(%rip), %rcx
	movq	_HZ@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r14
	movq	(%rcx), %rbx
	imulq	%r14, %rbx
	addq	%rax, %rbx
	movq	_NFP_MUTEX_WAIT_ERROR@GOTPCREL(%rip), %rcx
	imulq	(%rcx), %r14
	addq	%rax, %r14
	movq	_EBUSY@GOTPCREL(%rip), %r13
	leaq	L_.str.1(%rip), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_time_is_before_eq_jiffies
	testq	%rax, %rax
	jne	LBB0_7
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_nfp_cpp_mutex_trylock
	movl	(%r13), %ecx
	addl	%eax, %ecx
	jne	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	callq	_msleep_interruptible
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_time_is_before_eq_jiffies
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_NFP_MUTEX_WAIT_NEXT_WARN@GOTPCREL(%rip), %rax
	imulq	(%rax), %rbx
	movq	_jiffies@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movl	16(%r15), %edx
	movl	12(%r15), %ecx
	movl	8(%r15), %r8d
	movl	(%r15), %edi
	movl	4(%r15), %r9d
	movq	%r12, %rsi
	callq	_nfp_warn
	jmp	LBB0_6
LBB0_7:
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_nfp_err
	xorl	%eax, %eax
	subl	(%r13), %eax
	jmp	LBB0_8
LBB0_3:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_nfp_info
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_NFP_MUTEX_WAIT_FIRST_WARN,8,3  ## @NFP_MUTEX_WAIT_FIRST_WARN
	.comm	_HZ,8,3                         ## @HZ
	.comm	_NFP_MUTEX_WAIT_ERROR,8,3       ## @NFP_MUTEX_WAIT_ERROR
	.comm	_EBUSY,4,2                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"interrupted waiting for NFP mutex\n"

	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_NFP_MUTEX_WAIT_NEXT_WARN,8,3   ## @NFP_MUTEX_WAIT_NEXT_WARN
L_.str.1:                               ## @.str.1
	.asciz	"Warning: waiting for NFP mutex [depth:%hd target:%d addr:%llx key:%08x]\n"

L_.str.2:                               ## @.str.2
	.asciz	"Error: mutex wait timed out\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_cpp_mutex_lock             ; -- Begin function nfp_cpp_mutex_lock
	.p2align	2
_nfp_cpp_mutex_lock:                    ; @nfp_cpp_mutex_lock
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x23, _jiffies@GOTPAGE
Lloh1:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh2:
	adrp	x9, _NFP_MUTEX_WAIT_FIRST_WARN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NFP_MUTEX_WAIT_FIRST_WARN@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x25, _HZ@GOTPAGE
Lloh6:
	ldr	x25, [x25, _HZ@GOTPAGEOFF]
	ldr	x10, [x25]
	madd	x21, x10, x9, x8
Lloh7:
	adrp	x9, _NFP_MUTEX_WAIT_ERROR@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NFP_MUTEX_WAIT_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	madd	x20, x9, x10, x8
Lloh10:
	adrp	x24, _EBUSY@GOTPAGE
Lloh11:
	ldr	x24, [x24, _EBUSY@GOTPAGEOFF]
Lloh12:
	adrp	x26, _NFP_MUTEX_WAIT_NEXT_WARN@GOTPAGE
Lloh13:
	ldr	x26, [x26, _NFP_MUTEX_WAIT_NEXT_WARN@GOTPAGEOFF]
Lloh14:
	adrp	x22, l_.str.1@PAGE
Lloh15:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_time_is_before_eq_jiffies
	cbnz	x0, LBB0_6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_nfp_cpp_mutex_trylock
	ldr	w8, [x24]
	cmn	w0, w8
	b.ne	LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1
	bl	_msleep_interruptible
	cbnz	w0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_time_is_before_eq_jiffies
	cbz	x0, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x26]
	ldr	x10, [x25]
	madd	x21, x10, x9, x8
	ldp	w3, w2, [x19, #12]
	ldp	w5, w4, [x19, #4]
	ldr	w0, [x19]
	mov	x1, x22
	bl	_nfp_warn
	b	LBB0_1
LBB0_6:
	ldr	w0, [x19]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_nfp_err
	ldr	w8, [x24]
	b	LBB0_8
LBB0_7:
	ldr	w0, [x19]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nfp_info
Lloh20:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
LBB0_8:
	neg	w0, w8
LBB0_9:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_NFP_MUTEX_WAIT_FIRST_WARN,8,3  ; @NFP_MUTEX_WAIT_FIRST_WARN
	.comm	_HZ,8,3                         ; @HZ
	.comm	_NFP_MUTEX_WAIT_ERROR,8,3       ; @NFP_MUTEX_WAIT_ERROR
	.comm	_EBUSY,4,2                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"interrupted waiting for NFP mutex\n"

	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_NFP_MUTEX_WAIT_NEXT_WARN,8,3   ; @NFP_MUTEX_WAIT_NEXT_WARN
l_.str.1:                               ; @.str.1
	.asciz	"Warning: waiting for NFP mutex [depth:%hd target:%d addr:%llx key:%08x]\n"

l_.str.2:                               ; @.str.2
	.asciz	"Error: mutex wait timed out\n"

.subsections_via_symbols
