	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen8_enable_metric_set
_gen8_enable_metric_set:                ## @gen8_enable_metric_set
	.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, %rbx
	movq	(%rdi), %r15
	movq	8(%rdi), %r14
	movq	%r14, %rdi
	movl	$9, %esi
	movl	$11, %edx
	callq	_IS_GEN_RANGE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_GEN8_OA_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_GEN9_OA_DEBUG_DISABLE_CLK_RATIO_REPORTS@GOTPCREL(%rip), %rax
	movq	_GEN9_OA_DEBUG_INCLUDE_CLK_RATIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	__MASKED_BIT_ENABLE
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
LBB0_2:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_gen8_configure_all_contexts
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	8(%r15), %edx
	movl	12(%r15), %esi
	movq	%r14, %rdi
	callq	_config_oa_regs
	xorl	%eax, %eax
	callq	_delay_after_mux
	movl	(%r15), %edx
	movl	4(%r15), %esi
	movq	%r14, %rdi
	callq	_config_oa_regs
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN8_OA_DEBUG,4,2              ## @GEN8_OA_DEBUG
	.comm	_GEN9_OA_DEBUG_DISABLE_CLK_RATIO_REPORTS,4,2 ## @GEN9_OA_DEBUG_DISABLE_CLK_RATIO_REPORTS
	.comm	_GEN9_OA_DEBUG_INCLUDE_CLK_RATIO,4,2 ## @GEN9_OA_DEBUG_INCLUDE_CLK_RATIO
	.no_dead_strip	_gen8_enable_metric_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen8_enable_metric_set
_gen8_enable_metric_set:                ; @gen8_enable_metric_set
	.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	x21, x0
	ldp	x20, x19, [x0]
	mov	x0, x19
	mov	w1, #9
	mov	w2, #11
	bl	_IS_GEN_RANGE
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _GEN8_OA_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEN8_OA_DEBUG@GOTPAGEOFF]
Lloh2:
	adrp	x9, _GEN9_OA_DEBUG_DISABLE_CLK_RATIO_REPORTS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GEN9_OA_DEBUG_DISABLE_CLK_RATIO_REPORTS@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _GEN9_OA_DEBUG_INCLUDE_CLK_RATIO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GEN9_OA_DEBUG_INCLUDE_CLK_RATIO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	__MASKED_BIT_ENABLE
	mov	x1, x0
	mov	x0, x22
	bl	_I915_WRITE
LBB0_2:
	mov	x0, x21
	mov	x1, x20
	bl	_gen8_configure_all_contexts
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.3:
	ldp	w2, w1, [x20, #8]
	mov	x0, x19
	bl	_config_oa_regs
	bl	_delay_after_mux
	ldp	w2, w1, [x20]
	mov	x0, x19
	bl	_config_oa_regs
LBB0_4:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN8_OA_DEBUG,4,2              ; @GEN8_OA_DEBUG
	.comm	_GEN9_OA_DEBUG_DISABLE_CLK_RATIO_REPORTS,4,2 ; @GEN9_OA_DEBUG_DISABLE_CLK_RATIO_REPORTS
	.comm	_GEN9_OA_DEBUG_INCLUDE_CLK_RATIO,4,2 ; @GEN9_OA_DEBUG_INCLUDE_CLK_RATIO
	.no_dead_strip	_gen8_enable_metric_set
.subsections_via_symbols
