	.file	"extr_cxusb-analog.c_cxusb_medion_enum_input.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"cx25840 input status query failed (%d)\n"
	.text
	.p2align 4
	.type	cxusb_medion_enum_input, @function
cxusb_medion_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, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	video_drvdata@PLT
	mov	r8d, DWORD PTR EINVAL[rip]
	mov	rbp, rax
	mov	rax, QWORD PTR [rbx]
	neg	r8d
	cmp	QWORD PTR CXUSB_INPUT_CNT[rip], rax
	jbe	.L1
	mov	rsi, QWORD PTR cxusb_medion_inputs[rip]
	lea	rdx, [rax+rax*2]
	mov	rcx, QWORD PTR 8[rbp]
	xor	r8d, r8d
	lea	rdx, [rsi+rdx*8]
	movdqu	xmm0, XMMWORD PTR [rdx]
	movups	XMMWORD PTR [rbx], xmm0
	mov	rdx, QWORD PTR 16[rdx]
	mov	QWORD PTR [rbx], rax
	mov	QWORD PTR 16[rbx], rdx
	mov	edx, DWORD PTR V4L2_IN_CAP_STD[rip]
	or	DWORD PTR 16[rbx], edx
	cmp	QWORD PTR [rcx], rax
	je	.L10
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r8d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rcx]
	mov	r8, rsp
	mov	edx, DWORD PTR g_input_status[rip]
	mov	QWORD PTR [rsp], 0
	mov	esi, DWORD PTR video[rip]
	mov	rcx, r8
	call	v4l2_subdev_call@PLT
	test	eax, eax
	jne	.L12
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR 8[rbx], rax
.L5:
	xor	r8d, r8d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, QWORD PTR 0[rbp]
	mov	edx, eax
	lea	rsi, .LC0[rip]
	call	dev_warn@PLT
	jmp	.L5
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	cxusb_medion_enum_input, .-cxusb_medion_enum_input
	.comm	video,4,4
	.comm	g_input_status,4,4
	.comm	cxusb_medion_inputs,8,8
	.comm	V4L2_IN_CAP_STD,4,4
	.comm	EINVAL,4,4
	.comm	CXUSB_INPUT_CNT,8,8
	.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_cxusb-analog.c_cxusb_medion_enum_input.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cx25840 input status query failed (%d)\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cxusb_medion_enum_input, %function
cxusb_medion_enum_input:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r2
	ldr	r3, .L14
	sub	sp, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	video_drvdata
	ldr	r2, .L14+4
	ldr	r3, [r4]
	ldr	r2, [r2]
	cmp	r2, r3
	bls	.L10
	ldr	r2, .L14+8
	ldr	ip, [r0, #4]
	ldr	r2, [r2]
	add	r1, r3, r3, lsl #1
	ldr	lr, .L14+12
	add	r2, r2, r1, lsl #2
	mov	r5, r0
	ldm	r2, {r0, r1, r2}
	stm	r4, {r0, r1, r2}
	ldr	r1, [ip]
	ldr	r0, [lr]
	cmp	r1, r3
	orr	r2, r2, r0
	str	r3, [r4]
	str	r2, [r4, #8]
	beq	.L11
.L7:
	mov	r0, #0
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L10:
	ldr	r3, .L14+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L11:
	mov	lr, #0
	ldr	r3, .L14+20
	ldr	r2, .L14+24
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r3, sp
	ldr	r0, [ip, #4]
	str	lr, [sp]
	bl	v4l2_subdev_call
	subs	r2, r0, #0
	ldreq	r3, [sp]
	streq	r3, [r4, #4]
	beq	.L7
.L13:
	ldr	r0, [r5]
	ldr	r1, .L14+28
	bl	dev_warn
	b	.L7
.L12:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC1
	.word	CXUSB_INPUT_CNT
	.word	cxusb_medion_inputs
	.word	V4L2_IN_CAP_STD
	.word	EINVAL
	.word	video
	.word	g_input_status
	.word	.LC0
	.size	cxusb_medion_enum_input, .-cxusb_medion_enum_input
	.comm	video,4,4
	.comm	g_input_status,4,4
	.comm	cxusb_medion_inputs,4,4
	.comm	V4L2_IN_CAP_STD,4,4
	.comm	EINVAL,4,4
	.comm	CXUSB_INPUT_CNT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
