	.file	"extr_t4dwave.c_tr_pci_detach.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tr_pci_detach, @function
tr_pci_detach:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	pcm_unregister@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L1
	mov	edi, r12d
	call	pcm_getdevinfo@PLT
	mov	edi, r12d
	mov	ecx, DWORD PTR 20[rax]
	mov	edx, DWORD PTR 24[rax]
	mov	rbp, rax
	mov	esi, DWORD PTR 28[rax]
	call	bus_release_resource@PLT
	mov	edx, DWORD PTR 16[rbp]
	mov	esi, DWORD PTR 8[rbp]
	mov	edi, r12d
	call	bus_teardown_intr@PLT
	mov	ecx, DWORD PTR 8[rbp]
	mov	edx, DWORD PTR 12[rbp]
	mov	edi, r12d
	mov	esi, DWORD PTR SYS_RES_IRQ[rip]
	call	bus_release_resource@PLT
	mov	edi, DWORD PTR 4[rbp]
	call	bus_dma_tag_destroy@PLT
	mov	edi, DWORD PTR 0[rbp]
	call	snd_mtxfree@PLT
	mov	esi, DWORD PTR M_DEVBUF[rip]
	mov	rdi, rbp
	call	free@PLT
.L1:
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	tr_pci_detach, .-tr_pci_detach
	.comm	SYS_RES_IRQ,4,4
	.comm	M_DEVBUF,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_t4dwave.c_tr_pci_detach.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tr_pci_detach, %function
tr_pci_detach:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r0
	bl	pcm_unregister
	subs	r5, r0, #0
	bne	.L1
	mov	r0, r6
	bl	pcm_getdevinfo
	mov	r4, r0
	mov	r0, r6
	ldr	r3, [r4, #20]
	ldr	r2, [r4, #24]
	ldr	r1, [r4, #28]
	bl	bus_release_resource
	ldr	r2, [r4, #16]
	ldr	r1, [r4, #8]
	mov	r0, r6
	bl	bus_teardown_intr
	ldr	r1, .L5
	ldr	r3, [r4, #8]
	ldr	r1, [r1]
	ldr	r2, [r4, #12]
	mov	r0, r6
	bl	bus_release_resource
	ldr	r0, [r4, #4]
	bl	bus_dma_tag_destroy
	ldr	r0, [r4]
	bl	snd_mtxfree
	ldr	r3, .L5+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	free
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L6:
	.align	2
.L5:
	.word	SYS_RES_IRQ
	.word	M_DEVBUF
	.size	tr_pci_detach, .-tr_pci_detach
	.comm	SYS_RES_IRQ,4,4
	.comm	M_DEVBUF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
