	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gt_act_freq_mhz_show
_gt_act_freq_mhz_show:                  ## @gt_act_freq_mhz_show
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	callq	_kdev_minor_to_i915
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_intel_runtime_pm_get
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_IS_VALLEYVIEW
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_IS_CHERRYVIEW
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_vlv_punit_get
	movq	_PUNIT_REG_GPU_FREQ_STS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_vlv_punit_read
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_vlv_punit_put
	movl	%r12d, %eax
	movzbl	%ah, %eax
LBB0_4:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_intel_runtime_pm_put
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_intel_gpu_freq
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snprintf                       ## TAILCALL
LBB0_3:
	movq	_GEN6_RPSTAT1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_intel_get_cagf
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_PUNIT_REG_GPU_FREQ_STS,4,2     ## @PUNIT_REG_GPU_FREQ_STS
	.comm	_GEN6_RPSTAT1,4,2               ## @GEN6_RPSTAT1
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d\n"

	.no_dead_strip	_gt_act_freq_mhz_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gt_act_freq_mhz_show
_gt_act_freq_mhz_show:                  ; @gt_act_freq_mhz_show
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	bl	_kdev_minor_to_i915
	mov	x20, x0
	bl	_intel_runtime_pm_get
	mov	x21, x0
	mov	x0, x20
	bl	_IS_VALLEYVIEW
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_IS_CHERRYVIEW
	cbz	x0, LBB0_4
LBB0_2:
	mov	x0, x20
	bl	_vlv_punit_get
Lloh0:
	adrp	x8, _PUNIT_REG_GPU_FREQ_STS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PUNIT_REG_GPU_FREQ_STS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_vlv_punit_read
	mov	x22, x0
	mov	x0, x20
	bl	_vlv_punit_put
	ubfx	w22, w22, #8, #8
LBB0_3:
	mov	x0, x20
	mov	x1, x21
	bl	_intel_runtime_pm_put
Lloh3:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x0, x20
	mov	x1, x22
	bl	_intel_gpu_freq
	mov	x3, x0
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_snprintf
LBB0_4:
Lloh8:
	adrp	x8, _GEN6_RPSTAT1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GEN6_RPSTAT1@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_I915_READ
	mov	x1, x0
	mov	x0, x20
	bl	_intel_get_cagf
	mov	x22, x0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PUNIT_REG_GPU_FREQ_STS,4,2     ; @PUNIT_REG_GPU_FREQ_STS
	.comm	_GEN6_RPSTAT1,4,2               ; @GEN6_RPSTAT1
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d\n"

	.no_dead_strip	_gt_act_freq_mhz_show
.subsections_via_symbols
