	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hsw_enable_metric_set
_hsw_enable_metric_set:                 ## @hsw_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	movq	8(%rdi), %r14
	movq	_GEN7_MISCCPCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_I915_READ
	movq	_GEN7_DOP_CLOCK_GATE_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	%ebx, %edi
	callq	_I915_WRITE
	movq	_GEN6_UCGCTL1@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_I915_READ
	movq	_GEN6_CSUNIT_CLOCK_GATE_DISABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	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
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN7_MISCCPCTL,4,2             ## @GEN7_MISCCPCTL
	.comm	_GEN7_DOP_CLOCK_GATE_ENABLE,4,2 ## @GEN7_DOP_CLOCK_GATE_ENABLE
	.comm	_GEN6_UCGCTL1,4,2               ## @GEN6_UCGCTL1
	.comm	_GEN6_CSUNIT_CLOCK_GATE_DISABLE,4,2 ## @GEN6_CSUNIT_CLOCK_GATE_DISABLE
	.no_dead_strip	_hsw_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 hsw_enable_metric_set
_hsw_enable_metric_set:                 ; @hsw_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
	ldp	x21, x19, [x0]
Lloh0:
	adrp	x8, _GEN7_MISCCPCTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEN7_MISCCPCTL@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_I915_READ
Lloh3:
	adrp	x8, _GEN7_DOP_CLOCK_GATE_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GEN7_DOP_CLOCK_GATE_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	bic	w1, w0, w8
	mov	x0, x20
	bl	_I915_WRITE
Lloh6:
	adrp	x8, _GEN6_UCGCTL1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GEN6_UCGCTL1@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_I915_READ
Lloh9:
	adrp	x8, _GEN6_CSUNIT_CLOCK_GATE_DISABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GEN6_CSUNIT_CLOCK_GATE_DISABLE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x20
	bl	_I915_WRITE
	ldp	w2, w1, [x21, #8]
	mov	x0, x19
	bl	_config_oa_regs
	bl	_delay_after_mux
	ldp	w2, w1, [x21]
	mov	x0, x19
	bl	_config_oa_regs
	mov	w0, #0
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN7_MISCCPCTL,4,2             ; @GEN7_MISCCPCTL
	.comm	_GEN7_DOP_CLOCK_GATE_ENABLE,4,2 ; @GEN7_DOP_CLOCK_GATE_ENABLE
	.comm	_GEN6_UCGCTL1,4,2               ; @GEN6_UCGCTL1
	.comm	_GEN6_CSUNIT_CLOCK_GATE_DISABLE,4,2 ; @GEN6_CSUNIT_CLOCK_GATE_DISABLE
	.no_dead_strip	_hsw_enable_metric_set
.subsections_via_symbols
