	.file	"extr_ati_remote.c_ati_remote_input_report.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Masked input from channel 0x%02x: data %02x,%02x, mask= 0x%02lx\n"
	.align 8
.LC1:
	.string	"Unknown input from channel 0x%02x: data %02x,%02x\n"
	.align 8
.LC2:
	.string	"channel 0x%02x; data %02x,%02x; index %d; keycode %d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"ati_remote kind=%d\n"
	.text
	.p2align 4
	.type	ati_remote_input_report, @function
ati_remote_input_report:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rbx, QWORD PTR 16[rdi]
	mov	edx, DWORD PTR [rdi]
	mov	rbp, QWORD PTR [rbx]
	cmp	edx, 4
	jne	.L2
	cmp	BYTE PTR 0[rbp], 20
	jne	.L2
	movzx	eax, BYTE PTR 3[rbp]
	test	al, 15
	jne	.L2
	shr	al, 4
	mov	r9d, DWORD PTR channel_mask[rip]
	movzx	edx, BYTE PTR 2[rbp]
	movzx	r12d, al
	movzx	esi, BYTE PTR 1[rbp]
	lea	eax, 1[r12]
	bt	r9d, eax
	jc	.L27
	mov	edi, r12d
	mov	r14, QWORD PTR 48[rbx]
	call	ati_remote_event_lookup@PLT
	mov	r9d, eax
	test	eax, eax
	js	.L28
	movsx	r13, eax
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	movzx	ecx, BYTE PTR 1[rbp]
	movzx	r8d, BYTE PTR 2[rbp]
	mov	rax, QWORD PTR ati_remote_tbl[rip]
	sal	r13, 4
	mov	rdi, QWORD PTR 40[rbx]
	mov	edx, r12d
	lea	rsi, .LC2[rip]
	mov	eax, DWORD PTR 8[rax+r13]
	push	rax
	.cfi_def_cfa_offset 80
	xor	eax, eax
	call	dbginfo@PLT
	mov	rdx, QWORD PTR ati_remote_tbl[rip]
	pop	rcx
	.cfi_def_cfa_offset 72
	pop	rsi
	.cfi_def_cfa_offset 64
	add	rdx, r13
	mov	eax, DWORD PTR [rdx]
	cmp	eax, DWORD PTR KIND_LITERAL[rip]
	je	.L29
	cmp	eax, DWORD PTR KIND_FILTERED[rip]
	jne	.L8
	mov	rax, QWORD PTR 16[rbx]
	mov	r12, QWORD PTR jiffies[rip]
	movzx	ecx, BYTE PTR 1[rbp]
	cmp	BYTE PTR [rax], cl
	je	.L30
.L9:
	mov	DWORD PTR 24[rbx], 0
	mov	QWORD PTR 32[rbx], r12
.L11:
	movzx	edx, BYTE PTR 1[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR 16[rbx]
	movzx	edx, BYTE PTR 2[rbp]
	mov	BYTE PTR 1[rax], dl
	mov	eax, DWORD PTR 24[rbx]
	mov	QWORD PTR 8[rbx], r12
	test	eax, eax
	jle	.L15
	cmp	eax, 4
	jle	.L1
	mov	edi, DWORD PTR repeat_delay[rip]
	mov	rbx, QWORD PTR 32[rbx]
	call	msecs_to_jiffies@PLT
	mov	rdi, r12
	lea	rsi, [rax+rbx]
	call	time_before@PLT
	test	rax, rax
	jne	.L1
.L15:
	mov	rax, QWORD PTR ati_remote_tbl[rip]
	mov	ecx, 1
	mov	rdi, r14
	add	rax, r13
	mov	edx, DWORD PTR 8[rax]
	mov	esi, DWORD PTR 12[rax]
	call	input_event@PLT
	mov	rdi, r14
	call	input_sync@PLT
	add	r13, QWORD PTR ati_remote_tbl[rip]
	mov	rdi, r14
	xor	ecx, ecx
	mov	edx, DWORD PTR 8[r13]
	mov	esi, DWORD PTR 12[r13]
	call	input_event@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, r14
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	input_sync@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rdi]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rsi, rbp
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	ati_remote_dump@PLT
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	mov	rdi, QWORD PTR 40[rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	r8d, edx
	mov	ecx, esi
	pop	rbx
	.cfi_def_cfa_offset 48
	mov	edx, r12d
	pop	rbp
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 32
	lea	rsi, .LC0[rip]
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	dbginfo@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdi, rbx
	call	ati_remote_compute_accel@PLT
	add	r13, QWORD PTR ati_remote_tbl[rip]
	mov	edx, DWORD PTR 0[r13]
	mov	r12d, eax
	lea	eax, -128[rdx]
	cmp	eax, 4
	ja	.L16
	lea	rdx, .L18[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L18:
	.long	.L22-.L18
	.long	.L21-.L18
	.long	.L20-.L18
	.long	.L19-.L18
	.long	.L17-.L18
	.text
.L19:
	mov	edx, r12d
	neg	edx
.L25:
	mov	esi, DWORD PTR REL_X[rip]
	mov	rdi, r14
	call	input_report_rel@PLT
	mov	esi, DWORD PTR REL_Y[rip]
	mov	edx, r12d
	mov	rdi, r14
	call	input_report_rel@PLT
.L23:
	mov	rdi, r14
	call	input_sync@PLT
	mov	rax, QWORD PTR jiffies[rip]
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR 16[rbx]
	movzx	edx, BYTE PTR 1[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR 16[rbx]
	movzx	edx, BYTE PTR 2[rbp]
	mov	BYTE PTR 1[rax], dl
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L21:
	.cfi_restore_state
	mov	edx, r12d
	jmp	.L25
.L22:
	mov	esi, DWORD PTR REL_X[rip]
	mov	edx, r12d
	mov	rdi, r14
	call	input_report_rel@PLT
	mov	edx, r12d
	mov	esi, DWORD PTR REL_Y[rip]
	mov	rdi, r14
	neg	edx
	call	input_report_rel@PLT
	jmp	.L23
.L17:
	mov	ecx, DWORD PTR 4[r13]
	mov	edx, DWORD PTR 8[r13]
	mov	rdi, r14
	mov	esi, DWORD PTR 12[r13]
	imul	ecx, r12d
	call	input_event@PLT
	jmp	.L23
.L20:
	neg	r12d
	mov	edx, r12d
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L28:
	movzx	ecx, BYTE PTR 1[rbp]
	mov	rdi, QWORD PTR 40[rbx]
	mov	edx, r12d
	lea	rsi, .LC1[rip]
	movzx	r8d, BYTE PTR 2[rbp]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	dev_warn@PLT
	.p2align 4,,10
	.p2align 3
.L30:
	.cfi_restore_state
	movzx	ecx, BYTE PTR 2[rbp]
	cmp	BYTE PTR 1[rax], cl
	jne	.L9
	mov	edi, DWORD PTR repeat_filter[rip]
	mov	r15, QWORD PTR 8[rbx]
	call	msecs_to_jiffies@PLT
	mov	rdi, r12
	lea	rsi, [rax+r15]
	call	time_before@PLT
	test	rax, rax
	jne	.L10
	mov	rax, QWORD PTR 16[rbx]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L29:
	mov	r8d, DWORD PTR 8[rdx]
	mov	ecx, DWORD PTR 4[rdx]
	mov	rdi, r14
	mov	esi, DWORD PTR 12[rdx]
	mov	edx, r8d
	call	input_event@PLT
	mov	rdi, r14
	call	input_sync@PLT
	mov	rax, QWORD PTR jiffies[rip]
	mov	QWORD PTR 8[rbx], rax
	jmp	.L1
.L16:
	mov	rdi, QWORD PTR 40[rbx]
	lea	rsi, .LC3[rip]
	call	dev_dbg@PLT
	jmp	.L23
.L10:
	add	DWORD PTR 24[rbx], 1
	mov	rax, QWORD PTR 16[rbx]
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	ati_remote_input_report, .-ati_remote_input_report
	.comm	repeat_filter,4,4
	.comm	repeat_delay,4,4
	.comm	jiffies,8,8
	.comm	channel_mask,4,4
	.comm	ati_remote_tbl,8,8
	.comm	REL_Y,4,4
	.comm	REL_X,4,4
	.comm	KIND_LITERAL,4,4
	.comm	KIND_FILTERED,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_ati_remote.c_ati_remote_input_report.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Masked input from channel 0x%02x: data %02x,%02x, m"
	.ascii	"ask= 0x%02lx\012\000"
	.align	2
.LC1:
	.ascii	"Unknown input from channel 0x%02x: data %02x,%02x\012"
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"channel 0x%02x; data %02x,%02x; index %d; keycode %"
	.ascii	"d\012\000"
	.align	2
.LC3:
	.ascii	"ati_remote kind=%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ati_remote_input_report, %function
ati_remote_input_report:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r2, [r0]
	ldr	r5, [r0, #8]
	cmp	r2, #4
	ldr	r4, [r5]
	sub	sp, sp, #16
	bne	.L2
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #20
	bne	.L2
	ldrb	r3, [r4, #3]	@ zero_extendqisi2
	tst	r3, #15
	bne	.L2
	ldr	r2, .L31
	lsr	r7, r3, #4
	ldr	ip, [r2]
	add	r3, r7, #1
	asr	r3, ip, r3
	tst	r3, #1
	ldrb	r1, [r4, #1]	@ zero_extendqisi2
	ldrb	r2, [r4, #2]	@ zero_extendqisi2
	bne	.L27
	mov	r0, r7
	ldr	r8, [r5, #24]
	bl	ati_remote_event_lookup
	subs	r6, r0, #0
	blt	.L28
	ldr	r9, .L31+4
	ldrb	r3, [r4, #1]	@ zero_extendqisi2
	ldr	r2, [r9]
	ldr	r0, [r5, #20]
	add	r2, r2, r6, lsl #4
	ldr	r2, [r2, #8]
	str	r6, [sp, #4]
	str	r2, [sp, #8]
	ldrb	r1, [r4, #2]	@ zero_extendqisi2
	mov	r2, r7
	str	r1, [sp]
	ldr	r1, .L31+8
	bl	dbginfo
	ldr	r3, [r9]
	ldr	r1, .L31+12
	ldr	r2, [r3, r6, lsl #4]
	ldr	r1, [r1]
	lsl	r7, r6, #4
	cmp	r2, r1
	add	r1, r3, r7
	beq	.L29
	ldr	r3, .L31+16
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L8
	ldr	r3, [r5, #8]
	ldrb	r1, [r4, #1]	@ zero_extendqisi2
	ldrb	r0, [r3]	@ zero_extendqisi2
	ldr	r2, .L31+20
	cmp	r0, r1
	ldr	r6, [r2]
	beq	.L30
.L9:
	mov	r2, #0
	str	r6, [r5, #16]
	str	r2, [r5, #12]
.L11:
	ldrb	r2, [r4, #1]	@ zero_extendqisi2
	strb	r2, [r3]
	ldrb	r2, [r4, #2]	@ zero_extendqisi2
	ldr	r3, [r5, #8]
	strb	r2, [r3, #1]
	ldr	r3, [r5, #12]
	str	r6, [r5, #4]
	cmp	r3, #0
	ble	.L15
	cmp	r3, #4
	ble	.L1
	ldr	r3, .L31+24
	ldr	r4, [r5, #16]
	ldr	r0, [r3]
	bl	msecs_to_jiffies
	mov	r1, r0
	mov	r0, r6
	add	r1, r1, r4
	bl	time_before
	cmp	r0, #0
	bne	.L1
.L15:
	ldr	r1, [r9]
	mov	r3, #1
	add	r1, r1, r7
	ldr	r2, [r1, #8]
	mov	r0, r8
	ldr	r1, [r1, #12]
	bl	input_event
	mov	r0, r8
	bl	input_sync
	ldr	r2, [r9]
	mov	r3, #0
	add	r7, r2, r7
	mov	r0, r8
	ldr	r2, [r7, #8]
	ldr	r1, [r7, #12]
	bl	input_event
	mov	r0, r8
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	input_sync
.L2:
	mov	r1, r4
	ldr	r0, [r0, #4]
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	ati_remote_dump
.L27:
	mov	r3, r1
	ldr	r0, [r5, #20]
	ldr	r1, .L31+28
	stm	sp, {r2, ip}
	mov	r2, r7
	bl	dbginfo
.L1:
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	mov	r0, r5
	bl	ati_remote_compute_accel
	ldr	r1, [r9]
	mov	r9, r0
	ldr	r2, [r1, r6, lsl #4]
	add	r7, r1, r7
	sub	r3, r2, #128
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L16
.L18:
	.word	.L22
	.word	.L21
	.word	.L20
	.word	.L19
	.word	.L17
.L17:
	ldr	r3, [r7, #4]
	ldr	r2, [r7, #8]
	mul	r3, r0, r3
	ldr	r1, [r7, #12]
	mov	r0, r8
	bl	input_event
.L23:
	mov	r0, r8
	bl	input_sync
	ldr	r2, .L31+20
	ldr	r3, [r5, #8]
	ldr	r2, [r2]
	str	r2, [r5, #4]
	ldrb	r2, [r4, #1]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [r5, #8]
	ldrb	r2, [r4, #2]	@ zero_extendqisi2
	strb	r2, [r3, #1]
	b	.L1
.L19:
	ldr	r3, .L31+32
	rsb	r2, r0, #0
.L25:
	ldr	r1, [r3]
	mov	r0, r8
	bl	input_report_rel
	ldr	r3, .L31+36
	mov	r2, r9
	mov	r0, r8
	ldr	r1, [r3]
	bl	input_report_rel
	b	.L23
.L20:
	rsb	r9, r0, #0
	mov	r2, r9
	ldr	r3, .L31+32
	b	.L25
.L21:
	mov	r2, r0
	ldr	r3, .L31+32
	b	.L25
.L22:
	ldr	r3, .L31+32
	mov	r2, r0
	ldr	r1, [r3]
	mov	r0, r8
	bl	input_report_rel
	ldr	r3, .L31+36
	mov	r0, r8
	ldr	r1, [r3]
	rsb	r2, r9, #0
	bl	input_report_rel
	b	.L23
.L28:
	ldrb	r1, [r4, #2]	@ zero_extendqisi2
	ldr	r0, [r5, #20]
	ldrb	r3, [r4, #1]	@ zero_extendqisi2
	mov	r2, r7
	str	r1, [sp]
	ldr	r1, .L31+40
	bl	dev_warn
	b	.L1
.L30:
	ldrb	r1, [r3, #1]	@ zero_extendqisi2
	ldrb	r2, [r4, #2]	@ zero_extendqisi2
	cmp	r1, r2
	bne	.L9
	ldr	r3, .L31+44
	ldr	r10, [r5, #4]
	ldr	r0, [r3]
	bl	msecs_to_jiffies
	add	r1, r0, r10
	mov	r0, r6
	bl	time_before
	cmp	r0, #0
	bne	.L10
	ldr	r3, [r5, #8]
	b	.L9
.L29:
	ldr	r3, [r1, #4]
	ldr	r2, [r1, #8]
	mov	r0, r8
	ldr	r1, [r1, #12]
	bl	input_event
	mov	r0, r8
	bl	input_sync
	ldr	r3, .L31+20
	ldr	r3, [r3]
	str	r3, [r5, #4]
	b	.L1
.L10:
	ldr	r2, [r5, #12]
	ldr	r3, [r5, #8]
	add	r2, r2, #1
	str	r2, [r5, #12]
	b	.L11
.L16:
	ldr	r1, .L31+48
	ldr	r0, [r5, #20]
	bl	dev_dbg
	b	.L23
.L32:
	.align	2
.L31:
	.word	channel_mask
	.word	ati_remote_tbl
	.word	.LC2
	.word	KIND_LITERAL
	.word	KIND_FILTERED
	.word	jiffies
	.word	repeat_delay
	.word	.LC0
	.word	REL_X
	.word	REL_Y
	.word	.LC1
	.word	repeat_filter
	.word	.LC3
	.size	ati_remote_input_report, .-ati_remote_input_report
	.comm	repeat_filter,4,4
	.comm	repeat_delay,4,4
	.comm	jiffies,4,4
	.comm	channel_mask,4,4
	.comm	ati_remote_tbl,4,4
	.comm	REL_Y,4,4
	.comm	REL_X,4,4
	.comm	KIND_LITERAL,4,4
	.comm	KIND_FILTERED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
