	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thread_get_info_callback
_thread_get_info_callback:              ## @thread_get_info_callback
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	-40(%rbp), %rsi
	callq	_td_thr_get_info_p
	movq	_TD_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rdi
	callq	_thread_db_err_str
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_error
LBB0_2:
	movl	-40(%rbp), %ebx
	movq	_inferior_ptid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GET_PID
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_BUILD_THREAD
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_find_thread_pid
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	-40(%rbp), %rdx
	movl	%r12d, %edi
	movq	%r15, %rsi
	movl	$1, %ecx
	callq	_attach_thread
	movl	%r12d, %edi
	callq	_find_thread_pid
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_gdb_assert
LBB0_4:
	movq	(%rbx), %rdi
	addq	$12, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	(%rbx), %rdi
	movl	$1, (%rdi)
	addq	$8, %rdi
	leaq	-40(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	(%rbx), %rax
	movl	$1, 4(%rax)
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movq	%rbx, (%r14)
LBB0_6:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TD_OK,8,3                      ## @TD_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"thread_get_info_callback: cannot get thread info: %s"

	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.no_dead_strip	_thread_get_info_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function thread_get_info_callback
_thread_get_info_callback:              ; @thread_get_info_callback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	add	x1, sp, #8
	bl	_td_thr_get_info_p
Lloh0:
	adrp	x8, _TD_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TD_OK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	bl	_thread_db_err_str
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_2:
	ldr	w21, [sp, #8]
Lloh5:
	adrp	x8, _inferior_ptid@GOTPAGE
Lloh6:
	ldr	x8, [x8, _inferior_ptid@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_GET_PID
	mov	x1, x0
	mov	x0, x21
	bl	_BUILD_THREAD
	mov	x22, x0
	bl	_find_thread_pid
	mov	x21, x0
	cbnz	x0, LBB0_4
; %bb.3:
	add	x2, sp, #8
	mov	x0, x22
	mov	x1, x20
	mov	w3, #1
	bl	_attach_thread
	mov	x0, x22
	bl	_find_thread_pid
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_gdb_assert
LBB0_4:
	ldr	x8, [x21]
	add	x0, x8, #12
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
	ldr	x0, [x21]
	mov	w20, #1
	str	w20, [x0], #8
	add	x1, sp, #8
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x21]
	str	w20, [x8, #4]
	cbz	x19, LBB0_6
; %bb.5:
	str	x21, [x19]
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TD_OK,8,3                      ; @TD_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"thread_get_info_callback: cannot get thread info: %s"

	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.no_dead_strip	_thread_get_info_callback
.subsections_via_symbols
