	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si_get_std_voltage_value
_si_get_std_voltage_value:              ## @si_get_std_voltage_value
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	8(%rsi), %edi
	callq	_be16_to_cpu
	movq	%rax, (%r14)
	movq	16(%r12), %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.1:
	movq	_ATOM_PP_PLATFORM_CAP_NEW_CAC_VOLTAGE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%r12)
	je	LBB0_11
## %bb.2:
	cmpq	$0, 32(%r12)
	je	LBB0_13
## %bb.3:
	cmpq	$0, 24(%r12)
	jle	LBB0_19
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %edi
	callq	_be16_to_cpu
	movq	32(%r12), %rcx
	cmpq	(%rcx,%rbx,8), %rax
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movq	24(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
## %bb.7:
	testq	%rax, %rax
	jle	LBB0_18
## %bb.8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %edi
	callq	_be16_to_cpu
	movq	32(%r12), %rcx
	cmpq	(%rcx,%rbx,8), %rax
	jbe	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	xorl	%eax, %eax
	cmpq	24(%r12), %rbx
	jl	LBB0_9
	jmp	LBB0_19
LBB0_11:
	movq	(%r15), %rdx
	cmpq	8(%r12), %rdx
	jge	LBB0_19
## %bb.12:
	movq	(%rcx,%rdx,8), %rcx
	movq	%rcx, (%r14)
	jmp	LBB0_19
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_19
LBB0_14:
	movq	8(%r12), %rcx
	movq	16(%r12), %rax
	cmpq	%rcx, %rbx
	jge	LBB0_16
## %bb.15:
	movq	(%rax,%rbx,8), %rax
	jmp	LBB0_17
LBB0_16:
	movq	-8(%rax,%rcx,8), %rax
LBB0_17:
	movq	%rax, (%r14)
LBB0_18:
	xorl	%eax, %eax
LBB0_19:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATOM_PP_PLATFORM_CAP_NEW_CAC_VOLTAGE,4,2 ## @ATOM_PP_PLATFORM_CAP_NEW_CAC_VOLTAGE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_si_get_std_voltage_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si_get_std_voltage_value
_si_get_std_voltage_value:              ; @si_get_std_voltage_value
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x1, #8]
	bl	_be16_to_cpu
	str	x0, [x19]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_13
; %bb.1:
	ldr	w9, [x20]
Lloh0:
	adrp	x10, _ATOM_PP_PLATFORM_CAP_NEW_CAC_VOLTAGE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ATOM_PP_PLATFORM_CAP_NEW_CAC_VOLTAGE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_11
; %bb.2:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_14
; %bb.3:
	ldr	x8, [x20, #24]
	cmp	x8, #1
	b.lt	LBB0_13
; %bb.4:
	mov	x22, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #8]
	bl	_be16_to_cpu
	ldr	x8, [x20, #32]
	ldr	x8, [x8, x22, lsl #3]
	cmp	x0, x8
	b.eq	LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldr	x8, [x20, #24]
	cmp	x22, x8
	b.lt	LBB0_5
; %bb.7:
	cmp	x8, #1
	b.lt	LBB0_13
; %bb.8:
	mov	x22, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #8]
	bl	_be16_to_cpu
	ldr	x8, [x20, #32]
	ldr	x8, [x8, x22, lsl #3]
	cmp	x0, x8
	b.ls	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w0, #0
	add	x22, x22, #1
	ldr	x8, [x20, #24]
	cmp	x22, x8
	b.lt	LBB0_9
	b	LBB0_19
LBB0_11:
	ldr	x9, [x21]
	ldr	x10, [x20, #8]
	cmp	x9, x10
	b.ge	LBB0_13
; %bb.12:
	mov	w0, #0
	ldr	x8, [x8, x9, lsl #3]
	b	LBB0_18
LBB0_13:
	mov	w0, #0
	b	LBB0_19
LBB0_14:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_19
LBB0_15:
	ldp	x9, x8, [x20, #8]
	cmp	x22, x9
	b.ge	LBB0_17
; %bb.16:
	mov	w0, #0
	ldr	x8, [x8, x22, lsl #3]
	b	LBB0_18
LBB0_17:
	mov	w0, #0
	add	x8, x8, x9, lsl #3
	ldur	x8, [x8, #-8]
LBB0_18:
	str	x8, [x19]
LBB0_19:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ATOM_PP_PLATFORM_CAP_NEW_CAC_VOLTAGE,4,2 ; @ATOM_PP_PLATFORM_CAP_NEW_CAC_VOLTAGE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_si_get_std_voltage_value
.subsections_via_symbols
