	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function SaveRegisteredItems
LCPI0_0:
	.byte	49                              ## 0x31
	.byte	49                              ## 0x31
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_SaveRegisteredItems
	.p2align	4, 0x90
_SaveRegisteredItems:                   ## @SaveRegisteredItems
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	_MAX_ITEMS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_bg_numItems@GOTPCREL(%rip), %rax
	movslq	(%rax), %r8
	testq	%r8, %r8
	jle	LBB0_1
## %bb.2:
	movl	%r8d, %r11d
	movq	_itemRegistered@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpl	$4, %r11d
	jb	LBB0_3
## %bb.4:
	leaq	(%rdx,%r11,8), %rax
	cmpq	%rax, %rbx
	jae	LBB0_6
## %bb.5:
	movq	%rbx, %rax
	addq	%r11, %rax
	cmpq	%rdx, %rax
	jbe	LBB0_6
LBB0_3:
	xorl	%edi, %edi
	xorl	%esi, %esi
LBB0_9:
	movq	%rdi, %rax
	notq	%rax
	testb	$1, %r11b
	je	LBB0_11
## %bb.10:
	xorl	%r9d, %r9d
	cmpq	$0, (%rdx,%rdi,8)
	setne	%r9b
	sete	%r10b
	xorb	$49, %r10b
	addl	%r9d, %esi
	movb	%r10b, (%rbx,%rdi)
	orq	$1, %rdi
LBB0_11:
	addq	%r11, %rax
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	cmpq	$0, (%rdx,%rdi,8)
	setne	%al
	sete	%cl
	xorb	$49, %cl
	addl	%esi, %eax
	movb	%cl, (%rbx,%rdi)
	xorl	%esi, %esi
	cmpq	$0, 8(%rdx,%rdi,8)
	setne	%sil
	sete	%cl
	xorb	$49, %cl
	addl	%eax, %esi
	movb	%cl, 1(%rbx,%rdi)
	addq	$2, %rdi
	cmpq	%rdi, %r11
	jne	LBB0_12
	jmp	LBB0_13
LBB0_1:
	xorl	%esi, %esi
LBB0_13:
	movb	$0, (%rbx,%r8)
	leaq	L_.str(%rip), %rdi
	callq	_G_Printf
	movq	_CS_ITEMS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_trap_SetConfigstring
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	leaq	-8(%rbp), %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movl	%r11d, %edi
	andl	$-4, %edi
	pxor	%xmm8, %xmm8
	xorl	%esi, %esi
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = <49,49,u,u,u,u,u,u,u,u,u,u,u,u,u,u>
	pcmpeqd	%xmm4, %xmm4
	pxor	%xmm3, %xmm3
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdx,%rsi,8), %xmm5
	movdqu	16(%rdx,%rsi,8), %xmm6
	pcmpeqq	%xmm8, %xmm5
	pshufd	$232, %xmm5, %xmm7              ## xmm7 = xmm5[0,2,2,3]
	packssdw	%xmm5, %xmm5
	packssdw	%xmm5, %xmm5
	packsswb	%xmm5, %xmm5
	paddb	%xmm2, %xmm5
	pcmpeqq	%xmm8, %xmm6
	pshufd	$232, %xmm6, %xmm0              ## xmm0 = xmm6[0,2,2,3]
	packssdw	%xmm6, %xmm6
	packssdw	%xmm6, %xmm6
	packsswb	%xmm6, %xmm6
	paddb	%xmm2, %xmm6
	paddd	%xmm7, %xmm3
	pextrw	$0, %xmm5, (%rbx,%rsi)
	paddd	%xmm0, %xmm1
	pextrw	$0, %xmm6, 2(%rbx,%rsi)
	psubd	%xmm4, %xmm3
	psubd	%xmm4, %xmm1
	addq	$4, %rsi
	cmpq	%rsi, %rdi
	jne	LBB0_7
## %bb.8:
	paddd	%xmm3, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %esi
	cmpq	%r11, %rdi
	jne	LBB0_9
	jmp	LBB0_13
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_ITEMS,4,2                  ## @MAX_ITEMS
	.comm	_bg_numItems,4,2                ## @bg_numItems
	.comm	_itemRegistered,8,3             ## @itemRegistered
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%i items registered\n"

	.comm	_CS_ITEMS,4,2                   ## @CS_ITEMS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SaveRegisteredItems            ; -- Begin function SaveRegisteredItems
	.p2align	2
_SaveRegisteredItems:                   ; @SaveRegisteredItems
	.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
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _MAX_ITEMS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_ITEMS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w8, w8, #1
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh8:
	adrp	x8, _bg_numItems@GOTPAGE
Lloh9:
	ldr	x8, [x8, _bg_numItems@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x8]
	sxtw	x8, w9
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.1:
Lloh11:
	adrp	x10, _itemRegistered@GOTPAGE
Lloh12:
	ldr	x10, [x10, _itemRegistered@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	w8, #8
	b.lo	LBB0_8
; %bb.2:
	add	x11, x19, x9
	add	x12, x10, x9, lsl #3
	cmp	x19, x12
	ccmp	x11, x10, #0, lo
	b.hi	LBB0_8
; %bb.3:
	cmp	w9, #16
	b.hs	LBB0_14
; %bb.4:
	mov	w1, #0
	mov	x11, #0
LBB0_5:
	mov	x14, x11
	and	x11, x9, #0xfffffff8
	movi.2d	v0, #0000000000000000
	mov.s	v0[0], w1
	movi.2d	v1, #0000000000000000
	add	x12, x10, x14, lsl #3
	add	x13, x19, x14
	sub	x14, x14, x11
	movi.8b	v2, #49
	movi.8b	v3, #48
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x12]
	ldp	q6, q7, [x12, #32]
	cmeq.2d	v16, v7, #0
	cmeq.2d	v17, v6, #0
	uzp1.4s	v16, v17, v16
	cmeq.2d	v17, v5, #0
	cmeq.2d	v18, v4, #0
	uzp1.4s	v17, v18, v17
	uzp1.8h	v16, v17, v16
	xtn.8b	v16, v16
	bsl.8b	v16, v3, v2
	cmtst.2d	v5, v5, v5
	cmtst.2d	v4, v4, v4
	uzp1.4s	v4, v4, v5
	cmtst.2d	v5, v7, v7
	cmtst.2d	v6, v6, v6
	uzp1.4s	v5, v6, v5
	sub.4s	v1, v1, v5
	sub.4s	v0, v0, v4
	str	d16, [x13], #8
	add	x12, x12, #64
	adds	x14, x14, #8
	b.ne	LBB0_6
; %bb.7:
	add.4s	v0, v0, v1
	addv.4s	s0, v0
	fmov	w1, s0
	cmp	x11, x9
	b.ne	LBB0_9
	b	LBB0_12
LBB0_8:
	mov	x11, #0
	mov	w1, #0
LBB0_9:
	add	x12, x19, x11
	sub	x9, x9, x11
	mov	w13, #48
	add	x10, x10, x11, lsl #3
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10], #8
	cmp	x11, #0
	cinc	w11, w13, ne
	cinc	w1, w1, ne
	strb	w11, [x12], #1
	subs	x9, x9, #1
	b.ne	LBB0_10
	b	LBB0_12
LBB0_11:
	mov	w1, #0
LBB0_12:
	strb	wzr, [x19, x8]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_G_Printf
Lloh16:
	adrp	x8, _CS_ITEMS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CS_ITEMS@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_trap_SetConfigstring
	ldur	x8, [x29, #-24]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.13:
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_14:
	and	x11, x9, #0xfffffff0
	movi.2d	v0, #0000000000000000
	movi.16b	v1, #49
	movi.16b	v2, #48
	mov	x12, x11
	mov	x13, x19
	mov	x14, x10
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
	movi.2d	v5, #0000000000000000
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldp	q6, q7, [x14]
	ldp	q16, q17, [x14, #32]
	ldp	q18, q19, [x14, #64]
	ldp	q20, q21, [x14, #96]
	cmeq.2d	v22, v21, #0
	cmeq.2d	v23, v20, #0
	uzp1.4s	v22, v23, v22
	cmeq.2d	v23, v19, #0
	cmeq.2d	v24, v18, #0
	uzp1.4s	v23, v24, v23
	uzp1.8h	v22, v23, v22
	cmeq.2d	v23, v17, #0
	cmeq.2d	v24, v16, #0
	uzp1.4s	v23, v24, v23
	cmeq.2d	v24, v7, #0
	cmeq.2d	v25, v6, #0
	uzp1.4s	v24, v25, v24
	uzp1.8h	v23, v24, v23
	uzp1.16b	v22, v23, v22
	bsl.16b	v22, v2, v1
	cmtst.2d	v7, v7, v7
	cmtst.2d	v6, v6, v6
	uzp1.4s	v6, v6, v7
	cmtst.2d	v7, v17, v17
	cmtst.2d	v16, v16, v16
	uzp1.4s	v7, v16, v7
	cmtst.2d	v16, v19, v19
	cmtst.2d	v17, v18, v18
	uzp1.4s	v16, v17, v16
	cmtst.2d	v17, v21, v21
	cmtst.2d	v18, v20, v20
	uzp1.4s	v17, v18, v17
	sub.4s	v5, v5, v17
	sub.4s	v4, v4, v16
	sub.4s	v3, v3, v7
	sub.4s	v0, v0, v6
	str	q22, [x13], #16
	add	x14, x14, #128
	subs	x12, x12, #16
	b.ne	LBB0_15
; %bb.16:
	add.4s	v0, v0, v4
	add.4s	v1, v3, v5
	add.4s	v0, v0, v1
	addv.4s	s0, v0
	fmov	w1, s0
	cmp	x11, x9
	b.eq	LBB0_12
; %bb.17:
	tbnz	w9, #3, LBB0_5
	b	LBB0_9
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_ITEMS,4,2                  ; @MAX_ITEMS
	.comm	_bg_numItems,4,2                ; @bg_numItems
	.comm	_itemRegistered,8,3             ; @itemRegistered
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%i items registered\n"

	.comm	_CS_ITEMS,4,2                   ; @CS_ITEMS
.subsections_via_symbols
