	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sort_ids
_sort_ids:                              ## @sort_ids
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	movq	$0, (%rdi)
	testq	%r15, %r15
	je	LBB0_7
## %bb.1:
	movq	%rdi, %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, 8(%rbx)
	movq	%rbx, (%rdx)
	testq	%r15, %r15
	je	LBB0_4
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	%r15, %rbx
	movq	8(%r15), %r15
	movl	16(%rbx), %edi
	callq	_extract_init_priority
	movq	%rax, (%rbx)
	movq	(%r14), %rcx
	movq	%r14, %rdx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	(%rcx), %rax
	jg	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rcx, %rdx
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_12 Depth=2
	cmpq	(%rcx), %rax
	jle	LBB0_12
	jmp	LBB0_9
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$8, %rdx
	jmp	LBB0_10
LBB0_4:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_sequence_number@GOTPCREL(%rip), %rcx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rdx
	incq	%rdx
	movq	%rdx, (%rcx)
	movq	%rdx, (%rax)
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sequence_number,8,3            ## @sequence_number
	.no_dead_strip	_sort_ids
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sort_ids
_sort_ids:                              ; @sort_ids
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x20, [x0]
	str	xzr, [x0]
	cbz	x20, LBB0_12
; %bb.1:
	mov	x19, x0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x9, x19
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x8, [x21, #8]
	str	x21, [x9]
	cbz	x20, LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x21, x20
	ldr	x20, [x20, #8]
	ldr	w0, [x21, #16]
	bl	_extract_init_priority
	str	x0, [x21]
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x8]
	mov	x9, x19
	cmp	x0, x10
	b.gt	LBB0_3
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x9, x8
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x10, [x8]
	cmp	x0, x10
	b.le	LBB0_6
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #8
	b	LBB0_3
LBB0_9:
	ldr	x8, [x19]
	cbz	x8, LBB0_12
; %bb.10:
Lloh0:
	adrp	x9, _sequence_number@GOTPAGE
Lloh1:
	ldr	x9, [x9, _sequence_number@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	add	x10, x10, #1
	str	x10, [x9]
	str	x10, [x8]
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_11
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_sequence_number,8,3            ; @sequence_number
	.no_dead_strip	_sort_ids
.subsections_via_symbols
