	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sort_pack_list
_sort_pack_list:                        ## @sort_pack_list
	.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, %r14
	movq	(%rdi), %rdi
	callq	_pack_list_size
	cmpq	$2, %rax
	jae	LBB0_1
## %bb.13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rax, %rdi
	movl	$8, %esi
	callq	_xcalloc
	movq	%rax, %r15
	movq	(%r14), %rax
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, (%r15,%rbx,8)
	incq	%rbx
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_2
LBB0_4:
	movq	_cmp_remaining_objects@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_QSORT
	movq	%rbx, %rcx
	decq	%rcx
	je	LBB0_12
## %bb.5:
	leaq	-2(%rbx), %rdx
	movl	%ecx, %eax
	andl	$3, %eax
	cmpq	$3, %rdx
	jae	LBB0_7
## %bb.6:
	xorl	%esi, %esi
	jmp	LBB0_9
LBB0_7:
	andq	$-4, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rdx,8), %rsi
	movq	8(%r15,%rdx,8), %rdi
	movq	%rdi, (%rsi)
	movq	8(%r15,%rdx,8), %rsi
	movq	16(%r15,%rdx,8), %rdi
	movq	%rdi, (%rsi)
	movq	16(%r15,%rdx,8), %rsi
	movq	24(%r15,%rdx,8), %rdi
	movq	%rdi, (%rsi)
	leaq	4(%rdx), %rsi
	movq	24(%r15,%rdx,8), %rdi
	movq	32(%r15,%rdx,8), %rdx
	movq	%rdx, (%rdi)
	movq	%rsi, %rdx
	cmpq	%rsi, %rcx
	jne	LBB0_8
LBB0_9:
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	leaq	(%r15,%rsi,8), %rcx
	addq	$8, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	-8(%rcx,%rdx,8), %rsi
	movq	(%rcx,%rdx,8), %rdi
	movq	%rdi, (%rsi)
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_11
LBB0_12:
	movq	-8(%r15,%rbx,8), %rax
	movq	$0, (%rax)
	movq	(%r15), %rax
	movq	%rax, (%r14)
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cmp_remaining_objects,4,2      ## @cmp_remaining_objects
	.no_dead_strip	_sort_pack_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sort_pack_list
_sort_pack_list:                        ; @sort_pack_list
	.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
	mov	x19, x0
	ldr	x0, [x0]
	bl	_pack_list_size
	cmp	x0, #2
	b.hs	LBB0_2
; %bb.1:
	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
LBB0_2:
	mov	w1, #8
	bl	_xcalloc
	mov	x20, x0
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x9, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x21, x9, #1
	str	x8, [x20, x9, lsl #3]
	ldr	x8, [x8]
	mov	x9, x21
	cbnz	x8, LBB0_4
	b	LBB0_6
LBB0_5:
	mov	x21, #0
LBB0_6:
Lloh0:
	adrp	x8, _cmp_remaining_objects@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cmp_remaining_objects@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_QSORT
	subs	x8, x21, #1
	b.eq	LBB0_9
; %bb.7:
	add	x9, x20, #8
	mov	x10, x8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x12, x11, [x9, #-8]
	str	x11, [x12]
	add	x9, x9, #8
	subs	x10, x10, #1
	b.ne	LBB0_8
LBB0_9:
	ldr	x8, [x20, x8, lsl #3]
	str	xzr, [x8]
	ldr	x8, [x20]
	str	x8, [x19]
	mov	x0, x20
	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
	b	_free
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_cmp_remaining_objects,4,2      ; @cmp_remaining_objects
	.no_dead_strip	_sort_pack_list
.subsections_via_symbols
