	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si_trim_voltage_table_to_fit_state_table
_si_trim_voltage_table_to_fit_state_table: ## @si_trim_voltage_table_to_fit_state_table
	.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
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdx), %r9d
	movl	%r9d, %r14d
	subl	%esi, %r14d
	jbe	LBB0_21
## %bb.1:
	testl	%esi, %esi
	je	LBB0_20
## %bb.2:
	movq	8(%rdx), %rcx
	movl	%esi, %r8d
	cmpl	$8, %esi
	jae	LBB0_4
LBB0_3:
	xorl	%edi, %edi
LBB0_16:
	movq	%rdi, %r9
	notq	%r9
	addq	%r8, %r9
	movq	%r8, %rbx
	andq	$3, %rbx
	je	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	leal	(%r14,%rdi), %eax
	movl	(%rcx,%rax,4), %eax
	movl	%eax, (%rcx,%rdi,4)
	incq	%rdi
	decq	%rbx
	jne	LBB0_17
LBB0_18:
	cmpq	$3, %r9
	jb	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%r14,%rdi), %rax
	movl	%eax, %ebx
	movl	(%rcx,%rbx,4), %ebx
	movl	%ebx, (%rcx,%rdi,4)
	leal	1(%rax), %ebx
	movl	(%rcx,%rbx,4), %ebx
	movl	%ebx, 4(%rcx,%rdi,4)
	leal	2(%rax), %ebx
	movl	(%rcx,%rbx,4), %ebx
	movl	%ebx, 8(%rcx,%rdi,4)
	addl	$3, %eax
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 12(%rcx,%rdi,4)
	addq	$4, %rdi
	cmpq	%rdi, %r8
	jne	LBB0_19
LBB0_20:
	movl	%esi, (%rdx)
LBB0_21:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	-1(%r8), %r10
	movl	%r9d, %ebx
	notl	%ebx
	addl	%esi, %ebx
	xorl	%edi, %edi
	cmpl	%r10d, %ebx
	jb	LBB0_16
## %bb.5:
	shrq	$32, %r10
	jne	LBB0_16
## %bb.6:
	leaq	(,%r14,4), %rdi
	negq	%rdi
	cmpq	$32, %rdi
	jb	LBB0_3
## %bb.8:
	movl	%r8d, %edi
	andl	$-8, %edi
	leaq	-8(%rdi), %rbx
	movq	%rbx, %r11
	shrq	$3, %r11
	incq	%r11
	movl	%r11d, %r10d
	andl	$3, %r10d
	cmpq	$24, %rbx
	jae	LBB0_10
## %bb.9:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_10:
	andq	$-4, %r11
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%r14,%rbx), %rax
	movl	%eax, %r15d
	movups	(%rcx,%r15,4), %xmm0
	movups	16(%rcx,%r15,4), %xmm1
	movups	%xmm0, (%rcx,%rbx,4)
	movups	%xmm1, 16(%rcx,%rbx,4)
	leal	8(%rax), %r15d
	movups	(%rcx,%r15,4), %xmm0
	movups	16(%rcx,%r15,4), %xmm1
	movups	%xmm0, 32(%rcx,%rbx,4)
	movups	%xmm1, 48(%rcx,%rbx,4)
	leal	16(%rax), %r15d
	movups	(%rcx,%r15,4), %xmm0
	movups	16(%rcx,%r15,4), %xmm1
	movups	%xmm0, 64(%rcx,%rbx,4)
	movups	%xmm1, 80(%rcx,%rbx,4)
	addl	$24, %eax
	movups	(%rcx,%rax,4), %xmm0
	movups	16(%rcx,%rax,4), %xmm1
	movups	%xmm0, 96(%rcx,%rbx,4)
	movups	%xmm1, 112(%rcx,%rbx,4)
	addq	$32, %rbx
	addq	$-4, %r11
	jne	LBB0_11
LBB0_12:
	testq	%r10, %r10
	je	LBB0_15
## %bb.13:
	leaq	(%rcx,%rbx,4), %r11
	addq	$16, %r11
	addl	%ebx, %r9d
	subl	%esi, %r9d
	shlq	$3, %r10
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	leal	(%r9,%rbx), %eax
	movups	(%rcx,%rax,4), %xmm0
	movups	16(%rcx,%rax,4), %xmm1
	movups	%xmm0, -16(%r11,%rbx,4)
	movups	%xmm1, (%r11,%rbx,4)
	addq	$8, %rbx
	cmpq	%rbx, %r10
	jne	LBB0_14
LBB0_15:
	cmpq	%r8, %rdi
	je	LBB0_20
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_si_trim_voltage_table_to_fit_state_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si_trim_voltage_table_to_fit_state_table
_si_trim_voltage_table_to_fit_state_table: ; @si_trim_voltage_table_to_fit_state_table
	.cfi_startproc
; %bb.0:
	ldr	w9, [x2]
	subs	w11, w9, w1
	b.ls	LBB0_8
; %bb.1:
	cbz	w1, LBB0_7
; %bb.2:
	ldr	x8, [x2, #8]
	mov	w10, w1
	cmp	w1, #16
	b.lo	LBB0_4
; %bb.3:
	sub	x12, x10, #1
	mvn	w13, w9
	add	w13, w13, w1
	cmp	w13, w12
	lsr	x12, x12, #32
	ccmp	x12, #0, #0, hs
	b.eq	LBB0_9
LBB0_4:
	mov	x12, #0
LBB0_5:
	add	w9, w9, w12
	sub	w9, w9, w1
	sub	x10, x10, x12
	add	x11, x8, x12, lsl #2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x8, w9, uxtw #2]
	str	w12, [x11], #4
	add	w9, w9, #1
	subs	x10, x10, #1
	b.ne	LBB0_6
LBB0_7:
	str	w1, [x2]
LBB0_8:
	ret
LBB0_9:
	mov	x12, #0
	sub	x13, x12, w11, uxtw #2
	cmp	x13, #64
	b.lo	LBB0_5
; %bb.10:
	and	x12, x10, #0xfffffff0
	add	x13, x8, #32
	mov	x14, x12
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x15, x8, w11, uxtw #2
	ldp	q0, q1, [x15]
	ldp	q2, q3, [x15, #32]
	stp	q0, q1, [x13, #-32]
	stp	q2, q3, [x13], #64
	add	w11, w11, #16
	subs	x14, x14, #16
	b.ne	LBB0_11
; %bb.12:
	cmp	x12, x10
	b.eq	LBB0_7
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_si_trim_voltage_table_to_fit_state_table
.subsections_via_symbols
