	.file	"extr_qed_dev.c_qed_llh_shadow_get_free_idx.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"get_free_idx"
	.text
	.p2align 4
	.type	qed_llh_shadow_get_free_idx, @function
qed_llh_shadow_get_free_idx:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rcx, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdx
	xor	edx, edx
	mov	r12, QWORD PTR [rdi]
	call	qed_llh_shadow_sanity@PLT
	test	eax, eax
	jne	.L1
	mov	rdx, QWORD PTR QED_LLH_INVALID_FILTER_IDX[rip]
	mov	QWORD PTR [rbx], rdx
	mov	rdx, QWORD PTR [r12]
	mov	rcx, QWORD PTR NIG_REG_LLH_FUNC_FILTER_EN_SIZE[rip]
	mov	rsi, QWORD PTR [rdx+rbp*8]
	test	rcx, rcx
	je	.L1
	xor	edx, edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	add	rdx, 1
	cmp	rdx, rcx
	je	.L1
.L4:
	mov	edi, DWORD PTR [rsi+rdx*4]
	test	edi, edi
	jne	.L3
	mov	QWORD PTR [rbx], rdx
	xor	eax, eax
.L1:
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	qed_llh_shadow_get_free_idx, .-qed_llh_shadow_get_free_idx
	.comm	QED_LLH_INVALID_FILTER_IDX,8,8
	.comm	NIG_REG_LLH_FUNC_FILTER_EN_SIZE,8,8
	.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_qed_dev.c_qed_llh_shadow_get_free_idx.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"get_free_idx\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qed_llh_shadow_get_free_idx, %function
qed_llh_shadow_get_free_idx:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L11
	mov	r4, r2
	mov	r2, #0
	mov	r5, r1
	ldr	r6, [r0]
	bl	qed_llh_shadow_sanity
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	ldr	r2, .L11+4
	ldr	r3, [r6]
	ldr	r1, [r2]
	ldr	r2, .L11+8
	str	r1, [r4]
	ldr	lr, [r2]
	ldr	r1, [r3, r5, lsl #2]
	cmp	lr, #0
	popeq	{r4, r5, r6, pc}
	mov	r3, r0
	sub	r1, r1, #4
	b	.L4
.L3:
	add	r3, r3, #1
	cmp	r3, lr
	popeq	{r4, r5, r6, pc}
.L4:
	ldr	ip, [r1, #4]!
	cmp	ip, #0
	bne	.L3
	mov	r0, ip
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	QED_LLH_INVALID_FILTER_IDX
	.word	NIG_REG_LLH_FUNC_FILTER_EN_SIZE
	.size	qed_llh_shadow_get_free_idx, .-qed_llh_shadow_get_free_idx
	.comm	QED_LLH_INVALID_FILTER_IDX,4,4
	.comm	NIG_REG_LLH_FUNC_FILTER_EN_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
