	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __i915_gfx_val
___i915_gfx_val:                        ## @__i915_gfx_val
	.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	_mchdev_lock@GOTPCREL(%rip), %rdi
	callq	_lockdep_assert_held
	movl	16(%r15), %edi
	callq	_PXVFREQ
	movl	%eax, %edi
	callq	_I915_READ
	shrl	$24, %eax
	andl	$127, %eax
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_pvid_to_extvid
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_i915_mch_val
	movq	%rax, %rcx
	cmpq	$50, %rax
	movl	$964, %eax                      ## imm = 0x3C4
	movl	$301, %edx                      ## imm = 0x12D
	cmovaeq	%rax, %rdx
	movl	$29317, %eax                    ## imm = 0x7285
	movl	$1004, %esi                     ## imm = 0x3EC
	cmovaeq	%rax, %rsi
	cmpq	$81, %rcx
	movl	$2349, %eax                     ## imm = 0x92D
	cmovbq	%rdx, %rax
	movl	$135940, %edi                   ## imm = 0x21304
	cmovbq	%rsi, %rdi
	imulq	%rax, %rcx
	movslq	%r14d, %rsi
	imulq	$150142, %rsi, %rax             ## imm = 0x24A7E
	movabsq	$3777893186295716171, %rdx      ## imm = 0x346DC5D63886594B
	mulq	%rdx
	addq	%rdi, %rcx
	shrq	$11, %rdx
	leaq	-78642(%rdx), %rax
	imulq	%rcx, %rax
	shrq	$5, %rax
	movabsq	$755578637259143235, %rcx       ## imm = 0xA7C5AC471B47843
	mulq	%rcx
	shrq	$7, %rdx
	imulq	(%r15), %rsi
	imulq	%rdx, %rsi
	movabsq	$4835703278458516699, %rcx      ## imm = 0x431BDE82D7B634DB
	movq	%rsi, %rax
	mulq	%rcx
	movq	%rdx, %rbx
	shrq	$18, %rbx
	movq	%r15, %rdi
	callq	___i915_update_gfx_val
	addq	8(%r15), %rbx
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mchdev_lock,4,2                ## @mchdev_lock
	.no_dead_strip	___i915_gfx_val
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __i915_gfx_val
___i915_gfx_val:                        ; @__i915_gfx_val
	.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	x0, _mchdev_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _mchdev_lock@GOTPAGEOFF]
	bl	_lockdep_assert_held
	ldr	w0, [x19, #16]
	bl	_PXVFREQ
	bl	_I915_READ
	ubfx	w1, w0, #24, #7
	mov	x0, x19
	bl	_pvid_to_extvid
	mov	x20, x0
	mov	x0, x19
	bl	_i915_mch_val
	mov	w8, #301
	mov	w9, #964
	cmp	x0, #49
	csel	x8, x9, x8, hi
	mov	w9, #1004
	mov	w10, #29317
	csel	x9, x10, x9, hi
	mov	w10, #2349
	cmp	x0, #80
	csel	x8, x10, x8, hi
	mov	w10, #4868
	movk	w10, #2, lsl #16
	csel	x9, x10, x9, hi
	madd	x8, x0, x8, x9
	sxtw	x9, w20
	mov	w10, #19070
	movk	w10, #2, lsl #16
	smull	x10, w20, w10
	mov	x11, #22859
	movk	x11, #14470, lsl #16
	movk	x11, #50646, lsl #32
	movk	x11, #13421, lsl #48
	umulh	x10, x10, x11
	mov	x11, #-13106
	movk	x11, #65534, lsl #16
	add	x10, x11, x10, lsr #11
	mul	x8, x8, x10
	lsr	x8, x8, #5
	mov	x10, #30787
	movk	x10, #29108, lsl #16
	movk	x10, #23236, lsl #32
	movk	x10, #2684, lsl #48
	umulh	x8, x8, x10
	lsr	x8, x8, #7
	ldr	x10, [x19]
	mul	x9, x10, x9
	mul	x8, x9, x8
	mov	x9, #13531
	movk	x9, #55222, lsl #16
	movk	x9, #56962, lsl #32
	movk	x9, #17179, lsl #48
	umulh	x20, x8, x9
	mov	x0, x19
	bl	___i915_update_gfx_val
	ldr	x8, [x19, #8]
	add	x0, x8, x20, lsr #18
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mchdev_lock,4,2                ; @mchdev_lock
	.no_dead_strip	___i915_gfx_val
.subsections_via_symbols
