	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DarwinProcess_scanThreads      ## -- Begin function DarwinProcess_scanThreads
	.p2align	4, 0x90
_DarwinProcess_scanThreads:             ## @DarwinProcess_scanThreads
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_14
## %bb.1:
	cmpb	$90, %al
	je	LBB0_14
## %bb.2:
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_mach_task_self
	movl	4(%rbx), %esi
	leaq	-44(%rbp), %rdx
	movl	%eax, %edi
	callq	_task_for_pid
	movq	_KERN_SUCCESS@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_11
## %bb.3:
	movq	_TASK_INFO_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	-44(%rbp), %edi
	movq	_TASK_BASIC_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rcx
	callq	_task_info
	cmpq	(%r15), %rax
	jne	LBB0_11
## %bb.4:
	movl	-44(%rbp), %edi
	leaq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_task_threads
	cmpq	(%r15), %rax
	jne	LBB0_12
## %bb.5:
	cmpl	$0, -48(%rbp)
	je	LBB0_13
## %bb.6:
	movq	_THREAD_BASIC_INFO@GOTPCREL(%rip), %r13
	leaq	-60(%rbp), %r14
	xorl	%r12d, %r12d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	incq	%r12
	movl	-48(%rbp), %eax
	cmpq	%rax, %r12
	jae	LBB0_13
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	_THREAD_BASIC_INFO_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	-56(%rbp), %rax
	movl	(%rax,%r12,4), %edi
	movl	(%r13), %esi
	movq	%r14, %rcx
	callq	_thread_info
	cmpq	(%r15), %rax
	jne	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
	callq	_mach_task_self
	movq	-56(%rbp), %rcx
	movl	(%rcx,%r12,4), %esi
	movl	%eax, %edi
	callq	_mach_port_deallocate
	jmp	LBB0_7
LBB0_11:
	movl	$0, (%rbx)
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	$0, (%rbx)
	xorl	%eax, %eax
	callq	_mach_task_self
	movl	-44(%rbp), %esi
	movl	%eax, %edi
	callq	_mach_port_deallocate
	jmp	LBB0_14
LBB0_13:
	xorl	%eax, %eax
	callq	_mach_task_self
	movl	-56(%rbp), %esi
	movl	-48(%rbp), %edx
	shll	$2, %edx
	movl	%eax, %edi
	callq	_vm_deallocate
	xorl	%eax, %eax
	callq	_mach_task_self
	movl	-44(%rbp), %esi
	movl	%eax, %edi
	callq	_mach_port_deallocate
	movb	$63, (%rbx)
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_KERN_SUCCESS,8,3               ## @KERN_SUCCESS
	.comm	_TASK_INFO_MAX,4,2              ## @TASK_INFO_MAX
	.comm	_TASK_BASIC_INFO,4,2            ## @TASK_BASIC_INFO
	.comm	_THREAD_BASIC_INFO_COUNT,4,2    ## @THREAD_BASIC_INFO_COUNT
	.comm	_THREAD_BASIC_INFO,4,2          ## @THREAD_BASIC_INFO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DarwinProcess_scanThreads      ; -- Begin function DarwinProcess_scanThreads
	.p2align	2
_DarwinProcess_scanThreads:             ; @DarwinProcess_scanThreads
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_11
; %bb.1:
	and	w8, w8, #0xff
	cmp	w8, #90
	b.eq	LBB0_11
; %bb.2:
	mov	x19, x0
	bl	_mach_task_self
	ldr	w1, [x19, #4]
	add	x2, sp, #28
	bl	_task_for_pid
Lloh0:
	adrp	x20, _KERN_SUCCESS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _KERN_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.3:
Lloh2:
	adrp	x8, _TASK_INFO_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TASK_INFO_MAX@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	w0, [sp, #28]
Lloh5:
	adrp	x8, _TASK_BASIC_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TASK_BASIC_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x3, sp, #24
	bl	_task_info
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.4:
	ldr	w0, [sp, #28]
	add	x1, sp, #16
	add	x2, sp, #12
	bl	_task_threads
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.5:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_13
; %bb.6:
	mov	x21, #0
Lloh8:
	adrp	x22, _THREAD_BASIC_INFO_COUNT@GOTPAGE
Lloh9:
	ldr	x22, [x22, _THREAD_BASIC_INFO_COUNT@GOTPAGEOFF]
Lloh10:
	adrp	x23, _THREAD_BASIC_INFO@GOTPAGE
Lloh11:
	ldr	x23, [x23, _THREAD_BASIC_INFO@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x21, x21, #1
	ldr	w8, [sp, #12]
	cmp	x21, x8
	b.hs	LBB0_13
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	str	w8, [sp, #8]
	ldr	x8, [sp, #16]
	ldr	w0, [x8, x21, lsl #2]
	ldr	w1, [x23]
	add	x3, sp, #8
	bl	_thread_info
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	bl	_mach_task_self
	ldr	x8, [sp, #16]
	ldr	w1, [x8, x21, lsl #2]
	bl	_mach_port_deallocate
	b	LBB0_7
LBB0_10:
	str	wzr, [x19]
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
	str	wzr, [x19]
	bl	_mach_task_self
	ldr	w1, [sp, #28]
	bl	_mach_port_deallocate
	b	LBB0_11
LBB0_13:
	bl	_mach_task_self
	ldp	w8, w1, [sp, #12]
	lsl	w2, w8, #2
	bl	_vm_deallocate
	bl	_mach_task_self
	ldr	w1, [sp, #28]
	bl	_mach_port_deallocate
	mov	w8, #63
	strb	w8, [x19]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_KERN_SUCCESS,8,3               ; @KERN_SUCCESS
	.comm	_TASK_INFO_MAX,4,2              ; @TASK_INFO_MAX
	.comm	_TASK_BASIC_INFO,4,2            ; @TASK_BASIC_INFO
	.comm	_THREAD_BASIC_INFO_COUNT,4,2    ; @THREAD_BASIC_INFO_COUNT
	.comm	_THREAD_BASIC_INFO,4,2          ; @THREAD_BASIC_INFO
.subsections_via_symbols
