	.file	"extr_notes-merge.c_notes_merge_commit.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\n\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Committing notes in notes merge worktree at %s\n"
	.align 8
.LC2:
	.string	"partial notes commit has empty message"
	.section	.rodata.str1.1
.LC3:
	.string	"could not open %s"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"Skipping non-SHA1 entry '%s%s'\n"
	.section	.rodata.str1.1
.LC5:
	.string	"Failed to stat '%s'"
	.section	.rodata.str1.8
	.align 8
.LC6:
	.string	"Failed to write blob object from '%s'"
	.align 8
.LC7:
	.string	"Failed to add resolved note '%s' to notes tree"
	.align 8
.LC8:
	.string	"Added resolved note for object %s: %s\n"
	.align 8
.LC9:
	.string	"Finalized notes merge commit: %s\n"
	.text
	.p2align 4
	.globl	notes_merge_commit
	.type	notes_merge_commit, @function
notes_merge_commit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	xor	esi, esi
	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
	mov	rbx, rdi
	mov	rdi, rdx
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	movdqu	xmm0, XMMWORD PTR STRBUF_INIT[rip]
	mov	QWORD PTR 40[rsp], rdx
	lea	r12, 64[rsp]
	mov	QWORD PTR 16[rsp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	movaps	XMMWORD PTR 64[rsp], xmm0
	call	get_commit_buffer@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	QWORD PTR 24[rsp], rax
	call	strstr@PLT
	mov	esi, DWORD PTR NOTES_MERGE_WORKTREE[rip]
	mov	rdi, r12
	mov	rbp, rax
	call	git_path_buf@PLT
	cmp	DWORD PTR [rbx], 2
	jg	.L32
.L2:
	test	rbp, rbp
	je	.L3
	cmp	BYTE PTR 2[rbp], 0
	je	.L3
.L4:
	mov	rdi, QWORD PTR 64[rsp]
	lea	rax, 2[rbp]
	mov	QWORD PTR 32[rsp], rax
	call	opendir@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L33
.L5:
	mov	esi, 47
	mov	rdi, r12
	lea	r13, 56[rsp]
	call	strbuf_addch@PLT
	mov	eax, DWORD PTR 72[rsp]
	mov	DWORD PTR 12[rsp], eax
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, rbp
	call	readdir@PLT
	mov	r14, rax
	test	rax, rax
	je	.L34
.L15:
	mov	edi, DWORD PTR [r14]
	call	is_dot_or_dotdot@PLT
	test	rax, rax
	jne	.L6
	mov	edi, DWORD PTR [r14]
	mov	rsi, r13
	call	get_oid_hex@PLT
	test	rax, rax
	je	.L8
	cmp	DWORD PTR [rbx], 2
	jle	.L6
	mov	edx, DWORD PTR [r14]
	mov	rsi, QWORD PTR 64[rsp]
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	printf@PLT
	mov	rdi, rbp
	call	readdir@PLT
	mov	r14, rax
	test	rax, rax
	jne	.L15
	.p2align 4,,10
	.p2align 3
.L34:
	mov	r14, QWORD PTR 32[rsp]
	mov	rdi, r14
	call	strlen@PLT
	mov	rcx, r14
	mov	r14, QWORD PTR 40[rsp]
	mov	rsi, r15
	mov	rdi, QWORD PTR 8[rbx]
	mov	r9, QWORD PTR 16[rsp]
	mov	r8d, eax
	mov	edx, DWORD PTR [r14]
	call	create_notes_commit@PLT
	mov	rsi, QWORD PTR 24[rsp]
	mov	rdi, r14
	call	unuse_commit_buffer@PLT
	cmp	DWORD PTR [rbx], 3
	jg	.L35
.L16:
	mov	rdi, r12
	call	strbuf_release@PLT
	mov	rdi, rbp
	call	closedir@PLT
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L36
	add	rsp, 104
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L3:
	.cfi_restore_state
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	die@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, DWORD PTR [r14]
	mov	rdi, r12
	call	strbuf_addstr@PLT
	lea	rcx, 52[rsp]
	mov	rdi, QWORD PTR 64[rsp]
	mov	rsi, rcx
	mov	QWORD PTR [rsp], rcx
	call	stat@PLT
	mov	rcx, QWORD PTR [rsp]
	test	rax, rax
	jne	.L37
.L10:
	mov	rax, QWORD PTR 8[rbx]
	lea	r14, 60[rsp]
	mov	rdx, QWORD PTR 64[rsp]
	mov	r8d, DWORD PTR HASH_WRITE_OBJECT[rip]
	mov	rsi, r14
	mov	edi, DWORD PTR [rax]
	call	index_path@PLT
	test	rax, rax
	jne	.L38
.L11:
	xor	ecx, ecx
	mov	rdx, r14
	mov	rsi, r13
	mov	rdi, r15
	call	add_note@PLT
	test	rax, rax
	jne	.L39
.L12:
	cmp	DWORD PTR [rbx], 3
	jg	.L40
.L13:
	mov	esi, DWORD PTR 12[rsp]
	mov	rdi, r12
	call	strbuf_setlen@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L40:
	mov	rdi, r14
	call	oid_to_hex@PLT
	mov	rdi, r13
	mov	r14, rax
	call	oid_to_hex@PLT
	mov	rdx, r14
	lea	rdi, .LC8[rip]
	mov	rsi, rax
	xor	eax, eax
	call	printf@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L39:
	mov	rsi, QWORD PTR 64[rsp]
	lea	rdi, .LC7[rip]
	xor	eax, eax
	call	die@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L38:
	mov	rsi, QWORD PTR 64[rsp]
	lea	rdi, .LC6[rip]
	xor	eax, eax
	call	die@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L37:
	mov	rsi, QWORD PTR 64[rsp]
	lea	rdi, .LC5[rip]
	call	die_errno@PLT
	mov	rcx, QWORD PTR [rsp]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rsi, QWORD PTR 64[rsp]
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	printf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L35:
	mov	rdi, QWORD PTR 16[rsp]
	call	oid_to_hex@PLT
	lea	rdi, .LC9[rip]
	mov	rsi, rax
	xor	eax, eax
	call	printf@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L33:
	mov	rsi, QWORD PTR 64[rsp]
	lea	rdi, .LC3[rip]
	call	die_errno@PLT
	jmp	.L5
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	notes_merge_commit, .-notes_merge_commit
	.comm	STRBUF_INIT,16,16
	.comm	NOTES_MERGE_WORKTREE,4,4
	.comm	HASH_WRITE_OBJECT,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-merge.c_notes_merge_commit.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\012\012\000"
	.align	2
.LC1:
	.ascii	"Committing notes in notes merge worktree at %s\012\000"
	.align	2
.LC2:
	.ascii	"partial notes commit has empty message\000"
	.align	2
.LC3:
	.ascii	"could not open %s\000"
	.align	2
.LC4:
	.ascii	"Skipping non-SHA1 entry '%s%s'\012\000"
	.align	2
.LC5:
	.ascii	"Failed to stat '%s'\000"
	.align	2
.LC6:
	.ascii	"Failed to write blob object from '%s'\000"
	.align	2
.LC7:
	.ascii	"Failed to add resolved note '%s' to notes tree\000"
	.align	2
.LC8:
	.ascii	"Added resolved note for object %s: %s\012\000"
	.align	2
.LC9:
	.ascii	"Finalized notes merge commit: %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	notes_merge_commit
	.syntax unified
	.arm
	.fpu softvfp
	.type	notes_merge_commit, %function
notes_merge_commit:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r9, r2
	sub	sp, sp, #52
	ldr	r2, .L41
	add	r7, sp, #36
	mov	r6, r0
	mov	r8, r1
	ldm	r2, {r0, r1}
	stm	r7, {r0, r1}
	str	r3, [sp, #12]
	ldr	r3, .L41+4
	mov	r1, #0
	mov	r0, r9
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	bl	get_commit_buffer
	ldr	r1, .L41+8
	str	r0, [sp, #16]
	bl	strstr
	ldr	r3, .L41+12
	mov	r4, r0
	ldr	r1, [r3]
	mov	r0, r7
	bl	git_path_buf
	ldr	r3, [r6]
	cmp	r3, #2
	bgt	.L32
.L2:
	cmp	r4, #0
	beq	.L3
	ldrb	r3, [r4, #2]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L3
.L4:
	ldr	r0, [sp, #36]
	bl	opendir
	add	r3, r4, #2
	subs	r5, r0, #0
	str	r3, [sp, #20]
	beq	.L33
.L5:
	mov	r1, #47
	mov	r0, r7
	bl	strbuf_addch
	ldr	fp, .L41+16
	ldr	r10, [sp, #40]
.L6:
	mov	r0, r5
	bl	readdir
	subs	r4, r0, #0
	beq	.L34
.L15:
	ldr	r0, [r4]
	bl	is_dot_or_dotdot
	cmp	r0, #0
	bne	.L6
	ldr	r0, [r4]
	add	r1, sp, #28
	bl	get_oid_hex
	cmp	r0, #0
	beq	.L8
	ldr	r3, [r6]
	cmp	r3, #2
	ble	.L6
	ldr	r2, [r4]
	ldr	r1, [sp, #36]
	ldr	r0, .L41+20
	bl	printf
	mov	r0, r5
	bl	readdir
	subs	r4, r0, #0
	bne	.L15
.L34:
	ldr	r4, [sp, #20]
	mov	r0, r4
	bl	strlen
	ldr	r3, [sp, #12]
	mov	r1, r8
	stm	sp, {r0, r3}
	mov	r3, r4
	ldr	r2, [r9]
	ldr	r0, [r6, #4]
	bl	create_notes_commit
	mov	r0, r9
	ldr	r1, [sp, #16]
	bl	unuse_commit_buffer
	ldr	r3, [r6]
	cmp	r3, #3
	bgt	.L35
.L16:
	mov	r0, r7
	bl	strbuf_release
	mov	r0, r5
	bl	closedir
	ldr	r3, .L41+4
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L36
	mov	r0, #0
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	ldr	r0, .L41+24
	bl	die
	b	.L4
.L8:
	ldr	r1, [r4]
	mov	r0, r7
	bl	strbuf_addstr
	ldr	r0, [sp, #36]
	add	r1, sp, #24
	bl	stat
	cmp	r0, #0
	bne	.L37
.L10:
	ldr	r3, [r6, #4]
	ldr	r2, [fp]
	ldr	r0, [r3]
	add	r1, sp, #32
	str	r2, [sp]
	add	r3, sp, #24
	ldr	r2, [sp, #36]
	bl	index_path
	cmp	r0, #0
	bne	.L38
.L11:
	mov	r3, #0
	mov	r0, r8
	add	r2, sp, #32
	add	r1, sp, #28
	bl	add_note
	cmp	r0, #0
	bne	.L39
.L12:
	ldr	r3, [r6]
	cmp	r3, #3
	bgt	.L40
.L13:
	mov	r1, r10
	mov	r0, r7
	bl	strbuf_setlen
	b	.L6
.L40:
	add	r0, sp, #28
	bl	oid_to_hex
	mov	r4, r0
	add	r0, sp, #32
	bl	oid_to_hex
	mov	r1, r4
	mov	r2, r0
	ldr	r0, .L41+28
	bl	printf
	b	.L13
.L39:
	ldr	r1, [sp, #36]
	ldr	r0, .L41+32
	bl	die
	b	.L12
.L38:
	ldr	r1, [sp, #36]
	ldr	r0, .L41+36
	bl	die
	b	.L11
.L37:
	ldr	r1, [sp, #36]
	ldr	r0, .L41+40
	bl	die_errno
	b	.L10
.L32:
	ldr	r1, [sp, #36]
	ldr	r0, .L41+44
	bl	printf
	b	.L2
.L35:
	ldr	r0, [sp, #12]
	bl	oid_to_hex
	mov	r1, r0
	ldr	r0, .L41+48
	bl	printf
	b	.L16
.L33:
	ldr	r1, [sp, #36]
	ldr	r0, .L41+52
	bl	die_errno
	b	.L5
.L36:
	bl	__stack_chk_fail
.L42:
	.align	2
.L41:
	.word	STRBUF_INIT
	.word	.LC10
	.word	.LC0
	.word	NOTES_MERGE_WORKTREE
	.word	HASH_WRITE_OBJECT
	.word	.LC4
	.word	.LC2
	.word	.LC8
	.word	.LC7
	.word	.LC6
	.word	.LC5
	.word	.LC1
	.word	.LC9
	.word	.LC3
	.size	notes_merge_commit, .-notes_merge_commit
	.comm	STRBUF_INIT,8,4
	.comm	NOTES_MERGE_WORKTREE,4,4
	.comm	HASH_WRITE_OBJECT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
