	.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_apply_state_adjust_rules
LCPI0_0:
	.long	3                               ## 0x3
	.long	0                               ## 0x0
	.long	3                               ## 0x3
	.long	0                               ## 0x0
LCPI0_1:
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_kv_apply_state_adjust_rules:           ## @kv_apply_state_adjust_rules
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_kv_get_ps
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_kv_get_pi
	movq	%rax, %r10
	movq	40(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movq	8(%rbx), %rax
	movq	24(%rbx), %rdx
	leaq	(%rax,%rax,2), %rax
	movups	8(%rdx,%rax,8), %xmm0
	jmp	LBB0_3
LBB0_1:
	xorps	%xmm0, %xmm0
LBB0_3:
	movq	%rbx, %rdi
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movups	%xmm0, 8(%r14)
	cmpq	$0, 48(%r10)
	je	LBB0_4
## %bb.5:
	imull	$75, 40(%rdi), %eax
	cltq
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$37, %rax
	addl	%edx, %eax
	cltq
	movl	48(%rdi), %edx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	testl	%edx, %edx
	jle	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	56(%rdi), %rsi
	movq	-8(%rsi,%rdx,8), %r12
	decq	%rdx
	cmpq	%rax, %r12
	jg	LBB0_6
## %bb.9:
	incl	%edx
	movq	%r12, %rax
	testl	$-2, %edx
	je	LBB0_11
## %bb.10:
	movq	(%rsi), %r12
	movq	%r12, %rax
	testq	%rcx, %rcx
	jne	LBB0_12
	jmp	LBB0_13
LBB0_4:
	movl	$10000, %eax                    ## imm = 0x2710
	xorl	%r12d, %r12d
LBB0_11:
	testq	%rcx, %rcx
	je	LBB0_13
LBB0_12:
	movq	8(%rdi), %rcx
	movq	24(%rdi), %rdx
	leaq	(%rcx,%rcx,2), %rcx
	movq	(%rdx,%rcx,8), %rcx
	cmpq	%rcx, %rax
	cmovleq	%rcx, %rax
LBB0_13:
	movq	32(%rdi), %r11
	movl	$1, (%r9)
	movl	4(%r9), %ecx
	testl	%ecx, %ecx
	jle	LBB0_37
## %bb.14:
	movq	24(%r9), %r8
	cmpl	$1, %ecx
	jne	LBB0_16
## %bb.15:
	xorl	%esi, %esi
LBB0_22:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	testb	$1, %cl
	je	LBB0_25
## %bb.23:
	shlq	$4, %rsi
	cmpq	%rax, (%r8,%rsi)
	jge	LBB0_25
## %bb.24:
	addq	%rsi, %r8
	movq	%rax, (%r8)
LBB0_25:
	movq	%r11, -72(%rbp)                 ## 8-byte Spill
	cmpl	$0, 48(%rdi)
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%r10, %r14
	je	LBB0_31
## %bb.26:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_27 Depth=1
	incq	%r15
	movslq	4(%r9), %rcx
	addq	$16, %r13
	cmpq	%rcx, %r15
	jge	LBB0_36
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r10), %rbx
	testq	%rbx, %rbx
	je	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	24(%r9), %rax
	movl	8(%rax,%r13), %esi
	callq	_kv_convert_8bit_index_to_voltage
	movq	%r14, %r10
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	cmpq	%rax, %rbx
	jge	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_27 Depth=1
	leaq	-44(%rbp), %rsi
	callq	_kv_get_high_voltage_limit
	movq	%r14, %r10
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	56(%rdi), %rax
	movslq	-44(%rbp), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	24(%r9), %rcx
	movq	%rax, (%rcx,%r13)
	jmp	LBB0_30
LBB0_7:
	movq	%rax, %r12
	testq	%rcx, %rcx
	jne	LBB0_12
	jmp	LBB0_13
LBB0_16:
	movl	%ecx, %edx
	andl	$-2, %edx
	leaq	16(%r8), %rbx
	xorl	%esi, %esi
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=1
	addq	$2, %rsi
	addq	$32, %rbx
	cmpq	%rsi, %rdx
	je	LBB0_22
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, -16(%rbx)
	jge	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%rax, -16(%rbx)
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	cmpq	%rax, (%rbx)
	jge	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%rax, (%rbx)
	jmp	LBB0_21
LBB0_31:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_32 Depth=1
	incq	%rbx
	movslq	4(%r9), %rcx
	addq	$16, %r13
	cmpq	%rcx, %rbx
	jge	LBB0_36
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r10), %r15
	testq	%r15, %r15
	je	LBB0_35
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	24(%r9), %rax
	movl	8(%rax,%r13), %esi
	callq	_kv_convert_8bit_index_to_voltage
	movq	%r14, %r10
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	cmpq	%rax, %r15
	jge	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_32 Depth=1
	leaq	-44(%rbp), %rsi
	callq	_kv_get_high_voltage_limit
	movq	%r14, %r10
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	40(%r14), %rax
	movslq	-44(%rbp), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	24(%r9), %rcx
	movq	%rax, (%rcx,%r13)
	jmp	LBB0_35
LBB0_36:
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %r11                 ## 8-byte Reload
LBB0_37:
	cmpq	$0, 48(%r10)
	je	LBB0_46
## %bb.38:
	testl	%ecx, %ecx
	jle	LBB0_46
## %bb.39:
	movq	24(%r9), %rax
	movl	%ecx, %edx
	leaq	-1(%rdx), %rsi
	movl	%edx, %ecx
	andl	$3, %ecx
	cmpq	$3, %rsi
	jae	LBB0_41
## %bb.40:
	xorl	%esi, %esi
	jmp	LBB0_43
LBB0_41:
	andl	$-4, %edx
	leaq	48(%rax), %rbx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_42:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, -48(%rbx)
	movq	%r12, -32(%rbx)
	movq	%r12, -16(%rbx)
	movq	%r12, (%rbx)
	addq	$4, %rsi
	addq	$64, %rbx
	cmpq	%rsi, %rdx
	jne	LBB0_42
LBB0_43:
	testq	%rcx, %rcx
	je	LBB0_46
## %bb.44:
	shlq	$4, %rsi
	addq	%rsi, %rax
	shlq	$4, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_45:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, (%rax,%rdx)
	addq	$16, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_45
LBB0_46:
	movl	$1, %eax
	cmpq	$0, 32(%r14)
	jne	LBB0_50
## %bb.47:
	cmpq	$0, 24(%r14)
	jne	LBB0_50
## %bb.48:
	cmpq	$0, 16(%r14)
	jne	LBB0_50
## %bb.49:
	xorl	%eax, %eax
	cmpq	$0, 8(%r14)
	setne	%al
LBB0_50:
	movl	%eax, 8(%r10)
	movq	_ATOM_PPLIB_CLASSIFICATION_UI_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%r14), %ecx
	movq	_ATOM_PPLIB_CLASSIFICATION_UI_BATTERY@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpl	(%rdx), %ecx
	sete	%sil
	movl	%esi, 12(%r10)
	movq	(%rdi), %rcx
	movq	_CHIP_KABINI@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_52
## %bb.51:
	movq	_CHIP_MULLINS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_52
## %bb.53:
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [3,0,3,0]
	movups	%xmm0, 8(%r9)
	cmpq	$0, 32(%r10)
	je	LBB0_59
## %bb.54:
	movq	24(%r10), %rdx
	movl	$2, %ecx
	cmpq	24(%rdx), %r11
	jge	LBB0_58
## %bb.55:
	testl	%eax, %eax
	jne	LBB0_58
## %bb.56:
	cmpl	$2, 16(%rdi)
	jg	LBB0_58
## %bb.57:
	xorl	%ecx, %ecx
	cmpq	$0, 16(%r10)
	sete	%cl
	orl	$2, %ecx
LBB0_58:
	movl	%ecx, 8(%r9)
	movl	$2, 12(%r9)
	movl	%ecx, 16(%r9)
	movl	$2, 20(%r9)
	jmp	LBB0_59
LBB0_52:
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = [1,0,1,0]
	movups	%xmm0, 8(%r9)
LBB0_59:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATOM_PPLIB_CLASSIFICATION_UI_MASK,4,2 ## @ATOM_PPLIB_CLASSIFICATION_UI_MASK
	.comm	_ATOM_PPLIB_CLASSIFICATION_UI_BATTERY,4,2 ## @ATOM_PPLIB_CLASSIFICATION_UI_BATTERY
	.comm	_CHIP_KABINI,8,3                ## @CHIP_KABINI
	.comm	_CHIP_MULLINS,8,3               ## @CHIP_MULLINS
	.no_dead_strip	_kv_apply_state_adjust_rules
.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_apply_state_adjust_rules
lCPI0_0:
	.long	3                               ; 0x3
	.long	0                               ; 0x0
	.long	3                               ; 0x3
	.long	0                               ; 0x0
lCPI0_1:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_kv_apply_state_adjust_rules:           ; @kv_apply_state_adjust_rules
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x1
	mov	x20, x0
	mov	x0, x1
	bl	_kv_get_ps
	mov	x19, x0
	mov	x0, x20
	bl	_kv_get_pi
	mov	x21, x0
	ldr	x9, [x22, #40]
	cbz	x9, LBB0_2
; %bb.1:
	ldr	x8, [x20, #24]
	ldr	x10, [x20, #8]
	mov	w11, #24
	madd	x8, x10, x11, x8
	ldur	q0, [x8, #8]
	b	LBB0_3
LBB0_2:
	movi.2d	v0, #0000000000000000
LBB0_3:
	stur	q0, [x22, #8]
	ldr	x8, [x21, #48]
	cbz	x8, LBB0_24
; %bb.4:
	ldr	w8, [x20, #40]
	mov	w10, #75
	mul	w8, w8, w10
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	smull	x8, w8, w10
	lsr	x10, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w10
	sxtw	x24, w8
	ldr	w11, [x20, #48]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w11, #1
	b.lt	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x12, x11, #1
	ldr	x10, [x20, #56]
	add	x8, x10, x11, lsl #3
	ldur	x8, [x8, #-8]
	mov	x11, x12
	cmp	x8, x24
	b.gt	LBB0_5
; %bb.7:
	add	w11, w12, #1
	tst	x11, #0xfffffffe
	b.eq	LBB0_68
; %bb.8:
	ldr	x24, [x10]
LBB0_9:
	mov	x8, x24
	cbz	x9, LBB0_11
LBB0_10:
	ldr	x9, [x20, #24]
	ldr	x10, [x20, #8]
	mov	w11, #24
	mul	x10, x10, x11
	ldr	x9, [x9, x10]
	cmp	x8, x9
	csel	x8, x8, x9, gt
LBB0_11:
	ldr	x23, [x20, #32]
	mov	w9, #1
	str	w9, [x19]
	ldr	w9, [x19, #4]
	cmp	w9, #1
	b.lt	LBB0_49
; %bb.12:
	ldr	x10, [x19, #24]
	cmp	w9, #9
	b.hs	LBB0_25
; %bb.13:
	mov	x11, #0
LBB0_14:
	add	x10, x10, x11, lsl #4
	sub	x9, x9, x11
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x10, x10, #16
	subs	x9, x9, #1
	b.eq	LBB0_18
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cmp	x11, x8
	b.ge	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	str	x8, [x10]
	b	LBB0_15
LBB0_18:
	ldr	w8, [x20, #48]
	cbz	w8, LBB0_43
; %bb.19:
	mov	x25, #0
	mov	x26, #0
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x26, x26, #1
	ldrsw	x9, [x19, #4]
	add	x25, x25, #16
	cmp	x26, x9
	b.ge	LBB0_48
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x21]
	cbz	x27, LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x8, [x19, #24]
	add	x8, x8, x25
	ldr	w1, [x8, #8]
	mov	x0, x20
	bl	_kv_convert_8bit_index_to_voltage
	cmp	x27, x0
	b.ge	LBB0_20
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=1
	add	x1, sp, #12
	mov	x0, x20
	bl	_kv_get_high_voltage_limit
	ldr	x8, [x20, #56]
	ldrsw	x9, [sp, #12]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x9, [x19, #24]
	str	x8, [x9, x25]
	b	LBB0_20
LBB0_24:
	mov	x24, #0
	mov	w8, #10000
	cbnz	x9, LBB0_10
	b	LBB0_11
LBB0_25:
	ands	x11, x9, #0x7
	mov	w12, #8
	csel	x11, x12, x11, eq
	sub	x11, x9, x11
	dup.2d	v0, x8
	add	x12, x10, #64
	mov	x13, x11
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=1
	add	x12, x12, #128
	subs	x13, x13, #8
	b.eq	LBB0_14
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	sub	x14, x12, #64
	ld2.2d	{ v1, v2 }, [x14]
	sub	x14, x12, #32
	ld2.2d	{ v5, v6 }, [x14]
	mov	x14, x12
	ld2.2d	{ v3, v4 }, [x14], #32
	cmgt.2d	v1, v0, v1
	xtn.2s	v1, v1
	fmov	w15, s1
	tbz	w15, #0, LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	stur	x8, [x12, #-64]
LBB0_29:                                ;   in Loop: Header=BB0_27 Depth=1
	mov.s	w15, v1[1]
	ld2.2d	{ v1, v2 }, [x14]
	tbz	w15, #0, LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_27 Depth=1
	stur	x8, [x12, #-48]
LBB0_31:                                ;   in Loop: Header=BB0_27 Depth=1
	cmgt.2d	v5, v0, v5
	xtn.2s	v5, v5
	fmov	w14, s5
	tbz	w14, #0, LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_27 Depth=1
	stur	x8, [x12, #-32]
LBB0_33:                                ;   in Loop: Header=BB0_27 Depth=1
	mov.s	w14, v5[1]
	tbz	w14, #0, LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_27 Depth=1
	stur	x8, [x12, #-16]
LBB0_35:                                ;   in Loop: Header=BB0_27 Depth=1
	cmgt.2d	v3, v0, v3
	xtn.2s	v3, v3
	fmov	w14, s3
	tbz	w14, #0, LBB0_37
; %bb.36:                               ;   in Loop: Header=BB0_27 Depth=1
	str	x8, [x12]
LBB0_37:                                ;   in Loop: Header=BB0_27 Depth=1
	mov.s	w14, v3[1]
	tbz	w14, #0, LBB0_39
; %bb.38:                               ;   in Loop: Header=BB0_27 Depth=1
	str	x8, [x12, #16]
LBB0_39:                                ;   in Loop: Header=BB0_27 Depth=1
	cmgt.2d	v1, v0, v1
	xtn.2s	v1, v1
	fmov	w14, s1
	tbz	w14, #0, LBB0_41
; %bb.40:                               ;   in Loop: Header=BB0_27 Depth=1
	str	x8, [x12, #32]
LBB0_41:                                ;   in Loop: Header=BB0_27 Depth=1
	mov.s	w14, v1[1]
	tbz	w14, #0, LBB0_26
; %bb.42:                               ;   in Loop: Header=BB0_27 Depth=1
	str	x8, [x12, #48]
	b	LBB0_26
LBB0_43:
	mov	x25, #0
	mov	x26, #0
	b	LBB0_45
LBB0_44:                                ;   in Loop: Header=BB0_45 Depth=1
	add	x26, x26, #1
	ldrsw	x9, [x19, #4]
	add	x25, x25, #16
	cmp	x26, x9
	b.ge	LBB0_48
LBB0_45:                                ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x21]
	cbz	x27, LBB0_44
; %bb.46:                               ;   in Loop: Header=BB0_45 Depth=1
	ldr	x8, [x19, #24]
	add	x8, x8, x25
	ldr	w1, [x8, #8]
	mov	x0, x20
	bl	_kv_convert_8bit_index_to_voltage
	cmp	x27, x0
	b.ge	LBB0_44
; %bb.47:                               ;   in Loop: Header=BB0_45 Depth=1
	add	x1, sp, #12
	mov	x0, x20
	bl	_kv_get_high_voltage_limit
	ldr	x8, [x21, #40]
	ldrsw	x9, [sp, #12]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x9, [x19, #24]
	str	x8, [x9, x25]
	b	LBB0_44
LBB0_48:
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
LBB0_49:
	ldr	x8, [x21, #48]
	cmp	x8, #0
	ccmp	w9, #1, #8, ne
	b.lt	LBB0_57
; %bb.50:
	ldr	x10, [x19, #24]
	mov	w8, w9
	cmp	w9, #4
	b.hs	LBB0_52
; %bb.51:
	mov	x9, #0
	b	LBB0_55
LBB0_52:
	and	x9, x8, #0xfffffffc
	add	x11, x10, #32
	mov	x12, x9
LBB0_53:                                ; =>This Inner Loop Header: Depth=1
	stur	x24, [x11, #-32]
	stur	x24, [x11, #-16]
	str	x24, [x11]
	str	x24, [x11, #16]
	add	x11, x11, #64
	subs	x12, x12, #4
	b.ne	LBB0_53
; %bb.54:
	cmp	x9, x8
	b.eq	LBB0_57
LBB0_55:
	add	x10, x10, x9, lsl #4
	sub	x8, x8, x9
LBB0_56:                                ; =>This Inner Loop Header: Depth=1
	str	x24, [x10], #16
	subs	x8, x8, #1
	b.ne	LBB0_56
LBB0_57:
	ldr	x8, [x22, #32]
	cbnz	x8, LBB0_60
; %bb.58:
	ldr	x8, [x22, #24]
	cbnz	x8, LBB0_60
; %bb.59:
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_72
LBB0_60:
	mov	w8, #1
LBB0_61:
	ldr	w9, [x22]
Lloh0:
	adrp	x10, _ATOM_PPLIB_CLASSIFICATION_UI_MASK@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ATOM_PPLIB_CLASSIFICATION_UI_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	and	w9, w10, w9
Lloh3:
	adrp	x10, _ATOM_PPLIB_CLASSIFICATION_UI_BATTERY@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ATOM_PPLIB_CLASSIFICATION_UI_BATTERY@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w10
	cset	w9, eq
	stp	w8, w9, [x21, #8]
	ldr	x9, [x20]
Lloh6:
	adrp	x10, _CHIP_KABINI@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CHIP_KABINI@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
Lloh9:
	adrp	x11, _CHIP_MULLINS@GOTPAGE
Lloh10:
	ldr	x11, [x11, _CHIP_MULLINS@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_63
; %bb.62:
Lloh12:
	adrp	x8, lCPI0_1@PAGE
Lloh13:
	ldr	q0, [x8, lCPI0_1@PAGEOFF]
	stur	q0, [x19, #8]
	b	LBB0_71
LBB0_63:
Lloh14:
	adrp	x9, lCPI0_0@PAGE
Lloh15:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
	stur	q0, [x19, #8]
	ldr	x9, [x21, #32]
	cbz	x9, LBB0_71
; %bb.64:
	ldr	x9, [x21, #24]
	ldr	x10, [x9, #24]
	mov	w9, #2
	cmp	x23, x10
	b.ge	LBB0_69
; %bb.65:
	mov	w10, #2
	cbnz	w8, LBB0_70
; %bb.66:
	ldr	w8, [x20, #16]
	mov	w10, #2
	cmp	w8, #2
	b.gt	LBB0_70
; %bb.67:
	ldr	x8, [x21, #16]
	cmp	x8, #0
	cinc	w10, w10, eq
	b	LBB0_70
LBB0_68:
	mov	x24, x8
	cbnz	x9, LBB0_10
	b	LBB0_11
LBB0_69:
	mov	w10, #2
LBB0_70:
	stp	w10, w9, [x19, #8]
	stp	w10, w9, [x19, #16]
LBB0_71:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_72:
	ldr	x8, [x22, #8]
	cmp	x8, #0
	cset	w8, ne
	b	LBB0_61
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdr	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ATOM_PPLIB_CLASSIFICATION_UI_MASK,4,2 ; @ATOM_PPLIB_CLASSIFICATION_UI_MASK
	.comm	_ATOM_PPLIB_CLASSIFICATION_UI_BATTERY,4,2 ; @ATOM_PPLIB_CLASSIFICATION_UI_BATTERY
	.comm	_CHIP_KABINI,8,3                ; @CHIP_KABINI
	.comm	_CHIP_MULLINS,8,3               ; @CHIP_MULLINS
	.no_dead_strip	_kv_apply_state_adjust_rules
.subsections_via_symbols
