	.file	"extr_opl3sa2.c_snd_opl3sa2_interrupt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_opl3sa2_interrupt, @function
snd_opl3sa2_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	test	rsi, rsi
	je	.L29
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	r14d, r14d
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r13, QWORD PTR [rsi]
	mov	esi, DWORD PTR OPL3SA2_IRQ_STATUS[rip]
	mov	rdi, r13
	call	snd_opl3sa2_read@PLT
	mov	ebx, eax
	test	al, 32
	jne	.L30
	test	bl, 16
	je	.L5
.L33:
	mov	rax, QWORD PTR 24[r13]
	test	rax, rax
	je	.L5
	mov	esi, DWORD PTR [rax]
	mov	edi, r12d
	mov	r14d, 1
	call	snd_mpu401_uart_interrupt@PLT
.L5:
	test	bl, 7
	jne	.L31
	and	ebx, 64
	jne	.L32
.L7:
	pop	rbx
	.cfi_remember_state
	.cfi_restore 3
	.cfi_def_cfa_offset 40
	mov	edi, r14d
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_restore 14
	.cfi_def_cfa_offset 8
	jmp	IRQ_RETVAL@PLT
	.p2align 4,,10
	.p2align 3
.L30:
	.cfi_restore_state
	mov	edi, DWORD PTR 32[r13]
	mov	r14d, 1
	call	snd_opl3_interrupt@PLT
	test	bl, 16
	je	.L5
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L32:
	mov	esi, DWORD PTR OPL3SA2_MASTER_RIGHT[rip]
	mov	rdi, r13
	mov	r14d, 1
	call	snd_opl3sa2_read@PLT
	mov	esi, DWORD PTR OPL3SA2_MASTER_LEFT[rip]
	mov	rdi, r13
	call	snd_opl3sa2_read@PLT
	mov	rdx, QWORD PTR 8[r13]
	test	rdx, rdx
	je	.L7
	cmp	QWORD PTR 0[r13], 0
	je	.L7
	mov	esi, DWORD PTR SNDRV_CTL_EVENT_MASK_VALUE[rip]
	mov	rdi, rbp
	call	snd_ctl_notify@PLT
	mov	rdx, QWORD PTR 0[r13]
	mov	esi, DWORD PTR SNDRV_CTL_EVENT_MASK_VALUE[rip]
	mov	rdi, rbp
	call	snd_ctl_notify@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L31:
	mov	esi, DWORD PTR 16[r13]
	mov	edi, r12d
	mov	r14d, 1
	call	snd_wss_interrupt@PLT
	and	ebx, 64
	je	.L7
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	mov	eax, DWORD PTR IRQ_NONE[rip]
	ret
	.cfi_endproc
.LFE0:
	.size	snd_opl3sa2_interrupt, .-snd_opl3sa2_interrupt
	.comm	SNDRV_CTL_EVENT_MASK_VALUE,4,4
	.comm	OPL3SA2_MASTER_RIGHT,4,4
	.comm	OPL3SA2_MASTER_LEFT,4,4
	.comm	OPL3SA2_IRQ_STATUS,4,4
	.comm	IRQ_NONE,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_opl3sa2.c_snd_opl3sa2_interrupt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_opl3sa2_interrupt, %function
snd_opl3sa2_interrupt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r6, r1, #0
	beq	.L26
	ldr	r5, [r6]
	ldr	r3, .L31
	mov	r7, r0
	ldr	r1, [r3]
	mov	r0, r5
	bl	snd_opl3sa2_read
	mov	r4, r0
	ands	r0, r0, #32
	bne	.L27
	tst	r4, #16
	beq	.L5
.L30:
	ldr	r3, [r5, #12]
	cmp	r3, #0
	beq	.L5
	mov	r0, r7
	ldr	r1, [r3]
	bl	snd_mpu401_uart_interrupt
	mov	r0, #1
.L5:
	tst	r4, #7
	bne	.L28
	tst	r4, #64
	bne	.L29
.L7:
	pop	{r4, r5, r6, r7, r8, lr}
	b	IRQ_RETVAL
.L27:
	ldr	r0, [r5, #16]
	bl	snd_opl3_interrupt
	tst	r4, #16
	mov	r0, #1
	beq	.L5
	b	.L30
.L29:
	ldr	r3, .L31+4
	mov	r0, r5
	ldr	r1, [r3]
	bl	snd_opl3sa2_read
	ldr	r3, .L31+8
	mov	r0, r5
	ldr	r1, [r3]
	bl	snd_opl3sa2_read
	ldr	r2, [r5, #4]
	cmp	r2, #0
	beq	.L10
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L10
	ldr	r4, .L31+12
	mov	r0, r6
	ldr	r1, [r4]
	bl	snd_ctl_notify
	mov	r0, r6
	ldr	r1, [r4]
	ldr	r2, [r5]
	bl	snd_ctl_notify
	mov	r0, #1
	b	.L7
.L28:
	mov	r0, r7
	ldr	r1, [r5, #8]
	bl	snd_wss_interrupt
	tst	r4, #64
	mov	r0, #1
	beq	.L7
	b	.L29
.L26:
	ldr	r3, .L31+16
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, lr}
	b	IRQ_RETVAL
.L32:
	.align	2
.L31:
	.word	OPL3SA2_IRQ_STATUS
	.word	OPL3SA2_MASTER_RIGHT
	.word	OPL3SA2_MASTER_LEFT
	.word	SNDRV_CTL_EVENT_MASK_VALUE
	.word	IRQ_NONE
	.size	snd_opl3sa2_interrupt, .-snd_opl3sa2_interrupt
	.comm	SNDRV_CTL_EVENT_MASK_VALUE,4,4
	.comm	OPL3SA2_MASTER_RIGHT,4,4
	.comm	OPL3SA2_MASTER_LEFT,4,4
	.comm	OPL3SA2_IRQ_STATUS,4,4
	.comm	IRQ_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
