	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_ring_freq_table
_i915_ring_freq_table:                  ## @i915_ring_freq_table
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_node_to_i915
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_HAS_LLC
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	4(%r15), %ebx
	movl	8(%r15), %r12d
	movq	%r15, %rdi
	callq	_IS_GEN9_BC
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_INTEL_GEN
	cmpl	$10, %eax
	jl	LBB0_5
LBB0_4:
	movq	_GEN9_FREQ_SCALER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %ebx
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r12d
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_seq_puts
	movq	%r15, %rdi
	callq	_intel_runtime_pm_get
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpl	%r12d, %ebx
	jbe	LBB0_6
LBB0_11:
	movq	%r15, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_intel_runtime_pm_put
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.1(%rip), %r13
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	_GEN9_FREQ_SCALER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	imull	%ebx, %esi
	movq	%r15, %rdi
	callq	_intel_gpu_freq
	movl	-44(%rbp), %edx
	movzbl	%dl, %ecx
	imull	$100, %ecx, %ecx
	movzbl	%dh, %edx
	imull	$100, %edx, %r8d
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_seq_printf
	incl	%ebx
	cmpl	%r12d, %ebx
	ja	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, -44(%rbp)
	movq	_GEN6_PCODE_READ_MIN_FREQ_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	leaq	-44(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_sandybridge_pcode_read
	movq	%r15, %rdi
	callq	_IS_GEN9_BC
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	callq	_INTEL_GEN
	movl	$1, %esi
	cmpl	$10, %eax
	jge	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GEN9_FREQ_SCALER,4,2           ## @GEN9_FREQ_SCALER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GPU freq (MHz)\tEffective CPU freq (MHz)\tEffective Ring freq (MHz)\n"

	.comm	_GEN6_PCODE_READ_MIN_FREQ_TABLE,4,2 ## @GEN6_PCODE_READ_MIN_FREQ_TABLE
L_.str.1:                               ## @.str.1
	.asciz	"%d\t\t%d\t\t\t\t%d\n"

	.no_dead_strip	_i915_ring_freq_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_ring_freq_table
_i915_ring_freq_table:                  ; @i915_ring_freq_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	w0, [x0]
	bl	_node_to_i915
	mov	x20, x0
	bl	_HAS_LLC
	cbz	w0, LBB0_6
; %bb.1:
	ldp	w23, w24, [x20, #4]
	mov	x0, x20
	bl	_IS_GEN9_BC
Lloh0:
	adrp	x25, _GEN9_FREQ_SCALER@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GEN9_FREQ_SCALER@GOTPAGEOFF]
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #10
	b.lt	LBB0_4
LBB0_3:
	ldr	w8, [x25]
	udiv	w23, w23, w8
	udiv	w24, w24, w8
LBB0_4:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_seq_puts
	mov	x0, x20
	bl	_intel_runtime_pm_get
	mov	x21, x0
	cmp	w23, w24
	b.ls	LBB0_8
LBB0_5:
	mov	x0, x20
	mov	x1, x21
	bl	_intel_runtime_pm_put
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
Lloh7:
	adrp	x26, _GEN6_PCODE_READ_MIN_FREQ_TABLE@GOTPAGE
Lloh8:
	ldr	x26, [x26, _GEN6_PCODE_READ_MIN_FREQ_TABLE@GOTPAGEOFF]
	mov	w27, #100
Lloh9:
	adrp	x22, l_.str.1@PAGE
Lloh10:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x25]
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	mul	w1, w8, w23
	mov	x0, x20
	bl	_intel_gpu_freq
	mov	x2, x0
	ldr	w8, [sp, #12]
	and	w9, w8, #0xff
	mul	w3, w9, w27
	ubfx	w8, w8, #8, #8
	mul	w4, w8, w27
	mov	x0, x19
	mov	x1, x22
	bl	_seq_printf
	add	w23, w23, #1
	cmp	w23, w24
	b.hi	LBB0_5
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	str	w23, [sp, #12]
	ldr	w1, [x26]
	add	x2, sp, #12
	mov	x0, x20
	mov	x3, #0
	bl	_sandybridge_pcode_read
	mov	x0, x20
	bl	_IS_GEN9_BC
	cbnz	x0, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #10
	b.ge	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w8, #1
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GEN9_FREQ_SCALER,4,2           ; @GEN9_FREQ_SCALER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GPU freq (MHz)\tEffective CPU freq (MHz)\tEffective Ring freq (MHz)\n"

	.comm	_GEN6_PCODE_READ_MIN_FREQ_TABLE,4,2 ; @GEN6_PCODE_READ_MIN_FREQ_TABLE
l_.str.1:                               ; @.str.1
	.asciz	"%d\t\t%d\t\t\t\t%d\n"

	.no_dead_strip	_i915_ring_freq_table
.subsections_via_symbols
