	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_pmu_enable_bts           ## -- Begin function intel_pmu_enable_bts
	.p2align	4, 0x90
_intel_pmu_enable_bts:                  ## @intel_pmu_enable_bts
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_get_debugctlmsr
	movq	_DEBUGCTLMSR_TR@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	_DEBUGCTLMSR_BTS@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	_DEBUGCTLMSR_BTINT@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	_ARCH_PERFMON_EVENTSEL_OS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	$0, %ecx
	andl	%ebx, %edx
	jne	LBB0_2
## %bb.1:
	movq	_DEBUGCTLMSR_BTS_OFF_OS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_2:
	orq	%rcx, %rax
	movq	_ARCH_PERFMON_EVENTSEL_USR@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	jne	LBB0_4
## %bb.3:
	movq	_DEBUGCTLMSR_BTS_OFF_USR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
LBB0_4:
	orq	%r14, %rax
	movq	%rax, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_update_debugctlmsr             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUGCTLMSR_TR,8,3             ## @DEBUGCTLMSR_TR
	.comm	_DEBUGCTLMSR_BTS,8,3            ## @DEBUGCTLMSR_BTS
	.comm	_DEBUGCTLMSR_BTINT,8,3          ## @DEBUGCTLMSR_BTINT
	.comm	_ARCH_PERFMON_EVENTSEL_OS,4,2   ## @ARCH_PERFMON_EVENTSEL_OS
	.comm	_DEBUGCTLMSR_BTS_OFF_OS,8,3     ## @DEBUGCTLMSR_BTS_OFF_OS
	.comm	_ARCH_PERFMON_EVENTSEL_USR,4,2  ## @ARCH_PERFMON_EVENTSEL_USR
	.comm	_DEBUGCTLMSR_BTS_OFF_USR,8,3    ## @DEBUGCTLMSR_BTS_OFF_USR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_pmu_enable_bts           ; -- Begin function intel_pmu_enable_bts
	.p2align	2
_intel_pmu_enable_bts:                  ; @intel_pmu_enable_bts
	.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
	mov	x19, x0
	bl	_get_debugctlmsr
Lloh0:
	adrp	x8, _DEBUGCTLMSR_TR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUGCTLMSR_TR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	orr	x8, x8, x0
Lloh3:
	adrp	x9, _DEBUGCTLMSR_BTS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DEBUGCTLMSR_BTS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	orr	x8, x8, x9
Lloh6:
	adrp	x9, _DEBUGCTLMSR_BTINT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DEBUGCTLMSR_BTINT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _ARCH_PERFMON_EVENTSEL_OS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ARCH_PERFMON_EVENTSEL_OS@GOTPAGEOFF]
	orr	x8, x8, x9
Lloh11:
	ldr	w9, [x10]
Lloh12:
	adrp	x10, _DEBUGCTLMSR_BTS_OFF_OS@GOTPAGE
Lloh13:
	ldr	x10, [x10, _DEBUGCTLMSR_BTS_OFF_OS@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	tst	w9, w19
	csel	x9, x10, xzr, eq
	orr	x8, x8, x9
Lloh15:
	adrp	x9, _ARCH_PERFMON_EVENTSEL_USR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ARCH_PERFMON_EVENTSEL_USR@GOTPAGEOFF]
Lloh17:
	adrp	x10, _DEBUGCTLMSR_BTS_OFF_USR@GOTPAGE
Lloh18:
	ldr	x10, [x10, _DEBUGCTLMSR_BTS_OFF_USR@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	ldr	x10, [x10]
	tst	w9, w19
	csel	x9, x10, xzr, eq
	orr	x0, x8, x9
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_update_debugctlmsr
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUGCTLMSR_TR,8,3             ; @DEBUGCTLMSR_TR
	.comm	_DEBUGCTLMSR_BTS,8,3            ; @DEBUGCTLMSR_BTS
	.comm	_DEBUGCTLMSR_BTINT,8,3          ; @DEBUGCTLMSR_BTINT
	.comm	_ARCH_PERFMON_EVENTSEL_OS,4,2   ; @ARCH_PERFMON_EVENTSEL_OS
	.comm	_DEBUGCTLMSR_BTS_OFF_OS,8,3     ; @DEBUGCTLMSR_BTS_OFF_OS
	.comm	_ARCH_PERFMON_EVENTSEL_USR,4,2  ; @ARCH_PERFMON_EVENTSEL_USR
	.comm	_DEBUGCTLMSR_BTS_OFF_USR,8,3    ; @DEBUGCTLMSR_BTS_OFF_USR
.subsections_via_symbols
