	.file	"extr_aic7xxx_core.c_ahc_fini_scbdata.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ahc_fini_scbdata, @function
ahc_fini_scbdata:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR [rdi]
	test	rbx, rbx
	je	.L1
	cmp	DWORD PTR [rbx], 6
	mov	rbp, rdi
	ja	.L4
	mov	eax, DWORD PTR [rbx]
	lea	rdx, .L6[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L6:
	.long	.L12-.L6
	.long	.L11-.L6
	.long	.L10-.L6
	.long	.L9-.L6
	.long	.L8-.L6
	.long	.L7-.L6
	.long	.L5-.L6
	.text
.L4:
	lea	r13, 44[rbx]
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, DWORD PTR links[rip]
	mov	rdi, r13
	call	SLIST_REMOVE_HEAD@PLT
	mov	esi, DWORD PTR 40[rbx]
	mov	edx, DWORD PTR [r12]
	mov	rdi, rbp
	call	ahc_dmamap_unload@PLT
	mov	esi, DWORD PTR 40[rbx]
	mov	edx, DWORD PTR 4[r12]
	mov	rdi, rbp
	mov	ecx, DWORD PTR [r12]
	call	ahc_dmamem_free@PLT
	mov	esi, DWORD PTR M_DEVBUF[rip]
	mov	rdi, r12
	call	free@PLT
.L13:
	mov	rdi, r13
	call	SLIST_FIRST@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L14
	mov	esi, DWORD PTR 40[rbx]
	mov	rdi, rbp
	call	ahc_dma_tag_destroy@PLT
.L5:
	mov	edx, DWORD PTR 32[rbx]
	mov	esi, DWORD PTR 28[rbx]
	mov	rdi, rbp
	call	ahc_dmamap_unload@PLT
.L7:
	mov	edx, DWORD PTR 36[rbx]
	mov	esi, DWORD PTR 28[rbx]
	mov	rdi, rbp
	mov	ecx, DWORD PTR 32[rbx]
	call	ahc_dmamem_free@PLT
	mov	edx, DWORD PTR 32[rbx]
	mov	esi, DWORD PTR 28[rbx]
	mov	rdi, rbp
	call	ahc_dmamap_destroy@PLT
.L8:
	mov	esi, DWORD PTR 28[rbx]
	mov	rdi, rbp
	call	ahc_dma_tag_destroy@PLT
.L9:
	mov	edx, DWORD PTR 20[rbx]
	mov	esi, DWORD PTR 16[rbx]
	mov	rdi, rbp
	call	ahc_dmamap_unload@PLT
.L10:
	mov	edx, DWORD PTR 24[rbx]
	mov	esi, DWORD PTR 16[rbx]
	mov	rdi, rbp
	mov	ecx, DWORD PTR 20[rbx]
	call	ahc_dmamem_free@PLT
	mov	edx, DWORD PTR 20[rbx]
	mov	esi, DWORD PTR 16[rbx]
	mov	rdi, rbp
	call	ahc_dmamap_destroy@PLT
.L11:
	mov	esi, DWORD PTR 16[rbx]
	mov	rdi, rbp
	call	ahc_dma_tag_destroy@PLT
.L12:
	mov	rdi, QWORD PTR 8[rbx]
	test	rdi, rdi
	je	.L1
	mov	esi, DWORD PTR M_DEVBUF[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	free@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	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	ahc_fini_scbdata, .-ahc_fini_scbdata
	.comm	links,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_aic7xxx_core.c_ahc_fini_scbdata.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ahc_fini_scbdata, %function
ahc_fini_scbdata:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r4, [r0]
	cmp	r4, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r3, [r4]
	mov	r5, r0
	cmp	r3, #6
	ldrls	pc, [pc, r3, asl #2]
	b	.L4
.L6:
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L5
.L14:
	ldr	r1, [r9]
	mov	r0, r7
	bl	SLIST_REMOVE_HEAD
	ldr	r2, [r6]
	ldr	r1, [r4, #32]
	mov	r0, r5
	bl	ahc_dmamap_unload
	ldr	r1, [r4, #32]
	mov	r0, r5
	ldr	r3, [r6]
	ldr	r2, [r6, #4]
	bl	ahc_dmamem_free
	mov	r0, r6
	ldr	r1, [r8]
	bl	free
.L13:
	mov	r0, r7
	bl	SLIST_FIRST
	subs	r6, r0, #0
	bne	.L14
	mov	r0, r5
	ldr	r1, [r4, #32]
	bl	ahc_dma_tag_destroy
.L5:
	mov	r0, r5
	ldr	r2, [r4, #24]
	ldr	r1, [r4, #20]
	bl	ahc_dmamap_unload
.L7:
	ldr	r2, [r4, #28]
	ldr	r1, [r4, #20]
	mov	r0, r5
	ldr	r3, [r4, #24]
	bl	ahc_dmamem_free
	mov	r0, r5
	ldr	r2, [r4, #24]
	ldr	r1, [r4, #20]
	bl	ahc_dmamap_destroy
.L8:
	mov	r0, r5
	ldr	r1, [r4, #20]
	bl	ahc_dma_tag_destroy
.L9:
	mov	r0, r5
	ldr	r2, [r4, #12]
	ldr	r1, [r4, #8]
	bl	ahc_dmamap_unload
.L10:
	ldr	r2, [r4, #16]
	ldr	r1, [r4, #8]
	mov	r0, r5
	ldr	r3, [r4, #12]
	bl	ahc_dmamem_free
	mov	r0, r5
	ldr	r2, [r4, #12]
	ldr	r1, [r4, #8]
	bl	ahc_dmamap_destroy
.L11:
	mov	r0, r5
	ldr	r1, [r4, #8]
	bl	ahc_dma_tag_destroy
.L12:
	ldr	r0, [r4, #4]
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r3, .L21
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r1, [r3]
	b	free
.L4:
	ldr	r9, .L21+4
	ldr	r8, .L21
	add	r7, r4, #36
	b	.L13
.L22:
	.align	2
.L21:
	.word	M_DEVBUF
	.word	links
	.size	ahc_fini_scbdata, .-ahc_fini_scbdata
	.comm	links,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
