	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lock_partialfilelock           ## -- Begin function lock_partialfilelock
	.p2align	4, 0x90
_lock_partialfilelock:                  ## @lock_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_debuglog
	movq	_PFL_DENIED@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_lock_nfslock
	movl	%eax, %ebx
	leal	-129(%rbx), %eax
	cmpl	$2, %eax
	jb	LBB0_4
## %bb.1:
	cmpl	$128, %ebx
	je	LBB0_17
## %bb.2:
	cmpl	$131, %ebx
	jne	LBB0_18
## %bb.3:
	movq	_PFL_NFSDENIED@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_4:
	movq	%r14, %rdi
	callq	_lock_hwlock
                                        ## kill: def $eax killed $eax def $rax
	leal	-133(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_8
## %bb.5:
	cmpl	$132, %eax
	je	LBB0_12
## %bb.6:
	cmpl	$135, %eax
	jne	LBB0_13
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_debuglog
	movq	_PFL_HWDENIED@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_14
LBB0_17:
	movq	_PFL_NFSRESERR@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_18:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_debuglog
	movq	_PFL_NFSDENIED_NOLOCK@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %r15d
	jmp	LBB0_20
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_debuglog
	cmpl	$129, %ebx
	jne	LBB0_9
## %bb.10:
	movq	_PFL_GRANTED_DUPLICATE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_12:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_debuglog
	movq	_PFL_HWRESERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_14
LBB0_13:
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_debuglog
	jmp	LBB0_14
LBB0_9:
	movq	_PFL_GRANTED@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %r15d
	movl	4(%r14), %edi
	callq	_monitor_lock_host
LBB0_14:
	movq	_PFL_GRANTED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_20
## %bb.15:
	movq	_PFL_GRANTED_DUPLICATE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_20
## %bb.16:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_debuglog
	movq	%r14, %rdi
	callq	_delete_nfslock
LBB0_20:
	movq	_PFL_NFSDENIED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r15d
	je	LBB0_22
## %bb.21:
	movq	_PFL_HWDENIED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	jne	LBB0_29
LBB0_22:
	cmpl	$1, (%r14)
	jne	LBB0_26
## %bb.23:
	cmpl	%eax, %r15d
	jne	LBB0_25
## %bb.24:
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_debuglog
	movq	_PFL_NFSBLOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_add_blockingfilelock
	jmp	LBB0_28
LBB0_26:
	leaq	L_.str.9(%rip), %rdi
	jmp	LBB0_27
LBB0_25:
	leaq	L_.str.8(%rip), %rdi
LBB0_27:
	xorl	%eax, %eax
	callq	_debuglog
LBB0_28:
	movq	%r14, %rdi
	callq	_dump_filelock
LBB0_29:
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_debuglog
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Entering lock_partialfilelock\n"

	.comm	_PFL_DENIED,4,2                 ## @PFL_DENIED
L_.str.1:                               ## @.str.1
	.asciz	"HW GRANTED\n"

	.comm	_PFL_GRANTED_DUPLICATE,4,2      ## @PFL_GRANTED_DUPLICATE
	.comm	_PFL_GRANTED,4,2                ## @PFL_GRANTED
L_.str.2:                               ## @.str.2
	.asciz	"HW RESERR\n"

	.comm	_PFL_HWRESERR,4,2               ## @PFL_HWRESERR
L_.str.3:                               ## @.str.3
	.asciz	"HW DENIED\n"

	.comm	_PFL_HWDENIED,4,2               ## @PFL_HWDENIED
L_.str.4:                               ## @.str.4
	.asciz	"Unmatched hwstatus %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"Deleting trial NFS lock\n"

	.comm	_PFL_NFSDENIED,4,2              ## @PFL_NFSDENIED
	.comm	_PFL_NFSRESERR,4,2              ## @PFL_NFSRESERR
L_.str.6:                               ## @.str.6
	.asciz	"Unmatched lnlstatus %d\n"

	.comm	_PFL_NFSDENIED_NOLOCK,4,2       ## @PFL_NFSDENIED_NOLOCK
L_.str.7:                               ## @.str.7
	.asciz	"BLOCKING LOCK RECEIVED\n"

	.comm	_PFL_NFSBLOCKED,4,2             ## @PFL_NFSBLOCKED
L_.str.8:                               ## @.str.8
	.asciz	"BLOCKING LOCK DENIED IN HARDWARE\n"

L_.str.9:                               ## @.str.9
	.asciz	"Lock denied.  Non-blocking failure\n"

L_.str.10:                              ## @.str.10
	.asciz	"Exiting lock_partialfilelock\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lock_partialfilelock           ; -- Begin function lock_partialfilelock
	.p2align	2
_lock_partialfilelock:                  ; @lock_partialfilelock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debuglog
Lloh2:
	adrp	x8, _PFL_DENIED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PFL_DENIED@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_lock_nfslock
	mov	x21, x0
	sub	w8, w0, #129
Lloh5:
	adrp	x22, _PFL_NFSDENIED@GOTPAGE
Lloh6:
	ldr	x22, [x22, _PFL_NFSDENIED@GOTPAGEOFF]
Lloh7:
	adrp	x23, _PFL_HWDENIED@GOTPAGE
Lloh8:
	ldr	x23, [x23, _PFL_HWDENIED@GOTPAGEOFF]
	cmp	w8, #2
	b.lo	LBB0_4
; %bb.1:
	cmp	w21, #128
	b.eq	LBB0_8
; %bb.2:
	cmp	w21, #131
	b.ne	LBB0_9
; %bb.3:
	ldr	w20, [x22]
	b	LBB0_16
LBB0_4:
	mov	x0, x19
	bl	_lock_hwlock
                                        ; kill: def $w0 killed $w0 def $x0
	sub	w8, w0, #133
Lloh9:
	adrp	x24, _PFL_GRANTED_DUPLICATE@GOTPAGE
Lloh10:
	ldr	x24, [x24, _PFL_GRANTED_DUPLICATE@GOTPAGEOFF]
Lloh11:
	adrp	x25, _PFL_GRANTED@GOTPAGE
Lloh12:
	ldr	x25, [x25, _PFL_GRANTED@GOTPAGEOFF]
	cmp	w8, #2
	b.lo	LBB0_11
; %bb.5:
	cmp	w0, #132
	b.eq	LBB0_12
; %bb.6:
	cmp	w0, #135
	b.ne	LBB0_13
; %bb.7:
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_debuglog
	ldr	w20, [x23]
	b	LBB0_14
LBB0_8:
Lloh15:
	adrp	x8, _PFL_NFSRESERR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PFL_NFSRESERR@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh17:
	adrp	x0, l_.str.6@PAGE
Lloh18:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_debuglog
Lloh19:
	adrp	x8, _PFL_NFSDENIED_NOLOCK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PFL_NFSDENIED_NOLOCK@GOTPAGEOFF]
LBB0_10:
	ldr	w20, [x8]
	b	LBB0_16
LBB0_11:
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_debuglog
	cmp	w21, #129
	csel	x8, x24, x25, eq
	ldr	w20, [x8]
	ldr	w0, [x19, #4]
	bl	_monitor_lock_host
	b	LBB0_14
LBB0_12:
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_debuglog
Lloh25:
	adrp	x8, _PFL_HWRESERR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PFL_HWRESERR@GOTPAGEOFF]
Lloh27:
	ldr	w20, [x8]
	b	LBB0_14
LBB0_13:
	str	x0, [sp]
Lloh28:
	adrp	x0, l_.str.4@PAGE
Lloh29:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_debuglog
LBB0_14:
	ldr	w8, [x25]
	ldr	w9, [x24]
	cmp	w20, w8
	ccmp	w20, w9, #4, ne
	b.eq	LBB0_16
; %bb.15:
Lloh30:
	adrp	x0, l_.str.5@PAGE
Lloh31:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_debuglog
	mov	x0, x19
	bl	_delete_nfslock
LBB0_16:
	ldr	w8, [x22]
	ldr	w9, [x23]
	cmp	w20, w8
	ccmp	w20, w9, #4, ne
	b.ne	LBB0_24
; %bb.17:
	ldr	w9, [x19]
	cmp	w9, #1
	b.ne	LBB0_20
; %bb.18:
	cmp	w20, w8
	b.ne	LBB0_21
; %bb.19:
Lloh32:
	adrp	x0, l_.str.7@PAGE
Lloh33:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_debuglog
Lloh34:
	adrp	x8, _PFL_NFSBLOCKED@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PFL_NFSBLOCKED@GOTPAGEOFF]
Lloh36:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_add_blockingfilelock
	b	LBB0_23
LBB0_20:
Lloh37:
	adrp	x0, l_.str.9@PAGE
Lloh38:
	add	x0, x0, l_.str.9@PAGEOFF
	b	LBB0_22
LBB0_21:
Lloh39:
	adrp	x0, l_.str.8@PAGE
Lloh40:
	add	x0, x0, l_.str.8@PAGEOFF
LBB0_22:
	bl	_debuglog
LBB0_23:
	mov	x0, x19
	bl	_dump_filelock
LBB0_24:
Lloh41:
	adrp	x0, l_.str.10@PAGE
Lloh42:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_debuglog
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Entering lock_partialfilelock\n"

	.comm	_PFL_DENIED,4,2                 ; @PFL_DENIED
l_.str.1:                               ; @.str.1
	.asciz	"HW GRANTED\n"

	.comm	_PFL_GRANTED_DUPLICATE,4,2      ; @PFL_GRANTED_DUPLICATE
	.comm	_PFL_GRANTED,4,2                ; @PFL_GRANTED
l_.str.2:                               ; @.str.2
	.asciz	"HW RESERR\n"

	.comm	_PFL_HWRESERR,4,2               ; @PFL_HWRESERR
l_.str.3:                               ; @.str.3
	.asciz	"HW DENIED\n"

	.comm	_PFL_HWDENIED,4,2               ; @PFL_HWDENIED
l_.str.4:                               ; @.str.4
	.asciz	"Unmatched hwstatus %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"Deleting trial NFS lock\n"

	.comm	_PFL_NFSDENIED,4,2              ; @PFL_NFSDENIED
	.comm	_PFL_NFSRESERR,4,2              ; @PFL_NFSRESERR
l_.str.6:                               ; @.str.6
	.asciz	"Unmatched lnlstatus %d\n"

	.comm	_PFL_NFSDENIED_NOLOCK,4,2       ; @PFL_NFSDENIED_NOLOCK
l_.str.7:                               ; @.str.7
	.asciz	"BLOCKING LOCK RECEIVED\n"

	.comm	_PFL_NFSBLOCKED,4,2             ; @PFL_NFSBLOCKED
l_.str.8:                               ; @.str.8
	.asciz	"BLOCKING LOCK DENIED IN HARDWARE\n"

l_.str.9:                               ; @.str.9
	.asciz	"Lock denied.  Non-blocking failure\n"

l_.str.10:                              ; @.str.10
	.asciz	"Exiting lock_partialfilelock\n"

.subsections_via_symbols
