	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_procfs_find_new_threads        ## -- Begin function procfs_find_new_threads
	.p2align	4, 0x90
_procfs_find_new_threads:               ## @procfs_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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ctl_fd@GOTPCREL(%rip), %rax
	cmpl	$-1, (%rax)
	je	LBB0_8
## %bb.1:
	movq	_inferior_ptid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ptid_get_pid
	movl	%eax, %r15d
	movl	$1, -48(%rbp)
	movq	_ctl_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DCMD_PROC_TIDSTATUS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-48(%rbp), %rdx
	movl	$4, %ecx
	xorl	%r8d, %r8d
	callq	_devctl
	movq	_EOK@GOTPCREL(%rip), %r12
	movl	-48(%rbp), %edx
	cmpq	(%r12), %rax
	je	LBB0_3
## %bb.2:
	testl	%edx, %edx
	jne	LBB0_8
LBB0_3:
	leaq	-48(%rbp), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_ptid_build
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_in_thread_list
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %edi
	callq	_add_thread
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	-48(%rbp)
	movq	_ctl_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	movq	%r14, %rdx
	movl	$4, %ecx
	xorl	%r8d, %r8d
	callq	_devctl
	movl	-48(%rbp), %edx
	cmpq	(%r12), %rax
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%edx, %edx
	je	LBB0_4
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ctl_fd,4,2                     ## @ctl_fd
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.comm	_DCMD_PROC_TIDSTATUS,4,2        ## @DCMD_PROC_TIDSTATUS
	.comm	_EOK,8,3                        ## @EOK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_procfs_find_new_threads        ; -- Begin function procfs_find_new_threads
	.p2align	2
_procfs_find_new_threads:               ; @procfs_find_new_threads
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x21, _ctl_fd@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ctl_fd@GOTPAGEOFF]
	ldr	w8, [x21]
	cmn	w8, #1
	b.eq	LBB0_6
; %bb.1:
Lloh2:
	adrp	x8, _inferior_ptid@GOTPAGE
Lloh3:
	ldr	x8, [x8, _inferior_ptid@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_ptid_get_pid
	mov	x19, x0
	mov	w8, #1
	str	w8, [sp, #8]
	ldr	w0, [x21]
Lloh5:
	adrp	x22, _DCMD_PROC_TIDSTATUS@GOTPAGE
Lloh6:
	ldr	x22, [x22, _DCMD_PROC_TIDSTATUS@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #8
	mov	w3, #4
	mov	w4, #0
	bl	_devctl
Lloh7:
	adrp	x23, _EOK@GOTPAGE
Lloh8:
	ldr	x23, [x23, _EOK@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #8]
	add	w8, w8, #1
	str	w8, [sp, #8]
	ldr	w0, [x21]
	ldr	w1, [x22]
	add	x2, sp, #8
	mov	w3, #4
	mov	w4, #0
	bl	_devctl
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	w2, [sp, #8]
	cmp	x0, x8
	ccmp	w2, #0, #4, ne
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	w1, #0
	bl	_ptid_build
	mov	x20, x0
	bl	_in_thread_list
	cbnz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_add_thread
	b	LBB0_2
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ctl_fd,4,2                     ; @ctl_fd
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.comm	_DCMD_PROC_TIDSTATUS,4,2        ; @DCMD_PROC_TIDSTATUS
	.comm	_EOK,8,3                        ; @EOK
.subsections_via_symbols
