	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ips_gpu_turbo_enabled
_ips_gpu_turbo_enabled:                 ## @ips_gpu_turbo_enabled
	.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	%rdi, %rbx
	cmpl	$0, 8(%rdi)
	jne	LBB0_4
## %bb.1:
	movq	_late_i915_load@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_ips_get_i915_syms
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	_THM_HTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_thm_readl
	movq	_HTS_GTD_DIS@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	sete	%dl
	movl	%edx, (%rbx)
LBB0_4:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_late_i915_load,8,3             ## @late_i915_load
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i915 driver attached, reenabling gpu turbo\n"

	.comm	_THM_HTS,4,2                    ## @THM_HTS
	.comm	_HTS_GTD_DIS,4,2                ## @HTS_GTD_DIS
	.no_dead_strip	_ips_gpu_turbo_enabled
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ips_gpu_turbo_enabled
_ips_gpu_turbo_enabled:                 ; @ips_gpu_turbo_enabled
	.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
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x9, _late_i915_load@GOTPAGE
Lloh1:
	ldr	x9, [x9, _late_i915_load@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	w8, #0
	ccmp	x9, #0, #4, eq
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_ips_get_i915_syms
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
Lloh5:
	adrp	x8, _THM_HTS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _THM_HTS@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_thm_readl
Lloh8:
	adrp	x8, _HTS_GTD_DIS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HTS_GTD_DIS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, eq
	str	w8, [x19]
LBB0_3:
	ldr	w0, [x19]
	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 AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_late_i915_load,8,3             ; @late_i915_load
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i915 driver attached, reenabling gpu turbo\n"

	.comm	_THM_HTS,4,2                    ; @THM_HTS
	.comm	_HTS_GTD_DIS,4,2                ; @HTS_GTD_DIS
	.no_dead_strip	_ips_gpu_turbo_enabled
.subsections_via_symbols
