	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nlm_do_unlock                  ## -- Begin function nlm_do_unlock
	.p2align	4, 0x90
_nlm_do_unlock:                         ## @nlm_do_unlock
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movl	16(%r12), %ebx
	movq	%r13, %rdi
	callq	_svc_getrpccaller
	movl	(%r13), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_nlm_find_host_by_name
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	callq	_NLM_DEBUG
	movq	%rbx, %rdi
	callq	_nlm_check_expired_locks
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	12(%r12), %rsi
	leaq	-48(%rbp), %rdi
	callq	_nlm_convert_to_fhandle_t
	leaq	8(%r15), %rdi
	leaq	20(%r12), %rsi
	movq	_M_RPC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_nlm_copy_netobj
	movq	_time_uptime@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_nlm_grace_threshold@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_4
## %bb.3:
	movq	_nlm4_denied_grace_period@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_nlm4_denied_nolocks@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_4:
	leaq	-48(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%r8d, %r8d
	callq	_nlm_get_vfs_state
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %edi
	callq	_nlm_convert_error
	jmp	LBB0_8
LBB0_6:
	movl	8(%r12), %eax
	movl	%eax, -68(%rbp)
	movl	4(%r12), %eax
	movl	%eax, -72(%rbp)
	movl	(%r12), %eax
	movl	%eax, -76(%rbp)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -88(%rbp)
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	_F_UNLCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, -84(%rbp)
	movl	-60(%rbp), %edi
	movq	_F_REMOTE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-88(%rbp), %rcx
	xorl	%esi, %esi
	callq	_VOP_ADVLOCK
	movq	_nlm4_granted@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
LBB0_8:
	movl	%eax, (%r15)
	leaq	-64(%rbp), %rdi
	callq	_nlm_release_vfs_state
	testq	%r14, %r14
	je	LBB0_10
## %bb.9:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nlm_host_get_rpc
	movq	%rax, (%r14)
LBB0_10:
	movq	%rbx, %rdi
	callq	_nlm_host_release
	xorl	%eax, %eax
LBB0_11:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nlm4_denied_nolocks,4,2        ## @nlm4_denied_nolocks
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nlm_do_unlock(): caller_name = %s (sysid = %d)\n"

	.comm	_M_RPC,4,2                      ## @M_RPC
	.comm	_time_uptime,8,3                ## @time_uptime
	.comm	_nlm_grace_threshold,8,3        ## @nlm_grace_threshold
	.comm	_nlm4_denied_grace_period,4,2   ## @nlm4_denied_grace_period
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_F_UNLCK,4,2                    ## @F_UNLCK
	.comm	_F_REMOTE,4,2                   ## @F_REMOTE
	.comm	_nlm4_granted,4,2               ## @nlm4_granted
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nlm_do_unlock                  ; -- Begin function nlm_do_unlock
	.p2align	2
_nlm_do_unlock:                         ; @nlm_do_unlock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x3
	mov	x23, x2
	mov	x20, x1
	mov	x22, x0
	mov	x0, x1
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	w21, [x22, #16]
	mov	x0, x23
	bl	_svc_getrpccaller
	mov	x1, x0
	ldr	w2, [x23]
	mov	x0, x21
	bl	_nlm_find_host_by_name
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	ldp	w3, w2, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	bl	_NLM_DEBUG
	mov	x0, x21
	bl	_nlm_check_expired_locks
	ldr	w24, [x21]
	add	x1, x22, #12
	add	x0, sp, #44
	bl	_nlm_convert_to_fhandle_t
	add	x0, x20, #8
	add	x1, x22, #20
Lloh2:
	adrp	x8, _M_RPC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _M_RPC@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_nlm_copy_netobj
Lloh5:
	adrp	x8, _time_uptime@GOTPAGE
Lloh6:
	ldr	x8, [x8, _time_uptime@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _nlm_grace_threshold@GOTPAGE
Lloh9:
	ldr	x9, [x9, _nlm_grace_threshold@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_4
; %bb.2:
Lloh11:
	adrp	x8, _nlm4_denied_grace_period@GOTPAGE
Lloh12:
	ldr	x8, [x8, _nlm4_denied_grace_period@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
Lloh13:
	adrp	x8, _nlm4_denied_nolocks@GOTPAGE
Lloh14:
	ldr	x8, [x8, _nlm4_denied_nolocks@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_4:
	add	x2, sp, #44
	add	x3, sp, #32
	mov	x0, x21
	mov	x1, x23
	mov	w4, #0
	bl	_nlm_get_vfs_state
	cbz	w0, LBB0_6
; %bb.5:
	bl	_nlm_convert_error
	b	LBB0_8
LBB0_6:
	ldr	w8, [x22, #8]
	str	w8, [sp, #28]
	ldr	d0, [x22]
Lloh19:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
	stur	d0, [sp, #20]
Lloh21:
	ldr	w8, [x8]
	str	w8, [sp, #16]
Lloh22:
	adrp	x8, _F_UNLCK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _F_UNLCK@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	stp	w24, w2, [sp, #8]
	ldr	w0, [sp, #36]
Lloh25:
	adrp	x8, _F_REMOTE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _F_REMOTE@GOTPAGEOFF]
Lloh27:
	ldr	w4, [x8]
	add	x3, sp, #8
	mov	x1, #0
	bl	_VOP_ADVLOCK
Lloh28:
	adrp	x8, _nlm4_granted@GOTPAGE
Lloh29:
	ldr	x8, [x8, _nlm4_granted@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
LBB0_8:
	str	w0, [x20]
	add	x0, sp, #32
	bl	_nlm_release_vfs_state
	cbz	x19, LBB0_10
; %bb.9:
Lloh30:
	adrp	x8, _TRUE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_nlm_host_get_rpc
	str	x0, [x19]
LBB0_10:
	mov	x0, x21
	bl	_nlm_host_release
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_nlm4_denied_nolocks,4,2        ; @nlm4_denied_nolocks
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nlm_do_unlock(): caller_name = %s (sysid = %d)\n"

	.comm	_M_RPC,4,2                      ; @M_RPC
	.comm	_time_uptime,8,3                ; @time_uptime
	.comm	_nlm_grace_threshold,8,3        ; @nlm_grace_threshold
	.comm	_nlm4_denied_grace_period,4,2   ; @nlm4_denied_grace_period
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_F_UNLCK,4,2                    ; @F_UNLCK
	.comm	_F_REMOTE,4,2                   ; @F_REMOTE
	.comm	_nlm4_granted,4,2               ; @nlm4_granted
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
