	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdbr_is_thread_dead            ## -- Begin function gdbr_is_thread_dead
	.p2align	4, 0x90
_gdbr_is_thread_dead:                   ## @gdbr_is_thread_dead
	.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	%r12
	pushq	%rbx
	subq	$144, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r12
	testl	%esi, %esi
	jg	LBB0_3
## %bb.2:
	cmpq	$0, 16(%r12)
	jne	LBB0_13
LBB0_3:
	movq	%r12, %rdi
	callq	_gdbr_lock_enter
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_12
## %bb.4:
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -176(%rbp)
	movaps	%xmm0, -160(%rbp)
	movaps	%xmm0, -144(%rbp)
	movups	%xmm0, -129(%rbp)
	movq	16(%r12), %r8
	leaq	-176(%rbp), %rdi
	movl	$62, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_write_thread_id
	testq	%rax, %rax
	js	LBB0_12
## %bb.5:
	leaq	L_.str(%rip), %rdx
	leaq	-112(%rbp), %rdi
	leaq	-176(%rbp), %rcx
	movl	$63, %esi
	callq	_snprintf
	testq	%rax, %rax
	js	LBB0_12
## %bb.6:
	leaq	-112(%rbp), %rsi
	movq	%r12, %rdi
	callq	_send_msg
	testq	%rax, %rax
	js	LBB0_12
## %bb.7:
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_read_packet
	testq	%rax, %rax
	js	LBB0_12
## %bb.8:
	movq	%r12, %rdi
	callq	_send_ack
	testq	%rax, %rax
	js	LBB0_12
## %bb.9:
	cmpl	$3, (%r12)
	jne	LBB0_11
## %bb.10:
	movq	8(%r12), %rax
	movl	$1, %r14d
	cmpb	$69, (%rax)
	je	LBB0_12
LBB0_11:
	xorl	%r14d, %r14d
LBB0_12:
	movq	%r12, %rdi
	callq	_gdbr_lock_leave
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%r14d, %eax
	addq	$144, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"T%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdbr_is_thread_dead            ; -- Begin function gdbr_is_thread_dead
	.p2align	2
_gdbr_is_thread_dead:                   ; @gdbr_is_thread_dead
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	cmp	w1, #0
	b.gt	LBB0_4
; %bb.2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
LBB0_3:
	mov	w20, #0
	b	LBB0_15
LBB0_4:
	mov	x0, x19
	bl	_gdbr_lock_enter
	cbz	w0, LBB0_13
; %bb.5:
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #96]
	stp	q0, q0, [sp, #64]
	stp	q0, q0, [sp]
	str	q0, [sp, #32]
	stur	q0, [sp, #47]
	ldr	x4, [x19, #16]
	mov	x0, sp
	mov	w1, #62
	mov	x2, x21
	mov	x3, x20
	bl	_write_thread_id
	tbnz	x0, #63, LBB0_13
; %bb.6:
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #64
	mov	x3, sp
	mov	w1, #63
	bl	_snprintf
	tbnz	x0, #63, LBB0_13
; %bb.7:
	add	x1, sp, #64
	mov	x0, x19
	bl	_send_msg
	tbnz	x0, #63, LBB0_13
; %bb.8:
	mov	x0, x19
	mov	w1, #0
	bl	_read_packet
	tbnz	x0, #63, LBB0_13
; %bb.9:
	mov	x0, x19
	bl	_send_ack
	tbnz	x0, #63, LBB0_13
; %bb.10:
	ldr	w8, [x19]
	cmp	w8, #3
	b.ne	LBB0_13
; %bb.11:
	ldr	x8, [x19, #8]
	ldrb	w8, [x8]
	cmp	w8, #69
	b.ne	LBB0_13
; %bb.12:
	mov	w20, #1
	b	LBB0_14
LBB0_13:
	mov	w20, #0
LBB0_14:
	mov	x0, x19
	bl	_gdbr_lock_leave
LBB0_15:
	ldur	x8, [x29, #-40]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x20
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"T%s"

.subsections_via_symbols
