	.file	"extr_pack-bitmap.c_find_objects.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
.LC1:
	.string	"revision walk setup failed"
	.text
	.p2align 4
	.type	find_objects, @function
find_objects:
.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, 88
	.cfi_def_cfa_offset 144
	mov	QWORD PTR 8[rsp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 24[rsp], 0
	test	rdx, rdx
	je	.L16
	mov	rbp, rdi
	mov	r12, rsi
	mov	rbx, rdx
	xor	r13d, r13d
	lea	r14, 24[rsp]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rsi, r14
	mov	rdi, r15
	call	object_list_insert@PLT
	test	rbx, rbx
	je	.L33
.L7:
	mov	r15, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR OBJ_COMMIT[rip]
	mov	rbx, QWORD PTR [rbx]
	cmp	QWORD PTR [r15], rax
	jne	.L3
	mov	esi, DWORD PTR 12[r15]
	mov	edi, DWORD PTR 0[rbp]
	call	kh_get_oid_map@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	QWORD PTR [rsp], rax
	call	kh_end@PLT
	mov	rsi, QWORD PTR [rsp]
	cmp	rax, rsi
	jle	.L3
	mov	edi, DWORD PTR 0[rbp]
	call	kh_value@PLT
	mov	rdi, rax
	call	lookup_stored_bitmap@PLT
	mov	rsi, rax
	test	r13, r13
	je	.L34
	mov	rdi, r13
	call	bitmap_or_ewah@PLT
.L5:
	mov	eax, DWORD PTR SEEN[rip]
	or	DWORD PTR 8[r15], eax
	test	rbx, rbx
	jne	.L7
	.p2align 4,,10
	.p2align 3
.L33:
	mov	rbx, QWORD PTR 24[rsp]
	test	rbx, rbx
	je	.L1
	test	r13, r13
	sete	BYTE PTR [rsp]
	xor	r14d, r14d
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, r13
	call	bitmap_get@PLT
	test	eax, eax
	je	.L11
	mov	eax, DWORD PTR SEEN[rip]
	or	DWORD PTR 8[r15], eax
	test	rbx, rbx
	je	.L35
.L12:
	mov	r15, QWORD PTR 8[rbx]
	mov	rdi, rbp
	mov	rbx, QWORD PTR [rbx]
	lea	rsi, 12[r15]
	call	bitmap_position@PLT
	mov	esi, eax
	test	eax, eax
	js	.L11
	cmp	BYTE PTR [rsp], 0
	je	.L8
.L11:
	mov	eax, DWORD PTR UNINTERESTING[rip]
	lea	rdx, .LC0[rip]
	mov	rsi, r15
	mov	rdi, r12
	mov	r14d, 1
	not	eax
	and	DWORD PTR 8[r15], eax
	call	add_pending_object@PLT
	test	rbx, rbx
	jne	.L12
.L35:
	test	r14d, r14d
	je	.L1
	test	r13, r13
	je	.L36
.L13:
	mov	rax, QWORD PTR 8[rsp]
	mov	rdi, r12
	mov	QWORD PTR 64[rsp], rbp
	mov	QWORD PTR 56[rsp], r13
	mov	QWORD PTR 48[rsp], rax
	mov	eax, DWORD PTR should_include[rip]
	mov	DWORD PTR 8[r12], eax
	lea	rax, 48[rsp]
	mov	QWORD PTR [r12], rax
	call	prepare_revision_walk@PLT
	test	rax, rax
	jne	.L37
.L14:
	mov	edx, DWORD PTR show_object[rip]
	lea	rcx, 32[rsp]
	mov	rdi, r12
	mov	QWORD PTR 40[rsp], rbp
	mov	esi, DWORD PTR show_commit[rip]
	mov	QWORD PTR 32[rsp], r13
	call	traverse_commit_list@PLT
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L38
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r13
	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
	.p2align 4,,10
	.p2align 3
.L34:
	.cfi_restore_state
	mov	rdi, rax
	call	ewah_to_bitmap@PLT
	mov	r13, rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L37:
	lea	rdi, .LC1[rip]
	call	die@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L16:
	xor	r13d, r13d
	jmp	.L1
.L36:
	xor	eax, eax
	call	bitmap_new@PLT
	mov	r13, rax
	jmp	.L13
.L38:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	find_objects, .-find_objects
	.comm	show_object,4,4
	.comm	show_commit,4,4
	.comm	should_include,4,4
	.comm	UNINTERESTING,4,4
	.comm	SEEN,4,4
	.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-bitmap.c_find_objects.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"revision walk setup failed\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_objects, %function
find_objects:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, #0
	sub	sp, sp, #44
	str	r3, [sp, #4]
	ldr	r3, .L38
	subs	r4, r2, #0
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	str	r7, [sp, #12]
	beq	.L15
	mov	r6, r0
	mov	r8, r1
	ldr	r9, .L38+4
	ldr	r10, .L38+8
	b	.L7
.L3:
	mov	r0, r5
	add	r1, sp, #12
	bl	object_list_insert
	cmp	r4, #0
	beq	.L32
.L7:
	ldr	r5, [r4, #4]
	ldr	r3, [r9]
	ldr	r2, [r5]
	ldr	r4, [r4]
	cmp	r2, r3
	bne	.L3
	ldr	r1, [r5, #8]
	ldr	r0, [r6]
	bl	kh_get_oid_map
	mov	fp, r0
	ldr	r0, [r6]
	bl	kh_end
	cmp	r0, fp
	ble	.L3
	mov	r1, fp
	ldr	r0, [r6]
	bl	kh_value
	bl	lookup_stored_bitmap
	cmp	r7, #0
	mov	r1, r0
	beq	.L33
	mov	r0, r7
	bl	bitmap_or_ewah
.L5:
	ldr	r3, [r5, #4]
	ldr	r2, [r10]
	cmp	r4, #0
	orr	r3, r3, r2
	str	r3, [r5, #4]
	bne	.L7
.L32:
	ldr	r5, [sp, #12]
	cmp	r5, #0
	beq	.L1
	clz	r9, r7
	ldr	fp, .L38+12
	ldr	r10, .L38+16
	str	r4, [sp]
	lsr	r9, r9, #5
	b	.L11
.L8:
	mov	r1, r0
	mov	r0, r7
	bl	bitmap_get
	cmp	r0, #0
	beq	.L10
	ldr	r3, .L38+8
	ldr	r2, [r4, #4]
	ldr	r1, [r3]
	cmp	r5, #0
	orr	r2, r2, r1
	str	r2, [r4, #4]
	beq	.L34
.L11:
	ldr	r4, [r5, #4]
	mov	r0, r6
	add	r1, r4, #8
	ldr	r5, [r5]
	bl	bitmap_position
	orrs	r3, r9, r0, lsr #31
	beq	.L8
.L10:
	ldr	r0, [fp]
	ldr	r2, [r4, #4]
	mov	r1, r4
	bic	r2, r2, r0
	str	r2, [r4, #4]
	mov	r0, r8
	mov	r2, r10
	bl	add_pending_object
	mov	r3, #1
	cmp	r5, #0
	str	r3, [sp]
	bne	.L11
.L34:
	ldr	r3, [sp]
	cmp	r3, #0
	beq	.L1
	cmp	r7, #0
	beq	.L35
.L12:
	ldr	r3, .L38+20
	mov	r0, r8
	ldr	r2, [r3]
	add	r3, sp, #24
	str	r3, [r8]
	ldr	r3, [sp, #4]
	str	r2, [r8, #4]
	str	r6, [sp, #32]
	str	r7, [sp, #28]
	str	r3, [sp, #24]
	bl	prepare_revision_walk
	cmp	r0, #0
	bne	.L36
.L13:
	ldr	r3, .L38+24
	ldr	r2, .L38+28
	ldr	r1, [r3]
	mov	r0, r8
	ldr	r2, [r2]
	add	r3, sp, #16
	str	r6, [sp, #20]
	str	r7, [sp, #16]
	bl	traverse_commit_list
.L1:
	ldr	r3, .L38
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L37
	mov	r0, r7
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L33:
	bl	ewah_to_bitmap
	mov	r7, r0
	b	.L5
.L36:
	ldr	r0, .L38+32
	bl	die
	b	.L13
.L15:
	mov	r7, r4
	b	.L1
.L35:
	bl	bitmap_new
	mov	r7, r0
	b	.L12
.L37:
	bl	__stack_chk_fail
.L39:
	.align	2
.L38:
	.word	.LC2
	.word	OBJ_COMMIT
	.word	SEEN
	.word	UNINTERESTING
	.word	.LC0
	.word	should_include
	.word	show_commit
	.word	show_object
	.word	.LC1
	.size	find_objects, .-find_objects
	.comm	show_object,4,4
	.comm	show_commit,4,4
	.comm	should_include,4,4
	.comm	UNINTERESTING,4,4
	.comm	SEEN,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
