	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MCAddMsg                       ## -- Begin function MCAddMsg
	.p2align	4, 0x90
_MCAddMsg:                              ## @MCAddMsg
	.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	%rsi, %r14
	movl	%edi, %r15d
	movq	_curSet@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	je	LBB0_1
## %bb.2:
	testl	%r15d, %r15d
	jle	LBB0_3
LBB0_4:
	movq	_NL_MSGMAX@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jge	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	callq	_error
LBB0_6:
	movq	(%r13), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.8:
	movl	(%rbx), %eax
	cmpl	%r15d, %eax
	jge	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r12
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	(%rbx), %eax
	cmpl	%r15d, %eax
	jl	LBB0_13
## %bb.10:
	cmpl	%r15d, %eax
	je	LBB0_11
	jmp	LBB0_14
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_error
	testl	%r15d, %r15d
	jg	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_error
	jmp	LBB0_4
LBB0_7:
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_9:
	xorl	%r12d, %r12d
	cmpl	%r15d, %eax
	jne	LBB0_14
LBB0_11:
	movl	4(%rbx), %edi
	callq	_free
	jmp	LBB0_17
LBB0_14:
	movl	$16, %edi
	callq	_xmalloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	testq	%r12, %r12
	je	LBB0_15
## %bb.16:
	movq	_entries@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_LIST_INSERT_AFTER
	jmp	LBB0_17
LBB0_15:
	movq	(%r13), %rdi
	movq	_entries@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_LIST_INSERT_HEAD
LBB0_17:
	movl	%r15d, (%rbx)
	movq	%r14, %rdi
	callq	_xstrdup
	movl	%eax, 4(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_curSet,8,3                     ## @curSet
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't specify a message when no set exists"

L_.str.1:                               ## @.str.1
	.asciz	"msgId's must be greater than zero"

	.comm	_NL_MSGMAX,4,2                  ## @NL_MSGMAX
L_.str.2:                               ## @.str.2
	.asciz	"msgID exceeds limit"

	.comm	_entries,4,2                    ## @entries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MCAddMsg                       ; -- Begin function MCAddMsg
	.p2align	2
_MCAddMsg:                              ; @MCAddMsg
	.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
	mov	x20, x0
Lloh0:
	adrp	x23, _curSet@GOTPAGE
Lloh1:
	ldr	x23, [x23, _curSet@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_9
; %bb.1:
	cmp	w20, #0
	b.le	LBB0_10
LBB0_2:
Lloh2:
	adrp	x8, _NL_MSGMAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NL_MSGMAX@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ge	LBB0_4
; %bb.3:
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_error
LBB0_4:
	ldr	x8, [x23]
	ldr	x21, [x8]
	cbz	x21, LBB0_11
; %bb.5:
	ldr	w8, [x21]
	cmp	w8, w20
	b.ge	LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x21
	ldr	x21, [x21, #8]
	cbz	x21, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21]
	cmp	w8, w20
	b.lt	LBB0_6
; %bb.8:
	cmp	w8, w20
	b.eq	LBB0_13
	b	LBB0_14
LBB0_9:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
	cmp	w20, #0
	b.gt	LBB0_2
LBB0_10:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
	b	LBB0_2
LBB0_11:
	mov	x22, #0
	b	LBB0_14
LBB0_12:
	mov	x22, #0
	cmp	w8, w20
	b.ne	LBB0_14
LBB0_13:
	ldr	w0, [x21, #4]
	bl	_free
	b	LBB0_17
LBB0_14:
	mov	w0, #16
	bl	_xmalloc
	mov	x21, x0
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	cbz	x22, LBB0_16
; %bb.15:
Lloh11:
	adrp	x8, _entries@GOTPAGE
Lloh12:
	ldr	x8, [x8, _entries@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x21
	bl	_LIST_INSERT_AFTER
	b	LBB0_17
LBB0_16:
	ldr	x0, [x23]
Lloh14:
	adrp	x8, _entries@GOTPAGE
Lloh15:
	ldr	x8, [x8, _entries@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_LIST_INSERT_HEAD
LBB0_17:
	str	w20, [x21]
	mov	x0, x19
	bl	_xstrdup
	str	w0, [x21, #4]
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_curSet,8,3                     ; @curSet
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't specify a message when no set exists"

l_.str.1:                               ; @.str.1
	.asciz	"msgId's must be greater than zero"

	.comm	_NL_MSGMAX,4,2                  ; @NL_MSGMAX
l_.str.2:                               ; @.str.2
	.asciz	"msgID exceeds limit"

	.comm	_entries,4,2                    ; @entries
.subsections_via_symbols
