	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nlm_lock_callback
_nlm_lock_callback:                     ## @nlm_lock_callback
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movl	20(%rax), %r14d
	movl	24(%rax), %r15d
	leaq	48(%rdi), %r12
	movq	%r12, %rdi
	callq	_ng_sysid
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_ng_cookie
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	movl	%r13d, %r9d
	callq	_NLM_DEBUG
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_nlm_auth@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_NLM_VERS4@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	20(%rbx), %rdi
	movl	16(%rbx), %edx
	movq	_nlm_zero_tv@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-48(%rbp), %rcx
	xorl	%esi, %esi
	callq	_nlm4_granted_msg_4
	jmp	LBB0_3
LBB0_2:
	movups	36(%rbx), %xmm0
	movaps	%xmm0, -64(%rbp)
	movups	20(%rbx), %xmm0
	movaps	%xmm0, -80(%rbp)
	movl	16(%rbx), %edx
	movq	_nlm_zero_tv@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-80(%rbp), %rdi
	leaq	-48(%rbp), %rcx
	xorl	%esi, %esi
	callq	_nlm_granted_msg_1
LBB0_3:
	movq	_time_uptime@GOTPCREL(%rip), %rax
	movq	_NLM_EXPIRE_TIMEOUT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rax), %rcx
	movq	%rcx, 8(%rbx)
	movq	(%rbx), %rdi
	addq	$8, %rdi
	callq	_mtx_lock
	movq	(%rbx), %rdi
	addq	$16, %rdi
	movq	_af_link@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	movq	(%rbx), %rdi
	addq	$12, %rdi
	movl	(%r14), %edx
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_TAIL
	movq	(%rbx), %rdi
	addq	$8, %rdi
	callq	_mtx_unlock
	addq	$56, %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	"NLM: async lock %p for %s (sysid %d) granted, cookie %d:%d\n"

	.comm	_nlm_auth,4,2                   ## @nlm_auth
	.comm	_NLM_VERS4,8,3                  ## @NLM_VERS4
	.comm	_nlm_zero_tv,4,2                ## @nlm_zero_tv
	.comm	_time_uptime,8,3                ## @time_uptime
	.comm	_NLM_EXPIRE_TIMEOUT,8,3         ## @NLM_EXPIRE_TIMEOUT
	.comm	_af_link,4,2                    ## @af_link
	.no_dead_strip	_nlm_lock_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nlm_lock_callback
_nlm_lock_callback:                     ; @nlm_lock_callback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	mov	x20, x0
	ldr	x8, [x20], #48
	ldp	w22, w21, [x8, #20]
	mov	x0, x20
	bl	_ng_sysid
	mov	x23, x0
	mov	x0, x20
	bl	_ng_cookie
	mov	x6, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	mov	x2, x19
	mov	x3, x21
	mov	x4, x22
	mov	x5, x23
	bl	_NLM_DEBUG
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x19
	ldr	x8, [x0], #20
Lloh2:
	adrp	x9, _nlm_auth@GOTPAGE
Lloh3:
	ldr	x9, [x9, _nlm_auth@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	str	w9, [sp, #40]
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _NLM_VERS4@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NLM_VERS4@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w2, [x19, #16]
Lloh8:
	adrp	x8, _nlm_zero_tv@GOTPAGE
Lloh9:
	ldr	x8, [x8, _nlm_zero_tv@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
	add	x3, sp, #40
	mov	x1, #0
	bl	_nlm4_granted_msg_4
	b	LBB0_3
LBB0_2:
	ldur	q0, [x19, #36]
	ldur	q1, [x19, #20]
	stp	q1, q0, [sp]
	ldr	w2, [x19, #16]
Lloh11:
	adrp	x8, _nlm_zero_tv@GOTPAGE
Lloh12:
	ldr	x8, [x8, _nlm_zero_tv@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
	mov	x0, sp
	add	x3, sp, #40
	mov	x1, #0
	bl	_nlm_granted_msg_1
LBB0_3:
Lloh14:
	adrp	x8, _time_uptime@GOTPAGE
Lloh15:
	ldr	x8, [x8, _time_uptime@GOTPAGEOFF]
Lloh16:
	adrp	x9, _NLM_EXPIRE_TIMEOUT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _NLM_EXPIRE_TIMEOUT@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
Lloh19:
	ldr	x9, [x9]
	add	x8, x9, x8
	str	x8, [x19, #8]
	ldr	x8, [x19]
	add	x0, x8, #8
	bl	_mtx_lock
	ldr	x8, [x19]
	add	x0, x8, #16
Lloh20:
	adrp	x20, _af_link@GOTPAGE
Lloh21:
	ldr	x20, [x20, _af_link@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x1, x19
	bl	_TAILQ_REMOVE
	ldr	x8, [x19]
	add	x0, x8, #12
	ldr	w2, [x20]
	mov	x1, x19
	bl	_TAILQ_INSERT_TAIL
	ldr	x8, [x19]
	add	x0, x8, #8
	bl	_mtx_unlock
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NLM: async lock %p for %s (sysid %d) granted, cookie %d:%d\n"

	.comm	_nlm_auth,4,2                   ; @nlm_auth
	.comm	_NLM_VERS4,8,3                  ; @NLM_VERS4
	.comm	_nlm_zero_tv,4,2                ; @nlm_zero_tv
	.comm	_time_uptime,8,3                ; @time_uptime
	.comm	_NLM_EXPIRE_TIMEOUT,8,3         ; @NLM_EXPIRE_TIMEOUT
	.comm	_af_link,4,2                    ; @af_link
	.no_dead_strip	_nlm_lock_callback
.subsections_via_symbols
