	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nhmex_sbox_hw_config
_nhmex_sbox_hw_config:                  ## @nhmex_sbox_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
	movq	_NHMEX_S_PMON_MM_CFG_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_1
## %bb.2:
	movq	8(%rsi), %rax
	movq	16(%rsi), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	$-1, %rax
	movq	$-1, %rcx
LBB0_3:
	movq	%rax, 48(%rsi)
	movq	%rcx, 24(%rsi)
	movq	(%rdi), %rax
	cmpq	$0, (%rax)
	jne	LBB0_4
## %bb.5:
	movq	_NHMEX_S0_MSR_MM_CFG@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_NHMEX_S1_MSR_MM_CFG@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, 64(%rsi)
	movq	$0, 56(%rsi)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NHMEX_S_PMON_MM_CFG_EN,4,2     ## @NHMEX_S_PMON_MM_CFG_EN
	.comm	_NHMEX_S0_MSR_MM_CFG,4,2        ## @NHMEX_S0_MSR_MM_CFG
	.comm	_NHMEX_S1_MSR_MM_CFG,4,2        ## @NHMEX_S1_MSR_MM_CFG
	.no_dead_strip	_nhmex_sbox_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_sbox_hw_config
_nhmex_sbox_hw_config:                  ; @nhmex_sbox_hw_config
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _NHMEX_S_PMON_MM_CFG_EN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NHMEX_S_PMON_MM_CFG_EN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldp	x8, x9, [x1, #8]
	b	LBB0_3
LBB0_2:
	mov	x8, #-1
	mov	x9, #-1
LBB0_3:
	str	x8, [x1, #48]
	str	x9, [x1, #24]
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _NHMEX_S0_MSR_MM_CFG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NHMEX_S0_MSR_MM_CFG@GOTPAGEOFF]
Lloh5:
	adrp	x10, _NHMEX_S1_MSR_MM_CFG@GOTPAGE
Lloh6:
	ldr	x10, [x10, _NHMEX_S1_MSR_MM_CFG@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x1, #64]
	str	xzr, [x1, #56]
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NHMEX_S_PMON_MM_CFG_EN,4,2     ; @NHMEX_S_PMON_MM_CFG_EN
	.comm	_NHMEX_S0_MSR_MM_CFG,4,2        ; @NHMEX_S0_MSR_MM_CFG
	.comm	_NHMEX_S1_MSR_MM_CFG,4,2        ; @NHMEX_S1_MSR_MM_CFG
	.no_dead_strip	_nhmex_sbox_hw_config
.subsections_via_symbols
