	.file	"extr_t4_sge.c_alloc_fwq.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"failed to create firmware event queue: %d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"fwq"
.LC2:
	.string	"firmware event queue"
	.text
	.p2align 4
	.type	alloc_fwq, @function
alloc_fwq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	lea	r13, 24[rdi]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 12[rdi]
	call	device_get_sysctl_tree@PLT
	mov	rdi, rax
	call	SYSCTL_CHILDREN@PLT
	mov	r8d, DWORD PTR FW_IQ_QSIZE[rip]
	xor	ecx, ecx
	xor	edx, edx
	mov	rsi, rbp
	mov	rdi, r13
	mov	r14, rax
	call	init_iq@PLT
	mov	eax, DWORD PTR 0[rbp]
	xor	ecx, ecx
	test	DWORD PTR IS_VF[rip], eax
	jne	.L2
	xor	ecx, ecx
	cmp	DWORD PTR 4[rbp], 1
	setg	cl
.L2:
	mov	rax, QWORD PTR 16[rbp]
	mov	r8d, -1
	xor	edx, edx
	mov	rsi, r13
	mov	rax, QWORD PTR [rax]
	mov	rdi, QWORD PTR [rax]
	call	alloc_iq_fl@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L9
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	add	rbp, 8
	mov	rsi, r14
	xor	r9d, r9d
	lea	rax, .LC2[rip]
	mov	r8d, DWORD PTR CTLFLAG_RD[rip]
	mov	edx, DWORD PTR OID_AUTO[rip]
	mov	rdi, rbp
	push	rax
	.cfi_def_cfa_offset 64
	lea	rcx, .LC1[rip]
	call	SYSCTL_ADD_NODE@PLT
	mov	rdx, r13
	mov	rdi, rbp
	mov	rsi, rax
	call	add_iq_sysctls@PLT
	pop	rax
	.cfi_def_cfa_offset 56
	pop	rdx
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR 12[rbp]
	mov	edx, eax
	lea	rsi, .LC0[rip]
	call	device_printf@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	alloc_fwq, .-alloc_fwq
	.comm	OID_AUTO,4,4
	.comm	IS_VF,4,4
	.comm	FW_IQ_QSIZE,4,4
	.comm	CTLFLAG_RD,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_t4_sge.c_alloc_fwq.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to create firmware event queue: %d\012\000"
	.align	2
.LC1:
	.ascii	"fwq\000"
	.align	2
.LC2:
	.ascii	"firmware event queue\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc_fwq, %function
alloc_fwq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	sub	sp, sp, #20
	ldr	r0, [r0, #12]
	bl	device_get_sysctl_tree
	bl	SYSCTL_CHILDREN
	mov	r3, #0
	ldr	r2, .L9
	add	r6, r4, #20
	ldr	r2, [r2]
	mov	r7, r0
	str	r2, [sp]
	mov	r0, r6
	mov	r2, r3
	mov	r1, r4
	bl	init_iq
	ldr	r3, .L9+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	movne	r3, #0
	bne	.L2
	ldr	r3, [r4, #4]
	cmp	r3, #1
	movle	r3, #0
	movgt	r3, #1
.L2:
	mvn	r1, #0
	ldr	r2, [r4, #16]
	ldr	r0, [r2]
	mov	r2, #0
	ldr	r0, [r0]
	str	r1, [sp]
	mov	r1, r6
	bl	alloc_iq_fl
	subs	r5, r0, #0
	bne	.L8
	ldr	r3, .L9+8
	ldr	r2, .L9+12
	ldr	r0, [r3]
	ldr	r3, .L9+16
	str	r0, [sp]
	add	r4, r4, #8
	str	r5, [sp, #4]
	mov	r1, r7
	ldr	r2, [r2]
	mov	r0, r4
	str	r3, [sp, #8]
	ldr	r3, .L9+20
	bl	SYSCTL_ADD_NODE
	mov	r2, r6
	mov	r1, r0
	mov	r0, r4
	bl	add_iq_sysctls
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L8:
	mov	r2, r5
	ldr	r0, [r4, #12]
	ldr	r1, .L9+24
	bl	device_printf
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L10:
	.align	2
.L9:
	.word	FW_IQ_QSIZE
	.word	IS_VF
	.word	CTLFLAG_RD
	.word	OID_AUTO
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.size	alloc_fwq, .-alloc_fwq
	.comm	OID_AUTO,4,4
	.comm	IS_VF,4,4
	.comm	FW_IQ_QSIZE,4,4
	.comm	CTLFLAG_RD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
