	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpc_open
_rpc_open:                              ## @rpc_open
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	cmpl	$128, %eax
	je	LBB0_8
## %bb.1:
	cmpl	$130, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$129, %eax
	je	LBB0_3
	jmp	LBB0_12
LBB0_8:
	xorl	%eax, %eax
	callq	_update_precise_now
	movq	8(%rbx), %rax
	testq	%rax, %rax
	js	LBB0_10
## %bb.9:
	movq	_precise_now@GOTPCREL(%rip), %rcx
	addq	16(%rbx), %rax
	cmpq	%rax, (%rcx)
	jge	LBB0_3
LBB0_10:
	testq	%r15, %r15
	je	LBB0_12
## %bb.11:
	leaq	L_.str(%rip), %rdi
	callq	_estrdup
	movq	%rax, (%r15)
	movl	$0, (%r14)
	jmp	LBB0_12
LBB0_3:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	__rpc_connect_open
	movl	$1, %r12d
LBB0_7:
	testl	%eax, %eax
	jg	LBB0_13
LBB0_12:
	movl	$-1, %r12d
LBB0_13:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	callq	_update_precise_now
	movq	_precise_now@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	24(%rbx), %rax
	movq	_ping_timeout@GOTPCREL(%rip), %rcx
	movl	$1, %r12d
	cmpq	(%rcx), %rax
	jle	LBB0_13
## %bb.5:
	movq	%rbx, %rdi
	callq	_rpc_ping
	testl	%eax, %eax
	jg	LBB0_13
## %bb.6:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	__rpc_connect_open
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_precise_now,8,3                ## @precise_now
	.comm	_ping_timeout,8,3               ## @ping_timeout
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"server failed some time ago. Fail timeout not exceeded."

	.no_dead_strip	_rpc_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpc_open
_rpc_open:                              ; @rpc_open
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #130
	b.eq	LBB0_7
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_11
	b	LBB0_9
LBB0_3:
	bl	_update_precise_now
	ldr	x8, [x21, #8]
	tbnz	x8, #63, LBB0_5
; %bb.4:
Lloh0:
	adrp	x9, _precise_now@GOTPAGE
Lloh1:
	ldr	x9, [x9, _precise_now@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x10, [x21, #16]
	add	x8, x10, x8
	cmp	x9, x8
	b.ge	LBB0_9
LBB0_5:
	cbz	x20, LBB0_11
; %bb.6:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_estrdup
	str	x0, [x20]
	str	wzr, [x19]
	b	LBB0_11
LBB0_7:
	bl	_update_precise_now
Lloh5:
	adrp	x8, _precise_now@GOTPAGE
Lloh6:
	ldr	x8, [x8, _precise_now@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x9, [x21, #24]
Lloh8:
	adrp	x10, _ping_timeout@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ping_timeout@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	sub	x8, x8, x9
	cmp	x8, x10
	b.le	LBB0_10
; %bb.8:
	mov	x0, x21
	bl	_rpc_ping
	cmp	w0, #0
	b.gt	LBB0_10
LBB0_9:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	__rpc_connect_open
	cmp	w0, #0
	b.le	LBB0_11
LBB0_10:
	mov	w0, #1
	b	LBB0_12
LBB0_11:
	mov	w0, #-1
LBB0_12:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_precise_now,8,3                ; @precise_now
	.comm	_ping_timeout,8,3               ; @ping_timeout
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"server failed some time ago. Fail timeout not exceeded."

	.no_dead_strip	_rpc_open
.subsections_via_symbols
