	.file	"extr_binary.c_test_patch.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	test_patch
	.type	test_patch, @function
test_patch:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	mov	rsi, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 88
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	lea	r13, 4[rsp]
	mov	eax, DWORD PTR GIT_BUF_INIT[rip]
	mov	QWORD PTR 16[rsp], 0
	mov	QWORD PTR 32[rsp], 0
	mov	rdi, r13
	mov	DWORD PTR 12[rsp], eax
	call	git_oid_fromstr@PLT
	mov	edi, eax
	call	cl_git_pass@PLT
	mov	esi, DWORD PTR repo[rip]
	mov	rdx, r13
	lea	rdi, 24[rsp]
	call	git_commit_lookup@PLT
	mov	edi, eax
	call	cl_git_pass@PLT
	mov	rsi, QWORD PTR 24[rsp]
	lea	rdi, 40[rsp]
	call	git_commit_tree@PLT
	mov	edi, eax
	call	cl_git_pass@PLT
	test	rbp, rbp
	je	.L2
	lea	r13, 8[rsp]
	mov	rsi, rbp
	mov	rdi, r13
	call	git_oid_fromstr@PLT
	mov	edi, eax
	call	cl_git_pass@PLT
	mov	esi, DWORD PTR repo[rip]
	mov	rdx, r13
	lea	rdi, 32[rsp]
	call	git_commit_lookup@PLT
	mov	edi, eax
	call	cl_git_pass@PLT
	mov	rsi, QWORD PTR 32[rsp]
	lea	rdi, 48[rsp]
	call	git_commit_tree@PLT
	mov	edi, eax
	call	cl_git_pass@PLT
.L3:
	mov	rcx, QWORD PTR 48[rsp]
	mov	rdx, QWORD PTR 40[rsp]
	mov	r8, rbx
	lea	rdi, 56[rsp]
	mov	esi, DWORD PTR repo[rip]
	lea	rbp, 12[rsp]
	call	git_diff_tree_to_tree@PLT
	mov	edi, eax
	call	cl_git_pass@PLT
	mov	rsi, QWORD PTR 56[rsp]
	xor	edx, edx
	lea	rdi, 64[rsp]
	call	git_patch_from_diff@PLT
	mov	edi, eax
	call	cl_git_pass@PLT
	mov	rsi, QWORD PTR 64[rsp]
	mov	rdi, rbp
	call	git_patch_to_buf@PLT
	mov	edi, eax
	call	cl_git_pass@PLT
	mov	esi, DWORD PTR 12[rsp]
	mov	rdi, r12
	call	cl_assert_equal_s@PLT
	mov	rdi, rbp
	call	git_buf_clear@PLT
	mov	edx, DWORD PTR git_diff_print_callback__to_buf[rip]
	mov	rdi, QWORD PTR 56[rsp]
	mov	rcx, rbp
	mov	esi, DWORD PTR GIT_DIFF_FORMAT_PATCH[rip]
	call	git_diff_print@PLT
	mov	edi, eax
	call	cl_git_pass@PLT
	mov	esi, DWORD PTR 12[rsp]
	mov	rdi, r12
	call	cl_assert_equal_s@PLT
	mov	rdi, rbp
	call	git_buf_dispose@PLT
	mov	rdi, QWORD PTR 64[rsp]
	call	git_patch_free@PLT
	mov	rdi, QWORD PTR 56[rsp]
	call	git_diff_free@PLT
	mov	rdi, QWORD PTR 40[rsp]
	call	git_tree_free@PLT
	mov	rdi, QWORD PTR 48[rsp]
	call	git_tree_free@PLT
	mov	rdi, QWORD PTR 24[rsp]
	call	git_commit_free@PLT
	mov	rdi, QWORD PTR 32[rsp]
	call	git_commit_free@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	git_index_free@PLT
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR repo[rip]
	lea	rdi, 16[rsp]
	lea	r13, 8[rsp]
	call	git_repository_index@PLT
	mov	edi, eax
	call	cl_git_pass@PLT
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdi, r13
	call	git_index_write_tree@PLT
	mov	edi, eax
	call	cl_git_pass@PLT
	mov	esi, DWORD PTR repo[rip]
	lea	rdi, 48[rsp]
	mov	rdx, r13
	call	git_tree_lookup@PLT
	mov	edi, eax
	call	cl_git_pass@PLT
	jmp	.L3
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_patch, .-test_patch
	.comm	repo,4,4
	.comm	git_diff_print_callback__to_buf,4,4
	.comm	GIT_DIFF_FORMAT_PATCH,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_binary.c_test_patch.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test_patch
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_patch, %function
test_patch:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, lr}
	mov	r5, r1
	ldr	r1, .L8
	sub	sp, sp, #60
	ldr	lr, [r1]
	mov	r4, r3
	ldr	r3, .L8+4
	mov	r1, r0
	ldr	r6, .L8+8
	add	r0, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	mov	r7, r2
	str	lr, [sp, #48]
	str	ip, [sp, #20]
	str	ip, [sp, #28]
	bl	git_oid_fromstr
	bl	cl_git_pass
	add	r2, sp, #12
	ldr	r1, [r6]
	add	r0, sp, #24
	bl	git_commit_lookup
	bl	cl_git_pass
	ldr	r1, [sp, #24]
	add	r0, sp, #32
	bl	git_commit_tree
	bl	cl_git_pass
	cmp	r5, #0
	beq	.L2
	mov	r1, r5
	add	r0, sp, #16
	bl	git_oid_fromstr
	bl	cl_git_pass
	ldr	r1, [r6]
	add	r2, sp, #16
	add	r0, sp, #28
	bl	git_commit_lookup
	bl	cl_git_pass
	ldr	r1, [sp, #28]
	add	r0, sp, #36
	bl	git_commit_tree
	bl	cl_git_pass
.L3:
	ldr	r3, [sp, #36]
	ldr	r1, [r6]
	ldr	r2, [sp, #32]
	str	r7, [sp]
	add	r0, sp, #40
	bl	git_diff_tree_to_tree
	bl	cl_git_pass
	mov	r2, #0
	ldr	r1, [sp, #40]
	add	r0, sp, #44
	bl	git_patch_from_diff
	bl	cl_git_pass
	ldr	r1, [sp, #44]
	add	r0, sp, #48
	bl	git_patch_to_buf
	bl	cl_git_pass
	ldr	r1, [sp, #48]
	mov	r0, r4
	bl	cl_assert_equal_s
	add	r0, sp, #48
	bl	git_buf_clear
	ldr	r2, .L8+12
	ldr	r1, .L8+16
	ldr	r2, [r2]
	add	r3, sp, #48
	ldr	r1, [r1]
	ldr	r0, [sp, #40]
	bl	git_diff_print
	bl	cl_git_pass
	ldr	r1, [sp, #48]
	mov	r0, r4
	bl	cl_assert_equal_s
	add	r0, sp, #48
	bl	git_buf_dispose
	ldr	r0, [sp, #44]
	bl	git_patch_free
	ldr	r0, [sp, #40]
	bl	git_diff_free
	ldr	r0, [sp, #32]
	bl	git_tree_free
	ldr	r0, [sp, #36]
	bl	git_tree_free
	ldr	r0, [sp, #24]
	bl	git_commit_free
	ldr	r0, [sp, #28]
	bl	git_commit_free
	ldr	r0, [sp, #20]
	bl	git_index_free
	ldr	r3, .L8+4
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	ldr	r1, [r6]
	add	r0, sp, #20
	bl	git_repository_index
	bl	cl_git_pass
	ldr	r1, [sp, #20]
	add	r0, sp, #16
	bl	git_index_write_tree
	bl	cl_git_pass
	ldr	r1, [r6]
	add	r2, sp, #16
	add	r0, sp, #36
	bl	git_tree_lookup
	bl	cl_git_pass
	b	.L3
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	GIT_BUF_INIT
	.word	.LC0
	.word	repo
	.word	git_diff_print_callback__to_buf
	.word	GIT_DIFF_FORMAT_PATCH
	.size	test_patch, .-test_patch
	.comm	repo,4,4
	.comm	git_diff_print_callback__to_buf,4,4
	.comm	GIT_DIFF_FORMAT_PATCH,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
