	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nlm_clearlock
_nlm_clearlock:                         ## @nlm_clearlock
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movl	%r8d, -84(%rbp)                 ## 4-byte Spill
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movl	%edx, %r15d
	movq	%rsi, -120(%rbp)                ## 8-byte Spill
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	movl	40(%rbp), %ebx
	movq	56(%rbp), %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-152(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	leaq	-184(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	subq	$8, %rsp
	leaq	-80(%rbp), %rax
	movq	24(%rbp), %rdi
	movl	32(%rbp), %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movq	48(%rbp), %r8
	movq	%r13, %r9
	pushq	%rax
	pushq	%r14
	movl	64(%rbp), %eax
	pushq	%rax
	callq	_nlm_init_lock
	addq	$32, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%ebx, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%r15d, -88(%rbp)                ## 4-byte Spill
	movq	-104(%rbp), %r14                ## 8-byte Reload
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%r14, %rdi
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_nlm_host_get_rpc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%rax, %rbx
	movq	%r12, %r13
	movq	_nlm_xid@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	callq	_atomic_fetchadd_int
	movl	%eax, -92(%rbp)
	movl	$4, -136(%rbp)
	leaq	-92(%rbp), %rax
	movq	%rax, -128(%rbp)
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %r9d
	movl	-88(%rbp), %edi                 ## 4-byte Reload
	leaq	-152(%rbp), %rsi
	leaq	-184(%rbp), %r15
	movq	%r15, %rdx
	movq	%rbx, %rcx
	movq	-120(%rbp), %r8                 ## 8-byte Reload
	callq	_nlm_unlock_rpc
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_CLNT_RELEASE
	movq	_RPC_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	_xdr_nlm4_res@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_xdr_free
	movq	-176(%rbp), %rax
	movq	_nlm4_denied_grace_period@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%r13, %r12
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	_PCATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_hz@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,4), %ecx
	leaq	-152(%rbp), %rdi
	leaq	L_.str(%rip), %rdx
	callq	_tsleep
	testl	%eax, %eax
	movq	%r14, %rdi
	je	LBB0_3
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=2
	movl	%eax, %ebx
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_3
	jmp	LBB0_13
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	subl	$1, -84(%rbp)                   ## 4-byte Folded Spill
	movq	%r13, %r12
	jae	LBB0_2
## %bb.7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_13
LBB0_4:
	movq	_ENOLCK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_13
LBB0_11:
	movq	_F_REMOTE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	movl	32(%rbp), %ecx
	testl	%ecx, (%rax)
	movq	24(%rbp), %r15
	jne	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	movl	-152(%rbp), %r14d
	callq	_nlm_host_get_sysid
	movq	%r12, %rdi
	movl	16(%rbp), %esi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	movl	64(%rbp), %r9d
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_nlm_record_lock
	jmp	LBB0_13
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.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_denied_grace_period,8,3   ## @nlm4_denied_grace_period
	.comm	_PCATCH,4,2                     ## @PCATCH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nlmgrace"

	.comm	_hz,4,2                         ## @hz
	.comm	_EWOULDBLOCK,4,2                ## @EWOULDBLOCK
	.comm	_F_REMOTE,4,2                   ## @F_REMOTE
	.no_dead_strip	_nlm_clearlock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nlm_clearlock
_nlm_clearlock:                         ; @nlm_clearlock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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	x22, x7
	str	w6, [sp, #20]                   ; 4-byte Folded Spill
	str	x5, [sp, #24]                   ; 8-byte Folded Spill
	str	w4, [sp, #32]                   ; 4-byte Folded Spill
	mov	x24, x3
	mov	x25, x2
	mov	x27, x1
	mov	x23, x0
	ldr	w26, [x29, #40]
	ldp	w21, w20, [x29, #16]
	ldp	x28, x19, [x29, #24]
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	add	x0, sp, #72
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	add	x8, sp, #104
	str	x8, [sp]
	add	x7, sp, #72
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x25
	mov	x4, x28
	mov	x5, x19
	mov	x6, x26
	bl	_nlm_init_lock
	cbz	w0, LBB0_3
LBB0_1:
	ldur	x8, [x29, #-88]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.2:
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_3:
	str	w26, [sp, #16]                  ; 4-byte Folded Spill
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
Lloh6:
	adrp	x26, _RPC_SUCCESS@GOTPAGE
Lloh7:
	ldr	x26, [x26, _RPC_SUCCESS@GOTPAGEOFF]
Lloh8:
	adrp	x20, l_.str@PAGE
Lloh9:
	add	x20, x20, l_.str@PAGEOFF
Lloh10:
	adrp	x22, _EWOULDBLOCK@GOTPAGE
Lloh11:
	ldr	x22, [x22, _EWOULDBLOCK@GOTPAGEOFF]
	mov	x28, x21
	ldr	w9, [sp, #32]                   ; 4-byte Folded Reload
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	str	w9, [sp, #32]                   ; 4-byte Folded Spill
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
Lloh12:
	adrp	x8, _FALSE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_nlm_host_get_rpc
	cbz	x0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x21, x0
Lloh15:
	adrp	x0, _nlm_xid@GOTPAGE
Lloh16:
	ldr	x0, [x0, _nlm_xid@GOTPAGEOFF]
	mov	w1, #1
	bl	_atomic_fetchadd_int
	str	w0, [sp, #36]
	mov	w8, #4
	str	w8, [sp, #88]
	add	x8, sp, #36
	str	x8, [sp, #96]
	ldr	w5, [x24]
	add	x1, sp, #72
	add	x2, sp, #40
	mov	x0, x25
	mov	x3, x21
	mov	x4, x27
	bl	_nlm_unlock_rpc
	mov	x19, x0
	mov	x0, x21
	bl	_CLNT_RELEASE
	ldr	w8, [x26]
	cmp	w19, w8
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
Lloh17:
	adrp	x8, _xdr_nlm4_res@GOTPAGE
Lloh18:
	ldr	x8, [x8, _xdr_nlm4_res@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	add	x1, sp, #40
	bl	_xdr_free
	ldr	x8, [sp, #48]
Lloh20:
	adrp	x9, _nlm4_denied_grace_period@GOTPAGE
Lloh21:
	ldr	x9, [x9, _nlm4_denied_grace_period@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=2
Lloh23:
	adrp	x8, _PCATCH@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PCATCH@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _hz@GOTPAGE
Lloh27:
	ldr	x8, [x8, _hz@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	add	w3, w8, w8, lsl #2
	add	x0, sp, #72
	mov	x2, x20
	bl	_tsleep
	ldr	w8, [x22]
	cmp	w0, #0
	ccmp	w0, w8, #4, ne
	b.eq	LBB0_5
	b	LBB0_1
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #32]                   ; 4-byte Folded Reload
	sub	w9, w8, #1
	cbnz	w8, LBB0_4
; %bb.10:
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	b	LBB0_1
LBB0_11:
Lloh32:
	adrp	x8, _ENOLCK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOLCK@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	b	LBB0_1
LBB0_12:
Lloh35:
	adrp	x8, _F_REMOTE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _F_REMOTE@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	tst	w8, w28
	ldr	x20, [sp, #24]                  ; 8-byte Folded Reload
	ldr	w21, [sp, #16]                  ; 4-byte Folded Reload
	b.ne	LBB0_14
; %bb.13:
	ldr	w19, [sp, #72]
	mov	x0, x23
	bl	_nlm_host_get_sysid
	mov	x4, x0
	mov	x0, x20
	ldr	w1, [sp, #20]                   ; 4-byte Folded Reload
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	mov	x3, x19
	mov	x5, x21
	bl	_nlm_record_lock
LBB0_14:
	mov	w0, #0
	b	LBB0_1
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.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_denied_grace_period,8,3   ; @nlm4_denied_grace_period
	.comm	_PCATCH,4,2                     ; @PCATCH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nlmgrace"

	.comm	_hz,4,2                         ; @hz
	.comm	_EWOULDBLOCK,4,2                ; @EWOULDBLOCK
	.comm	_F_REMOTE,4,2                   ; @F_REMOTE
	.no_dead_strip	_nlm_clearlock
.subsections_via_symbols
