	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfs_dolock                     ## -- Begin function nfs_dolock
	.p2align	4, 0x90
_nfs_dolock:                            ## @nfs_dolock
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	8(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %r12
	movq	24(%rdi), %rbx
	movl	(%rbx), %edi
	callq	_VFSTONFS
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ASSERT_VOP_LOCKED
	leaq	-76(%rbp), %rdx
	leaq	-80(%rbp), %rcx
	leaq	-84(%rbp), %r8
	movq	$0, (%rsp)
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	callq	*(%r15)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_VOP_UNLOCK
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rax
	movq	_SEEK_END@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
LBB0_11:
	movq	_LOCKD_MSG_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	16(%rbx), %eax
	movl	%eax, -92(%rbp)
	movq	_Giant@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movq	_M_NLMINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	$4, %edi
	callq	_malloc
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, (%rbx)
	movq	8(%rbx), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	callq	_getboottime
	movq	(%rbx), %rdi
	addq	$24, %rdi
	movq	%r15, %rsi
	callq	_timevaladd
	movq	(%rbx), %rax
LBB0_13:
	movl	24(%rax), %ecx
	movl	%ecx, -96(%rbp)
	movq	16(%rax), %rcx
	incq	%rcx
	movq	%rcx, 16(%rax)
	movq	%rcx, -104(%rbp)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movups	32(%rax), %xmm2
	movups	%xmm2, -120(%rbp)
	movups	%xmm1, -136(%rbp)
	movups	%xmm0, -152(%rbp)
	movq	_F_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r14), %eax
	movl	%eax, -168(%rbp)
	movq	8(%r14), %rax
	movq	_F_GETLK@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movl	%edx, -164(%rbp)
	movl	(%r13), %edi
	leaq	-160(%rbp), %rsi
	callq	_cru2x
	leaq	-168(%rbp), %r14
	movq	_hz@GOTPCREL(%rip), %r12
	leaq	L_.str.1(%rip), %r15
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_nfslock_send
	testl	%eax, %eax
	jne	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	xorl	%ebx, %ebx
	movq	_F_UNLCK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_25
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_PUSER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %eax
	shll	$2, %eax
	leal	(%rax,%rax,4), %ecx
	movq	%r15, %rdx
	callq	_tsleep
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%eax, %ebx
	cmpl	(%r13), %eax
	je	LBB0_14
	jmp	LBB0_25
LBB0_1:
	movq	_SEEK_CUR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_SEEK_SET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_3:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	testq	%rax, %rax
	js	LBB0_7
## %bb.4:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movslq	16(%rcx), %rcx
	testq	%rcx, %rcx
	js	LBB0_5
## %bb.8:
	testl	%ecx, %ecx
	je	LBB0_11
## %bb.9:
	decl	%ecx
	movq	_OFF_MAX@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	subq	%rax, %rdx
	cmpq	%rcx, %rdx
	jge	LBB0_11
## %bb.10:
	movq	_EOVERFLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_26
LBB0_15:
	movl	%eax, %ebx
	jmp	LBB0_25
LBB0_19:
	cmpl	$0, -164(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %ebx
	je	LBB0_25
## %bb.20:
	testl	%ebx, %ebx
	jne	LBB0_25
## %bb.21:
	cmpq	$0, 8(%rax)
	je	LBB0_23
## %bb.22:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	$0, 40(%rcx)
	movl	4(%rax), %eax
	movl	%eax, 32(%rcx)
	jmp	LBB0_24
LBB0_5:
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	addq	%rcx, %rax
	jns	LBB0_11
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_26
LBB0_23:
	movq	_F_UNLCK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 24(%rcx)
LBB0_24:
	xorl	%ebx, %ebx
LBB0_25:
	movq	_Giant@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
LBB0_26:
	movl	%ebx, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_curthread,8,3                  ## @curthread
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nfs_dolock"

	.comm	_SEEK_END,8,3                   ## @SEEK_END
	.comm	_SEEK_CUR,8,3                   ## @SEEK_CUR
	.comm	_SEEK_SET,8,3                   ## @SEEK_SET
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_OFF_MAX,4,2                    ## @OFF_MAX
	.comm	_EOVERFLOW,4,2                  ## @EOVERFLOW
	.comm	_LOCKD_MSG_VERSION,4,2          ## @LOCKD_MSG_VERSION
	.comm	_Giant,4,2                      ## @Giant
	.comm	_M_NLMINFO,4,2                  ## @M_NLMINFO
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_F_WAIT,4,2                     ## @F_WAIT
	.comm	_F_GETLK,8,3                    ## @F_GETLK
	.comm	_F_UNLCK,8,3                    ## @F_UNLCK
	.comm	_PUSER,4,2                      ## @PUSER
L_.str.1:                               ## @.str.1
	.asciz	"lockd"

	.comm	_hz,4,2                         ## @hz
	.comm	_EWOULDBLOCK,4,2                ## @EWOULDBLOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfs_dolock                     ; -- Begin function nfs_dolock
	.p2align	2
_nfs_dolock:                            ; @nfs_dolock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x8, _curthread@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	ldr	x23, [x24, #8]
	ldp	x22, x20, [x0, #16]
	ldr	w0, [x20]
	bl	_VFSTONFS
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ASSERT_VOP_LOCKED
	ldr	x8, [x21]
	add	x9, sp, #8
	add	x2, x9, #92
	add	x3, x9, #88
	add	x4, x9, #84
	mov	x0, x20
	mov	x5, #0
	mov	x6, #0
	blr	x8
	mov	x0, x20
	mov	w1, #0
	bl	_VOP_UNLOCK
	ldr	x8, [x22]
Lloh5:
	adrp	x9, _SEEK_END@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SEEK_END@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
LBB0_1:
Lloh8:
	adrp	x8, _LOCKD_MSG_VERSION@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LOCKD_MSG_VERSION@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp, #88]
	ldr	w8, [x23, #16]
	str	w8, [sp, #84]
Lloh11:
	adrp	x0, _Giant@GOTPAGE
Lloh12:
	ldr	x0, [x0, _Giant@GOTPAGEOFF]
	bl	_mtx_lock
	ldr	x8, [x23]
	cbnz	x8, LBB0_3
; %bb.2:
Lloh13:
	adrp	x8, _M_NLMINFO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _M_NLMINFO@GOTPAGEOFF]
Lloh15:
	adrp	x9, _M_WAITOK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _M_WAITOK@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	ldr	w8, [x9]
Lloh19:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh20:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #4
	bl	_malloc
	str	x0, [x23]
	ldr	x8, [x23, #8]
	ldr	w8, [x8]
	str	w8, [x0, #24]
	mov	x0, sp
	bl	_getboottime
	ldr	x8, [x23]
	add	x0, x8, #24
	mov	x1, sp
	bl	_timevaladd
	ldr	x8, [x23]
LBB0_3:
	ldr	w9, [x8, #24]
	str	w9, [sp, #80]
	ldr	x9, [x8, #16]
	add	x9, x9, #1
	str	x9, [x8, #16]
	str	x9, [sp, #72]
	ldp	q0, q1, [x22]
	ldr	q2, [x22, #32]
	stur	q2, [sp, #56]
	stur	q1, [sp, #40]
	stur	q0, [sp, #24]
	ldr	w8, [x19]
Lloh22:
	adrp	x9, _F_WAIT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _F_WAIT@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	and	w8, w9, w8
	ldr	x9, [x19, #8]
Lloh25:
	adrp	x10, _F_GETLK@GOTPAGE
Lloh26:
	ldr	x10, [x10, _F_GETLK@GOTPAGEOFF]
Lloh27:
	ldr	x10, [x10]
	cmp	x9, x10
	cset	w9, eq
	stp	w8, w9, [sp, #8]
	ldr	w0, [x24]
	add	x8, sp, #8
	add	x1, x8, #8
	bl	_cru2x
Lloh28:
	adrp	x21, _F_UNLCK@GOTPAGE
Lloh29:
	ldr	x21, [x21, _F_UNLCK@GOTPAGEOFF]
Lloh30:
	adrp	x24, _PUSER@GOTPAGE
Lloh31:
	ldr	x24, [x24, _PUSER@GOTPAGEOFF]
Lloh32:
	adrp	x25, _hz@GOTPAGE
Lloh33:
	ldr	x25, [x25, _hz@GOTPAGEOFF]
Lloh34:
	adrp	x20, l_.str.1@PAGE
Lloh35:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh36:
	adrp	x26, _EWOULDBLOCK@GOTPAGE
Lloh37:
	ldr	x26, [x26, _EWOULDBLOCK@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	bl	_nfslock_send
	cbnz	w0, LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, #24]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x23]
	ldr	w1, [x24]
	ldr	w8, [x25]
	add	w8, w8, w8, lsl #2
	lsl	w3, w8, #2
	mov	x2, x20
	bl	_tsleep
	cbz	w0, LBB0_16
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x19, x0
	ldr	w8, [x26]
	cmp	w0, w8
	b.eq	LBB0_4
	b	LBB0_24
LBB0_8:
Lloh38:
	adrp	x9, _SEEK_CUR@GOTPAGE
Lloh39:
	ldr	x9, [x9, _SEEK_CUR@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
Lloh41:
	adrp	x10, _SEEK_SET@GOTPAGE
Lloh42:
	ldr	x10, [x10, _SEEK_SET@GOTPAGEOFF]
Lloh43:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_22
; %bb.9:
	ldr	x8, [x22, #8]
	tbnz	x8, #63, LBB0_22
; %bb.10:
	ldrsw	x9, [x22, #16]
	tbnz	w9, #31, LBB0_20
; %bb.11:
	cbz	w9, LBB0_1
; %bb.12:
	sub	w9, w9, #1
Lloh44:
	adrp	x10, _OFF_MAX@GOTPAGE
Lloh45:
	ldr	x10, [x10, _OFF_MAX@GOTPAGEOFF]
Lloh46:
	ldrsw	x10, [x10]
	sub	x8, x10, x8
	cmp	x8, x9
	b.ge	LBB0_1
; %bb.13:
Lloh47:
	adrp	x8, _EOVERFLOW@GOTPAGE
Lloh48:
	ldr	x8, [x8, _EOVERFLOW@GOTPAGEOFF]
Lloh49:
	ldr	w19, [x8]
	b	LBB0_25
LBB0_14:
	mov	x19, x0
	b	LBB0_24
LBB0_15:
	mov	w19, #0
	b	LBB0_24
LBB0_16:
	ldr	w9, [sp, #12]
	ldr	x8, [x23]
	ldr	w19, [x8]
	cbz	w9, LBB0_24
; %bb.17:
	cbnz	w19, LBB0_24
; %bb.18:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_23
; %bb.19:
	mov	w19, #0
	str	xzr, [x22, #40]
	ldr	w8, [x8, #4]
	str	w8, [x22, #32]
	b	LBB0_24
LBB0_20:
	cbz	x8, LBB0_22
; %bb.21:
	add	x8, x8, x9
	tbz	x8, #63, LBB0_1
LBB0_22:
Lloh50:
	adrp	x8, _EINVAL@GOTPAGE
Lloh51:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh52:
	ldr	w19, [x8]
	b	LBB0_25
LBB0_23:
	mov	w19, #0
	ldr	x8, [x21]
	str	x8, [x22, #24]
LBB0_24:
Lloh53:
	adrp	x0, _Giant@GOTPAGE
Lloh54:
	ldr	x0, [x0, _Giant@GOTPAGEOFF]
	bl	_mtx_unlock
LBB0_25:
	mov	x0, x19
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_curthread,8,3                  ; @curthread
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nfs_dolock"

	.comm	_SEEK_END,8,3                   ; @SEEK_END
	.comm	_SEEK_CUR,8,3                   ; @SEEK_CUR
	.comm	_SEEK_SET,8,3                   ; @SEEK_SET
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_OFF_MAX,4,2                    ; @OFF_MAX
	.comm	_EOVERFLOW,4,2                  ; @EOVERFLOW
	.comm	_LOCKD_MSG_VERSION,4,2          ; @LOCKD_MSG_VERSION
	.comm	_Giant,4,2                      ; @Giant
	.comm	_M_NLMINFO,4,2                  ; @M_NLMINFO
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_F_WAIT,4,2                     ; @F_WAIT
	.comm	_F_GETLK,8,3                    ; @F_GETLK
	.comm	_F_UNLCK,8,3                    ; @F_UNLCK
	.comm	_PUSER,4,2                      ; @PUSER
l_.str.1:                               ; @.str.1
	.asciz	"lockd"

	.comm	_hz,4,2                         ; @hz
	.comm	_EWOULDBLOCK,4,2                ; @EWOULDBLOCK
.subsections_via_symbols
