	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_peer_msglist               ## -- Begin function get_peer_msglist
	.p2align	4, 0x90
_get_peer_msglist:                      ## @get_peer_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	%ecx, %r14d
	movl	%edx, %r12d
	movq	_R_cnt@GOTPCREL(%rip), %r13
	movl	$0, (%r13)
	leaq	_get_peer_msglist.X(%rip), %rdx
	callq	_prepare_peer_msglist
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	leaq	_get_peer_msglist.X(%rip), %rdi
	callq	_listree_get_size
	movl	%eax, %ebx
	movl	%eax, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.4:
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.5:
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.6:
	testl	%r12d, %r12d
	movl	$-1, %r15d
	movl	%ebx, %esi
	cmovnsl	%r15d, %esi
	addl	%r12d, %esi
	testl	%r14d, %r14d
	cmovsl	%ebx, %r15d
	addl	%r14d, %r15d
	movl	%esi, %r14d
	subl	%r15d, %r14d
	jle	LBB0_7
## %bb.8:
	incl	%r14d
	movq	_MAX_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r14d
	cmovael	%eax, %r14d
	movq	_R@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_RA@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	notl	%esi
	movl	%ebx, %eax
	addl	%esi, %eax
	leaq	_get_peer_msglist.X(%rip), %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_listree_get_range_rev
	movl	%r14d, %r15d
	jmp	LBB0_9
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_7:
	subl	%esi, %r15d
	incl	%r15d
	movq	_MAX_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r15d
	cmovael	%eax, %r15d
	movq	_R@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_RA@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	_get_peer_msglist.X(%rip), %rdi
	movl	%r15d, %edx
	callq	_listree_get_range
LBB0_9:
	movl	%eax, (%r13)
	testl	%eax, %eax
	setns	%cl
	cmpl	%r15d, %eax
	setle	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_get_peer_msglist.X,4,2 ## @get_peer_msglist.X
	.comm	_R_cnt,4,2                      ## @R_cnt
	.comm	_MAX_RES,4,2                    ## @MAX_RES
	.comm	_R,4,2                          ## @R
	.comm	_RA,4,2                         ## @RA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_peer_msglist               ; -- Begin function get_peer_msglist
	.p2align	2
_get_peer_msglist:                      ; @get_peer_msglist
	.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	x20, x3
	mov	x21, x2
Lloh0:
	adrp	x22, _R_cnt@GOTPAGE
Lloh1:
	ldr	x22, [x22, _R_cnt@GOTPAGEOFF]
	str	wzr, [x22]
Lloh2:
	adrp	x2, _get_peer_msglist.X@PAGE
Lloh3:
	add	x2, x2, _get_peer_msglist.X@PAGEOFF
	bl	_prepare_peer_msglist
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.1:
Lloh4:
	adrp	x0, _get_peer_msglist.X@PAGE
Lloh5:
	add	x0, x0, _get_peer_msglist.X@PAGEOFF
	bl	_listree_get_size
	mov	x19, x0
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_assert
	cbz	w19, LBB0_9
; %bb.2:
	cbz	w21, LBB0_9
; %bb.3:
	cbz	w20, LBB0_9
; %bb.4:
	cmp	w21, #0
	csinv	w8, w19, wzr, lt
	add	w1, w8, w21
	cmp	w20, #0
	csinv	w8, w19, wzr, lt
	add	w9, w8, w20
	subs	w8, w1, w9
	b.le	LBB0_7
; %bb.5:
Lloh6:
	adrp	x9, _MAX_RES@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAX_RES@GOTPAGEOFF]
	add	w10, w8, #1
Lloh8:
	ldr	w9, [x9]
	cmp	w10, w9
	csinc	w20, w9, w8, hs
Lloh9:
	adrp	x8, _R@GOTPAGE
Lloh10:
	ldr	x8, [x8, _R@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _RA@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RA@GOTPAGEOFF]
Lloh14:
	str	w8, [x9]
	mvn	w8, w1
	add	w1, w19, w8
Lloh15:
	adrp	x0, _get_peer_msglist.X@PAGE
Lloh16:
	add	x0, x0, _get_peer_msglist.X@PAGEOFF
	mov	x2, x20
	bl	_listree_get_range_rev
	b	LBB0_8
LBB0_6:
	mov	x19, x0
	b	LBB0_9
LBB0_7:
	sub	w8, w9, w1
	add	w9, w8, #1
Lloh17:
	adrp	x10, _MAX_RES@GOTPAGE
Lloh18:
	ldr	x10, [x10, _MAX_RES@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	cmp	w9, w10
	csinc	w20, w10, w8, hs
Lloh20:
	adrp	x8, _R@GOTPAGE
Lloh21:
	ldr	x8, [x8, _R@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _RA@GOTPAGE
Lloh24:
	ldr	x9, [x9, _RA@GOTPAGEOFF]
Lloh25:
	str	w8, [x9]
Lloh26:
	adrp	x0, _get_peer_msglist.X@PAGE
Lloh27:
	add	x0, x0, _get_peer_msglist.X@PAGEOFF
	mov	x2, x20
	bl	_listree_get_range
LBB0_8:
	str	w0, [x22]
	cmp	w0, #0
	ccmp	w0, w20, #0, ge
	cset	w0, le
	bl	_assert
LBB0_9:
	mov	x0, x19
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_get_peer_msglist.X,4,2 ; @get_peer_msglist.X
	.comm	_R_cnt,4,2                      ; @R_cnt
	.comm	_MAX_RES,4,2                    ; @MAX_RES
	.comm	_R,4,2                          ; @R
	.comm	_RA,4,2                         ; @RA
.subsections_via_symbols
