	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nlm_setlock
_nlm_setlock:                           ## @nlm_setlock
	.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	$232, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -128(%rbp)                 ## 8-byte Spill
	movl	%r8d, %r14d
	movq	%rcx, -144(%rbp)                ## 8-byte Spill
	movl	%edx, -92(%rbp)                 ## 4-byte Spill
	movq	%rsi, -136(%rbp)                ## 8-byte Spill
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	movq	24(%rbp), %r13
	movl	32(%rbp), %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-184(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	leaq	-224(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movl	%ebx, %esi
	movq	_F_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	jne	LBB0_2
## %bb.1:
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r15d
	movq	(%r13), %rax
	movq	_F_WRLCK@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	movq	%r13, %rdi
	sete	%r13b
	leaq	-176(%rbp), %rbx
	subq	$8, %rsp
	leaq	-80(%rbp), %rax
	movl	40(%rbp), %edx
	movl	-92(%rbp), %ecx                 ## 4-byte Reload
	movq	48(%rbp), %r8
	movq	56(%rbp), %r9
	pushq	%rax
	pushq	%rbx
	movl	64(%rbp), %eax
	pushq	%rax
	callq	_nlm_init_lock
	addq	$32, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_27
## %bb.4:
	movl	72(%rbp), %eax
	movb	%r13b, %r12b
	movl	%r15d, -184(%rbp)
	movl	%r12d, -116(%rbp)               ## 4-byte Spill
	movl	%r12d, -180(%rbp)
	movl	%eax, -120(%rbp)                ## 4-byte Spill
	movl	%eax, -148(%rbp)
	movq	_nlm_nsm_state@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -152(%rbp)
	movq	_hz@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_nlm_host_get_rpc
	testq	%rax, %rax
	je	LBB0_24
## %bb.5:
	movq	%rax, %r12
	leal	(%rbx,%rbx,4), %eax
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	testl	%r15d, %r15d
	setne	-81(%rbp)                       ## 1-byte Folded Spill
	xorl	%r13d, %r13d
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	negl	%r14d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	leaq	-176(%rbp), %rdi
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	callq	_nlm_register_wait_lock
	movq	%rax, %r13
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=2
	movq	_nlm_xid@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	callq	_atomic_fetchadd_int
	movq	%rax, -112(%rbp)
	movl	$8, -168(%rbp)
	leaq	-112(%rbp), %rax
	movq	%rax, -160(%rbp)
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %r9d
	movl	-92(%rbp), %edi                 ## 4-byte Reload
	leaq	-184(%rbp), %rsi
	leaq	-224(%rbp), %rdx
	movq	%r12, %rcx
	movq	-136(%rbp), %r8                 ## 8-byte Reload
	callq	_nlm_lock_rpc
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_CLNT_RELEASE
	movq	_RPC_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	%r13, %rdi
	callq	_nlm_deregister_wait_lock
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=2
	incl	%r14d
	cmpl	$1, %r14d
	je	LBB0_25
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_nlm_host_get_rpc
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_24
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_xdr_nlm4_res@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-224(%rbp), %rsi
	callq	_xdr_free
	testl	%r15d, %r15d
	movl	64(%rbp), %r12d
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	-212(%rbp), %edi
	movq	_nlm4_blocked@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	movl	-88(%rbp), %ecx                 ## 4-byte Reload
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_nlm_deregister_wait_lock
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	-212(%rbp), %edi
	movl	-88(%rbp), %ecx                 ## 4-byte Reload
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$130, %edi
	jne	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_PCATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-184(%rbp), %rdi
	leaq	L_.str(%rip), %rdx
	movl	%ecx, %r12d
	callq	_tsleep
	testl	%eax, %eax
	je	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %ebx
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_23
	jmp	LBB0_27
LBB0_21:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_nlm4_blocked@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	sete	%al
	andb	-81(%rbp), %al                  ## 1-byte Folded Reload
	cmpb	$1, %al
	jne	LBB0_29
## %bb.22:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	movl	%ecx, %esi
	movl	%ecx, %r12d
	callq	_nlm_wait_lock
	movl	%eax, %ebx
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_30
LBB0_23:                                ##   in Loop: Header=BB0_6 Depth=1
	negl	%r14d
	addl	%r12d, %r12d
	movq	_hz@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shll	$5, %ecx
	subl	%eax, %ecx
	subl	%eax, %ecx
	cmpl	%ecx, %r12d
	cmovgel	%ecx, %r12d
	movl	%r12d, -88(%rbp)                ## 4-byte Spill
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_nlm_host_get_rpc
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_6
LBB0_24:
	movq	_ENOLCK@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_25:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_26:
	movl	(%rax), %ebx
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_39
## %bb.28:
	movl	%ebx, %eax
	addq	$232, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	callq	_nlm_map_status
	movl	%eax, %ebx
	jmp	LBB0_37
LBB0_30:
	testl	%ebx, %ebx
	movl	64(%rbp), %r12d
	je	LBB0_36
## %bb.31:
	leaq	-264(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_nlm_xid@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	callq	_atomic_fetchadd_int
	movq	%rax, -112(%rbp)
	movl	$8, -248(%rbp)
	leaq	-112(%rbp), %rax
	movq	%rax, -240(%rbp)
	movl	%r15d, -264(%rbp)
	movl	-116(%rbp), %eax                ## 4-byte Reload
	movl	%eax, -260(%rbp)
	movl	-176(%rbp), %eax
	movl	%eax, -256(%rbp)
	leaq	-224(%rbp), %r13
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_nlm_host_get_rpc
	testq	%rax, %rax
	je	LBB0_24
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	%rax, %r12
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %r9d
	movl	-92(%rbp), %edi                 ## 4-byte Reload
	leaq	-264(%rbp), %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	movq	-136(%rbp), %r8                 ## 8-byte Reload
	callq	_nlm_cancel_rpc
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_CLNT_RELEASE
	movq	_RPC_SUCCESS@GOTPCREL(%rip), %r15
	cmpl	(%r15), %r14d
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	_hz@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pause
	cmpl	(%r15), %r14d
	jne	LBB0_32
LBB0_35:
	movq	_xdr_nlm4_res@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-224(%rbp), %rsi
	callq	_xdr_free
	xorl	%eax, %eax
	cmpl	$128, -212(%rbp)
	cmovel	%eax, %ebx
	movl	64(%rbp), %r12d
	jmp	LBB0_37
LBB0_36:
	xorl	%ebx, %ebx
LBB0_37:
	orl	%ebx, -120(%rbp)                ## 4-byte Folded Spill
	movq	24(%rbp), %r13
	jne	LBB0_27
## %bb.38:
	movl	-176(%rbp), %r14d
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	callq	_nlm_host_get_sysid
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movl	16(%rbp), %esi
	movq	%r13, %rdx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	movl	%r12d, %r9d
	callq	_nlm_record_lock
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_nlm_host_monitor
	jmp	LBB0_27
LBB0_39:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_F_WAIT,4,2                     ## @F_WAIT
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_F_WRLCK,8,3                    ## @F_WRLCK
	.comm	_nlm_nsm_state,4,2              ## @nlm_nsm_state
	.comm	_hz,4,2                         ## @hz
	.comm	_ENOLCK,4,2                     ## @ENOLCK
	.comm	_nlm_xid,4,2                    ## @nlm_xid
	.comm	_RPC_SUCCESS,4,2                ## @RPC_SUCCESS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_xdr_nlm4_res,8,3               ## @xdr_nlm4_res
	.comm	_nlm4_blocked,4,2               ## @nlm4_blocked
	.comm	_PCATCH,4,2                     ## @PCATCH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nlmgrace"

	.comm	_EWOULDBLOCK,4,2                ## @EWOULDBLOCK
L_.str.1:                               ## @.str.1
	.asciz	"nlmcancel"

	.no_dead_strip	_nlm_setlock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nlm_setlock
_nlm_setlock:                           ; @nlm_setlock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #368
	.cfi_def_cfa_offset 368
	stp	x28, x27, [sp, #272]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #288]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #304]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #320]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #336]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #352]            ; 16-byte Folded Spill
	add	x29, sp, #352
	.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	x19, x7
	str	w6, [sp, #44]                   ; 4-byte Folded Spill
	stp	x5, x1, [sp, #80]               ; 16-byte Folded Spill
	str	w4, [sp, #68]                   ; 4-byte Folded Spill
	stp	x0, x3, [sp, #48]               ; 16-byte Folded Spill
	mov	x25, x2
	ldr	w26, [x29, #40]
	ldp	x20, x21, [x29, #24]
	ldp	w22, w28, [x29, #16]
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	sub	x0, x29, #168
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	add	x0, sp, #144
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh3:
	adrp	x8, _F_WAIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _F_WAIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _TRUE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
Lloh8:
	adrp	x24, _FALSE@GOTPAGE
Lloh9:
	ldr	x24, [x24, _FALSE@GOTPAGEOFF]
	tst	w8, w22
	csel	x8, x24, x9, eq
	ldr	w23, [x8]
	ldr	x8, [x19]
Lloh10:
	adrp	x9, _F_WRLCK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _F_WRLCK@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w27, eq
	sub	x8, x29, #168
	add	x9, x8, #8
	sub	x8, x29, #128
	str	x8, [sp]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x28
	mov	x3, x25
	mov	x4, x20
	mov	x5, x21
	mov	x21, x9
	mov	x6, x26
	mov	x7, x9
	bl	_nlm_init_lock
	mov	x20, x0
	cbnz	w0, LBB0_23
; %bb.1:
	str	x21, [sp, #72]                  ; 8-byte Folded Spill
	str	w26, [sp, #36]                  ; 4-byte Folded Spill
	str	x19, [sp, #24]                  ; 8-byte Folded Spill
	ldr	w9, [x29, #44]
	stp	w23, w27, [x29, #-168]
	str	w27, [sp, #16]                  ; 4-byte Folded Spill
Lloh13:
	adrp	x8, _nlm_nsm_state@GOTPAGE
Lloh14:
	ldr	x8, [x8, _nlm_nsm_state@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w9, [sp, #20]                   ; 4-byte Folded Spill
	stp	w8, w9, [x29, #-136]
Lloh16:
	adrp	x8, _hz@GOTPAGE
Lloh17:
	ldr	x8, [x8, _hz@GOTPAGEOFF]
Lloh18:
	ldr	w21, [x8]
	mov	x19, x24
	ldr	w1, [x24]
	ldr	x22, [sp, #48]                  ; 8-byte Folded Reload
	mov	x0, x22
	bl	_nlm_host_get_rpc
	ldr	x26, [sp, #56]                  ; 8-byte Folded Reload
	ldr	w24, [sp, #68]                  ; 4-byte Folded Reload
	cbz	x0, LBB0_20
; %bb.2:
	mov	x20, x0
	mov	x28, #0
	add	w8, w21, w21, lsl #2
	str	w8, [sp, #40]                   ; 4-byte Folded Spill
	cmp	w23, #0
	cset	w8, ne
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
Lloh19:
	adrp	x27, _RPC_SUCCESS@GOTPAGE
Lloh20:
	ldr	x27, [x27, _RPC_SUCCESS@GOTPAGEOFF]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	neg	w21, w24
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x24, x22
	cbz	w23, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	ldp	x0, x1, [sp, #72]               ; 16-byte Folded Reload
	bl	_nlm_register_wait_lock
	mov	x28, x0
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=2
Lloh21:
	adrp	x0, _nlm_xid@GOTPAGE
Lloh22:
	ldr	x0, [x0, _nlm_xid@GOTPAGEOFF]
	mov	w1, #1
	bl	_atomic_fetchadd_int
	str	x0, [sp, #136]
	mov	w8, #8
	stur	w8, [x29, #-152]
	add	x8, sp, #136
	stur	x8, [x29, #-144]
	ldr	w5, [x26]
	sub	x1, x29, #168
	add	x2, sp, #144
	mov	x0, x25
	mov	x3, x20
	ldr	x4, [sp, #88]                   ; 8-byte Folded Reload
	bl	_nlm_lock_rpc
	mov	x22, x0
	mov	x0, x20
	bl	_CLNT_RELEASE
	mov	x8, x27
	ldr	w8, [x27]
	cmp	w22, w8
	b.eq	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	x22, x24
	cbz	w23, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	x0, x28
	bl	_nlm_deregister_wait_lock
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=2
	add	w21, w21, #1
	cmp	w21, #1
	b.eq	LBB0_21
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=2
	ldr	w1, [x19]
	mov	x0, x22
	bl	_nlm_host_get_rpc
	mov	x20, x0
	cbnz	x0, LBB0_4
	b	LBB0_20
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh23:
	adrp	x8, _xdr_nlm4_res@GOTPAGE
Lloh24:
	ldr	x8, [x8, _xdr_nlm4_res@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	add	x1, sp, #144
	bl	_xdr_free
	mov	x22, x24
	mov	x24, x25
	ldr	w20, [sp, #40]                  ; 4-byte Folded Reload
	cbz	w23, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [sp, #156]
Lloh26:
	adrp	x8, _nlm4_blocked@GOTPAGE
Lloh27:
	ldr	x8, [x8, _nlm4_blocked@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x28
	bl	_nlm_deregister_wait_lock
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [sp, #156]
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #130
	b.ne	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh29:
	adrp	x8, _PCATCH@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PCATCH@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	sub	x0, x29, #168
Lloh32:
	adrp	x2, l_.str@PAGE
Lloh33:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x20
	bl	_tsleep
	mov	x9, x20
Lloh34:
	adrp	x8, _EWOULDBLOCK@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EWOULDBLOCK@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	cmp	w0, #0
	ccmp	w0, w8, #4, ne
	b.eq	LBB0_19
	b	LBB0_25
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh37:
	adrp	x8, _nlm4_blocked@GOTPAGE
Lloh38:
	ldr	x8, [x8, _nlm4_blocked@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w8, eq
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	and	w8, w9, w8
	cmp	w8, #1
	b.ne	LBB0_26
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x28
	mov	x1, x20
	bl	_nlm_wait_lock
	mov	x9, x20
Lloh40:
	adrp	x8, _EWOULDBLOCK@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EWOULDBLOCK@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_27
LBB0_19:                                ;   in Loop: Header=BB0_3 Depth=1
	neg	w24, w21
	lsl	w8, w9, #1
Lloh43:
	adrp	x9, _hz@GOTPAGE
Lloh44:
	ldr	x9, [x9, _hz@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	mov	w10, #30
	mul	w9, w9, w10
	cmp	w8, w9
	csel	w8, w8, w9, lt
	str	w8, [sp, #40]                   ; 4-byte Folded Spill
	ldr	w1, [x19]
	mov	x0, x22
	bl	_nlm_host_get_rpc
	mov	x20, x0
	cbnz	x0, LBB0_3
LBB0_20:
Lloh46:
	adrp	x8, _ENOLCK@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ENOLCK@GOTPAGEOFF]
	b	LBB0_22
LBB0_21:
Lloh48:
	adrp	x8, _EINVAL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_22:
	ldr	w20, [x8]
LBB0_23:
	ldur	x8, [x29, #-96]
Lloh50:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh51:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_35
; %bb.24:
	mov	x0, x20
	ldp	x29, x30, [sp, #352]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #336]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #320]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #304]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #288]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #368
	ret
LBB0_25:
	mov	x20, x0
	b	LBB0_23
LBB0_26:
	bl	_nlm_map_status
	mov	x20, x0
	b	LBB0_33
LBB0_27:
	mov	x20, x0
	cbz	w0, LBB0_33
; %bb.28:
	add	x0, sp, #96
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh53:
	adrp	x0, _nlm_xid@GOTPAGE
Lloh54:
	ldr	x0, [x0, _nlm_xid@GOTPAGEOFF]
	mov	w1, #1
	bl	_atomic_fetchadd_int
	str	x0, [sp, #136]
	mov	w8, #8
	add	x9, sp, #136
	str	x9, [sp, #120]
	ldr	w9, [sp, #16]                   ; 4-byte Folded Reload
	stp	w23, w9, [sp, #96]
	ldur	w9, [x29, #-160]
	str	w8, [sp, #112]
	str	w9, [sp, #104]
Lloh55:
	adrp	x21, l_.str.1@PAGE
Lloh56:
	add	x21, x21, l_.str.1@PAGEOFF
	ldr	x25, [sp, #88]                  ; 8-byte Folded Reload
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19]
	mov	x0, x22
	bl	_nlm_host_get_rpc
	cbz	x0, LBB0_20
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	mov	x28, x0
	ldr	w5, [x26]
	add	x1, sp, #96
	add	x2, sp, #144
	mov	x0, x24
	mov	x3, x28
	mov	x4, x25
	bl	_nlm_cancel_rpc
	mov	x23, x0
	mov	x0, x28
	bl	_CLNT_RELEASE
	ldr	w8, [x27]
	cmp	w23, w8
	b.eq	LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_29 Depth=1
	mov	x28, x27
Lloh57:
	adrp	x8, _hz@GOTPAGE
Lloh58:
	ldr	x8, [x8, _hz@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	add	w8, w8, w8, lsl #2
	lsl	w1, w8, #1
	mov	x0, x21
	bl	_pause
	ldr	w8, [x27]
	cmp	w23, w8
	b.ne	LBB0_29
LBB0_32:
Lloh60:
	adrp	x8, _xdr_nlm4_res@GOTPAGE
Lloh61:
	ldr	x8, [x8, _xdr_nlm4_res@GOTPAGEOFF]
Lloh62:
	ldr	w0, [x8]
	add	x1, sp, #144
	bl	_xdr_free
	ldr	w8, [sp, #156]
	cmp	w8, #128
	csel	w20, wzr, w20, eq
LBB0_33:
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	orr	w8, w20, w8
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
	ldr	w23, [sp, #44]                  ; 4-byte Folded Reload
	ldr	x24, [sp, #80]                  ; 8-byte Folded Reload
	ldr	w25, [sp, #36]                  ; 4-byte Folded Reload
	cbnz	w8, LBB0_23
; %bb.34:
	ldur	w21, [x29, #-160]
	mov	x0, x22
	bl	_nlm_host_get_sysid
	mov	x4, x0
	mov	x0, x24
	mov	x1, x23
	mov	x2, x19
	mov	x3, x21
	mov	x5, x25
	bl	_nlm_record_lock
	mov	x0, x22
	mov	w1, #0
	bl	_nlm_host_monitor
	b	LBB0_23
LBB0_35:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.cfi_endproc
                                        ; -- End function
	.comm	_F_WAIT,4,2                     ; @F_WAIT
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_F_WRLCK,8,3                    ; @F_WRLCK
	.comm	_nlm_nsm_state,4,2              ; @nlm_nsm_state
	.comm	_hz,4,2                         ; @hz
	.comm	_ENOLCK,4,2                     ; @ENOLCK
	.comm	_nlm_xid,4,2                    ; @nlm_xid
	.comm	_RPC_SUCCESS,4,2                ; @RPC_SUCCESS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_xdr_nlm4_res,8,3               ; @xdr_nlm4_res
	.comm	_nlm4_blocked,4,2               ; @nlm4_blocked
	.comm	_PCATCH,4,2                     ; @PCATCH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nlmgrace"

	.comm	_EWOULDBLOCK,4,2                ; @EWOULDBLOCK
l_.str.1:                               ; @.str.1
	.asciz	"nlmcancel"

	.no_dead_strip	_nlm_setlock
.subsections_via_symbols
