	.file	"extr_advansys.c_advansys_release.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"begin\n"
.LC1:
	.string	"end\n"
	.text
	.p2align 4
	.type	advansys_release, @function
advansys_release:
.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
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	shost_priv@PLT
	lea	rsi, .LC0[rip]
	mov	edi, 1
	mov	rbp, rax
	call	ASC_DBG@PLT
	mov	rdi, r12
	call	scsi_remove_host@PLT
	mov	edi, DWORD PTR 16[rbp]
	mov	rsi, r12
	call	free_irq@PLT
	mov	rdi, rbp
	call	ASC_NARROW_BOARD@PLT
	test	rax, rax
	je	.L2
	mov	edi, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR 8[rbp]
	mov	ecx, DWORD PTR DMA_FROM_DEVICE[rip]
	mov	edx, DWORD PTR ASC_OVERRUN_BSIZE[rip]
	call	dma_unmap_single@PLT
	mov	edi, DWORD PTR 4[rbp]
	call	kfree@PLT
.L3:
	mov	rdi, r12
	call	scsi_host_put@PLT
	lea	rsi, .LC1[rip]
	mov	edi, 1
	call	ASC_DBG@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
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	call	iounmap@PLT
	mov	rdi, rbp
	call	advansys_wide_free_mem@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	advansys_release, .-advansys_release
	.comm	NO_ISA_DMA,8,8
	.comm	DMA_FROM_DEVICE,4,4
	.comm	ASC_OVERRUN_BSIZE,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_advansys.c_advansys_release.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"begin\012\000"
	.align	2
.LC1:
	.ascii	"end\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	advansys_release, %function
advansys_release:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	shost_priv
	mov	r4, r0
	ldr	r1, .L6
	mov	r0, #1
	bl	ASC_DBG
	mov	r0, r5
	bl	scsi_remove_host
	mov	r1, r5
	ldr	r0, [r4, #16]
	bl	free_irq
	mov	r0, r4
	bl	ASC_NARROW_BOARD
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L6+4
	ldr	r2, .L6+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r4, #8]
	ldr	r0, [r4, #12]
	bl	dma_unmap_single
	ldr	r0, [r4, #4]
	bl	kfree
.L3:
	mov	r0, r5
	bl	scsi_host_put
	ldr	r1, .L6+12
	mov	r0, #1
	bl	ASC_DBG
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r0, [r4]
	bl	iounmap
	mov	r0, r4
	bl	advansys_wide_free_mem
	b	.L3
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	DMA_FROM_DEVICE
	.word	ASC_OVERRUN_BSIZE
	.word	.LC1
	.size	advansys_release, .-advansys_release
	.comm	NO_ISA_DMA,4,4
	.comm	DMA_FROM_DEVICE,4,4
	.comm	ASC_OVERRUN_BSIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
