	.file	"extr_geom_vinum_rm.c_gv_rm_sd.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"gv_rm_sd: NULL s"
	.text
	.p2align 4
	.globl	gv_rm_sd
	.type	gv_rm_sd, @function
gv_rm_sd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	edi, edi
	test	rsi, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	setne	dil
	mov	rbp, rsi
	lea	rsi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	KASSERT@PLT
	mov	rbx, QWORD PTR 8[rbp]
	test	rbx, rbx
	je	.L3
	mov	esi, DWORD PTR in_plex[rip]
	mov	rdi, rbp
	call	LIST_REMOVE@PLT
	mov	QWORD PTR 8[rbp], 0
	mov	rdi, rbx
	sub	DWORD PTR 12[rbx], 1
	call	gv_plex_size@PLT
	mov	r12, QWORD PTR [rbx]
	mov	DWORD PTR 8[rbx], eax
	test	r12, r12
	je	.L3
	mov	rdi, r12
	call	gv_vol_size@PLT
	mov	rdi, r12
	mov	esi, eax
	call	gv_update_vol_size@PLT
.L3:
	mov	rax, QWORD PTR 0[rbp]
	test	rax, rax
	je	.L5
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR GV_DRIVE_REFERENCED[rip], eax
	je	.L14
.L5:
	mov	esi, DWORD PTR sd[rip]
	mov	rdi, rbp
	call	LIST_REMOVE@PLT
	mov	rdi, rbp
	call	gv_free_sd@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	g_free@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	esi, DWORD PTR from_drive[rip]
	mov	rdi, rbp
	call	LIST_REMOVE@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	gv_rm_sd, .-gv_rm_sd
	.comm	sd,4,4
	.comm	in_plex,4,4
	.comm	from_drive,4,4
	.comm	GV_DRIVE_REFERENCED,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_geom_vinum_rm.c_gv_rm_sd.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"gv_rm_sd: NULL s\000"
	.text
	.align	2
	.global	gv_rm_sd
	.syntax unified
	.arm
	.fpu softvfp
	.type	gv_rm_sd, %function
gv_rm_sd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	subs	r0, r1, #0
	movne	r0, #1
	ldr	r1, .L15
	bl	KASSERT
	ldr	r5, [r4, #4]
	cmp	r5, #0
	beq	.L3
	ldr	r3, .L15+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	LIST_REMOVE
	mov	r2, #0
	ldr	r3, [r5, #8]
	mov	r0, r5
	sub	r3, r3, #1
	str	r2, [r4, #4]
	str	r3, [r5, #8]
	bl	gv_plex_size
	ldr	r6, [r5]
	str	r0, [r5, #4]
	cmp	r6, #0
	beq	.L3
	mov	r0, r6
	bl	gv_vol_size
	mov	r1, r0
	mov	r0, r6
	bl	gv_update_vol_size
.L3:
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L5
	ldr	r1, .L15+8
	ldr	r2, [r3]
	ldr	r3, [r1]
	tst	r2, r3
	beq	.L14
.L5:
	ldr	r3, .L15+12
	mov	r0, r4
	ldr	r1, [r3]
	bl	LIST_REMOVE
	mov	r0, r4
	bl	gv_free_sd
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	g_free
.L14:
	ldr	r3, .L15+16
	mov	r0, r4
	ldr	r1, [r3]
	bl	LIST_REMOVE
	b	.L5
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	in_plex
	.word	GV_DRIVE_REFERENCED
	.word	sd
	.word	from_drive
	.size	gv_rm_sd, .-gv_rm_sd
	.comm	sd,4,4
	.comm	in_plex,4,4
	.comm	from_drive,4,4
	.comm	GV_DRIVE_REFERENCED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
