	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function minimize
_minimize:                              ## @minimize
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	_local_packs@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	leaq	-40(%rbp), %r14
	leaq	-48(%rbp), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rsi
	callq	_pack_list_insert
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	cmpq	$0, (%rax)
	movq	%r14, %rdi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	jmp	LBB0_4
LBB0_5:
	movq	_all_objects@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_llist_copy
	movq	%rax, %r12
	movq	-48(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rsi
	movq	%r12, %rdi
	callq	_llist_sorted_difference_inplace
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_7
## %bb.8:
	movq	-48(%rbp), %rax
	jmp	LBB0_9
LBB0_6:
	xorl	%eax, %eax
LBB0_9:
	movq	%rax, (%r15)
	cmpq	$0, (%r12)
	je	LBB0_10
## %bb.11:
	movl	(%r14), %edi
	callq	_llist_copy
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_llist_sorted_difference_inplace
	movq	-40(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_20
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdi
	movq	%r14, %rsi
	callq	_llist_sorted_difference_inplace
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_12
## %bb.13:
	cmpq	$0, -40(%rbp)
	je	LBB0_20
## %bb.14:
	leaq	-40(%rbp), %r14
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	testq	%rax, %rax
	je	LBB0_20
LBB0_15:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	movq	%r14, %rdi
	callq	_sort_pack_list
	movq	-40(%rbp), %rsi
	movq	8(%rsi), %rax
	cmpq	$0, (%rax)
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%r15, %rdi
	callq	_pack_list_insert
	movq	-40(%rbp), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_20
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rbx), %rdi
	cmpq	$0, (%rdi)
	jle	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	-40(%rbp), %rax
	movq	8(%rax), %rsi
	callq	_llist_sorted_difference_inplace
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_17
	jmp	LBB0_19
LBB0_10:
	movq	%r12, %rdi
	callq	_free
LBB0_20:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_local_packs,8,3                ## @local_packs
	.comm	_all_objects,4,2                ## @all_objects
	.no_dead_strip	_minimize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function minimize
_minimize:                              ; @minimize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	stp	xzr, xzr, [sp]
Lloh0:
	adrp	x8, _local_packs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _local_packs@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	cbz	x20, LBB0_3
; %bb.1:
	add	x21, sp, #8
	mov	x22, sp
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	cmp	x8, #0
	csel	x0, x22, x21, eq
	mov	x1, x20
	bl	_pack_list_insert
	ldr	x20, [x20]
	cbnz	x20, LBB0_2
LBB0_3:
Lloh3:
	adrp	x21, _all_objects@GOTPAGE
Lloh4:
	ldr	x21, [x21, _all_objects@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_llist_copy
	mov	x20, x0
	ldr	x22, [sp, #8]
	cbz	x22, LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x22, #8]
	mov	x0, x20
	bl	_llist_sorted_difference_inplace
	ldr	x22, [x22]
	cbnz	x22, LBB0_4
; %bb.5:
	ldr	x8, [sp, #8]
	b	LBB0_7
LBB0_6:
	mov	x8, #0
LBB0_7:
	str	x8, [x19]
	ldr	x8, [x20]
	cbz	x8, LBB0_16
; %bb.8:
	ldr	w0, [x21]
	bl	_llist_copy
	mov	x21, x0
	mov	x1, x20
	bl	_llist_sorted_difference_inplace
	ldr	x20, [sp]
	cbz	x20, LBB0_17
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20, #8]
	mov	x1, x21
	bl	_llist_sorted_difference_inplace
	ldr	x20, [x20]
	cbnz	x20, LBB0_9
; %bb.10:
	ldr	x8, [sp]
	cbnz	x8, LBB0_12
	b	LBB0_17
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [sp]
	ldr	x8, [x8]
	str	x8, [sp]
	cbz	x8, LBB0_17
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	mov	x0, sp
	bl	_sort_pack_list
	ldr	x1, [sp]
	ldr	x8, [x1, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	bl	_pack_list_insert
	ldr	x8, [sp]
	ldr	x20, [x8]
	cbz	x20, LBB0_17
LBB0_14:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x20, #8]
	ldr	x8, [x0]
	cmp	x8, #1
	b.lt	LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	ldr	x8, [sp]
	ldr	x1, [x8, #8]
	bl	_llist_sorted_difference_inplace
	ldr	x20, [x20]
	cbnz	x20, LBB0_14
	b	LBB0_11
LBB0_16:
	mov	x0, x20
	bl	_free
LBB0_17:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_local_packs,8,3                ; @local_packs
	.comm	_all_objects,4,2                ; @all_objects
	.no_dead_strip	_minimize
.subsections_via_symbols
