	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thread_start
_thread_start:                          ## @thread_start
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movq	_THR_CREATE_SUSPENDED@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_2
## %bb.1:
	movl	56(%rbx), %eax
	movl	%eax, -20(%rbp)
LBB0_2:
	movq	%rbx, %rdi
	callq	_THR_LOCK
	movq	%rbx, %rdi
	callq	_THR_UNLOCK
	cmpq	$0, 48(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_PTHREAD_CANCELED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__pthread_exit
LBB0_4:
	movq	24(%rbx), %rax
	cmpq	(%r14), %rax
	jne	LBB0_6
## %bb.5:
	movq	_SIG_SETMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-20(%rbp), %rsi
	xorl	%edx, %edx
	callq	___sys_sigprocmask
LBB0_6:
	movl	8(%rbx), %edi
	callq	*16(%rbx)
	movl	%eax, %edi
	callq	__pthread_exit
	leaq	L_.str(%rip), %rdi
	callq	_PANIC
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_THR_CREATE_SUSPENDED,8,3       ## @THR_CREATE_SUSPENDED
	.comm	_PTHREAD_CANCELED,4,2           ## @PTHREAD_CANCELED
	.comm	_SIG_SETMASK,4,2                ## @SIG_SETMASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Thread has resumed after exit"

	.no_dead_strip	_thread_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function thread_start
_thread_start:                          ; @thread_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0, #24]
Lloh0:
	adrp	x20, _THR_CREATE_SUSPENDED@GOTPAGE
Lloh1:
	ldr	x20, [x20, _THR_CREATE_SUSPENDED@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x19, #56]
	str	w8, [sp, #12]
LBB0_2:
	mov	x0, x19
	bl	_THR_LOCK
	mov	x0, x19
	bl	_THR_UNLOCK
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _PTHREAD_CANCELED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PTHREAD_CANCELED@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	__pthread_exit
LBB0_4:
	ldr	x8, [x19, #24]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
Lloh5:
	adrp	x8, _SIG_SETMASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SIG_SETMASK@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x1, sp, #12
	mov	x2, #0
	bl	___sys_sigprocmask
LBB0_6:
	ldr	x8, [x19, #16]
	ldr	w0, [x19, #8]
	blr	x8
	bl	__pthread_exit
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_PANIC
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_THR_CREATE_SUSPENDED,8,3       ; @THR_CREATE_SUSPENDED
	.comm	_PTHREAD_CANCELED,4,2           ; @PTHREAD_CANCELED
	.comm	_SIG_SETMASK,4,2                ; @SIG_SETMASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Thread has resumed after exit"

	.no_dead_strip	_thread_start
.subsections_via_symbols
