	.file	"extr_dvb-usb-remote.c_legacy_dvb_usb_setkeycode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	legacy_dvb_usb_setkeycode, @function
legacy_dvb_usb_setkeycode:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	input_get_drvdata@PLT
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jle	.L2
	sub	eax, 1
	lea	rcx, 8[rdx+rax*8]
	mov	rax, rdx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	add	rax, 8
	cmp	rax, rcx
	je	.L15
.L5:
	cmp	DWORD PTR [rax], ebp
	jne	.L3
	mov	DWORD PTR 4[rax], ebx
	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
.L15:
	.cfi_restore_state
	mov	esi, DWORD PTR KEY_RESERVED[rip]
	mov	edi, DWORD PTR KEY_UNKNOWN[rip]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	eax, edi
	je	.L8
	add	rdx, 8
	cmp	rdx, rcx
	je	.L2
.L9:
	mov	eax, DWORD PTR 4[rdx]
	cmp	eax, esi
	jne	.L7
.L8:
	mov	DWORD PTR [rdx], ebp
	xor	eax, eax
	mov	DWORD PTR 4[rdx], ebx
	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
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	legacy_dvb_usb_setkeycode, .-legacy_dvb_usb_setkeycode
	.comm	KEY_UNKNOWN,4,4
	.comm	KEY_RESERVED,4,4
	.comm	EINVAL,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_dvb-usb-remote.c_legacy_dvb_usb_setkeycode.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	legacy_dvb_usb_setkeycode, %function
legacy_dvb_usb_setkeycode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r2
	mov	r6, r1
	bl	input_get_drvdata
	ldr	r4, [r0]
	ldr	r2, [r0, #4]
	cmp	r4, #0
	ble	.L2
	mov	lr, r2
	mov	r0, r2
	mov	r3, #0
	b	.L5
.L3:
	cmp	r4, r3
	add	r0, r0, #8
	beq	.L15
.L5:
	ldr	ip, [r2, r3, lsl #3]
	add	r3, r3, #1
	cmp	ip, r6
	bne	.L3
	str	r5, [r0, #4]
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L15:
	ldr	r3, .L16
	ldr	r2, .L16+4
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r3, #0
	b	.L9
.L7:
	cmp	r0, r1
	beq	.L8
	cmp	r4, r3
	add	lr, lr, #8
	beq	.L2
.L9:
	ldr	r0, [lr, #4]
	add	r3, r3, #1
	cmp	r0, r2
	bne	.L7
.L8:
	mov	r0, #0
	str	r6, [lr]
	str	r5, [lr, #4]
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L16+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L17:
	.align	2
.L16:
	.word	KEY_UNKNOWN
	.word	KEY_RESERVED
	.word	EINVAL
	.size	legacy_dvb_usb_setkeycode, .-legacy_dvb_usb_setkeycode
	.comm	KEY_UNKNOWN,4,4
	.comm	KEY_RESERVED,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
