	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nlm_host_get_rpc               ## -- Begin function nlm_host_get_rpc
	.p2align	4, 0x90
_nlm_host_get_rpc:                      ## @nlm_host_get_rpc
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_mtx_lock
	xorl	%eax, %eax
	testq	%rbx, %rbx
	setne	%al
	shlq	$4, %rax
	leaq	(%rax,%r14), %r15
	addq	$16, %r15
	movq	24(%rax,%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	movq	_time_uptime@GOTPCREL(%rip), %rax
	movq	(%r15), %rcx
	addq	$120, %rcx
	cmpq	%rcx, (%rax)
	jle	LBB0_9
## %bb.2:
	movq	$0, 8(%r15)
	movq	%r14, %rdi
	callq	_mtx_unlock
	movq	%rbx, %rdi
	callq	_CLNT_RELEASE
	movq	%r14, %rdi
	callq	_mtx_lock
	movq	8(%r15), %rbx
	testq	%rbx, %rbx
	jne	LBB0_9
LBB0_3:
	movq	%r14, %rdi
	callq	_mtx_unlock
	leaq	8(%r14), %rdi
	movq	_NLM_PROG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	callq	_nlm_get_rpc
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_mtx_lock
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.4:
	cmpq	$0, 8(%r15)
	je	LBB0_8
## %bb.5:
	movq	%r14, %rdi
	callq	_mtx_unlock
	movq	%rbx, %rdi
	callq	_CLNT_DESTROY
	movq	%r14, %rdi
	callq	_mtx_lock
LBB0_6:
	movq	8(%r15), %rbx
	testq	%rbx, %rbx
	jne	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_8:
	movq	%rbx, 8(%r15)
	movq	_time_uptime@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
LBB0_9:
	movq	%rbx, %rdi
	callq	_CLNT_ACQUIRE
LBB0_10:
	movq	%r14, %rdi
	callq	_mtx_unlock
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_time_uptime,8,3                ## @time_uptime
	.comm	_NLM_PROG,4,2                   ## @NLM_PROG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nlm_host_get_rpc               ; -- Begin function nlm_host_get_rpc
	.p2align	2
_nlm_host_get_rpc:                      ; @nlm_host_get_rpc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_mtx_lock
	add	x8, x19, #32
	add	x9, x19, #16
	cmp	x20, #0
	csel	x21, x9, x8, eq
	ldr	x20, [x21, #8]
	cbz	x20, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _time_uptime@GOTPAGE
Lloh1:
	ldr	x8, [x8, _time_uptime@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x21]
	add	x9, x9, #120
	cmp	x8, x9
	b.le	LBB0_8
; %bb.2:
	str	xzr, [x21, #8]
	mov	x0, x19
	bl	_mtx_unlock
	mov	x0, x20
	bl	_CLNT_RELEASE
	mov	x0, x19
	bl	_mtx_lock
	ldr	x20, [x21, #8]
	cbnz	x20, LBB0_8
LBB0_3:
	mov	x0, x19
	bl	_mtx_unlock
	add	x0, x19, #8
Lloh3:
	adrp	x8, _NLM_PROG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NLM_PROG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
	bl	_nlm_get_rpc
	mov	x20, x0
	mov	x0, x19
	bl	_mtx_lock
	cbz	x20, LBB0_6
; %bb.4:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_mtx_unlock
	mov	x0, x20
	bl	_CLNT_DESTROY
	mov	x0, x19
	bl	_mtx_lock
LBB0_6:
	ldr	x20, [x21, #8]
	cbnz	x20, LBB0_8
	b	LBB0_9
LBB0_7:
Lloh6:
	adrp	x8, _time_uptime@GOTPAGE
Lloh7:
	ldr	x8, [x8, _time_uptime@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	stp	x8, x20, [x21]
LBB0_8:
	mov	x0, x20
	bl	_CLNT_ACQUIRE
LBB0_9:
	mov	x0, x19
	bl	_mtx_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_time_uptime,8,3                ; @time_uptime
	.comm	_NLM_PROG,4,2                   ; @NLM_PROG
.subsections_via_symbols
