	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function memory_test
LCPI0_0:
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	4                               ## 0x4
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_1:
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	1                               ## 0x1
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_2:
	.quad	8                               ## 0x8
	.quad	8                               ## 0x8
LCPI0_3:
	.quad	16                              ## 0x10
	.quad	16                              ## 0x10
LCPI0_4:
	.quad	24                              ## 0x18
	.quad	24                              ## 0x18
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_memory_test:                           ## @memory_test
	.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	%rdi, %r14
	leaq	_memory_test.testval(%rip), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	_SCA_MEM_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rdx
	movq	(%r14), %rcx
	testq	%rax, %rax
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rsi
	movq	%rsi, (%rcx)
	cmpq	(%rbx), %rsi
	jne	LBB0_23
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	$8, %rbx
	decq	%rax
	jne	LBB0_1
LBB0_3:
	cmpl	$7, %edx
	ja	LBB0_5
## %bb.4:
	movq	(%r14), %rdi
	jmp	LBB0_21
LBB0_5:
	movq	%rdx, %rax
	shrq	$3, %rax
	cmpq	$2, %rax
	movl	$1, %esi
	cmovaeq	%rax, %rsi
	cmpq	$4, %rsi
	jae	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_23:
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_7:
	movq	%rsi, %rax
	andq	$-4, %rax
	leaq	-4(%rax), %rdi
	movq	%rdi, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.9:
	movq	%r8, %rdi
	andq	$-2, %rdi
	movdqa	LCPI0_1(%rip), %xmm0            ## xmm0 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
	xorl	%ebx, %ebx
	movdqa	LCPI0_2(%rip), %xmm1            ## xmm1 = [8,8]
	movdqa	LCPI0_3(%rip), %xmm2            ## xmm2 = [16,16]
	movdqa	LCPI0_4(%rip), %xmm3            ## xmm3 = [24,24]
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, %xmm4
	psllq	$2, %xmm4
	movdqa	%xmm4, %xmm5
	paddq	%xmm1, %xmm5
	movdqu	%xmm4, (%rcx,%rbx,8)
	movdqu	%xmm5, 16(%rcx,%rbx,8)
	movdqa	%xmm4, %xmm5
	paddq	%xmm2, %xmm5
	paddq	%xmm3, %xmm4
	movdqu	%xmm5, 32(%rcx,%rbx,8)
	movdqu	%xmm4, 48(%rcx,%rbx,8)
	addq	$8, %rbx
	paddq	%xmm1, %xmm0
	addq	$-2, %rdi
	jne	LBB0_10
## %bb.11:
	psllq	$2, %xmm0
	testb	$1, %r8b
	je	LBB0_14
LBB0_13:
	movdqa	LCPI0_2(%rip), %xmm1            ## xmm1 = [8,8]
	paddq	%xmm0, %xmm1
	movdqu	%xmm0, (%rcx,%rbx,8)
	movdqu	%xmm1, 16(%rcx,%rbx,8)
LBB0_14:
	cmpq	%rax, %rsi
	je	LBB0_18
## %bb.15:
	leaq	(%rcx,%rax,8), %rcx
LBB0_16:
	movq	%rsi, %rdi
	subq	%rax, %rdi
	shlq	$2, %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	addq	$4, %rax
	cmpq	%rbx, %rdi
	jne	LBB0_17
LBB0_18:
	movq	(%r14), %rdi
	shlq	$2, %rsi
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	cmpq	(%rdi,%rcx,2), %rcx
	jne	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	addq	$4, %rcx
	cmpq	%rcx, %rsi
	jne	LBB0_19
LBB0_21:
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
	movl	$1, %eax
LBB0_22:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0]
	xorl	%ebx, %ebx
	testb	$1, %r8b
	jne	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	4                               ## @memory_test.testval
_memory_test.testval:
	.quad	0                               ## 0x0
	.quad	1431655765                      ## 0x55555555
	.quad	2863311530                      ## 0xaaaaaaaa
	.quad	1717986918                      ## 0x66666666
	.quad	2576980377                      ## 0x99999999
	.quad	4294967295                      ## 0xffffffff
	.quad	305419896                       ## 0x12345678

	.comm	_SCA_MEM_SIZE,4,2               ## @SCA_MEM_SIZE
	.no_dead_strip	_memory_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function memory_test
lCPI0_0:
	.quad	0                               ; 0x0
	.quad	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_memory_test:                           ; @memory_test
	.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, x0
Lloh0:
	adrp	x0, _memory_test.testval@PAGE
Lloh1:
	add	x0, x0, _memory_test.testval@PAGEOFF
	bl	_ARRAY_SIZE
Lloh2:
	adrp	x8, _SCA_MEM_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SCA_MEM_SIZE@GOTPAGEOFF]
Lloh4:
	ldrsw	x2, [x8]
	ldr	x11, [x19]
	cbz	x0, LBB0_4
; %bb.1:
Lloh5:
	adrp	x8, _memory_test.testval@PAGE
Lloh6:
	add	x8, x8, _memory_test.testval@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8]
	str	x9, [x11]
	ldr	x10, [x8]
	cmp	x9, x10
	b.ne	LBB0_17
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #8
	subs	x0, x0, #1
	b.ne	LBB0_2
LBB0_4:
	cmp	w2, #7
	b.hi	LBB0_6
; %bb.5:
	ldr	x0, [x19]
	b	LBB0_16
LBB0_6:
	lsr	x8, x2, #3
	cmp	x8, #1
	csinc	x8, x8, xzr, hi
	cmp	x8, #8
	b.hs	LBB0_8
; %bb.7:
	mov	x10, #0
	mov	x9, x11
	b	LBB0_11
LBB0_8:
	and	x10, x8, #0x1ffffffffffffff8
	add	x9, x11, x10, lsl #3
Lloh7:
	adrp	x12, lCPI0_0@PAGE
Lloh8:
	ldr	q0, [x12, lCPI0_0@PAGEOFF]
	add	x11, x11, #32
	mov	w12, #8
	dup.2d	v1, x12
	mov	w12, #16
	dup.2d	v2, x12
	mov	w12, #24
	dup.2d	v3, x12
	mov	x12, x10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	shl.2d	v4, v0, #2
	add.2d	v5, v4, v1
	add.2d	v6, v4, v2
	add.2d	v7, v4, v3
	stp	q4, q5, [x11, #-32]
	stp	q6, q7, [x11], #64
	add.2d	v0, v0, v1
	subs	x12, x12, #8
	b.ne	LBB0_9
; %bb.10:
	cmp	x8, x10
	b.eq	LBB0_13
LBB0_11:
	sub	x11, x8, x10
	lsl	x10, x10, #2
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	str	x10, [x9], #8
	add	x10, x10, #4
	subs	x11, x11, #1
	b.ne	LBB0_12
LBB0_13:
	mov	x9, #0
	ldr	x0, [x19]
	lsl	x8, x8, #2
	mov	x10, x0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cmp	x9, x11
	b.ne	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x9, x9, #4
	add	x10, x10, #8
	cmp	x8, x9
	b.ne	LBB0_14
LBB0_16:
	mov	w1, #0
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memset
	mov	w0, #1
	b	LBB0_18
LBB0_17:
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdr	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	3                               ; @memory_test.testval
_memory_test.testval:
	.quad	0                               ; 0x0
	.quad	1431655765                      ; 0x55555555
	.quad	2863311530                      ; 0xaaaaaaaa
	.quad	1717986918                      ; 0x66666666
	.quad	2576980377                      ; 0x99999999
	.quad	4294967295                      ; 0xffffffff
	.quad	305419896                       ; 0x12345678

	.comm	_SCA_MEM_SIZE,4,2               ; @SCA_MEM_SIZE
	.no_dead_strip	_memory_test
.subsections_via_symbols
