	.file	"extr_portdrv_core.c_pcie_message_numbers.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pcie_message_numbers, @function
pcie_message_numbers:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, r8
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR PCIE_PORT_SERVICE_PME[rip]
	or	eax, DWORD PTR PCIE_PORT_SERVICE_HP[rip]
	or	eax, DWORD PTR PCIE_PORT_SERVICE_BWNOTIF[rip]
	and	eax, esi
	mov	r12d, eax
	jne	.L17
	test	DWORD PTR PCIE_PORT_SERVICE_DPC[rip], ebp
	jne	.L18
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.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
.L17:
	.cfi_restore_state
	mov	esi, DWORD PTR PCI_EXP_FLAGS[rip]
	mov	r13, rdx
	lea	rdx, 4[rsp]
	call	pcie_capability_read_word@PLT
	mov	eax, DWORD PTR 4[rsp]
	and	eax, DWORD PTR PCI_EXP_FLAGS_IRQ[rip]
	sar	eax, 9
	mov	DWORD PTR 0[r13], eax
	lea	r12d, 1[rax]
	test	DWORD PTR PCIE_PORT_SERVICE_DPC[rip], ebp
	je	.L1
.L18:
	mov	esi, DWORD PTR PCI_EXT_CAP_ID_DPC[rip]
	mov	rdi, r14
	call	pci_find_ext_capability@PLT
	test	eax, eax
	je	.L1
	add	eax, DWORD PTR PCI_EXP_DPC_CAP[rip]
	lea	rdx, 4[rsp]
	mov	rdi, r14
	mov	esi, eax
	call	pci_read_config_word@PLT
	mov	esi, DWORD PTR 4[rsp]
	and	esi, DWORD PTR PCI_EXP_DPC_IRQ[rip]
	mov	edi, r12d
	mov	DWORD PTR [rbx], esi
	add	esi, 1
	call	max@PLT
	mov	r12d, eax
	jmp	.L1
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pcie_message_numbers, .-pcie_message_numbers
	.comm	PCI_EXT_CAP_ID_DPC,4,4
	.comm	PCI_EXP_FLAGS_IRQ,4,4
	.comm	PCI_EXP_FLAGS,4,4
	.comm	PCI_EXP_DPC_IRQ,4,4
	.comm	PCI_EXP_DPC_CAP,4,4
	.comm	PCI_ERR_ROOT_STATUS,4,4
	.comm	PCI_ERR_ROOT_AER_IRQ,4,4
	.comm	PCIE_PORT_SERVICE_PME,4,4
	.comm	PCIE_PORT_SERVICE_HP,4,4
	.comm	PCIE_PORT_SERVICE_DPC,4,4
	.comm	PCIE_PORT_SERVICE_BWNOTIF,4,4
	.comm	PCIE_PORT_SERVICE_AER,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_portdrv_core.c_pcie_message_numbers.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pcie_message_numbers, %function
pcie_message_numbers:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	ldr	r3, .L19
	ldr	ip, .L19+4
	ldr	r1, .L19+8
	ldr	r3, [r3]
	ldr	ip, [ip]
	ldr	r1, [r1]
	orr	r3, r3, ip
	orr	r3, r3, r1
	ands	r4, r3, r5
	ldr	r3, .L19+12
	sub	sp, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r7, r0
	ldr	r6, [sp, #32]
	bne	.L16
	ldr	r3, .L19+16
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L17
.L1:
	ldr	r3, .L19+12
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	mov	r8, r2
	ldr	r3, .L19+20
	mov	r2, sp
	ldr	r1, [r3]
	bl	pcie_capability_read_word
	ldr	r2, .L19+24
	ldr	r3, [sp]
	ldr	r4, [r2]
	and	r3, r3, r4
	asr	r3, r3, #9
	str	r3, [r8]
	add	r4, r3, #1
	ldr	r3, .L19+16
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L1
.L17:
	ldr	r3, .L19+28
	mov	r0, r7
	ldr	r1, [r3]
	bl	pci_find_ext_capability
	subs	r1, r0, #0
	beq	.L1
	ldr	r3, .L19+32
	mov	r2, sp
	ldr	r3, [r3]
	mov	r0, r7
	add	r1, r1, r3
	bl	pci_read_config_word
	ldr	r3, .L19+36
	ldr	r1, [sp]
	ldr	r3, [r3]
	mov	r0, r4
	and	r1, r1, r3
	str	r1, [r6]
	add	r1, r1, #1
	bl	max
	mov	r4, r0
	b	.L1
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	PCIE_PORT_SERVICE_PME
	.word	PCIE_PORT_SERVICE_HP
	.word	PCIE_PORT_SERVICE_BWNOTIF
	.word	.LC0
	.word	PCIE_PORT_SERVICE_DPC
	.word	PCI_EXP_FLAGS
	.word	PCI_EXP_FLAGS_IRQ
	.word	PCI_EXT_CAP_ID_DPC
	.word	PCI_EXP_DPC_CAP
	.word	PCI_EXP_DPC_IRQ
	.size	pcie_message_numbers, .-pcie_message_numbers
	.comm	PCI_EXT_CAP_ID_DPC,4,4
	.comm	PCI_EXP_FLAGS_IRQ,4,4
	.comm	PCI_EXP_FLAGS,4,4
	.comm	PCI_EXP_DPC_IRQ,4,4
	.comm	PCI_EXP_DPC_CAP,4,4
	.comm	PCI_ERR_ROOT_STATUS,4,4
	.comm	PCI_ERR_ROOT_AER_IRQ,4,4
	.comm	PCIE_PORT_SERVICE_PME,4,4
	.comm	PCIE_PORT_SERVICE_HP,4,4
	.comm	PCIE_PORT_SERVICE_DPC,4,4
	.comm	PCIE_PORT_SERVICE_BWNOTIF,4,4
	.comm	PCIE_PORT_SERVICE_AER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
