	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpc_check_ready                ## -- Begin function rpc_check_ready
	.p2align	4, 0x90
_rpc_check_ready:                       ## @rpc_check_ready
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_precise_now@GOTPCREL(%rip), %r14
	movsd	(%r14), %xmm2                   ## xmm2 = mem[0],zero
	movq	(%rdi), %rax
	movq	_conn_connecting@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.1:
	movsd	8(%rbx), %xmm0                  ## xmm0 = mem[0],zero
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	jne	LBB0_4
	jp	LBB0_4
## %bb.2:
	movq	_conn_wait_answer@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.3:
	movq	_conn_reading_answer@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
LBB0_4:
	movq	%rbx, %rdi
	movsd	%xmm2, -24(%rbp)                ## 8-byte Spill
	callq	_RPCS_DATA
	movsd	-24(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	cmpq	$0, (%rax)
	js	LBB0_15
## %bb.5:
	movsd	16(%rbx), %xmm1                 ## xmm1 = mem[0],zero
	movq	_ping_interval@GOTPCREL(%rip), %rax
	movapd	%xmm2, %xmm0
	subsd	(%rax), %xmm0
	ucomisd	%xmm1, %xmm0
	jbe	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_lrand48
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_net_rpc_send_ping
	movsd	-24(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movsd	(%r14), %xmm1                   ## xmm1 = mem[0],zero
	movsd	%xmm1, 16(%rbx)
LBB0_7:
	movsd	8(%rbx), %xmm3                  ## xmm3 = mem[0],zero
	movq	_FAIL_INTERVAL@GOTPCREL(%rip), %rax
	movapd	%xmm2, %xmm0
	subsd	(%rax), %xmm0
	ucomisd	%xmm3, %xmm0
	ja	LBB0_9
## %bb.8:
	movl	24(%rbx), %r9d
	cmpl	$5001, %r9d                     ## imm = 0x1389
	jl	LBB0_20
LBB0_9:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_12
## %bb.10:
	movl	28(%rbx), %ecx
	movq	_cr_failed@GOTPCREL(%rip), %rax
	movslq	(%rax), %r8
	cmpl	%r8d, %ecx
	je	LBB0_12
## %bb.11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%rbx), %r9d
	movl	32(%rbx), %edx
	movsd	40(%rbx), %xmm2                 ## xmm2 = mem[0],zero
	movsd	(%r14), %xmm4                   ## xmm4 = mem[0],zero
	leaq	L_.str(%rip), %rsi
	xorpd	%xmm0, %xmm0
	callq	_fprintf
LBB0_12:
	movq	%rbx, %rdi
	movl	$-5, %esi
	callq	_fail_connection
LBB0_13:
	movq	_cr_failed@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	jmp	LBB0_19
LBB0_15:
	movq	_CONNECT_TIMEOUT@GOTPCREL(%rip), %rax
	subsd	(%rax), %xmm2
	ucomisd	16(%rbx), %xmm2
	jbe	LBB0_17
## %bb.16:
	movq	%rbx, %rdi
	movl	$-6, %esi
	callq	_fail_connection
	movq	_cr_failed@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_17:
	movq	_cr_notyet@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
LBB0_19:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_20:
	movq	_STOP_INTERVAL@GOTPCREL(%rip), %rax
	subsd	(%rax), %xmm2
	ucomisd	%xmm3, %xmm2
	ja	LBB0_30
## %bb.21:
	cmpl	$2001, %r9d                     ## imm = 0x7D1
	jge	LBB0_30
## %bb.22:
	movq	_C_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 48(%rbx)
	jne	LBB0_13
## %bb.23:
	xorpd	%xmm0, %xmm0
	ucomisd	%xmm0, %xmm3
	jbe	LBB0_13
## %bb.24:
	movq	(%rbx), %rax
	movq	_conn_wait_answer@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_26
## %bb.25:
	movq	_conn_reading_answer@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
LBB0_26:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_29
## %bb.27:
	movslq	28(%rbx), %rcx
	movq	_cr_ok@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	cmpq	%rcx, %r8
	je	LBB0_29
## %bb.28:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%rbx), %edx
	movsd	40(%rbx), %xmm2                 ## xmm2 = mem[0],zero
	movsd	(%r14), %xmm4                   ## xmm4 = mem[0],zero
	leaq	L_.str.2(%rip), %rsi
	xorpd	%xmm0, %xmm0
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_fprintf
LBB0_29:
	movq	_cr_ok@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_30:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_33
## %bb.31:
	movslq	28(%rbx), %rcx
	movq	_cr_stopped@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	cmpq	%rcx, %r8
	je	LBB0_33
## %bb.32:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%rbx), %edx
	movsd	40(%rbx), %xmm2                 ## xmm2 = mem[0],zero
	movsd	(%r14), %xmm4                   ## xmm4 = mem[0],zero
	leaq	L_.str.1(%rip), %rsi
	xorpd	%xmm0, %xmm0
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_fprintf
LBB0_33:
	movq	_cr_stopped@GOTPCREL(%rip), %rax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_precise_now,8,3                ## @precise_now
	.comm	_conn_connecting,8,3            ## @conn_connecting
	.comm	_conn_wait_answer,8,3           ## @conn_wait_answer
	.comm	_conn_reading_answer,8,3        ## @conn_reading_answer
	.comm	_CONNECT_TIMEOUT,8,3            ## @CONNECT_TIMEOUT
	.comm	_cr_failed,4,2                  ## @cr_failed
	.comm	_cr_notyet,4,2                  ## @cr_notyet
	.comm	_ping_interval,8,3              ## @ping_interval
	.comm	_FAIL_INTERVAL,8,3              ## @FAIL_INTERVAL
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"changing connection %d readiness from %d to %d [FAILED] fq=%.03f lq=%.03f lqt=%.03f lr=%.03f now=%.03f unr=%d\n"

	.comm	_STOP_INTERVAL,8,3              ## @STOP_INTERVAL
	.comm	_cr_stopped,8,3                 ## @cr_stopped
L_.str.1:                               ## @.str.1
	.asciz	"changing connection %d readiness from %d to %d [STOPPED] fq=%.03f lq=%.03f lqt=%.03f lr=%.03f now=%.03f unr=%d\n"

	.comm	_C_FAILED,4,2                   ## @C_FAILED
	.comm	_cr_ok,8,3                      ## @cr_ok
L_.str.2:                               ## @.str.2
	.asciz	"changing connection %d readiness from %d to %d [OK] fq=%.03f lq=%.03f lqt=%.03f lr=%.03f now=%.03f unr=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpc_check_ready                ; -- Begin function rpc_check_ready
	.p2align	2
_rpc_check_ready:                       ; @rpc_check_ready
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.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
	.cfi_offset b8, -56
	.cfi_offset b9, -64
	mov	x19, x0
Lloh0:
	adrp	x20, _precise_now@GOTPAGE
Lloh1:
	ldr	x20, [x20, _precise_now@GOTPAGEOFF]
	ldr	d8, [x20]
	ldr	x8, [x0]
Lloh2:
	adrp	x9, _conn_connecting@GOTPAGE
Lloh3:
	ldr	x9, [x9, _conn_connecting@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.1:
	ldr	d0, [x19, #8]
	fcmp	d0, #0.0
	b.ne	LBB0_3
; %bb.2:
Lloh5:
	adrp	x9, _conn_wait_answer@GOTPAGE
Lloh6:
	ldr	x9, [x9, _conn_wait_answer@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x10, _conn_reading_answer@GOTPAGE
Lloh9:
	ldr	x10, [x10, _conn_reading_answer@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_13
LBB0_3:
	mov	x0, x19
	bl	_RPCS_DATA
	ldr	x8, [x0]
	tbnz	x8, #63, LBB0_13
; %bb.4:
	ldr	d1, [x19, #16]
Lloh11:
	adrp	x8, _ping_interval@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ping_interval@GOTPAGEOFF]
Lloh13:
	ldr	d0, [x8]
	fsub	d0, d8, d0
	fcmp	d1, d0
	b.pl	LBB0_6
; %bb.5:
	bl	_lrand48
	mov	x1, x0
	mov	x0, x19
	bl	_net_rpc_send_ping
	ldr	d1, [x20]
	str	d1, [x19, #16]
LBB0_6:
	ldr	d3, [x19, #8]
Lloh14:
	adrp	x8, _FAIL_INTERVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FAIL_INTERVAL@GOTPAGEOFF]
Lloh16:
	ldr	d0, [x8]
	fsub	d0, d8, d0
	fcmp	d3, d0
	b.mi	LBB0_8
; %bb.7:
	ldr	w5, [x19, #24]
	mov	w8, #5001
	cmp	w5, w8
	b.lt	LBB0_18
LBB0_8:
Lloh17:
	adrp	x8, _verbosity@GOTPAGE
Lloh18:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_11
; %bb.9:
	ldr	w3, [x19, #28]
Lloh20:
	adrp	x8, _cr_failed@GOTPAGE
Lloh21:
	ldr	x8, [x8, _cr_failed@GOTPAGEOFF]
Lloh22:
	ldrsw	x4, [x8]
	cmp	w3, w4
	b.eq	LBB0_11
; %bb.10:
Lloh23:
	adrp	x8, _stderr@GOTPAGE
Lloh24:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ldr	w2, [x19, #32]
	ldr	d2, [x19, #40]
	ldr	d4, [x20]
	ldr	w5, [x19, #24]
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	movi	d0, #0000000000000000
	bl	_fprintf
LBB0_11:
	mov	x0, x19
	mov	w1, #-5
	bl	_fail_connection
LBB0_12:
Lloh28:
	adrp	x8, _cr_failed@GOTPAGE
Lloh29:
	ldr	x8, [x8, _cr_failed@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	str	w0, [x19, #28]
	b	LBB0_17
LBB0_13:
	ldr	d0, [x19, #16]
Lloh31:
	adrp	x8, _CONNECT_TIMEOUT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CONNECT_TIMEOUT@GOTPAGEOFF]
Lloh33:
	ldr	d1, [x8]
	fsub	d1, d8, d1
	fcmp	d0, d1
	b.pl	LBB0_15
; %bb.14:
	mov	x0, x19
	mov	w1, #-6
	bl	_fail_connection
Lloh34:
	adrp	x8, _cr_failed@GOTPAGE
Lloh35:
	ldr	x8, [x8, _cr_failed@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh36:
	adrp	x8, _cr_notyet@GOTPAGE
Lloh37:
	ldr	x8, [x8, _cr_notyet@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
LBB0_17:
	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
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
LBB0_18:
Lloh38:
	adrp	x8, _STOP_INTERVAL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _STOP_INTERVAL@GOTPAGEOFF]
Lloh40:
	ldr	d0, [x8]
	fsub	d0, d8, d0
	fcmp	d3, d0
	b.mi	LBB0_27
; %bb.19:
	cmp	w5, #2001
	b.ge	LBB0_27
; %bb.20:
	ldr	w8, [x19, #48]
Lloh41:
	adrp	x9, _C_FAILED@GOTPAGE
Lloh42:
	ldr	x9, [x9, _C_FAILED@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_12
; %bb.21:
	fcmp	d3, #0.0
	b.le	LBB0_12
; %bb.22:
	ldr	x8, [x19]
Lloh44:
	adrp	x9, _conn_wait_answer@GOTPAGE
Lloh45:
	ldr	x9, [x9, _conn_wait_answer@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_24
; %bb.23:
Lloh47:
	adrp	x9, _conn_reading_answer@GOTPAGE
Lloh48:
	ldr	x9, [x9, _conn_reading_answer@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
LBB0_24:
Lloh50:
	adrp	x8, _verbosity@GOTPAGE
Lloh51:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
Lloh53:
	adrp	x21, _cr_ok@GOTPAGE
Lloh54:
	ldr	x21, [x21, _cr_ok@GOTPAGEOFF]
	cmp	w8, #2
	b.lt	LBB0_31
; %bb.25:
	ldrsw	x3, [x19, #28]
	ldr	x4, [x21]
	cmp	x4, x3
	b.eq	LBB0_31
; %bb.26:
Lloh55:
	adrp	x8, _stderr@GOTPAGE
Lloh56:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh57:
	ldr	w0, [x8]
	ldr	w2, [x19, #32]
	ldr	d2, [x19, #40]
	ldr	d4, [x20]
Lloh58:
	adrp	x1, l_.str.2@PAGE
Lloh59:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_30
LBB0_27:
Lloh60:
	adrp	x8, _verbosity@GOTPAGE
Lloh61:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh62:
	ldr	w8, [x8]
Lloh63:
	adrp	x21, _cr_stopped@GOTPAGE
Lloh64:
	ldr	x21, [x21, _cr_stopped@GOTPAGEOFF]
	cmp	w8, #2
	b.lt	LBB0_31
; %bb.28:
	ldrsw	x3, [x19, #28]
	ldr	x4, [x21]
	cmp	x4, x3
	b.eq	LBB0_31
; %bb.29:
Lloh65:
	adrp	x8, _stderr@GOTPAGE
Lloh66:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh67:
	ldr	w0, [x8]
	ldr	w2, [x19, #32]
	ldr	d2, [x19, #40]
	ldr	d4, [x20]
Lloh68:
	adrp	x1, l_.str.1@PAGE
Lloh69:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_30:
	movi	d0, #0000000000000000
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_fprintf
LBB0_31:
	ldr	w0, [x21]
	str	w0, [x19, #28]
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.cfi_endproc
                                        ; -- End function
	.comm	_precise_now,8,3                ; @precise_now
	.comm	_conn_connecting,8,3            ; @conn_connecting
	.comm	_conn_wait_answer,8,3           ; @conn_wait_answer
	.comm	_conn_reading_answer,8,3        ; @conn_reading_answer
	.comm	_CONNECT_TIMEOUT,8,3            ; @CONNECT_TIMEOUT
	.comm	_cr_failed,4,2                  ; @cr_failed
	.comm	_cr_notyet,4,2                  ; @cr_notyet
	.comm	_ping_interval,8,3              ; @ping_interval
	.comm	_FAIL_INTERVAL,8,3              ; @FAIL_INTERVAL
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"changing connection %d readiness from %d to %d [FAILED] fq=%.03f lq=%.03f lqt=%.03f lr=%.03f now=%.03f unr=%d\n"

	.comm	_STOP_INTERVAL,8,3              ; @STOP_INTERVAL
	.comm	_cr_stopped,8,3                 ; @cr_stopped
l_.str.1:                               ; @.str.1
	.asciz	"changing connection %d readiness from %d to %d [STOPPED] fq=%.03f lq=%.03f lqt=%.03f lr=%.03f now=%.03f unr=%d\n"

	.comm	_C_FAILED,4,2                   ; @C_FAILED
	.comm	_cr_ok,8,3                      ; @cr_ok
l_.str.2:                               ; @.str.2
	.asciz	"changing connection %d readiness from %d to %d [OK] fq=%.03f lq=%.03f lqt=%.03f lr=%.03f now=%.03f unr=%d\n"

.subsections_via_symbols
