	.file	"extr_img-ir-hw.c_img_ir_isr_hw.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	img_ir_isr_hw
	.type	img_ir_isr_hw, @function
img_ir_isr_hw:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR 24[rdi]
	test	rax, rax
	je	.L13
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	esi, DWORD PTR IMG_IR_STATUS[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, DWORD PTR [rax]
	call	img_ir_read@PLT
	mov	edx, DWORD PTR IMG_IR_RXDVAL[rip]
	or	edx, DWORD PTR IMG_IR_RXDVALD2[rip]
	mov	r12, rax
	test	edx, eax
	jne	.L4
	mov	rax, QWORD PTR 0[rbp]
	mov	eax, DWORD PTR [rax+rbx*4]
	test	DWORD PTR IMG_IR_QUIRK_CODE_IRQ[rip], eax
	je	.L1
	cmp	QWORD PTR 16[rbp], 0
	je	.L17
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	not	edx
	mov	esi, DWORD PTR IMG_IR_STATUS[rip]
	mov	rdi, rbp
	and	r12d, edx
	mov	edx, r12d
	call	img_ir_write@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, rbp
	mov	ecx, DWORD PTR IMG_IR_RXDLEN_SHIFT[rip]
	and	r12d, DWORD PTR IMG_IR_RXDLEN[rip]
	mov	esi, DWORD PTR IMG_IR_DATA_LW[rip]
	mov	eax, DWORD PTR [rax+rbx*4]
	and	eax, DWORD PTR IMG_IR_QUIRK_CODE_LEN_INCR[rip]
	sar	r12d, cl
	cmp	eax, 1
	sbb	r12d, -1
	call	img_ir_read@PLT
	mov	esi, DWORD PTR IMG_IR_DATA_UP[rip]
	mov	rdi, rbp
	mov	rbx, rax
	call	img_ir_read@PLT
	mov	edx, ebx
	mov	esi, r12d
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	img_ir_handle_data@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	.cfi_offset 6, -24
	.cfi_offset 12, -16
	mov	esi, DWORD PTR IMG_IR_CONTROL[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	img_ir_write@PLT
	mov	esi, DWORD PTR IMG_IR_IRQ_ENABLE[rip]
	mov	rdi, rbp
	call	img_ir_read@PLT
	mov	edx, DWORD PTR IMG_IR_IRQ_EDGE[rip]
	mov	esi, DWORD PTR IMG_IR_IRQ_ENABLE[rip]
	mov	rdi, rbp
	mov	DWORD PTR 8[rbp], eax
	and	edx, eax
	call	img_ir_write@PLT
	mov	edi, 5
	call	msecs_to_jiffies@PLT
	add	rax, QWORD PTR jiffies[rip]
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 24
	lea	rdi, 12[rbp]
	mov	rsi, rax
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	mod_timer@PLT
	.cfi_endproc
.LFE0:
	.size	img_ir_isr_hw, .-img_ir_isr_hw
	.comm	jiffies,8,8
	.comm	IMG_IR_STATUS,4,4
	.comm	IMG_IR_RXDVALD2,4,4
	.comm	IMG_IR_RXDVAL,4,4
	.comm	IMG_IR_RXDLEN_SHIFT,4,4
	.comm	IMG_IR_RXDLEN,4,4
	.comm	IMG_IR_QUIRK_CODE_LEN_INCR,4,4
	.comm	IMG_IR_QUIRK_CODE_IRQ,4,4
	.comm	IMG_IR_IRQ_ENABLE,4,4
	.comm	IMG_IR_IRQ_EDGE,4,4
	.comm	IMG_IR_DATA_UP,4,4
	.comm	IMG_IR_DATA_LW,4,4
	.comm	IMG_IR_CONTROL,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_img-ir-hw.c_img_ir_isr_hw.c"
	.text
	.align	2
	.global	img_ir_isr_hw
	.syntax unified
	.arm
	.fpu softvfp
	.type	img_ir_isr_hw, %function
img_ir_isr_hw:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #16]
	cmp	r3, #0
	bxeq	lr
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, .L18
	ldr	r7, [r3]
	ldr	r1, [r6]
	mov	r4, r0
	bl	img_ir_read
	ldr	r2, .L18+4
	ldr	r3, .L18+8
	ldr	r5, [r2]
	ldr	r2, [r3]
	orr	r5, r5, r2
	tst	r0, r5
	bne	.L4
	ldr	r2, [r4]
	ldr	r3, .L18+12
	ldr	r2, [r2, r7, lsl #2]
	ldr	r3, [r3]
	tst	r2, r3
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r2, [r4, #12]
	cmp	r2, #0
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L18+16
	ldr	r5, .L18+20
	ldr	r1, [r3]
	mov	r0, r4
	bl	img_ir_write
	ldr	r1, [r5]
	mov	r0, r4
	bl	img_ir_read
	ldr	r3, .L18+24
	ldr	r1, [r5]
	ldr	r2, [r3]
	str	r0, [r4, #4]
	and	r2, r2, r0
	mov	r0, r4
	bl	img_ir_write
	mov	r0, #5
	bl	msecs_to_jiffies
	mov	r1, r0
	ldr	r3, .L18+28
	add	r0, r4, #8
	ldr	r3, [r3]
	pop	{r4, r5, r6, r7, r8, lr}
	add	r1, r1, r3
	b	mod_timer
.L4:
	bic	r5, r0, r5
	mov	r2, r5
	ldr	r1, [r6]
	mov	r0, r4
	bl	img_ir_write
	ldr	r0, .L18+32
	ldr	r3, .L18+36
	ldr	r0, [r0]
	ldr	r1, [r4]
	ldr	r2, .L18+40
	ldr	r3, [r3]
	and	r5, r5, r0
	ldr	ip, [r1, r7, lsl #2]
	asr	r5, r5, r3
	ldr	r1, [r2]
	ldr	r3, .L18+44
	tst	ip, r1
	mov	r0, r4
	ldr	r1, [r3]
	addne	r5, r5, #1
	bl	img_ir_read
	mov	r6, r0
	ldr	r3, .L18+48
	mov	r0, r4
	ldr	r1, [r3]
	bl	img_ir_read
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	img_ir_handle_data
.L19:
	.align	2
.L18:
	.word	IMG_IR_STATUS
	.word	IMG_IR_RXDVAL
	.word	IMG_IR_RXDVALD2
	.word	IMG_IR_QUIRK_CODE_IRQ
	.word	IMG_IR_CONTROL
	.word	IMG_IR_IRQ_ENABLE
	.word	IMG_IR_IRQ_EDGE
	.word	jiffies
	.word	IMG_IR_RXDLEN
	.word	IMG_IR_RXDLEN_SHIFT
	.word	IMG_IR_QUIRK_CODE_LEN_INCR
	.word	IMG_IR_DATA_LW
	.word	IMG_IR_DATA_UP
	.size	img_ir_isr_hw, .-img_ir_isr_hw
	.comm	jiffies,4,4
	.comm	IMG_IR_STATUS,4,4
	.comm	IMG_IR_RXDVALD2,4,4
	.comm	IMG_IR_RXDVAL,4,4
	.comm	IMG_IR_RXDLEN_SHIFT,4,4
	.comm	IMG_IR_RXDLEN,4,4
	.comm	IMG_IR_QUIRK_CODE_LEN_INCR,4,4
	.comm	IMG_IR_QUIRK_CODE_IRQ,4,4
	.comm	IMG_IR_IRQ_ENABLE,4,4
	.comm	IMG_IR_IRQ_EDGE,4,4
	.comm	IMG_IR_DATA_UP,4,4
	.comm	IMG_IR_DATA_LW,4,4
	.comm	IMG_IR_CONTROL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
