	.file	"extr_libata-scsi.c_ata_scsi_remove_dev.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"detaching (SCSI %s)\n"
	.text
	.p2align 4
	.type	ata_scsi_remove_dev, @function
ata_scsi_remove_dev:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR 8[rdi]
	mov	rbx, QWORD PTR [rax]
	mov	rdi, QWORD PTR [rbx]
	call	mutex_lock@PLT
	mov	edi, DWORD PTR 8[rbx]
	xor	esi, esi
	call	spin_lock_irqsave@PLT
	mov	r12, QWORD PTR 0[rbp]
	mov	QWORD PTR 0[rbp], 0
	test	r12, r12
	je	.L2
	mov	rdi, r12
	call	scsi_device_get@PLT
	test	rax, rax
	je	.L6
	mov	edi, 1
	call	WARN_ON@PLT
.L2:
	mov	edi, DWORD PTR 8[rbx]
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	mov	rdi, QWORD PTR [rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	mutex_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	esi, DWORD PTR SDEV_OFFLINE[rip]
	mov	rdi, r12
	call	scsi_device_set_state@PLT
	mov	edi, DWORD PTR 8[rbx]
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	mov	rdi, QWORD PTR [rbx]
	call	mutex_unlock@PLT
	mov	rdi, r12
	call	dev_name@PLT
	mov	esi, DWORD PTR KERN_INFO[rip]
	mov	rdi, rbp
	lea	rdx, .LC0[rip]
	mov	ecx, eax
	call	ata_dev_printk@PLT
	mov	rdi, r12
	call	scsi_remove_device@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	scsi_device_put@PLT
	.cfi_endproc
.LFE0:
	.size	ata_scsi_remove_dev, .-ata_scsi_remove_dev
	.comm	SDEV_OFFLINE,4,4
	.comm	KERN_INFO,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_libata-scsi.c_ata_scsi_remove_dev.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"detaching (SCSI %s)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ata_scsi_remove_dev, %function
ata_scsi_remove_dev:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #4]
	push	{r4, r5, r6, lr}
	ldr	r5, [r3]
	mov	r4, r0
	ldr	r0, [r5]
	bl	mutex_lock
	mov	r1, #0
	ldr	r0, [r5, #4]
	bl	spin_lock_irqsave
	mov	r3, #0
	ldr	r6, [r4]
	str	r3, [r4]
	cmp	r6, r3
	beq	.L2
	mov	r0, r6
	bl	scsi_device_get
	cmp	r0, #0
	beq	.L6
	mov	r0, #1
	bl	WARN_ON
.L2:
	ldr	r0, [r5, #4]
	mov	r1, #0
	bl	spin_unlock_irqrestore
	ldr	r0, [r5]
	pop	{r4, r5, r6, lr}
	b	mutex_unlock
.L6:
	ldr	r3, .L7
	mov	r0, r6
	ldr	r1, [r3]
	bl	scsi_device_set_state
	mov	r1, #0
	ldr	r0, [r5, #4]
	bl	spin_unlock_irqrestore
	ldr	r0, [r5]
	bl	mutex_unlock
	ldr	r3, .L7+4
	mov	r0, r6
	ldr	r5, [r3]
	bl	dev_name
	mov	r1, r5
	mov	r3, r0
	ldr	r2, .L7+8
	mov	r0, r4
	bl	ata_dev_printk
	mov	r0, r6
	bl	scsi_remove_device
	mov	r0, r6
	pop	{r4, r5, r6, lr}
	b	scsi_device_put
.L8:
	.align	2
.L7:
	.word	SDEV_OFFLINE
	.word	KERN_INFO
	.word	.LC0
	.size	ata_scsi_remove_dev, .-ata_scsi_remove_dev
	.comm	SDEV_OFFLINE,4,4
	.comm	KERN_INFO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
