	.file	"extr_korg1212.c_snd_korg1212_free.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_korg1212_free, @function
snd_korg1212_free:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	call	snd_korg1212_TurnOffIdleMonitor@PLT
	cmp	QWORD PTR 0[rbp], 0
	js	.L2
	mov	rdi, rbp
	call	snd_korg1212_DisableCardInterrupts@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	rsi, rbp
	call	free_irq@PLT
	mov	QWORD PTR 0[rbp], -1
.L2:
	mov	rdi, QWORD PTR 48[rbp]
	test	rdi, rdi
	je	.L3
	call	iounmap@PLT
	mov	QWORD PTR 48[rbp], 0
.L3:
	mov	edi, DWORD PTR 8[rbp]
	call	pci_release_regions@PLT
	cmp	QWORD PTR 40[rbp], 0
	je	.L4
	lea	rdi, 40[rbp]
	call	snd_dma_free_pages@PLT
	mov	QWORD PTR 40[rbp], 0
.L4:
	cmp	QWORD PTR 32[rbp], 0
	je	.L5
	lea	rdi, 32[rbp]
	call	snd_dma_free_pages@PLT
	mov	QWORD PTR 32[rbp], 0
.L5:
	cmp	QWORD PTR 24[rbp], 0
	je	.L6
	lea	rdi, 24[rbp]
	call	snd_dma_free_pages@PLT
	mov	QWORD PTR 24[rbp], 0
.L6:
	cmp	QWORD PTR 16[rbp], 0
	je	.L7
	lea	rdi, 16[rbp]
	call	snd_dma_free_pages@PLT
	mov	QWORD PTR 16[rbp], 0
.L7:
	mov	edi, DWORD PTR 8[rbp]
	call	pci_disable_device@PLT
	mov	rdi, rbp
	call	kfree@PLT
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	snd_korg1212_free, .-snd_korg1212_free
	.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_korg1212.c_snd_korg1212_free.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_korg1212_free, %function
snd_korg1212_free:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	snd_korg1212_TurnOffIdleMonitor
	ldr	r3, [r4]
	cmp	r3, #0
	blt	.L2
	mov	r0, r4
	bl	snd_korg1212_DisableCardInterrupts
	mov	r1, r4
	ldr	r0, [r4]
	bl	free_irq
	mvn	r3, #0
	str	r3, [r4]
.L2:
	ldr	r0, [r4, #24]
	cmp	r0, #0
	beq	.L3
	bl	iounmap
	mov	r3, #0
	str	r3, [r4, #24]
.L3:
	ldr	r0, [r4, #4]
	bl	pci_release_regions
	ldr	r3, [r4, #20]
	cmp	r3, #0
	beq	.L4
	add	r0, r4, #20
	bl	snd_dma_free_pages
	mov	r3, #0
	str	r3, [r4, #20]
.L4:
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L5
	add	r0, r4, #16
	bl	snd_dma_free_pages
	mov	r3, #0
	str	r3, [r4, #16]
.L5:
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L6
	add	r0, r4, #12
	bl	snd_dma_free_pages
	mov	r3, #0
	str	r3, [r4, #12]
.L6:
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L7
	add	r0, r4, #8
	bl	snd_dma_free_pages
	mov	r3, #0
	str	r3, [r4, #8]
.L7:
	ldr	r0, [r4, #4]
	bl	pci_disable_device
	mov	r0, r4
	bl	kfree
	mov	r0, #0
	pop	{r4, pc}
	.size	snd_korg1212_free, .-snd_korg1212_free
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
