	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function panfrost_devfreq_update_utilization
_panfrost_devfreq_update_utilization:   ## @panfrost_devfreq_update_utilization
	.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
	cmpl	$0, 8(%rdi)
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movslq	%esi, %r15
	movq	(%rdi), %r12
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, %r14d
	movq	(%rbx), %rax
	leaq	(,%r15,8), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	(%rax,%rcx), %esi
	movq	16(%r12,%rcx), %r12
	movl	%r14d, %edi
	callq	_ktime_sub
	movq	(%rbx), %rcx
	leaq	(%r15,%r15,2), %rdx
	testq	%r12, %r12
	je	LBB0_3
## %bb.2:
	addl	%eax, 8(%rcx,%rdx,8)
	jmp	LBB0_4
LBB0_3:
	addl	%eax, 4(%rcx,%rdx,8)
LBB0_4:
	leaq	(%r15,%r15,2), %rax
	movl	%r14d, (%rcx,%rax,8)
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_panfrost_devfreq_update_utilization
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function panfrost_devfreq_update_utilization
_panfrost_devfreq_update_utilization:   ; @panfrost_devfreq_update_utilization
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x20, x0
	sxtw	x21, w1
	ldr	x22, [x0]
	bl	_ktime_get
	mov	x19, x0
	ldr	x8, [x20]
	add	x9, x21, x21, lsl #1
	lsl	x9, x9, #3
	ldr	w1, [x8, x9]
	add	x8, x22, x9
	ldr	x22, [x8, #16]
	bl	_ktime_sub
	ldr	x8, [x20]
	mov	w9, #24
	madd	x9, x21, x9, x8
	cbz	x22, LBB0_3
; %bb.2:
	ldr	w10, [x9, #8]
	add	w10, w10, w0
	str	w10, [x9, #8]
	b	LBB0_4
LBB0_3:
	ldr	w10, [x9, #4]
	add	w10, w10, w0
	str	w10, [x9, #4]
LBB0_4:
	mov	w9, #24
	mul	x9, x21, x9
	str	w19, [x8, x9]
LBB0_5:
	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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_panfrost_devfreq_update_utilization
.subsections_via_symbols
