	.file	"extr_ltq_atm.c_find_vpivci.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	find_vpivci, @function
find_vpivci:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR MAX_PVC_NUMBER[rip]
	test	eax, eax
	jle	.L5
	lea	r10d, -1[rax]
	mov	r9d, DWORD PTR g_atm_priv_data[rip]
	mov	r11, QWORD PTR g_atm_priv_data[rip+8]
	xor	eax, eax
	mov	edx, 1
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	add	edx, edx
	lea	rcx, 1[rax]
	cmp	rax, r10
	je	.L5
	mov	rax, rcx
.L4:
	mov	r8d, eax
	test	r9d, edx
	je	.L3
	mov	rcx, QWORD PTR [r11+rax*8]
	test	rcx, rcx
	je	.L3
	cmp	DWORD PTR [rcx], edi
	jne	.L3
	cmp	DWORD PTR 4[rcx], esi
	jne	.L3
	mov	eax, r8d
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	mov	r8d, -1
	mov	eax, r8d
	ret
	.cfi_endproc
.LFE0:
	.size	find_vpivci, .-find_vpivci
	.comm	g_atm_priv_data,16,16
	.comm	MAX_PVC_NUMBER,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_ltq_atm.c_find_vpivci.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_vpivci, %function
find_vpivci:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L19
	ldr	ip, [r3]
	cmp	ip, #0
	ble	.L5
	ldr	r2, .L19+4
	push	{r4, r5, r6, lr}
	mov	r3, #1
	mov	r6, r0
	ldr	lr, [r2]
	mov	r0, #0
	ldr	r5, [r2, #4]
	b	.L4
.L3:
	add	r0, r0, #1
	cmp	r0, ip
	lsl	r3, r3, #1
	beq	.L18
.L4:
	tst	lr, r3
	beq	.L3
	ldr	r2, [r5, r0, lsl #2]
	cmp	r2, #0
	beq	.L3
	ldr	r4, [r2]
	cmp	r4, r6
	bne	.L3
	ldr	r2, [r2, #4]
	cmp	r2, r1
	popeq	{r4, r5, r6, pc}
	add	r0, r0, #1
	cmp	r0, ip
	lsl	r3, r3, #1
	bne	.L4
.L18:
	mvn	r0, #0
	pop	{r4, r5, r6, pc}
.L5:
	mvn	r0, #0
	bx	lr
.L20:
	.align	2
.L19:
	.word	MAX_PVC_NUMBER
	.word	g_atm_priv_data
	.size	find_vpivci, .-find_vpivci
	.comm	g_atm_priv_data,8,4
	.comm	MAX_PVC_NUMBER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
