	.file	"extr_hpsa.c_hpsa_scsi_remove_entry.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"%s device c%db%dt%dl%d removed.\n"
	.text
	.p2align 4
	.type	hpsa_scsi_remove_entry, @function
hpsa_scsi_remove_entry:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	edi, 1
	test	edx, edx
	js	.L2
	xor	edi, edi
	cmp	DWORD PTR HPSA_MAX_DEVICES[rip], edx
	setle	dil
.L2:
	call	BUG_ON@PLT
	mov	rdi, QWORD PTR 16[rbx]
	movsx	rcx, DWORD PTR 0[r13]
	movsx	r8, ebp
	lea	rax, [rdi+r8*8]
	mov	rdx, rcx
	mov	rsi, QWORD PTR [rax]
	add	edx, 1
	mov	QWORD PTR [r14+rcx*8], rsi
	mov	DWORD PTR 0[r13], edx
	mov	ecx, DWORD PTR [rbx]
	lea	r9d, -1[rcx]
	cmp	ebp, r9d
	jge	.L3
	sub	ecx, 2
	sub	ecx, ebp
	add	rcx, r8
	lea	rcx, 8[rdi+rcx*8]
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdx, QWORD PTR 8[rax]
	add	rax, 8
	mov	QWORD PTR -8[rax], rdx
	cmp	rax, rcx
	jne	.L4
.L3:
	mov	edi, DWORD PTR 12[rsi]
	mov	r14d, DWORD PTR [rsi]
	mov	DWORD PTR [rbx], r9d
	mov	r13d, DWORD PTR 4[rsi]
	mov	ebp, DWORD PTR 8[rsi]
	call	scsi_device_type@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	rdi, QWORD PTR 8[rbx]
	mov	r9d, r13d
	push	r14
	.cfi_def_cfa_offset 64
	mov	edx, eax
	mov	r8d, ebp
	mov	ecx, r12d
	lea	rsi, .LC0[rip]
	call	dev_info@PLT
	pop	rax
	.cfi_def_cfa_offset 56
	pop	rdx
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	hpsa_scsi_remove_entry, .-hpsa_scsi_remove_entry
	.comm	HPSA_MAX_DEVICES,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_hpsa.c_hpsa_scsi_remove_entry.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s device c%db%dt%dl%d removed.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hpsa_scsi_remove_entry, %function
hpsa_scsi_remove_entry:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	subs	r4, r2, #0
	sub	sp, sp, #20
	mov	r6, r0
	mov	r5, r1
	mov	r8, r3
	movlt	r0, #1
	ldr	r9, [sp, #48]
	blt	.L2
	ldr	r3, .L9
	ldr	r0, [r3]
	cmp	r0, r4
	movgt	r0, #0
	movle	r0, #1
.L2:
	bl	BUG_ON
	ldr	ip, [r6, #8]
	ldr	r3, [r9]
	ldr	r7, [ip, r4, lsl #2]
	add	r2, r3, #1
	str	r7, [r8, r3, lsl #2]
	str	r2, [r9]
	ldr	r2, [r6]
	add	r3, ip, r4, lsl #2
	sub	r1, r2, #1
	cmp	r4, r1
	bge	.L3
	sub	ip, ip, #4
	add	ip, ip, r2, lsl #2
.L4:
	ldr	r2, [r3, #4]
	str	r2, [r3], #4
	cmp	r3, ip
	bne	.L4
.L3:
	str	r1, [r6]
	ldr	r0, [r7, #12]
	ldr	r4, [r6, #4]
	bl	scsi_device_type
	ldr	r3, [r7]
	mov	r2, r0
	str	r3, [sp, #8]
	ldr	r3, [r7, #4]
	mov	r0, r4
	str	r3, [sp, #4]
	ldr	r1, [r7, #8]
	mov	r3, r5
	str	r1, [sp]
	ldr	r1, .L9+4
	bl	dev_info
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L10:
	.align	2
.L9:
	.word	HPSA_MAX_DEVICES
	.word	.LC0
	.size	hpsa_scsi_remove_entry, .-hpsa_scsi_remove_entry
	.comm	HPSA_MAX_DEVICES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
