	.file	"extr_log.c_add_revision.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Could not find merge base"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Could not find merge base commit"
	.text
	.p2align 4
	.type	add_revision, @function
add_revision:
.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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	test	rsi, rsi
	je	.L16
	mov	r12, rsi
	mov	esi, DWORD PTR [rdi]
	cmp	BYTE PTR [r12], 94
	je	.L17
	lea	rdi, 16[rsp]
	mov	rdx, r12
	call	git_revparse@PLT
	test	rax, rax
	js	.L6
	xor	r14d, r14d
.L5:
	mov	eax, DWORD PTR 16[rsp]
	and	eax, DWORD PTR GIT_REVPARSE_SINGLE[rip]
	mov	edx, r14d
	mov	r13d, eax
	jne	.L18
	mov	rsi, QWORD PTR 32[rsp]
	mov	rdi, rbp
	call	push_rev@PLT
	mov	eax, DWORD PTR 16[rsp]
	test	DWORD PTR GIT_REVPARSE_MERGE_BASE[rip], eax
	jne	.L19
.L8:
	mov	edx, r14d
	mov	rsi, QWORD PTR 24[rsp]
	mov	rdi, rbp
	xor	edx, 1
	call	push_rev@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L18:
	.cfi_restore_state
	mov	rsi, QWORD PTR 24[rsp]
	mov	rdi, rbp
	xor	r13d, r13d
	call	push_rev@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	eax, DWORD PTR GIT_REVPARSE_SINGLE[rip]
	lea	rdx, 1[r12]
	lea	rdi, 24[rsp]
	mov	DWORD PTR 16[rsp], eax
	call	git_revparse_single@PLT
	test	rax, rax
	js	.L6
	mov	r14d, 1
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, QWORD PTR 32[rsp]
	lea	rbx, 12[rsp]
	call	git_object_id@PLT
	mov	rdi, QWORD PTR 24[rsp]
	mov	r15d, eax
	call	git_object_id@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	ecx, r15d
	mov	rdi, rbx
	mov	edx, eax
	call	git_merge_base@PLT
	mov	rdx, r12
	lea	rsi, .LC0[rip]
	mov	edi, eax
	call	check_lg2@PLT
	mov	esi, DWORD PTR 0[rbp]
	lea	rdi, 32[rsp]
	mov	rdx, rbx
	mov	ecx, DWORD PTR GIT_OBJECT_COMMIT[rip]
	call	git_object_lookup@PLT
	xor	edx, edx
	lea	rsi, .LC1[rip]
	mov	edi, eax
	call	check_lg2@PLT
	mov	rsi, QWORD PTR 32[rsp]
	mov	edx, r14d
	mov	rdi, rbp
	call	push_rev@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L16:
	xor	edx, edx
	xor	esi, esi
	xor	r13d, r13d
	call	push_rev@PLT
	jmp	.L1
.L6:
	mov	r13d, -1
	jmp	.L1
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	add_revision, .-add_revision
	.comm	GIT_REVPARSE_SINGLE,4,4
	.comm	GIT_REVPARSE_MERGE_BASE,4,4
	.comm	GIT_OBJECT_COMMIT,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_log.c_add_revision.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Could not find merge base\000"
	.align	2
.LC1:
	.ascii	"Could not find merge base commit\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_revision, %function
add_revision:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L21
	sub	sp, sp, #28
	subs	r4, r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	beq	.L16
	ldrb	r3, [r4]	@ zero_extendqisi2
	mov	r5, r0
	cmp	r3, #94
	ldr	r1, [r0]
	beq	.L17
	mov	r2, r4
	add	r0, sp, #8
	bl	git_revparse
	cmp	r0, #0
	blt	.L6
	mov	r7, #0
	ldr	r6, .L21+4
.L5:
	ldr	r3, [r6]
	ldr	r0, [sp, #8]
	mov	r2, r7
	ands	r6, r0, r3
	bne	.L18
	mov	r0, r5
	ldr	r1, [sp, #16]
	bl	push_rev
	ldr	r3, .L21+8
	ldr	r2, [sp, #8]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L19
.L8:
	mov	r0, r5
	ldr	r1, [sp, #12]
	eor	r2, r7, #1
	bl	push_rev
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	mov	r0, r6
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L18:
	mov	r0, r5
	ldr	r1, [sp, #12]
	bl	push_rev
	mov	r6, #0
	b	.L1
.L17:
	ldr	r6, .L21+4
	add	r2, r4, #1
	ldr	r3, [r6]
	add	r0, sp, #12
	str	r3, [sp, #8]
	bl	git_revparse_single
	cmp	r0, #0
	movge	r7, #1
	bge	.L5
.L6:
	mvn	r6, #0
	b	.L1
.L19:
	ldr	r0, [sp, #12]
	ldr	r9, [r5]
	bl	git_object_id
	mov	r8, r0
	ldr	r0, [sp, #16]
	bl	git_object_id
	mov	r2, r8
	mov	r3, r0
	mov	r1, r9
	add	r0, sp, #4
	bl	git_merge_base
	mov	r2, r4
	ldr	r1, .L21+12
	bl	check_lg2
	ldr	r3, .L21+16
	ldr	r1, [r5]
	ldr	r3, [r3]
	add	r2, sp, #4
	add	r0, sp, #16
	bl	git_object_lookup
	mov	r2, r6
	ldr	r1, .L21+20
	bl	check_lg2
	mov	r2, r7
	mov	r0, r5
	ldr	r1, [sp, #16]
	bl	push_rev
	b	.L8
.L16:
	mov	r2, r4
	bl	push_rev
	mov	r6, r4
	b	.L1
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC2
	.word	GIT_REVPARSE_SINGLE
	.word	GIT_REVPARSE_MERGE_BASE
	.word	.LC0
	.word	GIT_OBJECT_COMMIT
	.word	.LC1
	.size	add_revision, .-add_revision
	.comm	GIT_REVPARSE_SINGLE,4,4
	.comm	GIT_REVPARSE_MERGE_BASE,4,4
	.comm	GIT_OBJECT_COMMIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
