	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nhmex_sbox_msr_enable_event
_nhmex_sbox_msr_enable_event:           ## @nhmex_sbox_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
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	40(%rsi), %rdi
	xorl	%esi, %esi
	callq	_wrmsrl
	movq	32(%rbx), %rsi
	cmpq	$-1, %rsi
	jne	LBB0_2
## %bb.1:
	cmpq	$-1, 16(%rbx)
	je	LBB0_3
LBB0_2:
	movq	40(%rbx), %rdi
	incq	%rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_wrmsrl
	movq	40(%rbx), %rdi
	addq	$2, %rdi
	movl	16(%rbx), %esi
	callq	_wrmsrl
	movq	40(%rbx), %rdi
	movq	_NHMEX_S_PMON_MM_CFG_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wrmsrl
LBB0_3:
	movq	8(%rbx), %rdi
	movq	_NHMEX_PMON_CTL_EN_BIT22@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%rbx), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_wrmsrl                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NHMEX_S_PMON_MM_CFG_EN,4,2     ## @NHMEX_S_PMON_MM_CFG_EN
	.comm	_NHMEX_PMON_CTL_EN_BIT22,4,2    ## @NHMEX_PMON_CTL_EN_BIT22
	.no_dead_strip	_nhmex_sbox_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_sbox_msr_enable_event
_nhmex_sbox_msr_enable_event:           ; @nhmex_sbox_msr_enable_event
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x0, [x1, #40]
	mov	w1, #0
	bl	_wrmsrl
	ldr	x1, [x19, #32]
	cmn	x1, #1
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
	cmn	x8, #1
	b.eq	LBB0_3
LBB0_2:
	ldr	x8, [x19, #40]
	add	x0, x8, #1
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_wrmsrl
	ldr	x8, [x19, #40]
	add	x0, x8, #2
	ldr	w1, [x19, #16]
	bl	_wrmsrl
	ldr	x0, [x19, #40]
Lloh0:
	adrp	x8, _NHMEX_S_PMON_MM_CFG_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NHMEX_S_PMON_MM_CFG_EN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_wrmsrl
LBB0_3:
	ldr	x0, [x19, #8]
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _NHMEX_PMON_CTL_EN_BIT22@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NHMEX_PMON_CTL_EN_BIT22@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wrmsrl
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NHMEX_S_PMON_MM_CFG_EN,4,2     ; @NHMEX_S_PMON_MM_CFG_EN
	.comm	_NHMEX_PMON_CTL_EN_BIT22,4,2    ; @NHMEX_PMON_CTL_EN_BIT22
	.no_dead_strip	_nhmex_sbox_msr_enable_event
.subsections_via_symbols
