	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function frequency_sample
_frequency_sample:                      ## @frequency_sample
	.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
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	8(%rdi), %r13
	movl	8(%r13), %ebx
	movq	_I915_PMU_ACTUAL_FREQUENCY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_config_enabled_mask
	movl	%r12d, %r12d
	testl	%ebx, %eax
	je	LBB0_4
## %bb.1:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	(%r13), %r12d
	movq	%r14, %rdi
	callq	_intel_gt_pm_get_if_awake
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_GEN6_RPSTAT1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_intel_uncore_read_notrace
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_intel_get_cagf
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_intel_gt_pm_put
LBB0_3:
	movq	___I915_SAMPLE_FREQ_ACT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	shlq	$2, %rbx
	addq	16(%r13), %rbx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_intel_gpu_freq
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	imulq	$274877907, %r12, %rdx          ## imm = 0x10624DD3
	shrq	$38, %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_add_sample_mult
LBB0_4:
	movl	8(%r13), %ebx
	movq	_I915_PMU_REQUESTED_FREQUENCY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_config_enabled_mask
	testl	%ebx, %eax
	je	LBB0_5
## %bb.6:
	movq	___I915_SAMPLE_FREQ_REQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	shlq	$2, %rbx
	addq	16(%r13), %rbx
	movl	(%r13), %esi
	movq	%r13, %rdi
	callq	_intel_gpu_freq
	imulq	$274877907, %r12, %rdx          ## imm = 0x10624DD3
	shrq	$38, %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_add_sample_mult                ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_PMU_ACTUAL_FREQUENCY,4,2  ## @I915_PMU_ACTUAL_FREQUENCY
	.comm	_GEN6_RPSTAT1,4,2               ## @GEN6_RPSTAT1
	.comm	___I915_SAMPLE_FREQ_ACT,8,3     ## @__I915_SAMPLE_FREQ_ACT
	.comm	_I915_PMU_REQUESTED_FREQUENCY,4,2 ## @I915_PMU_REQUESTED_FREQUENCY
	.comm	___I915_SAMPLE_FREQ_REQ,8,3     ## @__I915_SAMPLE_FREQ_REQ
	.no_dead_strip	_frequency_sample
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function frequency_sample
_frequency_sample:                      ; @frequency_sample
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x21, x0
	ldp	x23, x20, [x0]
	ldr	w22, [x20, #8]
Lloh0:
	adrp	x8, _I915_PMU_ACTUAL_FREQUENCY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I915_PMU_ACTUAL_FREQUENCY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_config_enabled_mask
	tst	w0, w22
	b.eq	LBB0_4
; %bb.1:
	ldr	w22, [x20]
	mov	x0, x21
	bl	_intel_gt_pm_get_if_awake
	cbz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _GEN6_RPSTAT1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GEN6_RPSTAT1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_intel_uncore_read_notrace
	mov	x1, x0
	mov	x0, x20
	bl	_intel_get_cagf
	mov	x22, x0
	mov	x0, x21
	bl	_intel_gt_pm_put
LBB0_3:
	ldr	x8, [x20, #16]
Lloh6:
	adrp	x9, ___I915_SAMPLE_FREQ_ACT@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___I915_SAMPLE_FREQ_ACT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x21, x8, x9, lsl #2
	mov	x0, x20
	mov	x1, x22
	bl	_intel_gpu_freq
	mov	x1, x0
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x8, w19, w8
	lsr	x2, x8, #38
	mov	x0, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_add_sample_mult
LBB0_4:
	ldr	w21, [x20, #8]
Lloh9:
	adrp	x8, _I915_PMU_REQUESTED_FREQUENCY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I915_PMU_REQUESTED_FREQUENCY@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_config_enabled_mask
	tst	w0, w21
	b.eq	LBB0_6
; %bb.5:
	ldr	x8, [x20, #16]
Lloh12:
	adrp	x9, ___I915_SAMPLE_FREQ_REQ@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___I915_SAMPLE_FREQ_REQ@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x21, x8, x9, lsl #2
	ldr	w1, [x20]
	mov	x0, x20
	bl	_intel_gpu_freq
	mov	x1, x0
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x8, w19, w8
	lsr	x2, x8, #38
	mov	x0, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_add_sample_mult
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_PMU_ACTUAL_FREQUENCY,4,2  ; @I915_PMU_ACTUAL_FREQUENCY
	.comm	_GEN6_RPSTAT1,4,2               ; @GEN6_RPSTAT1
	.comm	___I915_SAMPLE_FREQ_ACT,8,3     ; @__I915_SAMPLE_FREQ_ACT
	.comm	_I915_PMU_REQUESTED_FREQUENCY,4,2 ; @I915_PMU_REQUESTED_FREQUENCY
	.comm	___I915_SAMPLE_FREQ_REQ,8,3     ; @__I915_SAMPLE_FREQ_REQ
	.no_dead_strip	_frequency_sample
.subsections_via_symbols
