	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_try_alt_er
_intel_try_alt_er:                      ## @intel_try_alt_er
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_x86_pmu@GOTPCREL(%rip), %rax
	movq	_ERF_HAS_RSP_1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.2:
	movl	4(%rdi), %edx
	movq	_EXTRA_REG_RSP_0@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_4
## %bb.3:
	movq	_MSR_OFFCORE_RSP_1@GOTPCREL(%rip), %r8
	movq	_EXTRA_REG_RSP_1@GOTPCREL(%rip), %rax
	movl	$443, %edx                      ## imm = 0x1BB
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	movq	_EXTRA_REG_RSP_1@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jne	LBB0_7
## %bb.5:
	movq	_MSR_OFFCORE_RSP_0@GOTPCREL(%rip), %r8
	movl	$439, %edx                      ## imm = 0x1B7
LBB0_6:
	movq	_INTEL_ARCH_EVENT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	(%rdi), %ecx
	orl	%edx, %ecx
	movl	%ecx, (%rdi)
	movl	(%rax), %edx
	movl	%edx, 4(%rdi)
	movl	(%r8), %eax
	movl	%eax, 8(%rdi)
LBB0_7:
	xorl	%eax, %eax
	cmpl	%esi, %edx
	setne	%al
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_x86_pmu,4,2                    ## @x86_pmu
	.comm	_ERF_HAS_RSP_1,4,2              ## @ERF_HAS_RSP_1
	.comm	_EXTRA_REG_RSP_0,4,2            ## @EXTRA_REG_RSP_0
	.comm	_INTEL_ARCH_EVENT_MASK,4,2      ## @INTEL_ARCH_EVENT_MASK
	.comm	_EXTRA_REG_RSP_1,4,2            ## @EXTRA_REG_RSP_1
	.comm	_MSR_OFFCORE_RSP_1,4,2          ## @MSR_OFFCORE_RSP_1
	.comm	_MSR_OFFCORE_RSP_0,4,2          ## @MSR_OFFCORE_RSP_0
	.no_dead_strip	_intel_try_alt_er
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_try_alt_er
_intel_try_alt_er:                      ; @intel_try_alt_er
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _x86_pmu@GOTPAGE
Lloh1:
	ldr	x8, [x8, _x86_pmu@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ERF_HAS_RSP_1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ERF_HAS_RSP_1@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	w10, [x0, #4]
Lloh6:
	adrp	x8, _EXTRA_REG_RSP_0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EXTRA_REG_RSP_0@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x8]
Lloh9:
	adrp	x8, _EXTRA_REG_RSP_1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EXTRA_REG_RSP_1@GOTPAGEOFF]
	cmp	w10, w9
	b.ne	LBB0_4
; %bb.2:
Lloh11:
	adrp	x9, _MSR_OFFCORE_RSP_1@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MSR_OFFCORE_RSP_1@GOTPAGEOFF]
	mov	w10, #443
	b	LBB0_6
LBB0_3:
	mov	w0, #0
	ret
LBB0_4:
	ldr	w8, [x8]
	cmp	w10, w8
	b.ne	LBB0_7
; %bb.5:
Lloh13:
	adrp	x9, _MSR_OFFCORE_RSP_0@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MSR_OFFCORE_RSP_0@GOTPAGEOFF]
Lloh15:
	adrp	x8, _EXTRA_REG_RSP_0@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EXTRA_REG_RSP_0@GOTPAGEOFF]
	mov	w10, #439
LBB0_6:
Lloh17:
	adrp	x11, _INTEL_ARCH_EVENT_MASK@GOTPAGE
Lloh18:
	ldr	x11, [x11, _INTEL_ARCH_EVENT_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
	ldr	w12, [x0]
	bic	w11, w12, w11
	orr	w10, w11, w10
	str	w10, [x0]
	ldr	w10, [x8]
	ldr	w8, [x9]
	stp	w10, w8, [x0, #4]
LBB0_7:
	cmp	w10, w1
	cset	w0, ne
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_x86_pmu,4,2                    ; @x86_pmu
	.comm	_ERF_HAS_RSP_1,4,2              ; @ERF_HAS_RSP_1
	.comm	_EXTRA_REG_RSP_0,4,2            ; @EXTRA_REG_RSP_0
	.comm	_INTEL_ARCH_EVENT_MASK,4,2      ; @INTEL_ARCH_EVENT_MASK
	.comm	_EXTRA_REG_RSP_1,4,2            ; @EXTRA_REG_RSP_1
	.comm	_MSR_OFFCORE_RSP_1,4,2          ; @MSR_OFFCORE_RSP_1
	.comm	_MSR_OFFCORE_RSP_0,4,2          ; @MSR_OFFCORE_RSP_0
	.no_dead_strip	_intel_try_alt_er
.subsections_via_symbols
