	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_msglist                    ## -- Begin function add_msglist
	.p2align	4, 0x90
_add_msglist:                           ## @add_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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %r15
	movl	8(%rdi), %r12d
	jmp	LBB0_4
LBB0_1:
	testl	%esi, %esi
	je	LBB0_6
## %bb.2:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	leaq	L_.str(%rip), %r15
LBB0_4:
	movq	_msglist_sel@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r12), %edi
	addl	$2, %edi
	movl	%eax, %r14d
	addl	%r12d, %r14d
	callq	_xmalloc
	movq	%rax, %rbx
	movq	(%r13), %rsi
	movq	%rax, %rdi
	callq	_strcpy
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_strncat
	movq	(%r13), %rdi
	callq	_xfree
	movq	%rbx, (%r13)
	movslq	%r14d, %rax
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_7
## %bb.5:
	movw	$58, (%rbx,%rax)
LBB0_6:
	movq	_msglist_len@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_8
LBB0_7:
	movb	$0, (%rbx,%rax)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_msglist_len,4,2                ## @msglist_len
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_msglist_sel,8,3                ## @msglist_sel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_msglist                    ; -- Begin function add_msglist
	.p2align	2
_add_msglist:                           ; @add_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, x1
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x21, [x0]
	ldr	w20, [x0, #8]
	b	LBB0_4
LBB0_2:
	cbz	w19, LBB0_6
; %bb.3:
	mov	w20, #0
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
LBB0_4:
Lloh2:
	adrp	x24, _msglist_sel@GOTPAGE
Lloh3:
	ldr	x24, [x24, _msglist_sel@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	add	x23, x8, w20, sxtw
	add	w0, w23, #2
	bl	_xmalloc
	mov	x22, x0
	ldr	x1, [x24]
	bl	_strcpy
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_strncat
	ldr	x0, [x24]
	bl	_xfree
	str	x22, [x24]
	cbz	w19, LBB0_7
; %bb.5:
	mov	w8, #58
	strh	w8, [x22, x23]
LBB0_6:
Lloh4:
	adrp	x8, _msglist_len@GOTPAGE
Lloh5:
	ldr	x8, [x8, _msglist_len@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_8
LBB0_7:
	strb	wzr, [x22, x23]
LBB0_8:
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_msglist_len,4,2                ; @msglist_len
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_msglist_sel,8,3                ; @msglist_sel
.subsections_via_symbols
