	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nlm_record_lock
_nlm_record_lock:                       ## @nlm_record_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movq	%rdi, %r13
	movq	%rdi, -72(%rbp)
	movq	$0, -80(%rbp)
	movl	%esi, -112(%rbp)
	leaq	-64(%rbp), %rax
	movq	%rax, -88(%rbp)
	movq	_F_REMOTE@GOTPCREL(%rip), %rax
	movq	_F_WAIT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rax), %esi
	movq	_F_NOINTR@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	%esi, -108(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -104(%rbp)
	movups	8(%rdx), %xmm0
	movups	%xmm0, -56(%rbp)
	movl	%ecx, -64(%rbp)
	movq	_NLM_SYSID_CLIENT@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movl	%r8d, -60(%rbp)
	leaq	-112(%rbp), %rdi
	movq	%r13, %rsi
	movl	%r9d, %edx
	callq	_lf_advlockasync
	movq	_EDEADLK@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leaq	L_.str(%rip), %rdi
	movl	$1, %esi
	callq	_pause
	movq	_curproc@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_SIGDEFERSTOP_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sigdeferstop
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_PROC_LOCK
	xorl	%edi, %edi
	callq	_thread_suspend_check
	movq	%rbx, %rdi
	callq	_PROC_UNLOCK
	movl	%r15d, %edi
	callq	_sigallowstop
	leaq	-112(%rbp), %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_lf_advlockasync
	cmpl	(%r12), %eax
	je	LBB0_1
LBB0_3:
	movq	_EINTR@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	(%rcx), %eax
	cmovnel	%eax, %edx
	testl	%edx, %edx
	sete	%al
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	movslq	%edx, %rsi
	callq	_KASSERT
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_F_REMOTE,4,2                   ## @F_REMOTE
	.comm	_F_WAIT,4,2                     ## @F_WAIT
	.comm	_F_NOINTR,4,2                   ## @F_NOINTR
	.comm	_NLM_SYSID_CLIENT,4,2           ## @NLM_SYSID_CLIENT
	.comm	_EDEADLK,4,2                    ## @EDEADLK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nlmdlk"

	.comm	_curproc,8,3                    ## @curproc
	.comm	_SIGDEFERSTOP_OFF,4,2           ## @SIGDEFERSTOP_OFF
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_nlm_record_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nlm_record_lock
_nlm_record_lock:                       ; @nlm_record_lock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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, x5
	mov	x20, x0
	add	x8, sp, #8
	stp	x8, xzr, [sp, #56]
Lloh0:
	adrp	x8, _F_REMOTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _F_REMOTE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _F_WAIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _F_WAIT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _F_NOINTR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _F_NOINTR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	x0, [sp, #72]
	stp	w1, w8, [sp, #32]
	stp	xzr, xzr, [sp, #40]
	ldur	q0, [x2, #8]
	stur	q0, [sp, #16]
Lloh9:
	adrp	x8, _NLM_SYSID_CLIENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NLM_SYSID_CLIENT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w8, w8, w4
	stp	w3, w8, [sp, #8]
	add	x0, sp, #32
	mov	x1, x20
	mov	x2, x5
	bl	_lf_advlockasync
Lloh12:
	adrp	x24, _EDEADLK@GOTPAGE
Lloh13:
	ldr	x24, [x24, _EDEADLK@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.1:
Lloh14:
	adrp	x21, l_.str@PAGE
Lloh15:
	add	x21, x21, l_.str@PAGEOFF
Lloh16:
	adrp	x25, _curproc@GOTPAGE
Lloh17:
	ldr	x25, [x25, _curproc@GOTPAGEOFF]
Lloh18:
	adrp	x26, _SIGDEFERSTOP_OFF@GOTPAGE
Lloh19:
	ldr	x26, [x26, _SIGDEFERSTOP_OFF@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	w1, #1
	bl	_pause
	ldr	x22, [x25]
	ldr	w0, [x26]
	bl	_sigdeferstop
	mov	x23, x0
	mov	x0, x22
	bl	_PROC_LOCK
	mov	w0, #0
	bl	_thread_suspend_check
	mov	x0, x22
	bl	_PROC_UNLOCK
	mov	x0, x23
	bl	_sigallowstop
	add	x0, sp, #32
	mov	x1, x20
	mov	x2, x19
	bl	_lf_advlockasync
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_2
LBB0_3:
Lloh20:
	adrp	x8, _EINTR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w0, w8
	csel	w8, wzr, w0, eq
	cmp	w8, #0
Lloh23:
	adrp	x9, _ENOENT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	ccmp	w8, w9, #4, ne
	cset	w0, eq
	sxtw	x1, w8
	bl	_KASSERT
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_F_REMOTE,4,2                   ; @F_REMOTE
	.comm	_F_WAIT,4,2                     ; @F_WAIT
	.comm	_F_NOINTR,4,2                   ; @F_NOINTR
	.comm	_NLM_SYSID_CLIENT,4,2           ; @NLM_SYSID_CLIENT
	.comm	_EDEADLK,4,2                    ; @EDEADLK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nlmdlk"

	.comm	_curproc,8,3                    ; @curproc
	.comm	_SIGDEFERSTOP_OFF,4,2           ; @SIGDEFERSTOP_OFF
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_nlm_record_lock
.subsections_via_symbols
