	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpc_get_answer
_rpc_get_answer:                        ## @rpc_get_answer
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	leaq	_rpc_get_answer(%rip), %rdi
	movsd	%xmm0, -24(%rbp)                ## 8-byte Spill
	callq	_START_TIMER
	xorl	%eax, %eax
	callq	_update_precise_now
	movq	_precise_now@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movsd	-24(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	ucomisd	(%r14), %xmm0
	jbe	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	ja	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movsd	-24(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_rpc_poll
	xorl	%eax, %eax
	callq	_update_precise_now
	jmp	LBB0_3
LBB0_6:
	movl	(%rbx), %eax
LBB0_7:
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_8
## %bb.12:
	movq	%rbx, %rdi
	callq	_rpc_query_delete
	movq	_timedout_queries@GOTPCREL(%rip), %rax
	incl	(%rax)
	movl	$-1, %r14d
	jmp	LBB0_14
LBB0_1:
	movl	$-1, %r14d
	jmp	LBB0_15
LBB0_8:
	cmpl	$131, %eax
	je	LBB0_13
## %bb.9:
	xorl	%r14d, %r14d
	cmpl	$132, %eax
	jne	LBB0_14
## %bb.10:
	movq	_query_completed@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	4(%rbx), %esi
	callq	_tree_delete_qid
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	callq	_rpc_query_delete
	movl	$-1, %r14d
	jmp	LBB0_14
LBB0_13:
	movq	_query_completed@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	4(%rbx), %esi
	callq	_tree_delete_qid
	movl	%eax, (%r14)
	movl	$1, %r14d
LBB0_14:
	leaq	_rpc_get_answer(%rip), %rdi
	callq	_END_TIMER
LBB0_15:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_precise_now,8,3                ## @precise_now
	.comm	_timedout_queries,4,2           ## @timedout_queries
	.comm	_query_completed,4,2            ## @query_completed
	.no_dead_strip	_rpc_get_answer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpc_get_answer
_rpc_get_answer:                        ; @rpc_get_answer
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -40
	.cfi_offset b9, -48
	cbz	x0, LBB0_8
; %bb.1:
	fmov	d8, d0
	mov	x19, x0
Lloh0:
	adrp	x0, _rpc_get_answer@PAGE
Lloh1:
	add	x0, x0, _rpc_get_answer@PAGEOFF
	bl	_START_TIMER
	bl	_update_precise_now
Lloh2:
	adrp	x20, _precise_now@GOTPAGE
Lloh3:
	ldr	x20, [x20, _precise_now@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x20]
	fcmp	d0, d8
	b.pl	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19]
	sub	w9, w8, #128
	cmp	w9, #2
	b.hi	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	fmov	d0, d8
	bl	_rpc_poll
	bl	_update_precise_now
	b	LBB0_2
LBB0_5:
	ldr	w8, [x19]
LBB0_6:
	sub	w9, w8, #128
	cmp	w9, #3
	b.hs	LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_rpc_query_delete
Lloh4:
	adrp	x8, _timedout_queries@GOTPAGE
Lloh5:
	ldr	x8, [x8, _timedout_queries@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_12
LBB0_8:
	mov	w19, #-1
	b	LBB0_16
LBB0_9:
	cmp	w8, #131
	b.eq	LBB0_13
; %bb.10:
	cmp	w8, #132
	b.ne	LBB0_14
; %bb.11:
Lloh6:
	adrp	x20, _query_completed@GOTPAGE
Lloh7:
	ldr	x20, [x20, _query_completed@GOTPAGEOFF]
	ldr	w0, [x20]
	ldr	w1, [x19, #4]
	bl	_tree_delete_qid
	str	w0, [x20]
	mov	x0, x19
	bl	_rpc_query_delete
LBB0_12:
	mov	w19, #-1
	b	LBB0_15
LBB0_13:
Lloh8:
	adrp	x20, _query_completed@GOTPAGE
Lloh9:
	ldr	x20, [x20, _query_completed@GOTPAGEOFF]
	ldr	w0, [x20]
	ldr	w1, [x19, #4]
	bl	_tree_delete_qid
	str	w0, [x20]
	mov	w19, #1
	b	LBB0_15
LBB0_14:
	mov	w19, #0
LBB0_15:
Lloh10:
	adrp	x0, _rpc_get_answer@PAGE
Lloh11:
	add	x0, x0, _rpc_get_answer@PAGEOFF
	bl	_END_TIMER
LBB0_16:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_precise_now,8,3                ; @precise_now
	.comm	_timedout_queries,4,2           ; @timedout_queries
	.comm	_query_completed,4,2            ; @query_completed
	.no_dead_strip	_rpc_get_answer
.subsections_via_symbols
