	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_msg_sublist_pos            ## -- Begin function get_msg_sublist_pos
	.p2align	4, 0x90
_get_msg_sublist_pos:                   ## @get_msg_sublist_pos
	.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, %ebx
	movl	%edx, %r15d
	movl	%esi, %r12d
	movl	%edi, %r13d
	movq	_R_cnt@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	leaq	_get_msg_sublist_pos.X(%rip), %rcx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_prepare_msg_sublist
	movl	%eax, %r14d
	cmpl	$-4, %eax
	jne	LBB0_6
## %bb.1:
	movl	%ebx, %r14d
	movq	_get_msg_sublist_pos.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_2
## %bb.3:
	movq	_get_msg_sublist_pos.X(%rip), %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_listree_get_pos
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$-2, %eax
	jne	LBB0_9
## %bb.4:
	movl	%r13d, %edi
	callq	_load_user_metafile
	testl	%eax, %eax
	je	LBB0_5
## %bb.8:
	movl	_get_msg_sublist_pos.rec_cnt(%rip), %eax
	leal	1(%rax), %ecx
	movl	%ecx, _get_msg_sublist_pos.rec_cnt(%rip)
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movl	%r13d, %edi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_get_msg_sublist_pos
	decl	_get_msg_sublist_pos.rec_cnt(%rip)
	jmp	LBB0_7
LBB0_2:
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_9:
	leal	1(%rax), %r14d
	cmpl	$-1, %eax
	setge	%cl
	cmpl	%ebx, %eax
	setl	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	jmp	LBB0_6
LBB0_5:
	movl	$-2, %r14d
LBB0_6:
	movl	%r14d, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_get_msg_sublist_pos.X,8,3 ## @get_msg_sublist_pos.X
.zerofill __DATA,__bss,_get_msg_sublist_pos.rec_cnt,4,2 ## @get_msg_sublist_pos.rec_cnt
	.comm	_R_cnt,8,3                      ## @R_cnt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_msg_sublist_pos            ; -- Begin function get_msg_sublist_pos
	.p2align	2
_get_msg_sublist_pos:                   ; @get_msg_sublist_pos
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _R_cnt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R_cnt@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
Lloh3:
	adrp	x3, _get_msg_sublist_pos.X@PAGE
Lloh4:
	add	x3, x3, _get_msg_sublist_pos.X@PAGEOFF
	mov	w4, #1
	mov	w5, #1
	bl	_prepare_msg_sublist
	mov	x24, x0
	cmn	w0, #4
	b.ne	LBB0_8
; %bb.1:
	adrp	x24, _get_msg_sublist_pos.X@PAGE
	ldr	x0, [x24, _get_msg_sublist_pos.X@PAGEOFF]
	bl	_listree_get_size
	mov	x23, x0
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_assert
	cbz	w23, LBB0_5
; %bb.2:
	ldr	x0, [x24, _get_msg_sublist_pos.X@PAGEOFF]
	mov	x1, x19
	mov	w2, #1
	bl	_listree_get_pos
	cmn	w0, #2
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x22
	bl	_load_user_metafile
	cbz	w0, LBB0_7
; %bb.4:
	adrp	x23, _get_msg_sublist_pos.rec_cnt@PAGE
	ldr	w8, [x23, _get_msg_sublist_pos.rec_cnt@PAGEOFF]
	add	w9, w8, #1
	str	w9, [x23, _get_msg_sublist_pos.rec_cnt@PAGEOFF]
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_get_msg_sublist_pos
	ldr	w8, [x23, _get_msg_sublist_pos.rec_cnt@PAGEOFF]
	sub	w8, w8, #1
	str	w8, [x23, _get_msg_sublist_pos.rec_cnt@PAGEOFF]
	b	LBB0_9
LBB0_5:
	mov	w24, #0
	b	LBB0_8
LBB0_6:
	add	w24, w0, #1
	ccmp	w0, w23, #0, gt
	cset	w0, lt
	bl	_assert
	b	LBB0_8
LBB0_7:
	mov	w24, #-2
LBB0_8:
	mov	x0, x24
LBB0_9:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_get_msg_sublist_pos.X,8,3 ; @get_msg_sublist_pos.X
.zerofill __DATA,__bss,_get_msg_sublist_pos.rec_cnt,4,2 ; @get_msg_sublist_pos.rec_cnt
	.comm	_R_cnt,8,3                      ; @R_cnt
.subsections_via_symbols
