	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kv_program_bootup_state
_kv_program_bootup_state:               ## @kv_program_bootup_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_kv_get_pi
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.2:
	movslq	(%rax), %rsi
	decq	%rsi
	xorl	%r14d, %r14d
	testl	%esi, %esi
	je	LBB0_12
## %bb.3:
	movq	(%rbx), %rcx
	movq	16(%rax), %rdx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rcx,%rsi,8)
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	decq	%rsi
	jne	LBB0_4
	jmp	LBB0_12
LBB0_6:
	cmpq	$0, 24(%rax)
	je	LBB0_7
## %bb.8:
	movslq	(%rax), %rsi
	decq	%rsi
	xorl	%r14d, %r14d
	testl	%esi, %esi
	je	LBB0_12
## %bb.9:
	movq	16(%rax), %rcx
	movq	32(%rax), %rdx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, (%rdx,%rsi,8)
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	decq	%rsi
	jne	LBB0_10
LBB0_12:
	xorl	%esi, %esi
LBB0_13:
	movq	%rsi, 8(%rax)
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_kv_dpm_power_level_enable
	jmp	LBB0_14
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_14:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_kv_program_bootup_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kv_program_bootup_state
_kv_program_bootup_state:               ; @kv_program_bootup_state
	.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
	cbz	x19, LBB0_6
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.2:
	ldrsw	x8, [x0]
	sub	x1, x8, #1
	cbz	w1, LBB0_11
; %bb.3:
	ldr	x8, [x19]
	ldr	x9, [x0, #16]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8, x1, lsl #3]
	cmp	x10, x9
	b.eq	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	subs	x1, x1, #1
	b.ne	LBB0_4
	b	LBB0_12
LBB0_6:
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_13
; %bb.7:
	ldrsw	x8, [x0]
	sub	x1, x8, #1
	cbz	w1, LBB0_11
; %bb.8:
	ldr	x8, [x0, #32]
	ldr	x9, [x0, #16]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8, x1, lsl #3]
	cmp	x10, x9
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	subs	x1, x1, #1
	b.ne	LBB0_9
	b	LBB0_12
LBB0_11:
	mov	x1, #0
LBB0_12:
	str	x1, [x0, #8]
	mov	x0, x19
	mov	w2, #1
	bl	_kv_dpm_power_level_enable
	mov	w0, #0
	b	LBB0_14
LBB0_13:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_kv_program_bootup_state
.subsections_via_symbols
