	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_enable_rc6               ## -- Begin function intel_enable_rc6
	.p2align	4, 0x90
_intel_enable_rc6:                      ## @intel_enable_rc6
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_i915_enable_rc6@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jns	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	callq	_INTEL_INFO
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpl	$5, (%rcx)
	je	LBB0_8
## %bb.2:
	movq	%rbx, %rdi
	callq	_IS_HASWELL
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_5:
	movq	%rbx, %rdi
	callq	_INTEL_INFO
	cmpl	$6, (%rax)
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	callq	_DRM_DEBUG_DRIVER
	movq	_INTEL_RC6_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	movq	_INTEL_RC6_ENABLE@GOTPCREL(%rip), %rcx
	movq	_INTEL_RC6p_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_i915_enable_rc6,8,3            ## @i915_enable_rc6
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Haswell: only RC6 available\n"

	.comm	_INTEL_RC6_ENABLE,4,2           ## @INTEL_RC6_ENABLE
L_.str.1:                               ## @.str.1
	.asciz	"Sandybridge: deep RC6 disabled\n"

L_.str.2:                               ## @.str.2
	.asciz	"RC6 and deep RC6 enabled\n"

	.comm	_INTEL_RC6p_ENABLE,4,2          ## @INTEL_RC6p_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_enable_rc6               ; -- Begin function intel_enable_rc6
	.p2align	2
_intel_enable_rc6:                      ; @intel_enable_rc6
	.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
Lloh0:
	adrp	x8, _i915_enable_rc6@GOTPAGE
Lloh1:
	ldr	x8, [x8, _i915_enable_rc6@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	tbz	x0, #63, LBB0_9
; %bb.1:
	mov	x0, x19
	bl	_INTEL_INFO
	ldr	w8, [x0]
	cmp	w8, #5
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_9
LBB0_3:
	mov	x0, x19
	bl	_IS_HASWELL
	cbz	x0, LBB0_5
; %bb.4:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_INTEL_INFO
	ldr	w8, [x0]
	cmp	w8, #6
	b.ne	LBB0_8
; %bb.6:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_7:
	bl	_DRM_DEBUG_DRIVER
Lloh7:
	adrp	x8, _INTEL_RC6_ENABLE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _INTEL_RC6_ENABLE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_8:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
Lloh12:
	adrp	x8, _INTEL_RC6_ENABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INTEL_RC6_ENABLE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _INTEL_RC6p_ENABLE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _INTEL_RC6p_ENABLE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w0, w9, w8
LBB0_9:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_i915_enable_rc6,8,3            ; @i915_enable_rc6
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Haswell: only RC6 available\n"

	.comm	_INTEL_RC6_ENABLE,4,2           ; @INTEL_RC6_ENABLE
l_.str.1:                               ; @.str.1
	.asciz	"Sandybridge: deep RC6 disabled\n"

l_.str.2:                               ; @.str.2
	.asciz	"RC6 and deep RC6 enabled\n"

	.comm	_INTEL_RC6p_ENABLE,4,2          ; @INTEL_RC6p_ENABLE
.subsections_via_symbols
