	.file	"extr_cherrypick.c_write_merge_msg.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
	.text
	.p2align 4
	.type	write_merge_msg, @function
write_merge_msg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR [rdi]
	mov	edx, DWORD PTR GIT_MERGE_MSG_FILE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR GIT_FILEBUF_INIT[rip]
	lea	rbp, 4[rsp]
	mov	r14, rsp
	mov	rdi, rbp
	mov	DWORD PTR [rsp], eax
	mov	eax, DWORD PTR GIT_BUF_INIT[rip]
	mov	DWORD PTR 4[rsp], eax
	call	git_buf_joinpath@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L2
	mov	ecx, DWORD PTR GIT_CHERRYPICK_FILE_MODE[rip]
	mov	edx, DWORD PTR GIT_FILEBUF_CREATE_LEADING_DIRS[rip]
	mov	r14, rsp
	mov	esi, DWORD PTR 4[rsp]
	mov	rdi, r14
	call	git_filebuf_open@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L2
	mov	rdx, r13
	lea	rsi, .LC0[rip]
	mov	rdi, r14
	call	git_filebuf_printf@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L2
	mov	rdi, r14
	call	git_filebuf_commit@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, r14
	call	git_filebuf_cleanup@PLT
.L3:
	mov	rdi, rbp
	call	git_buf_dispose@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L9:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	write_merge_msg, .-write_merge_msg
	.comm	GIT_MERGE_MSG_FILE,4,4
	.comm	GIT_FILEBUF_INIT,4,4
	.comm	GIT_FILEBUF_CREATE_LEADING_DIRS,4,4
	.comm	GIT_CHERRYPICK_FILE_MODE,4,4
	.comm	GIT_BUF_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_cherrypick.c_write_merge_msg.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_merge_msg, %function
write_merge_msg:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r1
	ldr	r1, .L10
	ldr	r3, .L10+4
	ldr	ip, [r1]
	ldr	r2, .L10+8
	ldr	r1, [r0]
	ldr	r0, .L10+12
	sub	sp, sp, #16
	ldr	r3, [r3]
	ldr	r0, [r0]
	str	r0, [sp, #12]
	mov	r0,#0
	ldr	r2, [r2]
	add	r0, sp, #8
	str	ip, [sp, #4]
	str	r3, [sp, #8]
	bl	git_buf_joinpath
	subs	r4, r0, #0
	addlt	r5, sp, #4
	blt	.L2
	ldr	r3, .L10+16
	ldr	r2, .L10+20
	add	r5, sp, #4
	mov	r0, r5
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [sp, #8]
	bl	git_filebuf_open
	subs	r4, r0, #0
	blt	.L2
	mov	r2, r6
	mov	r0, r5
	ldr	r1, .L10+24
	bl	git_filebuf_printf
	subs	r4, r0, #0
	blt	.L2
	mov	r0, r5
	bl	git_filebuf_commit
	subs	r4, r0, #0
	bge	.L3
.L2:
	mov	r0, r5
	bl	git_filebuf_cleanup
.L3:
	add	r0, sp, #8
	bl	git_buf_dispose
	ldr	r3, .L10+12
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	GIT_FILEBUF_INIT
	.word	GIT_BUF_INIT
	.word	GIT_MERGE_MSG_FILE
	.word	.LC1
	.word	GIT_CHERRYPICK_FILE_MODE
	.word	GIT_FILEBUF_CREATE_LEADING_DIRS
	.word	.LC0
	.size	write_merge_msg, .-write_merge_msg
	.comm	GIT_MERGE_MSG_FILE,4,4
	.comm	GIT_FILEBUF_INIT,4,4
	.comm	GIT_FILEBUF_CREATE_LEADING_DIRS,4,4
	.comm	GIT_CHERRYPICK_FILE_MODE,4,4
	.comm	GIT_BUF_INIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
