	.file	"extr_uncore_nhmex.c_nhmex_sbox_msr_enable_event.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nhmex_sbox_msr_enable_event, @function
nhmex_sbox_msr_enable_event:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rax, QWORD PTR EXTRA_REG_NONE[rip]
	mov	rbx, rsi
	cmp	QWORD PTR 40[rsi], rax
	je	.L2
	mov	rdi, QWORD PTR 56[rsi]
	xor	esi, esi
	call	wrmsrl@PLT
	mov	rax, QWORD PTR 56[rbx]
	mov	esi, DWORD PTR 48[rbx]
	lea	rdi, 1[rax]
	call	wrmsrl@PLT
	mov	rax, QWORD PTR 56[rbx]
	mov	esi, DWORD PTR 24[rbx]
	lea	rdi, 2[rax]
	call	wrmsrl@PLT
	mov	rdi, QWORD PTR 56[rbx]
	mov	esi, DWORD PTR NHMEX_S_PMON_MM_CFG_EN[rip]
	call	wrmsrl@PLT
.L2:
	mov	rdi, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR [rbx]
	pop	rbx
	.cfi_def_cfa_offset 8
	or	esi, DWORD PTR NHMEX_PMON_CTL_EN_BIT22[rip]
	jmp	wrmsrl@PLT
	.cfi_endproc
.LFE0:
	.size	nhmex_sbox_msr_enable_event, .-nhmex_sbox_msr_enable_event
	.comm	NHMEX_S_PMON_MM_CFG_EN,4,4
	.comm	NHMEX_PMON_CTL_EN_BIT22,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_nhmex.c_nhmex_sbox_msr_enable_event.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nhmex_sbox_msr_enable_event, %function
nhmex_sbox_msr_enable_event:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L5
	ldr	r2, [r1, #20]
	ldr	r3, [r3]
	push	{r4, lr}
	cmp	r2, r3
	mov	r4, r1
	beq	.L2
	mov	r1, #0
	ldr	r0, [r4, #28]
	bl	wrmsrl
	ldr	r0, [r4, #28]
	ldr	r1, [r4, #24]
	add	r0, r0, #1
	bl	wrmsrl
	ldr	r0, [r4, #28]
	ldr	r1, [r4, #12]
	add	r0, r0, #2
	bl	wrmsrl
	ldr	r3, .L5+4
	ldr	r0, [r4, #28]
	ldr	r1, [r3]
	bl	wrmsrl
.L2:
	ldr	r3, .L5+8
	ldr	r1, [r4]
	ldr	r3, [r3]
	ldr	r0, [r4, #4]
	orr	r1, r1, r3
	pop	{r4, lr}
	b	wrmsrl
.L6:
	.align	2
.L5:
	.word	EXTRA_REG_NONE
	.word	NHMEX_S_PMON_MM_CFG_EN
	.word	NHMEX_PMON_CTL_EN_BIT22
	.size	nhmex_sbox_msr_enable_event, .-nhmex_sbox_msr_enable_event
	.comm	NHMEX_S_PMON_MM_CFG_EN,4,4
	.comm	NHMEX_PMON_CTL_EN_BIT22,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
