	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_x86_pmu_hw_config              ## -- Begin function x86_pmu_hw_config
	.p2align	4, 0x90
_x86_pmu_hw_config:                     ## @x86_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
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.1:
	movq	_x86_pmu@GOTPCREL(%rip), %rdx
	cmpq	$1, (%rdx)
	movl	$2, %esi
	sbbl	$0, %esi
	xorl	%eax, %eax
	cmpq	$0, 8(%rdx)
	cmovel	%eax, %esi
	cmpl	%esi, %ecx
	jle	LBB0_2
## %bb.9:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_2:
	movq	_ARCH_PERFMON_EVENTSEL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rdi)
	cmpl	$0, 24(%rdi)
	je	LBB0_3
## %bb.4:
	cmpl	$0, 20(%rdi)
	je	LBB0_5
LBB0_6:
	movq	8(%rdi), %rcx
	movq	_PERF_TYPE_RAW@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.7:
	movq	_X86_RAW_EVENT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	16(%rdi), %ecx
	orl	%ecx, %eax
	movl	%eax, 32(%rdi)
LBB0_8:
	popq	%rbp
	jmp	_x86_setup_perfctr              ## TAILCALL
LBB0_3:
	movq	_ARCH_PERFMON_EVENTSEL_USR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 32(%rdi)
	cmpl	$0, 20(%rdi)
	jne	LBB0_6
LBB0_5:
	movq	_ARCH_PERFMON_EVENTSEL_OS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 32(%rdi)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_x86_pmu,16,3                   ## @x86_pmu
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ARCH_PERFMON_EVENTSEL_INT,4,2  ## @ARCH_PERFMON_EVENTSEL_INT
	.comm	_ARCH_PERFMON_EVENTSEL_USR,4,2  ## @ARCH_PERFMON_EVENTSEL_USR
	.comm	_ARCH_PERFMON_EVENTSEL_OS,4,2   ## @ARCH_PERFMON_EVENTSEL_OS
	.comm	_PERF_TYPE_RAW,8,3              ## @PERF_TYPE_RAW
	.comm	_X86_RAW_EVENT_MASK,4,2         ## @X86_RAW_EVENT_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_x86_pmu_hw_config              ; -- Begin function x86_pmu_hw_config
	.p2align	2
_x86_pmu_hw_config:                     ; @x86_pmu_hw_config
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, _x86_pmu@GOTPAGE
Lloh1:
	ldr	x9, [x9, _x86_pmu@GOTPAGEOFF]
	ldp	x9, x10, [x9]
	cmp	x9, #0
	mov	w9, #1
	cinc	w9, w9, ne
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	cmp	w8, w9
	b.le	LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_3:
Lloh5:
	adrp	x8, _ARCH_PERFMON_EVENTSEL_INT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ARCH_PERFMON_EVENTSEL_INT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x0, #32]
	ldr	w9, [x0, #24]
	cbz	w9, LBB0_8
; %bb.4:
	ldr	w9, [x0, #20]
	cbz	w9, LBB0_9
LBB0_5:
	ldr	x9, [x0, #8]
Lloh8:
	adrp	x10, _PERF_TYPE_RAW@GOTPAGE
Lloh9:
	ldr	x10, [x10, _PERF_TYPE_RAW@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.6:
	ldr	w9, [x0, #16]
Lloh11:
	adrp	x10, _X86_RAW_EVENT_MASK@GOTPAGE
Lloh12:
	ldr	x10, [x10, _X86_RAW_EVENT_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	and	w9, w10, w9
	orr	w8, w8, w9
	str	w8, [x0, #32]
LBB0_7:
	b	_x86_setup_perfctr
LBB0_8:
Lloh14:
	adrp	x9, _ARCH_PERFMON_EVENTSEL_USR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ARCH_PERFMON_EVENTSEL_USR@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x0, #32]
	ldr	w9, [x0, #20]
	cbnz	w9, LBB0_5
LBB0_9:
Lloh17:
	adrp	x9, _ARCH_PERFMON_EVENTSEL_OS@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ARCH_PERFMON_EVENTSEL_OS@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x0, #32]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_x86_pmu,16,3                   ; @x86_pmu
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ARCH_PERFMON_EVENTSEL_INT,4,2  ; @ARCH_PERFMON_EVENTSEL_INT
	.comm	_ARCH_PERFMON_EVENTSEL_USR,4,2  ; @ARCH_PERFMON_EVENTSEL_USR
	.comm	_ARCH_PERFMON_EVENTSEL_OS,4,2   ; @ARCH_PERFMON_EVENTSEL_OS
	.comm	_PERF_TYPE_RAW,8,3              ; @PERF_TYPE_RAW
	.comm	_X86_RAW_EVENT_MASK,4,2         ; @X86_RAW_EVENT_MASK
.subsections_via_symbols
