	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpc_proxy_search_on_end        ## -- Begin function rpc_proxy_search_on_end
	.p2align	4, 0x90
_rpc_proxy_search_on_end:               ## @rpc_proxy_search_on_end
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	8(%rdi), %rbx
	movl	(%rbx), %r14d
	movl	4(%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	callq	_clear_gather_heap
	movq	_FLAG_RETRY_SEARCH@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_4
## %bb.1:
	cmpq	$0, 24(%r13)
	je	LBB0_4
## %bb.2:
	cmpq	$0, 8(%rbx)
	je	LBB0_3
LBB0_4:
	cmpl	$0, (%r13)
	jle	LBB0_12
## %bb.5:
	movl	$8, %ebx
	xorl	%r15d, %r15d
	movq	_verbosity@GOTPCREL(%rip), %r12
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r15
	movslq	(%r13), %rax
	addq	$16, %rbx
	cmpq	%rax, %r15
	jge	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movq	-8(%rax,%rbx), %rcx
	testq	%rcx, %rcx
	js	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rax,%rbx), %edi
	movq	%rcx, %rsi
	callq	_gather_heap_insert
	testl	%eax, %eax
	jns	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_received_bad_answers@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$4, (%r12)
	jl	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_fprintf
	jmp	LBB0_11
LBB0_12:
	movq	%r13, %rdi
	callq	_merge_init_response
	testl	%eax, %eax
	je	LBB0_34
## %bb.13:
	movq	_TL_SEARCH_RESULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tl_store_int
	movq	_GH_n@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tl_store_int
	movq	_GH_total@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tl_store_int
	movl	$4, %edi
	callq	_tl_store_get_ptr
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_FLAG_GROUP_HASH@GOTPCREL(%rip), %r15
	testl	%r14d, (%r15)
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_15
## %bb.14:
	movl	%ebx, %edi
	callq	_hashset_init
LBB0_15:
	xorl	%r12d, %r12d
	testl	%ebx, %ebx
	jle	LBB0_16
## %bb.17:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_18 Depth=1
	xorl	%eax, %eax
	callq	_gather_heap_advance
	incl	%r12d
	cmpl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	jge	LBB0_30
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_get_gather_heap_head
	testq	%rax, %rax
	je	LBB0_30
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%rax, %rbx
	testl	%r14d, (%r15)
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	(%rbx), %rdi
	callq	_hashset_insert
	testl	%eax, %eax
	je	LBB0_21
LBB0_22:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	_GH_n@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	8(%rbx), %edi
	callq	_tl_store_int
LBB0_24:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	12(%rbx), %edi
	callq	_tl_store_int
	movq	_FLAG_SORT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	16(%rbx), %edi
	callq	_tl_store_int
LBB0_26:                                ##   in Loop: Header=BB0_18 Depth=1
	testl	%r14d, (%r15)
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	(%rbx), %rdi
	callq	_tl_store_long
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_18 Depth=1
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	xorl	%eax, %eax
	callq	_gather_heap_advance
	cmpl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	jl	LBB0_18
LBB0_30:
	testl	%r14d, (%r15)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_33
## %bb.31:
	testl	%r12d, %r12d
	je	LBB0_33
## %bb.32:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	%r12d, %eax
	movl	%eax, -56(%rbp)
	fildl	-56(%rbp)
	movl	%r12d, -52(%rbp)
	fidivl	-52(%rbp)
	movq	_cum_hash_ratio@GOTPCREL(%rip), %rax
	fldt	(%rax)
	faddp	%st, %st(1)
	fstpt	(%rax)
	movq	_tot_hash_ratio@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_33
LBB0_16:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
LBB0_33:
	movl	%r12d, (%rcx)
	xorl	%eax, %eax
	callq	_tl_store_end
LBB0_34:
	movq	8(%r13), %rdi
	callq	_free
	movq	%r13, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_merge_delete                   ## TAILCALL
LBB0_3:
	movq	%r13, %rdi
	callq	_check_resend
	testq	%rax, %rax
	jle	LBB0_4
## %bb.35:
	incq	8(%rbx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAG_RETRY_SEARCH,4,2          ## @FLAG_RETRY_SEARCH
	.comm	_received_bad_answers,4,2       ## @received_bad_answers
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Dropping result %d (num = %d)\n"

	.comm	_TL_SEARCH_RESULT,4,2           ## @TL_SEARCH_RESULT
	.comm	_GH_n,4,2                       ## @GH_n
	.comm	_GH_total,4,2                   ## @GH_total
	.comm	_FLAG_GROUP_HASH,4,2            ## @FLAG_GROUP_HASH
	.comm	_FLAG_SORT,4,2                  ## @FLAG_SORT
	.comm	_cum_hash_ratio,16,4            ## @cum_hash_ratio
	.comm	_tot_hash_ratio,4,2             ## @tot_hash_ratio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpc_proxy_search_on_end        ; -- Begin function rpc_proxy_search_on_end
	.p2align	2
_rpc_proxy_search_on_end:               ; @rpc_proxy_search_on_end
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x22, [x0, #8]
	ldp	w20, w21, [x22]
	mov	x0, x20
	bl	_clear_gather_heap
Lloh0:
	adrp	x8, _FLAG_RETRY_SEARCH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLAG_RETRY_SEARCH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_32
LBB0_3:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.4:
	mov	x24, #0
	mov	x22, #0
Lloh3:
	adrp	x25, _received_bad_answers@GOTPAGE
Lloh4:
	ldr	x25, [x25, _received_bad_answers@GOTPAGEOFF]
Lloh5:
	adrp	x26, _verbosity@GOTPAGE
Lloh6:
	ldr	x26, [x26, _verbosity@GOTPAGEOFF]
Lloh7:
	adrp	x27, _stderr@GOTPAGE
Lloh8:
	ldr	x27, [x27, _stderr@GOTPAGEOFF]
Lloh9:
	adrp	x23, l_.str@PAGE
Lloh10:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19]
	add	x24, x24, #16
	cmp	x22, x8
	b.ge	LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x3, [x8, x24]
	tbnz	x3, #63, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x8, x24
	ldr	w0, [x8, #8]
	mov	x1, x3
	bl	_gather_heap_insert
	tbz	w0, #31, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x25]
	add	w8, w8, #1
	str	w8, [x25]
	b	LBB0_5
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x26]
	cmp	w8, #4
	b.lt	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x27]
	mov	x1, x23
	mov	x2, x22
	bl	_fprintf
	b	LBB0_5
LBB0_11:
	mov	x0, x19
	bl	_merge_init_response
	cbz	w0, LBB0_31
; %bb.12:
Lloh11:
	adrp	x8, _TL_SEARCH_RESULT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TL_SEARCH_RESULT@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_tl_store_int
Lloh14:
	adrp	x24, _GH_n@GOTPAGE
Lloh15:
	ldr	x24, [x24, _GH_n@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_tl_store_int
Lloh16:
	adrp	x8, _GH_total@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GH_total@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_tl_store_int
	mov	w0, #4
	bl	_tl_store_get_ptr
	mov	x22, x0
Lloh19:
	adrp	x26, _FLAG_GROUP_HASH@GOTPAGE
Lloh20:
	ldr	x26, [x26, _FLAG_GROUP_HASH@GOTPAGEOFF]
	ldr	w8, [x26]
	tst	w8, w20
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x21
	bl	_hashset_init
LBB0_14:
	cmp	w21, #1
	b.lt	LBB0_29
; %bb.15:
	mov	w25, #0
	mov	w27, #0
Lloh21:
	adrp	x28, _FLAG_SORT@GOTPAGE
Lloh22:
	ldr	x28, [x28, _FLAG_SORT@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	bl	_gather_heap_advance
	add	w25, w25, #1
	cmp	w25, w21
	b.ge	LBB0_27
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	bl	_get_gather_heap_head
	cbz	x0, LBB0_27
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x23, x0
	ldr	w8, [x26]
	tst	w8, w20
	b.eq	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x0, [x23]
	bl	_hashset_insert
	cbz	w0, LBB0_26
LBB0_20:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	w8, [x24]
	cmp	w8, #2
	b.ne	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w0, [x23, #8]
	bl	_tl_store_int
LBB0_22:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	w0, [x23, #12]
	bl	_tl_store_int
	ldr	w8, [x28]
	tst	w8, w20
	b.eq	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w0, [x23, #16]
	bl	_tl_store_int
LBB0_24:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	w8, [x26]
	tst	w8, w20
	b.eq	LBB0_16
; %bb.25:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x0, [x23]
	bl	_tl_store_long
	b	LBB0_16
LBB0_26:                                ;   in Loop: Header=BB0_17 Depth=1
	add	w27, w27, #1
	bl	_gather_heap_advance
	cmp	w25, w21
	b.lt	LBB0_17
LBB0_27:
	ldr	w8, [x26]
	and	w8, w8, w20
	cmp	w8, #0
	ccmp	w25, #0, #4, ne
	b.eq	LBB0_30
; %bb.28:
	add	w8, w25, w27
	scvtf	d0, w8
	scvtf	d1, w25
	fdiv	d0, d0, d1
Lloh23:
	adrp	x8, _cum_hash_ratio@GOTPAGE
Lloh24:
	ldr	x8, [x8, _cum_hash_ratio@GOTPAGEOFF]
	ldr	d1, [x8]
	fadd	d0, d0, d1
	str	d0, [x8]
Lloh25:
	adrp	x8, _tot_hash_ratio@GOTPAGE
Lloh26:
	ldr	x8, [x8, _tot_hash_ratio@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_30
LBB0_29:
	mov	w25, #0
LBB0_30:
	str	w25, [x22]
	bl	_tl_store_end
LBB0_31:
	ldr	x0, [x19, #8]
	bl	_free
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_merge_delete
LBB0_32:
	mov	x0, x19
	bl	_check_resend
	cmp	x0, #1
	b.lt	LBB0_3
; %bb.33:
	ldr	x8, [x22, #8]
	add	x8, x8, #1
	str	x8, [x22, #8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAG_RETRY_SEARCH,4,2          ; @FLAG_RETRY_SEARCH
	.comm	_received_bad_answers,4,2       ; @received_bad_answers
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Dropping result %d (num = %d)\n"

	.comm	_TL_SEARCH_RESULT,4,2           ; @TL_SEARCH_RESULT
	.comm	_GH_n,4,2                       ; @GH_n
	.comm	_GH_total,4,2                   ; @GH_total
	.comm	_FLAG_GROUP_HASH,4,2            ; @FLAG_GROUP_HASH
	.comm	_FLAG_SORT,4,2                  ; @FLAG_SORT
	.comm	_cum_hash_ratio,8,3             ; @cum_hash_ratio
	.comm	_tot_hash_ratio,4,2             ; @tot_hash_ratio
.subsections_via_symbols
