	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nhmex_mbox_extra_reg_idx
_nhmex_mbox_extra_reg_idx:              ## @nhmex_mbox_extra_reg_idx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	_EXTRA_REG_NHMEX_M_ZDP_CTL_FVC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_2
## %bb.1:
	movl	8(%rdi), %edx
	movq	_NHMEX_M_PMON_CTL_INC_SEL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	addl	%edx, %eax
	addl	$-13, %eax
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXTRA_REG_NHMEX_M_ZDP_CTL_FVC,8,3 ## @EXTRA_REG_NHMEX_M_ZDP_CTL_FVC
	.comm	_NHMEX_M_PMON_CTL_INC_SEL_SHIFT,4,2 ## @NHMEX_M_PMON_CTL_INC_SEL_SHIFT
	.no_dead_strip	_nhmex_mbox_extra_reg_idx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nhmex_mbox_extra_reg_idx
_nhmex_mbox_extra_reg_idx:              ; @nhmex_mbox_extra_reg_idx
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x9, _EXTRA_REG_NHMEX_M_ZDP_CTL_FVC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EXTRA_REG_NHMEX_M_ZDP_CTL_FVC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x0, x9
	b.lt	LBB0_2
; %bb.1:
	ldr	w8, [x8, #8]
Lloh3:
	adrp	x9, _NHMEX_M_PMON_CTL_INC_SEL_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NHMEX_M_PMON_CTL_INC_SEL_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	asr	w8, w8, w9
	add	w8, w0, w8
	sub	w0, w8, #13
LBB0_2:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EXTRA_REG_NHMEX_M_ZDP_CTL_FVC,8,3 ; @EXTRA_REG_NHMEX_M_ZDP_CTL_FVC
	.comm	_NHMEX_M_PMON_CTL_INC_SEL_SHIFT,4,2 ; @NHMEX_M_PMON_CTL_INC_SEL_SHIFT
	.no_dead_strip	_nhmex_mbox_extra_reg_idx
.subsections_via_symbols
