	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_tasks
_create_tasks:                          ## @create_tasks
	.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
	movq	%rdi, %r15
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_pthread_attr_init
	movl	%eax, %edi
	callq	_BUG_ON
	movq	_PTHREAD_STACK_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16384, %edi                    ## imm = 0x4000
	callq	_max
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_pthread_attr_setstacksize
	movl	%eax, %edi
	callq	_BUG_ON
	leaq	20(%r15), %rdi
	callq	_pthread_mutex_lock
	movl	%eax, %edi
	callq	_BUG_ON
	leaq	16(%r15), %rdi
	callq	_pthread_mutex_lock
	movl	%eax, %edi
	callq	_BUG_ON
	cmpq	$0, (%r15)
	je	LBB0_3
## %bb.1:
	xorl	%r13d, %r13d
	leaq	-44(%rbp), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$16, %edi
	callq	_malloc
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_BUG_ON
	movq	8(%r15), %rax
	movq	(%rax,%r13,8), %rbx
	movq	%rbx, 8(%r12)
	movq	%r15, (%r12)
	leaq	24(%rbx), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_sem_init
	leaq	20(%rbx), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_sem_init
	leaq	16(%rbx), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_sem_init
	movq	$0, 8(%rbx)
	movq	_thread_func@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rcx
	callq	_pthread_create
	movl	%eax, %edi
	callq	_BUG_ON
	incq	%r13
	cmpq	(%r15), %r13
	jb	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PTHREAD_STACK_MIN,4,2          ## @PTHREAD_STACK_MIN
	.comm	_thread_func,4,2                ## @thread_func
	.no_dead_strip	_create_tasks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_tasks
_create_tasks:                          ; @create_tasks
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	add	x0, sp, #12
	bl	_pthread_attr_init
	bl	_BUG_ON
Lloh0:
	adrp	x8, _PTHREAD_STACK_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PTHREAD_STACK_MIN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16384
	bl	_max
	mov	x1, x0
	add	x0, sp, #12
	bl	_pthread_attr_setstacksize
	bl	_BUG_ON
	add	x0, x19, #20
	bl	_pthread_mutex_lock
	bl	_BUG_ON
	add	x0, x19, #16
	bl	_pthread_mutex_lock
	bl	_BUG_ON
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x22, #0
Lloh3:
	adrp	x23, _thread_func@GOTPAGE
Lloh4:
	ldr	x23, [x23, _thread_func@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #16
	bl	_malloc
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x8, [x19, #8]
	ldr	x21, [x8, x22, lsl #3]
	stp	x19, x21, [x20]
	add	x0, x21, #24
	mov	w1, #0
	mov	w2, #0
	bl	_sem_init
	add	x0, x21, #20
	mov	w1, #0
	mov	w2, #0
	bl	_sem_init
	add	x0, x21, #16
	mov	w1, #0
	mov	w2, #0
	bl	_sem_init
	str	xzr, [x21, #8]
	ldr	w2, [x23]
	add	x1, sp, #12
	mov	x0, x21
	mov	x3, x20
	bl	_pthread_create
	bl	_BUG_ON
	add	x22, x22, #1
	ldr	x8, [x19]
	cmp	x22, x8
	b.lo	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PTHREAD_STACK_MIN,4,2          ; @PTHREAD_STACK_MIN
	.comm	_thread_func,4,2                ; @thread_func
	.no_dead_strip	_create_tasks
.subsections_via_symbols
