	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ci_generate_dpm_level_enable_mask
_ci_generate_dpm_level_enable_mask:     ## @ci_generate_dpm_level_enable_mask
	.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	%rsi, %r14
	movq	%rdi, %rbx
	callq	_ci_get_pi
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ci_trim_dpm_states
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	leaq	12(%r15), %rdi
	callq	_ci_get_dpm_level_enable_mask_value
	movq	%rax, 32(%r15)
	leaq	8(%r15), %rdi
	callq	_ci_get_dpm_level_enable_mask_value
	movl	%eax, 16(%r15)
	movl	%eax, (%r15)
	cmpq	$0, 40(%r15)
	je	LBB0_4
## %bb.2:
	movl	%eax, %ecx
	andl	$1, %ecx
	je	LBB0_4
## %bb.3:
	andl	$-2, %eax
	movl	%eax, 16(%r15)
LBB0_4:
	movq	%r15, %rdi
	addq	$4, %rdi
	callq	_ci_get_dpm_level_enable_mask_value
	movq	%rax, 24(%r15)
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ci_generate_dpm_level_enable_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ci_generate_dpm_level_enable_mask
_ci_generate_dpm_level_enable_mask:     ; @ci_generate_dpm_level_enable_mask
	.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, x1
	mov	x21, x0
	bl	_ci_get_pi
	mov	x19, x0
	mov	x0, x21
	mov	x1, x20
	bl	_ci_trim_dpm_states
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.1:
	add	x0, x19, #12
	bl	_ci_get_dpm_level_enable_mask_value
	str	x0, [x19, #32]
	add	x0, x19, #8
	bl	_ci_get_dpm_level_enable_mask_value
	str	w0, [x19, #16]
	str	w0, [x19]
	ldr	x8, [x19, #40]
	and	w9, w0, #0x1
	cmp	x8, #0
	ccmp	w9, #0, #4, ne
	b.eq	LBB0_3
; %bb.2:
	and	w8, w0, #0xfffffffe
	str	w8, [x19, #16]
LBB0_3:
	add	x0, x19, #4
	bl	_ci_get_dpm_level_enable_mask_value
	str	x0, [x19, #24]
LBB0_4:
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ci_generate_dpm_level_enable_mask
.subsections_via_symbols
