	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_new_threads_callback
_find_new_threads_callback:             ## @find_new_threads_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	leaq	-32(%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:
	movq	-32(%rbp), %rax
	movq	_TD_THR_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.3:
	movq	_TD_THR_ZOMBIE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.4:
	movl	-24(%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, %ebx
	movl	%eax, %edi
	callq	_in_thread_list
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	leaq	-32(%rbp), %rdx
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	_attach_thread
LBB0_6:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TD_OK,8,3                      ## @TD_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"find_new_threads_callback: cannot get thread info: %s"

	.comm	_TD_THR_UNKNOWN,8,3             ## @TD_THR_UNKNOWN
	.comm	_TD_THR_ZOMBIE,8,3              ## @TD_THR_ZOMBIE
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.no_dead_strip	_find_new_threads_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_new_threads_callback
_find_new_threads_callback:             ; @find_new_threads_callback
	.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
	mov	x1, sp
	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	x8, [sp]
Lloh5:
	adrp	x9, _TD_THR_UNKNOWN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TD_THR_UNKNOWN@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x10, _TD_THR_ZOMBIE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _TD_THR_ZOMBIE@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_5
; %bb.3:
	ldr	w20, [sp, #8]
Lloh11:
	adrp	x8, _inferior_ptid@GOTPAGE
Lloh12:
	ldr	x8, [x8, _inferior_ptid@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_GET_PID
	mov	x1, x0
	mov	x0, x20
	bl	_BUILD_THREAD
	mov	x20, x0
	bl	_in_thread_list
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x2, sp
	mov	x0, x20
	mov	x1, x19
	mov	w3, #1
	bl	_attach_thread
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_TD_OK,8,3                      ; @TD_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"find_new_threads_callback: cannot get thread info: %s"

	.comm	_TD_THR_UNKNOWN,8,3             ; @TD_THR_UNKNOWN
	.comm	_TD_THR_ZOMBIE,8,3              ; @TD_THR_ZOMBIE
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.no_dead_strip	_find_new_threads_callback
.subsections_via_symbols
