	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915gm_get_display_clock_speed
_i915gm_get_display_clock_speed:        ## @i915gm_get_display_clock_speed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	$0, -4(%rbp)
	movl	(%rdi), %edi
	movq	_GCFGC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-4(%rbp), %rdx
	callq	_pci_read_config_word
	movl	-4(%rbp), %eax
	movq	_GC_LOW_FREQUENCY_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	_GC_DISPLAY_CLOCK_MASK@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	cmpl	$128, %eax
	movl	$333000, %eax                   ## imm = 0x514C8
	movl	$190000, %edx                   ## imm = 0x2E630
	cmovel	%eax, %edx
	testl	%ecx, %ecx
	movl	$133000, %eax                   ## imm = 0x20788
	cmovel	%edx, %eax
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GCFGC,4,2                      ## @GCFGC
	.comm	_GC_LOW_FREQUENCY_ENABLE,4,2    ## @GC_LOW_FREQUENCY_ENABLE
	.comm	_GC_DISPLAY_CLOCK_MASK,4,2      ## @GC_DISPLAY_CLOCK_MASK
	.no_dead_strip	_i915gm_get_display_clock_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915gm_get_display_clock_speed
_i915gm_get_display_clock_speed:        ; @i915gm_get_display_clock_speed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	stur	wzr, [x29, #-4]
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _GCFGC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GCFGC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	sub	x2, x29, #4
	bl	_pci_read_config_word
	ldur	w8, [x29, #-4]
Lloh3:
	adrp	x9, _GC_LOW_FREQUENCY_ENABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GC_LOW_FREQUENCY_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _GC_DISPLAY_CLOCK_MASK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _GC_DISPLAY_CLOCK_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	and	w10, w10, w8
	mov	w11, #58928
	movk	w11, #2, lsl #16
	mov	w12, #5320
	movk	w12, #5, lsl #16
	cmp	w10, #128
	csel	w10, w12, w11, eq
	tst	w9, w8
	mov	w8, #1928
	movk	w8, #2, lsl #16
	csel	w0, w10, w8, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GCFGC,4,2                      ; @GCFGC
	.comm	_GC_LOW_FREQUENCY_ENABLE,4,2    ; @GC_LOW_FREQUENCY_ENABLE
	.comm	_GC_DISPLAY_CLOCK_MASK,4,2      ; @GC_DISPLAY_CLOCK_MASK
	.no_dead_strip	_i915gm_get_display_clock_speed
.subsections_via_symbols
