	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scpi_dvfs_add_opps_to_device
_scpi_dvfs_add_opps_to_device:          ## @scpi_dvfs_add_opps_to_device
	.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
	callq	_scpi_dvfs_info
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.10:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	8(%r15), %r12
	testq	%r12, %r12
	je	LBB0_11
## %bb.2:
	cmpl	$0, (%r15)
	jle	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r12,%rbx,8), %esi
	imull	$1000, (%r12,%rbx,8), %edx      ## imm = 0x3E8
	movq	%r14, %rdi
	callq	_dev_pm_opp_add
	testl	%eax, %eax
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	cmpl	(%r15), %ebx
	jl	LBB0_4
LBB0_8:
	xorl	%r13d, %r13d
	jmp	LBB0_9
LBB0_11:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_9
LBB0_5:
	movl	%eax, %r13d
	movl	(%r12,%rbx,8), %ecx
	movl	4(%r12,%rbx,8), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
	testl	%ebx, %ebx
	je	LBB0_9
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%r12,%rbx,8), %esi
	movq	%r14, %rdi
	callq	_dev_pm_opp_remove
	decq	%rbx
	leal	1(%rbx), %eax
	cmpl	$1, %eax
	jg	LBB0_6
LBB0_9:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to add opp %uHz %umV\n"

	.no_dead_strip	_scpi_dvfs_add_opps_to_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scpi_dvfs_add_opps_to_device
_scpi_dvfs_add_opps_to_device:          ; @scpi_dvfs_add_opps_to_device
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	bl	_scpi_dvfs_info
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
	ldr	x22, [x20, #8]
	cbz	x22, LBB0_8
; %bb.3:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	mov	w24, #0
	mov	w23, #1
	mov	w25, #1000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w8, w1, [x22]
	mul	w2, w8, w25
	mov	x0, x19
	bl	_dev_pm_opp_add
	cbnz	w0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w24, w24, #1
	add	x22, x22, #8
	ldr	w8, [x20]
	add	w23, w23, #1
	cmp	w24, w8
	b.lt	LBB0_5
LBB0_7:
	mov	w21, #0
	b	LBB0_12
LBB0_8:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_9:
	mov	x21, x0
	ldp	w3, w2, [x22]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
	cbz	w24, LBB0_12
; %bb.10:
	mov	x20, #-4
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22, x20]
	mov	x0, x19
	bl	_dev_pm_opp_remove
	sub	x20, x20, #8
	sub	w23, w23, #1
	cmp	w23, #1
	b.gt	LBB0_11
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to add opp %uHz %umV\n"

	.no_dead_strip	_scpi_dvfs_add_opps_to_device
.subsections_via_symbols
