	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_top_msglist                ## -- Begin function get_top_msglist
	.p2align	4, 0x90
_get_top_msglist:                       ## @get_top_msglist
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r12d
	movl	%edi, %ebx
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	movl	%r14d, %r8d
	callq	_fprintf
LBB0_2:
	movl	%ebx, %edi
	callq	_conv_uid
	testq	%rax, %rax
	js	LBB0_8
## %bb.3:
	movl	%ebx, %edi
	callq	_get_user
	movq	%rax, %r15
	movq	_R_cnt@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	testq	%r15, %r15
	je	LBB0_9
## %bb.4:
	cmpq	$0, 8(%r15)
	jne	LBB0_6
## %bb.5:
	cmpq	$0, 16(%r15)
	je	LBB0_12
LBB0_6:
	movl	%ebx, %edi
	callq	_load_user_metafile
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_7
LBB0_8:
	movl	$-1, %r13d
	jmp	LBB0_23
LBB0_9:
	movl	%ebx, %edi
	callq	_lookup_user_directory
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_23
## %bb.10:
	movl	%ebx, %edi
	callq	_get_user_f
	movq	%rax, %r15
	movl	%ebx, %edi
	callq	_load_user_metafile
	testl	%eax, %eax
	je	LBB0_7
## %bb.11:
	testq	%r15, %r15
	je	LBB0_23
LBB0_12:
	movq	(%r15), %r15
	movq	_NIL_N@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	cmpq	(%rax), %r15
	je	LBB0_23
## %bb.13:
	movl	(%r15), %ebx
	movl	%ebx, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	testl	%ebx, %ebx
	je	LBB0_23
## %bb.14:
	testl	%r12d, %r12d
	je	LBB0_20
## %bb.15:
	testl	%r14d, %r14d
	je	LBB0_20
## %bb.16:
	testl	%r12d, %r12d
	movl	$-1, %eax
	movl	%ebx, %edx
	cmovnsl	%eax, %edx
	addl	%r12d, %edx
	testl	%r14d, %r14d
	cmovsl	%ebx, %eax
	addl	%r14d, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	%ebx, %r13d
	jle	LBB0_21
## %bb.17:
	incl	%ecx
	movq	_MAX_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ebx
	shrl	$31, %ebx
	addl	%eax, %ebx
	sarl	%ebx
	cmpl	%ebx, %ecx
	cmovbl	%ecx, %ebx
	movq	_R@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %eax
	subl	%edx, %eax
	leal	(%rax,%rbx), %ecx
	decl	%ecx
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_tree_num_get_range_rev
	jmp	LBB0_22
LBB0_7:
	movl	$-2, %r13d
	jmp	LBB0_23
LBB0_20:
	movl	%ebx, %r13d
	jmp	LBB0_23
LBB0_21:
	subl	%edx, %eax
	incl	%eax
	movq	_MAX_RES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %ebx
	shrl	$31, %ebx
	addl	%ecx, %ebx
	sarl	%ebx
	cmpl	%ebx, %eax
	cmovbl	%eax, %ebx
	movq	_R@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	(%rbx,%rdx), %ecx
	incl	%edx
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_tree_num_get_range
LBB0_22:
	movq	_R@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	movq	_R_cnt@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	setns	%cl
	addl	%ebx, %ebx
	cmpl	%ebx, %eax
	setle	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
LBB0_23:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get_top_peers_list(%d,%d,%d)\n"

	.comm	_R_cnt,4,2                      ## @R_cnt
	.comm	_NIL_N,8,3                      ## @NIL_N
	.comm	_MAX_RES,4,2                    ## @MAX_RES
	.comm	_R,4,2                          ## @R
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_top_msglist                ; -- Begin function get_top_msglist
	.p2align	2
_get_top_msglist:                       ; @get_top_msglist
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _verbosity@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x21
	mov	x4, x20
	bl	_fprintf
LBB0_2:
	mov	x0, x19
	bl	_conv_uid
	tbnz	x0, #63, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_get_user
Lloh8:
	adrp	x23, _R_cnt@GOTPAGE
Lloh9:
	ldr	x23, [x23, _R_cnt@GOTPAGEOFF]
	str	wzr, [x23]
	cbz	x0, LBB0_8
; %bb.4:
	mov	x22, x0
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_6
; %bb.5:
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_11
LBB0_6:
	mov	x0, x19
	bl	_load_user_metafile
	cbnz	w0, LBB0_11
	b	LBB0_18
LBB0_7:
	mov	w19, #-1
	b	LBB0_21
LBB0_8:
	mov	x0, x19
	bl	_lookup_user_directory
	cbz	x0, LBB0_17
; %bb.9:
	mov	x0, x19
	bl	_get_user_f
	mov	x22, x0
	mov	x0, x19
	bl	_load_user_metafile
	cbz	w0, LBB0_18
; %bb.10:
	cbz	x22, LBB0_17
LBB0_11:
	ldr	x22, [x22]
Lloh10:
	adrp	x8, _NIL_N@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NIL_N@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x22, x8
	b.eq	LBB0_17
; %bb.12:
	ldr	w19, [x22]
	mvn	w8, w19
	lsr	w0, w8, #31
	bl	_assert
	cbz	w19, LBB0_21
; %bb.13:
	cbz	w21, LBB0_21
; %bb.14:
	cbz	w20, LBB0_21
; %bb.15:
	cmp	w21, #0
	csinv	w8, w19, wzr, lt
	add	w8, w8, w21
	cmp	w20, #0
	csinv	w9, w19, wzr, lt
	add	w10, w9, w20
	subs	w9, w8, w10
Lloh13:
	adrp	x20, _R@GOTPAGE
Lloh14:
	ldr	x20, [x20, _R@GOTPAGEOFF]
	b.le	LBB0_19
; %bb.16:
	add	w10, w9, #1
Lloh15:
	adrp	x11, _MAX_RES@GOTPAGE
Lloh16:
	ldr	x11, [x11, _MAX_RES@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	cmp	w11, #0
	cinc	w11, w11, lt
	asr	w11, w11, #1
	cmp	w10, w11
	csinc	w21, w11, w9, hs
	ldr	w1, [x20]
	sub	w2, w19, w8
	add	w8, w2, w21
	sub	w3, w8, #1
	mov	x0, x22
	bl	_tree_num_get_range_rev
	b	LBB0_20
LBB0_17:
	mov	w19, #0
	b	LBB0_21
LBB0_18:
	mov	w19, #-2
	b	LBB0_21
LBB0_19:
	sub	w9, w10, w8
	add	w10, w9, #1
Lloh18:
	adrp	x11, _MAX_RES@GOTPAGE
Lloh19:
	ldr	x11, [x11, _MAX_RES@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	cmp	w11, #0
	cinc	w11, w11, lt
	asr	w11, w11, #1
	cmp	w10, w11
	csinc	w21, w11, w9, hs
	ldr	w1, [x20]
	add	w2, w8, #1
	add	w3, w21, w8
	mov	x0, x22
	bl	_tree_num_get_range
LBB0_20:
	ldr	w8, [x20]
	sub	w8, w0, w8
	str	w8, [x23]
	cmp	w8, #0
	lsl	w9, w21, #1
	ccmp	w8, w9, #0, ge
	cset	w0, le
	bl	_assert
LBB0_21:
	mov	x0, x19
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get_top_peers_list(%d,%d,%d)\n"

	.comm	_R_cnt,4,2                      ; @R_cnt
	.comm	_NIL_N,8,3                      ; @NIL_N
	.comm	_MAX_RES,4,2                    ; @MAX_RES
	.comm	_R,4,2                          ; @R
.subsections_via_symbols
