	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nlm_host_unmonitor
_nlm_host_unmonitor:                    ## @nlm_host_unmonitor
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edx
	movl	8(%rdi), %ecx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_NLM_DEBUG
	movl	(%rbx), %eax
	movl	%eax, -64(%rbp)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, -56(%rbp)
	movq	_NLM_PROG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_NLM_SM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_NLM_SM_NOTIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	$25, -32(%rbp)
	movq	$0, -24(%rbp)
	movq	_nlm_nsm@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SM_UNMON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_xdr_mon@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_xdr_sm_stat@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movups	-32(%rbp), %xmm0
	movups	%xmm0, (%rsp)
	leaq	-64(%rbp), %rcx
	leaq	-16(%rbp), %r9
	callq	_CLNT_CALL
	movq	_RPC_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.2:
	movq	-16(%rbp), %rax
	movq	_stat_fail@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	(%rbx), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_NLM_ERR
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_NLM_ERR
	jmp	LBB0_5
LBB0_4:
	movq	_NLM_UNMONITORED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
LBB0_5:
	addq	$72, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NLM: unmonitoring %s (sysid %d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"localhost"

	.comm	_NLM_PROG,4,2                   ## @NLM_PROG
	.comm	_NLM_SM,4,2                     ## @NLM_SM
	.comm	_NLM_SM_NOTIFY,4,2              ## @NLM_SM_NOTIFY
	.comm	_nlm_nsm,4,2                    ## @nlm_nsm
	.comm	_SM_UNMON,4,2                   ## @SM_UNMON
	.comm	_xdr_mon,8,3                    ## @xdr_mon
	.comm	_xdr_sm_stat,8,3                ## @xdr_sm_stat
	.comm	_RPC_SUCCESS,4,2                ## @RPC_SUCCESS
L_.str.2:                               ## @.str.2
	.asciz	"Failed to contact local NSM - rpc error %d\n"

	.comm	_stat_fail,8,3                  ## @stat_fail
L_.str.3:                               ## @.str.3
	.asciz	"Local NSM refuses to unmonitor %s\n"

	.comm	_NLM_UNMONITORED,4,2            ## @NLM_UNMONITORED
	.no_dead_strip	_nlm_host_unmonitor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nlm_host_unmonitor
_nlm_host_unmonitor:                    ; @nlm_host_unmonitor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w2, [x0]
	ldr	w3, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_NLM_DEBUG
	ldr	w8, [x19]
	str	w8, [sp, #16]
Lloh2:
	adrp	x8, l_.str.1@PAGE
Lloh3:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [sp, #24]
Lloh4:
	adrp	x8, _NLM_PROG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NLM_PROG@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [sp, #40]
Lloh7:
	adrp	x8, _NLM_SM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NLM_SM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _NLM_SM_NOTIFY@GOTPAGE
Lloh11:
	ldr	x9, [x9, _NLM_SM_NOTIFY@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #32]
Lloh13:
	adrp	x8, _nlm_nsm@GOTPAGE
Lloh14:
	ldr	x8, [x8, _nlm_nsm@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _SM_UNMON@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SM_UNMON@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _xdr_mon@GOTPAGE
Lloh20:
	ldr	x8, [x8, _xdr_mon@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	adrp	x8, _xdr_sm_stat@GOTPAGE
Lloh23:
	ldr	x8, [x8, _xdr_sm_stat@GOTPAGEOFF]
Lloh24:
	ldr	w4, [x8]
	add	x3, sp, #16
	add	x5, sp, #8
	mov	w6, #25
	mov	x7, #0
	bl	_CLNT_CALL
Lloh25:
	adrp	x8, _RPC_SUCCESS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RPC_SUCCESS@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [sp, #8]
Lloh28:
	adrp	x9, _stat_fail@GOTPAGE
Lloh29:
	ldr	x9, [x9, _stat_fail@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	w1, [x19]
Lloh31:
	adrp	x0, l_.str.3@PAGE
Lloh32:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_NLM_ERR
	b	LBB0_5
LBB0_3:
	mov	x1, x0
Lloh33:
	adrp	x0, l_.str.2@PAGE
Lloh34:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_NLM_ERR
	b	LBB0_5
LBB0_4:
Lloh35:
	adrp	x8, _NLM_UNMONITORED@GOTPAGE
Lloh36:
	ldr	x8, [x8, _NLM_UNMONITORED@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NLM: unmonitoring %s (sysid %d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"localhost"

	.comm	_NLM_PROG,4,2                   ; @NLM_PROG
	.comm	_NLM_SM,4,2                     ; @NLM_SM
	.comm	_NLM_SM_NOTIFY,4,2              ; @NLM_SM_NOTIFY
	.comm	_nlm_nsm,4,2                    ; @nlm_nsm
	.comm	_SM_UNMON,4,2                   ; @SM_UNMON
	.comm	_xdr_mon,8,3                    ; @xdr_mon
	.comm	_xdr_sm_stat,8,3                ; @xdr_sm_stat
	.comm	_RPC_SUCCESS,4,2                ; @RPC_SUCCESS
l_.str.2:                               ; @.str.2
	.asciz	"Failed to contact local NSM - rpc error %d\n"

	.comm	_stat_fail,8,3                  ; @stat_fail
l_.str.3:                               ; @.str.3
	.asciz	"Local NSM refuses to unmonitor %s\n"

	.comm	_NLM_UNMONITORED,4,2            ; @NLM_UNMONITORED
	.no_dead_strip	_nlm_host_unmonitor
.subsections_via_symbols
