	.file	"extr_core.c_nvme_ns_remove.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nvme_ns_remove, @function
nvme_ns_remove:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rsi, 48[rdi]
	mov	rbp, rdi
	mov	edi, DWORD PTR NVME_NS_REMOVING[rip]
	call	test_and_set_bit@PLT
	test	rax, rax
	je	.L14
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	lea	rdi, 44[rbp]
	call	nvme_fault_inject_fini@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 8[rax]
	call	mutex_lock@PLT
	lea	rdi, 40[rbp]
	call	list_del_rcu@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 8[rax]
	call	mutex_unlock@PLT
	xor	eax, eax
	call	synchronize_rcu@PLT
	mov	rdi, rbp
	call	nvme_mpath_clear_current_path@PLT
	mov	rdi, QWORD PTR 32[rbp]
	call	synchronize_srcu@PLT
	mov	rdi, QWORD PTR 16[rbp]
	test	rdi, rdi
	je	.L4
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR GENHD_FL_UP[rip], eax
	jne	.L15
.L4:
	mov	rdi, QWORD PTR 0[rbp]
	call	down_write@PLT
	lea	rdi, 8[rbp]
	call	list_del_init@PLT
	mov	rdi, QWORD PTR 0[rbp]
	call	up_write@PLT
	mov	rdi, rbp
	call	nvme_mpath_check_last_path@PLT
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	nvme_put_ns@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	call	del_gendisk@PLT
	mov	edi, DWORD PTR 24[rbp]
	call	blk_cleanup_queue@PLT
	mov	rdi, QWORD PTR 16[rbp]
	call	blk_get_integrity@PLT
	test	rax, rax
	je	.L4
	mov	rdi, QWORD PTR 16[rbp]
	call	blk_integrity_unregister@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	nvme_ns_remove, .-nvme_ns_remove
	.comm	NVME_NS_REMOVING,4,4
	.comm	GENHD_FL_UP,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_core.c_nvme_ns_remove.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nvme_ns_remove, %function
nvme_ns_remove:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L15
	push	{r4, r5, r6, lr}
	add	r1, r0, #28
	mov	r4, r0
	ldr	r0, [r3]
	bl	test_and_set_bit
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	mov	r5, r4
	add	r0, r4, #24
	bl	nvme_fault_inject_fini
	ldr	r3, [r5], #20
	ldr	r0, [r3, #4]
	bl	mutex_lock
	mov	r0, r5
	bl	list_del_rcu
	ldr	r3, [r4]
	ldr	r0, [r3, #4]
	bl	mutex_unlock
	bl	synchronize_rcu
	mov	r0, r4
	bl	nvme_mpath_clear_current_path
	ldr	r0, [r4, #16]
	bl	synchronize_srcu
	ldr	r0, [r4, #8]
	cmp	r0, #0
	beq	.L4
	ldr	r3, .L15+4
	ldr	r2, [r0]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L14
.L4:
	mov	r5, r4
	ldr	r0, [r5], #4
	bl	down_write
	mov	r0, r5
	bl	list_del_init
	ldr	r0, [r4]
	bl	up_write
	mov	r0, r4
	bl	nvme_mpath_check_last_path
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	nvme_put_ns
.L14:
	bl	del_gendisk
	ldr	r0, [r4, #12]
	bl	blk_cleanup_queue
	ldr	r0, [r4, #8]
	bl	blk_get_integrity
	cmp	r0, #0
	beq	.L4
	ldr	r0, [r4, #8]
	bl	blk_integrity_unregister
	b	.L4
.L16:
	.align	2
.L15:
	.word	NVME_NS_REMOVING
	.word	GENHD_FL_UP
	.size	nvme_ns_remove, .-nvme_ns_remove
	.comm	NVME_NS_REMOVING,4,4
	.comm	GENHD_FL_UP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
