	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_unlock
_handle_unlock:                         ## @handle_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	(%rdi), %r15
	movq	8(%rdi), %rax
	movq	%rax, -72(%rbp)
	movq	16(%rdi), %rax
	movq	%rax, -64(%rbp)
	movq	_NO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	cmpq	$0, 24(%rdi)
	jle	LBB0_10
## %bb.1:
	leaq	-72(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movl	$4, %ecx
	callq	_safe_read
	testq	%rax, %rax
	je	LBB0_2
LBB0_10:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	4(%r15), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	leaq	-72(%rbp), %r14
	leaq	-64(%rbp), %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	leaq	-48(%rbp), %rdx
	movl	$4, %ecx
	callq	_safe_read
	testq	%rax, %rax
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_NFS4_UINT64_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, %rcx
	subq	-56(%rbp), %rcx
	cmpq	%rcx, -48(%rbp)
	jl	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, -48(%rbp)
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	leaq	-56(%rbp), %rsi
	callq	_open_unlock_delegate
	movl	%eax, %r13d
	movq	_ERROR_LOCKED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_EnterCriticalSection
	movq	%r15, %rdi
	leaq	-92(%rbp), %r13
	movq	%r13, %rsi
	callq	_lock_stateid_arg
	movl	8(%r15), %edi
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %rcx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %r8
	callq	_nfs41_unlock
	movl	%eax, %ebx
	movq	%r15, %rdi
	movq	%r13, %rsi
	leaq	-56(%rbp), %rdx
	callq	_open_unlock_remove
	movq	%r15, %rdi
	callq	_LeaveCriticalSection
	movq	_ERROR_BAD_NET_RESP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_nfs_to_windows_error
	movl	%eax, %r13d
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpq	24(%rax), %r12
	jge	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rsi
	leaq	-56(%rbp), %rdx
	movl	$4, %ecx
	callq	_safe_read
	testq	%rax, %rax
	je	LBB0_4
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_NO_ERROR,4,2                   ## @NO_ERROR
	.comm	_NFS4_UINT64_MAX,8,3            ## @NFS4_UINT64_MAX
	.comm	_ERROR_LOCKED,4,2               ## @ERROR_LOCKED
	.comm	_ERROR_BAD_NET_RESP,4,2         ## @ERROR_BAD_NET_RESP
	.no_dead_strip	_handle_unlock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_unlock
_handle_unlock:                         ; @handle_unlock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	ldp	x20, x10, [x0]
	ldp	x8, x9, [x0, #16]
	stp	x8, x10, [sp, #8]
Lloh0:
	adrp	x8, _NO_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NO_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	cmp	x9, #1
	b.lt	LBB0_2
; %bb.1:
	mov	x19, x0
	add	x0, sp, #16
	add	x1, sp, #8
	add	x2, sp, #32
	mov	w3, #4
	bl	_safe_read
	cbz	x0, LBB0_3
LBB0_2:
	mov	x0, x23
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_3:
	mov	x24, #0
	add	x8, sp, #32
	add	x21, x8, #8
	add	x22, x20, #4
Lloh3:
	adrp	x25, _NFS4_UINT64_MAX@GOTPAGE
Lloh4:
	ldr	x25, [x25, _NFS4_UINT64_MAX@GOTPAGEOFF]
Lloh5:
	adrp	x26, _ERROR_LOCKED@GOTPAGE
Lloh6:
	ldr	x26, [x26, _ERROR_LOCKED@GOTPAGEOFF]
Lloh7:
	adrp	x27, _ERROR_BAD_NET_RESP@GOTPAGE
Lloh8:
	ldr	x27, [x27, _ERROR_BAD_NET_RESP@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #16
	add	x1, sp, #8
	mov	x2, x21
	mov	w3, #4
	bl	_safe_read
	cbnz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	ldp	x10, x9, [sp, #32]
	sub	x10, x8, x10
	cmp	x9, x10
	b.lt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x8, [sp, #40]
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #32
	mov	x0, x20
	bl	_open_unlock_delegate
	mov	x23, x0
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_EnterCriticalSection
	add	x1, sp, #28
	mov	x0, x20
	bl	_lock_stateid_arg
	ldr	w0, [x20, #8]
	ldp	x2, x3, [sp, #32]
	add	x4, sp, #28
	mov	x1, x22
	bl	_nfs41_unlock
	mov	x23, x0
	add	x1, sp, #28
	add	x2, sp, #32
	mov	x0, x20
	bl	_open_unlock_remove
	mov	x0, x20
	bl	_LeaveCriticalSection
	ldr	w1, [x27]
	mov	x0, x23
	bl	_nfs_to_windows_error
	mov	x23, x0
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	ldr	x8, [x19, #24]
	cmp	x24, x8
	b.ge	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #16
	add	x1, sp, #8
	add	x2, sp, #32
	mov	w3, #4
	bl	_safe_read
	cbz	x0, LBB0_4
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NO_ERROR,4,2                   ; @NO_ERROR
	.comm	_NFS4_UINT64_MAX,8,3            ; @NFS4_UINT64_MAX
	.comm	_ERROR_LOCKED,4,2               ; @ERROR_LOCKED
	.comm	_ERROR_BAD_NET_RESP,4,2         ; @ERROR_BAD_NET_RESP
	.no_dead_strip	_handle_unlock
.subsections_via_symbols
