	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_init_gt_powersave        ## -- Begin function intel_init_gt_powersave
	.p2align	4, 0x90
_intel_init_gt_powersave:               ## @intel_init_gt_powersave
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_sanitize_rc6
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_INFO
	movq	(%rbx), %rdi
	callq	_pm_runtime_get
LBB0_2:
	movq	%rbx, %rdi
	callq	_i915_rc6_ctx_wa_init
	movq	%rbx, %rdi
	callq	_IS_CHERRYVIEW
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	callq	_cherryview_init_gt_powersave
	jmp	LBB0_8
LBB0_4:
	callq	_IS_VALLEYVIEW
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	callq	_valleyview_init_gt_powersave
	jmp	LBB0_8
LBB0_6:
	callq	_INTEL_GEN
	cmpl	$6, %eax
	jl	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_gen6_init_rps_frequencies
LBB0_8:
	movl	12(%rbx), %eax
	movl	28(%rbx), %ecx
	movl	%eax, 8(%rbx)
	movl	%ecx, 32(%rbx)
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_IS_GEN
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:
	movq	%rbx, %rdi
	callq	_IS_IVYBRIDGE
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_IS_HASWELL
	testq	%rax, %rax
	je	LBB0_13
LBB0_11:
	movl	$0, -20(%rbp)
	movq	_GEN6_READ_OC_PARAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_sandybridge_pcode_read
	movl	-20(%rbp), %r14d
	movl	$31, %edi
	callq	_BIT
	testl	%r14d, %eax
	je	LBB0_13
## %bb.12:
	movzbl	12(%rbx), %eax
	imull	$50, %eax, %esi
	movzbl	-20(%rbp), %eax
	imull	$50, %eax, %edx
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	movzbl	-20(%rbp), %eax
	movl	%eax, 12(%rbx)
LBB0_13:
	movl	12(%rbx), %eax
	movl	28(%rbx), %ecx
	movl	%eax, 16(%rbx)
	movl	%ecx, 20(%rbx)
	movl	%ecx, 24(%rbx)
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RC6 disabled, disabling runtime PM support\n"

	.comm	_GEN6_READ_OC_PARAMS,4,2        ## @GEN6_READ_OC_PARAMS
L_.str.1:                               ## @.str.1
	.asciz	"Overclocking supported, max: %dMHz, overclock: %dMHz\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_init_gt_powersave        ; -- Begin function intel_init_gt_powersave
	.p2align	2
_intel_init_gt_powersave:               ; @intel_init_gt_powersave
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_sanitize_rc6
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_INFO
	ldr	x0, [x19]
	bl	_pm_runtime_get
LBB0_2:
	mov	x0, x19
	bl	_i915_rc6_ctx_wa_init
	mov	x0, x19
	bl	_IS_CHERRYVIEW
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_cherryview_init_gt_powersave
	b	LBB0_8
LBB0_4:
	mov	x0, x19
	bl	_IS_VALLEYVIEW
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_valleyview_init_gt_powersave
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_INTEL_GEN
	cmp	w0, #6
	b.lt	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_gen6_init_rps_frequencies
LBB0_8:
	ldr	w8, [x19, #12]
	str	w8, [x19, #8]
	ldr	w8, [x19, #28]
	str	w8, [x19, #32]
	mov	x0, x19
	mov	w1, #6
	bl	_IS_GEN
	cbnz	x0, LBB0_11
; %bb.9:
	mov	x0, x19
	bl	_IS_IVYBRIDGE
	cbnz	x0, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_IS_HASWELL
	cbz	x0, LBB0_13
LBB0_11:
	str	wzr, [sp, #12]
Lloh2:
	adrp	x8, _GEN6_READ_OC_PARAMS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GEN6_READ_OC_PARAMS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	mov	x3, #0
	bl	_sandybridge_pcode_read
	ldr	w20, [sp, #12]
	mov	w0, #31
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_13
; %bb.12:
	ldrb	w8, [x19, #12]
	mov	w9, #50
	mul	w1, w8, w9
	ldrb	w8, [sp, #12]
	mul	w2, w8, w9
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	ldrb	w8, [sp, #12]
	str	w8, [x19, #12]
LBB0_13:
	ldr	w8, [x19, #12]
	ldr	w9, [x19, #28]
	stp	w8, w9, [x19, #16]
	str	w9, [x19, #24]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RC6 disabled, disabling runtime PM support\n"

	.comm	_GEN6_READ_OC_PARAMS,4,2        ; @GEN6_READ_OC_PARAMS
l_.str.1:                               ; @.str.1
	.asciz	"Overclocking supported, max: %dMHz, overclock: %dMHz\n"

.subsections_via_symbols
