	.file	"extr_sparcspkr.c_grover_spkr_event.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	grover_spkr_event, @function
grover_spkr_event:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	edi, DWORD PTR [rdi]
	mov	ebx, edx
	call	dev_get_drvdata@PLT
	cmp	DWORD PTR EV_SND[rip], r12d
	jne	.L7
	mov	rbp, rax
	cmp	ebx, 128
	je	.L3
	mov	eax, -1
	cmp	ebx, 129
	je	.L12
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	test	r13d, r13d
	jne	.L9
.L5:
	xor	esi, esi
	mov	rdi, rbp
	call	spin_lock_irqsave@PLT
	mov	r12, QWORD PTR 8[rbp]
	mov	rdi, r12
	call	inb_p@PLT
	mov	rsi, r12
	and	eax, 252
	mov	edi, eax
	call	outb@PLT
.L6:
	mov	rdi, rbp
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	lea	eax, -21[r13]
	cmp	eax, 32745
	ja	.L5
	mov	eax, 1193182
	cdq
	idiv	r13d
	movzx	r14d, al
	shr	eax, 8
	mov	r12d, eax
.L4:
	xor	esi, esi
	mov	rdi, rbp
	call	spin_lock_irqsave@PLT
	mov	r13, QWORD PTR 8[rbp]
	mov	rdi, r13
	call	inb@PLT
	mov	rsi, r13
	or	eax, 3
	mov	edi, eax
	call	outb@PLT
	mov	rax, QWORD PTR 16[rbp]
	mov	edi, 182
	lea	rsi, 1[rax]
	call	outb@PLT
	mov	rsi, QWORD PTR 16[rbp]
	mov	edi, r14d
	call	outb@PLT
	mov	rsi, QWORD PTR 16[rbp]
	mov	edi, r12d
	call	outb@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r12d, 4
	mov	r14d, 169
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	grover_spkr_event, .-grover_spkr_event
	.comm	EV_SND,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_sparcspkr.c_grover_spkr_event.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	grover_spkr_event, %function
grover_spkr_event:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	ldr	r0, [r0]
	mov	r7, r3
	mov	r5, r2
	bl	dev_get_drvdata
	ldr	r3, .L13
	ldr	r3, [r3]
	cmp	r3, r6
	bne	.L8
	cmp	r5, #128
	mov	r4, r0
	beq	.L3
	cmp	r5, #129
	beq	.L12
.L8:
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	cmp	r7, #0
	bne	.L9
.L5:
	mov	r1, #0
	mov	r0, r4
	bl	spin_lock_irqsave
	ldr	r0, [r4, #4]
	bl	inb_p
	ldr	r1, [r4, #4]
	and	r0, r0, #252
	bl	outb
.L6:
	mov	r0, r4
	mov	r1, #0
	bl	spin_unlock_irqrestore
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldr	r3, .L13+4
	sub	r2, r7, #21
	cmp	r2, r3
	bhi	.L5
	mov	r1, r7
	ldr	r0, .L13+8
	bl	__aeabi_idiv
	and	r6, r0, #255
	lsr	r5, r0, #8
.L4:
	mov	r1, #0
	mov	r0, r4
	bl	spin_lock_irqsave
	ldr	r0, [r4, #4]
	bl	inb
	ldr	r1, [r4, #4]
	orr	r0, r0, #3
	bl	outb
	ldr	r1, [r4, #8]
	mov	r0, #182
	add	r1, r1, #1
	bl	outb
	ldr	r1, [r4, #8]
	mov	r0, r6
	bl	outb
	mov	r0, r5
	ldr	r1, [r4, #8]
	bl	outb
	b	.L6
.L9:
	mov	r5, #4
	mov	r6, #169
	b	.L4
.L14:
	.align	2
.L13:
	.word	EV_SND
	.word	32745
	.word	1193182
	.size	grover_spkr_event, .-grover_spkr_event
	.comm	EV_SND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
