	.file	"extr_checkout.c_blob_content_to_file.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"could not open '%s' for writing"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"failed to stat '%s'"
	.text
	.p2align 4
	.type	blob_content_to_file, @function
blob_content_to_file:
.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, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, r9
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 120
	.cfi_def_cfa_offset 176
	mov	r9, QWORD PTR 24[rdi]
	mov	r8d, DWORD PTR 8[rdi]
	movdqu	xmm0, XMMWORD PTR GIT_FILTER_OPTIONS_INIT[rip]
	mov	edx, DWORD PTR 16[rdi]
	mov	QWORD PTR 16[rsp], rsi
	mov	rsi, rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	test	r9, r9
	mov	DWORD PTR 12[rsp], r8d
	cmove	r9, rbp
	test	r15, r15
	movaps	XMMWORD PTR 48[rsp], xmm0
	mov	QWORD PTR 40[rsp], 0
	cmove	r15, rcx
	mov	QWORD PTR [rsp], r9
	mov	QWORD PTR 24[rsp], r9
	call	mkpath2file@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	r8d, DWORD PTR 12[rsp]
	mov	r9, QWORD PTR [rsp]
	test	r8d, r8d
	jle	.L19
.L5:
	test	r9, r9
	cmove	r9, QWORD PTR GIT_FILEMODE_BLOB[rip]
	mov	esi, r8d
	mov	rdi, r13
	mov	rdx, r9
	call	p_open@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L20
	lea	rax, 36[rbx]
	mov	edx, DWORD PTR 12[rbx]
	mov	QWORD PTR 56[rsp], rax
	lea	rax, 32[rbx]
	mov	QWORD PTR 48[rsp], rax
	test	edx, edx
	jne	.L8
	mov	esi, DWORD PTR 4[rbx]
	mov	r8d, DWORD PTR GIT_FILTER_TO_WORKTREE[rip]
	mov	rcx, r15
	mov	rdx, r14
	lea	rdi, 40[rsp]
	lea	r9, 48[rsp]
	call	git_filter_list__load_ext@PLT
	test	eax, eax
	jne	.L21
.L8:
	xor	esi, esi
	lea	rdi, 64[rsp]
	mov	edx, 32
	call	memset@PLT
	mov	eax, DWORD PTR checkout_stream_write[rip]
	mov	rdi, QWORD PTR 40[rsp]
	mov	rsi, r14
	lea	rdx, 80[rsp]
	mov	DWORD PTR 72[rsp], r12d
	mov	DWORD PTR 88[rsp], eax
	mov	eax, DWORD PTR checkout_stream_close[rip]
	mov	QWORD PTR 64[rsp], r13
	mov	DWORD PTR 84[rsp], eax
	mov	eax, DWORD PTR checkout_stream_free[rip]
	mov	DWORD PTR 76[rsp], 1
	mov	DWORD PTR 80[rsp], eax
	call	git_filter_list_stream_blob@PLT
	xor	edi, edi
	mov	r12d, eax
	mov	eax, DWORD PTR 76[rsp]
	test	eax, eax
	sete	dil
	call	assert@PLT
	mov	rdi, QWORD PTR 40[rsp]
	call	git_filter_list_free@PLT
	test	r12d, r12d
	js	.L1
	mov	rax, QWORD PTR 16[rsp]
	xor	r12d, r12d
	test	rax, rax
	je	.L1
	add	DWORD PTR [rbx], 1
	mov	rsi, rax
	mov	rdi, r13
	call	p_stat@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L22
	mov	rax, QWORD PTR 16[rsp]
	xor	r12d, r12d
	mov	QWORD PTR [rax], rbp
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 104[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	add	rsp, 120
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L19:
	.cfi_restore_state
	mov	r8d, DWORD PTR O_CREAT[rip]
	or	r8d, DWORD PTR O_TRUNC[rip]
	or	r8d, DWORD PTR O_WRONLY[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edi, r12d
	mov	DWORD PTR [rsp], eax
	call	p_close@PLT
	mov	edx, DWORD PTR [rsp]
	mov	r12d, edx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edi, DWORD PTR GIT_ERROR_OS[rip]
	mov	rdx, r13
	lea	rsi, .LC0[rip]
	call	git_error_set@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	edi, DWORD PTR GIT_ERROR_OS[rip]
	mov	rdx, r13
	lea	rsi, .LC1[rip]
	call	git_error_set@PLT
	jmp	.L1
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	blob_content_to_file, .-blob_content_to_file
	.comm	checkout_stream_write,4,4
	.comm	checkout_stream_free,4,4
	.comm	checkout_stream_close,4,4
	.comm	O_WRONLY,4,4
	.comm	O_TRUNC,4,4
	.comm	O_CREAT,4,4
	.comm	GIT_FILTER_TO_WORKTREE,4,4
	.comm	GIT_FILTER_OPTIONS_INIT,16,16
	.comm	GIT_FILEMODE_BLOB,8,8
	.comm	GIT_ERROR_OS,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_checkout.c_blob_content_to_file.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"could not open '%s' for writing\000"
	.align	2
.LC1:
	.ascii	"failed to stat '%s'\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	blob_content_to_file, %function
blob_content_to_file:
	@ args = 8, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	mov	r6, r3
	mov	ip, #0
	sub	sp, sp, #60
	ldr	r3, .L23
	add	fp, sp, #20
	mov	r9, r1
	ldm	r3, {r0, r1}
	stm	fp, {r0, r1}
	ldr	r3, .L23+4
	mov	r10, r2
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	ldr	r3, [r5, #8]
	mov	r1, r6
	mov	r0, r5
	ldr	r2, [r5, #16]
	ldr	r7, [r5, #20]
	ldr	r8, [sp, #96]
	str	r3, [sp, #12]
	str	ip, [sp, #16]
	bl	mkpath2file
	cmp	r8, #0
	ldr	r3, [sp, #100]
	moveq	r8, r6
	cmp	r7, #0
	moveq	r7, r3
	subs	r4, r0, #0
	blt	.L1
	ldr	r3, [sp, #12]
	cmp	r3, #0
	ble	.L18
.L5:
	cmp	r7, #0
	ldreq	r2, .L23+8
	mov	r1, r3
	ldreq	r7, [r2]
	mov	r0, r6
	mov	r2, r7
	bl	p_open
	subs	r4, r0, #0
	blt	.L19
	ldr	r2, [r5, #12]
	add	r3, r5, #28
	cmp	r2, #0
	add	r2, r5, #24
	str	r3, [sp, #24]
	str	r2, [sp, #20]
	bne	.L8
	ldr	r3, .L23+12
	str	fp, [sp, #4]
	ldr	r2, [r3]
	add	r0, sp, #16
	str	r2, [sp]
	mov	r3, r8
	mov	r2, r10
	ldr	r1, [r5, #4]
	bl	git_filter_list__load_ext
	subs	r7, r0, #0
	bne	.L20
.L8:
	mov	r3, #1
	ldr	r2, .L23+16
	ldr	r0, .L23+20
	ldr	r1, .L23+24
	ldr	r2, [r2]
	ldr	r0, [r0]
	ldr	ip, [r1]
	str	r2, [sp, #44]
	mov	r1, r10
	add	r2, sp, #40
	str	r0, [sp, #40]
	ldr	r0, [sp, #16]
	str	ip, [sp, #48]
	str	r4, [sp, #32]
	str	r3, [sp, #36]
	str	r6, [sp, #28]
	bl	git_filter_list_stream_blob
	ldr	r3, [sp, #36]
	mov	r4, r0
	clz	r0, r3
	lsr	r0, r0, #5
	bl	assert
	ldr	r0, [sp, #16]
	bl	git_filter_list_free
	cmp	r4, #0
	blt	.L1
	cmp	r9, #0
	moveq	r4, r9
	beq	.L1
	ldr	r3, [r5]
	mov	r1, r9
	add	r3, r3, #1
	mov	r0, r6
	str	r3, [r5]
	bl	p_stat
	subs	r4, r0, #0
	blt	.L21
	mov	r4, #0
	ldr	r3, [sp, #100]
	str	r3, [r9]
.L1:
	ldr	r3, .L23+4
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	mov	r0, r4
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	ldr	r3, .L23+28
	ldr	r1, .L23+32
	ldr	r2, .L23+36
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r2, [r2]
	orr	r3, r3, r1
	orr	r3, r3, r2
	b	.L5
.L20:
	mov	r0, r4
	bl	p_close
	mov	r4, r7
	b	.L1
.L19:
	ldr	r3, .L23+40
	mov	r2, r6
	ldr	r0, [r3]
	ldr	r1, .L23+44
	bl	git_error_set
	b	.L1
.L21:
	ldr	r3, .L23+40
	mov	r2, r6
	ldr	r0, [r3]
	ldr	r1, .L23+48
	bl	git_error_set
	b	.L1
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	GIT_FILTER_OPTIONS_INIT
	.word	.LC2
	.word	GIT_FILEMODE_BLOB
	.word	GIT_FILTER_TO_WORKTREE
	.word	checkout_stream_close
	.word	checkout_stream_free
	.word	checkout_stream_write
	.word	O_CREAT
	.word	O_TRUNC
	.word	O_WRONLY
	.word	GIT_ERROR_OS
	.word	.LC0
	.word	.LC1
	.size	blob_content_to_file, .-blob_content_to_file
	.comm	checkout_stream_write,4,4
	.comm	checkout_stream_free,4,4
	.comm	checkout_stream_close,4,4
	.comm	O_WRONLY,4,4
	.comm	O_TRUNC,4,4
	.comm	O_CREAT,4,4
	.comm	GIT_FILTER_TO_WORKTREE,4,4
	.comm	GIT_FILTER_OPTIONS_INIT,8,4
	.comm	GIT_FILEMODE_BLOB,4,4
	.comm	GIT_ERROR_OS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
