	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reserve_evntsel_nmi            ## -- Begin function reserve_evntsel_nmi
	.p2align	4, 0x90
_reserve_evntsel_nmi:                   ## @reserve_evntsel_nmi
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	callq	_nmi_evntsel_msr_to_bit
	movl	%eax, %edi
	movq	_NMI_MAX_COUNTER_BITS@GOTPCREL(%rip), %rcx
	movl	$1, %eax
	cmpl	(%rcx), %edi
	ja	LBB0_2
## %bb.1:
	movq	_evntsel_nmi_owner@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_test_and_set_bit
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	sete	%al
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NMI_MAX_COUNTER_BITS,4,2       ## @NMI_MAX_COUNTER_BITS
	.comm	_evntsel_nmi_owner,4,2          ## @evntsel_nmi_owner
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reserve_evntsel_nmi            ; -- Begin function reserve_evntsel_nmi
	.p2align	2
_reserve_evntsel_nmi:                   ; @reserve_evntsel_nmi
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_nmi_evntsel_msr_to_bit
Lloh0:
	adrp	x8, _NMI_MAX_COUNTER_BITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NMI_MAX_COUNTER_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ls	LBB0_2
; %bb.1:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh3:
	adrp	x8, _evntsel_nmi_owner@GOTPAGE
Lloh4:
	ldr	x8, [x8, _evntsel_nmi_owner@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_test_and_set_bit
	cmp	w0, #0
	cset	w0, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NMI_MAX_COUNTER_BITS,4,2       ; @NMI_MAX_COUNTER_BITS
	.comm	_evntsel_nmi_owner,4,2          ; @evntsel_nmi_owner
.subsections_via_symbols
