	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thread_db_thread_alive
_thread_db_thread_alive:                ## @thread_db_thread_alive
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	callq	_is_thread
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movl	%ebx, %edi
	callq	_find_thread_pid
	movq	%rax, %rbx
	xorl	%r14d, %r14d
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_thread_db_map_id2thr
	movq	(%rbx), %rdi
	cmpl	$0, 20(%rdi)
	je	LBB0_9
## %bb.2:
	addq	$16, %rdi
	callq	_td_thr_validate_p
	movq	_TD_OK@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jne	LBB0_9
## %bb.3:
	movq	(%rbx), %rsi
	cmpl	$0, (%rsi)
	jne	LBB0_6
## %bb.4:
	leaq	16(%rsi), %rdi
	addq	$8, %rsi
	callq	_td_thr_get_info_p
	cmpl	(%r15), %eax
	jne	LBB0_9
## %bb.5:
	movq	(%rbx), %rsi
	movl	$1, (%rsi)
LBB0_6:
	movq	8(%rsi), %rax
	movq	_TD_THR_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	%cl
	movq	_TD_THR_ZOMBIE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	setne	%al
	andb	%cl, %al
	movzbl	%al, %r14d
	jmp	LBB0_9
LBB0_7:
	movq	_target_beneath@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_8:
	xorl	%r14d, %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TD_OK,4,2                      ## @TD_OK
	.comm	_TD_THR_UNKNOWN,8,3             ## @TD_THR_UNKNOWN
	.comm	_TD_THR_ZOMBIE,8,3              ## @TD_THR_ZOMBIE
	.comm	_target_beneath,8,3             ## @target_beneath
	.no_dead_strip	_thread_db_thread_alive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function thread_db_thread_alive
_thread_db_thread_alive:                ; @thread_db_thread_alive
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_is_thread
	cbz	x0, LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_find_thread_pid
	mov	x19, x0
	mov	w1, #0
	bl	_thread_db_map_id2thr
	ldr	x8, [x19]
	ldr	w9, [x8, #20]
	cbz	w9, LBB0_9
; %bb.2:
	add	x0, x8, #16
	bl	_td_thr_validate_p
Lloh0:
	adrp	x20, _TD_OK@GOTPAGE
Lloh1:
	ldr	x20, [x20, _TD_OK@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.3:
	ldr	x8, [x19]
	ldr	w9, [x8]
	cbnz	w9, LBB0_6
; %bb.4:
	add	x0, x8, #16
	add	x1, x8, #8
	bl	_td_thr_get_info_p
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.5:
	ldr	x8, [x19]
	mov	w9, #1
	str	w9, [x8]
LBB0_6:
	ldr	x8, [x8, #8]
Lloh2:
	adrp	x9, _TD_THR_UNKNOWN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TD_THR_UNKNOWN@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh5:
	adrp	x9, _TD_THR_ZOMBIE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TD_THR_ZOMBIE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w0, ne
	b	LBB0_10
LBB0_7:
Lloh8:
	adrp	x8, _target_beneath@GOTPAGE
Lloh9:
	ldr	x8, [x8, _target_beneath@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x1, [x8]
	cbz	x1, LBB0_9
; %bb.8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x1
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TD_OK,4,2                      ; @TD_OK
	.comm	_TD_THR_UNKNOWN,8,3             ; @TD_THR_UNKNOWN
	.comm	_TD_THR_ZOMBIE,8,3              ; @TD_THR_ZOMBIE
	.comm	_target_beneath,8,3             ; @target_beneath
	.no_dead_strip	_thread_db_thread_alive
.subsections_via_symbols
