	.file	"extr_apply.c_git_apply__patch.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"removal patch leaves file contents"
	.text
	.p2align 4
	.globl	git_apply__patch
	.type	git_apply__patch, @function
git_apply__patch:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, r8
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r9
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR GIT_APPLY_OPTIONS_INIT[rip]
	test	rdi, rdi
	mov	rsi, QWORD PTR 96[rsp]
	setne	dl
	test	rbp, rbp
	mov	DWORD PTR 20[rsp], 0
	mov	DWORD PTR 16[rsp], eax
	setne	al
	test	dl, al
	je	.L13
	test	r12, r12
	je	.L13
	test	rcx, rcx
	setne	dil
	test	r8, r8
	sete	al
	or	eax, edi
	xor	edi, edi
	test	r9, r9
	setne	dil
	and	edi, eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L13:
	xor	edi, edi
.L2:
	mov	QWORD PTR [rsp], rsi
	call	assert@PLT
	mov	rsi, QWORD PTR [rsp]
	test	rsi, rsi
	je	.L3
	lea	rdi, 16[rsp]
	mov	edx, 4
	call	memcpy@PLT
.L3:
	mov	rdx, QWORD PTR [rbx]
	mov	QWORD PTR 0[rbp], 0
	mov	rax, QWORD PTR GIT_DELTA_DELETED[rip]
	mov	DWORD PTR [r12], 0
	cmp	QWORD PTR [rdx], rax
	jne	.L27
	mov	DWORD PTR 8[rsp], 0
	mov	eax, DWORD PTR 8[rdx]
	mov	QWORD PTR [rsp], 0
	test	DWORD PTR GIT_DIFF_FLAG_BINARY[rip], eax
	jne	.L28
.L6:
	cmp	QWORD PTR 8[rbx], 0
	jne	.L29
	mov	rsi, r14
	mov	rdx, r15
	mov	rdi, r13
	call	git_buf_put@PLT
	mov	r14d, eax
.L7:
	test	r14d, r14d
	jne	.L9
.L32:
	mov	rax, QWORD PTR [rbx]
	mov	rcx, QWORD PTR GIT_DELTA_DELETED[rip]
	cmp	QWORD PTR [rax], rcx
	je	.L30
.L10:
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR 0[rbp], rax
	mov	eax, DWORD PTR 8[rsp]
	mov	DWORD PTR [r12], eax
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L31
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L29:
	.cfi_restore_state
	mov	rsi, r14
	lea	r8, 16[rsp]
	mov	rcx, rbx
	mov	rdx, r15
	mov	rdi, r13
	call	apply_hunks@PLT
	mov	r14d, eax
	test	r14d, r14d
	je	.L32
.L9:
	test	r14d, r14d
	jns	.L1
	mov	rdi, QWORD PTR [rsp]
	call	git__free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L27:
	mov	edi, DWORD PTR 16[rdx]
	mov	QWORD PTR 8[rsp], rdx
	call	git__strdup@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	QWORD PTR [rsp], rax
	mov	eax, DWORD PTR 12[rdx]
	test	eax, eax
	jne	.L25
	mov	eax, DWORD PTR GIT_FILEMODE_BLOB[rip]
.L25:
	mov	rdx, QWORD PTR [rbx]
	mov	DWORD PTR 8[rsp], eax
	mov	eax, DWORD PTR 8[rdx]
	test	DWORD PTR GIT_DIFF_FLAG_BINARY[rip], eax
	je	.L6
.L28:
	mov	rsi, r14
	mov	rcx, rbx
	mov	rdx, r15
	mov	rdi, r13
	call	apply_binary@PLT
	mov	r14d, eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rdi, r13
	call	git_buf_len@PLT
	test	rax, rax
	jle	.L10
	lea	rdi, .LC0[rip]
	call	apply_err@PLT
	mov	r14d, eax
	jmp	.L9
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	git_apply__patch, .-git_apply__patch
	.comm	GIT_FILEMODE_BLOB,4,4
	.comm	GIT_DIFF_FLAG_BINARY,4,4
	.comm	GIT_DELTA_DELETED,8,8
	.comm	GIT_APPLY_OPTIONS_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_apply.c_git_apply__patch.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"removal patch leaves file contents\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	git_apply__patch
	.syntax unified
	.arm
	.fpu softvfp
	.type	git_apply__patch, %function
git_apply__patch:
	@ args = 12, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	subs	ip, r1, #0
	movne	ip, #1
	cmp	r0, #0
	moveq	ip, #0
	cmp	r2, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	moveq	ip, #0
	mov	lr, #0
	ldr	r4, .L25
	mov	r8, r3
	ldr	r4, [r4]
	ldr	r3, .L25+4
	sub	sp, sp, #36
	cmp	ip, lr
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r7, r0
	str	r4, [sp, #20]
	mov	r6, r1
	mov	r5, r2
	moveq	r0, ip
	ldr	fp, [sp, #76]
	ldr	r4, [sp, #80]
	str	lr, [sp, #24]
	beq	.L2
	ldr	r3, [sp, #72]
	cmp	r8, lr
	clz	r0, r3
	lsr	r0, r0, #5
	movne	r0, #1
	cmp	fp, lr
	moveq	r0, lr
.L2:
	bl	assert
	cmp	r4, #0
	beq	.L3
	mov	r1, r4
	mov	r2, #4
	add	r0, sp, #20
	bl	memcpy
.L3:
	mov	r4, #0
	ldr	r2, [fp]
	ldr	r10, .L25+8
	ldr	r0, [r2]
	ldr	r1, [r10]
	str	r4, [r6]
	cmp	r0, r1
	moveq	r9, r4
	str	r4, [r5]
	beq	.L4
	ldr	r0, [r2, #12]
	str	r2, [sp, #12]
	bl	git__strdup
	mov	r9, r0
	ldr	r2, [sp, #12]
	ldr	r4, [r2, #8]
	cmp	r4, #0
	ldreq	r1, .L25+12
	ldrne	r2, [fp]
	ldreq	r2, [fp]
	ldreq	r4, [r1]
.L4:
	ldr	r0, .L25+16
	ldr	r1, [r2, #4]
	ldr	r2, [r0]
	tst	r1, r2
	bne	.L20
	ldr	r2, [fp, #4]
	cmp	r2, #0
	bne	.L21
	mov	r1, r8
	mov	r0, r7
	ldr	r2, [sp, #72]
	bl	git_buf_put
	mov	r8, r0
.L7:
	cmp	r8, #0
	bne	.L9
.L24:
	ldr	r2, [fp]
	ldr	r3, [r10]
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L22
.L10:
	str	r9, [r6]
	str	r4, [r5]
.L1:
	ldr	r3, .L25+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	mov	r0, r8
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	add	r0, sp, #20
	mov	r1, r8
	str	r0, [sp]
	mov	r3, fp
	mov	r0, r7
	ldr	r2, [sp, #72]
	bl	apply_hunks
	mov	r8, r0
	cmp	r8, #0
	beq	.L24
.L9:
	cmp	r8, #0
	bge	.L1
	mov	r0, r9
	bl	git__free
	b	.L1
.L20:
	mov	r1, r8
	mov	r3, fp
	mov	r0, r7
	ldr	r2, [sp, #72]
	bl	apply_binary
	mov	r8, r0
	b	.L7
.L22:
	mov	r0, r7
	bl	git_buf_len
	cmp	r0, #0
	ble	.L10
	ldr	r0, .L25+20
	bl	apply_err
	mov	r8, r0
	b	.L9
.L23:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	GIT_APPLY_OPTIONS_INIT
	.word	.LC1
	.word	GIT_DELTA_DELETED
	.word	GIT_FILEMODE_BLOB
	.word	GIT_DIFF_FLAG_BINARY
	.word	.LC0
	.size	git_apply__patch, .-git_apply__patch
	.comm	GIT_FILEMODE_BLOB,4,4
	.comm	GIT_DIFF_FLAG_BINARY,4,4
	.comm	GIT_DELTA_DELETED,4,4
	.comm	GIT_APPLY_OPTIONS_INIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
