	.file	"extr_emufx.c_snd_emu10k1_fx8010_unregister_irq_handler.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	snd_emu10k1_fx8010_unregister_irq_handler
	.type	snd_emu10k1_fx8010_unregister_irq_handler, @function
snd_emu10k1_fx8010_unregister_irq_handler:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	xor	esi, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	spin_lock_irqsave@PLT
	mov	rax, QWORD PTR 8[r12]
	cmp	rax, rbp
	jne	.L2
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdx, QWORD PTR [rax]
	cmp	rdx, rbp
	je	.L16
	mov	rax, rdx
.L2:
	test	rax, rax
	jne	.L17
.L4:
	mov	rdi, r12
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	mov	rdi, rbp
	call	kfree@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rdx, QWORD PTR 0[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rax, QWORD PTR 0[rbp]
	mov	QWORD PTR 8[r12], rax
	test	rax, rax
	jne	.L4
	mov	esi, DWORD PTR INTE_FXDSPENABLE[rip]
	mov	rdi, r12
	call	snd_emu10k1_intr_disable@PLT
	mov	QWORD PTR 16[r12], 0
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	snd_emu10k1_fx8010_unregister_irq_handler, .-snd_emu10k1_fx8010_unregister_irq_handler
	.comm	INTE_FXDSPENABLE,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_emufx.c_snd_emu10k1_fx8010_unregister_irq_handler.c"
	.text
	.align	2
	.global	snd_emu10k1_fx8010_unregister_irq_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_emu10k1_fx8010_unregister_irq_handler, %function
snd_emu10k1_fx8010_unregister_irq_handler:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	mov	r4, r1
	mov	r1, #0
	bl	spin_lock_irqsave
	ldr	r3, [r5, #4]
	cmp	r3, r4
	bne	.L2
	b	.L15
.L17:
	ldr	r2, [r3]
	cmp	r2, r4
	beq	.L16
	mov	r3, r2
.L2:
	cmp	r3, #0
	bne	.L17
.L4:
	mov	r1, #0
	mov	r0, r5
	bl	spin_unlock_irqrestore
	mov	r0, r4
	bl	kfree
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L16:
	ldr	r2, [r4]
	str	r2, [r3]
	b	.L4
.L15:
	ldr	r6, [r4]
	cmp	r6, #0
	str	r6, [r5, #4]
	bne	.L4
	ldr	r3, .L18
	mov	r0, r5
	ldr	r1, [r3]
	bl	snd_emu10k1_intr_disable
	str	r6, [r5, #8]
	b	.L4
.L19:
	.align	2
.L18:
	.word	INTE_FXDSPENABLE
	.size	snd_emu10k1_fx8010_unregister_irq_handler, .-snd_emu10k1_fx8010_unregister_irq_handler
	.comm	INTE_FXDSPENABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
