	.file	"extr_pack-objects.c_compute_layer_order.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	compute_layer_order, @function
compute_layer_order:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	edx, DWORD PTR to_pack[rip]
	mov	r12, QWORD PTR to_pack[rip+8]
	test	edx, edx
	je	.L1
	mov	r14, rdi
	mov	r15, rsi
	xor	ebx, ebx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rsi, r15
	mov	rdi, r14
	add	ebx, 1
	call	add_to_write_order@PLT
	cmp	DWORD PTR to_pack[rip], ebx
	jbe	.L1
.L4:
	mov	ebp, ebx
	mov	rdx, rbp
	sal	rdx, 4
	add	rdx, r12
	mov	rax, QWORD PTR 8[rdx]
	test	rax, rax
	je	.L31
	cmp	DWORD PTR to_pack[rip], ebx
	jbe	.L1
	mov	ecx, ebx
	lea	r13, to_pack[rip]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR 0[r13]
	add	ecx, 1
	cmp	eax, ecx
	jbe	.L7
.L32:
	mov	eax, ecx
	sal	rax, 4
	mov	rax, QWORD PTR 8[r12+rax]
.L8:
	test	rax, rax
	je	.L6
	mov	edx, ecx
	mov	rsi, r15
	mov	rdi, r14
	mov	DWORD PTR [rsp], ecx
	sal	rdx, 4
	add	rdx, r12
	call	add_to_write_order@PLT
	mov	ecx, DWORD PTR [rsp]
	mov	eax, DWORD PTR 0[r13]
	add	ecx, 1
	cmp	eax, ecx
	ja	.L32
.L7:
	cmp	eax, ebx
	jbe	.L1
	mov	DWORD PTR [rsp], ebx
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edx, DWORD PTR [rsp]
	sal	rdx, 4
	add	rdx, r12
	mov	rdi, rdx
	mov	QWORD PTR 8[rsp], rdx
	call	oe_type@PLT
	cmp	rax, QWORD PTR OBJ_COMMIT[rip]
	mov	rdx, QWORD PTR 8[rsp]
	je	.L12
	mov	rdi, rdx
	mov	QWORD PTR 8[rsp], rdx
	call	oe_type@PLT
	cmp	rax, QWORD PTR OBJ_TAG[rip]
	mov	rdx, QWORD PTR 8[rsp]
	jne	.L11
.L12:
	mov	rsi, r15
	mov	rdi, r14
	call	add_to_write_order@PLT
.L11:
	add	DWORD PTR [rsp], 1
	mov	eax, DWORD PTR 0[r13]
	mov	esi, DWORD PTR [rsp]
	cmp	eax, esi
	ja	.L13
	cmp	eax, ebx
	jbe	.L1
	mov	ecx, ebx
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edx, ecx
	mov	DWORD PTR 8[rsp], ecx
	sal	rdx, 4
	add	rdx, r12
	mov	rdi, rdx
	mov	QWORD PTR [rsp], rdx
	call	oe_type@PLT
	cmp	rax, QWORD PTR OBJ_TREE[rip]
	mov	rdx, QWORD PTR [rsp]
	mov	ecx, DWORD PTR 8[rsp]
	jne	.L15
	mov	rsi, r15
	mov	rdi, r14
	mov	DWORD PTR [rsp], ecx
	call	add_to_write_order@PLT
	mov	ecx, DWORD PTR [rsp]
.L15:
	mov	eax, DWORD PTR 0[r13]
	add	ecx, 1
	cmp	eax, ecx
	ja	.L16
	cmp	eax, ebx
	ja	.L21
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	add	ebx, 1
	cmp	DWORD PTR 0[r13], ebx
	jbe	.L1
.L33:
	mov	ebp, ebx
.L21:
	sal	rbp, 4
	add	rbp, r12
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	jne	.L19
	mov	rsi, rbp
	lea	rdi, to_pack[rip]
	call	oe_layer@PLT
	cmp	rax, QWORD PTR write_layer[rip]
	jne	.L19
	mov	rdx, rbp
	mov	rsi, r15
	mov	rdi, r14
	add	ebx, 1
	call	add_family_to_write_order@PLT
	cmp	DWORD PTR 0[r13], ebx
	ja	.L33
.L1:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	compute_layer_order, .-compute_layer_order
	.comm	write_layer,8,8
	.comm	to_pack,16,16
	.comm	OBJ_TREE,8,8
	.comm	OBJ_TAG,8,8
	.comm	OBJ_COMMIT,8,8
	.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-objects.c_compute_layer_order.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	compute_layer_order, %function
compute_layer_order:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r5, .L36
	sub	sp, sp, #12
	ldr	r3, [r5]
	ldr	r10, [r5, #4]
	cmp	r3, #0
	beq	.L1
	mov	r8, r0
	mov	r9, r1
	mov	r6, r10
	mov	r4, #0
	b	.L4
.L34:
	mov	r2, r6
	mov	r1, r9
	mov	r0, r8
	bl	add_to_write_order
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	add	r6, r6, #8
	bls	.L1
.L4:
	ldr	r3, [r6, #4]
	cmp	r3, #0
	beq	.L34
	ldr	r2, [r5]
	cmp	r2, r4
	bls	.L1
	add	r6, r10, r4, lsl #3
	lsl	r2, r4, #3
	mov	fp, r6
	mov	r7, r4
	str	r2, [sp, #4]
	b	.L8
.L6:
	ldr	r3, [r5]
	add	fp, fp, #8
	cmp	r3, r7
	bls	.L7
.L35:
	ldr	r3, [fp, #4]
.L8:
	cmp	r3, #0
	add	r7, r7, #1
	beq	.L6
	mov	r2, fp
	mov	r1, r9
	mov	r0, r8
	bl	add_to_write_order
	ldr	r3, [r5]
	add	fp, fp, #8
	cmp	r3, r7
	bhi	.L35
.L7:
	cmp	r3, r4
	bls	.L1
	mov	fp, r6
	mov	r7, r4
.L13:
	mov	r0, fp
	bl	oe_type
	ldr	r3, .L36+4
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L12
	mov	r0, fp
	bl	oe_type
	ldr	r3, .L36+8
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L11
.L12:
	mov	r2, fp
	mov	r1, r9
	mov	r0, r8
	bl	add_to_write_order
.L11:
	ldr	r3, [r5]
	add	r7, r7, #1
	cmp	r3, r7
	add	fp, fp, #8
	bhi	.L13
	cmp	r3, r4
	bls	.L1
	mov	fp, r4
	ldr	r7, .L36+12
.L16:
	mov	r0, r6
	bl	oe_type
	ldr	r3, [r7]
	add	fp, fp, #1
	cmp	r0, r3
	bne	.L15
	mov	r2, r6
	mov	r1, r9
	mov	r0, r8
	bl	add_to_write_order
.L15:
	ldr	r3, [r5]
	add	r6, r6, #8
	cmp	r3, fp
	bhi	.L16
	cmp	r3, r4
	bls	.L1
	ldr	r7, .L36
	ldr	r6, .L36+16
	ldr	r1, [sp, #4]
	b	.L21
.L19:
	ldr	r3, [r5]
	lsl	r1, r4, #3
	cmp	r3, r4
	bls	.L1
.L21:
	ldr	r3, [r10, r4, lsl #3]
	add	fp, r10, r1
	cmp	r3, #0
	add	r4, r4, #1
	bne	.L19
	mov	r1, fp
	mov	r0, r7
	bl	oe_layer
	ldr	r3, [r6]
	cmp	r0, r3
	bne	.L19
	mov	r1, r9
	mov	r2, fp
	mov	r0, r8
	bl	add_family_to_write_order
	ldr	r3, [r5]
	lsl	r1, r4, #3
	cmp	r3, r4
	bhi	.L21
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L37:
	.align	2
.L36:
	.word	to_pack
	.word	OBJ_COMMIT
	.word	OBJ_TAG
	.word	OBJ_TREE
	.word	write_layer
	.size	compute_layer_order, .-compute_layer_order
	.comm	write_layer,4,4
	.comm	to_pack,8,4
	.comm	OBJ_TREE,4,4
	.comm	OBJ_TAG,4,4
	.comm	OBJ_COMMIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
