	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_multi_thread
_test_multi_thread:                     ## @test_multi_thread
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_THREADS@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	%rbx, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.1:
	xorl	%r12d, %r12d
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_run_thread
	incq	%r12
	movslq	(%r14), %rax
	addq	$4, %rbx
	cmpq	%rax, %r12
	jl	LBB0_2
LBB0_3:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_run_multi_thread_test
	cmpl	$0, (%r14)
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rbx,4), %edi
	callq	_wait_for_thread
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movq	_multi_thread_rand_bytes_succeeded@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	_multi_thread_rand_priv_bytes_succeeded@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TEST_true
	xorl	%r12d, %r12d
	testl	%eax, %eax
	setne	%r12b
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%r12d, %eax
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_THREADS,4,2                    ## @THREADS
	.comm	_multi_thread_rand_bytes_succeeded,4,2 ## @multi_thread_rand_bytes_succeeded
	.comm	_multi_thread_rand_priv_bytes_succeeded,4,2 ## @multi_thread_rand_priv_bytes_succeeded
	.no_dead_strip	_test_multi_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_multi_thread
_test_multi_thread:                     ; @test_multi_thread
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	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, #-40]
Lloh3:
	adrp	x20, _THREADS@GOTPAGE
Lloh4:
	ldr	x20, [x20, _THREADS@GOTPAGEOFF]
	ldr	w12, [x20]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	cmp	w12, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
	mov	x19, x21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_run_thread
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x19, x19, #4
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_3:
	bl	_run_multi_thread_test
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x19, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, x19, lsl #2]
	bl	_wait_for_thread
	add	x19, x19, #1
	ldrsw	x8, [x20]
	cmp	x19, x8
	b.lt	LBB0_5
LBB0_6:
Lloh7:
	adrp	x8, _multi_thread_rand_bytes_succeeded@GOTPAGE
Lloh8:
	ldr	x8, [x8, _multi_thread_rand_bytes_succeeded@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_TEST_true
	cbz	w0, LBB0_8
; %bb.7:
Lloh10:
	adrp	x8, _multi_thread_rand_priv_bytes_succeeded@GOTPAGE
Lloh11:
	ldr	x8, [x8, _multi_thread_rand_priv_bytes_succeeded@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_TEST_true
	cmp	w0, #0
	cset	w0, ne
LBB0_8:
	ldur	x8, [x29, #-40]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_THREADS,4,2                    ; @THREADS
	.comm	_multi_thread_rand_bytes_succeeded,4,2 ; @multi_thread_rand_bytes_succeeded
	.comm	_multi_thread_rand_priv_bytes_succeeded,4,2 ; @multi_thread_rand_priv_bytes_succeeded
	.no_dead_strip	_test_multi_thread
.subsections_via_symbols
