	.file	"29824982.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"h"
	.align 8
.LC1:
	.string	"Usage: v4l_id [--help] <device file>\n"
.LC2:
	.string	"ID_V4L_VERSION=2"
.LC3:
	.string	"ID_V4L_PRODUCT=%s\n"
.LC4:
	.string	"ID_V4L_CAPABILITIES=:"
.LC5:
	.string	"capture:"
.LC6:
	.string	"video_output:"
.LC7:
	.string	"video_overlay:"
.LC8:
	.string	"audio:"
.LC9:
	.string	"tuner:"
.LC10:
	.string	"radio:"
	.text
	.globl	main
	.type	main, @function
main:
.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, 144
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rsi, QWORD PTR -144[rbp]
	mov	eax, DWORD PTR -132[rbp]
	mov	r8d, 0
	lea	rcx, options.0[rip]
	lea	rdx, .LC0[rip]
	mov	edi, eax
	call	getopt_long@PLT
	mov	DWORD PTR -128[rbp], eax
	cmp	DWORD PTR -128[rbp], -1
	je	.L18
	cmp	DWORD PTR -128[rbp], 104
	jne	.L4
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L15
.L4:
	mov	eax, 1
	jmp	.L15
.L18:
	nop
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -144[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -120[rbp], rax
	cmp	QWORD PTR -120[rbp], 0
	jne	.L6
	mov	eax, 2
	jmp	.L15
.L6:
	mov	rax, QWORD PTR -120[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], 0
	jns	.L7
	mov	eax, 3
	jmp	.L15
.L7:
	lea	rdx, -112[rbp]
	mov	eax, DWORD PTR -124[rbp]
	mov	esi, 2154321408
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jne	.L8
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rax, -112[rbp]
	add	rax, 16
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -28[rbp]
	and	eax, 1
	test	eax, eax
	je	.L9
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L9:
	mov	eax, DWORD PTR -28[rbp]
	and	eax, 2
	test	eax, eax
	je	.L10
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	mov	eax, DWORD PTR -28[rbp]
	and	eax, 4
	test	eax, eax
	je	.L11
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L11:
	mov	eax, DWORD PTR -28[rbp]
	and	eax, 131072
	test	eax, eax
	je	.L12
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L12:
	mov	eax, DWORD PTR -28[rbp]
	and	eax, 65536
	test	eax, eax
	je	.L13
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	mov	eax, DWORD PTR -28[rbp]
	and	eax, 262144
	test	eax, eax
	je	.L14
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
.L14:
	mov	edi, 10
	call	putchar@PLT
.L8:
	mov	eax, DWORD PTR -124[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L15:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
.LC11:
	.string	"help"
	.section	.data.rel.ro.local,"aw"
	.align 32
	.type	options.0, @object
	.size	options.0, 64
options.0:
	.quad	.LC11
	.long	0
	.zero	4
	.quad	0
	.long	104
	.zero	4
	.zero	32
	.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	"29824982.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"h\000"
	.align	2
.LC1:
	.ascii	"Usage: v4l_id [--help] <device file>\012\000"
	.align	2
.LC2:
	.ascii	"ID_V4L_VERSION=2\000"
	.align	2
.LC3:
	.ascii	"ID_V4L_PRODUCT=%s\012\000"
	.align	2
.LC4:
	.ascii	"ID_V4L_CAPABILITIES=:\000"
	.align	2
.LC5:
	.ascii	"capture:\000"
	.align	2
.LC6:
	.ascii	"video_output:\000"
	.align	2
.LC7:
	.ascii	"video_overlay:\000"
	.align	2
.LC8:
	.ascii	"audio:\000"
	.align	2
.LC9:
	.ascii	"tuner:\000"
	.align	2
.LC10:
	.ascii	"radio:\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, .L19+4
	ldr	r2, .L19+8
	ldr	r1, [fp, #-132]
	ldr	r0, [fp, #-128]
	bl	getopt_long
	str	r0, [fp, #-124]
	ldr	r3, [fp, #-124]
	cmn	r3, #1
	beq	.L18
	ldr	r3, [fp, #-124]
	cmp	r3, #104
	bne	.L4
	ldr	r0, .L19+12
	bl	puts
	mov	r3, #0
	b	.L15
.L4:
	mov	r3, #1
	b	.L15
.L18:
	nop
	ldr	r3, .L19+16
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bne	.L6
	mov	r3, #2
	b	.L15
.L6:
	mov	r1, #0
	ldr	r0, [fp, #-120]
	bl	open
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bge	.L7
	mov	r3, #3
	b	.L15
.L7:
	sub	r3, fp, #112
	mov	r2, r3
	ldr	r1, .L19+20
	ldr	r0, [fp, #-116]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L19+24
	bl	puts
	sub	r3, fp, #112
	add	r3, r3, #16
	mov	r1, r3
	ldr	r0, .L19+28
	bl	printf
	ldr	r0, .L19+32
	bl	printf
	ldr	r3, [fp, #-28]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L9
	ldr	r0, .L19+36
	bl	printf
.L9:
	ldr	r3, [fp, #-28]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L10
	ldr	r0, .L19+40
	bl	printf
.L10:
	ldr	r3, [fp, #-28]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L11
	ldr	r0, .L19+44
	bl	printf
.L11:
	ldr	r3, [fp, #-28]
	and	r3, r3, #131072
	cmp	r3, #0
	beq	.L12
	ldr	r0, .L19+48
	bl	printf
.L12:
	ldr	r3, [fp, #-28]
	and	r3, r3, #65536
	cmp	r3, #0
	beq	.L13
	ldr	r0, .L19+52
	bl	printf
.L13:
	ldr	r3, [fp, #-28]
	and	r3, r3, #262144
	cmp	r3, #0
	beq	.L14
	ldr	r0, .L19+56
	bl	printf
.L14:
	mov	r0, #10
	bl	putchar
.L8:
	ldr	r0, [fp, #-116]
	bl	close
	mov	r3, #0
.L15:
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC11
	.word	options.7293
	.word	.LC0
	.word	.LC1
	.word	optind
	.word	-2140645888
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.section	.rodata
	.align	2
.LC12:
	.ascii	"help\000"
	.align	2
	.type	options.7293, %object
	.size	options.7293, 32
options.7293:
	.word	.LC12
	.word	0
	.word	0
	.word	104
	.space	16
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
