	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si_get_leakage_voltage_from_leakage_index
_si_get_leakage_voltage_from_leakage_index: ## @si_get_leakage_voltage_from_leakage_index
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	callq	_si_get_pi
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movl	%ebx, %ecx
	notl	%ecx
	testl	$65280, %ecx                    ## imm = 0xFF00
	jne	LBB0_1
## %bb.3:
	movzbl	%bl, %ecx
	movq	_SISLANDS_MAX_LEAKAGE_COUNT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	incl	%edx
	cmpl	%edx, %ecx
	jg	LBB0_1
## %bb.4:
	movq	_SISLANDS_LEAKAGE_INDEX0@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jle	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_11:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.6:
	movq	8(%rax), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, (%rax,%rdx,8)
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_7
LBB0_10:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_8:
	movl	4(%rax,%rdx,8), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SISLANDS_MAX_LEAKAGE_COUNT,4,2 ## @SISLANDS_MAX_LEAKAGE_COUNT
	.comm	_SISLANDS_LEAKAGE_INDEX0,4,2    ## @SISLANDS_LEAKAGE_INDEX0
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_si_get_leakage_voltage_from_leakage_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si_get_leakage_voltage_from_leakage_index
_si_get_leakage_voltage_from_leakage_index: ; @si_get_leakage_voltage_from_leakage_index
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x1
	bl	_si_get_pi
	cbz	x19, LBB0_4
; %bb.1:
	mvn	w8, w20
	tst	w8, #0xff00
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _SISLANDS_MAX_LEAKAGE_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SISLANDS_MAX_LEAKAGE_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w8, w8, #1
	cmp	w8, w20, uxtb
	b.lt	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _SISLANDS_LEAKAGE_INDEX0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SISLANDS_LEAKAGE_INDEX0@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w20
	b.le	LBB0_7
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.8:
	ldr	x9, [x0, #8]
	add	x9, x9, #4
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w10, [x9, #-4]
	cmp	w10, w20
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_9
LBB0_11:
Lloh8:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_5
LBB0_12:
	mov	w0, #0
	ldr	w8, [x9]
	str	w8, [x19]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SISLANDS_MAX_LEAKAGE_COUNT,4,2 ; @SISLANDS_MAX_LEAKAGE_COUNT
	.comm	_SISLANDS_LEAKAGE_INDEX0,4,2    ; @SISLANDS_LEAKAGE_INDEX0
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_si_get_leakage_voltage_from_leakage_index
.subsections_via_symbols
