	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nhmex_bbox_hw_config
_nhmex_bbox_hw_config:                  ## @nhmex_bbox_hw_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	8(%rsi), %edx
	movq	_NHMEX_B_PMON_CTR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edx, %eax
	movq	_NHMEX_B_PMON_CTR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_NHMEX_B_PMON_CTL_EV_SEL_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	movq	_NHMEX_B_PMON_CTL_EV_SEL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	cmpl	$3, %edx
	jg	LBB0_10
LBB0_2:
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.3:
	cmpl	$6, %edx
	jg	LBB0_10
LBB0_4:
	cmpl	$2, %eax
	sete	%cl
	cmpl	$4, %edx
	setne	%dl
	cmpl	$3, %eax
	je	LBB0_10
## %bb.5:
	andb	%dl, %cl
	jne	LBB0_10
## %bb.6:
	movq	(%rdi), %rax
	cmpq	$0, (%rax)
	jne	LBB0_7
## %bb.8:
	movq	_NHMEX_B0_MSR_MATCH@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_NHMEX_B1_MSR_MATCH@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	movl	%eax, 56(%rsi)
	movq	$0, 48(%rsi)
	movl	(%rsi), %eax
	movl	4(%rsi), %ecx
	movl	%ecx, 40(%rsi)
	movl	%eax, 16(%rsi)
LBB0_10:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NHMEX_B_PMON_CTR_MASK,4,2      ## @NHMEX_B_PMON_CTR_MASK
	.comm	_NHMEX_B_PMON_CTR_SHIFT,4,2     ## @NHMEX_B_PMON_CTR_SHIFT
	.comm	_NHMEX_B_PMON_CTL_EV_SEL_MASK,4,2 ## @NHMEX_B_PMON_CTL_EV_SEL_MASK
	.comm	_NHMEX_B_PMON_CTL_EV_SEL_SHIFT,4,2 ## @NHMEX_B_PMON_CTL_EV_SEL_SHIFT
	.comm	_NHMEX_B0_MSR_MATCH,4,2         ## @NHMEX_B0_MSR_MATCH
	.comm	_NHMEX_B1_MSR_MATCH,4,2         ## @NHMEX_B1_MSR_MATCH
	.no_dead_strip	_nhmex_bbox_hw_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nhmex_bbox_hw_config
_nhmex_bbox_hw_config:                  ; @nhmex_bbox_hw_config
	.cfi_startproc
; %bb.0:
	ldr	w9, [x1, #8]
Lloh0:
	adrp	x8, _NHMEX_B_PMON_CTR_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NHMEX_B_PMON_CTR_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w9
Lloh3:
	adrp	x10, _NHMEX_B_PMON_CTR_SHIFT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NHMEX_B_PMON_CTR_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	asr	w8, w8, w10
Lloh6:
	adrp	x10, _NHMEX_B_PMON_CTL_EV_SEL_MASK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NHMEX_B_PMON_CTL_EV_SEL_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	and	w9, w10, w9
Lloh9:
	adrp	x10, _NHMEX_B_PMON_CTL_EV_SEL_SHIFT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _NHMEX_B_PMON_CTL_EV_SEL_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	asr	w9, w9, w10
	cmp	w8, #0
	ccmp	w9, #3, #4, eq
	b.gt	LBB0_5
; %bb.1:
	cmp	w8, #1
	ccmp	w9, #6, #4, eq
	b.gt	LBB0_5
; %bb.2:
	cmp	w8, #2
	ccmp	w9, #4, #4, eq
	cset	w9, ne
	cmp	w8, #3
	b.eq	LBB0_5
; %bb.3:
	tbnz	w9, #0, LBB0_5
; %bb.4:
	ldr	x8, [x0]
Lloh12:
	adrp	x9, _NHMEX_B0_MSR_MATCH@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NHMEX_B0_MSR_MATCH@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh14:
	adrp	x10, _NHMEX_B1_MSR_MATCH@GOTPAGE
Lloh15:
	ldr	x10, [x10, _NHMEX_B1_MSR_MATCH@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x1, #56]
	str	xzr, [x1, #48]
	ldp	w9, w8, [x1]
	str	w8, [x1, #40]
	str	w9, [x1, #16]
LBB0_5:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NHMEX_B_PMON_CTR_MASK,4,2      ; @NHMEX_B_PMON_CTR_MASK
	.comm	_NHMEX_B_PMON_CTR_SHIFT,4,2     ; @NHMEX_B_PMON_CTR_SHIFT
	.comm	_NHMEX_B_PMON_CTL_EV_SEL_MASK,4,2 ; @NHMEX_B_PMON_CTL_EV_SEL_MASK
	.comm	_NHMEX_B_PMON_CTL_EV_SEL_SHIFT,4,2 ; @NHMEX_B_PMON_CTL_EV_SEL_SHIFT
	.comm	_NHMEX_B0_MSR_MATCH,4,2         ; @NHMEX_B0_MSR_MATCH
	.comm	_NHMEX_B1_MSR_MATCH,4,2         ; @NHMEX_B1_MSR_MATCH
	.no_dead_strip	_nhmex_bbox_hw_config
.subsections_via_symbols
