	.file	"extr_ps3disk.c_ps3disk_remove.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Synchronizing disk cache\n"
	.text
	.p2align 4
	.type	ps3disk_remove, @function
ps3disk_remove:
.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	r12, rdi
	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
	call	to_ps3_storage_device@PLT
	lea	r13, 8[rax]
	mov	rbx, rax
	mov	rdi, r13
	call	ps3_system_bus_get_drvdata@PLT
	lea	rdi, ps3disk_mask_mutex[rip]
	mov	rbp, rax
	call	mutex_lock@PLT
	mov	edi, DWORD PTR 0[rbp]
	call	disk_devt@PLT
	mov	edi, eax
	call	MINOR@PLT
	lea	rsi, ps3disk_mask[rip]
	cdq
	idiv	DWORD PTR PS3DISK_MINORS[rip]
	mov	edi, eax
	call	__clear_bit@PLT
	lea	rdi, ps3disk_mask_mutex[rip]
	call	mutex_unlock@PLT
	mov	edi, DWORD PTR 0[rbp]
	call	del_gendisk@PLT
	mov	edi, DWORD PTR 8[rbp]
	call	blk_cleanup_queue@PLT
	lea	rdi, 4[rbp]
	call	blk_mq_free_tag_set@PLT
	mov	edi, DWORD PTR 0[rbp]
	call	put_disk@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	call	dev_notice@PLT
	mov	rdi, rbx
	call	ps3disk_sync_cache@PLT
	mov	rdi, rbx
	call	ps3stor_teardown@PLT
	mov	rdi, QWORD PTR [rbx]
	call	kfree@PLT
	mov	rdi, rbp
	call	kfree@PLT
	mov	rdi, r12
	xor	esi, esi
	call	ps3_system_bus_set_drvdata@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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	ps3disk_remove, .-ps3disk_remove
	.comm	ps3disk_mask_mutex,4,4
	.comm	ps3disk_mask,4,4
	.comm	PS3DISK_MINORS,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_ps3disk.c_ps3disk_remove.c"
	.text
	.global	__aeabi_idiv
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Synchronizing disk cache\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ps3disk_remove, %function
ps3disk_remove:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	bl	to_ps3_storage_device
	add	r7, r0, #4
	mov	r5, r0
	mov	r0, r7
	bl	ps3_system_bus_get_drvdata
	mov	r4, r0
	ldr	r8, .L4
	mov	r0, r8
	bl	mutex_lock
	ldr	r0, [r4]
	bl	disk_devt
	bl	MINOR
	ldr	r3, .L4+4
	ldr	r1, [r3]
	bl	__aeabi_idiv
	ldr	r1, .L4+8
	bl	__clear_bit
	mov	r0, r8
	bl	mutex_unlock
	ldr	r0, [r4]
	bl	del_gendisk
	ldr	r0, [r4, #8]
	bl	blk_cleanup_queue
	add	r0, r4, #4
	bl	blk_mq_free_tag_set
	ldr	r0, [r4]
	bl	put_disk
	ldr	r1, .L4+12
	mov	r0, r7
	bl	dev_notice
	mov	r0, r5
	bl	ps3disk_sync_cache
	mov	r0, r5
	bl	ps3stor_teardown
	ldr	r0, [r5]
	bl	kfree
	mov	r0, r4
	bl	kfree
	mov	r0, r6
	mov	r1, #0
	bl	ps3_system_bus_set_drvdata
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	.align	2
.L4:
	.word	ps3disk_mask_mutex
	.word	PS3DISK_MINORS
	.word	ps3disk_mask
	.word	.LC0
	.size	ps3disk_remove, .-ps3disk_remove
	.comm	ps3disk_mask_mutex,4,4
	.comm	ps3disk_mask,4,4
	.comm	PS3DISK_MINORS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
