	.file	"extr_be_cmds.c_be_get_pcie_desc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	be_get_pcie_desc, @function
be_get_pcie_desc:
.LFB0:
	.cfi_startproc
	endbr64
	test	edx, edx
	jle	.L2
	mov	r9, QWORD PTR PCIE_RESOURCE_DESC_TYPE_V0[rip]
	mov	r11, QWORD PTR PCIE_RESOURCE_DESC_TYPE_V1[rip]
	xor	r8d, r8d
	movsx	r10, DWORD PTR RESOURCE_DESC_SIZE_V0[rip]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L12:
	cmp	rax, r11
	je	.L3
.L4:
	movsx	rcx, DWORD PTR 8[rsi]
	test	ecx, ecx
	cmove	rcx, r10
	add	r8d, 1
	mov	DWORD PTR 8[rsi], ecx
	add	rsi, rcx
	cmp	edx, r8d
	je	.L2
.L7:
	mov	rax, QWORD PTR [rsi]
	cmp	rax, r9
	jne	.L12
.L3:
	cmp	rax, rdi
	jne	.L4
	mov	rax, rsi
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	be_get_pcie_desc, .-be_get_pcie_desc
	.comm	RESOURCE_DESC_SIZE_V0,4,4
	.comm	PCIE_RESOURCE_DESC_TYPE_V1,8,8
	.comm	PCIE_RESOURCE_DESC_TYPE_V0,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_be_cmds.c_be_get_pcie_desc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	be_get_pcie_desc, %function
be_get_pcie_desc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r2, #0
	ble	.L12
	push	{r4, r5, lr}
	ldr	r3, .L18
	ldr	r4, .L18+4
	ldr	lr, .L18+8
	ldr	r5, [r4]
	mov	ip, #0
	ldr	lr, [lr]
	ldr	r4, [r3]
	b	.L7
.L17:
	cmp	r3, r5
	beq	.L3
.L4:
	ldr	r3, [r1, #4]
	cmp	r3, #0
	moveq	r3, r4
	cmp	r2, ip
	str	r3, [r1, #4]
	add	r1, r1, r3
	beq	.L16
.L7:
	ldr	r3, [r1]
	add	ip, ip, #1
	cmp	r3, lr
	bne	.L17
.L3:
	cmp	r3, r0
	bne	.L4
	mov	r0, r1
	pop	{r4, r5, pc}
.L16:
	mov	r0, #0
	pop	{r4, r5, pc}
.L12:
	mov	r0, #0
	bx	lr
.L19:
	.align	2
.L18:
	.word	RESOURCE_DESC_SIZE_V0
	.word	PCIE_RESOURCE_DESC_TYPE_V1
	.word	PCIE_RESOURCE_DESC_TYPE_V0
	.size	be_get_pcie_desc, .-be_get_pcie_desc
	.comm	RESOURCE_DESC_SIZE_V0,4,4
	.comm	PCIE_RESOURCE_DESC_TYPE_V1,4,4
	.comm	PCIE_RESOURCE_DESC_TYPE_V0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
