	.file	"extr_geom_subr.c_g_destroy_consumer.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"g_destroy_consumer(%p)"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"g_destroy_consumer but attached"
	.section	.rodata.str1.1
.LC2:
	.string	"g_destroy_consumer with acr"
.LC3:
	.string	"g_destroy_consumer with acw"
.LC4:
	.string	"g_destroy_consumer with ace"
	.text
	.p2align 4
	.globl	g_destroy_consumer
	.type	g_destroy_consumer, @function
g_destroy_consumer:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	eax, eax
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	g_topology_assert@PLT
	mov	rdi, rbp
	call	G_VALID_CONSUMER@PLT
	mov	edi, DWORD PTR G_T_TOPOLOGY[rip]
	mov	rdx, rbp
	lea	rsi, .LC0[rip]
	call	g_trace@PLT
	xor	edi, edi
	cmp	QWORD PTR 40[rbp], 0
	lea	rsi, .LC1[rip]
	sete	dil
	call	KASSERT@PLT
	xor	edi, edi
	cmp	QWORD PTR 0[rbp], 0
	lea	rsi, .LC2[rip]
	sete	dil
	call	KASSERT@PLT
	xor	edi, edi
	cmp	QWORD PTR 8[rbp], 0
	lea	rsi, .LC3[rip]
	sete	dil
	call	KASSERT@PLT
	xor	edi, edi
	cmp	QWORD PTR 16[rbp], 0
	lea	rsi, .LC4[rip]
	sete	dil
	call	KASSERT@PLT
	mov	rdi, rbp
	call	g_cancel_event@PLT
	mov	esi, DWORD PTR consumer[rip]
	mov	rdi, rbp
	mov	rbx, QWORD PTR 32[rbp]
	call	LIST_REMOVE@PLT
	mov	edi, DWORD PTR 24[rbp]
	call	devstat_remove_entry@PLT
	mov	rdi, rbp
	call	g_free@PLT
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR G_GEOM_WITHER[rip], eax
	jne	.L5
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	g_do_wither@PLT
	.cfi_endproc
.LFE0:
	.size	g_destroy_consumer, .-g_destroy_consumer
	.comm	consumer,4,4
	.comm	G_T_TOPOLOGY,4,4
	.comm	G_GEOM_WITHER,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_subr.c_g_destroy_consumer.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"g_destroy_consumer(%p)\000"
	.align	2
.LC1:
	.ascii	"g_destroy_consumer but attached\000"
	.align	2
.LC2:
	.ascii	"g_destroy_consumer with acr\000"
	.align	2
.LC3:
	.ascii	"g_destroy_consumer with acw\000"
	.align	2
.LC4:
	.ascii	"g_destroy_consumer with ace\000"
	.text
	.align	2
	.global	g_destroy_consumer
	.syntax unified
	.arm
	.fpu softvfp
	.type	g_destroy_consumer, %function
g_destroy_consumer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	g_topology_assert
	mov	r0, r4
	bl	G_VALID_CONSUMER
	ldr	r3, .L5
	mov	r2, r4
	ldr	r0, [r3]
	ldr	r1, .L5+4
	bl	g_trace
	ldr	r0, [r4, #20]
	ldr	r1, .L5+8
	clz	r0, r0
	lsr	r0, r0, #5
	bl	KASSERT
	ldr	r0, [r4]
	ldr	r1, .L5+12
	clz	r0, r0
	lsr	r0, r0, #5
	bl	KASSERT
	ldr	r0, [r4, #4]
	ldr	r1, .L5+16
	clz	r0, r0
	lsr	r0, r0, #5
	bl	KASSERT
	ldr	r0, [r4, #8]
	ldr	r1, .L5+20
	clz	r0, r0
	lsr	r0, r0, #5
	bl	KASSERT
	mov	r0, r4
	bl	g_cancel_event
	ldr	r3, .L5+24
	mov	r0, r4
	ldr	r1, [r3]
	ldr	r5, [r4, #16]
	bl	LIST_REMOVE
	ldr	r0, [r4, #12]
	bl	devstat_remove_entry
	mov	r0, r4
	bl	g_free
	ldr	r3, .L5+28
	ldr	r2, [r5]
	ldr	r3, [r3]
	tst	r2, r3
	popeq	{r4, r5, r6, pc}
	pop	{r4, r5, r6, lr}
	b	g_do_wither
.L6:
	.align	2
.L5:
	.word	G_T_TOPOLOGY
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	consumer
	.word	G_GEOM_WITHER
	.size	g_destroy_consumer, .-g_destroy_consumer
	.comm	consumer,4,4
	.comm	G_T_TOPOLOGY,4,4
	.comm	G_GEOM_WITHER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
