	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function join_common
_join_common:                           ## @join_common
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r13
	xorl	%eax, %eax
	callq	__get_curthread
	testq	%r13, %r13
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	cmpq	%r13, %rax
	je	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	callq	__thr_find_thread
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_ESRCH@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_25
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_25
LBB0_3:
	movq	_EDEADLK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_25
LBB0_6:
	movq	_THR_FLAGS_DETACHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	cmpq	$0, 16(%r13)
	je	LBB0_12
## %bb.9:
	movq	_ENOTSUP@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %r14d
	testl	%r14d, %r14d
	jne	LBB0_11
LBB0_12:
	movq	%r15, 16(%r13)
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_THR_THREAD_UNLOCK
	movq	_backout_join@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_THR_CLEANUP_PUSH
	movq	%r15, %rdi
	callq	__thr_cancel_enter
	movq	8(%r13), %rax
	movq	_TID_TERMINATED@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	cmpq	(%rcx), %rax
	je	LBB0_20
## %bb.13:
	leaq	8(%r13), %rbx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	__thr_testcancel
	testq	%r12, %r12
	je	LBB0_16
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%r12, %r14
	movq	_CLOCK_REALTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-88(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_clock_gettime
	leaq	-80(%rbp), %r12
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_TIMESPEC_SUB
	cmpq	$0, -80(%rbp)
	movq	%r12, %rdx
	jns	LBB0_17
	jmp	LBB0_19
LBB0_16:                                ##   in Loop: Header=BB0_15 Depth=1
	xorl	%edx, %edx
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	__thr_umtx_wait
	movl	%eax, %r14d
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	(%rbx), %rax
	movq	_TID_TERMINATED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_15
	jmp	LBB0_20
LBB0_19:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_20:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	__thr_cancel_leave
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_THR_CLEANUP_POP
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_22
## %bb.21:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_THR_THREAD_LOCK
	movq	$0, 16(%r13)
LBB0_11:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_THR_THREAD_UNLOCK
	jmp	LBB0_25
LBB0_22:
	movq	24(%r13), %rbx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_THR_THREAD_LOCK
	movq	_THR_FLAGS_DETACHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r13)
	movq	$0, 16(%r13)
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	__thr_try_gc
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	%rbx, (%rax)
LBB0_24:
	xorl	%r14d, %r14d
LBB0_25:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EDEADLK,4,2                    ## @EDEADLK
	.comm	_ESRCH,4,2                      ## @ESRCH
	.comm	_THR_FLAGS_DETACHED,4,2         ## @THR_FLAGS_DETACHED
	.comm	_ENOTSUP,4,2                    ## @ENOTSUP
	.comm	_backout_join,4,2               ## @backout_join
	.comm	_TID_TERMINATED,8,3             ## @TID_TERMINATED
	.comm	_CLOCK_REALTIME,4,2             ## @CLOCK_REALTIME
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_join_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function join_common
_join_common:                           ; @join_common
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x2
	mov	x21, x1
	mov	x19, x0
	bl	__get_curthread
	cbz	x19, LBB0_4
; %bb.1:
	mov	x20, x0
	cmp	x0, x19
	b.eq	LBB0_5
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	__thr_find_thread
	cbz	w0, LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _ESRCH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	b	LBB0_22
LBB0_4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	b	LBB0_22
LBB0_5:
Lloh6:
	adrp	x8, _EDEADLK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EDEADLK@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
	b	LBB0_22
LBB0_6:
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _THR_FLAGS_DETACHED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _THR_FLAGS_DETACHED@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x8]
	cbnz	w23, LBB0_21
	b	LBB0_10
LBB0_8:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_10
; %bb.9:
Lloh15:
	adrp	x8, _ENOTSUP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOTSUP@GOTPAGEOFF]
Lloh17:
	ldr	w23, [x8]
	cbnz	w23, LBB0_21
LBB0_10:
	str	x20, [x19, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_THR_THREAD_UNLOCK
Lloh18:
	adrp	x8, _backout_join@GOTPAGE
Lloh19:
	ldr	x8, [x8, _backout_join@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_THR_CLEANUP_PUSH
	mov	x0, x20
	bl	__thr_cancel_enter
	mov	x24, x19
	ldr	x25, [x24, #8]!
Lloh21:
	adrp	x27, _TID_TERMINATED@GOTPAGE
Lloh22:
	ldr	x27, [x27, _TID_TERMINATED@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x25, x8
	b.ne	LBB0_12
; %bb.11:
	mov	w23, #0
	b	LBB0_19
LBB0_12:
Lloh23:
	adrp	x28, _ETIMEDOUT@GOTPAGE
Lloh24:
	ldr	x28, [x28, _ETIMEDOUT@GOTPAGEOFF]
Lloh25:
	adrp	x26, _CLOCK_REALTIME@GOTPAGE
Lloh26:
	ldr	x26, [x26, _CLOCK_REALTIME@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	__thr_testcancel
	cbz	x22, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x26]
	add	x1, sp, #8
	bl	_clock_gettime
	mov	x23, sp
	mov	x0, sp
	add	x2, sp, #8
	mov	x1, x22
	bl	_TIMESPEC_SUB
	ldr	x8, [sp]
	tbz	x8, #63, LBB0_16
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x23, #0
LBB0_16:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x24
	mov	x1, x25
	mov	x2, x23
	bl	__thr_umtx_wait
	mov	x23, x0
	ldr	w8, [x28]
	cmp	w0, w8
	b.eq	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x24]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_13
	b	LBB0_19
LBB0_18:
	ldr	w23, [x28]
LBB0_19:
	mov	x0, x20
	mov	w1, #0
	bl	__thr_cancel_leave
	mov	x0, x20
	mov	w1, #0
	bl	_THR_CLEANUP_POP
Lloh27:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_23
; %bb.20:
	mov	x0, x20
	mov	x1, x19
	bl	_THR_THREAD_LOCK
	str	xzr, [x19, #16]
LBB0_21:
	mov	x0, x20
	mov	x1, x19
	bl	_THR_THREAD_UNLOCK
LBB0_22:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_23:
	ldr	x22, [x19, #24]
	mov	x0, x20
	mov	x1, x19
	bl	_THR_THREAD_LOCK
Lloh30:
	adrp	x8, _THR_FLAGS_DETACHED@GOTPAGE
Lloh31:
	ldr	x8, [x8, _THR_FLAGS_DETACHED@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	str	xzr, [x19, #16]
	mov	x0, x20
	mov	x1, x19
	bl	__thr_try_gc
	mov	w23, #0
	cbz	x21, LBB0_22
; %bb.24:
	str	x22, [x21]
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EDEADLK,4,2                    ; @EDEADLK
	.comm	_ESRCH,4,2                      ; @ESRCH
	.comm	_THR_FLAGS_DETACHED,4,2         ; @THR_FLAGS_DETACHED
	.comm	_ENOTSUP,4,2                    ; @ENOTSUP
	.comm	_backout_join,4,2               ; @backout_join
	.comm	_TID_TERMINATED,8,3             ; @TID_TERMINATED
	.comm	_CLOCK_REALTIME,4,2             ; @CLOCK_REALTIME
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_join_common
.subsections_via_symbols
