	.file	"extr_rotozoom.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"usage: %s image.pnm file|dir\ngenerate a test video stream\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"wb"
.LC2:
	.string	"%s%02d.pgm"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	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, 1048
	.cfi_def_cfa_offset 1104
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 1032[rsp], rax
	xor	eax, eax
	cmp	edi, 3
	je	.L2
	mov	rsi, QWORD PTR [rsi]
	lea	rdi, .LC0[rip]
	call	printf@PLT
	mov	eax, 1
.L1:
	mov	rcx, QWORD PTR 1032[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L13
	add	rsp, 1048
	.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
.L2:
	.cfi_restore_state
	mov	rdi, QWORD PTR 16[rsi]
	mov	edx, DWORD PTR stdout[rip]
	lea	rsi, .LC1[rip]
	call	freopen@PLT
	mov	ebp, DWORD PTR DEFAULT_WIDTH[rip]
	mov	r12d, DWORD PTR DEFAULT_HEIGHT[rip]
	mov	r14d, eax
	mov	edi, ebp
	imul	edi, r12d
	lea	edi, [rdi+rdi*2]
	call	malloc@PLT
	mov	rdi, QWORD PTR 8[r13]
	mov	DWORD PTR width[rip], ebp
	mov	DWORD PTR rgb_tab[rip], eax
	lea	eax, 0[rbp+rbp*2]
	mov	DWORD PTR wrap[rip], eax
	mov	DWORD PTR height[rip], r12d
	call	init_demo@PLT
	test	rax, rax
	jne	.L9
	cmp	DWORD PTR DEFAULT_NB_PICT[rip], 0
	jle	.L4
	xor	ebx, ebx
	mov	r15, rsp
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rcx, QWORD PTR 16[r13]
	mov	r8d, ebx
	mov	esi, 1024
	mov	rdi, r15
	lea	rdx, .LC2[rip]
	add	ebx, 1
	call	snprintf@PLT
	mov	ecx, DWORD PTR rgb_tab[rip]
	mov	edx, r12d
	mov	esi, ebp
	mov	rdi, r15
	call	pgmyuv_save@PLT
	cmp	DWORD PTR DEFAULT_NB_PICT[rip], ebx
	jle	.L4
.L7:
	mov	edx, r12d
	mov	esi, ebp
	mov	edi, ebx
	call	gen_image@PLT
	test	r14d, r14d
	je	.L14
	mov	ecx, DWORD PTR rgb_tab[rip]
	xor	edi, edi
	mov	edx, r12d
	mov	esi, ebp
	add	ebx, 1
	call	pgmyuv_save@PLT
	cmp	DWORD PTR DEFAULT_NB_PICT[rip], ebx
	jg	.L7
.L4:
	mov	edi, DWORD PTR rgb_tab[rip]
	call	free@PLT
	xor	eax, eax
	jmp	.L1
.L9:
	mov	eax, 1
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	wrap,4,4
	.comm	width,4,4
	.comm	stdout,4,4
	.comm	rgb_tab,4,4
	.comm	height,4,4
	.comm	DEFAULT_WIDTH,4,4
	.comm	DEFAULT_NB_PICT,4,4
	.comm	DEFAULT_HEIGHT,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_rotozoom.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"usage: %s image.pnm file|dir\012generate a test vid"
	.ascii	"eo stream\012\000"
	.align	2
.LC1:
	.ascii	"wb\000"
	.align	2
.LC2:
	.ascii	"%s%02d.pgm\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1032
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L15
	sub	sp, sp, #1040
	sub	sp, sp, #4
	cmp	r0, #3
	mov	r7, r1
	ldr	r3, [r3]
	str	r3, [sp, #1036]
	mov	r3,#0
	beq	.L2
	ldr	r1, [r1]
	ldr	r0, .L15+4
	bl	printf
	mov	r10, #1
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #1036]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, r10
	add	sp, sp, #1040
	add	sp, sp, #4
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, .L15+8
	ldr	r1, .L15+12
	ldr	r2, [r3]
	ldr	r0, [r7, #8]
	bl	freopen
	ldr	r2, .L15+16
	ldr	r3, .L15+20
	ldr	r5, [r2]
	ldr	r6, [r3]
	mov	r8, r0
	mul	r0, r6, r5
	add	r0, r0, r0, lsl #1
	bl	malloc
	ldr	r3, .L15+24
	ldr	r2, .L15+28
	ldr	r9, .L15+32
	str	r5, [r3]
	ldr	r3, .L15+36
	str	r6, [r2]
	str	r0, [r9]
	add	r2, r5, r5, lsl #1
	ldr	r0, [r7, #4]
	str	r2, [r3]
	bl	init_demo
	subs	r10, r0, #0
	movne	r10, #1
	bne	.L1
	ldr	fp, .L15+40
	ldr	r3, [fp]
	cmp	r3, #0
	ble	.L4
	mov	r4, r10
	b	.L7
.L14:
	str	r4, [sp]
	mov	r1, #1024
	ldr	r3, [r7, #8]
	ldr	r2, .L15+44
	add	r0, sp, #12
	bl	snprintf
	ldr	r3, [r9]
	mov	r2, r6
	mov	r1, r5
	add	r0, sp, #12
	bl	pgmyuv_save
	ldr	r3, [fp]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L4
.L7:
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	bl	gen_image
	cmp	r8, #0
	beq	.L14
	ldr	r3, [r9]
	mov	r2, r6
	mov	r1, r5
	mov	r0, #0
	bl	pgmyuv_save
	ldr	r3, [fp]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L7
.L4:
	ldr	r0, [r9]
	bl	free
	b	.L1
.L13:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC3
	.word	.LC0
	.word	stdout
	.word	.LC1
	.word	DEFAULT_WIDTH
	.word	DEFAULT_HEIGHT
	.word	width
	.word	height
	.word	rgb_tab
	.word	wrap
	.word	DEFAULT_NB_PICT
	.word	.LC2
	.size	main, .-main
	.comm	wrap,4,4
	.comm	width,4,4
	.comm	stdout,4,4
	.comm	rgb_tab,4,4
	.comm	height,4,4
	.comm	DEFAULT_WIDTH,4,4
	.comm	DEFAULT_NB_PICT,4,4
	.comm	DEFAULT_HEIGHT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
