	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_pmu_hw_config
_intel_pmu_hw_config:                   ## @intel_pmu_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
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_x86_pmu_hw_config
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.1:
	cmpq	$0, 24(%r14)
	movq	_x86_pmu@GOTPCREL(%rip), %r12
	je	LBB0_4
## %bb.2:
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	*%rax
LBB0_4:
	movq	8(%r14), %rax
	movq	_PERF_TYPE_RAW@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.5:
	movq	_ARCH_PERFMON_EVENTSEL_ANY@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, 16(%r14)
	je	LBB0_13
## %bb.6:
	cmpl	$2, (%r12)
	jg	LBB0_9
## %bb.7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_9:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_perf_paranoid_cpu
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	_CAP_SYS_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_11
LBB0_12:
	movl	(%r15), %eax
	orl	%eax, (%r14)
	jmp	LBB0_13
LBB0_11:
	movq	_EACCES@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_x86_pmu,16,3                   ## @x86_pmu
	.comm	_PERF_TYPE_RAW,8,3              ## @PERF_TYPE_RAW
	.comm	_ARCH_PERFMON_EVENTSEL_ANY,4,2  ## @ARCH_PERFMON_EVENTSEL_ANY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CAP_SYS_ADMIN,4,2              ## @CAP_SYS_ADMIN
	.comm	_EACCES,4,2                     ## @EACCES
	.no_dead_strip	_intel_pmu_hw_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_pmu_hw_config
_intel_pmu_hw_config:                   ; @intel_pmu_hw_config
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_x86_pmu_hw_config
	cbnz	w0, LBB0_13
; %bb.1:
	ldr	x9, [x19, #24]
Lloh0:
	adrp	x21, _x86_pmu@GOTPAGE
Lloh1:
	ldr	x21, [x21, _x86_pmu@GOTPAGEOFF]
	ldr	x8, [x21, #8]
	cmp	x9, #0
	ccmp	x8, #0, #4, ne
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	blr	x8
LBB0_3:
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _PERF_TYPE_RAW@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PERF_TYPE_RAW@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
	ldr	w8, [x19, #16]
Lloh5:
	adrp	x20, _ARCH_PERFMON_EVENTSEL_ANY@GOTPAGE
Lloh6:
	ldr	x20, [x20, _ARCH_PERFMON_EVENTSEL_ANY@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
	ldr	w8, [x21]
	cmp	w8, #2
	b.gt	LBB0_8
; %bb.6:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_7:
	mov	w0, #0
	b	LBB0_13
LBB0_8:
	bl	_perf_paranoid_cpu
	cbz	x0, LBB0_10
; %bb.9:
Lloh9:
	adrp	x8, _CAP_SYS_ADMIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CAP_SYS_ADMIN@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_11
LBB0_10:
	mov	w0, #0
	ldr	w8, [x20]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_13
LBB0_11:
Lloh12:
	adrp	x8, _EACCES@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_x86_pmu,16,3                   ; @x86_pmu
	.comm	_PERF_TYPE_RAW,8,3              ; @PERF_TYPE_RAW
	.comm	_ARCH_PERFMON_EVENTSEL_ANY,4,2  ; @ARCH_PERFMON_EVENTSEL_ANY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CAP_SYS_ADMIN,4,2              ; @CAP_SYS_ADMIN
	.comm	_EACCES,4,2                     ; @EACCES
	.no_dead_strip	_intel_pmu_hw_config
.subsections_via_symbols
