	.file	"extr_apply.c_patch_image_init_fromstr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	patch_image_init_fromstr, @function
patch_image_init_fromstr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	lea	r15, 4[r13]
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	mov	rbp, rbx
	mov	r12, rbx
	add	rbp, r14
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 16[rsp], rsi
	xor	esi, esi
	mov	QWORD PTR 24[rsp], rdx
	mov	edx, 8
	call	memset@PLT
	mov	esi, 4
	mov	rdi, r15
	call	git_pool_init@PLT
	cmp	rbx, rbp
	jb	.L5
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L17:
	mov	esi, 1
	mov	rdi, r15
	add	r14, 1
	call	git_pool_mallocz@PLT
	mov	rdi, rax
	mov	QWORD PTR 8[rsp], rax
	call	GIT_ERROR_CHECK_ALLOC@PLT
	mov	r10, QWORD PTR 8[rsp]
	mov	rdi, r13
	mov	rsi, r10
	call	git_vector_insert@PLT
	test	rax, rax
	js	.L9
	mov	r10, QWORD PTR 8[rsp]
	mov	rdx, r14
	mov	ecx, ebx
	mov	rsi, r12
	sub	rdx, r12
	mov	rdi, r10
	call	patch_line_init@PLT
	cmp	r14, rbp
	jnb	.L6
	mov	r12, r14
.L5:
	mov	rdx, QWORD PTR 24[rsp]
	mov	rbx, r12
	sub	rbx, QWORD PTR 16[rsp]
	mov	rdi, r12
	mov	esi, 10
	sub	rdx, rbx
	call	memchr@PLT
	mov	r14, rax
	test	rax, rax
	je	.L8
	cmp	rax, rbp
	jb	.L17
.L4:
	mov	esi, 1
	mov	rdi, r15
	call	git_pool_mallocz@PLT
	mov	rbp, rax
	mov	rdi, rax
	call	GIT_ERROR_CHECK_ALLOC@PLT
	mov	rsi, rbp
	mov	rdi, r13
	call	git_vector_insert@PLT
	mov	r8d, -1
	test	rax, rax
	jns	.L13
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
.L8:
	.cfi_restore_state
	mov	r14, rbp
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdx, r14
	mov	ecx, ebx
	mov	rsi, r12
	mov	rdi, rbp
	sub	rdx, r12
	call	patch_line_init@PLT
.L6:
	xor	r8d, r8d
	jmp	.L1
.L9:
	or	r8d, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	patch_image_init_fromstr, .-patch_image_init_fromstr
	.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_patch_image_init_fromstr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	patch_image_init_fromstr, %function
patch_image_init_fromstr:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r1
	mov	r4, r2
	sub	sp, sp, #12
	mov	r1, #0
	str	r2, [sp, #4]
	add	fp, r0, #4
	mov	r2, #8
	mov	r10, r0
	add	r7, r8, r4
	bl	memset
	mov	r0, fp
	mov	r1, #4
	bl	git_pool_init
	cmp	r8, r7
	movcc	r5, r8
	bcc	.L5
	b	.L6
.L15:
	mov	r1, #1
	mov	r0, fp
	bl	git_pool_mallocz
	mov	r6, r0
	bl	GIT_ERROR_CHECK_ALLOC
	mov	r1, r6
	mov	r0, r10
	bl	git_vector_insert
	add	r4, r4, #1
	cmp	r0, #0
	sub	r2, r4, r5
	blt	.L11
	mov	r3, r9
	mov	r1, r5
	mov	r0, r6
	bl	patch_line_init
	cmp	r4, r7
	bcs	.L6
	mov	r5, r4
.L5:
	ldr	r3, [sp, #4]
	sub	r9, r5, r8
	mov	r1, #10
	mov	r0, r5
	sub	r2, r3, r9
	bl	memchr
	subs	r4, r0, #0
	beq	.L8
	cmp	r4, r7
	bcc	.L15
.L4:
	mov	r1, #1
	mov	r0, fp
	bl	git_pool_mallocz
	mov	r6, r0
	bl	GIT_ERROR_CHECK_ALLOC
	mov	r1, r6
	mov	r0, r10
	bl	git_vector_insert
	cmp	r0, #0
	bge	.L16
.L11:
	mvn	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	mov	r4, r7
	b	.L4
.L16:
	mov	r3, r9
	mov	r1, r5
	mov	r0, r6
	sub	r2, r4, r5
	bl	patch_line_init
.L6:
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	patch_image_init_fromstr, .-patch_image_init_fromstr
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
