	.file	"extr_uncore_snbep.c_snbep_qpi_enable_event.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snbep_qpi_enable_event, @function
snbep_qpi_enable_event:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rax, QWORD PTR EXTRA_REG_NONE[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	mov	r12, QWORD PTR 16[rdi]
	cmp	QWORD PTR 40[rsi], rax
	je	.L2
	mov	rdx, QWORD PTR 8[rdi]
	movsx	rcx, DWORD PTR [rdi]
	mov	eax, DWORD PTR SNBEP_PCI_QPI_PORT0_FILTER[rip]
	add	eax, DWORD PTR [rdx]
	mov	rdx, QWORD PTR uncore_extra_pci_dev[rip]
	cdqe
	mov	rdx, QWORD PTR [rdx+rcx*8]
	mov	rbp, QWORD PTR [rdx+rax*8]
	test	rbp, rbp
	je	.L2
	mov	edx, DWORD PTR 48[rsi]
	mov	rsi, QWORD PTR 56[rsi]
	mov	rdi, rbp
	call	pci_write_config_dword@PLT
	mov	edx, DWORD PTR 48[rbx]
	mov	rax, QWORD PTR 56[rbx]
	mov	rdi, rbp
	mov	ecx, 32
	sar	edx, cl
	lea	rsi, 4[rax]
	call	pci_write_config_dword@PLT
	mov	edx, DWORD PTR 24[rbx]
	mov	rsi, QWORD PTR 32[rbx]
	mov	rdi, rbp
	call	pci_write_config_dword@PLT
	mov	edx, DWORD PTR 24[rbx]
	mov	rax, QWORD PTR 32[rbx]
	mov	rdi, rbp
	mov	ecx, 32
	sar	edx, cl
	lea	rsi, 4[rax]
	call	pci_write_config_dword@PLT
.L2:
	mov	rsi, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR [rbx]
	mov	rdi, r12
	pop	rbx
	.cfi_def_cfa_offset 24
	or	edx, DWORD PTR SNBEP_PMON_CTL_EN[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	pci_write_config_dword@PLT
	.cfi_endproc
.LFE0:
	.size	snbep_qpi_enable_event, .-snbep_qpi_enable_event
	.comm	uncore_extra_pci_dev,8,8
	.comm	SNBEP_PMON_CTL_EN,4,4
	.comm	SNBEP_PCI_QPI_PORT0_FILTER,4,4
	.comm	EXTRA_REG_NONE,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_uncore_snbep.c_snbep_qpi_enable_event.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snbep_qpi_enable_event, %function
snbep_qpi_enable_event:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L8
	ldr	r2, [r1, #20]
	ldr	r3, [r3]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r2, r3
	mov	r4, r1
	ldr	r6, [r0, #8]
	beq	.L2
	ldr	r2, .L8+4
	ldr	r3, [r0, #4]
	ldr	r1, .L8+8
	ldr	r2, [r2]
	ldr	r0, [r0]
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r2, [r2, r0, lsl #2]
	add	r3, r3, r1
	ldr	r5, [r2, r3, lsl #2]
	cmp	r5, #0
	beq	.L2
	mov	r7, #32
	ldr	r2, [r4, #24]
	ldr	r1, [r4, #28]
	mov	r0, r5
	bl	pci_write_config_dword
	ldr	r2, [r4, #24]
	ldr	r1, [r4, #28]
	asr	r2, r2, r7
	add	r1, r1, #4
	mov	r0, r5
	bl	pci_write_config_dword
	ldr	r2, [r4, #12]
	ldr	r1, [r4, #16]
	mov	r0, r5
	bl	pci_write_config_dword
	ldr	r2, [r4, #12]
	ldr	r1, [r4, #16]
	mov	r0, r5
	asr	r2, r2, r7
	add	r1, r1, #4
	bl	pci_write_config_dword
.L2:
	ldr	r3, .L8+12
	ldr	r2, [r4]
	ldr	r3, [r3]
	mov	r0, r6
	ldr	r1, [r4, #4]
	orr	r2, r2, r3
	pop	{r4, r5, r6, r7, r8, lr}
	b	pci_write_config_dword
.L9:
	.align	2
.L8:
	.word	EXTRA_REG_NONE
	.word	uncore_extra_pci_dev
	.word	SNBEP_PCI_QPI_PORT0_FILTER
	.word	SNBEP_PMON_CTL_EN
	.size	snbep_qpi_enable_event, .-snbep_qpi_enable_event
	.comm	uncore_extra_pci_dev,4,4
	.comm	SNBEP_PMON_CTL_EN,4,4
	.comm	SNBEP_PCI_QPI_PORT0_FILTER,4,4
	.comm	EXTRA_REG_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
