	.file	"extr_notes.c_merge_commit.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"NOTES_MERGE_PARTIAL"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"failed to read ref NOTES_MERGE_PARTIAL"
	.align 8
.LC2:
	.string	"could not find commit from NOTES_MERGE_PARTIAL."
	.align 8
.LC3:
	.string	"could not parse commit from NOTES_MERGE_PARTIAL."
	.section	.rodata.str1.1
.LC4:
	.string	"NOTES_MERGE_REF"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"failed to resolve NOTES_MERGE_REF"
	.align 8
.LC6:
	.string	"failed to finalize notes merge"
	.section	.rodata.str1.1
.LC7:
	.string	"%s"
.LC8:
	.string	"notes: "
	.section	.text.unlikely,"ax",@progbits
.LCOLDB9:
	.text
.LHOTB9:
	.p2align 4
	.type	merge_commit, @function
merge_commit:
.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
	lea	rdi, .LC0[rip]
	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
	lea	r14, 28[rsp]
	mov	eax, DWORD PTR STRBUF_INIT[rip]
	mov	rsi, r14
	mov	DWORD PTR 24[rsp], eax
	call	get_oid@PLT
	test	rax, rax
	je	.L2
	lea	rdi, .LC1[rip]
	call	_@PLT
	mov	edi, eax
	call	die@PLT
.L3:
	mov	rax, QWORD PTR [r15]
	lea	rbx, 32[rsp]
	test	rax, rax
	je	.L5
.L24:
	mov	rsi, QWORD PTR [rax]
	mov	rdi, rbx
	call	oidcpy@PLT
.L6:
	mov	esi, 4
	mov	edi, 1
	call	xcalloc@PLT
	mov	edx, DWORD PTR combine_notes_overwrite[rip]
	xor	ecx, ecx
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	r13, rax
	call	init_notes@PLT
	xor	ecx, ecx
	mov	rdx, r14
	xor	esi, esi
	lea	rdi, .LC4[rip]
	call	resolve_refdup@PLT
	mov	QWORD PTR [rsp], rax
	mov	QWORD PTR 0[rbp], rax
	test	rax, rax
	je	.L21
.L7:
	mov	rcx, r14
	mov	rdx, r15
	mov	rsi, r13
	mov	rdi, rbp
	call	notes_merge_commit@PLT
	test	rax, rax
	jne	.L22
.L8:
	lea	rcx, 36[rsp]
	xor	esi, esi
	mov	edx, 4
	mov	rdi, rcx
	lea	r12, 24[rsp]
	mov	QWORD PTR 8[rsp], rcx
	call	memset@PLT
	mov	rcx, QWORD PTR 8[rsp]
	mov	rdx, r12
	mov	rdi, r15
	lea	rsi, .LC7[rip]
	call	format_commit_message@PLT
	mov	rdi, r12
	call	strbuf_trim@PLT
	xor	esi, esi
	mov	ecx, 7
	mov	rdi, r12
	lea	rdx, .LC8[rip]
	call	strbuf_insert@PLT
	mov	rdi, rbx
	mov	r15d, DWORD PTR UPDATE_REFS_DIE_ON_ERR[rip]
	call	is_null_oid@PLT
	mov	rsi, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR 24[rsp]
	mov	rdx, r14
	test	rax, rax
	mov	ecx, 0
	mov	r9d, r15d
	cmove	rcx, rbx
	xor	r8d, r8d
	call	update_ref@PLT
	mov	rdi, r13
	call	free_notes@PLT
	mov	rdi, r12
	call	strbuf_release@PLT
	mov	rdi, rbp
	call	merge_abort@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	r13d, eax
	call	free@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	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
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR the_repository[rip]
	mov	rsi, r14
	call	lookup_commit_reference@PLT
	mov	r15, rax
	test	rax, rax
	je	.L18
	mov	rdi, rax
	call	parse_commit@PLT
	test	rax, rax
	je	.L3
	lea	rdi, .LC3[rip]
	lea	rbx, 32[rsp]
	call	_@PLT
	mov	edi, eax
	call	die@PLT
	mov	rax, QWORD PTR [r15]
	test	rax, rax
	jne	.L24
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbx
	call	oidclr@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L22:
	lea	rdi, .LC6[rip]
	call	_@PLT
	mov	edi, eax
	call	die@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L21:
	lea	rdi, .LC5[rip]
	call	_@PLT
	mov	edi, eax
	call	die@PLT
	jmp	.L7
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	merge_commit.cold, @function
merge_commit.cold:
.LFSB0:
.L18:
	.cfi_def_cfa_offset 112
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	lea	rdi, .LC2[rip]
	call	_@PLT
	mov	edi, eax
	call	die@PLT
	mov	rax, QWORD PTR ds:0
	ud2
	.cfi_endproc
.LFE0:
	.text
	.size	merge_commit, .-merge_commit
	.section	.text.unlikely
	.size	merge_commit.cold, .-merge_commit.cold
.LCOLDE9:
	.text
.LHOTE9:
	.comm	the_repository,4,4
	.comm	combine_notes_overwrite,4,4
	.comm	UPDATE_REFS_DIE_ON_ERR,4,4
	.comm	STRBUF_INIT,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_notes.c_merge_commit.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"NOTES_MERGE_PARTIAL\000"
	.align	2
.LC1:
	.ascii	"failed to read ref NOTES_MERGE_PARTIAL\000"
	.align	2
.LC2:
	.ascii	"could not find commit from NOTES_MERGE_PARTIAL.\000"
	.align	2
.LC3:
	.ascii	"could not parse commit from NOTES_MERGE_PARTIAL.\000"
	.align	2
.LC4:
	.ascii	"NOTES_MERGE_REF\000"
	.align	2
.LC5:
	.ascii	"failed to resolve NOTES_MERGE_REF\000"
	.align	2
.LC6:
	.ascii	"failed to finalize notes merge\000"
	.align	2
.LC7:
	.ascii	"%s\000"
	.align	2
.LC8:
	.ascii	"notes: \000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	merge_commit, %function
merge_commit:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L25
	sub	sp, sp, #32
	ldr	r3, [r3]
	ldr	r2, .L25+4
	mov	r4, r0
	add	r1, sp, #16
	ldr	r0, .L25+8
	ldr	r2, [r2]
	str	r2, [sp, #28]
	mov	r2,#0
	str	r3, [sp, #12]
	bl	get_oid
	cmp	r0, #0
	beq	.L2
	ldr	r0, .L25+12
	bl	_
	bl	die
.L3:
	ldr	r3, [r7]
	add	r8, sp, #20
	cmp	r3, #0
	beq	.L5
.L24:
	mov	r0, r8
	ldr	r1, [r3]
	bl	oidcpy
.L6:
	mov	r1, #4
	mov	r0, #1
	bl	xcalloc
	ldr	r2, .L25+16
	mov	r3, #0
	ldr	r2, [r2]
	ldr	r1, .L25+8
	mov	r6, r0
	bl	init_notes
	mov	r3, #0
	ldr	r0, .L25+20
	mov	r1, r3
	add	r2, sp, #16
	bl	resolve_refdup
	cmp	r0, #0
	mov	r5, r0
	str	r0, [r4]
	beq	.L20
.L7:
	mov	r2, r7
	mov	r1, r6
	mov	r0, r4
	add	r3, sp, #16
	bl	notes_merge_commit
	cmp	r0, #0
	bne	.L21
.L8:
	mov	r9, #0
	ldr	r1, .L25+24
	add	r2, sp, #12
	add	r3, sp, #24
	mov	r0, r7
	str	r9, [sp, #24]
	bl	format_commit_message
	add	r0, sp, #12
	bl	strbuf_trim
	mov	r1, r9
	mov	r3, #7
	ldr	r2, .L25+28
	add	r0, sp, #12
	bl	strbuf_insert
	mov	r0, r8
	ldr	r10, [r4]
	ldr	r7, [sp, #12]
	bl	is_null_oid
	ldr	r3, .L25+32
	cmp	r0, r9
	ldr	ip, [r3]
	add	r2, sp, #16
	moveq	r3, r8
	movne	r3, r9
	mov	r1, r10
	str	ip, [sp, #4]
	mov	r0, r7
	str	r9, [sp]
	bl	update_ref
	mov	r0, r6
	bl	free_notes
	add	r0, sp, #12
	bl	strbuf_release
	mov	r0, r4
	bl	merge_abort
	mov	r4, r0
	mov	r0, r5
	bl	free
	ldr	r3, .L25+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	mov	r0, r4
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r3, .L25+36
	add	r1, sp, #16
	ldr	r0, [r3]
	bl	lookup_commit_reference
	subs	r7, r0, #0
	beq	.L23
	bl	parse_commit
	cmp	r0, #0
	beq	.L3
	ldr	r0, .L25+40
	bl	_
	bl	die
	ldr	r3, [r7]
	add	r8, sp, #20
	cmp	r3, #0
	bne	.L24
.L5:
	mov	r0, r8
	bl	oidclr
	b	.L6
.L21:
	ldr	r0, .L25+44
	bl	_
	bl	die
	b	.L8
.L20:
	ldr	r0, .L25+48
	bl	_
	bl	die
	b	.L7
.L22:
	bl	__stack_chk_fail
.L23:
	ldr	r0, .L25+52
	bl	_
	bl	die
	ldr	r3, [r7]
	.inst	0xe7f000f0
.L26:
	.align	2
.L25:
	.word	STRBUF_INIT
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	combine_notes_overwrite
	.word	.LC4
	.word	.LC7
	.word	.LC8
	.word	UPDATE_REFS_DIE_ON_ERR
	.word	the_repository
	.word	.LC3
	.word	.LC6
	.word	.LC5
	.word	.LC2
	.size	merge_commit, .-merge_commit
	.comm	the_repository,4,4
	.comm	combine_notes_overwrite,4,4
	.comm	UPDATE_REFS_DIE_ON_ERR,4,4
	.comm	STRBUF_INIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
