	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nlm_host_notify
_nlm_host_notify:                       ## @nlm_host_notify
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movl	(%r12), %ecx
	movl	16(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%r14d, %r8d
	callq	_NLM_DEBUG
LBB0_2:
	leaq	24(%r12), %r15
	movq	%r15, %rdi
	callq	_mtx_lock
	leaq	28(%r12), %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rdi
	callq	_nlm_cancel_async_lock
	jmp	LBB0_4
LBB0_5:
	movq	%r15, %rdi
	callq	_mtx_unlock
	movq	%r12, %rdi
	callq	_nlm_check_expired_locks
	movl	(%r12), %edi
	callq	_lf_clearremotesys
	movl	%r14d, 4(%r12)
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.6:
	movq	8(%r12), %rax
	movq	_NLM_RECOVERING@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	je	LBB0_9
## %bb.7:
	movq	_NLM_SYSID_CLIENT@GOTPCREL(%rip), %rax
	movl	(%r12), %edi
	orl	(%rax), %edi
	callq	_lf_countlocks
	testq	%rax, %rax
	jle	LBB0_9
## %bb.8:
	movq	(%rbx), %rax
	movq	%rax, 8(%r12)
	leaq	20(%r12), %rdi
	callq	_refcount_acquire
	movq	_nlm_client_recovery_start@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_curproc@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	16(%r12), %eax
	leaq	L_.str.1(%rip), %rbx
	leaq	-40(%rbp), %rcx
	movq	%r12, %rsi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%rbx
	callq	_kthread_add
	addq	$16, %rsp
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NLM: host %s (sysid %d) rebooted, new state is %d\n"

	.comm	_NLM_RECOVERING,8,3             ## @NLM_RECOVERING
	.comm	_NLM_SYSID_CLIENT,4,2           ## @NLM_SYSID_CLIENT
	.comm	_nlm_client_recovery_start,4,2  ## @nlm_client_recovery_start
	.comm	_curproc,4,2                    ## @curproc
L_.str.1:                               ## @.str.1
	.asciz	"NFS lock recovery for %s"

	.no_dead_strip	_nlm_host_notify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nlm_host_notify
_nlm_host_notify:                       ; @nlm_host_notify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	cbz	w1, LBB0_2
; %bb.1:
	ldr	w2, [x19, #16]
	ldr	w3, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x4, x20
	bl	_NLM_DEBUG
LBB0_2:
	add	x21, x19, #24
	mov	x0, x21
	bl	_mtx_lock
	add	x22, x19, #28
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_nlm_cancel_async_lock
	b	LBB0_3
LBB0_5:
	mov	x0, x21
	bl	_mtx_unlock
	mov	x0, x19
	bl	_nlm_check_expired_locks
	ldr	w0, [x19]
	bl	_lf_clearremotesys
	str	w20, [x19, #4]
	cbz	w20, LBB0_9
; %bb.6:
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x20, _NLM_RECOVERING@GOTPAGE
Lloh3:
	ldr	x20, [x20, _NLM_RECOVERING@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.7:
Lloh4:
	adrp	x8, _NLM_SYSID_CLIENT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NLM_SYSID_CLIENT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w0, w9, w8
	bl	_lf_countlocks
	cmp	x0, #1
	b.lt	LBB0_9
; %bb.8:
	ldr	x8, [x20]
	str	x8, [x19, #8]
	add	x0, x19, #20
	bl	_refcount_acquire
Lloh7:
	adrp	x8, _nlm_client_recovery_start@GOTPAGE
Lloh8:
	ldr	x8, [x8, _nlm_client_recovery_start@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _curproc@GOTPAGE
Lloh11:
	ldr	x8, [x8, _curproc@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	ldr	w7, [x19, #16]
Lloh13:
	adrp	x6, l_.str.1@PAGE
Lloh14:
	add	x6, x6, l_.str.1@PAGEOFF
	add	x3, sp, #8
	mov	x1, x19
	mov	w4, #0
	mov	w5, #0
	bl	_kthread_add
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NLM: host %s (sysid %d) rebooted, new state is %d\n"

	.comm	_NLM_RECOVERING,8,3             ; @NLM_RECOVERING
	.comm	_NLM_SYSID_CLIENT,4,2           ; @NLM_SYSID_CLIENT
	.comm	_nlm_client_recovery_start,4,2  ; @nlm_client_recovery_start
	.comm	_curproc,4,2                    ; @curproc
l_.str.1:                               ; @.str.1
	.asciz	"NFS lock recovery for %s"

	.no_dead_strip	_nlm_host_notify
.subsections_via_symbols
