	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nlm_check_expired_locks
_nlm_check_expired_locks:               ## @nlm_check_expired_locks
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	_time_uptime@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	_mtx_lock
	leaq	8(%r13), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	(%rbx), %rax
	jl	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rax
	movl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	4(%rax), %r15d
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_ng_sysid
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_ng_cookie
	movl	%eax, (%rsp)
	movl	$2, %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%r12d, %r9d
	callq	_NLM_DEBUG
	movq	_af_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	movq	%r13, %rdi
	callq	_mtx_unlock
	movq	%rbx, %rdi
	callq	_nlm_free_async_lock
	movq	%r13, %rdi
	callq	_mtx_lock
	movq	%r14, %rdi
	callq	_TAILQ_FIRST
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
LBB0_4:
	leaq	4(%r13), %r14
	movq	%r14, %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rax, %rbx
	movq	_af_link@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	movq	%r13, %rdi
	callq	_mtx_unlock
	movq	%rbx, %rdi
	callq	_nlm_free_async_lock
	movq	%r13, %rdi
	callq	_mtx_lock
	movq	%r14, %rdi
	callq	_TAILQ_FIRST
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
LBB0_7:
	movq	%r13, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtx_unlock                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_time_uptime,8,3                ## @time_uptime
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NLM: async lock %p for %s (sysid %d) expired, cookie %d:%d\n"

	.comm	_af_link,4,2                    ## @af_link
	.no_dead_strip	_nlm_check_expired_locks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nlm_check_expired_locks
_nlm_check_expired_locks:               ; @nlm_check_expired_locks
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, _time_uptime@GOTPAGE
Lloh1:
	ldr	x8, [x8, _time_uptime@GOTPAGEOFF]
Lloh2:
	ldr	x28, [x8]
	bl	_mtx_lock
	add	x20, x19, #8
	mov	x0, x20
	bl	_TAILQ_FIRST
Lloh3:
	adrp	x27, _af_link@GOTPAGE
Lloh4:
	ldr	x27, [x27, _af_link@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
Lloh5:
	adrp	x21, l_.str@PAGE
Lloh6:
	add	x21, x21, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	cmp	x28, x8
	b.lt	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22, #16]
	ldp	w24, w23, [x8]
	add	x25, x22, #8
	mov	x0, x25
	bl	_ng_sysid
	mov	x26, x0
	mov	x0, x25
	bl	_ng_cookie
	mov	x6, x0
	mov	w0, #2
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	mov	x4, x24
	mov	x5, x26
	bl	_NLM_DEBUG
	ldr	w2, [x27]
	mov	x0, x20
	mov	x1, x22
	bl	_TAILQ_REMOVE
	mov	x0, x19
	bl	_mtx_unlock
	mov	x0, x22
	bl	_nlm_free_async_lock
	mov	x0, x19
	bl	_mtx_lock
	mov	x0, x20
	bl	_TAILQ_FIRST
	mov	x22, x0
	cbnz	x0, LBB0_2
LBB0_4:
	add	x20, x19, #4
	mov	x0, x20
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_7
; %bb.5:
	mov	x21, x0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x27]
	mov	x0, x20
	mov	x1, x21
	bl	_TAILQ_REMOVE
	mov	x0, x19
	bl	_mtx_unlock
	mov	x0, x21
	bl	_nlm_free_async_lock
	mov	x0, x19
	bl	_mtx_lock
	mov	x0, x20
	bl	_TAILQ_FIRST
	mov	x21, x0
	cbnz	x0, LBB0_6
LBB0_7:
	mov	x0, x19
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_mtx_unlock
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_time_uptime,8,3                ; @time_uptime
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NLM: async lock %p for %s (sysid %d) expired, cookie %d:%d\n"

	.comm	_af_link,4,2                    ; @af_link
	.no_dead_strip	_nlm_check_expired_locks
.subsections_via_symbols
