	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reorder
_reorder:                               ## @reorder
	.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), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movb	$1, %cl
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %r15d
	movq	(%rax), %rax
	leal	1(%r15), %ecx
	incq	%r13
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	movl	$1, %eax
	cmpl	$1, %r13d
	je	LBB0_18
## %bb.5:
	movl	%r13d, %edi
	movl	$24, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.6:
	movq	%rax, %rbx
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	callq	_TAILQ_INIT
	movq	%r12, %rdi
	callq	_get_addrselectpolicy
	testl	%eax, %eax
	je	LBB0_19
## %bb.7:
	xorl	%r12d, %r12d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %r14
	movq	%r14, 8(%rbx)
	movl	8(%r14), %edi
	callq	_gai_addr2scopetype
	movl	%eax, 20(%rbx)
	movl	8(%r14), %edi
	leaq	-48(%rbp), %rsi
	callq	_match_addrselectpolicy
	movl	%eax, 16(%rbx)
	movq	%rbx, %rdi
	leaq	-48(%rbp), %rsi
	callq	_set_source
	movl	%r12d, (%rbx)
	incq	%r12
	addq	$24, %rbx
	cmpq	%r12, %r13
	jne	LBB0_8
## %bb.9:
	movq	_comp_dst@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	$24, %edx
	callq	_qsort
	leaq	-1(%r13), %rax
	cmpq	$3, %rax
	jae	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_19:
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_17
LBB0_11:
	leaq	80(%rbx), %rcx
	movl	%r13d, %edx
	andl	$2147483644, %edx               ## imm = 0x7FFFFFFC
	xorl	%eax, %eax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	-72(%rcx), %rsi
	movq	%rsi, (%rdi)
	movq	-72(%rcx), %rsi
	movq	-48(%rcx), %rdi
	movq	%rdi, (%rsi)
	movq	-48(%rcx), %rsi
	movq	-24(%rcx), %rdi
	movq	%rdi, (%rsi)
	movq	-24(%rcx), %rsi
	movq	(%rcx), %rdi
	movq	%rdi, (%rsi)
	movq	(%rcx), %rdi
	addq	$4, %rax
	addq	$96, %rcx
	cmpq	%rax, %rdx
	jne	LBB0_12
LBB0_13:
	testb	$3, %r13b
	je	LBB0_16
## %bb.14:
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,8), %rax
	addq	$8, %rax
	movzbl	%r15b, %ecx
	andl	$3, %ecx
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rdx), %rsi
	movq	%rsi, (%rdi)
	movq	(%rax,%rdx), %rdi
	addq	$24, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_15
LBB0_16:
	movq	$0, (%rdi)
	movq	%rbx, %rdi
	callq	_free
	leaq	-48(%rbp), %rdi
	callq	_free_addrselectpolicy
LBB0_17:
	movl	%r13d, %eax
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_comp_dst,4,2                   ## @comp_dst
	.no_dead_strip	_reorder
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reorder
_reorder:                               ; @reorder
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x20, x0
	mov	x19, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8]
	add	x19, x19, #1
	cbnz	x8, LBB0_2
; %bb.3:
	cmp	w19, #1
	b.ne	LBB0_6
; %bb.4:
	mov	w19, #1
	b	LBB0_14
LBB0_5:
	mov	w19, #0
	b	LBB0_14
LBB0_6:
	mov	x0, x19
	mov	w1, #24
	bl	_calloc
	cbz	x0, LBB0_14
; %bb.7:
	mov	x21, x0
	add	x0, sp, #8
	bl	_TAILQ_INIT
	add	x0, sp, #8
	bl	_get_addrselectpolicy
	cbz	w0, LBB0_13
; %bb.8:
	mov	x23, #0
	mov	x22, x21
	mov	x24, x20
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x24]
	str	x24, [x22, #8]
	ldr	w0, [x24, #8]
	bl	_gai_addr2scopetype
	str	w0, [x22, #20]
	ldr	w0, [x24, #8]
	add	x1, sp, #8
	bl	_match_addrselectpolicy
	str	w0, [x22, #16]
	add	x1, sp, #8
	mov	x0, x22
	bl	_set_source
	str	w23, [x22], #24
	add	x23, x23, #1
	cmp	x19, x23
	b.ne	LBB0_9
; %bb.10:
Lloh0:
	adrp	x8, _comp_dst@GOTPAGE
Lloh1:
	ldr	x8, [x8, _comp_dst@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x19
	mov	w2, #24
	bl	_qsort
	mov	w8, #8
	mov	x9, x19
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x21, x8]
	str	x10, [x20]
	ldr	x20, [x21, x8]
	add	x8, x8, #24
	subs	x9, x9, #1
	b.ne	LBB0_11
; %bb.12:
	str	xzr, [x20]
	mov	x0, x21
	bl	_free
	add	x0, sp, #8
	bl	_free_addrselectpolicy
	b	LBB0_14
LBB0_13:
	mov	x0, x21
	bl	_free
LBB0_14:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_comp_dst,4,2                   ; @comp_dst
	.no_dead_strip	_reorder
.subsections_via_symbols
