	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fbsd_thread_find_new_threads
_fbsd_thread_find_new_threads:          ## @fbsd_thread_find_new_threads
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_fbsd_thread_active@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_thread_agent@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_find_new_threads_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TD_THR_ANY_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_TD_THR_LOWEST_PRIORITY@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_TD_SIGNO_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_TD_THR_ANY_USER_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	xorl	%edx, %edx
	callq	_td_ta_thr_iter_p
	movq	_TD_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	addq	$16, %rsp
	popq	%rbp
	retq
LBB0_3:
	movq	%rax, %rdi
	callq	_thread_db_err_str
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	addq	$16, %rsp
	popq	%rbp
	jmp	_error                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_fbsd_thread_active,4,2         ## @fbsd_thread_active
	.comm	_thread_agent,4,2               ## @thread_agent
	.comm	_find_new_threads_callback,4,2  ## @find_new_threads_callback
	.comm	_TD_THR_ANY_STATE,4,2           ## @TD_THR_ANY_STATE
	.comm	_TD_THR_LOWEST_PRIORITY,4,2     ## @TD_THR_LOWEST_PRIORITY
	.comm	_TD_SIGNO_MASK,4,2              ## @TD_SIGNO_MASK
	.comm	_TD_THR_ANY_USER_FLAGS,4,2      ## @TD_THR_ANY_USER_FLAGS
	.comm	_TD_OK,8,3                      ## @TD_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot find new threads: %s"

	.no_dead_strip	_fbsd_thread_find_new_threads
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fbsd_thread_find_new_threads
_fbsd_thread_find_new_threads:          ; @fbsd_thread_find_new_threads
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _fbsd_thread_active@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fbsd_thread_active@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _thread_agent@GOTPAGE
Lloh4:
	ldr	x8, [x8, _thread_agent@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _find_new_threads_callback@GOTPAGE
Lloh7:
	ldr	x8, [x8, _find_new_threads_callback@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _TD_THR_ANY_STATE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TD_THR_ANY_STATE@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x8, _TD_THR_LOWEST_PRIORITY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TD_THR_LOWEST_PRIORITY@GOTPAGEOFF]
Lloh14:
	ldr	w4, [x8]
Lloh15:
	adrp	x8, _TD_SIGNO_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TD_SIGNO_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w5, [x8]
Lloh18:
	adrp	x8, _TD_THR_ANY_USER_FLAGS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TD_THR_ANY_USER_FLAGS@GOTPAGEOFF]
Lloh20:
	ldr	w6, [x8]
	mov	x2, #0
	bl	_td_ta_thr_iter_p
Lloh21:
	adrp	x8, _TD_OK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TD_OK@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	bl	_thread_db_err_str
	mov	x1, x0
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_error
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_fbsd_thread_active,4,2         ; @fbsd_thread_active
	.comm	_thread_agent,4,2               ; @thread_agent
	.comm	_find_new_threads_callback,4,2  ; @find_new_threads_callback
	.comm	_TD_THR_ANY_STATE,4,2           ; @TD_THR_ANY_STATE
	.comm	_TD_THR_LOWEST_PRIORITY,4,2     ; @TD_THR_LOWEST_PRIORITY
	.comm	_TD_SIGNO_MASK,4,2              ; @TD_SIGNO_MASK
	.comm	_TD_THR_ANY_USER_FLAGS,4,2      ; @TD_THR_ANY_USER_FLAGS
	.comm	_TD_OK,8,3                      ; @TD_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot find new threads: %s"

	.no_dead_strip	_fbsd_thread_find_new_threads
.subsections_via_symbols
