	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _opp_set_voltage
__opp_set_voltage:                      ## @_opp_set_voltage
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r15
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movslq	%edx, %r13
	jmp	LBB0_3
LBB0_2:
	movq	(%r12), %r13
LBB0_3:
	movq	_opp_data@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	jne	LBB0_5
## %bb.4:
	movq	8(%r12), %r14
LBB0_5:
	movq	16(%r12), %r8
	cmpq	%r14, %r13
	jbe	LBB0_6
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%r8, %rdx
	movq	%r13, %rcx
	movq	%r14, %r8
	callq	_dev_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpq	%r8, %r13
	jb	LBB0_8
## %bb.7:
	cmpq	%r14, %r8
	ja	LBB0_8
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rcx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %r9
	callq	_dev_dbg
	movq	16(%r12), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_regulator_set_voltage_triplet
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movl	%eax, %ebx
	movq	16(%r12), %r8
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	movq	%r14, %r9
	callq	_dev_err
	jmp	LBB0_12
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_opp_data,8,3                   ## @opp_data
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid range voltages [Min:%lu target:%lu Max:%lu]\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"%s scaling to %luuV[min %luuV max %luuV]\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s failed for %luuV[min %luuV max %luuV]\n"

	.no_dead_strip	__opp_set_voltage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _opp_set_voltage
__opp_set_voltage:                      ; @_opp_set_voltage
	.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, x4
	mov	x24, x3
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x22, x1
	mov	x20, x0
	cbz	w2, LBB0_2
; %bb.1:
	sxtw	x21, w2
	b	LBB0_3
LBB0_2:
	ldr	x21, [x22]
LBB0_3:
Lloh0:
	adrp	x8, _opp_data@GOTPAGE
Lloh1:
	ldr	x8, [x8, _opp_data@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	cbnz	x23, LBB0_5
; %bb.4:
	ldr	x23, [x22, #8]
LBB0_5:
	ldr	x4, [x22, #16]
	cmp	x21, x23
	ccmp	x21, x4, #0, ls
	ccmp	x4, x23, #2, hs
	b.ls	LBB0_8
; %bb.6:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x4
	mov	x3, x21
	mov	x4, x23
	bl	_dev_warn
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_7:
	mov	x0, x24
	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
LBB0_8:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x3, x21
	mov	x5, x23
	bl	_dev_dbg
	ldr	x1, [x22, #16]
	mov	x0, x24
	mov	x2, x21
	mov	x3, x23
	bl	_regulator_set_voltage_triplet
	mov	x24, x0
	cbz	w0, LBB0_7
; %bb.9:
	ldr	x4, [x22, #16]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x3, x21
	mov	x5, x23
	bl	_dev_err
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_opp_data,8,3                   ; @opp_data
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid range voltages [Min:%lu target:%lu Max:%lu]\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"%s scaling to %luuV[min %luuV max %luuV]\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s failed for %luuV[min %luuV max %luuV]\n"

	.no_dead_strip	__opp_set_voltage
.subsections_via_symbols
