	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function kv_set_enabled_levels
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_1:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
LCPI0_2:
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
LCPI0_3:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
LCPI0_4:
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
LCPI0_5:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_kv_set_enabled_levels:                 ## @kv_set_enabled_levels
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_kv_get_pi
	movl	(%rax), %ecx
	movl	4(%rax), %eax
	xorl	%edx, %edx
	cmpl	%eax, %ecx
	jg	LBB0_11
## %bb.1:
	incl	%eax
	movl	%eax, %esi
	subl	%ecx, %esi
	xorl	%edx, %edx
	cmpl	$8, %esi
	jb	LBB0_10
## %bb.2:
	movl	%esi, %r8d
	andl	$-8, %r8d
	movd	%ecx, %xmm0
	pshufd	$0, %xmm0, %xmm5                ## xmm5 = xmm0[0,0,0,0]
	paddd	LCPI0_0(%rip), %xmm5
	leal	-8(%r8), %edx
	movl	%edx, %edi
	shrl	$3, %edi
	incl	%edi
	testl	%edx, %edx
	je	LBB0_3
## %bb.4:
	movl	%edi, %edx
	andl	$-2, %edx
	pxor	%xmm1, %xmm1
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = [4,4,4,4]
	movdqa	LCPI0_2(%rip), %xmm4            ## xmm4 = [1065353216,1065353216,1065353216,1065353216]
	movdqa	LCPI0_3(%rip), %xmm9            ## xmm9 = [8,8,8,8]
	movdqa	LCPI0_4(%rip), %xmm6            ## xmm6 = [12,12,12,12]
	movdqa	LCPI0_5(%rip), %xmm7            ## xmm7 = [16,16,16,16]
	pxor	%xmm2, %xmm2
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm5, %xmm0
	paddd	%xmm8, %xmm0
	movdqa	%xmm5, %xmm3
	pslld	$23, %xmm3
	paddd	%xmm4, %xmm3
	cvttps2dq	%xmm3, %xmm3
	por	%xmm1, %xmm3
	pslld	$23, %xmm0
	paddd	%xmm4, %xmm0
	cvttps2dq	%xmm0, %xmm0
	por	%xmm2, %xmm0
	movdqa	%xmm5, %xmm1
	paddd	%xmm9, %xmm1
	movdqa	%xmm5, %xmm2
	paddd	%xmm6, %xmm2
	pslld	$23, %xmm1
	paddd	%xmm4, %xmm1
	cvttps2dq	%xmm1, %xmm1
	por	%xmm3, %xmm1
	pslld	$23, %xmm2
	paddd	%xmm4, %xmm2
	cvttps2dq	%xmm2, %xmm2
	por	%xmm0, %xmm2
	paddd	%xmm7, %xmm5
	addl	$-2, %edx
	jne	LBB0_5
## %bb.6:
	testb	$1, %dil
	je	LBB0_8
LBB0_7:
	movdqa	LCPI0_1(%rip), %xmm0            ## xmm0 = [4,4,4,4]
	paddd	%xmm5, %xmm0
	pslld	$23, %xmm5
	movdqa	LCPI0_2(%rip), %xmm3            ## xmm3 = [1065353216,1065353216,1065353216,1065353216]
	paddd	%xmm3, %xmm5
	cvttps2dq	%xmm5, %xmm4
	por	%xmm4, %xmm1
	pslld	$23, %xmm0
	paddd	%xmm3, %xmm0
	cvttps2dq	%xmm0, %xmm0
	por	%xmm0, %xmm2
LBB0_8:
	por	%xmm2, %xmm1
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	por	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	por	%xmm0, %xmm1
	movd	%xmm1, %edx
	cmpl	%r8d, %esi
	je	LBB0_11
## %bb.9:
	addl	%r8d, %ecx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	btsl	%ecx, %edx
	incl	%ecx
	cmpl	%ecx, %eax
	jne	LBB0_10
LBB0_11:
	movq	_PPSMC_MSG_SCLKDPM_SetEnabledMask@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_kv_send_msg_to_smc_with_parameter ## TAILCALL
LBB0_3:
	pxor	%xmm1, %xmm1
	pxor	%xmm2, %xmm2
	testb	$1, %dil
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_PPSMC_MSG_SCLKDPM_SetEnabledMask,4,2 ## @PPSMC_MSG_SCLKDPM_SetEnabledMask
	.no_dead_strip	_kv_set_enabled_levels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function kv_set_enabled_levels
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_kv_set_enabled_levels:                 ; @kv_set_enabled_levels
	.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, x0
	bl	_kv_get_pi
	ldp	w9, w8, [x0]
	cmp	w9, w8
	b.le	LBB0_2
; %bb.1:
	mov	w2, #0
	b	LBB0_9
LBB0_2:
	add	w8, w8, #1
	sub	w10, w8, w9
	cmp	w10, #16
	b.hs	LBB0_4
; %bb.3:
	mov	w2, #0
	b	LBB0_7
LBB0_4:
	dup.4s	v0, w9
Lloh0:
	adrp	x11, lCPI0_0@PAGE
Lloh1:
	ldr	q1, [x11, lCPI0_0@PAGEOFF]
	add.4s	v1, v0, v1
	movi.2d	v0, #0000000000000000
	movi.4s	v2, #4
	and	w11, w10, #0xfffffff0
	movi.4s	v3, #8
	add	w9, w9, w11
	movi.4s	v4, #12
	movi.4s	v5, #1
	movi.4s	v6, #16
	mov	x12, x11
	movi.2d	v7, #0000000000000000
	movi.2d	v16, #0000000000000000
	movi.2d	v17, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add.4s	v18, v1, v2
	add.4s	v19, v1, v3
	add.4s	v20, v1, v4
	ushl.4s	v21, v5, v1
	ushl.4s	v18, v5, v18
	ushl.4s	v19, v5, v19
	ushl.4s	v20, v5, v20
	orr.16b	v0, v0, v21
	orr.16b	v7, v7, v18
	orr.16b	v16, v16, v19
	orr.16b	v17, v17, v20
	add.4s	v1, v1, v6
	subs	w12, w12, #16
	b.ne	LBB0_5
; %bb.6:
	orr.16b	v0, v7, v0
	orr.16b	v0, v16, v0
	orr.16b	v0, v17, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	fmov	w12, s0
	mov.s	w13, v0[1]
	orr	w2, w12, w13
	cmp	w10, w11
	b.eq	LBB0_9
LBB0_7:
	mov	w10, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w11, w10, w9
	orr	w2, w2, w11
	add	w9, w9, #1
	cmp	w8, w9
	b.ne	LBB0_8
LBB0_9:
Lloh2:
	adrp	x8, _PPSMC_MSG_SCLKDPM_SetEnabledMask@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PPSMC_MSG_SCLKDPM_SetEnabledMask@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kv_send_msg_to_smc_with_parameter
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PPSMC_MSG_SCLKDPM_SetEnabledMask,4,2 ; @PPSMC_MSG_SCLKDPM_SetEnabledMask
	.no_dead_strip	_kv_set_enabled_levels
.subsections_via_symbols
