	.file	"extr_revwalk.c_add_parents_to_list.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	add_parents_to_list, @function
add_parents_to_list:
.LFB0:
	.cfi_startproc
	endbr64
	mov	ecx, DWORD PTR [rsi]
	test	ecx, ecx
	jne	.L28
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	edx, DWORD PTR 4[rsi]
	mov	rbx, rsi
	mov	DWORD PTR [rsi], 1
	movzx	eax, WORD PTR 8[rsi]
	test	edx, edx
	jne	.L4
	xor	r13d, r13d
	test	ax, ax
	jne	.L5
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	cmp	QWORD PTR 0[rbp], 0
	jne	.L6
.L13:
	add	r13d, 1
	cmp	WORD PTR 8[rbx], r13w
	jbe	.L6
.L5:
	mov	rdx, QWORD PTR 24[rbx]
	movzx	eax, r13w
	mov	rdi, rbp
	mov	r14, QWORD PTR [rdx+rax*8]
	mov	rsi, r14
	call	git_commit_list_parse@PLT
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR 16[rbp]
	test	rax, rax
	je	.L12
	mov	esi, DWORD PTR 8[rbp]
	lea	rdi, 16[r14]
	call	rax
	test	rax, rax
	jne	.L13
.L12:
	mov	eax, DWORD PTR 12[r14]
	test	eax, eax
	jne	.L11
	mov	DWORD PTR 12[r14], 1
	mov	rsi, r12
	mov	rdi, r14
	call	git_commit_list_insert_by_date@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L4:
	test	ax, ax
	je	.L6
	xor	r13d, r13d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L29:
	cmp	QWORD PTR 24[r14], 0
	je	.L7
	mov	rdi, r14
	call	mark_parents_uninteresting@PLT
.L7:
	mov	DWORD PTR 12[r14], 1
	mov	rsi, r12
	mov	rdi, r14
	add	r13d, 1
	call	git_commit_list_insert_by_date@PLT
	cmp	WORD PTR 8[rbx], r13w
	jbe	.L6
.L8:
	mov	rdx, QWORD PTR 24[rbx]
	movzx	eax, r13w
	mov	rdi, rbp
	mov	r14, QWORD PTR [rdx+rax*8]
	mov	DWORD PTR 4[r14], 1
	mov	rsi, r14
	call	git_commit_list_parse@PLT
	test	eax, eax
	jns	.L29
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	add_parents_to_list, .-add_parents_to_list
	.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_revwalk.c_add_parents_to_list.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_parents_to_list, %function
add_parents_to_list:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1]
	cmp	r3, #0
	bne	.L30
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, #1
	ldr	r6, [r1, #4]
	mov	r8, r2
	cmp	r6, #0
	mov	r4, r1
	mov	r5, r0
	ldrh	r2, [r1, #8]
	str	r7, [r1]
	bne	.L4
	cmp	r2, #0
	ldrne	r9, .L32
	bne	.L5
	b	.L6
.L11:
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L6
.L13:
	add	r6, r6, #1
	ldrh	r2, [r4, #8]
	lsl	r3, r6, #16
	lsr	r3, r3, #16
	cmp	r2, r3
	bls	.L6
.L5:
	ldr	r3, [r4, #20]
	and	r2, r6, r9
	ldr	r10, [r3, r2, lsl #2]
	mov	r0, r5
	mov	r1, r10
	bl	git_commit_list_parse
	mov	r3, r0
	cmp	r3, #0
	add	r0, r10, #16
	blt	.L1
	ldr	r3, [r5, #8]
	cmp	r3, #0
	beq	.L12
	ldr	r1, [r5, #4]
	blx	r3
	cmp	r0, #0
	bne	.L13
.L12:
	ldr	r3, [r10, #12]
	cmp	r3, #0
	bne	.L11
	mov	r0, r10
	mov	r1, r8
	str	r7, [r10, #12]
	bl	git_commit_list_insert_by_date
	b	.L11
.L4:
	cmp	r2, #0
	beq	.L6
	mov	r6, r3
	ldr	r9, .L32
	b	.L8
.L31:
	ldr	r3, [r10, #20]
	cmp	r3, #0
	beq	.L7
	mov	r0, r10
	bl	mark_parents_uninteresting
.L7:
	mov	r0, r10
	mov	r1, r8
	str	r7, [r10, #12]
	bl	git_commit_list_insert_by_date
	ldrh	r2, [r4, #8]
	lsl	r3, r6, #16
	lsr	r3, r3, #16
	cmp	r2, r3
	bls	.L6
.L8:
	ldr	r3, [r4, #20]
	and	r2, r6, r9
	ldr	r10, [r3, r2, lsl #2]
	mov	r0, r5
	mov	r1, r10
	str	r7, [r10, #4]
	bl	git_commit_list_parse
	subs	r3, r0, #0
	add	r6, r6, #1
	bge	.L31
.L1:
	mov	r0, r3
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	mov	r3, #0
	mov	r0, r3
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L30:
	mov	r3, #0
	mov	r0, r3
	bx	lr
.L33:
	.align	2
.L32:
	.word	65535
	.size	add_parents_to_list, .-add_parents_to_list
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
