	.file	"extr_geom_subr.c_g_new_consumer.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	g_new_consumer
	.type	g_new_consumer, @function
g_new_consumer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	eax, eax
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	g_topology_assert@PLT
	mov	rdi, rbx
	call	G_VALID_GEOM@PLT
	mov	rax, QWORD PTR 8[rbx]
	xor	edi, edi
	movsx	rsi, DWORD PTR [rax]
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR G_GEOM_WITHER[rip], eax
	sete	dil
	call	KASSERT@PLT
	mov	rax, QWORD PTR 8[rbx]
	xor	edi, edi
	cmp	QWORD PTR 24[rbx], 0
	setne	dil
	movsx	rsi, DWORD PTR [rax]
	call	KASSERT@PLT
	mov	esi, DWORD PTR M_WAITOK[rip]
	mov	edi, 16
	or	esi, DWORD PTR M_ZERO[rip]
	call	g_malloc@PLT
	mov	r9d, DWORD PTR DEVSTAT_PRIORITY_MAX[rip]
	mov	r8d, DWORD PTR DEVSTAT_TYPE_DIRECT[rip]
	xor	edx, edx
	mov	QWORD PTR 8[rax], rbx
	mov	ecx, DWORD PTR DEVSTAT_ALL_SUPPORTED[rip]
	mov	rdi, rax
	mov	r12, rax
	mov	esi, -1
	call	devstat_new_entry@PLT
	mov	edx, DWORD PTR consumer[rip]
	lea	rdi, 4[rbx]
	mov	rsi, r12
	mov	DWORD PTR [r12], eax
	call	LIST_INSERT_HEAD@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	g_new_consumer, .-g_new_consumer
	.comm	consumer,4,4
	.comm	M_ZERO,4,4
	.comm	M_WAITOK,4,4
	.comm	G_GEOM_WITHER,4,4
	.comm	DEVSTAT_TYPE_DIRECT,4,4
	.comm	DEVSTAT_PRIORITY_MAX,4,4
	.comm	DEVSTAT_ALL_SUPPORTED,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_new_consumer.c"
	.text
	.align	2
	.global	g_new_consumer
	.syntax unified
	.arm
	.fpu softvfp
	.type	g_new_consumer, %function
g_new_consumer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r0
	sub	sp, sp, #12
	bl	g_topology_assert
	mov	r0, r4
	bl	G_VALID_GEOM
	ldr	r3, .L4
	ldr	r1, [r4]
	ldr	r2, [r3]
	ldr	r3, [r4, #8]
	tst	r1, r2
	moveq	r0, #1
	ldr	r1, [r3]
	movne	r0, #0
	bl	KASSERT
	ldr	r0, [r4, #16]
	ldr	r3, [r4, #8]
	subs	r0, r0, #0
	movne	r0, #1
	ldr	r1, [r3]
	bl	KASSERT
	ldr	r2, .L4+4
	ldr	r3, .L4+8
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r0, #8
	orr	r1, r1, r3
	bl	g_malloc
	ldr	r2, .L4+12
	ldr	r3, .L4+16
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L4+20
	str	r4, [r0, #4]
	ldr	r3, [r3]
	str	r1, [sp, #4]
	str	r2, [sp]
	mvn	r1, #0
	mov	r2, #0
	mov	r5, r0
	bl	devstat_new_entry
	ldr	r3, .L4+24
	str	r0, [r5]
	mov	r1, r5
	ldr	r2, [r3]
	add	r0, r4, #4
	bl	LIST_INSERT_HEAD
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L5:
	.align	2
.L4:
	.word	G_GEOM_WITHER
	.word	M_WAITOK
	.word	M_ZERO
	.word	DEVSTAT_PRIORITY_MAX
	.word	DEVSTAT_TYPE_DIRECT
	.word	DEVSTAT_ALL_SUPPORTED
	.word	consumer
	.size	g_new_consumer, .-g_new_consumer
	.comm	consumer,4,4
	.comm	M_ZERO,4,4
	.comm	M_WAITOK,4,4
	.comm	G_GEOM_WITHER,4,4
	.comm	DEVSTAT_TYPE_DIRECT,4,4
	.comm	DEVSTAT_PRIORITY_MAX,4,4
	.comm	DEVSTAT_ALL_SUPPORTED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
