	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tsc_allocate_pmc
_tsc_allocate_pmc:                      ## @tsc_allocate_pmc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_PMC_EV_TSC_TSC@GOTPCREL(%rip), %rcx
	movl	$-1, %eax
	cmpl	%edi, (%rcx)
	jne	LBB0_4
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	cmpb	$0, (%rsi)
	je	LBB0_3
LBB0_4:
	popq	%rbp
	retq
LBB0_3:
	movq	$0, 8(%rdx)
	movq	_PMC_CAP_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rdx)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PMC_EV_TSC_TSC,4,2             ## @PMC_EV_TSC_TSC
	.comm	_PMC_CAP_READ,4,2               ## @PMC_CAP_READ
	.no_dead_strip	_tsc_allocate_pmc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tsc_allocate_pmc
_tsc_allocate_pmc:                      ; @tsc_allocate_pmc
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _PMC_EV_TSC_TSC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PMC_EV_TSC_TSC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_3
; %bb.1:
	cbz	x1, LBB0_4
; %bb.2:
	ldrb	w8, [x1]
	cbz	w8, LBB0_4
LBB0_3:
	mov	w0, #-1
	ret
LBB0_4:
	mov	w0, #0
	str	xzr, [x2, #8]
Lloh3:
	adrp	x8, _PMC_CAP_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PMC_CAP_READ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x2]
	orr	w8, w9, w8
	str	w8, [x2]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PMC_EV_TSC_TSC,4,2             ; @PMC_EV_TSC_TSC
	.comm	_PMC_CAP_READ,4,2               ; @PMC_CAP_READ
	.no_dead_strip	_tsc_allocate_pmc
.subsections_via_symbols
