	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nlm_advlock_internal
_nlm_advlock_internal:                  ## @nlm_advlock_internal
	.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	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -136(%rbp)                 ## 8-byte Spill
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -120(%rbp)                 ## 8-byte Spill
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movl	%edx, %ebx
	movq	%rsi, -184(%rbp)                ## 8-byte Spill
	movq	%rdi, %r12
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	callq	_ASSERT_VOP_LOCKED
	movq	_MNAMELEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_M_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_malloc
	movq	%rax, %r14
	movq	(%r12), %rdi
	callq	_VFSTONFS
	movq	%rax, %r15
	movl	%ebx, -92(%rbp)                 ## 4-byte Spill
	andl	$-2, %ebx
	cmpl	$128, %ebx
	jne	LBB0_2
## %bb.1:
	movq	_V_SAVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	-160(%rbp), %rdx                ## 8-byte Reload
	movl	$1, %ecx
	callq	*24(%r15)
LBB0_2:
	movl	16(%r15), %esi
	movq	%r14, %rdi
	callq	_strcpy
	subq	$8, %rsp
	leaq	-48(%rbp), %rax
	leaq	-104(%rbp), %rdx
	leaq	-168(%rbp), %rcx
	leaq	-172(%rbp), %r8
	leaq	-52(%rbp), %r9
	movq	%r12, %rdi
	pushq	%rax
	callq	*8(%r15)
	addq	$16, %rsp
	cmpl	$0, -172(%rbp)
	movq	%r14, -128(%rbp)                ## 8-byte Spill
	jne	LBB0_3
## %bb.4:
	movq	_NLM_VERS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_NLM_VERS4@GOTPCREL(%rip), %rax
LBB0_5:
	movq	16(%rbp), %r14
	movq	_NFSMNT_SOFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%r15), %ecx
	jne	LBB0_6
## %bb.7:
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_6:
	movq	%r15, %rcx
	addq	$4, %rcx
LBB0_8:
	movl	(%rax), %ebx
	movl	(%rcx), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	-160(%rbp), %rcx                ## 8-byte Reload
	movq	(%rcx), %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movq	(%r12), %rax
	movq	(%rax), %rdi
	movq	%rdi, (%rcx)
	callq	_crhold
	testq	%r14, %r14
	je	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_VOP_UNLOCK
LBB0_10:
	leaq	-168(%rbp), %rsi
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movl	%ebx, -76(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edx
	callq	_nlm_find_host_by_name
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	-152(%rbp), %rdi                ## 8-byte Reload
	callq	_authunix_create
	movq	%rax, %r13
	leaq	-216(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -224(%rbp)
	movq	%r15, -232(%rbp)
	movq	%r13, -144(%rbp)                ## 8-byte Spill
	movq	%r13, -192(%rbp)
	movq	_nlm_feedback@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -200(%rbp)
	leaq	-232(%rbp), %rax
	movq	%rax, -208(%rbp)
	movq	$0, -216(%rbp)
	movq	_F_FLOCK@GOTPCREL(%rip), %rax
	movq	-120(%rbp), %r11                ## 8-byte Reload
	testl	%r11d, (%rax)
	je	LBB0_16
## %bb.11:
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	callq	_nlm_find_svid
	movq	%rax, %r15
	movq	-112(%rbp), %rax                ## 8-byte Reload
	cmpq	$0, (%rax)
	jne	LBB0_13
## %bb.12:
	xorl	%r14d, %r14d
	cmpq	$0, 8(%rax)
	sete	%r14b
LBB0_13:
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	callq	_KASSERT
	cmpq	$0, 24(%r15)
	movl	-76(%rbp), %r13d                ## 4-byte Reload
	jne	LBB0_15
## %bb.14:
	movq	-152(%rbp), %rdi                ## 8-byte Reload
	callq	_crdup
	movq	%rax, 24(%r15)
LBB0_15:
	movq	%r15, %rax
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	-120(%rbp), %r11                ## 8-byte Reload
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	movl	-92(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_19
LBB0_16:
	movq	_F_REMOTE@GOTPCREL(%rip), %rax
	testl	%r11d, (%rax)
	je	LBB0_18
## %bb.17:
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	leaq	16(%rbx), %r15
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	movl	-76(%rbp), %r13d                ## 4-byte Reload
	movl	-92(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_19
LBB0_18:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	movl	-76(%rbp), %r13d                ## 4-byte Reload
	movl	-92(%rbp), %eax                 ## 4-byte Reload
	movq	-184(%rbp), %r15                ## 8-byte Reload
LBB0_19:
	movl	(%r15), %r14d
	cmpl	$128, %eax
	je	LBB0_35
## %bb.20:
	cmpl	$130, %eax
	je	LBB0_40
## %bb.21:
	cmpl	$129, %eax
	jne	LBB0_41
## %bb.22:
	movq	_F_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_F_FLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%r15d, %ecx
	movl	%r11d, %edx
	notl	%edx
	testl	%edx, %ecx
	jne	LBB0_29
## %bb.23:
	movl	20(%rbx), %ecx
	movq	_F_WRLCK@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_29
## %bb.24:
	notl	%r15d
	andl	%r11d, %r15d
	movl	-52(%rbp), %r10d
	leaq	-216(%rbp), %rsi
	leaq	-48(%rbp), %rcx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	movq	%r12, %r9
	pushq	-136(%rbp)                      ## 8-byte Folded Reload
	pushq	%r10
	leaq	-72(%rbp), %rax
	pushq	%rax
	pushq	-104(%rbp)
	pushq	%r14
	pushq	%r15
	pushq	%rbx
	pushq	$129
	callq	_nlm_setlock
	addq	$64, %rsp
	movl	%r13d, %edx
	movl	%eax, %r13d
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_31
## %bb.25:
	movl	$128, 20(%rbx)
	movl	-52(%rbp), %eax
	subq	$8, %rsp
	leaq	-216(%rbp), %rsi
	leaq	-48(%rbp), %rcx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	movq	%r12, %r9
	pushq	%rax
	leaq	-72(%rbp), %r15
	pushq	%r15
	pushq	-104(%rbp)
	pushq	%r14
	pushq	-120(%rbp)                      ## 8-byte Folded Reload
	pushq	%rbx
	pushq	$128
	callq	_nlm_clearlock
	addq	$64, %rsp
	movl	%eax, %r13d
	movq	_F_WRLCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	testl	%r13d, %r13d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_43
## %bb.26:
	movq	_nlm_svid_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	cmpq	$0, 8(%rbx)
	je	LBB0_28
## %bb.27:
	decl	16(%rbx)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_28:
	movq	_nlm_svid_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movq	_F_WAIT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	-52(%rbp), %eax
	leaq	-216(%rbp), %rsi
	leaq	-48(%rbp), %rcx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	movq	%r12, %r9
	pushq	-136(%rbp)                      ## 8-byte Folded Reload
	pushq	%rax
	pushq	%r15
	pushq	-104(%rbp)
	pushq	%r14
	pushq	%rbx
	pushq	-112(%rbp)                      ## 8-byte Folded Reload
	jmp	LBB0_30
LBB0_35:
	movl	-52(%rbp), %eax
	subq	$8, %rsp
	leaq	-72(%rbp), %r10
	leaq	-216(%rbp), %rsi
	leaq	-48(%rbp), %rcx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	movq	%r12, %r9
	pushq	%rax
	pushq	%r10
	pushq	-104(%rbp)
	pushq	%r14
	pushq	%r11
	pushq	%rbx
	pushq	$128
	callq	_nlm_clearlock
	addq	$64, %rsp
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_42
## %bb.36:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_43
## %bb.37:
	movq	_nlm_svid_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movl	$-1, %eax
	cmpq	$0, 8(%rbx)
	movq	_M_TEMP@GOTPCREL(%rip), %r15
	movq	-128(%rbp), %r14                ## 8-byte Reload
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	movq	_FALSE@GOTPCREL(%rip), %rdx
	jne	LBB0_38
	jmp	LBB0_39
LBB0_40:
	movl	-52(%rbp), %eax
	subq	$8, %rsp
	leaq	-72(%rbp), %r10
	leaq	-216(%rbp), %rsi
	leaq	-48(%rbp), %rcx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	movq	%r12, %r9
	pushq	%rax
	pushq	%r10
	pushq	-104(%rbp)
	pushq	%r14
	pushq	%r11
	pushq	%rbx
	pushq	$130
	callq	_nlm_getlock
	addq	$64, %rsp
	movl	%eax, %r13d
	jmp	LBB0_42
LBB0_41:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_42:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_43:
	testq	%rbx, %rbx
	movq	%rbx, %rdi
	movq	_M_TEMP@GOTPCREL(%rip), %r15
	movq	-128(%rbp), %r14                ## 8-byte Reload
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	jne	LBB0_44
	jmp	LBB0_45
LBB0_29:
	movl	-52(%rbp), %eax
	leaq	-72(%rbp), %r10
	leaq	-216(%rbp), %rsi
	leaq	-48(%rbp), %rcx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	movq	%r12, %r9
	pushq	-136(%rbp)                      ## 8-byte Folded Reload
	pushq	%rax
	pushq	%r10
	pushq	-104(%rbp)
	pushq	%r14
	pushq	%r11
	pushq	%rbx
LBB0_30:
	pushq	$129
	callq	_nlm_setlock
	addq	$64, %rsp
	movl	%eax, %r13d
LBB0_31:
	testl	%r13d, %r13d
	jne	LBB0_42
## %bb.32:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_43
## %bb.33:
	movq	_nlm_svid_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	cmpq	$0, 8(%rbx)
	movq	_M_TEMP@GOTPCREL(%rip), %r15
	movq	-128(%rbp), %r14                ## 8-byte Reload
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	jne	LBB0_39
## %bb.34:
	movq	_TRUE@GOTPCREL(%rip), %rdx
	movl	$1, %eax
LBB0_38:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, 16(%rcx)
	movq	(%rdx), %rax
	movq	%rax, 8(%rcx)
LBB0_39:
	movq	_nlm_svid_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	xorl	%r13d, %r13d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
LBB0_44:
	callq	_nlm_free_svid
LBB0_45:
	movq	-160(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rdi
	movq	-152(%rbp), %rcx                ## 8-byte Reload
	movq	%rcx, (%rax)
	callq	_crfree
	movq	%rbx, %rdi
	callq	_AUTH_DESTROY
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_nlm_host_release
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_free
	movl	%r13d, %eax
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_curthread,8,3                  ## @curthread
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nlm_advlock_1"

	.comm	_MNAMELEN,4,2                   ## @MNAMELEN
	.comm	_M_TEMP,4,2                     ## @M_TEMP
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_V_SAVE,4,2                     ## @V_SAVE
	.comm	_NLM_VERS4,4,2                  ## @NLM_VERS4
	.comm	_NLM_VERS,4,2                   ## @NLM_VERS
	.comm	_NFSMNT_SOFT,4,2                ## @NFSMNT_SOFT
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_nlm_feedback,4,2               ## @nlm_feedback
	.comm	_F_FLOCK,4,2                    ## @F_FLOCK
L_.str.1:                               ## @.str.1
	.asciz	"F_FLOCK lock requests must be whole-file locks"

	.comm	_F_REMOTE,4,2                   ## @F_REMOTE
	.comm	_F_WAIT,4,2                     ## @F_WAIT
	.comm	_F_WRLCK,4,2                    ## @F_WRLCK
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_nlm_svid_lock,4,2              ## @nlm_svid_lock
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_nlm_advlock_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nlm_advlock_internal
_nlm_advlock_internal:                  ; @nlm_advlock_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #288
	.cfi_def_cfa_offset 288
	stp	x28, x27, [sp, #192]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #208]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #224]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #240]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #256]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #272]            ; 16-byte Folded Spill
	add	x29, sp, #272
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x6
	str	x5, [sp, #48]                   ; 8-byte Folded Spill
	mov	x26, x4
	mov	x24, x3
	mov	x22, x2
	mov	x27, x1
	mov	x25, x0
Lloh0:
	adrp	x8, _curthread@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ASSERT_VOP_LOCKED
Lloh5:
	adrp	x8, _MNAMELEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MNAMELEN@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _M_TEMP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _M_TEMP@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_malloc
	mov	x20, x0
	ldr	x0, [x25]
	bl	_VFSTONFS
	mov	x23, x0
	and	w8, w22, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x23, #24]
Lloh14:
	adrp	x9, _V_SAVE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _V_SAVE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x9]
	mov	x0, x25
	mov	x2, x19
	mov	w3, #1
	blr	x8
LBB0_2:
	ldr	w1, [x23, #16]
	mov	x0, x20
	bl	_strcpy
	ldr	x8, [x23, #8]
	sub	x2, x29, #104
	sub	x3, x29, #120
	add	x4, sp, #92
	sub	x5, x29, #92
	sub	x6, x29, #128
	mov	x0, x25
	blr	x8
Lloh17:
	adrp	x8, _NLM_VERS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NLM_VERS@GOTPAGEOFF]
Lloh19:
	adrp	x9, _NLM_VERS4@GOTPAGE
Lloh20:
	ldr	x9, [x9, _NLM_VERS4@GOTPAGEOFF]
	ldr	w10, [sp, #92]
	cmp	w10, #0
	csel	x8, x8, x9, eq
	ldr	w28, [x8]
Lloh21:
	adrp	x8, _NFSMNT_SOFT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NFSMNT_SOFT@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh23:
	ldr	w8, [x8]
	add	x10, x23, #4
Lloh24:
	adrp	x11, _INT_MAX@GOTPAGE
Lloh25:
	ldr	x11, [x11, _INT_MAX@GOTPAGEOFF]
	tst	w8, w9
	csel	x8, x11, x10, eq
	ldr	w8, [x8]
	str	w8, [sp, #68]                   ; 4-byte Folded Spill
	ldr	x8, [x19]
	str	x8, [sp, #80]                   ; 8-byte Folded Spill
	ldr	x8, [x25]
	ldr	x0, [x8]
	str	x0, [x19]
	bl	_crhold
	cbz	x21, LBB0_4
; %bb.3:
	mov	x0, x25
	mov	w1, #0
	bl	_VOP_UNLOCK
LBB0_4:
	sub	x1, x29, #120
	mov	x0, x20
	mov	x2, x28
	bl	_nlm_find_host_by_name
	str	x0, [sp, #72]                   ; 8-byte Folded Spill
	ldr	x0, [sp, #80]                   ; 8-byte Folded Reload
	bl	_authunix_create
	mov	x21, x0
	add	x0, sp, #112
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh26:
	adrp	x8, _FALSE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	stp	x23, x8, [sp, #96]
	str	x21, [sp, #56]                  ; 8-byte Folded Spill
	str	x21, [sp, #136]
Lloh29:
	adrp	x8, _nlm_feedback@GOTPAGE
Lloh30:
	ldr	x8, [x8, _nlm_feedback@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	w8, [sp, #128]
	add	x8, sp, #96
	stp	xzr, x8, [sp, #112]
Lloh32:
	adrp	x21, _F_FLOCK@GOTPAGE
Lloh33:
	ldr	x21, [x21, _F_FLOCK@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w26
	b.eq	LBB0_7
; %bb.5:
	mov	x0, x27
	bl	_nlm_find_svid
	mov	x23, x0
	ldr	x8, [x24]
	cbz	x8, LBB0_9
; %bb.6:
	mov	w0, #0
	b	LBB0_10
LBB0_7:
Lloh34:
	adrp	x8, _F_REMOTE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _F_REMOTE@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	tst	w8, w26
	b.eq	LBB0_41
; %bb.8:
	mov	x23, #0
	mov	x7, x24
	add	x27, x24, #16
	ldr	w4, [sp, #68]                   ; 4-byte Folded Reload
	b	LBB0_14
LBB0_9:
	mov	x9, x24
	ldr	x8, [x24, #8]
	cmp	x8, #0
	cset	w0, eq
LBB0_10:
Lloh37:
	adrp	x1, l_.str.1@PAGE
Lloh38:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_KASSERT
	ldr	x8, [x23, #24]
	cbnz	x8, LBB0_12
; %bb.11:
	ldr	x0, [sp, #80]                   ; 8-byte Folded Reload
	bl	_crdup
	str	x0, [x23, #24]
LBB0_12:
	mov	x27, x23
LBB0_13:
	ldr	w4, [sp, #68]                   ; 4-byte Folded Reload
	mov	x7, x24
LBB0_14:
	ldr	w27, [x27]
	cmp	w22, #128
	b.eq	LBB0_24
; %bb.15:
	cmp	w22, #130
	b.eq	LBB0_28
; %bb.16:
	cmp	w22, #129
	b.ne	LBB0_29
; %bb.17:
	ldr	w9, [x21]
Lloh39:
	adrp	x8, _F_WAIT@GOTPAGE
Lloh40:
	ldr	x8, [x8, _F_WAIT@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	orr	w9, w8, w9
	bics	wzr, w9, w26
	b.ne	LBB0_31
; %bb.18:
	ldr	w9, [x7, #20]
Lloh42:
	adrp	x10, _F_WRLCK@GOTPAGE
Lloh43:
	ldr	x10, [x10, _F_WRLCK@GOTPAGEOFF]
Lloh44:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_31
; %bb.19:
	bic	w8, w26, w8
	ldur	x9, [x29, #-104]
	ldur	w10, [x29, #-92]
	ldr	x11, [sp, #48]                  ; 8-byte Folded Reload
	str	x11, [sp, #32]
	str	w10, [sp, #24]
	sub	x10, x29, #112
	stp	x9, x10, [sp, #8]
	add	x1, sp, #112
	sub	x3, x29, #128
	stp	w8, w27, [sp]
	ldr	x0, [sp, #72]                   ; 8-byte Folded Reload
	mov	x2, x28
	mov	x5, x25
	mov	w6, #129
	mov	x22, x7
	bl	_nlm_setlock
	mov	x21, x0
Lloh45:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh46:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_33
; %bb.20:
	mov	w8, #128
	str	w8, [x22, #20]
	ldur	x8, [x29, #-104]
	ldur	w9, [x29, #-92]
	str	w9, [sp, #24]
	add	x1, sp, #112
	sub	x3, x29, #128
	sub	x9, x29, #112
	stp	x8, x9, [sp, #8]
	stp	w26, w27, [sp]
	ldr	x0, [sp, #72]                   ; 8-byte Folded Reload
	mov	x2, x28
	ldr	w4, [sp, #68]                   ; 4-byte Folded Reload
	mov	x5, x25
	mov	w6, #128
	mov	x7, x22
	bl	_nlm_clearlock
	mov	x21, x0
Lloh48:
	adrp	x8, _F_WRLCK@GOTPAGE
Lloh49:
	ldr	x8, [x8, _F_WRLCK@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	str	w8, [x22, #20]
	cbnz	w0, LBB0_30
; %bb.21:
Lloh51:
	adrp	x0, _nlm_svid_lock@GOTPAGE
Lloh52:
	ldr	x0, [x0, _nlm_svid_lock@GOTPAGEOFF]
	bl	_mtx_lock
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_23
; %bb.22:
	ldr	w8, [x23, #16]
	sub	w8, w8, #1
	str	w8, [x23, #16]
Lloh53:
	adrp	x8, _FALSE@GOTPAGE
Lloh54:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
	str	x8, [x23, #8]
LBB0_23:
Lloh56:
	adrp	x0, _nlm_svid_lock@GOTPAGE
Lloh57:
	ldr	x0, [x0, _nlm_svid_lock@GOTPAGEOFF]
	bl	_mtx_unlock
Lloh58:
	adrp	x8, _F_WAIT@GOTPAGE
Lloh59:
	ldr	x8, [x8, _F_WAIT@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
	orr	w8, w8, w26
	ldur	x9, [x29, #-104]
	ldur	w10, [x29, #-92]
	ldr	x11, [sp, #48]                  ; 8-byte Folded Reload
	str	x11, [sp, #32]
	str	w10, [sp, #24]
	sub	x10, x29, #112
	stp	x9, x10, [sp, #8]
	add	x1, sp, #112
	sub	x3, x29, #128
	stp	w8, w27, [sp]
	ldr	x0, [sp, #72]                   ; 8-byte Folded Reload
	mov	x2, x28
	ldr	w4, [sp, #68]                   ; 4-byte Folded Reload
	mov	x5, x25
	mov	w6, #129
	mov	x7, x24
	b	LBB0_32
LBB0_24:
	ldur	x8, [x29, #-104]
	ldur	w9, [x29, #-92]
	str	w9, [sp, #24]
	sub	x9, x29, #112
	stp	x8, x9, [sp, #8]
	add	x1, sp, #112
	sub	x3, x29, #128
	stp	w26, w27, [sp]
	ldr	x0, [sp, #72]                   ; 8-byte Folded Reload
	mov	x2, x28
	mov	x5, x25
	mov	w6, #128
	bl	_nlm_clearlock
	mov	x21, x0
	cbnz	w0, LBB0_30
; %bb.25:
	cbz	x23, LBB0_30
; %bb.26:
Lloh61:
	adrp	x0, _nlm_svid_lock@GOTPAGE
Lloh62:
	ldr	x0, [x0, _nlm_svid_lock@GOTPAGEOFF]
	bl	_mtx_lock
	ldr	x8, [x23, #8]
Lloh63:
	adrp	x22, _M_TEMP@GOTPAGE
Lloh64:
	ldr	x22, [x22, _M_TEMP@GOTPAGEOFF]
	ldr	x24, [sp, #56]                  ; 8-byte Folded Reload
	cbz	x8, LBB0_38
; %bb.27:
Lloh65:
	adrp	x8, _FALSE@GOTPAGE
Lloh66:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	mov	w9, #-1
	b	LBB0_37
LBB0_28:
	ldur	x8, [x29, #-104]
	ldur	w9, [x29, #-92]
	str	w9, [sp, #24]
	sub	x9, x29, #112
	stp	x8, x9, [sp, #8]
	add	x1, sp, #112
	sub	x3, x29, #128
	stp	w26, w27, [sp]
	ldr	x0, [sp, #72]                   ; 8-byte Folded Reload
	mov	x2, x28
	mov	x5, x25
	mov	w6, #130
	bl	_nlm_getlock
	mov	x21, x0
	b	LBB0_30
LBB0_29:
Lloh67:
	adrp	x8, _EINVAL@GOTPAGE
Lloh68:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh69:
	ldr	w21, [x8]
LBB0_30:
Lloh70:
	adrp	x22, _M_TEMP@GOTPAGE
Lloh71:
	ldr	x22, [x22, _M_TEMP@GOTPAGEOFF]
	ldr	x24, [sp, #56]                  ; 8-byte Folded Reload
	cbnz	x23, LBB0_39
	b	LBB0_40
LBB0_31:
	ldur	x8, [x29, #-104]
	ldur	w9, [x29, #-92]
	ldr	x10, [sp, #48]                  ; 8-byte Folded Reload
	str	x10, [sp, #32]
	str	w9, [sp, #24]
	sub	x9, x29, #112
	stp	x8, x9, [sp, #8]
	add	x1, sp, #112
	sub	x3, x29, #128
	stp	w26, w27, [sp]
	ldr	x0, [sp, #72]                   ; 8-byte Folded Reload
	mov	x2, x28
	mov	x5, x25
	mov	w6, #129
LBB0_32:
	bl	_nlm_setlock
	mov	x21, x0
LBB0_33:
	cbnz	w21, LBB0_30
; %bb.34:
	cbz	x23, LBB0_30
; %bb.35:
Lloh72:
	adrp	x0, _nlm_svid_lock@GOTPAGE
Lloh73:
	ldr	x0, [x0, _nlm_svid_lock@GOTPAGEOFF]
	bl	_mtx_lock
	ldr	x8, [x23, #8]
Lloh74:
	adrp	x22, _M_TEMP@GOTPAGE
Lloh75:
	ldr	x22, [x22, _M_TEMP@GOTPAGEOFF]
	ldr	x24, [sp, #56]                  ; 8-byte Folded Reload
	cbnz	x8, LBB0_38
; %bb.36:
Lloh76:
	adrp	x8, _TRUE@GOTPAGE
Lloh77:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	mov	w9, #1
LBB0_37:
	ldr	w10, [x23, #16]
	add	w9, w10, w9
	str	w9, [x23, #16]
	ldr	x8, [x8]
	str	x8, [x23, #8]
LBB0_38:
Lloh78:
	adrp	x0, _nlm_svid_lock@GOTPAGE
Lloh79:
	ldr	x0, [x0, _nlm_svid_lock@GOTPAGEOFF]
	bl	_mtx_unlock
	mov	w21, #0
LBB0_39:
	mov	x0, x23
	bl	_nlm_free_svid
LBB0_40:
	ldr	x0, [x19]
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	str	x8, [x19]
	bl	_crfree
	mov	x0, x24
	bl	_AUTH_DESTROY
	ldr	x0, [sp, #72]                   ; 8-byte Folded Reload
	bl	_nlm_host_release
	ldr	w1, [x22]
	mov	x0, x20
	bl	_free
	mov	x0, x21
	ldp	x29, x30, [sp, #272]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #256]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #240]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #224]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #208]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #192]            ; 16-byte Folded Reload
	add	sp, sp, #288
	ret
LBB0_41:
	mov	x23, #0
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh78, Lloh79
	.cfi_endproc
                                        ; -- End function
	.comm	_curthread,8,3                  ; @curthread
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nlm_advlock_1"

	.comm	_MNAMELEN,4,2                   ; @MNAMELEN
	.comm	_M_TEMP,4,2                     ; @M_TEMP
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_V_SAVE,4,2                     ; @V_SAVE
	.comm	_NLM_VERS4,4,2                  ; @NLM_VERS4
	.comm	_NLM_VERS,4,2                   ; @NLM_VERS
	.comm	_NFSMNT_SOFT,4,2                ; @NFSMNT_SOFT
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_nlm_feedback,4,2               ; @nlm_feedback
	.comm	_F_FLOCK,4,2                    ; @F_FLOCK
l_.str.1:                               ; @.str.1
	.asciz	"F_FLOCK lock requests must be whole-file locks"

	.comm	_F_REMOTE,4,2                   ; @F_REMOTE
	.comm	_F_WAIT,4,2                     ; @F_WAIT
	.comm	_F_WRLCK,4,2                    ; @F_WRLCK
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_nlm_svid_lock,4,2              ; @nlm_svid_lock
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_nlm_advlock_internal
.subsections_via_symbols
