	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function threadfunc1
_threadfunc1:                           ## @threadfunc1
	.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
	subq	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -176(%rbp)
	xorl	%eax, %eax
	callq	_pthread_self
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_pthread_join
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_ATF_REQUIRE
	movq	_EDEADLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_ATF_REQUIRE_EQ
	leaq	-164(%rbp), %rdi
	callq	_pthread_attr_init
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ATF_REQUIRE
	leaq	-160(%rbp), %rdi
	callq	___arraycount
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	xorl	%r13d, %r13d
	movq	_error@GOTPCREL(%rip), %r14
	leaq	-164(%rbp), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, (%r14)
	leaq	1(%rbx), %r15
	movq	_STACKSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	imulq	%r15, %rsi
	movq	%r12, %rdi
	callq	_pthread_attr_setstacksize
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ATF_REQUIRE
	leaq	-160(,%r13), %rdi
	addq	%rbp, %rdi
	movq	_threadfunc2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	movq	%rbx, %rcx
	callq	_pthread_create
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ATF_REQUIRE_EQ
	movl	-160(%rbp,%rbx,4), %edi
	leaq	-176(%rbp), %rsi
	callq	_pthread_join
	movl	%eax, %edi
	callq	_PTHREAD_REQUIRE
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_ATF_REQUIRE_EQ
	xorl	%edi, %edi
	cmpq	$0, -176(%rbp)
	setne	%dil
	callq	_ATF_REQUIRE
	xorl	%edi, %edi
	cmpq	%r15, -176(%rbp)
	sete	%dil
	callq	_ATF_REQUIRE
	movl	-160(%rbp,%rbx,4), %edi
	xorl	%esi, %esi
	callq	_pthread_join
	movq	_ESRCH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_ATF_REQUIRE_EQ
	movl	-160(%rbp,%rbx,4), %edi
	callq	_pthread_detach
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_ATF_REQUIRE
	leaq	-160(%rbp), %rdi
	callq	___arraycount
	addq	$4, %r13
	movq	%r15, %rbx
	cmpq	%rax, %r15
	jb	LBB0_2
LBB0_3:
	leaq	-164(%rbp), %rdi
	callq	_pthread_attr_destroy
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_ATF_REQUIRE
	xorl	%edi, %edi
	callq	_pthread_exit
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EDEADLK,4,2                    ## @EDEADLK
	.comm	_error,4,2                      ## @error
	.comm	_STACKSIZE,8,3                  ## @STACKSIZE
	.comm	_threadfunc2,4,2                ## @threadfunc2
	.comm	_ESRCH,4,2                      ## @ESRCH
	.no_dead_strip	_threadfunc1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function threadfunc1
_threadfunc1:                           ; @threadfunc1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	str	xzr, [sp, #8]
	bl	_pthread_self
	mov	x1, #0
	bl	_pthread_join
	mov	x19, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_ATF_REQUIRE
Lloh3:
	adrp	x8, _EDEADLK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EDEADLK@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ATF_REQUIRE_EQ
	add	x0, sp, #4
	bl	_pthread_attr_init
	cmp	x0, #0
	cset	w0, eq
	bl	_ATF_REQUIRE
	add	x0, sp, #20
	bl	___arraycount
	cbz	x0, LBB0_3
; %bb.1:
	add	x19, sp, #20
Lloh6:
	adrp	x21, _error@GOTPAGE
Lloh7:
	ldr	x21, [x21, _error@GOTPAGEOFF]
Lloh8:
	adrp	x22, _STACKSIZE@GOTPAGE
Lloh9:
	ldr	x22, [x22, _STACKSIZE@GOTPAGEOFF]
	mov	w23, #1
Lloh10:
	adrp	x24, _threadfunc2@GOTPAGE
Lloh11:
	ldr	x24, [x24, _threadfunc2@GOTPAGEOFF]
	mov	w26, #1
Lloh12:
	adrp	x25, _ESRCH@GOTPAGE
Lloh13:
	ldr	x25, [x25, _ESRCH@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	x20, x26, #1
	str	w23, [x21]
	ldr	x8, [x22]
	mul	x1, x8, x26
	add	x0, sp, #4
	bl	_pthread_attr_setstacksize
	cmp	x0, #0
	cset	w0, eq
	bl	_ATF_REQUIRE
	ldr	w2, [x24]
	add	x1, sp, #4
	mov	x0, x19
	mov	x3, x20
	bl	_pthread_create
	mov	w1, #0
	bl	_ATF_REQUIRE_EQ
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	_pthread_join
	bl	_PTHREAD_REQUIRE
	ldr	w0, [x21]
	mov	w1, #0
	bl	_ATF_REQUIRE_EQ
	ldr	x8, [sp, #8]
	cmp	x8, #0
	cset	w0, ne
	bl	_ATF_REQUIRE
	ldr	x8, [sp, #8]
	cmp	x8, x26
	cset	w0, eq
	bl	_ATF_REQUIRE
	ldr	w0, [x19]
	mov	x1, #0
	bl	_pthread_join
	ldr	w1, [x25]
	bl	_ATF_REQUIRE_EQ
	ldr	w0, [x19], #4
	bl	_pthread_detach
	cmp	w0, #0
	cset	w0, ne
	bl	_ATF_REQUIRE
	add	x0, sp, #20
	bl	___arraycount
	add	x8, x26, #1
	cmp	x26, x0
	mov	x26, x8
	b.lo	LBB0_2
LBB0_3:
	add	x0, sp, #4
	bl	_pthread_attr_destroy
	cmp	x0, #0
	cset	w0, eq
	bl	_ATF_REQUIRE
	mov	x0, #0
	bl	_pthread_exit
	ldur	x8, [x29, #-72]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, #0
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EDEADLK,4,2                    ; @EDEADLK
	.comm	_error,4,2                      ; @error
	.comm	_STACKSIZE,8,3                  ; @STACKSIZE
	.comm	_threadfunc2,4,2                ; @threadfunc2
	.comm	_ESRCH,4,2                      ; @ESRCH
	.no_dead_strip	_threadfunc1
.subsections_via_symbols
