	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si_get_cac_std_voltage_max_min
_si_get_cac_std_voltage_max_min:        ## @si_get_cac_std_voltage_max_min
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_si_get_pi
	testq	%r15, %r15
	je	LBB0_25
## %bb.1:
	movl	$0, (%rbx)
	movl	$65535, (%r14)                  ## imm = 0xFFFF
	movq	(%r15), %r8
	testq	%r8, %r8
	je	LBB0_2
## %bb.3:
	movq	8(%r15), %rdx
	cmpq	$1, %r8
	jne	LBB0_5
## %bb.4:
	movl	$65535, %esi                    ## imm = 0xFFFF
	xorl	%edi, %edi
LBB0_15:
	testb	$1, %r8b
	je	LBB0_20
## %bb.16:
	movl	(%rdx,%rdi,4), %ecx
	cmpl	(%rbx), %ecx
	jle	LBB0_18
## %bb.17:
	movl	%ecx, (%rbx)
	movl	(%rdx,%rdi,4), %ecx
	movl	(%r14), %esi
LBB0_18:
	cmpl	%esi, %ecx
	jge	LBB0_20
## %bb.19:
	movl	%ecx, (%r14)
	movl	%ecx, %esi
	jmp	LBB0_20
LBB0_2:
	movl	$65535, %esi                    ## imm = 0xFFFF
LBB0_20:
	movq	(%rax), %rax
	movl	(%rax), %eax
	cmpl	$101, %eax
	jge	LBB0_25
## %bb.21:
	movl	$100, %ecx
	subl	%eax, %ecx
	imull	%ecx, %esi
	movslq	%esi, %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	cmpl	$65536, %eax                    ## imm = 0x10000
	jae	LBB0_25
## %bb.22:
	movl	%eax, (%r14)
	movl	(%rbx), %ecx
	cmpl	%ecx, %eax
	jg	LBB0_25
## %bb.23:
	testl	%ecx, %ecx
	je	LBB0_25
## %bb.24:
	addl	$99, %esi
	xorl	%eax, %eax
	cmpl	$198, %esi
	ja	LBB0_26
LBB0_25:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_26:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r8, %r9
	andq	$-2, %r9
	movl	$65535, %esi                    ## imm = 0xFFFF
	xorl	%edi, %edi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	$2, %rdi
	cmpq	%rdi, %r9
	je	LBB0_15
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rdi,4), %ecx
	cmpl	(%rbx), %ecx
	jle	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%ecx, (%rbx)
	movl	(%rdx,%rdi,4), %ecx
	movl	(%r14), %esi
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%esi, %ecx
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%ecx, (%r14)
	movl	%ecx, %esi
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	4(%rdx,%rdi,4), %ecx
	cmpl	(%rbx), %ecx
	jle	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%ecx, (%rbx)
	movl	4(%rdx,%rdi,4), %ecx
	movl	(%r14), %esi
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%esi, %ecx
	jge	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%ecx, (%r14)
	movl	%ecx, %esi
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_si_get_cac_std_voltage_max_min
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si_get_cac_std_voltage_max_min
_si_get_cac_std_voltage_max_min:        ; @si_get_cac_std_voltage_max_min
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	bl	_si_get_pi
	cbz	x21, LBB0_13
; %bb.1:
	str	wzr, [x19]
	mov	w8, #65535
	str	w8, [x20]
	ldr	x9, [x21]
	cbz	x9, LBB0_8
; %bb.2:
	ldr	x10, [x21, #8]
	mov	w8, #65535
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #4
	subs	x9, x9, #1
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	ldr	w12, [x19]
	cmp	w11, w12
	b.le	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w11, [x19]
	ldr	w11, [x10]
	ldr	w8, [x20]
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w11, w8
	b.ge	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w11, [x20]
	mov	x8, x11
	b	LBB0_3
LBB0_8:
	ldr	x9, [x0]
	ldr	w9, [x9]
	cmp	w9, #101
	b.ge	LBB0_13
; %bb.9:
	mov	w10, #100
	sub	w9, w10, w9
	mul	w8, w8, w9
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	asr	x9, x9, #37
	add	w9, w9, w10
	cmp	w9, #16, lsl #12                ; =65536
	b.hs	LBB0_13
; %bb.10:
	str	w9, [x20]
	ldr	w10, [x19]
	cmp	w9, w10
	ccmp	w10, #0, #4, le
	b.eq	LBB0_13
; %bb.11:
	add	w8, w8, #99
	cmp	w8, #198
	b.ls	LBB0_13
; %bb.12:
	mov	w0, #0
	b	LBB0_14
LBB0_13:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_si_get_cac_std_voltage_max_min
.subsections_via_symbols
