	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p4_reserve
_p4_reserve:                            ## @p4_reserve
	.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	_MSR_P4_IQ_PERFCTR0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_reserve_perfctr_nmi
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.1:
	movq	_MSR_P4_CRU_ESCR0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_reserve_evntsel_nmi
	movl	%eax, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	jne	LBB0_3
## %bb.2:
	movl	(%rbx), %edi
	callq	_release_perfctr_nmi
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSR_P4_IQ_PERFCTR0,4,2         ## @MSR_P4_IQ_PERFCTR0
	.comm	_MSR_P4_CRU_ESCR0,4,2           ## @MSR_P4_CRU_ESCR0
	.comm	_MSR_P4_IQ_PERFCTR1,4,2         ## @MSR_P4_IQ_PERFCTR1
	.comm	_smp_num_siblings,4,2           ## @smp_num_siblings
	.no_dead_strip	_p4_reserve
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p4_reserve
_p4_reserve:                            ; @p4_reserve
	.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
Lloh0:
	adrp	x19, _MSR_P4_IQ_PERFCTR0@GOTPAGE
Lloh1:
	ldr	x19, [x19, _MSR_P4_IQ_PERFCTR0@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_reserve_perfctr_nmi
	cbz	w0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _MSR_P4_CRU_ESCR0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSR_P4_CRU_ESCR0@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_reserve_evntsel_nmi
	cbz	w0, LBB0_3
; %bb.2:
	mov	w0, #1
	b	LBB0_4
LBB0_3:
	ldr	w0, [x19]
	bl	_release_perfctr_nmi
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MSR_P4_IQ_PERFCTR0,4,2         ; @MSR_P4_IQ_PERFCTR0
	.comm	_MSR_P4_CRU_ESCR0,4,2           ; @MSR_P4_CRU_ESCR0
	.comm	_MSR_P4_IQ_PERFCTR1,4,2         ; @MSR_P4_IQ_PERFCTR1
	.comm	_smp_num_siblings,4,2           ; @smp_num_siblings
	.no_dead_strip	_p4_reserve
.subsections_via_symbols
