	.file	"extr_vsrc_life.c_init_pattern_from_file.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"h:%d max_w:%d\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"The specified size is %dx%d which cannot contain the provided file size of %dx%d\n"
	.section	.rodata.str1.1
.LC2:
	.string	"%d:%d %c\n"
	.text
	.p2align 4
	.type	init_pattern_from_file, @function
init_pattern_from_file:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	ecx, ecx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r8, r14
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rbp, QWORD PTR [rdi]
	mov	rdi, QWORD PTR 40[rbp]
	lea	rdx, 8[rbp]
	mov	rsi, rbp
	call	av_file_map@PLT
	test	eax, eax
	js	.L1
	lea	rdi, 40[rbp]
	call	av_freep@PLT
	mov	eax, DWORD PTR 8[rbp]
	test	eax, eax
	jle	.L18
	xor	ebx, ebx
	xor	esi, esi
	xor	edi, edi
	xor	r13d, r13d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	add	edi, 1
	add	rbx, 1
	cmp	DWORD PTR 8[rbp], ebx
	jle	.L31
.L6:
	mov	rdx, QWORD PTR 0[rbp]
	cmp	BYTE PTR [rdx+rbx], 10
	jne	.L4
	call	FFMAX@PLT
	add	r13d, 1
	xor	edi, edi
	add	rbx, 1
	mov	esi, eax
	cmp	DWORD PTR 8[rbp], ebx
	jg	.L6
.L31:
	mov	DWORD PTR 8[rsp], esi
.L3:
	mov	ebx, DWORD PTR 8[rsp]
	mov	esi, DWORD PTR AV_LOG_DEBUG[rip]
	mov	ecx, r13d
	mov	rdi, r14
	lea	rdx, .LC0[rip]
	xor	eax, eax
	mov	r8d, ebx
	call	av_log@PLT
	mov	ecx, DWORD PTR 12[rbp]
	test	ecx, ecx
	jne	.L32
	mov	eax, DWORD PTR 8[rsp]
	mov	DWORD PTR 16[rbp], r13d
	mov	edi, r13d
	mov	DWORD PTR 12[rbp], eax
	mov	ecx, eax
.L9:
	imul	edi, ecx
	mov	rbx, QWORD PTR 32[rbp]
	mov	esi, 4
	call	av_calloc@PLT
	mov	QWORD PTR [rbx], rax
	test	rax, rax
	je	.L11
	mov	edi, DWORD PTR 16[rbp]
	imul	edi, DWORD PTR 12[rbp]
	mov	esi, 4
	mov	rbx, QWORD PTR 32[rbp]
	call	av_calloc@PLT
	mov	QWORD PTR 8[rbx], rax
	test	rax, rax
	je	.L11
	mov	eax, DWORD PTR 16[rbp]
	mov	r10, QWORD PTR 0[rbp]
	sub	eax, r13d
	mov	r12d, eax
	shr	r12d, 31
	add	r12d, eax
	sar	r12d
	test	r13d, r13d
	je	.L12
	lea	eax, 0[r13+r12]
	mov	DWORD PTR 12[rsp], eax
	.p2align 4,,10
	.p2align 3
.L15:
	mov	eax, DWORD PTR 12[rbp]
	sub	eax, DWORD PTR 8[rsp]
	mov	r15, r10
	mov	r13d, eax
	shr	r13d, 31
	add	r13d, eax
	sar	r13d
	sub	r13d, r10d
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L14:
	call	av_isgraph@PLT
	mov	r8d, DWORD PTR 12[rbp]
	mov	rdx, QWORD PTR 32[rbp]
	test	rax, rax
	mov	eax, 0
	cmovne	eax, DWORD PTR ALIVE_CELL[rip]
	imul	r8d, r12d
	mov	rdx, QWORD PTR [rdx]
	add	r8d, ebx
	movsx	r8, r8d
	mov	DWORD PTR [rdx+r8*4], eax
.L17:
	movsx	r9d, BYTE PTR [r15]
	mov	eax, 78
	mov	rdi, r14
	mov	ecx, r12d
	lea	ebx, 0[r13+r15]
	mov	esi, DWORD PTR AV_LOG_DEBUG[rip]
	lea	rdx, .LC2[rip]
	cmp	r9b, 10
	mov	r8d, ebx
	cmove	r9d, eax
	xor	eax, eax
	add	r15, 1
	call	av_log@PLT
	movsx	edi, BYTE PTR -1[r15]
	cmp	dil, 10
	jne	.L14
	add	r12d, 1
	cmp	DWORD PTR 12[rsp], r12d
	je	.L12
	mov	r10, r15
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L12:
	mov	QWORD PTR 24[rbp], 0
	xor	eax, eax
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L32:
	.cfi_restore_state
	mov	edi, DWORD PTR 16[rbp]
	cmp	ecx, ebx
	jl	.L8
	cmp	r13d, edi
	jle	.L9
.L8:
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	mov	r8d, edi
	xor	eax, eax
	push	r13
	.cfi_def_cfa_offset 96
	mov	r9d, DWORD PTR 24[rsp]
	mov	rdi, r14
	lea	rdx, .LC1[rip]
	call	av_log@PLT
	mov	edi, DWORD PTR EINVAL[rip]
	add	rsp, 40
	.cfi_def_cfa_offset 56
	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
	jmp	AVERROR@PLT
.L11:
	.cfi_def_cfa_offset 80
	mov	rdi, QWORD PTR 32[rbp]
	call	av_freep@PLT
	mov	rdi, QWORD PTR 32[rbp]
	add	rdi, 8
	call	av_freep@PLT
	mov	edi, DWORD PTR ENOMEM[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	jmp	AVERROR@PLT
.L18:
	.cfi_restore_state
	mov	DWORD PTR 8[rsp], 0
	xor	r13d, r13d
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	init_pattern_from_file, .-init_pattern_from_file
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	AV_LOG_ERROR,4,4
	.comm	AV_LOG_DEBUG,4,4
	.comm	ALIVE_CELL,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_vsrc_life.c_init_pattern_from_file.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"h:%d max_w:%d\012\000"
	.align	2
.LC1:
	.ascii	"The specified size is %dx%d which cannot contain th"
	.ascii	"e provided file size of %dx%d\012\000"
	.align	2
.LC2:
	.ascii	"%d:%d %c\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_pattern_from_file, %function
init_pattern_from_file:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r9, r0
	ldr	r6, [r0]
	sub	sp, sp, #28
	ldr	r0, [r6, #24]
	mov	r3, #0
	mov	r1, r6
	add	r2, r6, #4
	str	r9, [sp]
	bl	av_file_map
	cmp	r0, #0
	blt	.L1
	add	r0, r6, #24
	bl	av_freep
	ldr	r2, [r6, #4]
	cmp	r2, #0
	ble	.L18
	mov	r1, #0
	mov	r0, r1
	mov	r4, r1
	mov	r5, r1
	b	.L6
.L5:
	add	r5, r5, #1
	cmp	r2, r5
	ble	.L33
.L6:
	ldr	r3, [r6]
	ldrb	r3, [r3, r5]	@ zero_extendqisi2
	cmp	r3, #10
	addne	r0, r0, #1
	bne	.L5
	bl	FFMAX
	ldr	r2, [r6, #4]
	add	r5, r5, #1
	cmp	r2, r5
	mov	r1, r0
	add	r4, r4, #1
	mov	r0, #0
	bgt	.L6
.L33:
	str	r1, [sp, #16]
.L3:
	ldr	r5, [sp, #16]
	ldr	r10, .L35
	mov	r3, r4
	mov	r0, r9
	ldr	r1, [r10]
	ldr	r2, .L35+4
	str	r5, [sp]
	bl	av_log
	ldr	r3, [r6, #8]
	cmp	r3, #0
	bne	.L34
	ldr	r2, [sp, #16]
	mov	r0, r4
	mov	r3, r2
	str	r2, [r6, #8]
	str	r4, [r6, #12]
.L9:
	mov	r1, #4
	mul	r0, r3, r0
	ldr	r5, [r6, #20]
	bl	av_calloc
	cmp	r0, #0
	str	r0, [r5]
	beq	.L11
	ldr	r3, [r6, #12]
	ldr	r0, [r6, #8]
	mov	r1, #4
	mul	r0, r3, r0
	ldr	r5, [r6, #20]
	bl	av_calloc
	cmp	r0, #0
	str	r0, [r5, #4]
	beq	.L11
	ldr	r7, [r6, #12]
	cmp	r4, #0
	sub	r7, r7, r4
	add	r7, r7, r7, lsr #31
	ldr	r2, [r6]
	asr	r7, r7, #1
	beq	.L12
	add	r3, r4, r7
	ldr	fp, .L35+8
	str	r3, [sp, #20]
.L15:
	ldr	r8, [r6, #8]
	ldr	r3, [sp, #16]
	mov	r4, r2
	sub	r8, r8, r3
	add	r8, r8, r8, lsr #31
	rsb	r8, r2, r8, asr #1
	b	.L17
.L14:
	bl	av_isgraph
	cmp	r0, #0
	ldrne	r3, .L35+12
	ldr	r2, [r6, #20]
	ldrne	r0, [r3]
	ldr	r3, [r6, #8]
	mla	r5, r3, r7, r5
	ldr	r3, [r2]
	str	r0, [r3, r5, lsl #2]
.L17:
	add	r5, r8, r4
	ldrb	r2, [r4], #1	@ zero_extendqisi2
	mov	r3, r7
	cmp	r2, #10
	moveq	r2, #78
	mov	r0, r9
	str	r2, [sp, #4]
	ldr	r1, [r10]
	mov	r2, fp
	str	r5, [sp]
	bl	av_log
	ldrb	r0, [r4, #-1]	@ zero_extendqisi2
	mov	r2, r4
	cmp	r0, #10
	bne	.L14
	ldr	r3, [sp, #20]
	add	r7, r7, #1
	cmp	r3, r7
	bne	.L15
.L12:
	mov	r3, #0
	mov	r0, r3
	str	r3, [r6, #16]
.L1:
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L34:
	cmp	r3, r5
	ldr	r0, [r6, #12]
	blt	.L8
	cmp	r4, r0
	ble	.L9
.L8:
	ldr	r1, [sp, #16]
	ldr	r2, .L35+16
	stm	sp, {r0, r1}
	str	r4, [sp, #8]
	ldr	r1, [r2]
	mov	r0, r9
	ldr	r2, .L35+20
	bl	av_log
	ldr	r3, .L35+24
	ldr	r0, [r3]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	AVERROR
.L11:
	ldr	r0, [r6, #20]
	bl	av_freep
	ldr	r0, [r6, #20]
	add	r0, r0, #4
	bl	av_freep
	ldr	r3, .L35+28
	ldr	r0, [r3]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	AVERROR
.L18:
	mov	r3, #0
	mov	r4, r3
	str	r3, [sp, #16]
	b	.L3
.L36:
	.align	2
.L35:
	.word	AV_LOG_DEBUG
	.word	.LC0
	.word	.LC2
	.word	ALIVE_CELL
	.word	AV_LOG_ERROR
	.word	.LC1
	.word	EINVAL
	.word	ENOMEM
	.size	init_pattern_from_file, .-init_pattern_from_file
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	AV_LOG_ERROR,4,4
	.comm	AV_LOG_DEBUG,4,4
	.comm	ALIVE_CELL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
