	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fbsd_thread_alive
_fbsd_thread_alive:                     ## @fbsd_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	callq	_IS_THREAD
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_thread_agent@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_GET_THREAD
	leaq	-28(%rbp), %rdx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_td_ta_map_id2thr_p
	movq	_TD_OK@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_8
## %bb.2:
	leaq	-28(%rbp), %rdi
	leaq	-24(%rbp), %rsi
	callq	_td_thr_get_info_p
	cmpq	(%rbx), %rax
	jne	LBB0_8
## %bb.3:
	movq	-24(%rbp), %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
	jmp	LBB0_15
LBB0_4:
	movl	%ebx, %edi
	callq	_GET_LWP
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movq	_fbsd_thread_active@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.6:
	movq	_thread_agent@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_GET_LWP
	leaq	-28(%rbp), %rdx
	movl	%r14d, %edi
	movq	%rax, %rsi
	callq	_td_ta_map_lwp2thr_p
	movq	_TD_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_9:
	movq	_target_has_execution@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_13
## %bb.10:
	movq	_PT_GETREGS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_GET_LWP
	leaq	-24(%rbp), %rdx
	movl	%r14d, %edi
	movq	%rax, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%ecx, %ecx
	callq	_ptrace
	testq	%rax, %rax
	jmp	LBB0_14
LBB0_12:
	movb	$1, %al
	jmp	LBB0_15
LBB0_13:
	movl	%ebx, %edi
	callq	_GET_LWP
	movq	%rax, -24(%rbp)
	movq	_core_bfd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_fbsd_core_check_lwp@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	callq	_bfd_map_over_sections
	cmpq	$0, -24(%rbp)
LBB0_14:
	sete	%al
LBB0_15:
	movzbl	%al, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_thread_agent,4,2               ## @thread_agent
	.comm	_TD_OK,8,3                      ## @TD_OK
	.comm	_TD_THR_UNKNOWN,8,3             ## @TD_THR_UNKNOWN
	.comm	_TD_THR_ZOMBIE,8,3              ## @TD_THR_ZOMBIE
	.comm	_fbsd_thread_active,8,3         ## @fbsd_thread_active
	.comm	_target_has_execution,4,2       ## @target_has_execution
	.comm	_core_bfd,4,2                   ## @core_bfd
	.comm	_fbsd_core_check_lwp,4,2        ## @fbsd_core_check_lwp
	.comm	_PT_GETREGS,4,2                 ## @PT_GETREGS
	.no_dead_strip	_fbsd_thread_alive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fbsd_thread_alive
_fbsd_thread_alive:                     ; @fbsd_thread_alive
	.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
	bl	_IS_THREAD
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _thread_agent@GOTPAGE
Lloh1:
	ldr	x8, [x8, _thread_agent@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_GET_THREAD
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x20
	bl	_td_ta_map_id2thr_p
Lloh3:
	adrp	x19, _TD_OK@GOTPAGE
Lloh4:
	ldr	x19, [x19, _TD_OK@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.2:
	add	x0, sp, #12
	mov	x1, sp
	bl	_td_thr_get_info_p
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.3:
	ldr	x8, [sp]
Lloh5:
	adrp	x9, _TD_THR_UNKNOWN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TD_THR_UNKNOWN@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh8:
	adrp	x9, _TD_THR_ZOMBIE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TD_THR_ZOMBIE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w0, ne
	b	LBB0_13
LBB0_4:
	mov	x0, x19
	bl	_GET_LWP
	cbz	x0, LBB0_10
; %bb.5:
Lloh11:
	adrp	x8, _fbsd_thread_active@GOTPAGE
Lloh12:
	ldr	x8, [x8, _fbsd_thread_active@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.6:
Lloh14:
	adrp	x8, _thread_agent@GOTPAGE
Lloh15:
	ldr	x8, [x8, _thread_agent@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_GET_LWP
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x20
	bl	_td_ta_map_lwp2thr_p
Lloh17:
	adrp	x8, _TD_OK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TD_OK@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
LBB0_7:
	mov	w0, #0
	b	LBB0_13
LBB0_8:
Lloh20:
	adrp	x8, _target_has_execution@GOTPAGE
Lloh21:
	ldr	x8, [x8, _target_has_execution@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cbz	w8, LBB0_11
; %bb.9:
Lloh23:
	adrp	x8, _PT_GETREGS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PT_GETREGS@GOTPAGEOFF]
Lloh25:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_GET_LWP
	mov	x1, x0
	mov	x2, sp
	mov	x0, x20
	mov	w3, #0
	bl	_ptrace
	cmp	x0, #0
	b	LBB0_12
LBB0_10:
	mov	w0, #1
	b	LBB0_13
LBB0_11:
	mov	x0, x19
	bl	_GET_LWP
	str	x0, [sp]
Lloh26:
	adrp	x8, _core_bfd@GOTPAGE
Lloh27:
	ldr	x8, [x8, _core_bfd@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x8, _fbsd_core_check_lwp@GOTPAGE
Lloh30:
	ldr	x8, [x8, _fbsd_core_check_lwp@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_bfd_map_over_sections
	ldr	x8, [sp]
	cmp	x8, #0
LBB0_12:
	cset	w0, eq
LBB0_13:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_thread_agent,4,2               ; @thread_agent
	.comm	_TD_OK,8,3                      ; @TD_OK
	.comm	_TD_THR_UNKNOWN,8,3             ; @TD_THR_UNKNOWN
	.comm	_TD_THR_ZOMBIE,8,3              ; @TD_THR_ZOMBIE
	.comm	_fbsd_thread_active,8,3         ; @fbsd_thread_active
	.comm	_target_has_execution,4,2       ; @target_has_execution
	.comm	_core_bfd,4,2                   ; @core_bfd
	.comm	_fbsd_core_check_lwp,4,2        ; @fbsd_core_check_lwp
	.comm	_PT_GETREGS,4,2                 ; @PT_GETREGS
	.no_dead_strip	_fbsd_thread_alive
.subsections_via_symbols
