	.file	"extr_zylonite-wm97xx.c_wm97xx_acc_startup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"zylonite accelerated touchscreen driver, %d samples/sec\n"
	.text
	.p2align 4
	.type	wm97xx_acc_startup, @function
wm97xx_acc_startup:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR 24[rdi], 0
	je	.L2
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdi, QWORD PTR cinfo[rip]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, QWORD PTR cinfo[rip]
	lea	rax, [rbx+rbx*2]
	lea	rax, [rdi+rax*8]
	mov	rcx, QWORD PTR [rax]
	cmp	QWORD PTR 0[rbp], rcx
	jne	.L7
	mov	rdx, QWORD PTR 8[rax]
	cmp	rdx, QWORD PTR cont_rate[rip]
	mov	QWORD PTR sp_idx[rip], rbx
	jge	.L6
.L7:
	add	rbx, 1
.L3:
	call	ARRAY_SIZE@PLT
	cmp	eax, ebx
	jg	.L8
	mov	rax, QWORD PTR sp_idx[rip]
	lea	rdx, [rax+rax*2]
	mov	rax, QWORD PTR cinfo[rip]
	lea	rax, [rax+rdx*8]
	mov	rdx, QWORD PTR 8[rax]
.L6:
	mov	eax, DWORD PTR 16[rax]
	mov	edi, DWORD PTR 8[rbp]
	lea	rsi, .LC0[rip]
	mov	DWORD PTR 16[rbp], eax
	mov	eax, DWORD PTR ac97_touch_slot[rip]
	mov	DWORD PTR 12[rbp], eax
	call	dev_info@PLT
	add	rsp, 8
	.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
.L2:
	.cfi_restore 3
	.cfi_restore 6
	mov	eax, DWORD PTR ENODEV[rip]
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	wm97xx_acc_startup, .-wm97xx_acc_startup
	.comm	sp_idx,8,8
	.comm	cont_rate,8,8
	.comm	cinfo,8,8
	.comm	ac97_touch_slot,4,4
	.comm	ENODEV,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_zylonite-wm97xx.c_wm97xx_acc_startup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"zylonite accelerated touchscreen driver, %d samples"
	.ascii	"/sec\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wm97xx_acc_startup, %function
wm97xx_acc_startup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #16]
	cmp	r3, #0
	beq	.L2
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, .L14
	mov	r8, r0
	mov	r4, #0
	ldr	r0, [r5]
	ldr	r6, .L14+4
	ldr	r7, .L14+8
	b	.L3
.L8:
	ldr	r0, [r5]
	ldr	r1, [r8]
	ldr	r2, [r0, r3, lsl #2]
	add	r3, r0, r3, lsl #2
	cmp	r1, r2
	bne	.L7
	ldr	r2, [r3, #4]
	ldr	r1, [r7]
	str	r4, [r6]
	cmp	r2, r1
	bge	.L6
.L7:
	add	r4, r4, #1
.L3:
	bl	ARRAY_SIZE
	cmp	r0, r4
	add	r3, r4, r4, lsl #1
	bgt	.L8
	ldr	r2, [r6]
	ldr	r3, [r5]
	add	r2, r2, r2, lsl #1
	add	r3, r3, r2, lsl #2
	ldr	r2, [r3, #4]
.L6:
	ldr	r0, .L14+12
	ldr	r1, [r3, #8]
	ldr	r3, [r0]
	str	r1, [r8, #12]
	ldr	r0, [r8, #4]
	ldr	r1, .L14+16
	str	r3, [r8, #8]
	bl	dev_info
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L14+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L15:
	.align	2
.L14:
	.word	cinfo
	.word	sp_idx
	.word	cont_rate
	.word	ac97_touch_slot
	.word	.LC0
	.word	ENODEV
	.size	wm97xx_acc_startup, .-wm97xx_acc_startup
	.comm	sp_idx,4,4
	.comm	cont_rate,4,4
	.comm	cinfo,4,4
	.comm	ac97_touch_slot,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
