	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_unlock_partialfilelock         ## -- Begin function unlock_partialfilelock
	.p2align	4, 0x90
_unlock_partialfilelock:                ## @unlock_partialfilelock
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_debuglog
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	leaq	L_.str.1(%rip), %r14
	leaq	-48(%rbp), %rbx
	xorl	%esi, %esi
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_1 Depth=1
	callq	_deallocate_file_lock
	movq	$0, -48(%rbp)
LBB0_26:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%esi, %esi
	cmpl	$128, %r15d
	jne	LBB0_28
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_debuglog
	movq	%r13, %rdi
	movq	%rbx, %rsi
	leaq	-64(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	callq	_unlock_nfslock
	movl	%eax, %r15d
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_debuglog
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	callq	_lock_hwlock
	cmpl	$130, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_HW_GRANTED_DUPLICATE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_debuglog
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rax
	movl	(%rax), %edi
	callq	_monitor_lock_host
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	callq	_lock_hwlock
	cmpl	$130, %eax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_HW_GRANTED_DUPLICATE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_debuglog
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rax
	movl	(%rax), %edi
	callq	_monitor_lock_host
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$129, %r15d
	je	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$128, %r15d
	jne	LBB0_21
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %r12
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_debuglog
	movq	%r13, %rdi
	callq	_unlock_hwlock
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_debuglog
	cmpl	$131, %ebx
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$130, %ebx
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_debuglog
	movq	-48(%rbp), %rax
	movl	(%rax), %edi
	callq	_unmonitor_lock_host
	movl	$128, %r15d
	movq	_PFL_GRANTED@GOTPCREL(%rip), %rax
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_PFL_GRANTED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_debuglog
	movl	$129, %r15d
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_PFL_NFSRESERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	L_.str.11(%rip), %rdi
	xorl	%eax, %eax
	callq	_debuglog
	movq	%r13, %rdi
	callq	_dump_filelock
	jmp	LBB0_22
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_18
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.8(%rip), %rdi
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_debuglog
	movq	_NFS_RESERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_PFL_HWRESERR@GOTPCREL(%rip), %rax
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rbx
	movl	(%rax), %r12d
	leaq	L_.str.9(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_debuglog
	xorl	%eax, %eax
	callq	_retry_blockingfilelocklist
LBB0_22:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r13, %rdi
	jne	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.12(%rip), %rdi
	xorl	%eax, %eax
	callq	_debuglog
	movq	-48(%rbp), %rsi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	cmpl	$128, %r15d
	je	LBB0_1
LBB0_28:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_30
## %bb.29:
	leaq	L_.str.13(%rip), %rdi
	xorl	%eax, %eax
	callq	_debuglog
	movq	%rbx, %rdi
	callq	_deallocate_file_lock
LBB0_30:
	leaq	L_.str.14(%rip), %rdi
	xorl	%eax, %eax
	callq	_debuglog
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Entering unlock_partialfilelock\n"

	.comm	_PFL_DENIED,4,2                 ## @PFL_DENIED
L_.str.1:                               ## @.str.1
	.asciz	"Value of releasedfl: %p\n"

	.comm	_HW_GRANTED_DUPLICATE,4,2       ## @HW_GRANTED_DUPLICATE
L_.str.2:                               ## @.str.2
	.asciz	"HW duplicate lock failure for left split\n"

L_.str.3:                               ## @.str.3
	.asciz	"HW duplicate lock failure for right split\n"

L_.str.4:                               ## @.str.4
	.asciz	"NFS unlock granted.  Attempting hardware unlock\n"

L_.str.5:                               ## @.str.5
	.asciz	"HW unlock returned with code %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"HW unlock granted\n"

	.comm	_PFL_GRANTED,4,2                ## @PFL_GRANTED
L_.str.7:                               ## @.str.7
	.asciz	"HW unlock denied no lock\n"

	.comm	_PFL_HWRESERR,4,2               ## @PFL_HWRESERR
	.comm	_NFS_RESERR,4,2                 ## @NFS_RESERR
L_.str.8:                               ## @.str.8
	.asciz	"HW unlock failed\n"

L_.str.9:                               ## @.str.9
	.asciz	"Exiting with status retval: %d\n"

L_.str.10:                              ## @.str.10
	.asciz	"All locks cleaned out\n"

	.comm	_PFL_NFSRESERR,4,2              ## @PFL_NFSRESERR
L_.str.11:                              ## @.str.11
	.asciz	"NFS unlock failure\n"

L_.str.12:                              ## @.str.12
	.asciz	"Attempt to unlock self\n"

L_.str.13:                              ## @.str.13
	.asciz	"WARNING!  Destroying incoming lock pointer\n"

L_.str.14:                              ## @.str.14
	.asciz	"Exiting unlock_partialfilelock\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_unlock_partialfilelock         ; -- Begin function unlock_partialfilelock
	.p2align	2
_unlock_partialfilelock:                ; @unlock_partialfilelock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debuglog
	mov	x8, #0
	mov	x20, #0
	str	xzr, [sp, #24]
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh4:
	adrp	x22, _PFL_GRANTED@GOTPAGE
Lloh5:
	ldr	x22, [x22, _PFL_GRANTED@GOTPAGEOFF]
	stp	xzr, xzr, [sp, #8]
Lloh6:
	adrp	x27, l_.str.9@PAGE
Lloh7:
	add	x27, x27, l_.str.9@PAGEOFF
Lloh8:
	adrp	x24, _PFL_NFSRESERR@GOTPAGE
Lloh9:
	ldr	x24, [x24, _PFL_NFSRESERR@GOTPAGEOFF]
Lloh10:
	adrp	x28, l_.str.11@PAGE
Lloh11:
	add	x28, x28, l_.str.11@PAGEOFF
Lloh12:
	adrp	x25, _HW_GRANTED_DUPLICATE@GOTPAGE
Lloh13:
	ldr	x25, [x25, _HW_GRANTED_DUPLICATE@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, #0
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w26, #128
	b.ne	LBB0_25
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	x8, [sp]
	mov	x0, x21
	bl	_debuglog
	add	x1, sp, #8
	add	x2, sp, #24
	add	x3, sp, #16
	mov	x0, x19
	bl	_unlock_nfslock
	mov	x26, x0
	ldr	x8, [sp, #8]
	str	x8, [sp]
	mov	x0, x21
	bl	_debuglog
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_lock_hwlock
	ldr	w8, [x25]
	cmp	w0, #130
	ccmp	w0, w8, #4, ne
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_debuglog
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #24]
	ldr	w0, [x8]
	bl	_monitor_lock_host
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_lock_hwlock
	ldr	w8, [x25]
	cmp	w0, #130
	ccmp	w0, w8, #4, ne
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_debuglog
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #16]
	ldr	w0, [x8]
	bl	_monitor_lock_host
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w26, #129
	b.eq	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w26, #128
	b.ne	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_debuglog
	mov	x0, x19
	bl	_unlock_hwlock
	mov	x23, x0
	str	x23, [sp]
Lloh20:
	adrp	x0, l_.str.5@PAGE
Lloh21:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_debuglog
	cmp	w23, #131
	b.eq	LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w23, #130
	b.ne	LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh22:
	adrp	x0, l_.str.6@PAGE
Lloh23:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_debuglog
	ldr	x8, [sp, #8]
	ldr	w0, [x8]
	bl	_unmonitor_lock_host
	mov	w26, #128
	mov	x8, x22
	b	LBB0_21
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w23, [x22]
Lloh24:
	adrp	x0, l_.str.10@PAGE
Lloh25:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_debuglog
	ldr	x0, [sp, #8]
	cbnz	x0, LBB0_22
	b	LBB0_1
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w23, [x24]
	mov	x0, x28
	bl	_debuglog
	mov	x0, x19
	bl	_dump_filelock
	ldr	x0, [sp, #8]
	cbnz	x0, LBB0_22
	b	LBB0_1
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh26:
	adrp	x0, l_.str.7@PAGE
Lloh27:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh28:
	adrp	x0, l_.str.8@PAGE
Lloh29:
	add	x0, x0, l_.str.8@PAGEOFF
LBB0_20:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_debuglog
Lloh30:
	adrp	x8, _NFS_RESERR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _NFS_RESERR@GOTPAGEOFF]
Lloh32:
	ldr	w26, [x8]
Lloh33:
	adrp	x8, _PFL_HWRESERR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PFL_HWRESERR@GOTPAGEOFF]
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w23, [x8]
	str	x23, [sp]
	mov	x0, x27
	bl	_debuglog
	bl	_retry_blockingfilelocklist
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_1
LBB0_22:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x0, x19
	b.eq	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_3 Depth=1
	bl	_deallocate_file_lock
	mov	x8, #0
	str	xzr, [sp, #8]
	b	LBB0_2
LBB0_24:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh35:
	adrp	x0, l_.str.12@PAGE
Lloh36:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_debuglog
	ldr	x8, [sp, #8]
	mov	x20, x8
	b	LBB0_2
LBB0_25:
	cbz	x20, LBB0_27
; %bb.26:
Lloh37:
	adrp	x0, l_.str.13@PAGE
Lloh38:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_debuglog
	mov	x0, x20
	bl	_deallocate_file_lock
LBB0_27:
Lloh39:
	adrp	x0, l_.str.14@PAGE
Lloh40:
	add	x0, x0, l_.str.14@PAGEOFF
	bl	_debuglog
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Entering unlock_partialfilelock\n"

	.comm	_PFL_DENIED,4,2                 ; @PFL_DENIED
l_.str.1:                               ; @.str.1
	.asciz	"Value of releasedfl: %p\n"

	.comm	_HW_GRANTED_DUPLICATE,4,2       ; @HW_GRANTED_DUPLICATE
l_.str.2:                               ; @.str.2
	.asciz	"HW duplicate lock failure for left split\n"

l_.str.3:                               ; @.str.3
	.asciz	"HW duplicate lock failure for right split\n"

l_.str.4:                               ; @.str.4
	.asciz	"NFS unlock granted.  Attempting hardware unlock\n"

l_.str.5:                               ; @.str.5
	.asciz	"HW unlock returned with code %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"HW unlock granted\n"

	.comm	_PFL_GRANTED,4,2                ; @PFL_GRANTED
l_.str.7:                               ; @.str.7
	.asciz	"HW unlock denied no lock\n"

	.comm	_PFL_HWRESERR,4,2               ; @PFL_HWRESERR
	.comm	_NFS_RESERR,4,2                 ; @NFS_RESERR
l_.str.8:                               ; @.str.8
	.asciz	"HW unlock failed\n"

l_.str.9:                               ; @.str.9
	.asciz	"Exiting with status retval: %d\n"

l_.str.10:                              ; @.str.10
	.asciz	"All locks cleaned out\n"

	.comm	_PFL_NFSRESERR,4,2              ; @PFL_NFSRESERR
l_.str.11:                              ; @.str.11
	.asciz	"NFS unlock failure\n"

l_.str.12:                              ; @.str.12
	.asciz	"Attempt to unlock self\n"

l_.str.13:                              ; @.str.13
	.asciz	"WARNING!  Destroying incoming lock pointer\n"

l_.str.14:                              ; @.str.14
	.asciz	"Exiting unlock_partialfilelock\n"

.subsections_via_symbols
