	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scmi_dvfs_est_power_get
_scmi_dvfs_est_power_get:               ## @scmi_dvfs_est_power_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rdi
	xorl	%eax, %eax
	movq	(%rdi), %r9
	testq	%r9, %r9
	je	LBB0_1
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rdi
	subl	(%rdi), %eax
	movslq	%esi, %rsi
	leaq	(%rsi,%rsi,2), %rsi
	movl	(%r9,%rsi,8), %r10d
	testl	%r10d, %r10d
	jle	LBB0_7
## %bb.3:
	movq	8(%r9,%rsi,8), %r8
	movq	16(%r9,%rsi,8), %rdi
	movq	(%rdx), %r9
	addq	$8, %rdi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%rdi), %rsi
	imulq	%r8, %rsi
	cmpq	%r9, %rsi
	jae	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %rdi
	decl	%r10d
	jne	LBB0_4
LBB0_7:
	popq	%rbp
	retq
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_5:
	movq	%rsi, (%rdx)
	movq	(%rdi), %rax
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_scmi_dvfs_est_power_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scmi_dvfs_est_power_get
_scmi_dvfs_est_power_get:               ; @scmi_dvfs_est_power_get
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x8, [x0]
	ldr	x9, [x8]
	cbz	x9, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	sxtw	x10, w1
	mov	w8, #24
	mul	x8, x10, x8
	ldr	w8, [x9, x8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	w11, #24
	madd	x9, x10, x11, x9
	ldp	x10, x12, [x9, #8]
	ldr	x11, [x2]
	add	x9, x12, #8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x12, [x9, #-8]
	mul	x12, x10, x12
	cmp	x12, x11
	b.hs	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #16
	subs	w8, w8, #1
	b.ne	LBB0_3
LBB0_5:
	ret
LBB0_6:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_7:
	mov	w0, #0
	str	x12, [x2]
	ldr	x8, [x9]
	str	x8, [x3]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_scmi_dvfs_est_power_get
.subsections_via_symbols
