	.file	"extr_decode_video.c_pgm_save.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"w"
.LC1:
	.string	"P5\n%d %d\n%d\n"
	.text
	.p2align 4
	.type	pgm_save, @function
pgm_save:
.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	r14d, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movsx	r13, esi
	lea	rsi, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	mov	rdi, r8
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	fopen@PLT
	mov	r8d, 255
	mov	ecx, r12d
	mov	edx, r14d
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	r15, rax
	call	fprintf@PLT
	test	r12d, r12d
	jle	.L2
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rbx
	mov	rcx, r15
	mov	edx, r14d
	mov	esi, 1
	call	fwrite@PLT
	add	ebp, 1
	add	rbx, r13
	cmp	r12d, ebp
	jne	.L3
.L2:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	rdi, r15
	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	fclose@PLT
	.cfi_endproc
.LFE0:
	.size	pgm_save, .-pgm_save
	.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_decode_video.c_pgm_save.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"w\000"
	.align	2
.LC1:
	.ascii	"P5\012%d %d\012%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pgm_save, %function
pgm_save:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	sub	sp, sp, #12
	mov	r4, r0
	mov	r9, r1
	ldr	r0, [sp, #40]
	ldr	r1, .L7
	mov	r6, r3
	mov	r8, r2
	bl	fopen
	mov	r1, #255
	mov	r3, r6
	str	r1, [sp]
	mov	r2, r8
	ldr	r1, .L7+4
	mov	r7, r0
	bl	fprintf
	cmp	r6, #0
	ble	.L2
	mov	r5, #0
.L3:
	mov	r0, r4
	mov	r3, r7
	mov	r2, r8
	mov	r1, #1
	add	r5, r5, #1
	bl	fwrite
	cmp	r6, r5
	add	r4, r4, r9
	bne	.L3
.L2:
	mov	r0, r7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	fclose
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	.LC1
	.size	pgm_save, .-pgm_save
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
