	.file	"extr_smartpqi_main.c_pqi_find_ident.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pqi_find_ident, @function
pqi_find_ident:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	pci_get_vendor@PLT
	mov	edi, r12d
	mov	rbx, rax
	call	pci_get_device@PLT
	mov	edi, r12d
	mov	rbp, rax
	call	pci_get_subvendor@PLT
	mov	edi, r12d
	mov	r13, rax
	call	pci_get_subdevice@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR pqi_identifiers[rip]
	mov	rdx, QWORD PTR [rax]
	test	rdx, rdx
	jne	.L5
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdx, QWORD PTR 32[rax]
	add	rax, 32
	test	rdx, rdx
	je	.L2
.L5:
	cmp	rbx, rdx
	jne	.L3
	cmp	QWORD PTR 8[rax], rbp
	jne	.L3
	cmp	QWORD PTR 16[rax], r13
	jne	.L3
	cmp	QWORD PTR 24[rax], rcx
	jne	.L3
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR pqi_family_identifiers[rip]
	mov	rdx, QWORD PTR [rax]
	test	rdx, rdx
	jne	.L7
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdx, QWORD PTR 32[rax]
	add	rax, 32
	test	rdx, rdx
	je	.L8
.L7:
	cmp	rbx, rdx
	jne	.L6
	cmp	QWORD PTR 8[rax], rbp
	je	.L1
	mov	rdx, QWORD PTR 32[rax]
	add	rax, 32
	test	rdx, rdx
	jne	.L7
.L8:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	pqi_find_ident, .-pqi_find_ident
	.comm	pqi_identifiers,8,8
	.comm	pqi_family_identifiers,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_smartpqi_main.c_pqi_find_ident.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pqi_find_ident, %function
pqi_find_ident:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r0
	bl	pci_get_vendor
	mov	r4, r0
	mov	r0, r6
	bl	pci_get_device
	mov	r5, r0
	mov	r0, r6
	bl	pci_get_subvendor
	mov	r3, r0
	mov	r0, r6
	mov	r6, r3
	bl	pci_get_subdevice
	ldr	r3, .L16
	ldr	r3, [r3]
	ldr	r2, [r3]
	cmp	r2, #0
	beq	.L2
	mov	r1, r0
	b	.L5
.L3:
	ldr	r2, [r3, #16]!
	cmp	r2, #0
	beq	.L2
.L5:
	cmp	r4, r2
	mov	r0, r3
	bne	.L3
	ldr	r2, [r3, #4]
	cmp	r2, r5
	bne	.L3
	ldr	r2, [r3, #8]
	cmp	r2, r6
	bne	.L3
	ldr	r2, [r3, #12]
	cmp	r2, r1
	popeq	{r4, r5, r6, pc}
	ldr	r2, [r3, #16]!
	cmp	r2, #0
	bne	.L5
.L2:
	ldr	r3, .L16+4
	ldr	r2, [r3]
	ldr	r3, [r2]
	cmp	r3, #0
	bne	.L7
	b	.L8
.L6:
	ldr	r3, [r2, #16]!
	cmp	r3, #0
	beq	.L8
.L7:
	cmp	r4, r3
	mov	r0, r2
	bne	.L6
	ldr	r3, [r2, #4]
	cmp	r3, r5
	popeq	{r4, r5, r6, pc}
	ldr	r3, [r2, #16]!
	cmp	r3, #0
	bne	.L7
.L8:
	mov	r0, r3
	pop	{r4, r5, r6, pc}
.L17:
	.align	2
.L16:
	.word	pqi_identifiers
	.word	pqi_family_identifiers
	.size	pqi_find_ident, .-pqi_find_ident
	.comm	pqi_identifiers,4,4
	.comm	pqi_family_identifiers,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
