	.file	"18713.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%c%c%c%c"
	.text
	.type	get_pixel_format, @function
get_pixel_format:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	eax, DWORD PTR -4[rbp]
	shr	eax, 24
	movsx	edi, al
	mov	eax, DWORD PTR -4[rbp]
	shr	eax, 16
	movsx	esi, al
	mov	eax, DWORD PTR -4[rbp]
	shr	eax, 8
	movsx	ecx, al
	mov	eax, DWORD PTR -4[rbp]
	movsx	edx, al
	mov	rax, QWORD PTR -16[rbp]
	mov	r9d, edi
	mov	r8d, esi
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -16[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_pixel_format, .-get_pixel_format
	.section	.rodata
	.align 8
.LC1:
	.string	"error: failed to open video format\n"
	.align 8
.LC2:
	.string	"error: failed to get video format\n"
.LC3:
	.string	"width : %u\n"
.LC4:
	.string	"height: %u\n"
.LC5:
	.string	"pixelformat: %s\n"
.LC6:
	.string	"bytesperline: %u\n"
.LC7:
	.string	"sizeimage: %u\n"
.LC8:
	.string	"colorspace: %u\n"
.LC9:
	.string	"priv: 0x%08x\n"
.LC10:
	.string	"flags: %u\n"
.LC11:
	.string	"quantization: %u\n"
.LC12:
	.string	"xfer_func: %u\n"
.LC13:
	.string	"usage: video-info <device>"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 256
	mov	DWORD PTR -244[rbp], edi
	mov	QWORD PTR -256[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -244[rbp], 1
	jle	.L4
	mov	rax, QWORD PTR -256[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -232[rbp], rax
	mov	rax, QWORD PTR -232[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -240[rbp], eax
	cmp	DWORD PTR -240[rbp], 0
	jg	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 35
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR -240[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	lea	rax, -224[rbp]
	mov	edx, 208
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -224[rbp], 2
	lea	rdx, -224[rbp]
	mov	eax, DWORD PTR -240[rbp]
	mov	esi, 3234878980
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -236[rbp], eax
	cmp	DWORD PTR -236[rbp], -1
	jne	.L6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 34
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR -240[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	eax, DWORD PTR -216[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -212[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -208[rbp]
	lea	rdx, -13[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	get_pixel_format
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -200[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -196[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -192[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -188[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -184[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -176[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -172[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -240[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L7
.L4:
	lea	rdi, .LC13[rip]
	call	puts@PLT
.L7:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"18713.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%c%c%c%c\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_pixel_format, %function
get_pixel_format:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	mov	r1, r3
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #8
	and	r3, r3, #255
	mov	r0, r3
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #16
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #24
	and	r3, r3, #255
	str	r3, [sp, #4]
	str	r2, [sp]
	mov	r3, r0
	mov	r2, r1
	ldr	r1, .L3
	ldr	r0, [fp, #-12]
	bl	sprintf
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.size	get_pixel_format, .-get_pixel_format
	.section	.rodata
	.align	2
.LC1:
	.ascii	"error: failed to open video format\012\000"
	.align	2
.LC2:
	.ascii	"error: failed to get video format\012\000"
	.align	2
.LC3:
	.ascii	"width : %u\012\000"
	.align	2
.LC4:
	.ascii	"height: %u\012\000"
	.align	2
.LC5:
	.ascii	"pixelformat: %s\012\000"
	.align	2
.LC6:
	.ascii	"bytesperline: %u\012\000"
	.align	2
.LC7:
	.ascii	"sizeimage: %u\012\000"
	.align	2
.LC8:
	.ascii	"colorspace: %u\012\000"
	.align	2
.LC9:
	.ascii	"priv: 0x%08x\012\000"
	.align	2
.LC10:
	.ascii	"flags: %u\012\000"
	.align	2
.LC11:
	.ascii	"quantization: %u\012\000"
	.align	2
.LC12:
	.ascii	"xfer_func: %u\012\000"
	.align	2
.LC13:
	.ascii	"usage: video-info <device>\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 240
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #240
	str	r0, [fp, #-240]
	str	r1, [fp, #-244]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-240]
	cmp	r3, #1
	ble	.L6
	ldr	r3, [fp, #-244]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-232]
	mov	r1, #0
	ldr	r0, [fp, #-232]
	bl	open
	str	r0, [fp, #-228]
	ldr	r3, [fp, #-228]
	cmp	r3, #0
	bgt	.L7
	ldr	r3, .L12+4
	ldr	r3, [r3]
	mov	r2, #35
	mov	r1, #1
	ldr	r0, .L12+8
	bl	fwrite
	ldr	r0, [fp, #-228]
	bl	close
	mov	r0, #1
	bl	exit
.L7:
	sub	r3, fp, #220
	mov	r2, #204
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	str	r3, [fp, #-220]
	sub	r3, fp, #220
	mov	r2, r3
	ldr	r1, .L12+12
	ldr	r0, [fp, #-228]
	bl	ioctl
	str	r0, [fp, #-224]
	ldr	r3, [fp, #-224]
	cmn	r3, #1
	bne	.L8
	ldr	r3, .L12+4
	ldr	r3, [r3]
	mov	r2, #34
	mov	r1, #1
	ldr	r0, .L12+16
	bl	fwrite
	ldr	r0, [fp, #-228]
	bl	close
	mov	r0, #1
	bl	exit
.L8:
	ldr	r3, [fp, #-216]
	mov	r1, r3
	ldr	r0, .L12+20
	bl	printf
	ldr	r3, [fp, #-212]
	mov	r1, r3
	ldr	r0, .L12+24
	bl	printf
	ldr	r3, [fp, #-208]
	sub	r2, fp, #16
	mov	r1, r2
	mov	r0, r3
	bl	get_pixel_format
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L12+28
	bl	printf
	ldr	r3, [fp, #-200]
	mov	r1, r3
	ldr	r0, .L12+32
	bl	printf
	ldr	r3, [fp, #-196]
	mov	r1, r3
	ldr	r0, .L12+36
	bl	printf
	ldr	r3, [fp, #-192]
	mov	r1, r3
	ldr	r0, .L12+40
	bl	printf
	ldr	r3, [fp, #-188]
	mov	r1, r3
	ldr	r0, .L12+44
	bl	printf
	ldr	r3, [fp, #-184]
	mov	r1, r3
	ldr	r0, .L12+48
	bl	printf
	ldr	r3, [fp, #-176]
	mov	r1, r3
	ldr	r0, .L12+52
	bl	printf
	ldr	r3, [fp, #-172]
	mov	r1, r3
	ldr	r0, .L12+56
	bl	printf
	ldr	r0, [fp, #-228]
	bl	close
	b	.L9
.L6:
	ldr	r0, .L12+60
	bl	puts
.L9:
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC14
	.word	stderr
	.word	.LC1
	.word	-1060350460
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
