	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prepare_msg_sublist            ## -- Begin function prepare_msg_sublist
	.p2align	4, 0x90
_prepare_msg_sublist:                   ## @prepare_msg_sublist
	.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
	movl	%r9d, %r14d
	movl	%r8d, %r12d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %ebx
	movl	%esi, %r15d
	movl	%edi, %r13d
	callq	_conv_uid
	movq	%rax, %rcx
	movl	$-1, %eax
	testl	%r15d, %r15d
	je	LBB0_34
## %bb.1:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	testq	%rcx, %rcx
	js	LBB0_34
## %bb.2:
	movq	_sublists_num@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.3:
	movq	_Sublists@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	cmpq	%r14, %rcx
	je	LBB0_7
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r15d, (%rax,%r14,8)
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%ebx, 4(%rax,%r14,8)
	jne	LBB0_4
	jmp	LBB0_9
LBB0_7:
	movl	$-3, %eax
	jmp	LBB0_34
LBB0_8:
	xorl	%r14d, %r14d
LBB0_9:
	movl	$-3, %eax
	cmpl	%ecx, %r14d
	je	LBB0_34
## %bb.10:
	movl	%r13d, %edi
	callq	_get_user
	movq	%rax, %r15
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	$0, (%rbx)
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:
	movl	%r14d, %ecx
	shlq	$2, %rcx
	addq	8(%r15), %rcx
	movq	16(%r15), %rdx
	movq	%rcx, (%rbx)
	cmpq	$0, (%r15)
	je	LBB0_16
## %bb.12:
	movl	%r13d, %edi
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	callq	_load_user_metafile
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	testl	%eax, %eax
	jne	LBB0_15
LBB0_13:
	movl	$-2, %eax
	jmp	LBB0_34
LBB0_14:
	movl	%r13d, %edi
	callq	_lookup_user_directory
	movq	%rax, %rdx
LBB0_15:
	movq	(%rbx), %rcx
LBB0_16:
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_18
## %bb.17:
	testq	%rdx, %rdx
	je	LBB0_34
LBB0_18:
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.19:
	testq	%r15, %r15
	je	LBB0_32
LBB0_20:
	xorl	%edi, %edi
	cmpq	$0, (%r15)
	sete	%dil
	jmp	LBB0_33
LBB0_21:
	testq	%rdx, %rdx
	je	LBB0_34
## %bb.22:
	movq	(%rdx), %rax
	movq	_idx_sublists_offset@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movslq	%r14d, %rdx
	addq	%rcx, %rdx
	movl	(%rax,%rdx,4), %eax
	testl	%r12d, %r12d
	je	LBB0_34
## %bb.23:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_34
## %bb.24:
	testl	%eax, %eax
	je	LBB0_34
## %bb.25:
	movl	%eax, %ecx
	negl	%ecx
	cmpl	%r12d, %ecx
	jg	LBB0_27
## %bb.26:
	cmpl	%r12d, %eax
	jge	LBB0_29
LBB0_27:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, %ecx
	jg	LBB0_34
## %bb.28:
	cmpl	%edx, %eax
	jl	LBB0_34
LBB0_29:
	movl	%r13d, %edi
	callq	_load_user_metafile
	testl	%eax, %eax
	je	LBB0_13
## %bb.30:
	movl	%r13d, %edi
	callq	_get_user
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_36
## %bb.31:
	movq	%r15, %rdi
	callq	_get_user_metafile
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	jmp	LBB0_37
LBB0_32:
	movl	$1, %edi
LBB0_33:
	callq	_assert
	movl	$-4, %eax
LBB0_34:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	xorl	%edi, %edi
LBB0_37:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	callq	_assert
	movl	%r14d, %eax
	shlq	$2, %rax
	addq	8(%r15), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_sublists_num,4,2               ## @sublists_num
	.comm	_Sublists,8,3                   ## @Sublists
	.comm	_idx_sublists_offset,4,2        ## @idx_sublists_offset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prepare_msg_sublist            ; -- Begin function prepare_msg_sublist
	.p2align	2
_prepare_msg_sublist:                   ; @prepare_msg_sublist
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x5
	mov	x22, x4
	mov	x19, x3
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
	bl	_conv_uid
	mov	x8, x0
	mov	w0, #-1
	cbz	w24, LBB0_9
; %bb.1:
	tbnz	x8, #63, LBB0_9
; %bb.2:
Lloh0:
	adrp	x8, _sublists_num@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sublists_num@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.3:
	mov	x25, #0
Lloh3:
	adrp	x9, _Sublists@GOTPAGE
Lloh4:
	ldr	x9, [x9, _Sublists@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x9, x9, #4
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	add	x9, x9, #8
	cmp	x8, x25
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w10, [x9, #-4]
	cmp	w10, w24
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w10, [x9]
	cmp	w10, w23
	b.ne	LBB0_4
; %bb.7:
	cmp	w25, w8
	b.ne	LBB0_11
LBB0_8:
	mov	w0, #-3
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	w25, #0
	cmp	w25, w8
	b.eq	LBB0_8
LBB0_11:
	mov	x0, x20
	bl	_get_user
	mov	x23, x0
	str	xzr, [x19]
	cbz	x0, LBB0_15
; %bb.12:
	ldp	x8, x24, [x23, #8]
	ldr	x9, [x23]
	add	x8, x8, w25, uxtw #2
	str	x8, [x19]
	cbz	x9, LBB0_17
; %bb.13:
	mov	x0, x20
	bl	_load_user_metafile
	cbnz	w0, LBB0_16
LBB0_14:
	mov	w0, #-2
	b	LBB0_9
LBB0_15:
	mov	x0, x20
	bl	_lookup_user_directory
	mov	x24, x0
LBB0_16:
	ldr	x8, [x19]
LBB0_17:
	cbnz	x8, LBB0_20
; %bb.18:
	cbnz	x24, LBB0_20
LBB0_19:
	mov	w0, #0
	b	LBB0_9
LBB0_20:
	cbz	x8, LBB0_23
; %bb.21:
	cbz	x23, LBB0_33
LBB0_22:
	ldr	x8, [x23]
	cmp	x8, #0
	cset	w0, eq
	b	LBB0_34
LBB0_23:
	cbz	x24, LBB0_19
; %bb.24:
	ldr	x8, [x24]
Lloh6:
	adrp	x9, _idx_sublists_offset@GOTPAGE
Lloh7:
	ldr	x9, [x9, _idx_sublists_offset@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	add	w9, w9, w25
	ldr	w0, [x8, w9, sxtw #2]
	cbz	w22, LBB0_9
; %bb.25:
	cbz	w21, LBB0_9
; %bb.26:
	cbz	w0, LBB0_9
; %bb.27:
	neg	w8, w0
	cmp	w8, w22
	ccmp	w0, w22, #8, le
	b.ge	LBB0_29
; %bb.28:
	cmp	w8, w21
	ccmp	w0, w21, #8, le
	b.lt	LBB0_9
LBB0_29:
	mov	x0, x20
	bl	_load_user_metafile
	cbz	w0, LBB0_14
; %bb.30:
	mov	x0, x20
	bl	_get_user
	mov	x23, x0
	cbz	x0, LBB0_32
; %bb.31:
	mov	x0, x23
	bl	_get_user_metafile
	cmp	x0, #0
	cset	w0, ne
LBB0_32:
	bl	_assert
	ldr	x8, [x23, #8]
	add	x8, x8, w25, uxtw #2
	str	x8, [x19]
	b	LBB0_22
LBB0_33:
	mov	w0, #1
LBB0_34:
	bl	_assert
	mov	w0, #-4
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_sublists_num,4,2               ; @sublists_num
	.comm	_Sublists,8,3                   ; @Sublists
	.comm	_idx_sublists_offset,4,2        ; @idx_sublists_offset
.subsections_via_symbols
