	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_lock                        ## -- Begin function do_lock
	.p2align	4, 0x90
_do_lock:                               ## @do_lock
	.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
	callq	_debuglog
	movq	%r14, %rdi
	callq	_lock_partialfilelock
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_1
## %bb.2:
	cltq
	leaq	l_reltable.do_lock(%rip), %rcx
	movslq	(%rcx,%rax,4), %rdi
	addq	%rcx, %rdi
	leaq	l_switch.table.do_lock.8(%rip), %rcx
	movq	(%rcx,%rax,8), %rbx
	leaq	l_switch.table.do_lock.9(%rip), %rcx
	movq	(%rcx,%rax,8), %r15
	jmp	LBB0_3
LBB0_1:
	movq	_nlm_denied@GOTPCREL(%rip), %r15
	movq	_nlm4_failed@GOTPCREL(%rip), %rbx
	leaq	L_.str.6(%rip), %rdi
LBB0_3:
	callq	_debuglog
	movq	%r14, %rdi
	callq	_dump_filelock
	movq	_LOCK_V4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r14), %eax
	cmoveq	%r15, %rbx
	movl	(%rbx), %ebx
	leaq	L_.str.7(%rip), %rdi
	callq	_debuglog
	movl	%ebx, %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 do_lock...\n"

L_.str.1:                               ## @.str.1
	.asciz	"PFL lock granted"

	.comm	_LOCK_V4,4,2                    ## @LOCK_V4
	.comm	_nlm4_granted,4,2               ## @nlm4_granted
	.comm	_nlm_granted,4,2                ## @nlm_granted
L_.str.2:                               ## @.str.2
	.asciz	"PFL lock granted--duplicate id detected"

L_.str.3:                               ## @.str.3
	.asciz	"PFL_NFS lock denied"

	.comm	_nlm4_denied,4,2                ## @nlm4_denied
	.comm	_nlm_denied,4,2                 ## @nlm_denied
L_.str.4:                               ## @.str.4
	.asciz	"PFL_NFS blocking lock denied.  Queued.\n"

	.comm	_nlm4_blocked,4,2               ## @nlm4_blocked
	.comm	_nlm_blocked,4,2                ## @nlm_blocked
L_.str.5:                               ## @.str.5
	.asciz	"PFL lock resource alocation fail\n"

	.comm	_nlm4_denied_nolocks,4,2        ## @nlm4_denied_nolocks
	.comm	_nlm_denied_nolocks,4,2         ## @nlm_denied_nolocks
L_.str.6:                               ## @.str.6
	.asciz	"PFL lock *FAILED*"

	.comm	_nlm4_failed,4,2                ## @nlm4_failed
L_.str.7:                               ## @.str.7
	.asciz	"Exiting do_lock...\n"

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.do_lock
l_reltable.do_lock:
	.long	L_.str.5-l_reltable.do_lock
	.long	L_.str.3-l_reltable.do_lock
	.long	L_.str.4-l_reltable.do_lock
	.long	L_.str.5-l_reltable.do_lock
	.long	L_.str.3-l_reltable.do_lock
	.long	L_.str.4-l_reltable.do_lock
	.long	L_.str.2-l_reltable.do_lock
	.long	L_.str.1-l_reltable.do_lock

	.section	__DATA,__const
	.p2align	3                               ## @switch.table.do_lock.8
l_switch.table.do_lock.8:
	.quad	_nlm4_denied_nolocks
	.quad	_nlm4_denied
	.quad	_nlm4_blocked
	.quad	_nlm4_denied_nolocks
	.quad	_nlm4_denied
	.quad	_nlm4_blocked
	.quad	_nlm4_granted
	.quad	_nlm4_granted

	.p2align	3                               ## @switch.table.do_lock.9
l_switch.table.do_lock.9:
	.quad	_nlm_denied_nolocks
	.quad	_nlm_denied
	.quad	_nlm_blocked
	.quad	_nlm_denied_nolocks
	.quad	_nlm_denied
	.quad	_nlm_blocked
	.quad	_nlm_granted
	.quad	_nlm_granted

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_lock                        ; -- Begin function do_lock
	.p2align	2
_do_lock:                               ; @do_lock
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debuglog
	mov	x0, x19
	bl	_lock_partialfilelock
	sub	w8, w0, #128
	cmp	w8, #7
	b.hi	LBB0_2
; %bb.1:
	sbfiz	x8, x8, #3, #32
Lloh2:
	adrp	x9, l_switch.table.do_lock@PAGE
Lloh3:
	add	x9, x9, l_switch.table.do_lock@PAGEOFF
	ldr	x0, [x9, x8]
Lloh4:
	adrp	x9, l_switch.table.do_lock.8@PAGE
Lloh5:
	add	x9, x9, l_switch.table.do_lock.8@PAGEOFF
	ldr	x20, [x9, x8]
Lloh6:
	adrp	x9, l_switch.table.do_lock.9@PAGE
Lloh7:
	add	x9, x9, l_switch.table.do_lock.9@PAGEOFF
	ldr	x21, [x9, x8]
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x21, _nlm_denied@GOTPAGE
Lloh9:
	ldr	x21, [x21, _nlm_denied@GOTPAGEOFF]
Lloh10:
	adrp	x20, _nlm4_failed@GOTPAGE
Lloh11:
	ldr	x20, [x20, _nlm4_failed@GOTPAGEOFF]
Lloh12:
	adrp	x0, l_.str.6@PAGE
Lloh13:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_3:
	bl	_debuglog
	mov	x0, x19
	bl	_dump_filelock
	ldr	w8, [x19]
Lloh14:
	adrp	x9, _LOCK_V4@GOTPAGE
Lloh15:
	ldr	x9, [x9, _LOCK_V4@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	csel	x8, x21, x20, eq
	ldr	w19, [x8]
Lloh17:
	adrp	x0, l_.str.7@PAGE
Lloh18:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_debuglog
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Entering do_lock...\n"

l_.str.1:                               ; @.str.1
	.asciz	"PFL lock granted"

	.comm	_LOCK_V4,4,2                    ; @LOCK_V4
	.comm	_nlm4_granted,4,2               ; @nlm4_granted
	.comm	_nlm_granted,4,2                ; @nlm_granted
l_.str.2:                               ; @.str.2
	.asciz	"PFL lock granted--duplicate id detected"

l_.str.3:                               ; @.str.3
	.asciz	"PFL_NFS lock denied"

	.comm	_nlm4_denied,4,2                ; @nlm4_denied
	.comm	_nlm_denied,4,2                 ; @nlm_denied
l_.str.4:                               ; @.str.4
	.asciz	"PFL_NFS blocking lock denied.  Queued.\n"

	.comm	_nlm4_blocked,4,2               ; @nlm4_blocked
	.comm	_nlm_blocked,4,2                ; @nlm_blocked
l_.str.5:                               ; @.str.5
	.asciz	"PFL lock resource alocation fail\n"

	.comm	_nlm4_denied_nolocks,4,2        ; @nlm4_denied_nolocks
	.comm	_nlm_denied_nolocks,4,2         ; @nlm_denied_nolocks
l_.str.6:                               ; @.str.6
	.asciz	"PFL lock *FAILED*"

	.comm	_nlm4_failed,4,2                ; @nlm4_failed
l_.str.7:                               ; @.str.7
	.asciz	"Exiting do_lock...\n"

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.do_lock
l_switch.table.do_lock:
	.quad	l_.str.5
	.quad	l_.str.3
	.quad	l_.str.4
	.quad	l_.str.5
	.quad	l_.str.3
	.quad	l_.str.4
	.quad	l_.str.2
	.quad	l_.str.1

	.p2align	3                               ; @switch.table.do_lock.8
l_switch.table.do_lock.8:
	.quad	_nlm4_denied_nolocks
	.quad	_nlm4_denied
	.quad	_nlm4_blocked
	.quad	_nlm4_denied_nolocks
	.quad	_nlm4_denied
	.quad	_nlm4_blocked
	.quad	_nlm4_granted
	.quad	_nlm4_granted

	.p2align	3                               ; @switch.table.do_lock.9
l_switch.table.do_lock.9:
	.quad	_nlm_denied_nolocks
	.quad	_nlm_denied
	.quad	_nlm_blocked
	.quad	_nlm_denied_nolocks
	.quad	_nlm_denied
	.quad	_nlm_blocked
	.quad	_nlm_granted
	.quad	_nlm_granted

.subsections_via_symbols
