	.file	"extr_bttv-driver.c_bttv_enum_input.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Television"
.LC1:
	.string	"S-Video"
.LC2:
	.string	"Composite%d"
	.text
	.p2align 4
	.type	bttv_enum_input, @function
bttv_enum_input:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbp, QWORD PTR [rsi]
	mov	rax, QWORD PTR bttv_tvcards[rip]
	mov	rdx, QWORD PTR [rdx]
	mov	rcx, QWORD PTR 24[rbp]
	cmp	rdx, QWORD PTR [rax+rcx*8]
	jge	.L19
	mov	eax, DWORD PTR V4L2_INPUT_TYPE_CAMERA[rip]
	mov	edi, DWORD PTR 16[rbx]
	mov	QWORD PTR 40[rbx], 0
	mov	DWORD PTR 32[rbx], eax
	mov	rax, QWORD PTR TUNER_ABSENT[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L4
	test	rdx, rdx
	je	.L20
.L4:
	cmp	rdx, QWORD PTR 8[rbp]
	je	.L21
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	sprintf@PLT
.L5:
	mov	rax, QWORD PTR 16[rbp]
	cmp	QWORD PTR [rbx], rax
	je	.L22
.L8:
	mov	eax, DWORD PTR BTTV_NORMS[rip]
	mov	DWORD PTR 8[rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	sprintf@PLT
	mov	rax, QWORD PTR 16[rbp]
	cmp	QWORD PTR [rbx], rax
	jne	.L8
.L22:
	mov	edi, DWORD PTR BT848_DSTATUS[rip]
	call	btread@PLT
	test	DWORD PTR BT848_DSTATUS_PRES[rip], eax
	jne	.L9
	mov	edx, DWORD PTR V4L2_IN_ST_NO_SIGNAL[rip]
	or	DWORD PTR 12[rbx], edx
.L9:
	test	DWORD PTR BT848_DSTATUS_HLOC[rip], eax
	jne	.L8
	mov	eax, DWORD PTR V4L2_IN_ST_NO_H_LOCK[rip]
	or	DWORD PTR 12[rbx], eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L20:
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	sprintf@PLT
	mov	eax, DWORD PTR V4L2_INPUT_TYPE_TUNER[rip]
	mov	QWORD PTR 24[rbx], 0
	mov	DWORD PTR 32[rbx], eax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	bttv_enum_input, .-bttv_enum_input
	.comm	bttv_tvcards,8,8
	.comm	V4L2_IN_ST_NO_SIGNAL,4,4
	.comm	V4L2_IN_ST_NO_H_LOCK,4,4
	.comm	V4L2_INPUT_TYPE_TUNER,4,4
	.comm	V4L2_INPUT_TYPE_CAMERA,4,4
	.comm	TUNER_ABSENT,8,8
	.comm	EINVAL,4,4
	.comm	BTTV_NORMS,4,4
	.comm	BT848_DSTATUS_PRES,4,4
	.comm	BT848_DSTATUS_HLOC,4,4
	.comm	BT848_DSTATUS,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_bttv-driver.c_bttv_enum_input.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Television\000"
	.align	2
.LC1:
	.ascii	"S-Video\000"
	.align	2
.LC2:
	.ascii	"Composite%d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bttv_enum_input, %function
bttv_enum_input:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L17
	ldr	r5, [r1]
	ldr	r3, [r3]
	ldr	r1, [r5, #12]
	mov	r4, r2
	ldr	r3, [r3, r1, lsl #2]
	ldr	r2, [r2]
	cmp	r2, r3
	bge	.L13
	mov	r6, #0
	ldr	r1, .L17+4
	ldr	r3, [r5]
	ldr	r1, [r1]
	ldr	r0, [r4, #12]
	subs	r3, r3, r1
	movne	r3, #1
	cmp	r2, r6
	movne	r3, #0
	ldr	r1, .L17+8
	cmp	r3, r6
	ldr	r3, [r1]
	str	r6, [r4, #24]
	str	r3, [r4, #20]
	bne	.L14
	ldr	r3, [r5, #4]
	cmp	r2, r3
	beq	.L15
	ldr	r1, .L17+12
	bl	sprintf
.L5:
	ldr	r3, [r5, #8]
	ldr	r2, [r4]
	cmp	r2, r3
	beq	.L16
.L8:
	ldr	r3, .L17+16
	mov	r0, #0
	ldr	r3, [r3]
	str	r3, [r4, #4]
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r3, .L17+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L15:
	ldr	r1, .L17+24
	bl	sprintf
	ldr	r3, [r5, #8]
	ldr	r2, [r4]
	cmp	r2, r3
	bne	.L8
.L16:
	ldr	r3, .L17+28
	ldr	r0, [r3]
	bl	btread
	ldr	r3, .L17+32
	ldr	r3, [r3]
	tst	r0, r3
	ldreq	r2, .L17+36
	ldreq	r3, [r4, #8]
	ldreq	r2, [r2]
	orreq	r3, r3, r2
	streq	r3, [r4, #8]
	ldr	r3, .L17+40
	ldr	r3, [r3]
	tst	r0, r3
	ldreq	r2, .L17+44
	ldreq	r3, [r4, #8]
	ldreq	r2, [r2]
	orreq	r3, r3, r2
	streq	r3, [r4, #8]
	b	.L8
.L14:
	ldr	r1, .L17+48
	bl	sprintf
	ldr	r3, .L17+52
	str	r6, [r4, #16]
	ldr	r3, [r3]
	str	r3, [r4, #20]
	b	.L5
.L18:
	.align	2
.L17:
	.word	bttv_tvcards
	.word	TUNER_ABSENT
	.word	V4L2_INPUT_TYPE_CAMERA
	.word	.LC2
	.word	BTTV_NORMS
	.word	EINVAL
	.word	.LC1
	.word	BT848_DSTATUS
	.word	BT848_DSTATUS_PRES
	.word	V4L2_IN_ST_NO_SIGNAL
	.word	BT848_DSTATUS_HLOC
	.word	V4L2_IN_ST_NO_H_LOCK
	.word	.LC0
	.word	V4L2_INPUT_TYPE_TUNER
	.size	bttv_enum_input, .-bttv_enum_input
	.comm	bttv_tvcards,4,4
	.comm	V4L2_IN_ST_NO_SIGNAL,4,4
	.comm	V4L2_IN_ST_NO_H_LOCK,4,4
	.comm	V4L2_INPUT_TYPE_TUNER,4,4
	.comm	V4L2_INPUT_TYPE_CAMERA,4,4
	.comm	TUNER_ABSENT,4,4
	.comm	EINVAL,4,4
	.comm	BTTV_NORMS,4,4
	.comm	BT848_DSTATUS_PRES,4,4
	.comm	BT848_DSTATUS_HLOC,4,4
	.comm	BT848_DSTATUS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
