	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__pthread_create                ## -- Begin function _pthread_create
	.p2align	4, 0x90
__pthread_create:                       ## @_pthread_create
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	__thr_check_init
	xorl	%eax, %eax
	callq	__thr_isthreaded
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	__malloc_first_thread
	movl	$1, %edi
	callq	__thr_setthreaded
LBB0_2:
	xorl	%eax, %eax
	callq	__get_curthread
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	__thr_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	leaq	-184(%rbp), %rdi
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	testq	%r13, %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_6
## %bb.5:
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movups	32(%rax), %xmm2
	movups	%xmm0, 48(%r15)
	movq	48(%rax), %rbx
	movq	%rbx, 96(%r15)
	movups	%xmm2, 80(%r15)
	movups	%xmm1, 64(%r15)
	movl	48(%r15), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	$0, 96(%r15)
	movl	$0, 48(%r15)
	jmp	LBB0_8
LBB0_6:
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	__pthread_attr_default@GOTPCREL(%rip), %rax
	movq	48(%rax), %rcx
	movq	%rcx, 96(%r15)
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movups	32(%rax), %xmm2
	movups	%xmm2, 80(%r15)
	movups	%xmm1, 64(%r15)
	movups	%xmm0, 48(%r15)
	xorl	%ebx, %ebx
LBB0_8:
	leaq	48(%r15), %r12
	movq	56(%r15), %rax
	movq	_PTHREAD_INHERIT_SCHED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.9:
	movq	_PTHREAD_SCOPE_SYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, 64(%rcx)
	je	LBB0_11
## %bb.10:
	orl	%eax, 64(%r15)
	jmp	LBB0_12
LBB0_11:
	notl	%eax
	andl	%eax, 64(%r15)
LBB0_12:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	84(%rcx), %eax
	movl	%eax, 84(%r15)
	movl	80(%rcx), %eax
	movl	%eax, 80(%r15)
LBB0_13:
	movq	_TID_TERMINATED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r15)
	xorl	%eax, %eax
	callq	__rtld_get_stack_prot
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_create_stack
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	__thr_free
LBB0_3:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_51:
	movl	%r14d, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	_THR_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 136(%r15)
	movq	%r14, (%r15)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 128(%r15)
	movl	$1, 8(%r15)
	movq	$0, 120(%r15)
	movq	_TMQ_NITEMS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_18
## %bb.16:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	112(%r15), %rdi
	addq	%r12, %rdi
	callq	_TAILQ_INIT
	incq	%rbx
	movslq	(%r14), %rax
	addq	$4, %r12
	cmpq	%rax, %rbx
	jl	LBB0_17
LBB0_18:
	movq	72(%r15), %r12
	movq	_THR_CREATE_SUSPENDED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %r12
	jne	LBB0_20
## %bb.19:
	movq	_THR_FLAGS_NEED_SUSPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
LBB0_20:
	movq	_PS_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movq	_PTHREAD_CREATE_DETACHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 64(%r15)
	je	LBB0_22
## %bb.21:
	movq	_THR_FLAGS_DETACHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%r15)
LBB0_22:
	movl	$1, 16(%r15)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	__thr_link
	xorl	%eax, %eax
	callq	__rtld_get_stack_prot
	cmpl	%eax, %r13d
	je	LBB0_24
## %bb.23:
	movq	%r15, %rdi
	callq	__thr_stack_fix_protection
LBB0_24:
	leaq	32(%r15), %r14
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	movq	_TD_CREATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_SHOULD_REPORT_EVENT
	orq	-80(%rbp), %rax                 ## 8-byte Folded Reload
	setne	%r13b
	je	LBB0_26
## %bb.25:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_THR_THREAD_LOCK
LBB0_26:
	movq	_thread_start@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -184(%rbp)
	movq	%r15, -120(%rbp)
	movl	92(%r15), %eax
	movl	%eax, -124(%rbp)
	movl	88(%r15), %eax
	movl	%eax, -128(%rbp)
	movq	104(%r15), %rax
	movq	%rax, -176(%rbp)
	movl	$4, -168(%rbp)
	movq	%r14, -136(%rbp)
	movq	%r14, -144(%rbp)
	movl	$0, -152(%rbp)
	movq	_PTHREAD_SCOPE_SYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 64(%r15)
	movq	%r12, %rbx
	je	LBB0_28
## %bb.27:
	movq	_THR_SYSTEM_SCOPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -152(%rbp)
LBB0_28:
	movq	56(%r15), %rax
	movq	_PTHREAD_INHERIT_SCHED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_30
## %bb.29:
	xorl	%r14d, %r14d
	jmp	LBB0_31
LBB0_30:
	movl	84(%r15), %eax
	movl	%eax, -72(%rbp)
	movl	80(%r15), %edi
	leaq	-72(%rbp), %rsi
	leaq	-104(%rbp), %r14
	movq	%r14, %rdx
	callq	__schedparam_to_rtp
LBB0_31:
	movq	%r14, -160(%rbp)
	cmpq	%r12, %rbx
	jne	LBB0_33
## %bb.32:
	callq	_SIGFILLSET
	movq	_SIGTRAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SIGDELSET
	movq	_SIG_SETMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-108(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	callq	___sys_sigprocmask
	movl	-52(%rbp), %edi
	movl	%edi, 44(%r15)
	movq	_SIGCANCEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SIGDELSET
LBB0_33:
	leaq	-184(%rbp), %rdi
	movl	$72, %esi
	callq	_thr_new
	testl	%eax, %eax
	movq	_TID_TERMINATED@GOTPCREL(%rip), %r14
	movq	%rbx, %rcx
	je	LBB0_34
## %bb.35:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_EPROCLIM@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_37
## %bb.36:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_37:
	cmpq	%r12, %rcx
	jne	LBB0_39
LBB0_38:
	movq	_SIG_SETMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-52(%rbp), %rsi
	xorl	%edx, %edx
	callq	___sys_sigprocmask
LBB0_39:
	testl	%ebx, %ebx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_45
## %bb.40:
	testb	%r13b, %r13b
	jne	LBB0_42
## %bb.41:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_THR_THREAD_LOCK
LBB0_42:
	movq	_PS_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movq	(%r14), %rax
	movq	%rax, 32(%r15)
	movq	_THR_FLAGS_DETACHED@GOTPCREL(%rip), %rax
	movl	12(%r15), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 12(%r15)
	decl	16(%r15)
	movq	_THR_FLAGS_NEED_SUSPEND@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_44
## %bb.43:
	incl	24(%r15)
	movq	%r15, %rdi
	addq	$24, %rdi
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	__thr_umtx_wake
LBB0_44:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	__thr_try_gc
	movq	__thread_active_threads@GOTPCREL(%rip), %rdi
	movl	$-1, %esi
	callq	_atomic_add_int
LBB0_50:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	movl	%ebx, %r14d
	jmp	LBB0_51
LBB0_34:
	xorl	%ebx, %ebx
	cmpq	%r12, %rcx
	je	LBB0_38
	jmp	LBB0_39
LBB0_45:
	xorl	%r14d, %r14d
	testb	%r13b, %r13b
	je	LBB0_51
## %bb.46:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_48
## %bb.47:
	movq	_CPU_LEVEL_WHICH@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_CPU_WHICH_TID@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r15, %rdi
	callq	_TID
	movl	%r12d, %edi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	%eax, %edx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movq	%rbx, %r8
	callq	_cpuset_setaffinity
	testq	%rax, %rax
	je	LBB0_48
## %bb.49:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$1, 20(%r15)
	movq	_THR_FLAGS_DETACHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%r15)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	__thr_try_gc
	testl	%ebx, %ebx
	jne	LBB0_50
	jmp	LBB0_51
LBB0_48:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	__thr_report_creation
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_THR_THREAD_UNLOCK
	jmp	LBB0_51
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	__pthread_attr_default,56,3     ## @_pthread_attr_default
	.comm	_PTHREAD_INHERIT_SCHED,8,3      ## @PTHREAD_INHERIT_SCHED
	.comm	_PTHREAD_SCOPE_SYSTEM,4,2       ## @PTHREAD_SCOPE_SYSTEM
	.comm	_TID_TERMINATED,8,3             ## @TID_TERMINATED
	.comm	_THR_MAGIC,4,2                  ## @THR_MAGIC
	.comm	_TMQ_NITEMS,4,2                 ## @TMQ_NITEMS
	.comm	_THR_CREATE_SUSPENDED,8,3       ## @THR_CREATE_SUSPENDED
	.comm	_THR_FLAGS_NEED_SUSPEND,4,2     ## @THR_FLAGS_NEED_SUSPEND
	.comm	_PS_RUNNING,4,2                 ## @PS_RUNNING
	.comm	_PTHREAD_CREATE_DETACHED,4,2    ## @PTHREAD_CREATE_DETACHED
	.comm	_THR_FLAGS_DETACHED,4,2         ## @THR_FLAGS_DETACHED
	.comm	_TD_CREATE,4,2                  ## @TD_CREATE
	.comm	_thread_start,8,3               ## @thread_start
	.comm	_THR_SYSTEM_SCOPE,4,2           ## @THR_SYSTEM_SCOPE
	.comm	_SIGTRAP,4,2                    ## @SIGTRAP
	.comm	_SIG_SETMASK,4,2                ## @SIG_SETMASK
	.comm	_SIGCANCEL,4,2                  ## @SIGCANCEL
	.comm	_errno,4,2                      ## @errno
	.comm	_EPROCLIM,4,2                   ## @EPROCLIM
	.comm	_PS_DEAD,4,2                    ## @PS_DEAD
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	__thread_active_threads,4,2     ## @_thread_active_threads
	.comm	_CPU_LEVEL_WHICH,4,2            ## @CPU_LEVEL_WHICH
	.comm	_CPU_WHICH_TID,4,2              ## @CPU_WHICH_TID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__pthread_create                ; -- Begin function _pthread_create
	.p2align	2
__pthread_create:                       ; @_pthread_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x3
	mov	x25, x2
	mov	x22, x1
	mov	x19, x0
	bl	__thr_check_init
	bl	__thr_isthreaded
	cbnz	x0, LBB0_2
; %bb.1:
	bl	__malloc_first_thread
	mov	w0, #1
	bl	__thr_setthreaded
LBB0_2:
	bl	__get_curthread
	mov	x20, x0
	bl	__thr_alloc
	cbz	x0, LBB0_14
; %bb.3:
	mov	x21, x0
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #72
	bl	_memset
	cbz	x22, LBB0_6
; %bb.4:
	ldr	x8, [x22]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x22, [x8, #48]
	ldp	q1, q0, [x8, #16]
	ldr	q2, [x8]
	stp	q1, q0, [x21, #64]
	str	q2, [x21, #48]
	ldr	w8, [x21, #48]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	str	xzr, [x21, #96]
	str	wzr, [x21, #48]
	b	LBB0_7
LBB0_6:
	mov	x22, #0
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
Lloh0:
	adrp	x8, __pthread_attr_default@GOTPAGE
Lloh1:
	ldr	x8, [x8, __pthread_attr_default@GOTPAGEOFF]
	ldr	x9, [x8, #48]
	ldp	q0, q1, [x8]
	stp	q0, q1, [x21, #48]
	ldr	q0, [x8, #32]
	str	q0, [x21, #80]
	str	x9, [x21, #96]
LBB0_7:
	add	x27, x21, #48
	ldr	x8, [x21, #56]
Lloh2:
	adrp	x23, _PTHREAD_INHERIT_SCHED@GOTPAGE
Lloh3:
	ldr	x23, [x23, _PTHREAD_INHERIT_SCHED@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.8:
	ldr	w9, [x20, #64]
Lloh4:
	adrp	x8, _PTHREAD_SCOPE_SYSTEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PTHREAD_SCOPE_SYSTEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_10
; %bb.9:
	ldr	w9, [x21, #64]
	orr	w8, w9, w8
	b	LBB0_11
LBB0_10:
	ldr	w9, [x21, #64]
	bic	w8, w9, w8
LBB0_11:
	str	w8, [x21, #64]
	ldr	d0, [x20, #80]
	str	d0, [x21, #80]
LBB0_12:
Lloh7:
	adrp	x8, _TID_TERMINATED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TID_TERMINATED@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	mov	x28, x21
	str	x8, [x28, #32]!
	bl	__rtld_get_stack_prot
	mov	x26, x0
	mov	x0, x27
	bl	_create_stack
	cbz	x0, LBB0_16
; %bb.13:
	mov	x0, x20
	mov	x1, x21
	bl	__thr_free
LBB0_14:
Lloh10:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh12:
	ldr	w24, [x8]
LBB0_15:
	mov	x0, x24
	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
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_16:
Lloh13:
	adrp	x8, _THR_MAGIC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _THR_MAGIC@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x21, #136]
	str	x25, [x21]
	mov	w8, #1
	str	w8, [x21, #8]
	stp	xzr, x24, [x21, #120]
Lloh16:
	adrp	x24, _TMQ_NITEMS@GOTPAGE
Lloh17:
	ldr	x24, [x24, _TMQ_NITEMS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.17:
	mov	x25, #0
	mov	x27, #0
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #112]
	add	x0, x8, x25
	bl	_TAILQ_INIT
	add	x27, x27, #1
	ldrsw	x8, [x24]
	add	x25, x25, #4
	cmp	x27, x8
	b.lt	LBB0_18
LBB0_19:
	ldr	x25, [x21, #72]
Lloh18:
	adrp	x8, _THR_CREATE_SUSPENDED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _THR_CREATE_SUSPENDED@GOTPAGEOFF]
Lloh20:
	ldr	x27, [x8]
Lloh21:
	adrp	x8, _THR_FLAGS_NEED_SUSPEND@GOTPAGE
Lloh22:
	ldr	x8, [x8, _THR_FLAGS_NEED_SUSPEND@GOTPAGEOFF]
	cmp	x25, x27
	b.ne	LBB0_21
; %bb.20:
	ldr	w8, [x8]
	str	w8, [x21, #12]
LBB0_21:
Lloh23:
	adrp	x8, _PS_RUNNING@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PS_RUNNING@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x21, #40]
	ldr	w8, [x21, #64]
Lloh26:
	adrp	x9, _PTHREAD_CREATE_DETACHED@GOTPAGE
Lloh27:
	ldr	x9, [x9, _PTHREAD_CREATE_DETACHED@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
Lloh29:
	adrp	x24, _THR_FLAGS_DETACHED@GOTPAGE
Lloh30:
	ldr	x24, [x24, _THR_FLAGS_DETACHED@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.22:
	ldr	w8, [x24]
	ldr	w9, [x21, #12]
	orr	w8, w9, w8
	str	w8, [x21, #12]
LBB0_23:
	mov	w8, #1
	str	w8, [x21, #16]
	mov	x0, x20
	mov	x1, x21
	bl	__thr_link
	bl	__rtld_get_stack_prot
	cmp	w26, w0
	b.eq	LBB0_25
; %bb.24:
	mov	x0, x21
	bl	__thr_stack_fix_protection
LBB0_25:
	str	x21, [x19]
Lloh31:
	adrp	x8, _TD_CREATE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _TD_CREATE@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_SHOULD_REPORT_EVENT
	orr	x8, x0, x22
	cmp	x8, #0
	cset	w26, ne
	cbz	x8, LBB0_27
; %bb.26:
	mov	x0, x20
	mov	x1, x21
	bl	_THR_THREAD_LOCK
LBB0_27:
Lloh34:
	adrp	x8, _thread_start@GOTPAGE
Lloh35:
	ldr	x8, [x8, _thread_start@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	str	x21, [sp, #104]
	ldr	d0, [x21, #88]
	str	d0, [sp, #96]
	ldr	x9, [x21, #104]
	stp	x8, x9, [sp, #40]
	mov	w8, #4
	stp	x28, x28, [sp, #80]
	str	w8, [sp, #56]
	str	wzr, [sp, #72]
	ldr	w8, [x21, #64]
Lloh37:
	adrp	x9, _PTHREAD_SCOPE_SYSTEM@GOTPAGE
Lloh38:
	ldr	x9, [x9, _PTHREAD_SCOPE_SYSTEM@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_29
; %bb.28:
Lloh40:
	adrp	x8, _THR_SYSTEM_SCOPE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _THR_SYSTEM_SCOPE@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	str	w8, [sp, #72]
LBB0_29:
	ldr	x8, [x21, #56]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_31
; %bb.30:
	mov	x23, #0
	b	LBB0_32
LBB0_31:
	ldp	w0, w8, [x21, #80]
	str	w8, [sp, #32]
	add	x23, sp, #24
	add	x1, sp, #32
	add	x2, sp, #24
	bl	__schedparam_to_rtp
LBB0_32:
	str	x23, [sp, #64]
	cmp	x25, x27
	b.ne	LBB0_34
; %bb.33:
	bl	_SIGFILLSET
Lloh43:
	adrp	x8, _SIGTRAP@GOTPAGE
Lloh44:
	ldr	x8, [x8, _SIGTRAP@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	bl	_SIGDELSET
Lloh46:
	adrp	x8, _SIG_SETMASK@GOTPAGE
Lloh47:
	ldr	x8, [x8, _SIG_SETMASK@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
	add	x1, sp, #20
	add	x2, sp, #16
	bl	___sys_sigprocmask
	ldr	w0, [sp, #16]
	str	w0, [x21, #44]
Lloh49:
	adrp	x8, _SIGCANCEL@GOTPAGE
Lloh50:
	ldr	x8, [x8, _SIGCANCEL@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	bl	_SIGDELSET
LBB0_34:
	mov	x28, x24
	add	x0, sp, #40
	mov	w1, #72
	bl	_thr_new
Lloh52:
	adrp	x23, _TID_TERMINATED@GOTPAGE
Lloh53:
	ldr	x23, [x23, _TID_TERMINATED@GOTPAGEOFF]
	cbz	w0, LBB0_44
; %bb.35:
Lloh54:
	adrp	x8, _errno@GOTPAGE
Lloh55:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
Lloh57:
	adrp	x9, _EPROCLIM@GOTPAGE
Lloh58:
	ldr	x9, [x9, _EPROCLIM@GOTPAGEOFF]
Lloh59:
	ldr	w9, [x9]
Lloh60:
	adrp	x10, _EAGAIN@GOTPAGE
Lloh61:
	ldr	x10, [x10, _EAGAIN@GOTPAGEOFF]
Lloh62:
	ldr	w10, [x10]
	cmp	w8, w9
	csel	w24, w10, w8, eq
	cmp	x25, x27
	b.ne	LBB0_37
LBB0_36:
Lloh63:
	adrp	x8, _SIG_SETMASK@GOTPAGE
Lloh64:
	ldr	x8, [x8, _SIG_SETMASK@GOTPAGEOFF]
Lloh65:
	ldr	w0, [x8]
	add	x1, sp, #16
	mov	x2, #0
	bl	___sys_sigprocmask
LBB0_37:
	cbz	w24, LBB0_45
; %bb.38:
	tbnz	w26, #0, LBB0_40
; %bb.39:
	mov	x0, x20
	mov	x1, x21
	bl	_THR_THREAD_LOCK
LBB0_40:
Lloh66:
	adrp	x8, _PS_DEAD@GOTPAGE
Lloh67:
	ldr	x8, [x8, _PS_DEAD@GOTPAGEOFF]
Lloh68:
	ldr	w8, [x8]
	str	w8, [x21, #40]
	ldr	x8, [x23]
	str	x8, [x21, #32]
	ldur	d0, [x21, #12]
	movi.2d	v1, #0xffffffffffffffff
	movi.2d	v2, #0xffffffffffffffff
	ld1.s	{ v2 }[0], [x28]
	orr.8b	v2, v0, v2
	add.2s	v0, v0, v1
	fmov	w8, s2
	mov.s	v2[1], v0[1]
	stur	d2, [x21, #12]
Lloh69:
	adrp	x9, _THR_FLAGS_NEED_SUSPEND@GOTPAGE
Lloh70:
	ldr	x9, [x9, _THR_FLAGS_NEED_SUSPEND@GOTPAGEOFF]
Lloh71:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_42
; %bb.41:
	mov	x0, x21
	ldr	w8, [x0, #24]!
	add	w8, w8, #1
	str	w8, [x0]
Lloh72:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh73:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh74:
	ldr	w1, [x8]
	mov	w2, #0
	bl	__thr_umtx_wake
LBB0_42:
	mov	x0, x20
	mov	x1, x21
	bl	__thr_try_gc
Lloh75:
	adrp	x0, __thread_active_threads@GOTPAGE
Lloh76:
	ldr	x0, [x0, __thread_active_threads@GOTPAGEOFF]
	mov	w1, #-1
	bl	_atomic_add_int
LBB0_43:
	str	xzr, [x19]
	b	LBB0_15
LBB0_44:
	mov	w24, #0
	cmp	x25, x27
	b.eq	LBB0_36
	b	LBB0_37
LBB0_45:
	cbz	w26, LBB0_49
; %bb.46:
	cbz	x22, LBB0_50
; %bb.47:
Lloh77:
	adrp	x8, _CPU_LEVEL_WHICH@GOTPAGE
Lloh78:
	ldr	x8, [x8, _CPU_LEVEL_WHICH@GOTPAGEOFF]
Lloh79:
	ldr	w24, [x8]
Lloh80:
	adrp	x8, _CPU_WHICH_TID@GOTPAGE
Lloh81:
	ldr	x8, [x8, _CPU_WHICH_TID@GOTPAGEOFF]
Lloh82:
	ldr	w25, [x8]
	mov	x0, x21
	bl	_TID
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	ldr	w3, [sp, #12]                   ; 4-byte Folded Reload
	mov	x4, x22
	bl	_cpuset_setaffinity
	cbz	x0, LBB0_50
; %bb.48:
Lloh83:
	adrp	x8, _errno@GOTPAGE
Lloh84:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh85:
	ldr	w24, [x8]
	mov	w8, #1
	str	w8, [x21, #20]
	ldr	w8, [x28]
	ldr	w9, [x21, #12]
	orr	w8, w9, w8
	str	w8, [x21, #12]
	mov	x0, x20
	mov	x1, x21
	bl	__thr_try_gc
	cbnz	w24, LBB0_43
	b	LBB0_15
LBB0_49:
	mov	w24, #0
	b	LBB0_15
LBB0_50:
	mov	x0, x20
	mov	x1, x21
	bl	__thr_report_creation
	mov	x0, x20
	mov	x1, x21
	bl	_THR_THREAD_UNLOCK
	mov	w24, #0
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	__pthread_attr_default,56,3     ; @_pthread_attr_default
	.comm	_PTHREAD_INHERIT_SCHED,8,3      ; @PTHREAD_INHERIT_SCHED
	.comm	_PTHREAD_SCOPE_SYSTEM,4,2       ; @PTHREAD_SCOPE_SYSTEM
	.comm	_TID_TERMINATED,8,3             ; @TID_TERMINATED
	.comm	_THR_MAGIC,4,2                  ; @THR_MAGIC
	.comm	_TMQ_NITEMS,4,2                 ; @TMQ_NITEMS
	.comm	_THR_CREATE_SUSPENDED,8,3       ; @THR_CREATE_SUSPENDED
	.comm	_THR_FLAGS_NEED_SUSPEND,4,2     ; @THR_FLAGS_NEED_SUSPEND
	.comm	_PS_RUNNING,4,2                 ; @PS_RUNNING
	.comm	_PTHREAD_CREATE_DETACHED,4,2    ; @PTHREAD_CREATE_DETACHED
	.comm	_THR_FLAGS_DETACHED,4,2         ; @THR_FLAGS_DETACHED
	.comm	_TD_CREATE,4,2                  ; @TD_CREATE
	.comm	_thread_start,8,3               ; @thread_start
	.comm	_THR_SYSTEM_SCOPE,4,2           ; @THR_SYSTEM_SCOPE
	.comm	_SIGTRAP,4,2                    ; @SIGTRAP
	.comm	_SIG_SETMASK,4,2                ; @SIG_SETMASK
	.comm	_SIGCANCEL,4,2                  ; @SIGCANCEL
	.comm	_errno,4,2                      ; @errno
	.comm	_EPROCLIM,4,2                   ; @EPROCLIM
	.comm	_PS_DEAD,4,2                    ; @PS_DEAD
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	__thread_active_threads,4,2     ; @_thread_active_threads
	.comm	_CPU_LEVEL_WHICH,4,2            ; @CPU_LEVEL_WHICH
	.comm	_CPU_WHICH_TID,4,2              ; @CPU_WHICH_TID
.subsections_via_symbols
