	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nhmex_bbox_msr_enable_event
_nhmex_bbox_msr_enable_event:           ## @nhmex_bbox_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), %rax
	movq	_EXTRA_REG_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	56(%rbx), %rdi
	movl	48(%rbx), %esi
	callq	_wrmsrl
	movq	56(%rbx), %rdi
	incq	%rdi
	movl	24(%rbx), %esi
	callq	_wrmsrl
LBB0_2:
	movq	8(%rbx), %rdi
	movq	_NHMEX_PMON_CTL_EN_BIT0@GOTPCREL(%rip), %rax
	movq	_NHMEX_B_PMON_CTL_EV_SEL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	(%rbx), %esi
	orl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_wrmsrl                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EXTRA_REG_NONE,8,3             ## @EXTRA_REG_NONE
	.comm	_NHMEX_PMON_CTL_EN_BIT0,4,2     ## @NHMEX_PMON_CTL_EN_BIT0
	.comm	_NHMEX_B_PMON_CTL_EV_SEL_MASK,4,2 ## @NHMEX_B_PMON_CTL_EV_SEL_MASK
	.no_dead_strip	_nhmex_bbox_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_bbox_msr_enable_event
_nhmex_bbox_msr_enable_event:           ; @nhmex_bbox_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	x8, [x1, #40]
Lloh0:
	adrp	x9, _EXTRA_REG_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EXTRA_REG_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	ldr	x0, [x19, #56]
	ldr	w1, [x19, #48]
	bl	_wrmsrl
	ldr	x8, [x19, #56]
	add	x0, x8, #1
	ldr	w1, [x19, #24]
	bl	_wrmsrl
LBB0_2:
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x8, _NHMEX_PMON_CTL_EN_BIT0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NHMEX_PMON_CTL_EN_BIT0@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _NHMEX_B_PMON_CTL_EV_SEL_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NHMEX_B_PMON_CTL_EV_SEL_MASK@GOTPAGEOFF]
	ldr	w10, [x19]
Lloh8:
	ldr	w9, [x9]
	and	w9, w9, w10
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EXTRA_REG_NONE,8,3             ; @EXTRA_REG_NONE
	.comm	_NHMEX_PMON_CTL_EN_BIT0,4,2     ; @NHMEX_PMON_CTL_EN_BIT0
	.comm	_NHMEX_B_PMON_CTL_EV_SEL_MASK,4,2 ; @NHMEX_B_PMON_CTL_EV_SEL_MASK
	.no_dead_strip	_nhmex_bbox_msr_enable_event
.subsections_via_symbols
