	.file	"extr_pack-redundant.c_minimize.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	minimize, @function
minimize:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rbx, QWORD PTR local_packs[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	r12, 16[rsp]
	mov	QWORD PTR 8[rsp], 0
	mov	QWORD PTR 16[rsp], 0
	test	rbx, rbx
	jne	.L2
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L29:
	mov	rsi, rbx
	lea	rdi, 8[rsp]
	call	pack_list_insert@PLT
	mov	rbx, QWORD PTR [rbx]
	test	rbx, rbx
	je	.L7
.L2:
	mov	rax, QWORD PTR 16[rbx]
	cmp	QWORD PTR [rax], 0
	jne	.L29
	mov	rsi, rbx
	mov	rdi, r12
	call	pack_list_insert@PLT
	mov	rbx, QWORD PTR [rbx]
	test	rbx, rbx
	jne	.L2
.L7:
	mov	edi, DWORD PTR all_objects[rip]
	call	llist_copy@PLT
	mov	rbx, QWORD PTR 8[rsp]
	mov	r12, rax
	test	rbx, rbx
	je	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rsi, QWORD PTR 8[rbx]
	mov	rdi, r12
	call	llist_sorted_difference_inplace@PLT
	mov	rbx, QWORD PTR [rbx]
	test	rbx, rbx
	jne	.L3
	mov	rbx, QWORD PTR 8[rsp]
.L4:
	cmp	QWORD PTR [r12], 0
	mov	QWORD PTR 0[rbp], rbx
	je	.L30
	mov	edi, DWORD PTR all_objects[rip]
	call	llist_copy@PLT
	mov	rsi, r12
	mov	rdi, rax
	mov	r13, rax
	call	llist_sorted_difference_inplace@PLT
	mov	rbx, QWORD PTR 16[rsp]
	test	rbx, rbx
	je	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, QWORD PTR 8[rbx]
	mov	rsi, r13
	call	llist_sorted_difference_inplace@PLT
	mov	rbx, QWORD PTR [rbx]
	test	rbx, rbx
	jne	.L10
	cmp	QWORD PTR 16[rsp], 0
	je	.L1
	lea	r12, 16[rsp]
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, r12
	call	sort_pack_list@PLT
	mov	rsi, QWORD PTR 16[rsp]
	mov	rax, QWORD PTR 8[rsi]
	cmp	QWORD PTR [rax], 0
	je	.L1
	mov	rdi, rbp
	call	pack_list_insert@PLT
	mov	rax, QWORD PTR 16[rsp]
	mov	rbx, QWORD PTR [rax]
	test	rbx, rbx
	jne	.L12
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rsi, QWORD PTR 8[rax]
	call	llist_sorted_difference_inplace@PLT
	mov	rbx, QWORD PTR [rbx]
	mov	rax, QWORD PTR 16[rsp]
	test	rbx, rbx
	je	.L14
.L12:
	mov	rdi, QWORD PTR 8[rbx]
	cmp	QWORD PTR [rdi], 0
	jg	.L15
.L14:
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 16[rsp], rax
	test	rax, rax
	jne	.L16
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L31
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L30:
	.cfi_restore_state
	mov	rdi, r12
	call	free@PLT
	jmp	.L1
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	minimize, .-minimize
	.comm	local_packs,8,8
	.comm	all_objects,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_pack-redundant.c_minimize.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	minimize, %function
minimize:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, lr}
	ldr	r2, .L36
	sub	sp, sp, #20
	ldr	r4, [r2]
	ldr	r2, .L36+4
	cmp	r4, r3
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	mov	r5, r0
	str	r3, [sp, #4]
	str	r3, [sp, #8]
	beq	.L7
.L2:
	ldr	r3, [r4, #8]
	mov	r1, r4
	ldr	r3, [r3]
	cmp	r3, #0
	addne	r0, sp, #4
	addeq	r0, sp, #8
	bl	pack_list_insert
	ldr	r4, [r4]
	cmp	r4, #0
	bne	.L2
.L7:
	ldr	r7, .L36+8
	ldr	r0, [r7]
	bl	llist_copy
	ldr	r4, [sp, #4]
	mov	r6, r0
	cmp	r4, #0
	beq	.L4
.L3:
	ldr	r1, [r4, #4]
	mov	r0, r6
	bl	llist_sorted_difference_inplace
	ldr	r4, [r4]
	cmp	r4, #0
	bne	.L3
	ldr	r4, [sp, #4]
.L4:
	ldr	r3, [r6]
	str	r4, [r5]
	cmp	r3, #0
	beq	.L34
	ldr	r0, [r7]
	bl	llist_copy
	mov	r1, r6
	mov	r6, r0
	bl	llist_sorted_difference_inplace
	ldr	r4, [sp, #8]
	cmp	r4, #0
	beq	.L1
.L10:
	ldr	r0, [r4, #4]
	mov	r1, r6
	bl	llist_sorted_difference_inplace
	ldr	r4, [r4]
	cmp	r4, #0
	bne	.L10
	ldr	r3, [sp, #8]
	cmp	r3, #0
	beq	.L1
.L16:
	add	r0, sp, #8
	bl	sort_pack_list
	ldr	r1, [sp, #8]
	ldr	r3, [r1, #4]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L1
	mov	r0, r5
	bl	pack_list_insert
	ldr	r3, [sp, #8]
	ldr	r4, [r3]
	cmp	r4, #0
	bne	.L12
	b	.L1
.L15:
	ldr	r1, [r3, #4]
	bl	llist_sorted_difference_inplace
	ldr	r4, [r4]
	ldr	r3, [sp, #8]
	cmp	r4, #0
	beq	.L14
.L12:
	ldr	r0, [r4, #4]
	ldr	r2, [r0]
	cmp	r2, #0
	bgt	.L15
.L14:
	ldr	r3, [r3]
	cmp	r3, #0
	str	r3, [sp, #8]
	bne	.L16
.L1:
	ldr	r3, .L36+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L35
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L34:
	mov	r0, r6
	bl	free
	b	.L1
.L35:
	bl	__stack_chk_fail
.L37:
	.align	2
.L36:
	.word	local_packs
	.word	.LC0
	.word	all_objects
	.size	minimize, .-minimize
	.comm	local_packs,4,4
	.comm	all_objects,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
