	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lock_nfslock                   ## -- Begin function lock_nfslock
	.p2align	4, 0x90
_lock_nfslock:                          ## @lock_nfslock
	.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
	movq	$0, -24(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_debuglog
	leaq	-24(%rbp), %rsi
	movq	%r14, %rdi
	callq	_test_nfslock
	movl	%eax, %ebx
	movq	_NFS_GRANTED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_2
## %bb.1:
	movq	_NFS_GRANTED_DUPLICATE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	callq	_debuglog
	movq	%r14, %rdi
	callq	_dump_filelock
	movq	_nfslocklist@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_nfslocklist_head@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_LIST_INSERT_HEAD
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	callq	_debuglog
	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	"Entering lock_nfslock...\n"

	.comm	_NFS_GRANTED,4,2                ## @NFS_GRANTED
	.comm	_NFS_GRANTED_DUPLICATE,4,2      ## @NFS_GRANTED_DUPLICATE
L_.str.1:                               ## @.str.1
	.asciz	"Inserting lock...\n"

	.comm	_nfslocklist_head,4,2           ## @nfslocklist_head
	.comm	_nfslocklist,4,2                ## @nfslocklist
L_.str.2:                               ## @.str.2
	.asciz	"Exiting lock_nfslock...\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lock_nfslock                   ; -- Begin function lock_nfslock
	.p2align	2
_lock_nfslock:                          ; @lock_nfslock
	.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
	str	xzr, [sp, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debuglog
	add	x1, sp, #8
	mov	x0, x19
	bl	_test_nfslock
	mov	x20, x0
Lloh2:
	adrp	x8, _NFS_GRANTED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NFS_GRANTED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _NFS_GRANTED_DUPLICATE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NFS_GRANTED_DUPLICATE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_debuglog
	mov	x0, x19
	bl	_dump_filelock
Lloh10:
	adrp	x8, _nfslocklist@GOTPAGE
Lloh11:
	ldr	x8, [x8, _nfslocklist@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x0, _nfslocklist_head@GOTPAGE
Lloh14:
	ldr	x0, [x0, _nfslocklist_head@GOTPAGEOFF]
	mov	x1, x19
	bl	_LIST_INSERT_HEAD
LBB0_2:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_debuglog
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Entering lock_nfslock...\n"

	.comm	_NFS_GRANTED,4,2                ; @NFS_GRANTED
	.comm	_NFS_GRANTED_DUPLICATE,4,2      ; @NFS_GRANTED_DUPLICATE
l_.str.1:                               ; @.str.1
	.asciz	"Inserting lock...\n"

	.comm	_nfslocklist_head,4,2           ; @nfslocklist_head
	.comm	_nfslocklist,4,2                ; @nfslocklist
l_.str.2:                               ; @.str.2
	.asciz	"Exiting lock_nfslock...\n"

.subsections_via_symbols
