	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	xorl	%eax, %eax
	callq	_TEST_INIT
	xorl	%eax, %eax
	callq	_jmem_init
	movq	_test_iters@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_18
## %bb.1:
	movq	_TEST_CHUNK_SIZE@GOTPCREL(%rip), %r13
	movq	_ptrs@GOTPCREL(%rip), %r15
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movq	_test_iters@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jge	LBB0_18
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_20 Depth 3
                                        ##     Child Loop BB0_12 Depth 2
	xorl	%eax, %eax
	callq	_rand
	movslq	%eax, %rcx
	movq	_TEST_MAX_SUB_ITERS@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	%rcx, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%rsi
	movq	%rdx, %r12
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	divl	%esi
	movl	%edx, %r12d
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	xorl	%edx, %edx
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=2
	movq	_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %edi
	callq	_memcpy
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=2
	incq	%r14
	cmpq	%r12, %r14
	ja	LBB0_11
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_20 Depth 3
	movq	(%r13), %rdi
	callq	_jmem_pools_alloc
	movq	(%r15), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	(%r15), %rax
	movq	(%rax,%r14,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	cmpq	$0, (%r13)
	je	LBB0_8
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=2
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	xorl	%eax, %eax
	callq	_rand
                                        ## kill: def $eax killed $eax def $rax
	leal	255(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	andl	$-256, %ecx
	subl	%ecx, %eax
	cltq
	movq	(%r15), %rcx
	movq	(%rcx,%r14,8), %rsi
	movq	%rax, (%rsi,%rbx,8)
	incq	%rbx
	movq	(%r13), %rdx
	cmpq	%rdx, %rbx
	jb	LBB0_20
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	$-1, %rbx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=2
	incq	%rbx
	cmpq	%r12, %rbx
	je	LBB0_17
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%eax, %eax
	callq	_rand
	testb	%al, %al
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	xorl	%eax, %eax
	callq	_jmem_pools_collect_empty
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	(%r15), %rax
	movq	8(%rax,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%rax,%rbx,4), %edi
	movq	(%r13), %rdx
	callq	_memcmp
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_TEST_ASSERT
	movq	(%r15), %rax
	movq	8(%rax,%rbx,8), %rdi
	movq	(%r13), %rsi
	callq	_jmem_pools_free
	jmp	LBB0_16
LBB0_18:
	xorl	%eax, %eax
	callq	_jmem_finalize
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_test_iters,8,3                 ## @test_iters
	.comm	_TEST_MAX_SUB_ITERS,8,3         ## @TEST_MAX_SUB_ITERS
	.comm	_TEST_CHUNK_SIZE,8,3            ## @TEST_CHUNK_SIZE
	.comm	_ptrs,8,3                       ## @ptrs
	.comm	_data,8,3                       ## @data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	bl	_TEST_INIT
	bl	_jmem_init
Lloh0:
	adrp	x19, _test_iters@GOTPAGE
Lloh1:
	ldr	x19, [x19, _test_iters@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_17
; %bb.1:
	mov	x20, #0
Lloh2:
	adrp	x21, _TEST_MAX_SUB_ITERS@GOTPAGE
Lloh3:
	ldr	x21, [x21, _TEST_MAX_SUB_ITERS@GOTPAGEOFF]
Lloh4:
	adrp	x22, _TEST_CHUNK_SIZE@GOTPAGE
Lloh5:
	ldr	x22, [x22, _TEST_CHUNK_SIZE@GOTPAGEOFF]
Lloh6:
	adrp	x23, _ptrs@GOTPAGE
Lloh7:
	ldr	x23, [x23, _ptrs@GOTPAGEOFF]
Lloh8:
	adrp	x24, _data@GOTPAGE
Lloh9:
	ldr	x24, [x24, _data@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	ldr	x8, [x19]
	cmp	x20, x8
	b.ge	LBB0_17
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_10 Depth 3
                                        ;     Child Loop BB0_13 Depth 2
	bl	_rand
                                        ; kill: def $w0 killed $w0 def $x0
	mov	x26, #0
	sxtw	x8, w0
	ldr	x9, [x21]
	udiv	x10, x8, x9
	msub	x25, x10, x9, x8
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	x2, #0
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x24]
	ldr	w0, [x8, x26, lsl #2]
	bl	_memcpy
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x26, x26, #1
	cmp	x26, x25
	b.hi	LBB0_11
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_10 Depth 3
	ldr	x0, [x22]
	bl	_jmem_pools_alloc
	ldr	x8, [x23]
	lsl	x9, x26, #3
	str	x0, [x8, x9]
	ldr	x8, [x23]
	ldr	x1, [x8, x9]
	cbz	x1, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x22]
	cbz	x8, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x27, #0
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	bl	_rand
	negs	w8, w0
	and	w8, w8, #0xff
	and	w9, w0, #0xff
	csneg	w8, w9, w8, mi
	ldr	x9, [x23]
	ldr	x1, [x9, x26, lsl #3]
	sxtw	x8, w8
	str	x8, [x1, x27, lsl #3]
	add	x27, x27, #1
	ldr	x2, [x22]
	cmp	x27, x2
	b.lo	LBB0_10
	b	LBB0_5
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	add	x8, x26, #1
	cmp	x26, x25
	mov	x26, x8
	b.eq	LBB0_2
LBB0_13:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_rand
	tst	w0, #0xff
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	bl	_jmem_pools_collect_empty
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [x23]
	ldr	x1, [x8, x26, lsl #3]
	cbz	x1, LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [x24]
	ldr	w0, [x8, x26, lsl #2]
	ldr	x2, [x22]
	bl	_memcmp
	cmp	w0, #0
	cset	w0, eq
	bl	_TEST_ASSERT
	ldr	x8, [x23]
	ldr	x0, [x8, x26, lsl #3]
	ldr	x1, [x22]
	bl	_jmem_pools_free
	b	LBB0_12
LBB0_17:
	bl	_jmem_finalize
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_test_iters,8,3                 ; @test_iters
	.comm	_TEST_MAX_SUB_ITERS,8,3         ; @TEST_MAX_SUB_ITERS
	.comm	_TEST_CHUNK_SIZE,8,3            ; @TEST_CHUNK_SIZE
	.comm	_ptrs,8,3                       ; @ptrs
	.comm	_data,8,3                       ; @data
.subsections_via_symbols
