	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nhmex_mbox_msr_enable_event
_nhmex_mbox_msr_enable_event:           ## @nhmex_mbox_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	24(%rsi), %edi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	___BITS_VALUE
	cmpl	$255, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	movl	28(%rbx), %edi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	___BITS_VALUE
	movl	%eax, %r12d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_nhmex_mbox_shared_reg_config
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_wrmsrl
LBB0_2:
	movl	24(%rbx), %edi
	movl	$1, %esi
	movl	$8, %edx
	callq	___BITS_VALUE
	cmpl	$255, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	movl	28(%rbx), %edi
	movl	$1, %esi
	movl	$16, %edx
	callq	___BITS_VALUE
	movl	%eax, %r12d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_nhmex_mbox_shared_reg_config
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_wrmsrl
LBB0_4:
	movl	12(%rbx), %edi
	xorl	%esi, %esi
	callq	_wrmsrl
	movq	16(%rbx), %rsi
	cmpq	$-1, %rsi
	je	LBB0_6
## %bb.5:
	movl	12(%rbx), %edi
	incl	%edi
	movq	_NHMEX_M_PMON_ADDR_MATCH_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_wrmsrl
	movl	12(%rbx), %edi
	movq	16(%rbx), %rsi
	movq	_NHMEX_M_PMON_ADDR_MASK_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrq	%cl, %rsi
	addl	$2, %edi
	movq	_NHMEX_M_PMON_ADDR_MASK_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_wrmsrl
	movl	12(%rbx), %edi
	movq	_NHMEX_M_PMON_MM_CFG_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wrmsrl
LBB0_6:
	movl	(%rbx), %edi
	movq	_NHMEX_PMON_CTL_EN_BIT0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	4(%rbx), %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wrmsrl                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NHMEX_M_PMON_ADDR_MATCH_MASK,4,2 ## @NHMEX_M_PMON_ADDR_MATCH_MASK
	.comm	_NHMEX_M_PMON_ADDR_MASK_MASK,4,2 ## @NHMEX_M_PMON_ADDR_MASK_MASK
	.comm	_NHMEX_M_PMON_ADDR_MASK_SHIFT,4,2 ## @NHMEX_M_PMON_ADDR_MASK_SHIFT
	.comm	_NHMEX_M_PMON_MM_CFG_EN,4,2     ## @NHMEX_M_PMON_MM_CFG_EN
	.comm	_NHMEX_PMON_CTL_EN_BIT0,4,2     ## @NHMEX_PMON_CTL_EN_BIT0
	.no_dead_strip	_nhmex_mbox_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_mbox_msr_enable_event
_nhmex_mbox_msr_enable_event:           ; @nhmex_mbox_msr_enable_event
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #24]
	mov	w1, #0
	mov	w2, #8
	bl	___BITS_VALUE
	cmp	w0, #255
	b.eq	LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	w0, [x19, #28]
	mov	w1, #0
	mov	w2, #16
	bl	___BITS_VALUE
	mov	x22, x0
	mov	x0, x20
	mov	x1, x21
	bl	_nhmex_mbox_shared_reg_config
	mov	x1, x0
	mov	x0, x22
	bl	_wrmsrl
LBB0_2:
	ldr	w0, [x19, #24]
	mov	w1, #1
	mov	w2, #8
	bl	___BITS_VALUE
	cmp	w0, #255
	b.eq	LBB0_4
; %bb.3:
	mov	x21, x0
	ldr	w0, [x19, #28]
	mov	w1, #1
	mov	w2, #16
	bl	___BITS_VALUE
	mov	x22, x0
	mov	x0, x20
	mov	x1, x21
	bl	_nhmex_mbox_shared_reg_config
	mov	x1, x0
	mov	x0, x22
	bl	_wrmsrl
LBB0_4:
	ldr	w0, [x19, #12]
	mov	w1, #0
	bl	_wrmsrl
	ldr	x8, [x19, #16]
	cmn	x8, #1
	b.eq	LBB0_6
; %bb.5:
	ldr	w9, [x19, #12]
	add	w0, w9, #1
Lloh0:
	adrp	x9, _NHMEX_M_PMON_ADDR_MATCH_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NHMEX_M_PMON_ADDR_MATCH_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w1, w9, w8
	bl	_wrmsrl
	ldr	w8, [x19, #12]
	add	w0, w8, #2
Lloh3:
	adrp	x8, _NHMEX_M_PMON_ADDR_MASK_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NHMEX_M_PMON_ADDR_MASK_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x19, #16]
Lloh6:
	adrp	x10, _NHMEX_M_PMON_ADDR_MASK_SHIFT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NHMEX_M_PMON_ADDR_MASK_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	lsr	x9, x9, x10
	and	w1, w8, w9
	bl	_wrmsrl
	ldr	w0, [x19, #12]
Lloh9:
	adrp	x8, _NHMEX_M_PMON_MM_CFG_EN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NHMEX_M_PMON_MM_CFG_EN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_wrmsrl
LBB0_6:
	ldp	w0, w8, [x19]
Lloh12:
	adrp	x9, _NHMEX_PMON_CTL_EN_BIT0@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NHMEX_PMON_CTL_EN_BIT0@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w1, w9, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_wrmsrl
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_NHMEX_M_PMON_ADDR_MATCH_MASK,4,2 ; @NHMEX_M_PMON_ADDR_MATCH_MASK
	.comm	_NHMEX_M_PMON_ADDR_MASK_MASK,4,2 ; @NHMEX_M_PMON_ADDR_MASK_MASK
	.comm	_NHMEX_M_PMON_ADDR_MASK_SHIFT,4,2 ; @NHMEX_M_PMON_ADDR_MASK_SHIFT
	.comm	_NHMEX_M_PMON_MM_CFG_EN,4,2     ; @NHMEX_M_PMON_MM_CFG_EN
	.comm	_NHMEX_PMON_CTL_EN_BIT0,4,2     ; @NHMEX_PMON_CTL_EN_BIT0
	.no_dead_strip	_nhmex_mbox_msr_enable_event
.subsections_via_symbols
