	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si_get_svi2_voltage_table
_si_get_svi2_voltage_table:             ## @si_get_svi2_voltage_table
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rdx)
	movq	(%rsi), %r9
	movq	%r9, (%rdx)
	testq	%r9, %r9
	je	LBB0_5
## %bb.2:
	movq	8(%rsi), %rsi
	movq	8(%rdx), %r8
	xorl	%eax, %eax
	cmpq	$1, %r9
	jne	LBB0_6
## %bb.3:
	xorl	%edx, %edx
	jmp	LBB0_8
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_5:
	xorl	%eax, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_6:
	movq	%r9, %r10
	andq	$-2, %r10
	leaq	24(%r8), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rdx,4), %edi
	movl	%edi, -16(%rcx)
	movq	$0, -24(%rcx)
	movl	4(%rsi,%rdx,4), %edi
	movl	%edi, (%rcx)
	movq	$0, -8(%rcx)
	addq	$2, %rdx
	addq	$32, %rcx
	cmpq	%rdx, %r10
	jne	LBB0_7
LBB0_8:
	testb	$1, %r9b
	je	LBB0_10
## %bb.9:
	movl	(%rsi,%rdx,4), %ecx
	shlq	$4, %rdx
	movl	%ecx, 8(%r8,%rdx)
	movq	$0, (%r8,%rdx)
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_si_get_svi2_voltage_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si_get_svi2_voltage_table
_si_get_svi2_voltage_table:             ; @si_get_svi2_voltage_table
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_4
; %bb.1:
	stp	xzr, xzr, [x2, #16]
	ldr	x8, [x1]
	str	x8, [x2]
	cbz	x8, LBB0_10
; %bb.2:
	ldr	x10, [x1, #8]
	ldr	x9, [x2, #8]
	cmp	x8, #4
	b.hs	LBB0_5
; %bb.3:
	mov	x11, #0
	b	LBB0_8
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_5:
	and	x11, x8, #0xfffffffffffffffc
	add	x12, x9, #32
	add	x13, x10, #8
	mov	x14, x11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w15, w16, [x13, #-8]
	ldp	w17, w0, [x13], #16
	stur	w15, [x12, #-24]
	stur	w16, [x12, #-8]
	str	w17, [x12, #8]
	str	w0, [x12, #24]
	stur	xzr, [x12, #-32]
	stur	xzr, [x12, #-16]
	str	xzr, [x12]
	str	xzr, [x12, #16]
	add	x12, x12, #64
	subs	x14, x14, #4
	b.ne	LBB0_6
; %bb.7:
	cmp	x8, x11
	b.eq	LBB0_10
LBB0_8:
	sub	x8, x8, x11
	add	x10, x10, x11, lsl #2
	add	x9, x9, x11, lsl #4
	add	x9, x9, #8
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10], #4
	str	w11, [x9]
	stur	xzr, [x9, #-8]
	add	x9, x9, #16
	subs	x8, x8, #1
	b.ne	LBB0_9
LBB0_10:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_si_get_svi2_voltage_table
.subsections_via_symbols
