	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ProcessList_sort               ## -- Begin function ProcessList_sort
	.p2align	4, 0x90
_ProcessList_sort:                      ## @ProcessList_sort
	.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
	movq	%rdi, %r12
	movq	16(%rdi), %rax
	cmpl	$0, 8(%rax)
	je	LBB0_18
## %bb.1:
	movl	(%rax), %ebx
	movl	4(%rax), %r15d
	movq	_PID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movl	$1, (%rax)
	movq	8(%r12), %rdi
	callq	_Vector_quickSort
	movq	16(%r12), %rax
	movl	%r15d, 4(%rax)
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, (%rax)
	movq	8(%r12), %rdi
	callq	_Vector_size
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	8(%r12), %rdi
	callq	_Vector_size
	testl	%eax, %eax
	je	LBB0_17
## %bb.2:
	movl	%eax, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movzbl	%al, %edi
	andl	$1, %edi
	callq	_assert
	movq	8(%r12), %rdi
	callq	_Vector_size
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_17
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_10 Depth 3
	xorl	%ebx, %ebx
	testl	%r15d, %r15d
	jle	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movb	$1, %al
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_10 Depth 3
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	8(%r12), %rdi
	movl	%ebx, %esi
	callq	_Vector_get
	cmpl	$0, 24(%rax)
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	%rax, %r14
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	%rax, %rdi
	callq	_Process_getParentPid
	movl	%r15d, %ecx
	movq	%rax, %r15
	xorl	%r13d, %r13d
	cmpq	%rax, (%r14)
	movl	%ecx, %r14d
	cmovel	%r13d, %r14d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%r14d, %ebx
	cmpl	%r14d, %r13d
	jge	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=3
	leal	(%rbx,%r13), %eax
	movl	%eax, %r14d
	shrl	$31, %r14d
	addl	%eax, %r14d
	sarl	%r14d
	movq	8(%r12), %rdi
	movl	%r14d, %esi
	callq	_Vector_get
	leal	1(%r14), %ecx
	cmpq	(%rax), %r15
	cmovgel	%ebx, %r14d
	cmovlel	%r13d, %ecx
	movl	%ecx, %r13d
	jne	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=2
	cmpl	%ebx, %ecx
	jl	LBB0_15
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=2
	movl	%r13d, %ecx
	cmpl	%ebx, %ecx
	jge	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=2
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	incl	%ebx
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	cmpl	%r15d, %ebx
	setl	%al
	jne	LBB0_6
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rdi
	movl	%ebx, %esi
	callq	_Vector_take
	movq	%rax, %rbx
	movq	$0, 16(%rax)
	movq	(%r12), %rdi
	movq	%rax, %rsi
	callq	_Vector_add
	movq	(%rbx), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	xorl	%r9d, %r9d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_Vector_take
	movq	%rax, %rbx
	movq	$0, 16(%rax)
	movq	(%r12), %rdi
	movq	%rax, %rsi
	callq	_Vector_add
	movq	(%rbx), %rsi
	movl	8(%rbx), %r9d
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	callq	_ProcessList_buildTree
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_16
LBB0_17:
	movq	(%r12), %rdi
	callq	_Vector_size
	xorl	%edi, %edi
	cmpl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	sete	%dil
	callq	_assert
	movq	8(%r12), %rdi
	callq	_Vector_size
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movdqu	(%r12), %xmm0
	pshufd	$78, %xmm0, %xmm0               ## xmm0 = xmm0[2,3,0,1]
	movdqu	%xmm0, (%r12)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	8(%r12), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Vector_insertionSort           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PID,4,2                        ## @PID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ProcessList_sort               ; -- Begin function ProcessList_sort
	.p2align	2
_ProcessList_sort:                      ; @ProcessList_sort
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_16
; %bb.1:
Lloh0:
	adrp	x9, _PID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PID@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	x0, [x19, #8]
	ldr	d0, [x8]
	str	q0, [sp]                        ; 16-byte Folded Spill
	mov	w10, #1
	stp	w10, w9, [x8]
	bl	_Vector_quickSort
	ldp	x0, x8, [x19, #8]
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	str	d0, [x8]
	bl	_Vector_size
	mov	x20, x0
	ldr	x0, [x19, #8]
	bl	_Vector_size
	cbz	w0, LBB0_15
; %bb.2:
	mov	x22, x0
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	fmov	w21, s0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w26, #0
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	and	w0, w26, #0x1
	bl	_assert
	ldr	x0, [x19, #8]
	bl	_Vector_size
	mov	x22, x0
	cbz	w0, LBB0_15
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
	cmp	w22, #1
	b.lt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w23, #0
	mov	w26, #1
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
	ldr	x0, [x19, #8]
	mov	x1, x23
	bl	_Vector_get
	ldr	w8, [x0, #24]
	cbz	w8, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x25, x0
	bl	_Process_getParentPid
	mov	x24, x0
	mov	w27, #0
	ldr	x8, [x25]
	cmp	x8, x0
	csel	w8, wzr, w22, eq
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x28, x8
	cmp	w27, w8
	b.ge	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=3
	add	w8, w28, w27
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w25, w8, #1
	ldr	x0, [x19, #8]
	mov	x1, x25
	bl	_Vector_get
	ldr	x8, [x0]
	cmp	x24, x8
	csel	w8, w25, w28, lt
	csinc	w27, w27, w25, le
	b.ne	LBB0_9
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=2
	cmp	w27, w28
	b.ge	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=2
	add	w23, w23, #1
	cmp	w23, w22
	cset	w26, lt
	b.ne	LBB0_7
	b	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19, #8]
	mov	x1, x23
	bl	_Vector_take
	mov	x22, x0
	str	xzr, [x0, #16]
	ldr	x0, [x19]
	mov	x1, x22
	bl	_Vector_add
	ldr	x1, [x22]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	x4, x21
	mov	w5, #0
	bl	_ProcessList_buildTree
	b	LBB0_4
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19, #8]
	mov	x1, x23
	bl	_Vector_take
	mov	x22, x0
	str	xzr, [x0, #16]
	ldr	x0, [x19]
	mov	x1, x22
	bl	_Vector_add
	ldr	x1, [x22]
	ldr	w5, [x22, #8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	x4, x21
	bl	_ProcessList_buildTree
	b	LBB0_4
LBB0_15:
	ldr	x0, [x19]
	bl	_Vector_size
	cmp	w0, w20
	cset	w0, eq
	bl	_assert
	ldr	x0, [x19, #8]
	bl	_Vector_size
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	ldp	x9, x8, [x19]
	stp	x8, x9, [x19]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_16:
	ldr	x0, [x19, #8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_Vector_insertionSort
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PID,4,2                        ; @PID
.subsections_via_symbols
