	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prepare_peer_msglist           ## -- Begin function prepare_peer_msglist
	.p2align	4, 0x90
_prepare_peer_msglist:                  ## @prepare_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
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movl	%edi, %ebx
	callq	_conv_uid
	movl	$-1, %r14d
	testl	%r12d, %r12d
	je	LBB0_25
## %bb.1:
	testq	%rax, %rax
	js	LBB0_25
## %bb.2:
	movl	%ebx, %edi
	callq	_get_user
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	16(%r15), %r13
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.4:
	movl	%ebx, %edi
	callq	_load_user_metafile
	testq	%rax, %rax
	je	LBB0_19
LBB0_5:
	movl	8(%r15), %edi
	movl	%r12d, %esi
	callq	_tree_lookup
	testq	%rax, %rax
	je	LBB0_7
	jmp	LBB0_8
LBB0_6:
	movl	%ebx, %edi
	callq	_lookup_user_directory
	movq	%rax, %r13
	xorl	%eax, %eax
	testq	%rax, %rax
	jne	LBB0_8
LBB0_7:
	xorl	%r14d, %r14d
	testq	%r13, %r13
	je	LBB0_25
LBB0_8:
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	_NIL@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, 16(%r14)
	testq	%r13, %r13
	je	LBB0_14
## %bb.11:
	testq	%r15, %r15
	je	LBB0_15
## %bb.12:
	movq	%r15, %rdi
	callq	_get_user_metafile
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movq	%r15, %rdi
	callq	_get_user_metafile
	movq	%rax, %rdi
	jmp	LBB0_17
LBB0_14:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
	jmp	LBB0_22
LBB0_15:
	movl	%ebx, %edi
	callq	_load_user_metafile
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	movq	(%rax), %rdi
LBB0_17:
	leaq	4(%r14), %rdx
	movl	%r12d, %esi
	callq	_fetch_file_peer_list
	movq	%rax, 8(%r14)
	movslq	4(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_20
## %bb.18:
	movl	-4(%rax,%rcx,4), %eax
	jmp	LBB0_21
LBB0_19:
	movl	$-2, %r14d
	jmp	LBB0_25
LBB0_20:
	xorl	%eax, %eax
LBB0_21:
	movl	%eax, (%r14)
LBB0_22:
	movl	$1, %r14d
	movl	$1, %edi
	testq	%r15, %r15
	je	LBB0_24
## %bb.23:
	xorl	%edi, %edi
	cmpq	$0, (%r15)
	sete	%dil
LBB0_24:
	callq	_assert
LBB0_25:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIL,4,2                        ## @NIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prepare_peer_msglist           ; -- Begin function prepare_peer_msglist
	.p2align	2
_prepare_peer_msglist:                  ; @prepare_peer_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	x19, x2
	mov	x21, x1
	mov	x22, x0
	bl	_conv_uid
	mov	x8, x0
	mov	w0, #-1
	cbz	w21, LBB0_23
; %bb.1:
	tbnz	x8, #63, LBB0_23
; %bb.2:
	mov	x0, x22
	bl	_get_user
	mov	x20, x0
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x23, [x20, #16]
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x22
	bl	_load_user_metafile
	cbz	x0, LBB0_22
LBB0_5:
	ldr	w0, [x20, #8]
	mov	x1, x21
	bl	_tree_lookup
	cbz	x0, LBB0_7
	b	LBB0_9
LBB0_6:
	mov	x0, x22
	bl	_lookup_user_directory
	mov	x23, x0
	mov	x0, #0
	cbnz	x0, LBB0_9
LBB0_7:
	cbnz	x23, LBB0_9
; %bb.8:
	mov	w0, #0
	b	LBB0_23
LBB0_9:
Lloh0:
	adrp	x8, _NIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x0, x8, ne
	ldr	w8, [x8]
	str	w8, [x19, #16]
	cbz	x23, LBB0_13
; %bb.10:
	cbz	x20, LBB0_15
; %bb.11:
	mov	x0, x20
	bl	_get_user_metafile
	cbz	x0, LBB0_15
; %bb.12:
	mov	x0, x20
	bl	_get_user_metafile
	b	LBB0_17
LBB0_13:
	stp	xzr, xzr, [x19]
	cbz	x20, LBB0_20
LBB0_14:
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, eq
	b	LBB0_21
LBB0_15:
	mov	x0, x22
	bl	_load_user_metafile
	cbz	x0, LBB0_22
; %bb.16:
	ldr	x0, [x0]
LBB0_17:
	add	x2, x19, #4
	mov	x1, x21
	bl	_fetch_file_peer_list
	str	x0, [x19, #8]
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_19
; %bb.18:
	sub	w8, w8, #1
	ldr	w8, [x0, w8, sxtw #2]
LBB0_19:
	str	w8, [x19]
	cbnz	x20, LBB0_14
LBB0_20:
	mov	w0, #1
LBB0_21:
	bl	_assert
	mov	w0, #1
	b	LBB0_23
LBB0_22:
	mov	w0, #-2
LBB0_23:
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NIL,4,2                        ; @NIL
.subsections_via_symbols
