	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arcturus_force_dpm_limit_value
_arcturus_force_dpm_limit_value:        ## @arcturus_force_dpm_limit_value
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	leaq	32(%rbx), %rdi
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	callq	_arcturus_find_highest_dpm_level
	movq	32(%rbx), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 40(%rbx)
	movl	%eax, 44(%rbx)
	leaq	16(%rbx), %rdi
	callq	_arcturus_find_highest_dpm_level
	movq	16(%rbx), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 24(%rbx)
	movl	%eax, 28(%rbx)
	movq	%rbx, %rdi
	callq	_arcturus_find_highest_dpm_level
	jmp	LBB0_3
LBB0_2:
	callq	_arcturus_find_lowest_dpm_level
	movq	32(%rbx), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 40(%rbx)
	movl	%eax, 44(%rbx)
	leaq	16(%rbx), %rdi
	callq	_arcturus_find_lowest_dpm_level
	movq	16(%rbx), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 24(%rbx)
	movl	%eax, 28(%rbx)
	movq	%rbx, %rdi
	callq	_arcturus_find_lowest_dpm_level
LBB0_3:
	movq	(%rbx), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 8(%rbx)
	movl	%eax, 12(%rbx)
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$-1, %edx
	callq	_arcturus_upload_dpm_level
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_7
LBB0_5:
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$-1, %edx
	callq	_arcturus_upload_dpm_level
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	leaq	L_.str.3(%rip), %rdi
LBB0_7:
	movl	%eax, %ebx
	testl	%r14d, %r14d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	callq	_pr_err
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to upload boot level to %s!\n"

L_.str.1:                               ## @.str.1
	.asciz	"highest"

L_.str.2:                               ## @.str.2
	.asciz	"lowest"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to upload dpm max level to %s!\n!"

	.no_dead_strip	_arcturus_force_dpm_limit_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arcturus_force_dpm_limit_value
_arcturus_force_dpm_limit_value:        ; @arcturus_force_dpm_limit_value
	.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	x19, x1
	mov	x20, x0
	ldr	x21, [x0]
	add	x0, x21, #32
	cbz	w1, LBB0_2
; %bb.1:
	bl	_arcturus_find_highest_dpm_level
	ldr	x8, [x21, #32]
	ldr	w8, [x8, x0, lsl #2]
	stp	w8, w8, [x21, #40]
	add	x0, x21, #16
	bl	_arcturus_find_highest_dpm_level
	ldr	x8, [x21, #16]
	ldr	w8, [x8, x0, lsl #2]
	stp	w8, w8, [x21, #24]
	mov	x0, x21
	bl	_arcturus_find_highest_dpm_level
	b	LBB0_3
LBB0_2:
	bl	_arcturus_find_lowest_dpm_level
	ldr	x8, [x21, #32]
	ldr	w8, [x8, x0, lsl #2]
	stp	w8, w8, [x21, #40]
	add	x0, x21, #16
	bl	_arcturus_find_lowest_dpm_level
	ldr	x8, [x21, #16]
	ldr	w8, [x8, x0, lsl #2]
	stp	w8, w8, [x21, #24]
	mov	x0, x21
	bl	_arcturus_find_lowest_dpm_level
LBB0_3:
	ldr	x8, [x21]
	ldr	w8, [x8, x0, lsl #2]
	stp	w8, w8, [x21, #8]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #-1
	bl	_arcturus_upload_dpm_level
	cbz	w0, LBB0_5
; %bb.4:
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
	mov	x0, x20
	mov	w1, #1
	mov	w2, #-1
	bl	_arcturus_upload_dpm_level
	mov	x21, x0
	cbz	w0, LBB0_8
; %bb.6:
Lloh2:
	adrp	x0, l_.str.3@PAGE
Lloh3:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_7:
Lloh4:
	adrp	x8, l_.str.1@PAGE
Lloh5:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh6:
	adrp	x9, l_.str.2@PAGE
Lloh7:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w19, #0
	csel	x1, x9, x8, eq
	bl	_pr_err
LBB0_8:
	mov	x0, x21
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to upload boot level to %s!\n"

l_.str.1:                               ; @.str.1
	.asciz	"highest"

l_.str.2:                               ; @.str.2
	.asciz	"lowest"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to upload dpm max level to %s!\n!"

	.no_dead_strip	_arcturus_force_dpm_limit_value
.subsections_via_symbols
