	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_db_trace_thread                ## -- Begin function db_trace_thread
	.p2align	4, 0x90
_db_trace_thread:                       ## @db_trace_thread
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
	movq	_curthread@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	je	LBB0_2
## %bb.1:
	callq	_kdb_thr_ctx
	movq	16(%rax), %rcx
	movq	%rcx, -8(%rbp)
	movq	8(%rax), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -16(%rbp)
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	leaq	-24(%rbp), %rdi
	callq	_db_stack_trace_cmd
	jmp	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	callq	_db_trace_self
LBB0_3:
	xorl	%eax, %eax
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_curthread,8,3                  ## @curthread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_db_trace_thread                ; -- Begin function db_trace_thread
	.p2align	2
_db_trace_thread:                       ; @db_trace_thread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
Lloh0:
	adrp	x8, _curthread@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.eq	LBB0_2
; %bb.1:
	bl	_kdb_thr_ctx
	ldr	x8, [x0, #16]
	str	x8, [sp, #24]
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	str	x8, [sp, #16]
	ldr	x8, [x0]
	str	x8, [sp, #8]
	add	x0, sp, #8
	bl	_db_stack_trace_cmd
	b	LBB0_3
LBB0_2:
	bl	_db_trace_self
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_curthread,8,3                  ; @curthread
.subsections_via_symbols
