	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getmsglist                     ## -- Begin function getmsglist
	.p2align	4, 0x90
_getmsglist:                            ## @getmsglist
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	_msgCount@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	movl	%edx, %esi
	callq	_markall
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	movq	(%rbx), %rdx
	movq	%r14, %rax
	testq	%rdx, %rdx
	jle	LBB0_9
## %bb.5:
	movq	_message@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	(%rcx,%rdx,4), %rdx
	movl	$1, %esi
	movq	_MMARK@GOTPCREL(%rip), %rdi
	movq	%r14, %rax
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	addq	$4, %rcx
	incl	%esi
	cmpq	%rdx, %rcx
	jae	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdi), %ebx
	testl	%ebx, (%rcx)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%esi, (%rax)
	addq	$4, %rax
	jmp	LBB0_8
LBB0_9:
	movl	$0, (%rax)
	subq	%r14, %rax
	shrq	$2, %rax
	jmp	LBB0_10
LBB0_1:
	movl	$0, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_3:
	movl	$-1, %eax
LBB0_10:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_msgCount,8,3                   ## @msgCount
	.comm	_message,8,3                    ## @message
	.comm	_MMARK,4,2                      ## @MMARK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getmsglist                     ; -- Begin function getmsglist
	.p2align	2
_getmsglist:                            ; @getmsglist
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x20, _msgCount@GOTPAGE
Lloh1:
	ldr	x20, [x20, _msgCount@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x1, x2
	bl	_markall
	tbnz	x0, #63, LBB0_9
; %bb.2:
	ldr	x10, [x20]
	mov	x9, x19
	cmp	x10, #1
	b.lt	LBB0_7
; %bb.3:
Lloh2:
	adrp	x8, _message@GOTPAGE
Lloh3:
	ldr	x8, [x8, _message@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x10, x8, x10, lsl #2
	mov	w11, #1
Lloh5:
	adrp	x12, _MMARK@GOTPAGE
Lloh6:
	ldr	x12, [x12, _MMARK@GOTPAGEOFF]
	mov	x9, x19
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #4
	add	w11, w11, #1
	cmp	x8, x10
	b.hs	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x8]
	ldr	w14, [x12]
	tst	w14, w13
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w11, [x9], #4
	b	LBB0_4
LBB0_7:
	str	wzr, [x9]
	sub	x8, x9, x19
	lsr	x0, x8, #2
	b	LBB0_10
LBB0_8:
	mov	w0, #0
	str	wzr, [x19]
	b	LBB0_10
LBB0_9:
	mov	w0, #-1
LBB0_10:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_msgCount,8,3                   ; @msgCount
	.comm	_message,8,3                    ; @message
	.comm	_MMARK,4,2                      ; @MMARK
.subsections_via_symbols
