	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nhmex_uncore_msr_enable_event
_nhmex_uncore_msr_enable_event:         ## @nhmex_uncore_msr_enable_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %rax
	movq	_UNCORE_PMC_IDX_FIXED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_5
## %bb.1:
	movq	(%rdi), %rax
	movq	(%rax), %rdx
	movq	_NHMEX_PMON_CTL_EN_BIT0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	8(%rsi), %eax
	movl	12(%rsi), %edi
	testl	%ecx, (%rdx)
	je	LBB0_3
## %bb.2:
	movq	_NHMEX_PMON_CTL_EN_BIT22@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_4
LBB0_5:
	movl	12(%rsi), %edi
	movq	_NHMEX_PMON_CTL_EN_BIT0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbp
	jmp	_wrmsrl                         ## TAILCALL
LBB0_3:
	orl	%ecx, %eax
LBB0_4:
	movl	%eax, %esi
	popq	%rbp
	jmp	_wrmsrl                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UNCORE_PMC_IDX_FIXED,8,3       ## @UNCORE_PMC_IDX_FIXED
	.comm	_NHMEX_PMON_CTL_EN_BIT0,4,2     ## @NHMEX_PMON_CTL_EN_BIT0
	.comm	_NHMEX_PMON_CTL_EN_BIT22,4,2    ## @NHMEX_PMON_CTL_EN_BIT22
	.no_dead_strip	_nhmex_uncore_msr_enable_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nhmex_uncore_msr_enable_event
_nhmex_uncore_msr_enable_event:         ; @nhmex_uncore_msr_enable_event
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _UNCORE_PMC_IDX_FIXED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UNCORE_PMC_IDX_FIXED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.1:
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w10, [x8]
Lloh3:
	adrp	x8, _NHMEX_PMON_CTL_EN_BIT0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NHMEX_PMON_CTL_EN_BIT0@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldp	w9, w0, [x1, #8]
	tst	w8, w10
	b.eq	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _NHMEX_PMON_CTL_EN_BIT22@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NHMEX_PMON_CTL_EN_BIT22@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w1, w8, w9
	b	_wrmsrl
LBB0_3:
	ldr	w0, [x1, #12]
Lloh9:
	adrp	x8, _NHMEX_PMON_CTL_EN_BIT0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NHMEX_PMON_CTL_EN_BIT0@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	b	_wrmsrl
LBB0_4:
	orr	w1, w9, w8
	b	_wrmsrl
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_UNCORE_PMC_IDX_FIXED,8,3       ; @UNCORE_PMC_IDX_FIXED
	.comm	_NHMEX_PMON_CTL_EN_BIT0,4,2     ; @NHMEX_PMON_CTL_EN_BIT0
	.comm	_NHMEX_PMON_CTL_EN_BIT22,4,2    ; @NHMEX_PMON_CTL_EN_BIT22
	.no_dead_strip	_nhmex_uncore_msr_enable_event
.subsections_via_symbols
